@azure/synapse-spark 1.0.0-alpha.20241121.1 → 1.0.0-alpha.20241125.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 (205) hide show
  1. package/README.md +3 -3
  2. package/dist/browser/index.d.ts +4 -0
  3. package/dist/browser/index.d.ts.map +1 -0
  4. package/dist/browser/index.js +11 -0
  5. package/dist/browser/index.js.map +1 -0
  6. package/dist/browser/models/index.d.ts +548 -0
  7. package/dist/browser/models/index.d.ts.map +1 -0
  8. package/dist/browser/models/index.js +134 -0
  9. package/dist/browser/models/index.js.map +1 -0
  10. package/dist/browser/models/mappers.d.ts +19 -0
  11. package/dist/browser/models/mappers.d.ts.map +1 -0
  12. package/dist/browser/models/mappers.js +1151 -0
  13. package/dist/browser/models/mappers.js.map +1 -0
  14. package/dist/browser/models/parameters.d.ts +16 -0
  15. package/dist/browser/models/parameters.d.ts.map +1 -0
  16. package/dist/browser/models/parameters.js +133 -0
  17. package/dist/browser/models/parameters.js.map +1 -0
  18. package/dist/browser/operations/index.d.ts +3 -0
  19. package/dist/browser/operations/index.d.ts.map +1 -0
  20. package/dist/browser/operations/index.js +10 -0
  21. package/dist/browser/operations/index.js.map +1 -0
  22. package/dist/browser/operations/sparkBatch.d.ts +36 -0
  23. package/dist/browser/operations/sparkBatch.d.ts.map +1 -0
  24. package/dist/browser/operations/sparkBatch.js +121 -0
  25. package/dist/browser/operations/sparkBatch.js.map +1 -0
  26. package/dist/browser/operations/sparkSessionOperations.d.ts +69 -0
  27. package/dist/browser/operations/sparkSessionOperations.d.ts.map +1 -0
  28. package/dist/browser/operations/sparkSessionOperations.js +258 -0
  29. package/dist/browser/operations/sparkSessionOperations.js.map +1 -0
  30. package/dist/browser/operationsInterfaces/index.d.ts +3 -0
  31. package/dist/browser/operationsInterfaces/index.d.ts.map +1 -0
  32. package/dist/browser/operationsInterfaces/index.js +10 -0
  33. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  34. package/dist/browser/operationsInterfaces/sparkBatch.d.ts +28 -0
  35. package/dist/browser/operationsInterfaces/sparkBatch.d.ts.map +1 -0
  36. package/dist/browser/operationsInterfaces/sparkBatch.js +9 -0
  37. package/dist/browser/operationsInterfaces/sparkBatch.js.map +1 -0
  38. package/dist/browser/operationsInterfaces/sparkSessionOperations.d.ts +61 -0
  39. package/dist/browser/operationsInterfaces/sparkSessionOperations.d.ts.map +1 -0
  40. package/dist/browser/operationsInterfaces/sparkSessionOperations.js +9 -0
  41. package/dist/browser/operationsInterfaces/sparkSessionOperations.js.map +1 -0
  42. package/dist/browser/package.json +3 -0
  43. package/dist/browser/sparkClient.d.ts +24 -0
  44. package/dist/browser/sparkClient.d.ts.map +1 -0
  45. package/dist/browser/sparkClient.js +77 -0
  46. package/dist/browser/sparkClient.js.map +1 -0
  47. package/dist/browser/tracing.d.ts +2 -0
  48. package/dist/browser/tracing.d.ts.map +1 -0
  49. package/dist/browser/tracing.js +14 -0
  50. package/dist/browser/tracing.js.map +1 -0
  51. package/dist/commonjs/index.d.ts +4 -0
  52. package/dist/commonjs/index.d.ts.map +1 -0
  53. package/dist/commonjs/index.js +16 -0
  54. package/dist/commonjs/index.js.map +1 -0
  55. package/dist/commonjs/models/index.d.ts +548 -0
  56. package/dist/commonjs/models/index.d.ts.map +1 -0
  57. package/dist/commonjs/models/index.js +137 -0
  58. package/dist/commonjs/models/index.js.map +1 -0
  59. package/dist/commonjs/models/mappers.d.ts +19 -0
  60. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  61. package/dist/commonjs/models/mappers.js +1154 -0
  62. package/dist/commonjs/models/mappers.js.map +1 -0
  63. package/dist/commonjs/models/parameters.d.ts +16 -0
  64. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  65. package/dist/commonjs/models/parameters.js +136 -0
  66. package/dist/commonjs/models/parameters.js.map +1 -0
  67. package/dist/commonjs/operations/index.d.ts +3 -0
  68. package/dist/commonjs/operations/index.d.ts.map +1 -0
  69. package/dist/commonjs/operations/index.js +13 -0
  70. package/dist/commonjs/operations/index.js.map +1 -0
  71. package/dist/commonjs/operations/sparkBatch.d.ts +36 -0
  72. package/dist/commonjs/operations/sparkBatch.d.ts.map +1 -0
  73. package/dist/commonjs/operations/sparkBatch.js +126 -0
  74. package/dist/commonjs/operations/sparkBatch.js.map +1 -0
  75. package/dist/commonjs/operations/sparkSessionOperations.d.ts +69 -0
  76. package/dist/commonjs/operations/sparkSessionOperations.d.ts.map +1 -0
  77. package/dist/commonjs/operations/sparkSessionOperations.js +263 -0
  78. package/dist/commonjs/operations/sparkSessionOperations.js.map +1 -0
  79. package/dist/commonjs/operationsInterfaces/index.d.ts +3 -0
  80. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  81. package/dist/commonjs/operationsInterfaces/index.js +13 -0
  82. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  83. package/dist/commonjs/operationsInterfaces/sparkBatch.d.ts +28 -0
  84. package/dist/commonjs/operationsInterfaces/sparkBatch.d.ts.map +1 -0
  85. package/dist/commonjs/operationsInterfaces/sparkBatch.js +10 -0
  86. package/dist/commonjs/operationsInterfaces/sparkBatch.js.map +1 -0
  87. package/dist/commonjs/operationsInterfaces/sparkSessionOperations.d.ts +61 -0
  88. package/dist/commonjs/operationsInterfaces/sparkSessionOperations.d.ts.map +1 -0
  89. package/dist/commonjs/operationsInterfaces/sparkSessionOperations.js +10 -0
  90. package/dist/commonjs/operationsInterfaces/sparkSessionOperations.js.map +1 -0
  91. package/dist/commonjs/package.json +3 -0
  92. package/dist/commonjs/sparkClient.d.ts +24 -0
  93. package/dist/commonjs/sparkClient.d.ts.map +1 -0
  94. package/dist/commonjs/sparkClient.js +82 -0
  95. package/dist/commonjs/sparkClient.js.map +1 -0
  96. package/dist/commonjs/tracing.d.ts +2 -0
  97. package/dist/commonjs/tracing.d.ts.map +1 -0
  98. package/dist/commonjs/tracing.js +17 -0
  99. package/dist/commonjs/tracing.js.map +1 -0
  100. package/dist/commonjs/tsdoc-metadata.json +11 -0
  101. package/dist/esm/index.d.ts +4 -0
  102. package/dist/esm/index.d.ts.map +1 -0
  103. package/dist/esm/index.js +11 -0
  104. package/dist/esm/index.js.map +1 -0
  105. package/dist/esm/models/index.d.ts +548 -0
  106. package/dist/esm/models/index.d.ts.map +1 -0
  107. package/dist/esm/models/index.js +134 -0
  108. package/dist/esm/models/index.js.map +1 -0
  109. package/dist/esm/models/mappers.d.ts +19 -0
  110. package/dist/esm/models/mappers.d.ts.map +1 -0
  111. package/dist/esm/models/mappers.js +1151 -0
  112. package/dist/esm/models/mappers.js.map +1 -0
  113. package/dist/esm/models/parameters.d.ts +16 -0
  114. package/dist/esm/models/parameters.d.ts.map +1 -0
  115. package/dist/esm/models/parameters.js +133 -0
  116. package/dist/esm/models/parameters.js.map +1 -0
  117. package/dist/esm/operations/index.d.ts +3 -0
  118. package/dist/esm/operations/index.d.ts.map +1 -0
  119. package/dist/esm/operations/index.js +10 -0
  120. package/dist/esm/operations/index.js.map +1 -0
  121. package/dist/esm/operations/sparkBatch.d.ts +36 -0
  122. package/dist/esm/operations/sparkBatch.d.ts.map +1 -0
  123. package/dist/esm/operations/sparkBatch.js +121 -0
  124. package/dist/esm/operations/sparkBatch.js.map +1 -0
  125. package/dist/esm/operations/sparkSessionOperations.d.ts +69 -0
  126. package/dist/esm/operations/sparkSessionOperations.d.ts.map +1 -0
  127. package/dist/esm/operations/sparkSessionOperations.js +258 -0
  128. package/dist/esm/operations/sparkSessionOperations.js.map +1 -0
  129. package/dist/esm/operationsInterfaces/index.d.ts +3 -0
  130. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  131. package/dist/esm/operationsInterfaces/index.js +10 -0
  132. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  133. package/dist/esm/operationsInterfaces/sparkBatch.d.ts +28 -0
  134. package/dist/esm/operationsInterfaces/sparkBatch.d.ts.map +1 -0
  135. package/dist/esm/operationsInterfaces/sparkBatch.js +9 -0
  136. package/dist/esm/operationsInterfaces/sparkBatch.js.map +1 -0
  137. package/dist/esm/operationsInterfaces/sparkSessionOperations.d.ts +61 -0
  138. package/dist/esm/operationsInterfaces/sparkSessionOperations.d.ts.map +1 -0
  139. package/dist/esm/operationsInterfaces/sparkSessionOperations.js +9 -0
  140. package/dist/esm/operationsInterfaces/sparkSessionOperations.js.map +1 -0
  141. package/dist/esm/package.json +3 -0
  142. package/dist/esm/sparkClient.d.ts +24 -0
  143. package/dist/esm/sparkClient.d.ts.map +1 -0
  144. package/dist/esm/sparkClient.js +77 -0
  145. package/dist/esm/sparkClient.js.map +1 -0
  146. package/dist/esm/tracing.d.ts +2 -0
  147. package/dist/esm/tracing.d.ts.map +1 -0
  148. package/dist/esm/tracing.js +14 -0
  149. package/dist/esm/tracing.js.map +1 -0
  150. package/dist/react-native/index.d.ts +4 -0
  151. package/dist/react-native/index.d.ts.map +1 -0
  152. package/dist/react-native/index.js +11 -0
  153. package/dist/react-native/index.js.map +1 -0
  154. package/dist/react-native/models/index.d.ts +548 -0
  155. package/dist/react-native/models/index.d.ts.map +1 -0
  156. package/dist/react-native/models/index.js +134 -0
  157. package/dist/react-native/models/index.js.map +1 -0
  158. package/dist/react-native/models/mappers.d.ts +19 -0
  159. package/dist/react-native/models/mappers.d.ts.map +1 -0
  160. package/dist/react-native/models/mappers.js +1151 -0
  161. package/dist/react-native/models/mappers.js.map +1 -0
  162. package/dist/react-native/models/parameters.d.ts +16 -0
  163. package/dist/react-native/models/parameters.d.ts.map +1 -0
  164. package/dist/react-native/models/parameters.js +133 -0
  165. package/dist/react-native/models/parameters.js.map +1 -0
  166. package/dist/react-native/operations/index.d.ts +3 -0
  167. package/dist/react-native/operations/index.d.ts.map +1 -0
  168. package/dist/react-native/operations/index.js +10 -0
  169. package/dist/react-native/operations/index.js.map +1 -0
  170. package/dist/react-native/operations/sparkBatch.d.ts +36 -0
  171. package/dist/react-native/operations/sparkBatch.d.ts.map +1 -0
  172. package/dist/react-native/operations/sparkBatch.js +121 -0
  173. package/dist/react-native/operations/sparkBatch.js.map +1 -0
  174. package/dist/react-native/operations/sparkSessionOperations.d.ts +69 -0
  175. package/dist/react-native/operations/sparkSessionOperations.d.ts.map +1 -0
  176. package/dist/react-native/operations/sparkSessionOperations.js +258 -0
  177. package/dist/react-native/operations/sparkSessionOperations.js.map +1 -0
  178. package/dist/react-native/operationsInterfaces/index.d.ts +3 -0
  179. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  180. package/dist/react-native/operationsInterfaces/index.js +10 -0
  181. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  182. package/dist/react-native/operationsInterfaces/sparkBatch.d.ts +28 -0
  183. package/dist/react-native/operationsInterfaces/sparkBatch.d.ts.map +1 -0
  184. package/dist/react-native/operationsInterfaces/sparkBatch.js +9 -0
  185. package/dist/react-native/operationsInterfaces/sparkBatch.js.map +1 -0
  186. package/dist/react-native/operationsInterfaces/sparkSessionOperations.d.ts +61 -0
  187. package/dist/react-native/operationsInterfaces/sparkSessionOperations.d.ts.map +1 -0
  188. package/dist/react-native/operationsInterfaces/sparkSessionOperations.js +9 -0
  189. package/dist/react-native/operationsInterfaces/sparkSessionOperations.js.map +1 -0
  190. package/dist/react-native/package.json +3 -0
  191. package/dist/react-native/sparkClient.d.ts +24 -0
  192. package/dist/react-native/sparkClient.d.ts.map +1 -0
  193. package/dist/react-native/sparkClient.js +77 -0
  194. package/dist/react-native/sparkClient.js.map +1 -0
  195. package/dist/react-native/tracing.d.ts +2 -0
  196. package/dist/react-native/tracing.d.ts.map +1 -0
  197. package/dist/react-native/tracing.js +14 -0
  198. package/dist/react-native/tracing.js.map +1 -0
  199. package/{types → dist}/synapse-spark.d.ts +77 -77
  200. package/package.json +66 -52
  201. package/dist/index.js +0 -1943
  202. package/dist/index.js.map +0 -1
  203. package/dist/index.min.js +0 -1
  204. package/dist/index.min.js.map +0 -1
  205. package/tsconfig.json +0 -19
@@ -1,4 +1,4 @@
1
- import * as coreAuth from '@azure/core-auth';
1
+ import type * as coreAuth from '@azure/core-auth';
2
2
  import * as coreClient from '@azure/core-client';
3
3
 
4
4
  /** Known values of {@link LivyStatementStates} that the service accepts. */
@@ -128,60 +128,60 @@ export declare enum KnownSparkStatementLanguageType {
128
128
  }
129
129
 
130
130
  /**
131
- * Defines values for LivyStatementStates. \
131
+ * Defines values for LivyStatementStates.
132
132
  * {@link KnownLivyStatementStates} can be used interchangeably with LivyStatementStates,
133
133
  * this enum contains the known values that the service supports.
134
134
  * ### Known values supported by the service
135
- * **waiting** \
136
- * **running** \
137
- * **available** \
138
- * **error** \
139
- * **cancelling** \
135
+ * **waiting**
136
+ * **running**
137
+ * **available**
138
+ * **error**
139
+ * **cancelling**
140
140
  * **cancelled**
141
141
  */
142
142
  export declare type LivyStatementStates = string;
143
143
 
144
144
  /**
145
- * Defines values for LivyStates. \
145
+ * Defines values for LivyStates.
146
146
  * {@link KnownLivyStates} can be used interchangeably with LivyStates,
147
147
  * this enum contains the known values that the service supports.
148
148
  * ### Known values supported by the service
149
- * **not_started** \
150
- * **starting** \
151
- * **idle** \
152
- * **busy** \
153
- * **shutting_down** \
154
- * **error** \
155
- * **dead** \
156
- * **killed** \
157
- * **success** \
158
- * **running** \
149
+ * **not_started**
150
+ * **starting**
151
+ * **idle**
152
+ * **busy**
153
+ * **shutting_down**
154
+ * **error**
155
+ * **dead**
156
+ * **killed**
157
+ * **success**
158
+ * **running**
159
159
  * **recovering**
160
160
  */
161
161
  export declare type LivyStates = string;
162
162
 
163
163
  /**
164
- * Defines values for PluginCurrentState. \
164
+ * Defines values for PluginCurrentState.
165
165
  * {@link KnownPluginCurrentState} can be used interchangeably with PluginCurrentState,
166
166
  * this enum contains the known values that the service supports.
167
167
  * ### Known values supported by the service
168
- * **Preparation** \
169
- * **ResourceAcquisition** \
170
- * **Queued** \
171
- * **Submission** \
172
- * **Monitoring** \
173
- * **Cleanup** \
168
+ * **Preparation**
169
+ * **ResourceAcquisition**
170
+ * **Queued**
171
+ * **Submission**
172
+ * **Monitoring**
173
+ * **Cleanup**
174
174
  * **Ended**
175
175
  */
176
176
  export declare type PluginCurrentState = string;
177
177
 
178
178
  /**
179
- * Defines values for SchedulerCurrentState. \
179
+ * Defines values for SchedulerCurrentState.
180
180
  * {@link KnownSchedulerCurrentState} can be used interchangeably with SchedulerCurrentState,
181
181
  * this enum contains the known values that the service supports.
182
182
  * ### Known values supported by the service
183
- * **Queued** \
184
- * **Scheduled** \
183
+ * **Queued**
184
+ * **Scheduled**
185
185
  * **Ended**
186
186
  */
187
187
  export declare type SchedulerCurrentState = string;
@@ -190,25 +190,25 @@ export declare type SchedulerCurrentState = string;
190
190
  export declare interface SparkBatch {
191
191
  /**
192
192
  * List all spark batch jobs which are running under a particular spark pool.
193
- * @param options The options parameters.
193
+ * @param options - The options parameters.
194
194
  */
195
195
  getSparkBatchJobs(options?: SparkBatchGetSparkBatchJobsOptionalParams): Promise<SparkBatchGetSparkBatchJobsResponse>;
196
196
  /**
197
197
  * Create new spark batch job.
198
- * @param sparkBatchJobOptions Livy compatible batch job request payload.
199
- * @param options The options parameters.
198
+ * @param sparkBatchJobOptions - Livy compatible batch job request payload.
199
+ * @param options - The options parameters.
200
200
  */
201
201
  createSparkBatchJob(sparkBatchJobOptions: SparkBatchJobOptions, options?: SparkBatchCreateSparkBatchJobOptionalParams): Promise<SparkBatchCreateSparkBatchJobResponse>;
202
202
  /**
203
203
  * Gets a single spark batch job.
204
- * @param batchId Identifier for the batch job.
205
- * @param options The options parameters.
204
+ * @param batchId - Identifier for the batch job.
205
+ * @param options - The options parameters.
206
206
  */
207
207
  getSparkBatchJob(batchId: number, options?: SparkBatchGetSparkBatchJobOptionalParams): Promise<SparkBatchGetSparkBatchJobResponse>;
208
208
  /**
209
209
  * Cancels a running spark batch job.
210
- * @param batchId Identifier for the batch job.
211
- * @param options The options parameters.
210
+ * @param batchId - Identifier for the batch job.
211
+ * @param options - The options parameters.
212
212
  */
213
213
  cancelSparkBatchJob(batchId: number, options?: SparkBatchCancelSparkBatchJobOptionalParams): Promise<void>;
214
214
  }
@@ -329,13 +329,13 @@ export declare interface SparkBatchJobOptions {
329
329
  }
330
330
 
331
331
  /**
332
- * Defines values for SparkBatchJobResultType. \
332
+ * Defines values for SparkBatchJobResultType.
333
333
  * {@link KnownSparkBatchJobResultType} can be used interchangeably with SparkBatchJobResultType,
334
334
  * this enum contains the known values that the service supports.
335
335
  * ### Known values supported by the service
336
- * **Uncertain** \
337
- * **Succeeded** \
338
- * **Failed** \
336
+ * **Uncertain**
337
+ * **Succeeded**
338
+ * **Failed**
339
339
  * **Cancelled**
340
340
  */
341
341
  export declare type SparkBatchJobResultType = string;
@@ -369,11 +369,11 @@ export declare class SparkClient extends coreClient.ServiceClient {
369
369
  sparkPoolName: string;
370
370
  /**
371
371
  * Initializes a new instance of the SparkClient class.
372
- * @param credentials Subscription credentials which uniquely identify client subscription.
373
- * @param endpoint The workspace development endpoint, for example
372
+ * @param credentials - Subscription credentials which uniquely identify client subscription.
373
+ * @param endpoint - The workspace development endpoint, for example
374
374
  * https://myworkspace.dev.azuresynapse.net.
375
- * @param sparkPoolName Name of the spark pool.
376
- * @param options The parameter options
375
+ * @param sparkPoolName - Name of the spark pool.
376
+ * @param options - The parameter options
377
377
  */
378
378
  constructor(credentials: coreAuth.TokenCredential, endpoint: string, sparkPoolName: string, options?: SparkClientOptionalParams);
379
379
  sparkBatch: SparkBatch;
@@ -389,23 +389,23 @@ export declare interface SparkClientOptionalParams extends coreClient.ServiceCli
389
389
  }
390
390
 
391
391
  /**
392
- * Defines values for SparkErrorSource. \
392
+ * Defines values for SparkErrorSource.
393
393
  * {@link KnownSparkErrorSource} can be used interchangeably with SparkErrorSource,
394
394
  * this enum contains the known values that the service supports.
395
395
  * ### Known values supported by the service
396
- * **System** \
397
- * **User** \
398
- * **Unknown** \
396
+ * **System**
397
+ * **User**
398
+ * **Unknown**
399
399
  * **Dependency**
400
400
  */
401
401
  export declare type SparkErrorSource = string;
402
402
 
403
403
  /**
404
- * Defines values for SparkJobType. \
404
+ * Defines values for SparkJobType.
405
405
  * {@link KnownSparkJobType} can be used interchangeably with SparkJobType,
406
406
  * this enum contains the known values that the service supports.
407
407
  * ### Known values supported by the service
408
- * **SparkBatch** \
408
+ * **SparkBatch**
409
409
  * **SparkSession**
410
410
  */
411
411
  export declare type SparkJobType = string;
@@ -558,58 +558,58 @@ export declare type SparkSessionGetSparkStatementsResponse = SparkStatementColle
558
558
  export declare interface SparkSessionOperations {
559
559
  /**
560
560
  * List all spark sessions which are running under a particular spark pool.
561
- * @param options The options parameters.
561
+ * @param options - The options parameters.
562
562
  */
563
563
  getSparkSessions(options?: SparkSessionGetSparkSessionsOptionalParams): Promise<SparkSessionGetSparkSessionsResponse>;
564
564
  /**
565
565
  * Create new spark session.
566
- * @param sparkSessionOptions Livy compatible batch job request payload.
567
- * @param options The options parameters.
566
+ * @param sparkSessionOptions - Livy compatible batch job request payload.
567
+ * @param options - The options parameters.
568
568
  */
569
569
  createSparkSession(sparkSessionOptions: SparkSessionOptions, options?: SparkSessionCreateSparkSessionOptionalParams): Promise<SparkSessionCreateSparkSessionResponse>;
570
570
  /**
571
571
  * Gets a single spark session.
572
- * @param sessionId Identifier for the session.
573
- * @param options The options parameters.
572
+ * @param sessionId - Identifier for the session.
573
+ * @param options - The options parameters.
574
574
  */
575
575
  getSparkSession(sessionId: number, options?: SparkSessionGetSparkSessionOptionalParams): Promise<SparkSessionGetSparkSessionResponse>;
576
576
  /**
577
577
  * Cancels a running spark session.
578
- * @param sessionId Identifier for the session.
579
- * @param options The options parameters.
578
+ * @param sessionId - Identifier for the session.
579
+ * @param options - The options parameters.
580
580
  */
581
581
  cancelSparkSession(sessionId: number, options?: SparkSessionCancelSparkSessionOptionalParams): Promise<void>;
582
582
  /**
583
583
  * Sends a keep alive call to the current session to reset the session timeout.
584
- * @param sessionId Identifier for the session.
585
- * @param options The options parameters.
584
+ * @param sessionId - Identifier for the session.
585
+ * @param options - The options parameters.
586
586
  */
587
587
  resetSparkSessionTimeout(sessionId: number, options?: SparkSessionResetSparkSessionTimeoutOptionalParams): Promise<void>;
588
588
  /**
589
589
  * Gets a list of statements within a spark session.
590
- * @param sessionId Identifier for the session.
591
- * @param options The options parameters.
590
+ * @param sessionId - Identifier for the session.
591
+ * @param options - The options parameters.
592
592
  */
593
593
  getSparkStatements(sessionId: number, options?: SparkSessionGetSparkStatementsOptionalParams): Promise<SparkSessionGetSparkStatementsResponse>;
594
594
  /**
595
595
  * Create statement within a spark session.
596
- * @param sessionId Identifier for the session.
597
- * @param sparkStatementOptions Livy compatible batch job request payload.
598
- * @param options The options parameters.
596
+ * @param sessionId - Identifier for the session.
597
+ * @param sparkStatementOptions - Livy compatible batch job request payload.
598
+ * @param options - The options parameters.
599
599
  */
600
600
  createSparkStatement(sessionId: number, sparkStatementOptions: SparkStatementOptions, options?: SparkSessionCreateSparkStatementOptionalParams): Promise<SparkSessionCreateSparkStatementResponse>;
601
601
  /**
602
602
  * Gets a single statement within a spark session.
603
- * @param sessionId Identifier for the session.
604
- * @param statementId Identifier for the statement.
605
- * @param options The options parameters.
603
+ * @param sessionId - Identifier for the session.
604
+ * @param statementId - Identifier for the statement.
605
+ * @param options - The options parameters.
606
606
  */
607
607
  getSparkStatement(sessionId: number, statementId: number, options?: SparkSessionGetSparkStatementOptionalParams): Promise<SparkSessionGetSparkStatementResponse>;
608
608
  /**
609
609
  * Kill a statement within a session.
610
- * @param sessionId Identifier for the session.
611
- * @param statementId Identifier for the statement.
612
- * @param options The options parameters.
610
+ * @param sessionId - Identifier for the session.
611
+ * @param statementId - Identifier for the statement.
612
+ * @param options - The options parameters.
613
613
  */
614
614
  cancelSparkStatement(sessionId: number, statementId: number, options?: SparkSessionCancelSparkStatementOptionalParams): Promise<SparkSessionCancelSparkStatementResponse>;
615
615
  }
@@ -644,13 +644,13 @@ export declare interface SparkSessionResetSparkSessionTimeoutOptionalParams exte
644
644
  }
645
645
 
646
646
  /**
647
- * Defines values for SparkSessionResultType. \
647
+ * Defines values for SparkSessionResultType.
648
648
  * {@link KnownSparkSessionResultType} can be used interchangeably with SparkSessionResultType,
649
649
  * this enum contains the known values that the service supports.
650
650
  * ### Known values supported by the service
651
- * **Uncertain** \
652
- * **Succeeded** \
653
- * **Failed** \
651
+ * **Uncertain**
652
+ * **Succeeded**
653
+ * **Failed**
654
654
  * **Cancelled**
655
655
  */
656
656
  export declare type SparkSessionResultType = string;
@@ -687,13 +687,13 @@ export declare interface SparkStatementCollection {
687
687
  }
688
688
 
689
689
  /**
690
- * Defines values for SparkStatementLanguageType. \
690
+ * Defines values for SparkStatementLanguageType.
691
691
  * {@link KnownSparkStatementLanguageType} can be used interchangeably with SparkStatementLanguageType,
692
692
  * this enum contains the known values that the service supports.
693
693
  * ### Known values supported by the service
694
- * **spark** \
695
- * **pyspark** \
696
- * **dotnetspark** \
694
+ * **spark**
695
+ * **pyspark**
696
+ * **dotnetspark**
697
697
  * **sql**
698
698
  */
699
699
  export declare type SparkStatementLanguageType = string;
package/package.json CHANGED
@@ -5,13 +5,13 @@
5
5
  "homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/synapse/synapse-spark/README.md",
6
6
  "repository": "github:Azure/azure-sdk-for-js",
7
7
  "sdk-type": "client",
8
- "version": "1.0.0-alpha.20241121.1",
8
+ "version": "1.0.0-alpha.20241125.1",
9
9
  "dependencies": {
10
- "@azure/core-auth": "^1.3.0",
11
- "@azure/core-client": "^1.0.0",
12
- "@azure/core-rest-pipeline": "^1.9.0",
13
- "@azure/core-tracing": "^1.0.0",
14
- "tslib": "^2.2.0"
10
+ "@azure/core-auth": "^1.9.0",
11
+ "@azure/core-client": "^1.9.2",
12
+ "@azure/core-rest-pipeline": ">=1.18.0-alpha <1.18.0-alphb",
13
+ "@azure/core-tracing": "^1.2.0",
14
+ "tslib": "^2.8.1"
15
15
  },
16
16
  "keywords": [
17
17
  "node",
@@ -25,37 +25,23 @@
25
25
  "engines": {
26
26
  "node": ">=18.0.0"
27
27
  },
28
- "main": "./dist/index.js",
29
- "module": "./dist-esm/src/index.js",
30
- "types": "./types/synapse-spark.d.ts",
28
+ "main": "./dist/commonjs/index.js",
29
+ "module": "./dist/esm/index.js",
30
+ "types": "./dist/commonjs/index.d.ts",
31
31
  "devDependencies": {
32
- "@azure-tools/test-credential": "^1.0.0",
33
- "@azure-tools/test-recorder": "^3.0.0",
34
- "@azure-tools/test-utils": "^1.0.1",
32
+ "@azure-tools/test-credential": "^2.0.0",
33
+ "@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
34
+ "@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
35
35
  "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
36
36
  "@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
37
- "@types/chai": "^4.1.6",
38
- "@types/chai-as-promised": "^7.1.0",
39
- "@types/mocha": "^10.0.0",
40
37
  "@types/node": "^18.0.0",
41
- "chai": "^4.2.0",
42
- "chai-as-promised": "^7.1.1",
38
+ "@vitest/browser": "^2.1.5",
39
+ "@vitest/coverage-istanbul": "^2.1.5",
43
40
  "dotenv": "^16.0.0",
44
41
  "eslint": "^9.9.0",
45
- "karma": "^6.2.0",
46
- "karma-chrome-launcher": "^3.0.0",
47
- "karma-coverage": "^2.0.0",
48
- "karma-env-preprocessor": "^0.1.1",
49
- "karma-firefox-launcher": "^1.1.0",
50
- "karma-junit-reporter": "^2.0.1",
51
- "karma-mocha": "^2.0.1",
52
- "karma-mocha-reporter": "^2.2.5",
53
- "karma-source-map-support": "~1.4.0",
54
- "karma-sourcemap-loader": "^0.3.8",
55
- "mocha": "^10.0.0",
56
- "nyc": "^17.0.0",
57
- "ts-node": "^10.0.0",
58
- "typescript": "~5.6.2"
42
+ "playwright": "^1.49.0",
43
+ "typescript": "~5.6.2",
44
+ "vitest": "^2.1.5"
59
45
  },
60
46
  "//metadata": {
61
47
  "constantPaths": [
@@ -69,47 +55,75 @@
69
55
  }
70
56
  ]
71
57
  },
72
- "browser": {
73
- "./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js"
74
- },
58
+ "browser": "./dist/browser/index.js",
75
59
  "bugs": {
76
60
  "url": "https://github.com/Azure/azure-sdk-for-js/issues"
77
61
  },
78
62
  "files": [
79
- "dist/**/*.js",
80
- "dist/**/*.js.map",
81
- "dist/**/*.d.ts",
82
- "dist/**/*.d.ts.map",
83
- "esm/**/*.js",
84
- "esm/**/*.js.map",
85
- "esm/**/*.d.ts",
86
- "esm/**/*.d.ts.map",
87
- "types/synapse-spark.d.ts",
63
+ "dist/",
88
64
  "README.md",
89
- "tsconfig.json"
65
+ "LICENSE"
90
66
  ],
91
67
  "scripts": {
92
- "build": "tsc && dev-tool run bundle && npm run minify && npm run extract-api",
68
+ "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
93
69
  "build:samples": "echo Skipped.",
94
- "build:test": "tsc -p . && dev-tool run bundle",
95
- "check-format": "echo skip format check as this package has only auto generated code",
70
+ "build:test": "dev-tool run build-package && dev-tool run bundle",
71
+ "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
96
72
  "clean": "dev-tool run vendored rimraf --glob dist dist-* temp types *.tgz *.log",
97
73
  "extract-api": "dev-tool run extract-api",
98
- "format": "echo skip format as this package has only auto generated code",
74
+ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
99
75
  "integration-test": "echo skip",
100
76
  "integration-test:browser": "echo skip",
101
77
  "integration-test:node": "echo skip",
102
- "lint": "echo skipped",
78
+ "lint": "eslint README.md package.json api-extractor.json src test",
79
+ "lint:fix": "eslint README.md package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
103
80
  "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
104
81
  "pack": "npm pack 2>&1",
105
82
  "test": "npm run clean && npm run build:test && npm run unit-test",
106
83
  "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
107
84
  "test:node": "npm run clean && npm run build:test && npm run unit-test:node",
108
85
  "unit-test": "npm run unit-test:node && npm run unit-test:browser",
109
- "unit-test:browser": "dev-tool run test:browser",
110
- "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'",
86
+ "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
87
+ "unit-test:node": "dev-tool run test:vitest",
111
88
  "update-snippets": "echo skipped"
112
89
  },
113
90
  "sideEffects": false,
114
- "autoPublish": true
91
+ "autoPublish": true,
92
+ "type": "module",
93
+ "tshy": {
94
+ "exports": {
95
+ "./package.json": "./package.json",
96
+ ".": "./src/index.ts"
97
+ },
98
+ "dialects": [
99
+ "esm",
100
+ "commonjs"
101
+ ],
102
+ "esmDialects": [
103
+ "browser",
104
+ "react-native"
105
+ ],
106
+ "selfLink": false
107
+ },
108
+ "exports": {
109
+ "./package.json": "./package.json",
110
+ ".": {
111
+ "browser": {
112
+ "types": "./dist/browser/index.d.ts",
113
+ "default": "./dist/browser/index.js"
114
+ },
115
+ "react-native": {
116
+ "types": "./dist/react-native/index.d.ts",
117
+ "default": "./dist/react-native/index.js"
118
+ },
119
+ "import": {
120
+ "types": "./dist/esm/index.d.ts",
121
+ "default": "./dist/esm/index.js"
122
+ },
123
+ "require": {
124
+ "types": "./dist/commonjs/index.d.ts",
125
+ "default": "./dist/commonjs/index.js"
126
+ }
127
+ }
128
+ }
115
129
  }