@azure/cosmos 4.7.0-alpha.20251118.1 → 4.8.0-alpha.20251120.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 (801) hide show
  1. package/dist/browser/CosmosClientOptions.d.ts +1 -1
  2. package/dist/browser/CosmosClientOptions.js.map +1 -1
  3. package/dist/browser/client/ChangeFeed/ChangeFeedForEpkRange.d.ts.map +1 -1
  4. package/dist/browser/client/ChangeFeed/ChangeFeedForEpkRange.js +2 -34
  5. package/dist/browser/client/ChangeFeed/ChangeFeedForEpkRange.js.map +1 -1
  6. package/dist/browser/client/ChangeFeed/ChangeFeedForPartitionKey.d.ts.map +1 -1
  7. package/dist/browser/client/ChangeFeed/ChangeFeedForPartitionKey.js +2 -35
  8. package/dist/browser/client/ChangeFeed/ChangeFeedForPartitionKey.js.map +1 -1
  9. package/dist/browser/client/ChangeFeed/ChangeFeedIteratorOptions.d.ts +15 -0
  10. package/dist/browser/client/ChangeFeed/ChangeFeedIteratorOptions.d.ts.map +1 -1
  11. package/dist/browser/client/ChangeFeed/ChangeFeedIteratorOptions.js.map +1 -1
  12. package/dist/browser/client/ChangeFeed/InternalChangeFeedOptions.d.ts +3 -0
  13. package/dist/browser/client/ChangeFeed/InternalChangeFeedOptions.d.ts.map +1 -1
  14. package/dist/browser/client/ChangeFeed/InternalChangeFeedOptions.js.map +1 -1
  15. package/dist/browser/client/ChangeFeed/changeFeedUtils.d.ts +6 -0
  16. package/dist/browser/client/ChangeFeed/changeFeedUtils.d.ts.map +1 -1
  17. package/dist/browser/client/ChangeFeed/changeFeedUtils.js +47 -0
  18. package/dist/browser/client/ChangeFeed/changeFeedUtils.js.map +1 -1
  19. package/dist/browser/common/constants.d.ts.map +1 -1
  20. package/dist/browser/common/constants.js +16 -1
  21. package/dist/browser/common/constants.js.map +1 -1
  22. package/dist/browser/documents/ContinuationToken/CompositeQueryContinuationToken.d.ts +99 -0
  23. package/dist/browser/documents/ContinuationToken/CompositeQueryContinuationToken.d.ts.map +1 -0
  24. package/dist/browser/documents/ContinuationToken/CompositeQueryContinuationToken.js +84 -0
  25. package/dist/browser/documents/ContinuationToken/CompositeQueryContinuationToken.js.map +1 -0
  26. package/dist/browser/documents/ContinuationToken/OrderByQueryContinuationToken.d.ts +40 -0
  27. package/dist/browser/documents/ContinuationToken/OrderByQueryContinuationToken.d.ts.map +1 -0
  28. package/dist/browser/documents/ContinuationToken/OrderByQueryContinuationToken.js +39 -0
  29. package/dist/browser/documents/ContinuationToken/OrderByQueryContinuationToken.js.map +1 -0
  30. package/dist/browser/documents/ContinuationToken/PartitionRangeUpdate.d.ts +21 -0
  31. package/dist/browser/documents/ContinuationToken/PartitionRangeUpdate.d.ts.map +1 -0
  32. package/dist/browser/documents/ContinuationToken/PartitionRangeUpdate.js +4 -0
  33. package/dist/browser/documents/ContinuationToken/PartitionRangeUpdate.js.map +1 -0
  34. package/dist/browser/documents/VectorEmbeddingPolicy.d.ts +4 -0
  35. package/dist/browser/documents/VectorEmbeddingPolicy.d.ts.map +1 -1
  36. package/dist/browser/documents/VectorEmbeddingPolicy.js +4 -0
  37. package/dist/browser/documents/VectorEmbeddingPolicy.js.map +1 -1
  38. package/dist/browser/queryExecutionContext/Aggregators/MaxAggregator.d.ts.map +1 -1
  39. package/dist/browser/queryExecutionContext/Aggregators/MaxAggregator.js +4 -0
  40. package/dist/browser/queryExecutionContext/Aggregators/MaxAggregator.js.map +1 -1
  41. package/dist/browser/queryExecutionContext/Aggregators/MinAggregator.d.ts.map +1 -1
  42. package/dist/browser/queryExecutionContext/Aggregators/MinAggregator.js +4 -0
  43. package/dist/browser/queryExecutionContext/Aggregators/MinAggregator.js.map +1 -1
  44. package/dist/browser/queryExecutionContext/ContinuationTokenManager/BaseContinuationTokenManager.d.ts +2 -0
  45. package/dist/browser/queryExecutionContext/ContinuationTokenManager/BaseContinuationTokenManager.d.ts.map +1 -0
  46. package/dist/browser/queryExecutionContext/ContinuationTokenManager/BaseContinuationTokenManager.js +174 -0
  47. package/dist/browser/queryExecutionContext/ContinuationTokenManager/BaseContinuationTokenManager.js.map +1 -0
  48. package/dist/browser/queryExecutionContext/ContinuationTokenManager/ContinuationTokenManagerFactory.d.ts +2 -0
  49. package/dist/browser/queryExecutionContext/ContinuationTokenManager/ContinuationTokenManagerFactory.d.ts.map +1 -0
  50. package/dist/browser/queryExecutionContext/ContinuationTokenManager/ContinuationTokenManagerFactory.js +28 -0
  51. package/dist/browser/queryExecutionContext/ContinuationTokenManager/ContinuationTokenManagerFactory.js.map +1 -0
  52. package/dist/browser/queryExecutionContext/ContinuationTokenManager/OrderByQueryContinuationTokenManager.d.ts +2 -0
  53. package/dist/browser/queryExecutionContext/ContinuationTokenManager/OrderByQueryContinuationTokenManager.d.ts.map +1 -0
  54. package/dist/browser/queryExecutionContext/ContinuationTokenManager/OrderByQueryContinuationTokenManager.js +129 -0
  55. package/dist/browser/queryExecutionContext/ContinuationTokenManager/OrderByQueryContinuationTokenManager.js.map +1 -0
  56. package/dist/browser/queryExecutionContext/ContinuationTokenManager/ParallelQueryContinuationTokenManager.d.ts +2 -0
  57. package/dist/browser/queryExecutionContext/ContinuationTokenManager/ParallelQueryContinuationTokenManager.d.ts.map +1 -0
  58. package/dist/browser/queryExecutionContext/ContinuationTokenManager/ParallelQueryContinuationTokenManager.js +66 -0
  59. package/dist/browser/queryExecutionContext/ContinuationTokenManager/ParallelQueryContinuationTokenManager.js.map +1 -0
  60. package/dist/browser/queryExecutionContext/ContinuationTokenParser.d.ts +2 -0
  61. package/dist/browser/queryExecutionContext/ContinuationTokenParser.d.ts.map +1 -0
  62. package/dist/browser/queryExecutionContext/ContinuationTokenParser.js +23 -0
  63. package/dist/browser/queryExecutionContext/ContinuationTokenParser.js.map +1 -0
  64. package/dist/browser/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.d.ts.map +1 -1
  65. package/dist/browser/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.js +22 -7
  66. package/dist/browser/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.js.map +1 -1
  67. package/dist/browser/queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.d.ts.map +1 -1
  68. package/dist/browser/queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.js +21 -5
  69. package/dist/browser/queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.js.map +1 -1
  70. package/dist/browser/queryExecutionContext/EndpointComponent/NonStreamingOrderByDistinctEndpointComponent.d.ts.map +1 -1
  71. package/dist/browser/queryExecutionContext/EndpointComponent/NonStreamingOrderByDistinctEndpointComponent.js +28 -6
  72. package/dist/browser/queryExecutionContext/EndpointComponent/NonStreamingOrderByDistinctEndpointComponent.js.map +1 -1
  73. package/dist/browser/queryExecutionContext/EndpointComponent/NonStreamingOrderByEndpointComponent.d.ts.map +1 -1
  74. package/dist/browser/queryExecutionContext/EndpointComponent/NonStreamingOrderByEndpointComponent.js +23 -7
  75. package/dist/browser/queryExecutionContext/EndpointComponent/NonStreamingOrderByEndpointComponent.js.map +1 -1
  76. package/dist/browser/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.d.ts.map +1 -1
  77. package/dist/browser/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js +35 -4
  78. package/dist/browser/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js.map +1 -1
  79. package/dist/browser/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.d.ts +1 -0
  80. package/dist/browser/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.d.ts.map +1 -1
  81. package/dist/browser/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js +22 -4
  82. package/dist/browser/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js.map +1 -1
  83. package/dist/browser/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.d.ts +1 -1
  84. package/dist/browser/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.d.ts.map +1 -1
  85. package/dist/browser/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js +24 -5
  86. package/dist/browser/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js.map +1 -1
  87. package/dist/browser/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.d.ts.map +1 -1
  88. package/dist/browser/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js +18 -5
  89. package/dist/browser/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js.map +1 -1
  90. package/dist/browser/queryExecutionContext/LegacyFetchImplementation.d.ts +14 -0
  91. package/dist/browser/queryExecutionContext/LegacyFetchImplementation.d.ts.map +1 -0
  92. package/dist/browser/queryExecutionContext/LegacyFetchImplementation.js +55 -0
  93. package/dist/browser/queryExecutionContext/LegacyFetchImplementation.js.map +1 -0
  94. package/dist/browser/queryExecutionContext/PartitionRangeManager.d.ts +73 -0
  95. package/dist/browser/queryExecutionContext/PartitionRangeManager.d.ts.map +1 -0
  96. package/dist/browser/queryExecutionContext/PartitionRangeManager.js +156 -0
  97. package/dist/browser/queryExecutionContext/PartitionRangeManager.js.map +1 -0
  98. package/dist/browser/queryExecutionContext/PartitionRangeUtils.d.ts +19 -0
  99. package/dist/browser/queryExecutionContext/PartitionRangeUtils.d.ts.map +1 -0
  100. package/dist/browser/queryExecutionContext/PartitionRangeUtils.js +105 -0
  101. package/dist/browser/queryExecutionContext/PartitionRangeUtils.js.map +1 -0
  102. package/dist/browser/queryExecutionContext/QueryControlFetchImplementation.d.ts +20 -0
  103. package/dist/browser/queryExecutionContext/QueryControlFetchImplementation.d.ts.map +1 -0
  104. package/dist/browser/queryExecutionContext/QueryControlFetchImplementation.js +93 -0
  105. package/dist/browser/queryExecutionContext/QueryControlFetchImplementation.js.map +1 -0
  106. package/dist/browser/queryExecutionContext/QueryValidationHelper.d.ts +9 -0
  107. package/dist/browser/queryExecutionContext/QueryValidationHelper.d.ts.map +1 -0
  108. package/dist/browser/queryExecutionContext/QueryValidationHelper.js +65 -0
  109. package/dist/browser/queryExecutionContext/QueryValidationHelper.js.map +1 -0
  110. package/dist/browser/queryExecutionContext/defaultQueryExecutionContext.d.ts +2 -2
  111. package/dist/browser/queryExecutionContext/defaultQueryExecutionContext.d.ts.map +1 -1
  112. package/dist/browser/queryExecutionContext/defaultQueryExecutionContext.js +2 -1
  113. package/dist/browser/queryExecutionContext/defaultQueryExecutionContext.js.map +1 -1
  114. package/dist/browser/queryExecutionContext/documentProducer.d.ts +9 -3
  115. package/dist/browser/queryExecutionContext/documentProducer.d.ts.map +1 -1
  116. package/dist/browser/queryExecutionContext/documentProducer.js +17 -4
  117. package/dist/browser/queryExecutionContext/documentProducer.js.map +1 -1
  118. package/dist/browser/queryExecutionContext/hybridQueryExecutionContext.d.ts +1 -1
  119. package/dist/browser/queryExecutionContext/hybridQueryExecutionContext.d.ts.map +1 -1
  120. package/dist/browser/queryExecutionContext/hybridQueryExecutionContext.js +18 -13
  121. package/dist/browser/queryExecutionContext/hybridQueryExecutionContext.js.map +1 -1
  122. package/dist/browser/queryExecutionContext/index.d.ts +7 -0
  123. package/dist/browser/queryExecutionContext/index.d.ts.map +1 -1
  124. package/dist/browser/queryExecutionContext/index.js +4 -0
  125. package/dist/browser/queryExecutionContext/index.js.map +1 -1
  126. package/dist/browser/queryExecutionContext/nonStreamingOrderByResult.d.ts +5 -1
  127. package/dist/browser/queryExecutionContext/nonStreamingOrderByResult.d.ts.map +1 -1
  128. package/dist/browser/queryExecutionContext/nonStreamingOrderByResult.js.map +1 -1
  129. package/dist/browser/queryExecutionContext/orderByComparator.d.ts +11 -2
  130. package/dist/browser/queryExecutionContext/orderByComparator.d.ts.map +1 -1
  131. package/dist/browser/queryExecutionContext/orderByComparator.js +20 -3
  132. package/dist/browser/queryExecutionContext/orderByComparator.js.map +1 -1
  133. package/dist/browser/queryExecutionContext/orderByDocumentProducerComparator.d.ts +4 -0
  134. package/dist/browser/queryExecutionContext/orderByDocumentProducerComparator.d.ts.map +1 -1
  135. package/dist/browser/queryExecutionContext/orderByDocumentProducerComparator.js +18 -7
  136. package/dist/browser/queryExecutionContext/orderByDocumentProducerComparator.js.map +1 -1
  137. package/dist/browser/queryExecutionContext/orderByQueryExecutionContext.d.ts +7 -10
  138. package/dist/browser/queryExecutionContext/orderByQueryExecutionContext.d.ts.map +1 -1
  139. package/dist/browser/queryExecutionContext/orderByQueryExecutionContext.js +30 -23
  140. package/dist/browser/queryExecutionContext/orderByQueryExecutionContext.js.map +1 -1
  141. package/dist/browser/queryExecutionContext/parallelQueryExecutionContext.d.ts +18 -10
  142. package/dist/browser/queryExecutionContext/parallelQueryExecutionContext.d.ts.map +1 -1
  143. package/dist/browser/queryExecutionContext/parallelQueryExecutionContext.js +47 -23
  144. package/dist/browser/queryExecutionContext/parallelQueryExecutionContext.js.map +1 -1
  145. package/dist/browser/queryExecutionContext/parallelQueryExecutionContextBase.d.ts +160 -26
  146. package/dist/browser/queryExecutionContext/parallelQueryExecutionContextBase.d.ts.map +1 -1
  147. package/dist/browser/queryExecutionContext/parallelQueryExecutionContextBase.js +453 -106
  148. package/dist/browser/queryExecutionContext/parallelQueryExecutionContextBase.js.map +1 -1
  149. package/dist/browser/queryExecutionContext/parallelQueryResult.d.ts +35 -0
  150. package/dist/browser/queryExecutionContext/parallelQueryResult.d.ts.map +1 -0
  151. package/dist/browser/queryExecutionContext/parallelQueryResult.js +23 -0
  152. package/dist/browser/queryExecutionContext/parallelQueryResult.js.map +1 -0
  153. package/dist/browser/queryExecutionContext/pipelinedQueryExecutionContext.d.ts +37 -7
  154. package/dist/browser/queryExecutionContext/pipelinedQueryExecutionContext.d.ts.map +1 -1
  155. package/dist/browser/queryExecutionContext/pipelinedQueryExecutionContext.js +173 -120
  156. package/dist/browser/queryExecutionContext/pipelinedQueryExecutionContext.js.map +1 -1
  157. package/dist/browser/queryExecutionContext/queryFilteringStrategy/FilterStrategy.d.ts +40 -0
  158. package/dist/browser/queryExecutionContext/queryFilteringStrategy/FilterStrategy.d.ts.map +1 -0
  159. package/dist/browser/queryExecutionContext/queryFilteringStrategy/FilterStrategy.js +4 -0
  160. package/dist/browser/queryExecutionContext/queryFilteringStrategy/FilterStrategy.js.map +1 -0
  161. package/dist/browser/queryExecutionContext/queryFilteringStrategy/OrderByQueryRangeStrategy.d.ts +49 -0
  162. package/dist/browser/queryExecutionContext/queryFilteringStrategy/OrderByQueryRangeStrategy.d.ts.map +1 -0
  163. package/dist/browser/queryExecutionContext/queryFilteringStrategy/OrderByQueryRangeStrategy.js +310 -0
  164. package/dist/browser/queryExecutionContext/queryFilteringStrategy/OrderByQueryRangeStrategy.js.map +1 -0
  165. package/dist/browser/queryExecutionContext/queryFilteringStrategy/ParallelQueryRangeStrategy.d.ts +18 -0
  166. package/dist/browser/queryExecutionContext/queryFilteringStrategy/ParallelQueryRangeStrategy.d.ts.map +1 -0
  167. package/dist/browser/queryExecutionContext/queryFilteringStrategy/ParallelQueryRangeStrategy.js +102 -0
  168. package/dist/browser/queryExecutionContext/queryFilteringStrategy/ParallelQueryRangeStrategy.js.map +1 -0
  169. package/dist/browser/queryExecutionContext/queryFilteringStrategy/RidSkipCountFilter.d.ts +51 -0
  170. package/dist/browser/queryExecutionContext/queryFilteringStrategy/RidSkipCountFilter.d.ts.map +1 -0
  171. package/dist/browser/queryExecutionContext/queryFilteringStrategy/RidSkipCountFilter.js +180 -0
  172. package/dist/browser/queryExecutionContext/queryFilteringStrategy/RidSkipCountFilter.js.map +1 -0
  173. package/dist/browser/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeManager.d.ts +76 -0
  174. package/dist/browser/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeManager.d.ts.map +1 -0
  175. package/dist/browser/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeManager.js +93 -0
  176. package/dist/browser/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeManager.js.map +1 -0
  177. package/dist/browser/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeStrategy.d.ts +30 -0
  178. package/dist/browser/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeStrategy.d.ts.map +1 -0
  179. package/dist/browser/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeStrategy.js +4 -0
  180. package/dist/browser/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeStrategy.js.map +1 -0
  181. package/dist/browser/queryExecutionContext/queryProcessingStrategy/OrderByQueryProcessingStrategy.d.ts +29 -0
  182. package/dist/browser/queryExecutionContext/queryProcessingStrategy/OrderByQueryProcessingStrategy.d.ts.map +1 -0
  183. package/dist/browser/queryExecutionContext/queryProcessingStrategy/OrderByQueryProcessingStrategy.js +53 -0
  184. package/dist/browser/queryExecutionContext/queryProcessingStrategy/OrderByQueryProcessingStrategy.js.map +1 -0
  185. package/dist/browser/queryExecutionContext/queryProcessingStrategy/ParallelQueryProcessingStrategy.d.ts +27 -0
  186. package/dist/browser/queryExecutionContext/queryProcessingStrategy/ParallelQueryProcessingStrategy.d.ts.map +1 -0
  187. package/dist/browser/queryExecutionContext/queryProcessingStrategy/ParallelQueryProcessingStrategy.js +34 -0
  188. package/dist/browser/queryExecutionContext/queryProcessingStrategy/ParallelQueryProcessingStrategy.js.map +1 -0
  189. package/dist/browser/queryExecutionContext/queryProcessingStrategy/QueryProcessingStrategy.d.ts +36 -0
  190. package/dist/browser/queryExecutionContext/queryProcessingStrategy/QueryProcessingStrategy.d.ts.map +1 -0
  191. package/dist/browser/queryExecutionContext/queryProcessingStrategy/QueryProcessingStrategy.js +4 -0
  192. package/dist/browser/queryExecutionContext/queryProcessingStrategy/QueryProcessingStrategy.js.map +1 -0
  193. package/dist/browser/queryExecutionContext/queryRangeMapping.d.ts +22 -0
  194. package/dist/browser/queryExecutionContext/queryRangeMapping.d.ts.map +1 -0
  195. package/dist/browser/queryExecutionContext/queryRangeMapping.js +4 -0
  196. package/dist/browser/queryExecutionContext/queryRangeMapping.js.map +1 -0
  197. package/dist/browser/queryIterator.js.map +1 -1
  198. package/dist/browser/utils/offers.d.ts.map +1 -1
  199. package/dist/browser/utils/offers.js +0 -1
  200. package/dist/browser/utils/offers.js.map +1 -1
  201. package/dist/commonjs/CosmosClientOptions.d.ts +1 -1
  202. package/dist/commonjs/CosmosClientOptions.js.map +1 -1
  203. package/dist/commonjs/client/ChangeFeed/ChangeFeedForEpkRange.d.ts.map +1 -1
  204. package/dist/commonjs/client/ChangeFeed/ChangeFeedForEpkRange.js +1 -33
  205. package/dist/commonjs/client/ChangeFeed/ChangeFeedForEpkRange.js.map +1 -1
  206. package/dist/commonjs/client/ChangeFeed/ChangeFeedForPartitionKey.d.ts.map +1 -1
  207. package/dist/commonjs/client/ChangeFeed/ChangeFeedForPartitionKey.js +1 -34
  208. package/dist/commonjs/client/ChangeFeed/ChangeFeedForPartitionKey.js.map +1 -1
  209. package/dist/commonjs/client/ChangeFeed/ChangeFeedIteratorOptions.d.ts +15 -0
  210. package/dist/commonjs/client/ChangeFeed/ChangeFeedIteratorOptions.d.ts.map +1 -1
  211. package/dist/commonjs/client/ChangeFeed/ChangeFeedIteratorOptions.js.map +1 -1
  212. package/dist/commonjs/client/ChangeFeed/InternalChangeFeedOptions.d.ts +3 -0
  213. package/dist/commonjs/client/ChangeFeed/InternalChangeFeedOptions.d.ts.map +1 -1
  214. package/dist/commonjs/client/ChangeFeed/InternalChangeFeedOptions.js.map +1 -1
  215. package/dist/commonjs/client/ChangeFeed/changeFeedUtils.d.ts +6 -0
  216. package/dist/commonjs/client/ChangeFeed/changeFeedUtils.d.ts.map +1 -1
  217. package/dist/commonjs/client/ChangeFeed/changeFeedUtils.js +48 -0
  218. package/dist/commonjs/client/ChangeFeed/changeFeedUtils.js.map +1 -1
  219. package/dist/commonjs/common/constants.d.ts.map +1 -1
  220. package/dist/commonjs/common/constants.js +13 -2
  221. package/dist/commonjs/common/constants.js.map +1 -1
  222. package/dist/commonjs/documents/ContinuationToken/CompositeQueryContinuationToken.d.ts +99 -0
  223. package/dist/commonjs/documents/ContinuationToken/CompositeQueryContinuationToken.d.ts.map +1 -0
  224. package/dist/commonjs/documents/ContinuationToken/CompositeQueryContinuationToken.js +93 -0
  225. package/dist/commonjs/documents/ContinuationToken/CompositeQueryContinuationToken.js.map +1 -0
  226. package/dist/commonjs/documents/ContinuationToken/OrderByQueryContinuationToken.d.ts +40 -0
  227. package/dist/commonjs/documents/ContinuationToken/OrderByQueryContinuationToken.d.ts.map +1 -0
  228. package/dist/commonjs/documents/ContinuationToken/OrderByQueryContinuationToken.js +44 -0
  229. package/dist/commonjs/documents/ContinuationToken/OrderByQueryContinuationToken.js.map +1 -0
  230. package/dist/commonjs/documents/ContinuationToken/PartitionRangeUpdate.d.ts +21 -0
  231. package/dist/commonjs/documents/ContinuationToken/PartitionRangeUpdate.d.ts.map +1 -0
  232. package/dist/commonjs/documents/ContinuationToken/PartitionRangeUpdate.js +5 -0
  233. package/dist/commonjs/documents/ContinuationToken/PartitionRangeUpdate.js.map +1 -0
  234. package/dist/commonjs/documents/VectorEmbeddingPolicy.d.ts +4 -0
  235. package/dist/commonjs/documents/VectorEmbeddingPolicy.d.ts.map +1 -1
  236. package/dist/commonjs/documents/VectorEmbeddingPolicy.js +4 -0
  237. package/dist/commonjs/documents/VectorEmbeddingPolicy.js.map +1 -1
  238. package/dist/commonjs/queryExecutionContext/Aggregators/MaxAggregator.d.ts.map +1 -1
  239. package/dist/commonjs/queryExecutionContext/Aggregators/MaxAggregator.js +4 -0
  240. package/dist/commonjs/queryExecutionContext/Aggregators/MaxAggregator.js.map +1 -1
  241. package/dist/commonjs/queryExecutionContext/Aggregators/MinAggregator.d.ts.map +1 -1
  242. package/dist/commonjs/queryExecutionContext/Aggregators/MinAggregator.js +4 -0
  243. package/dist/commonjs/queryExecutionContext/Aggregators/MinAggregator.js.map +1 -1
  244. package/dist/commonjs/queryExecutionContext/ContinuationTokenManager/BaseContinuationTokenManager.d.ts +2 -0
  245. package/dist/commonjs/queryExecutionContext/ContinuationTokenManager/BaseContinuationTokenManager.d.ts.map +1 -0
  246. package/dist/commonjs/queryExecutionContext/ContinuationTokenManager/BaseContinuationTokenManager.js +178 -0
  247. package/dist/commonjs/queryExecutionContext/ContinuationTokenManager/BaseContinuationTokenManager.js.map +1 -0
  248. package/dist/commonjs/queryExecutionContext/ContinuationTokenManager/ContinuationTokenManagerFactory.d.ts +2 -0
  249. package/dist/commonjs/queryExecutionContext/ContinuationTokenManager/ContinuationTokenManagerFactory.d.ts.map +1 -0
  250. package/dist/commonjs/queryExecutionContext/ContinuationTokenManager/ContinuationTokenManagerFactory.js +31 -0
  251. package/dist/commonjs/queryExecutionContext/ContinuationTokenManager/ContinuationTokenManagerFactory.js.map +1 -0
  252. package/dist/commonjs/queryExecutionContext/ContinuationTokenManager/OrderByQueryContinuationTokenManager.d.ts +2 -0
  253. package/dist/commonjs/queryExecutionContext/ContinuationTokenManager/OrderByQueryContinuationTokenManager.d.ts.map +1 -0
  254. package/dist/commonjs/queryExecutionContext/ContinuationTokenManager/OrderByQueryContinuationTokenManager.js +133 -0
  255. package/dist/commonjs/queryExecutionContext/ContinuationTokenManager/OrderByQueryContinuationTokenManager.js.map +1 -0
  256. package/dist/commonjs/queryExecutionContext/ContinuationTokenManager/ParallelQueryContinuationTokenManager.d.ts +2 -0
  257. package/dist/commonjs/queryExecutionContext/ContinuationTokenManager/ParallelQueryContinuationTokenManager.d.ts.map +1 -0
  258. package/dist/commonjs/queryExecutionContext/ContinuationTokenManager/ParallelQueryContinuationTokenManager.js +70 -0
  259. package/dist/commonjs/queryExecutionContext/ContinuationTokenManager/ParallelQueryContinuationTokenManager.js.map +1 -0
  260. package/dist/commonjs/queryExecutionContext/ContinuationTokenParser.d.ts +2 -0
  261. package/dist/commonjs/queryExecutionContext/ContinuationTokenParser.d.ts.map +1 -0
  262. package/dist/commonjs/queryExecutionContext/ContinuationTokenParser.js +26 -0
  263. package/dist/commonjs/queryExecutionContext/ContinuationTokenParser.js.map +1 -0
  264. package/dist/commonjs/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.d.ts.map +1 -1
  265. package/dist/commonjs/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.js +22 -7
  266. package/dist/commonjs/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.js.map +1 -1
  267. package/dist/commonjs/queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.d.ts.map +1 -1
  268. package/dist/commonjs/queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.js +21 -5
  269. package/dist/commonjs/queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.js.map +1 -1
  270. package/dist/commonjs/queryExecutionContext/EndpointComponent/NonStreamingOrderByDistinctEndpointComponent.d.ts.map +1 -1
  271. package/dist/commonjs/queryExecutionContext/EndpointComponent/NonStreamingOrderByDistinctEndpointComponent.js +28 -6
  272. package/dist/commonjs/queryExecutionContext/EndpointComponent/NonStreamingOrderByDistinctEndpointComponent.js.map +1 -1
  273. package/dist/commonjs/queryExecutionContext/EndpointComponent/NonStreamingOrderByEndpointComponent.d.ts.map +1 -1
  274. package/dist/commonjs/queryExecutionContext/EndpointComponent/NonStreamingOrderByEndpointComponent.js +23 -7
  275. package/dist/commonjs/queryExecutionContext/EndpointComponent/NonStreamingOrderByEndpointComponent.js.map +1 -1
  276. package/dist/commonjs/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.d.ts.map +1 -1
  277. package/dist/commonjs/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js +35 -4
  278. package/dist/commonjs/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js.map +1 -1
  279. package/dist/commonjs/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.d.ts +1 -0
  280. package/dist/commonjs/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.d.ts.map +1 -1
  281. package/dist/commonjs/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js +22 -4
  282. package/dist/commonjs/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js.map +1 -1
  283. package/dist/commonjs/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.d.ts +1 -1
  284. package/dist/commonjs/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.d.ts.map +1 -1
  285. package/dist/commonjs/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js +24 -5
  286. package/dist/commonjs/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js.map +1 -1
  287. package/dist/commonjs/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.d.ts.map +1 -1
  288. package/dist/commonjs/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js +18 -5
  289. package/dist/commonjs/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js.map +1 -1
  290. package/dist/commonjs/queryExecutionContext/LegacyFetchImplementation.d.ts +14 -0
  291. package/dist/commonjs/queryExecutionContext/LegacyFetchImplementation.d.ts.map +1 -0
  292. package/dist/commonjs/queryExecutionContext/LegacyFetchImplementation.js +59 -0
  293. package/dist/commonjs/queryExecutionContext/LegacyFetchImplementation.js.map +1 -0
  294. package/dist/commonjs/queryExecutionContext/PartitionRangeManager.d.ts +73 -0
  295. package/dist/commonjs/queryExecutionContext/PartitionRangeManager.d.ts.map +1 -0
  296. package/dist/commonjs/queryExecutionContext/PartitionRangeManager.js +160 -0
  297. package/dist/commonjs/queryExecutionContext/PartitionRangeManager.js.map +1 -0
  298. package/dist/commonjs/queryExecutionContext/PartitionRangeUtils.d.ts +19 -0
  299. package/dist/commonjs/queryExecutionContext/PartitionRangeUtils.d.ts.map +1 -0
  300. package/dist/commonjs/queryExecutionContext/PartitionRangeUtils.js +109 -0
  301. package/dist/commonjs/queryExecutionContext/PartitionRangeUtils.js.map +1 -0
  302. package/dist/commonjs/queryExecutionContext/QueryControlFetchImplementation.d.ts +20 -0
  303. package/dist/commonjs/queryExecutionContext/QueryControlFetchImplementation.d.ts.map +1 -0
  304. package/dist/commonjs/queryExecutionContext/QueryControlFetchImplementation.js +97 -0
  305. package/dist/commonjs/queryExecutionContext/QueryControlFetchImplementation.js.map +1 -0
  306. package/dist/commonjs/queryExecutionContext/QueryValidationHelper.d.ts +9 -0
  307. package/dist/commonjs/queryExecutionContext/QueryValidationHelper.d.ts.map +1 -0
  308. package/dist/commonjs/queryExecutionContext/QueryValidationHelper.js +69 -0
  309. package/dist/commonjs/queryExecutionContext/QueryValidationHelper.js.map +1 -0
  310. package/dist/commonjs/queryExecutionContext/defaultQueryExecutionContext.d.ts +2 -2
  311. package/dist/commonjs/queryExecutionContext/defaultQueryExecutionContext.d.ts.map +1 -1
  312. package/dist/commonjs/queryExecutionContext/defaultQueryExecutionContext.js +2 -1
  313. package/dist/commonjs/queryExecutionContext/defaultQueryExecutionContext.js.map +1 -1
  314. package/dist/commonjs/queryExecutionContext/documentProducer.d.ts +9 -3
  315. package/dist/commonjs/queryExecutionContext/documentProducer.d.ts.map +1 -1
  316. package/dist/commonjs/queryExecutionContext/documentProducer.js +17 -4
  317. package/dist/commonjs/queryExecutionContext/documentProducer.js.map +1 -1
  318. package/dist/commonjs/queryExecutionContext/hybridQueryExecutionContext.d.ts +1 -1
  319. package/dist/commonjs/queryExecutionContext/hybridQueryExecutionContext.d.ts.map +1 -1
  320. package/dist/commonjs/queryExecutionContext/hybridQueryExecutionContext.js +18 -13
  321. package/dist/commonjs/queryExecutionContext/hybridQueryExecutionContext.js.map +1 -1
  322. package/dist/commonjs/queryExecutionContext/index.d.ts +7 -0
  323. package/dist/commonjs/queryExecutionContext/index.d.ts.map +1 -1
  324. package/dist/commonjs/queryExecutionContext/index.js +10 -0
  325. package/dist/commonjs/queryExecutionContext/index.js.map +1 -1
  326. package/dist/commonjs/queryExecutionContext/nonStreamingOrderByResult.d.ts +5 -1
  327. package/dist/commonjs/queryExecutionContext/nonStreamingOrderByResult.d.ts.map +1 -1
  328. package/dist/commonjs/queryExecutionContext/nonStreamingOrderByResult.js.map +1 -1
  329. package/dist/commonjs/queryExecutionContext/orderByComparator.d.ts +11 -2
  330. package/dist/commonjs/queryExecutionContext/orderByComparator.d.ts.map +1 -1
  331. package/dist/commonjs/queryExecutionContext/orderByComparator.js +21 -3
  332. package/dist/commonjs/queryExecutionContext/orderByComparator.js.map +1 -1
  333. package/dist/commonjs/queryExecutionContext/orderByDocumentProducerComparator.d.ts +4 -0
  334. package/dist/commonjs/queryExecutionContext/orderByDocumentProducerComparator.d.ts.map +1 -1
  335. package/dist/commonjs/queryExecutionContext/orderByDocumentProducerComparator.js +18 -7
  336. package/dist/commonjs/queryExecutionContext/orderByDocumentProducerComparator.js.map +1 -1
  337. package/dist/commonjs/queryExecutionContext/orderByQueryExecutionContext.d.ts +7 -10
  338. package/dist/commonjs/queryExecutionContext/orderByQueryExecutionContext.d.ts.map +1 -1
  339. package/dist/commonjs/queryExecutionContext/orderByQueryExecutionContext.js +30 -23
  340. package/dist/commonjs/queryExecutionContext/orderByQueryExecutionContext.js.map +1 -1
  341. package/dist/commonjs/queryExecutionContext/parallelQueryExecutionContext.d.ts +18 -10
  342. package/dist/commonjs/queryExecutionContext/parallelQueryExecutionContext.d.ts.map +1 -1
  343. package/dist/commonjs/queryExecutionContext/parallelQueryExecutionContext.js +47 -23
  344. package/dist/commonjs/queryExecutionContext/parallelQueryExecutionContext.js.map +1 -1
  345. package/dist/commonjs/queryExecutionContext/parallelQueryExecutionContextBase.d.ts +160 -26
  346. package/dist/commonjs/queryExecutionContext/parallelQueryExecutionContextBase.d.ts.map +1 -1
  347. package/dist/commonjs/queryExecutionContext/parallelQueryExecutionContextBase.js +453 -106
  348. package/dist/commonjs/queryExecutionContext/parallelQueryExecutionContextBase.js.map +1 -1
  349. package/dist/commonjs/queryExecutionContext/parallelQueryResult.d.ts +35 -0
  350. package/dist/commonjs/queryExecutionContext/parallelQueryResult.d.ts.map +1 -0
  351. package/dist/commonjs/queryExecutionContext/parallelQueryResult.js +26 -0
  352. package/dist/commonjs/queryExecutionContext/parallelQueryResult.js.map +1 -0
  353. package/dist/commonjs/queryExecutionContext/pipelinedQueryExecutionContext.d.ts +37 -7
  354. package/dist/commonjs/queryExecutionContext/pipelinedQueryExecutionContext.d.ts.map +1 -1
  355. package/dist/commonjs/queryExecutionContext/pipelinedQueryExecutionContext.js +173 -120
  356. package/dist/commonjs/queryExecutionContext/pipelinedQueryExecutionContext.js.map +1 -1
  357. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/FilterStrategy.d.ts +40 -0
  358. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/FilterStrategy.d.ts.map +1 -0
  359. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/FilterStrategy.js +5 -0
  360. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/FilterStrategy.js.map +1 -0
  361. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/OrderByQueryRangeStrategy.d.ts +49 -0
  362. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/OrderByQueryRangeStrategy.d.ts.map +1 -0
  363. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/OrderByQueryRangeStrategy.js +314 -0
  364. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/OrderByQueryRangeStrategy.js.map +1 -0
  365. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/ParallelQueryRangeStrategy.d.ts +18 -0
  366. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/ParallelQueryRangeStrategy.d.ts.map +1 -0
  367. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/ParallelQueryRangeStrategy.js +106 -0
  368. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/ParallelQueryRangeStrategy.js.map +1 -0
  369. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/RidSkipCountFilter.d.ts +51 -0
  370. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/RidSkipCountFilter.d.ts.map +1 -0
  371. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/RidSkipCountFilter.js +184 -0
  372. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/RidSkipCountFilter.js.map +1 -0
  373. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeManager.d.ts +76 -0
  374. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeManager.d.ts.map +1 -0
  375. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeManager.js +97 -0
  376. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeManager.js.map +1 -0
  377. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeStrategy.d.ts +30 -0
  378. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeStrategy.d.ts.map +1 -0
  379. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeStrategy.js +5 -0
  380. package/dist/commonjs/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeStrategy.js.map +1 -0
  381. package/dist/commonjs/queryExecutionContext/queryProcessingStrategy/OrderByQueryProcessingStrategy.d.ts +29 -0
  382. package/dist/commonjs/queryExecutionContext/queryProcessingStrategy/OrderByQueryProcessingStrategy.d.ts.map +1 -0
  383. package/dist/commonjs/queryExecutionContext/queryProcessingStrategy/OrderByQueryProcessingStrategy.js +57 -0
  384. package/dist/commonjs/queryExecutionContext/queryProcessingStrategy/OrderByQueryProcessingStrategy.js.map +1 -0
  385. package/dist/commonjs/queryExecutionContext/queryProcessingStrategy/ParallelQueryProcessingStrategy.d.ts +27 -0
  386. package/dist/commonjs/queryExecutionContext/queryProcessingStrategy/ParallelQueryProcessingStrategy.d.ts.map +1 -0
  387. package/dist/commonjs/queryExecutionContext/queryProcessingStrategy/ParallelQueryProcessingStrategy.js +38 -0
  388. package/dist/commonjs/queryExecutionContext/queryProcessingStrategy/ParallelQueryProcessingStrategy.js.map +1 -0
  389. package/dist/commonjs/queryExecutionContext/queryProcessingStrategy/QueryProcessingStrategy.d.ts +36 -0
  390. package/dist/commonjs/queryExecutionContext/queryProcessingStrategy/QueryProcessingStrategy.d.ts.map +1 -0
  391. package/dist/commonjs/queryExecutionContext/queryProcessingStrategy/QueryProcessingStrategy.js +5 -0
  392. package/dist/commonjs/queryExecutionContext/queryProcessingStrategy/QueryProcessingStrategy.js.map +1 -0
  393. package/dist/commonjs/queryExecutionContext/queryRangeMapping.d.ts +22 -0
  394. package/dist/commonjs/queryExecutionContext/queryRangeMapping.d.ts.map +1 -0
  395. package/dist/commonjs/queryExecutionContext/queryRangeMapping.js +5 -0
  396. package/dist/commonjs/queryExecutionContext/queryRangeMapping.js.map +1 -0
  397. package/dist/commonjs/queryIterator.js.map +1 -1
  398. package/dist/commonjs/utils/offers.d.ts.map +1 -1
  399. package/dist/commonjs/utils/offers.js +0 -1
  400. package/dist/commonjs/utils/offers.js.map +1 -1
  401. package/dist/esm/CosmosClientOptions.d.ts +1 -1
  402. package/dist/esm/CosmosClientOptions.js.map +1 -1
  403. package/dist/esm/client/ChangeFeed/ChangeFeedForEpkRange.d.ts.map +1 -1
  404. package/dist/esm/client/ChangeFeed/ChangeFeedForEpkRange.js +2 -34
  405. package/dist/esm/client/ChangeFeed/ChangeFeedForEpkRange.js.map +1 -1
  406. package/dist/esm/client/ChangeFeed/ChangeFeedForPartitionKey.d.ts.map +1 -1
  407. package/dist/esm/client/ChangeFeed/ChangeFeedForPartitionKey.js +2 -35
  408. package/dist/esm/client/ChangeFeed/ChangeFeedForPartitionKey.js.map +1 -1
  409. package/dist/esm/client/ChangeFeed/ChangeFeedIteratorOptions.d.ts +15 -0
  410. package/dist/esm/client/ChangeFeed/ChangeFeedIteratorOptions.d.ts.map +1 -1
  411. package/dist/esm/client/ChangeFeed/ChangeFeedIteratorOptions.js.map +1 -1
  412. package/dist/esm/client/ChangeFeed/InternalChangeFeedOptions.d.ts +3 -0
  413. package/dist/esm/client/ChangeFeed/InternalChangeFeedOptions.d.ts.map +1 -1
  414. package/dist/esm/client/ChangeFeed/InternalChangeFeedOptions.js.map +1 -1
  415. package/dist/esm/client/ChangeFeed/changeFeedUtils.d.ts +6 -0
  416. package/dist/esm/client/ChangeFeed/changeFeedUtils.d.ts.map +1 -1
  417. package/dist/esm/client/ChangeFeed/changeFeedUtils.js +47 -0
  418. package/dist/esm/client/ChangeFeed/changeFeedUtils.js.map +1 -1
  419. package/dist/esm/common/constants.d.ts.map +1 -1
  420. package/dist/esm/common/constants.js +16 -1
  421. package/dist/esm/common/constants.js.map +1 -1
  422. package/dist/esm/documents/ContinuationToken/CompositeQueryContinuationToken.d.ts +99 -0
  423. package/dist/esm/documents/ContinuationToken/CompositeQueryContinuationToken.d.ts.map +1 -0
  424. package/dist/esm/documents/ContinuationToken/CompositeQueryContinuationToken.js +84 -0
  425. package/dist/esm/documents/ContinuationToken/CompositeQueryContinuationToken.js.map +1 -0
  426. package/dist/esm/documents/ContinuationToken/OrderByQueryContinuationToken.d.ts +40 -0
  427. package/dist/esm/documents/ContinuationToken/OrderByQueryContinuationToken.d.ts.map +1 -0
  428. package/dist/esm/documents/ContinuationToken/OrderByQueryContinuationToken.js +39 -0
  429. package/dist/esm/documents/ContinuationToken/OrderByQueryContinuationToken.js.map +1 -0
  430. package/dist/esm/documents/ContinuationToken/PartitionRangeUpdate.d.ts +21 -0
  431. package/dist/esm/documents/ContinuationToken/PartitionRangeUpdate.d.ts.map +1 -0
  432. package/dist/esm/documents/ContinuationToken/PartitionRangeUpdate.js +4 -0
  433. package/dist/esm/documents/ContinuationToken/PartitionRangeUpdate.js.map +1 -0
  434. package/dist/esm/documents/VectorEmbeddingPolicy.d.ts +4 -0
  435. package/dist/esm/documents/VectorEmbeddingPolicy.d.ts.map +1 -1
  436. package/dist/esm/documents/VectorEmbeddingPolicy.js +4 -0
  437. package/dist/esm/documents/VectorEmbeddingPolicy.js.map +1 -1
  438. package/dist/esm/queryExecutionContext/Aggregators/MaxAggregator.d.ts.map +1 -1
  439. package/dist/esm/queryExecutionContext/Aggregators/MaxAggregator.js +4 -0
  440. package/dist/esm/queryExecutionContext/Aggregators/MaxAggregator.js.map +1 -1
  441. package/dist/esm/queryExecutionContext/Aggregators/MinAggregator.d.ts.map +1 -1
  442. package/dist/esm/queryExecutionContext/Aggregators/MinAggregator.js +4 -0
  443. package/dist/esm/queryExecutionContext/Aggregators/MinAggregator.js.map +1 -1
  444. package/dist/esm/queryExecutionContext/ContinuationTokenManager/BaseContinuationTokenManager.d.ts +2 -0
  445. package/dist/esm/queryExecutionContext/ContinuationTokenManager/BaseContinuationTokenManager.d.ts.map +1 -0
  446. package/dist/esm/queryExecutionContext/ContinuationTokenManager/BaseContinuationTokenManager.js +174 -0
  447. package/dist/esm/queryExecutionContext/ContinuationTokenManager/BaseContinuationTokenManager.js.map +1 -0
  448. package/dist/esm/queryExecutionContext/ContinuationTokenManager/ContinuationTokenManagerFactory.d.ts +2 -0
  449. package/dist/esm/queryExecutionContext/ContinuationTokenManager/ContinuationTokenManagerFactory.d.ts.map +1 -0
  450. package/dist/esm/queryExecutionContext/ContinuationTokenManager/ContinuationTokenManagerFactory.js +28 -0
  451. package/dist/esm/queryExecutionContext/ContinuationTokenManager/ContinuationTokenManagerFactory.js.map +1 -0
  452. package/dist/esm/queryExecutionContext/ContinuationTokenManager/OrderByQueryContinuationTokenManager.d.ts +2 -0
  453. package/dist/esm/queryExecutionContext/ContinuationTokenManager/OrderByQueryContinuationTokenManager.d.ts.map +1 -0
  454. package/dist/esm/queryExecutionContext/ContinuationTokenManager/OrderByQueryContinuationTokenManager.js +129 -0
  455. package/dist/esm/queryExecutionContext/ContinuationTokenManager/OrderByQueryContinuationTokenManager.js.map +1 -0
  456. package/dist/esm/queryExecutionContext/ContinuationTokenManager/ParallelQueryContinuationTokenManager.d.ts +2 -0
  457. package/dist/esm/queryExecutionContext/ContinuationTokenManager/ParallelQueryContinuationTokenManager.d.ts.map +1 -0
  458. package/dist/esm/queryExecutionContext/ContinuationTokenManager/ParallelQueryContinuationTokenManager.js +66 -0
  459. package/dist/esm/queryExecutionContext/ContinuationTokenManager/ParallelQueryContinuationTokenManager.js.map +1 -0
  460. package/dist/esm/queryExecutionContext/ContinuationTokenParser.d.ts +2 -0
  461. package/dist/esm/queryExecutionContext/ContinuationTokenParser.d.ts.map +1 -0
  462. package/dist/esm/queryExecutionContext/ContinuationTokenParser.js +23 -0
  463. package/dist/esm/queryExecutionContext/ContinuationTokenParser.js.map +1 -0
  464. package/dist/esm/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.d.ts.map +1 -1
  465. package/dist/esm/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.js +22 -7
  466. package/dist/esm/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.js.map +1 -1
  467. package/dist/esm/queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.d.ts.map +1 -1
  468. package/dist/esm/queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.js +21 -5
  469. package/dist/esm/queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.js.map +1 -1
  470. package/dist/esm/queryExecutionContext/EndpointComponent/NonStreamingOrderByDistinctEndpointComponent.d.ts.map +1 -1
  471. package/dist/esm/queryExecutionContext/EndpointComponent/NonStreamingOrderByDistinctEndpointComponent.js +28 -6
  472. package/dist/esm/queryExecutionContext/EndpointComponent/NonStreamingOrderByDistinctEndpointComponent.js.map +1 -1
  473. package/dist/esm/queryExecutionContext/EndpointComponent/NonStreamingOrderByEndpointComponent.d.ts.map +1 -1
  474. package/dist/esm/queryExecutionContext/EndpointComponent/NonStreamingOrderByEndpointComponent.js +23 -7
  475. package/dist/esm/queryExecutionContext/EndpointComponent/NonStreamingOrderByEndpointComponent.js.map +1 -1
  476. package/dist/esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.d.ts.map +1 -1
  477. package/dist/esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js +35 -4
  478. package/dist/esm/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js.map +1 -1
  479. package/dist/esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.d.ts +1 -0
  480. package/dist/esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.d.ts.map +1 -1
  481. package/dist/esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js +22 -4
  482. package/dist/esm/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js.map +1 -1
  483. package/dist/esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.d.ts +1 -1
  484. package/dist/esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.d.ts.map +1 -1
  485. package/dist/esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js +24 -5
  486. package/dist/esm/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js.map +1 -1
  487. package/dist/esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.d.ts.map +1 -1
  488. package/dist/esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js +18 -5
  489. package/dist/esm/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js.map +1 -1
  490. package/dist/esm/queryExecutionContext/LegacyFetchImplementation.d.ts +14 -0
  491. package/dist/esm/queryExecutionContext/LegacyFetchImplementation.d.ts.map +1 -0
  492. package/dist/esm/queryExecutionContext/LegacyFetchImplementation.js +55 -0
  493. package/dist/esm/queryExecutionContext/LegacyFetchImplementation.js.map +1 -0
  494. package/dist/esm/queryExecutionContext/PartitionRangeManager.d.ts +73 -0
  495. package/dist/esm/queryExecutionContext/PartitionRangeManager.d.ts.map +1 -0
  496. package/dist/esm/queryExecutionContext/PartitionRangeManager.js +156 -0
  497. package/dist/esm/queryExecutionContext/PartitionRangeManager.js.map +1 -0
  498. package/dist/esm/queryExecutionContext/PartitionRangeUtils.d.ts +19 -0
  499. package/dist/esm/queryExecutionContext/PartitionRangeUtils.d.ts.map +1 -0
  500. package/dist/esm/queryExecutionContext/PartitionRangeUtils.js +105 -0
  501. package/dist/esm/queryExecutionContext/PartitionRangeUtils.js.map +1 -0
  502. package/dist/esm/queryExecutionContext/QueryControlFetchImplementation.d.ts +20 -0
  503. package/dist/esm/queryExecutionContext/QueryControlFetchImplementation.d.ts.map +1 -0
  504. package/dist/esm/queryExecutionContext/QueryControlFetchImplementation.js +93 -0
  505. package/dist/esm/queryExecutionContext/QueryControlFetchImplementation.js.map +1 -0
  506. package/dist/esm/queryExecutionContext/QueryValidationHelper.d.ts +9 -0
  507. package/dist/esm/queryExecutionContext/QueryValidationHelper.d.ts.map +1 -0
  508. package/dist/esm/queryExecutionContext/QueryValidationHelper.js +65 -0
  509. package/dist/esm/queryExecutionContext/QueryValidationHelper.js.map +1 -0
  510. package/dist/esm/queryExecutionContext/defaultQueryExecutionContext.d.ts +2 -2
  511. package/dist/esm/queryExecutionContext/defaultQueryExecutionContext.d.ts.map +1 -1
  512. package/dist/esm/queryExecutionContext/defaultQueryExecutionContext.js +2 -1
  513. package/dist/esm/queryExecutionContext/defaultQueryExecutionContext.js.map +1 -1
  514. package/dist/esm/queryExecutionContext/documentProducer.d.ts +9 -3
  515. package/dist/esm/queryExecutionContext/documentProducer.d.ts.map +1 -1
  516. package/dist/esm/queryExecutionContext/documentProducer.js +17 -4
  517. package/dist/esm/queryExecutionContext/documentProducer.js.map +1 -1
  518. package/dist/esm/queryExecutionContext/hybridQueryExecutionContext.d.ts +1 -1
  519. package/dist/esm/queryExecutionContext/hybridQueryExecutionContext.d.ts.map +1 -1
  520. package/dist/esm/queryExecutionContext/hybridQueryExecutionContext.js +18 -13
  521. package/dist/esm/queryExecutionContext/hybridQueryExecutionContext.js.map +1 -1
  522. package/dist/esm/queryExecutionContext/index.d.ts +7 -0
  523. package/dist/esm/queryExecutionContext/index.d.ts.map +1 -1
  524. package/dist/esm/queryExecutionContext/index.js +4 -0
  525. package/dist/esm/queryExecutionContext/index.js.map +1 -1
  526. package/dist/esm/queryExecutionContext/nonStreamingOrderByResult.d.ts +5 -1
  527. package/dist/esm/queryExecutionContext/nonStreamingOrderByResult.d.ts.map +1 -1
  528. package/dist/esm/queryExecutionContext/nonStreamingOrderByResult.js.map +1 -1
  529. package/dist/esm/queryExecutionContext/orderByComparator.d.ts +11 -2
  530. package/dist/esm/queryExecutionContext/orderByComparator.d.ts.map +1 -1
  531. package/dist/esm/queryExecutionContext/orderByComparator.js +20 -3
  532. package/dist/esm/queryExecutionContext/orderByComparator.js.map +1 -1
  533. package/dist/esm/queryExecutionContext/orderByDocumentProducerComparator.d.ts +4 -0
  534. package/dist/esm/queryExecutionContext/orderByDocumentProducerComparator.d.ts.map +1 -1
  535. package/dist/esm/queryExecutionContext/orderByDocumentProducerComparator.js +18 -7
  536. package/dist/esm/queryExecutionContext/orderByDocumentProducerComparator.js.map +1 -1
  537. package/dist/esm/queryExecutionContext/orderByQueryExecutionContext.d.ts +7 -10
  538. package/dist/esm/queryExecutionContext/orderByQueryExecutionContext.d.ts.map +1 -1
  539. package/dist/esm/queryExecutionContext/orderByQueryExecutionContext.js +30 -23
  540. package/dist/esm/queryExecutionContext/orderByQueryExecutionContext.js.map +1 -1
  541. package/dist/esm/queryExecutionContext/parallelQueryExecutionContext.d.ts +18 -10
  542. package/dist/esm/queryExecutionContext/parallelQueryExecutionContext.d.ts.map +1 -1
  543. package/dist/esm/queryExecutionContext/parallelQueryExecutionContext.js +47 -23
  544. package/dist/esm/queryExecutionContext/parallelQueryExecutionContext.js.map +1 -1
  545. package/dist/esm/queryExecutionContext/parallelQueryExecutionContextBase.d.ts +160 -26
  546. package/dist/esm/queryExecutionContext/parallelQueryExecutionContextBase.d.ts.map +1 -1
  547. package/dist/esm/queryExecutionContext/parallelQueryExecutionContextBase.js +453 -106
  548. package/dist/esm/queryExecutionContext/parallelQueryExecutionContextBase.js.map +1 -1
  549. package/dist/esm/queryExecutionContext/parallelQueryResult.d.ts +35 -0
  550. package/dist/esm/queryExecutionContext/parallelQueryResult.d.ts.map +1 -0
  551. package/dist/esm/queryExecutionContext/parallelQueryResult.js +23 -0
  552. package/dist/esm/queryExecutionContext/parallelQueryResult.js.map +1 -0
  553. package/dist/esm/queryExecutionContext/pipelinedQueryExecutionContext.d.ts +37 -7
  554. package/dist/esm/queryExecutionContext/pipelinedQueryExecutionContext.d.ts.map +1 -1
  555. package/dist/esm/queryExecutionContext/pipelinedQueryExecutionContext.js +173 -120
  556. package/dist/esm/queryExecutionContext/pipelinedQueryExecutionContext.js.map +1 -1
  557. package/dist/esm/queryExecutionContext/queryFilteringStrategy/FilterStrategy.d.ts +40 -0
  558. package/dist/esm/queryExecutionContext/queryFilteringStrategy/FilterStrategy.d.ts.map +1 -0
  559. package/dist/esm/queryExecutionContext/queryFilteringStrategy/FilterStrategy.js +4 -0
  560. package/dist/esm/queryExecutionContext/queryFilteringStrategy/FilterStrategy.js.map +1 -0
  561. package/dist/esm/queryExecutionContext/queryFilteringStrategy/OrderByQueryRangeStrategy.d.ts +49 -0
  562. package/dist/esm/queryExecutionContext/queryFilteringStrategy/OrderByQueryRangeStrategy.d.ts.map +1 -0
  563. package/dist/esm/queryExecutionContext/queryFilteringStrategy/OrderByQueryRangeStrategy.js +310 -0
  564. package/dist/esm/queryExecutionContext/queryFilteringStrategy/OrderByQueryRangeStrategy.js.map +1 -0
  565. package/dist/esm/queryExecutionContext/queryFilteringStrategy/ParallelQueryRangeStrategy.d.ts +18 -0
  566. package/dist/esm/queryExecutionContext/queryFilteringStrategy/ParallelQueryRangeStrategy.d.ts.map +1 -0
  567. package/dist/esm/queryExecutionContext/queryFilteringStrategy/ParallelQueryRangeStrategy.js +102 -0
  568. package/dist/esm/queryExecutionContext/queryFilteringStrategy/ParallelQueryRangeStrategy.js.map +1 -0
  569. package/dist/esm/queryExecutionContext/queryFilteringStrategy/RidSkipCountFilter.d.ts +51 -0
  570. package/dist/esm/queryExecutionContext/queryFilteringStrategy/RidSkipCountFilter.d.ts.map +1 -0
  571. package/dist/esm/queryExecutionContext/queryFilteringStrategy/RidSkipCountFilter.js +180 -0
  572. package/dist/esm/queryExecutionContext/queryFilteringStrategy/RidSkipCountFilter.js.map +1 -0
  573. package/dist/esm/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeManager.d.ts +76 -0
  574. package/dist/esm/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeManager.d.ts.map +1 -0
  575. package/dist/esm/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeManager.js +93 -0
  576. package/dist/esm/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeManager.js.map +1 -0
  577. package/dist/esm/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeStrategy.d.ts +30 -0
  578. package/dist/esm/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeStrategy.d.ts.map +1 -0
  579. package/dist/esm/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeStrategy.js +4 -0
  580. package/dist/esm/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeStrategy.js.map +1 -0
  581. package/dist/esm/queryExecutionContext/queryProcessingStrategy/OrderByQueryProcessingStrategy.d.ts +29 -0
  582. package/dist/esm/queryExecutionContext/queryProcessingStrategy/OrderByQueryProcessingStrategy.d.ts.map +1 -0
  583. package/dist/esm/queryExecutionContext/queryProcessingStrategy/OrderByQueryProcessingStrategy.js +53 -0
  584. package/dist/esm/queryExecutionContext/queryProcessingStrategy/OrderByQueryProcessingStrategy.js.map +1 -0
  585. package/dist/esm/queryExecutionContext/queryProcessingStrategy/ParallelQueryProcessingStrategy.d.ts +27 -0
  586. package/dist/esm/queryExecutionContext/queryProcessingStrategy/ParallelQueryProcessingStrategy.d.ts.map +1 -0
  587. package/dist/esm/queryExecutionContext/queryProcessingStrategy/ParallelQueryProcessingStrategy.js +34 -0
  588. package/dist/esm/queryExecutionContext/queryProcessingStrategy/ParallelQueryProcessingStrategy.js.map +1 -0
  589. package/dist/esm/queryExecutionContext/queryProcessingStrategy/QueryProcessingStrategy.d.ts +36 -0
  590. package/dist/esm/queryExecutionContext/queryProcessingStrategy/QueryProcessingStrategy.d.ts.map +1 -0
  591. package/dist/esm/queryExecutionContext/queryProcessingStrategy/QueryProcessingStrategy.js +4 -0
  592. package/dist/esm/queryExecutionContext/queryProcessingStrategy/QueryProcessingStrategy.js.map +1 -0
  593. package/dist/esm/queryExecutionContext/queryRangeMapping.d.ts +22 -0
  594. package/dist/esm/queryExecutionContext/queryRangeMapping.d.ts.map +1 -0
  595. package/dist/esm/queryExecutionContext/queryRangeMapping.js +4 -0
  596. package/dist/esm/queryExecutionContext/queryRangeMapping.js.map +1 -0
  597. package/dist/esm/queryIterator.js.map +1 -1
  598. package/dist/esm/utils/offers.d.ts.map +1 -1
  599. package/dist/esm/utils/offers.js +0 -1
  600. package/dist/esm/utils/offers.js.map +1 -1
  601. package/dist/react-native/CosmosClientOptions.d.ts +1 -1
  602. package/dist/react-native/CosmosClientOptions.js.map +1 -1
  603. package/dist/react-native/client/ChangeFeed/ChangeFeedForEpkRange.d.ts.map +1 -1
  604. package/dist/react-native/client/ChangeFeed/ChangeFeedForEpkRange.js +2 -34
  605. package/dist/react-native/client/ChangeFeed/ChangeFeedForEpkRange.js.map +1 -1
  606. package/dist/react-native/client/ChangeFeed/ChangeFeedForPartitionKey.d.ts.map +1 -1
  607. package/dist/react-native/client/ChangeFeed/ChangeFeedForPartitionKey.js +2 -35
  608. package/dist/react-native/client/ChangeFeed/ChangeFeedForPartitionKey.js.map +1 -1
  609. package/dist/react-native/client/ChangeFeed/ChangeFeedIteratorOptions.d.ts +15 -0
  610. package/dist/react-native/client/ChangeFeed/ChangeFeedIteratorOptions.d.ts.map +1 -1
  611. package/dist/react-native/client/ChangeFeed/ChangeFeedIteratorOptions.js.map +1 -1
  612. package/dist/react-native/client/ChangeFeed/InternalChangeFeedOptions.d.ts +3 -0
  613. package/dist/react-native/client/ChangeFeed/InternalChangeFeedOptions.d.ts.map +1 -1
  614. package/dist/react-native/client/ChangeFeed/InternalChangeFeedOptions.js.map +1 -1
  615. package/dist/react-native/client/ChangeFeed/changeFeedUtils.d.ts +6 -0
  616. package/dist/react-native/client/ChangeFeed/changeFeedUtils.d.ts.map +1 -1
  617. package/dist/react-native/client/ChangeFeed/changeFeedUtils.js +47 -0
  618. package/dist/react-native/client/ChangeFeed/changeFeedUtils.js.map +1 -1
  619. package/dist/react-native/common/constants.d.ts.map +1 -1
  620. package/dist/react-native/common/constants.js +16 -1
  621. package/dist/react-native/common/constants.js.map +1 -1
  622. package/dist/react-native/documents/ContinuationToken/CompositeQueryContinuationToken.d.ts +99 -0
  623. package/dist/react-native/documents/ContinuationToken/CompositeQueryContinuationToken.d.ts.map +1 -0
  624. package/dist/react-native/documents/ContinuationToken/CompositeQueryContinuationToken.js +84 -0
  625. package/dist/react-native/documents/ContinuationToken/CompositeQueryContinuationToken.js.map +1 -0
  626. package/dist/react-native/documents/ContinuationToken/OrderByQueryContinuationToken.d.ts +40 -0
  627. package/dist/react-native/documents/ContinuationToken/OrderByQueryContinuationToken.d.ts.map +1 -0
  628. package/dist/react-native/documents/ContinuationToken/OrderByQueryContinuationToken.js +39 -0
  629. package/dist/react-native/documents/ContinuationToken/OrderByQueryContinuationToken.js.map +1 -0
  630. package/dist/react-native/documents/ContinuationToken/PartitionRangeUpdate.d.ts +21 -0
  631. package/dist/react-native/documents/ContinuationToken/PartitionRangeUpdate.d.ts.map +1 -0
  632. package/dist/react-native/documents/ContinuationToken/PartitionRangeUpdate.js +4 -0
  633. package/dist/react-native/documents/ContinuationToken/PartitionRangeUpdate.js.map +1 -0
  634. package/dist/react-native/documents/VectorEmbeddingPolicy.d.ts +4 -0
  635. package/dist/react-native/documents/VectorEmbeddingPolicy.d.ts.map +1 -1
  636. package/dist/react-native/documents/VectorEmbeddingPolicy.js +4 -0
  637. package/dist/react-native/documents/VectorEmbeddingPolicy.js.map +1 -1
  638. package/dist/react-native/queryExecutionContext/Aggregators/MaxAggregator.d.ts.map +1 -1
  639. package/dist/react-native/queryExecutionContext/Aggregators/MaxAggregator.js +4 -0
  640. package/dist/react-native/queryExecutionContext/Aggregators/MaxAggregator.js.map +1 -1
  641. package/dist/react-native/queryExecutionContext/Aggregators/MinAggregator.d.ts.map +1 -1
  642. package/dist/react-native/queryExecutionContext/Aggregators/MinAggregator.js +4 -0
  643. package/dist/react-native/queryExecutionContext/Aggregators/MinAggregator.js.map +1 -1
  644. package/dist/react-native/queryExecutionContext/ContinuationTokenManager/BaseContinuationTokenManager.d.ts +2 -0
  645. package/dist/react-native/queryExecutionContext/ContinuationTokenManager/BaseContinuationTokenManager.d.ts.map +1 -0
  646. package/dist/react-native/queryExecutionContext/ContinuationTokenManager/BaseContinuationTokenManager.js +174 -0
  647. package/dist/react-native/queryExecutionContext/ContinuationTokenManager/BaseContinuationTokenManager.js.map +1 -0
  648. package/dist/react-native/queryExecutionContext/ContinuationTokenManager/ContinuationTokenManagerFactory.d.ts +2 -0
  649. package/dist/react-native/queryExecutionContext/ContinuationTokenManager/ContinuationTokenManagerFactory.d.ts.map +1 -0
  650. package/dist/react-native/queryExecutionContext/ContinuationTokenManager/ContinuationTokenManagerFactory.js +28 -0
  651. package/dist/react-native/queryExecutionContext/ContinuationTokenManager/ContinuationTokenManagerFactory.js.map +1 -0
  652. package/dist/react-native/queryExecutionContext/ContinuationTokenManager/OrderByQueryContinuationTokenManager.d.ts +2 -0
  653. package/dist/react-native/queryExecutionContext/ContinuationTokenManager/OrderByQueryContinuationTokenManager.d.ts.map +1 -0
  654. package/dist/react-native/queryExecutionContext/ContinuationTokenManager/OrderByQueryContinuationTokenManager.js +129 -0
  655. package/dist/react-native/queryExecutionContext/ContinuationTokenManager/OrderByQueryContinuationTokenManager.js.map +1 -0
  656. package/dist/react-native/queryExecutionContext/ContinuationTokenManager/ParallelQueryContinuationTokenManager.d.ts +2 -0
  657. package/dist/react-native/queryExecutionContext/ContinuationTokenManager/ParallelQueryContinuationTokenManager.d.ts.map +1 -0
  658. package/dist/react-native/queryExecutionContext/ContinuationTokenManager/ParallelQueryContinuationTokenManager.js +66 -0
  659. package/dist/react-native/queryExecutionContext/ContinuationTokenManager/ParallelQueryContinuationTokenManager.js.map +1 -0
  660. package/dist/react-native/queryExecutionContext/ContinuationTokenParser.d.ts +2 -0
  661. package/dist/react-native/queryExecutionContext/ContinuationTokenParser.d.ts.map +1 -0
  662. package/dist/react-native/queryExecutionContext/ContinuationTokenParser.js +23 -0
  663. package/dist/react-native/queryExecutionContext/ContinuationTokenParser.js.map +1 -0
  664. package/dist/react-native/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.d.ts.map +1 -1
  665. package/dist/react-native/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.js +22 -7
  666. package/dist/react-native/queryExecutionContext/EndpointComponent/GroupByEndpointComponent.js.map +1 -1
  667. package/dist/react-native/queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.d.ts.map +1 -1
  668. package/dist/react-native/queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.js +21 -5
  669. package/dist/react-native/queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.js.map +1 -1
  670. package/dist/react-native/queryExecutionContext/EndpointComponent/NonStreamingOrderByDistinctEndpointComponent.d.ts.map +1 -1
  671. package/dist/react-native/queryExecutionContext/EndpointComponent/NonStreamingOrderByDistinctEndpointComponent.js +28 -6
  672. package/dist/react-native/queryExecutionContext/EndpointComponent/NonStreamingOrderByDistinctEndpointComponent.js.map +1 -1
  673. package/dist/react-native/queryExecutionContext/EndpointComponent/NonStreamingOrderByEndpointComponent.d.ts.map +1 -1
  674. package/dist/react-native/queryExecutionContext/EndpointComponent/NonStreamingOrderByEndpointComponent.js +23 -7
  675. package/dist/react-native/queryExecutionContext/EndpointComponent/NonStreamingOrderByEndpointComponent.js.map +1 -1
  676. package/dist/react-native/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.d.ts.map +1 -1
  677. package/dist/react-native/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js +35 -4
  678. package/dist/react-native/queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.js.map +1 -1
  679. package/dist/react-native/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.d.ts +1 -0
  680. package/dist/react-native/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.d.ts.map +1 -1
  681. package/dist/react-native/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js +22 -4
  682. package/dist/react-native/queryExecutionContext/EndpointComponent/OrderByEndpointComponent.js.map +1 -1
  683. package/dist/react-native/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.d.ts +1 -1
  684. package/dist/react-native/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.d.ts.map +1 -1
  685. package/dist/react-native/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js +24 -5
  686. package/dist/react-native/queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.js.map +1 -1
  687. package/dist/react-native/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.d.ts.map +1 -1
  688. package/dist/react-native/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js +18 -5
  689. package/dist/react-native/queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.js.map +1 -1
  690. package/dist/react-native/queryExecutionContext/LegacyFetchImplementation.d.ts +14 -0
  691. package/dist/react-native/queryExecutionContext/LegacyFetchImplementation.d.ts.map +1 -0
  692. package/dist/react-native/queryExecutionContext/LegacyFetchImplementation.js +55 -0
  693. package/dist/react-native/queryExecutionContext/LegacyFetchImplementation.js.map +1 -0
  694. package/dist/react-native/queryExecutionContext/PartitionRangeManager.d.ts +73 -0
  695. package/dist/react-native/queryExecutionContext/PartitionRangeManager.d.ts.map +1 -0
  696. package/dist/react-native/queryExecutionContext/PartitionRangeManager.js +156 -0
  697. package/dist/react-native/queryExecutionContext/PartitionRangeManager.js.map +1 -0
  698. package/dist/react-native/queryExecutionContext/PartitionRangeUtils.d.ts +19 -0
  699. package/dist/react-native/queryExecutionContext/PartitionRangeUtils.d.ts.map +1 -0
  700. package/dist/react-native/queryExecutionContext/PartitionRangeUtils.js +105 -0
  701. package/dist/react-native/queryExecutionContext/PartitionRangeUtils.js.map +1 -0
  702. package/dist/react-native/queryExecutionContext/QueryControlFetchImplementation.d.ts +20 -0
  703. package/dist/react-native/queryExecutionContext/QueryControlFetchImplementation.d.ts.map +1 -0
  704. package/dist/react-native/queryExecutionContext/QueryControlFetchImplementation.js +93 -0
  705. package/dist/react-native/queryExecutionContext/QueryControlFetchImplementation.js.map +1 -0
  706. package/dist/react-native/queryExecutionContext/QueryValidationHelper.d.ts +9 -0
  707. package/dist/react-native/queryExecutionContext/QueryValidationHelper.d.ts.map +1 -0
  708. package/dist/react-native/queryExecutionContext/QueryValidationHelper.js +65 -0
  709. package/dist/react-native/queryExecutionContext/QueryValidationHelper.js.map +1 -0
  710. package/dist/react-native/queryExecutionContext/defaultQueryExecutionContext.d.ts +2 -2
  711. package/dist/react-native/queryExecutionContext/defaultQueryExecutionContext.d.ts.map +1 -1
  712. package/dist/react-native/queryExecutionContext/defaultQueryExecutionContext.js +2 -1
  713. package/dist/react-native/queryExecutionContext/defaultQueryExecutionContext.js.map +1 -1
  714. package/dist/react-native/queryExecutionContext/documentProducer.d.ts +9 -3
  715. package/dist/react-native/queryExecutionContext/documentProducer.d.ts.map +1 -1
  716. package/dist/react-native/queryExecutionContext/documentProducer.js +17 -4
  717. package/dist/react-native/queryExecutionContext/documentProducer.js.map +1 -1
  718. package/dist/react-native/queryExecutionContext/hybridQueryExecutionContext.d.ts +1 -1
  719. package/dist/react-native/queryExecutionContext/hybridQueryExecutionContext.d.ts.map +1 -1
  720. package/dist/react-native/queryExecutionContext/hybridQueryExecutionContext.js +18 -13
  721. package/dist/react-native/queryExecutionContext/hybridQueryExecutionContext.js.map +1 -1
  722. package/dist/react-native/queryExecutionContext/index.d.ts +7 -0
  723. package/dist/react-native/queryExecutionContext/index.d.ts.map +1 -1
  724. package/dist/react-native/queryExecutionContext/index.js +4 -0
  725. package/dist/react-native/queryExecutionContext/index.js.map +1 -1
  726. package/dist/react-native/queryExecutionContext/nonStreamingOrderByResult.d.ts +5 -1
  727. package/dist/react-native/queryExecutionContext/nonStreamingOrderByResult.d.ts.map +1 -1
  728. package/dist/react-native/queryExecutionContext/nonStreamingOrderByResult.js.map +1 -1
  729. package/dist/react-native/queryExecutionContext/orderByComparator.d.ts +11 -2
  730. package/dist/react-native/queryExecutionContext/orderByComparator.d.ts.map +1 -1
  731. package/dist/react-native/queryExecutionContext/orderByComparator.js +20 -3
  732. package/dist/react-native/queryExecutionContext/orderByComparator.js.map +1 -1
  733. package/dist/react-native/queryExecutionContext/orderByDocumentProducerComparator.d.ts +4 -0
  734. package/dist/react-native/queryExecutionContext/orderByDocumentProducerComparator.d.ts.map +1 -1
  735. package/dist/react-native/queryExecutionContext/orderByDocumentProducerComparator.js +18 -7
  736. package/dist/react-native/queryExecutionContext/orderByDocumentProducerComparator.js.map +1 -1
  737. package/dist/react-native/queryExecutionContext/orderByQueryExecutionContext.d.ts +7 -10
  738. package/dist/react-native/queryExecutionContext/orderByQueryExecutionContext.d.ts.map +1 -1
  739. package/dist/react-native/queryExecutionContext/orderByQueryExecutionContext.js +30 -23
  740. package/dist/react-native/queryExecutionContext/orderByQueryExecutionContext.js.map +1 -1
  741. package/dist/react-native/queryExecutionContext/parallelQueryExecutionContext.d.ts +18 -10
  742. package/dist/react-native/queryExecutionContext/parallelQueryExecutionContext.d.ts.map +1 -1
  743. package/dist/react-native/queryExecutionContext/parallelQueryExecutionContext.js +47 -23
  744. package/dist/react-native/queryExecutionContext/parallelQueryExecutionContext.js.map +1 -1
  745. package/dist/react-native/queryExecutionContext/parallelQueryExecutionContextBase.d.ts +160 -26
  746. package/dist/react-native/queryExecutionContext/parallelQueryExecutionContextBase.d.ts.map +1 -1
  747. package/dist/react-native/queryExecutionContext/parallelQueryExecutionContextBase.js +453 -106
  748. package/dist/react-native/queryExecutionContext/parallelQueryExecutionContextBase.js.map +1 -1
  749. package/dist/react-native/queryExecutionContext/parallelQueryResult.d.ts +35 -0
  750. package/dist/react-native/queryExecutionContext/parallelQueryResult.d.ts.map +1 -0
  751. package/dist/react-native/queryExecutionContext/parallelQueryResult.js +23 -0
  752. package/dist/react-native/queryExecutionContext/parallelQueryResult.js.map +1 -0
  753. package/dist/react-native/queryExecutionContext/pipelinedQueryExecutionContext.d.ts +37 -7
  754. package/dist/react-native/queryExecutionContext/pipelinedQueryExecutionContext.d.ts.map +1 -1
  755. package/dist/react-native/queryExecutionContext/pipelinedQueryExecutionContext.js +173 -120
  756. package/dist/react-native/queryExecutionContext/pipelinedQueryExecutionContext.js.map +1 -1
  757. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/FilterStrategy.d.ts +40 -0
  758. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/FilterStrategy.d.ts.map +1 -0
  759. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/FilterStrategy.js +4 -0
  760. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/FilterStrategy.js.map +1 -0
  761. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/OrderByQueryRangeStrategy.d.ts +49 -0
  762. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/OrderByQueryRangeStrategy.d.ts.map +1 -0
  763. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/OrderByQueryRangeStrategy.js +310 -0
  764. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/OrderByQueryRangeStrategy.js.map +1 -0
  765. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/ParallelQueryRangeStrategy.d.ts +18 -0
  766. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/ParallelQueryRangeStrategy.d.ts.map +1 -0
  767. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/ParallelQueryRangeStrategy.js +102 -0
  768. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/ParallelQueryRangeStrategy.js.map +1 -0
  769. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/RidSkipCountFilter.d.ts +51 -0
  770. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/RidSkipCountFilter.d.ts.map +1 -0
  771. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/RidSkipCountFilter.js +180 -0
  772. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/RidSkipCountFilter.js.map +1 -0
  773. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeManager.d.ts +76 -0
  774. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeManager.d.ts.map +1 -0
  775. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeManager.js +93 -0
  776. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeManager.js.map +1 -0
  777. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeStrategy.d.ts +30 -0
  778. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeStrategy.d.ts.map +1 -0
  779. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeStrategy.js +4 -0
  780. package/dist/react-native/queryExecutionContext/queryFilteringStrategy/TargetPartitionRangeStrategy.js.map +1 -0
  781. package/dist/react-native/queryExecutionContext/queryProcessingStrategy/OrderByQueryProcessingStrategy.d.ts +29 -0
  782. package/dist/react-native/queryExecutionContext/queryProcessingStrategy/OrderByQueryProcessingStrategy.d.ts.map +1 -0
  783. package/dist/react-native/queryExecutionContext/queryProcessingStrategy/OrderByQueryProcessingStrategy.js +53 -0
  784. package/dist/react-native/queryExecutionContext/queryProcessingStrategy/OrderByQueryProcessingStrategy.js.map +1 -0
  785. package/dist/react-native/queryExecutionContext/queryProcessingStrategy/ParallelQueryProcessingStrategy.d.ts +27 -0
  786. package/dist/react-native/queryExecutionContext/queryProcessingStrategy/ParallelQueryProcessingStrategy.d.ts.map +1 -0
  787. package/dist/react-native/queryExecutionContext/queryProcessingStrategy/ParallelQueryProcessingStrategy.js +34 -0
  788. package/dist/react-native/queryExecutionContext/queryProcessingStrategy/ParallelQueryProcessingStrategy.js.map +1 -0
  789. package/dist/react-native/queryExecutionContext/queryProcessingStrategy/QueryProcessingStrategy.d.ts +36 -0
  790. package/dist/react-native/queryExecutionContext/queryProcessingStrategy/QueryProcessingStrategy.d.ts.map +1 -0
  791. package/dist/react-native/queryExecutionContext/queryProcessingStrategy/QueryProcessingStrategy.js +4 -0
  792. package/dist/react-native/queryExecutionContext/queryProcessingStrategy/QueryProcessingStrategy.js.map +1 -0
  793. package/dist/react-native/queryExecutionContext/queryRangeMapping.d.ts +22 -0
  794. package/dist/react-native/queryExecutionContext/queryRangeMapping.d.ts.map +1 -0
  795. package/dist/react-native/queryExecutionContext/queryRangeMapping.js +4 -0
  796. package/dist/react-native/queryExecutionContext/queryRangeMapping.js.map +1 -0
  797. package/dist/react-native/queryIterator.js.map +1 -1
  798. package/dist/react-native/utils/offers.d.ts.map +1 -1
  799. package/dist/react-native/utils/offers.js +0 -1
  800. package/dist/react-native/utils/offers.js.map +1 -1
  801. package/package.json +6 -5
@@ -0,0 +1,99 @@
1
+ import { QueryRange } from "../../routing/QueryRange.js";
2
+ import type { QueryRangeMapping } from "../../queryExecutionContext/queryRangeMapping.js";
3
+ /**
4
+ * @hidden
5
+ */
6
+ export interface RangeBoundary {
7
+ /**
8
+ * Minimum boundary (inclusive)
9
+ */
10
+ min: string;
11
+ /**
12
+ * Maximum boundary (exclusive)
13
+ */
14
+ max: string;
15
+ }
16
+ /**
17
+ * @hidden
18
+ * Base interface for all continuation tokens containing common fields
19
+ */
20
+ export interface BaseContinuationToken {
21
+ /**
22
+ * Resource ID of the container for which the continuation token is issued
23
+ */
24
+ rid: string;
25
+ /**
26
+ * List of query ranges with their continuation tokens
27
+ */
28
+ rangeMappings: QueryRangeWithContinuationToken[];
29
+ /**
30
+ * Current offset value for OFFSET/LIMIT queries
31
+ */
32
+ offset?: number;
33
+ /**
34
+ * Current limit value for OFFSET/LIMIT queries
35
+ */
36
+ limit?: number;
37
+ }
38
+ /**
39
+ * @hidden
40
+ * Composite continuation token for parallel query execution across multiple partition ranges
41
+ */
42
+ export interface CompositeQueryContinuationToken extends BaseContinuationToken {
43
+ }
44
+ /**
45
+ * Creates a new CompositeQueryContinuationToken
46
+ * @hidden
47
+ */
48
+ export declare function createCompositeQueryContinuationToken(rid: string, rangeMappings: QueryRangeWithContinuationToken[], offset?: number, limit?: number): CompositeQueryContinuationToken;
49
+ /**
50
+ * Serializes the composite continuation token to a JSON string
51
+ * @hidden
52
+ */
53
+ export declare function serializeCompositeToken(token: CompositeQueryContinuationToken): string;
54
+ /**
55
+ * Deserializes a JSON string to a CompositeQueryContinuationToken
56
+ * @hidden
57
+ */
58
+ export declare function parseCompositeQueryContinuationToken(tokenString: string): CompositeQueryContinuationToken;
59
+ /**
60
+ * Deserializes a JSON string to a CompositeQueryContinuationToken
61
+ * @hidden
62
+ */
63
+ export declare function parseBaseContinuationToken(tokenString: string): BaseContinuationToken;
64
+ /**
65
+ * @hidden
66
+ * Represents a query range with its associated continuation token
67
+ */
68
+ export interface QueryRangeWithContinuationToken {
69
+ /**
70
+ * The simplified query range containing min/max boundaries
71
+ */
72
+ queryRange: RangeBoundary;
73
+ /**
74
+ * The continuation token for this specific range
75
+ */
76
+ continuationToken: string | undefined;
77
+ }
78
+ /**
79
+ * Converts QueryRangeMapping to QueryRangeWithContinuationToken using simplified range format
80
+ * @param rangeMapping - The QueryRangeMapping to convert
81
+ * @returns QueryRangeWithContinuationToken with simplified boundaries and continuation token
82
+ * @hidden
83
+ */
84
+ export declare function convertRangeMappingToQueryRange(rangeMapping: QueryRangeMapping): QueryRangeWithContinuationToken;
85
+ /**
86
+ * Converts an array of QueryRangeMapping to an array of QueryRangeWithContinuationToken
87
+ * @param rangeMappings - Array of QueryRangeMapping to convert
88
+ * @returns Array of QueryRangeWithContinuationToken with simplified boundaries and continuation tokens
89
+ * @hidden
90
+ */
91
+ export declare function convertRangeMappingsToQueryRangesWithTokens(rangeMappings: QueryRangeMapping[]): QueryRangeWithContinuationToken[];
92
+ /**
93
+ * Converts a SimplifiedQueryRange back to a QueryRange for internal use
94
+ * @param simplifiedRange - The simplified range to convert
95
+ * @returns QueryRange with standard assumptions (min inclusive, max exclusive)
96
+ * @hidden
97
+ */
98
+ export declare function convertSimplifiedRangeToQueryRange(simplifiedRange: RangeBoundary): QueryRange;
99
+ //# sourceMappingURL=CompositeQueryContinuationToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompositeQueryContinuationToken.d.ts","sourceRoot":"","sources":["../../../../src/documents/ContinuationToken/CompositeQueryContinuationToken.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AAE1F;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,aAAa,EAAE,+BAA+B,EAAE,CAAC;IAEjD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,+BAAgC,SAAQ,qBAAqB;CAAG;AAEjF;;;GAGG;AACH,wBAAgB,qCAAqC,CACnD,GAAG,EAAE,MAAM,EACX,aAAa,EAAE,+BAA+B,EAAE,EAChD,MAAM,CAAC,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,MAAM,GACb,+BAA+B,CAejC;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,+BAA+B,GAAG,MAAM,CAEtF;AAED;;;GAGG;AACH,wBAAgB,oCAAoC,CAClD,WAAW,EAAE,MAAM,GAClB,+BAA+B,CAEjC;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,WAAW,EAAE,MAAM,GAAG,qBAAqB,CAErF;AAED;;;GAGG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,UAAU,EAAE,aAAa,CAAC;IAE1B;;OAEG;IACH,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC7C,YAAY,EAAE,iBAAiB,GAC9B,+BAA+B,CAqBjC;AAED;;;;;GAKG;AACH,wBAAgB,2CAA2C,CACzD,aAAa,EAAE,iBAAiB,EAAE,GACjC,+BAA+B,EAAE,CAEnC;AAED;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAAC,eAAe,EAAE,aAAa,GAAG,UAAU,CAO7F"}
@@ -0,0 +1,84 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { QueryRange } from "../../routing/QueryRange.js";
4
+ /**
5
+ * Creates a new CompositeQueryContinuationToken
6
+ * @hidden
7
+ */
8
+ export function createCompositeQueryContinuationToken(rid, rangeMappings, offset, limit) {
9
+ if (!rangeMappings || rangeMappings.length === 0) {
10
+ throw new Error("Failed to create composite continuation token: No partition range mappings provided. " +
11
+ "This typically indicates an issue with query execution context initialization or partition key range resolution. " +
12
+ "Ensure the query is properly configured and the container has valid partition ranges.");
13
+ }
14
+ return {
15
+ rid,
16
+ rangeMappings: rangeMappings,
17
+ offset,
18
+ limit,
19
+ };
20
+ }
21
+ /**
22
+ * Serializes the composite continuation token to a JSON string
23
+ * @hidden
24
+ */
25
+ export function serializeCompositeToken(token) {
26
+ return JSON.stringify(token);
27
+ }
28
+ /**
29
+ * Deserializes a JSON string to a CompositeQueryContinuationToken
30
+ * @hidden
31
+ */
32
+ export function parseCompositeQueryContinuationToken(tokenString) {
33
+ return JSON.parse(tokenString);
34
+ }
35
+ /**
36
+ * Deserializes a JSON string to a CompositeQueryContinuationToken
37
+ * @hidden
38
+ */
39
+ export function parseBaseContinuationToken(tokenString) {
40
+ return JSON.parse(tokenString);
41
+ }
42
+ /**
43
+ * Converts QueryRangeMapping to QueryRangeWithContinuationToken using simplified range format
44
+ * @param rangeMapping - The QueryRangeMapping to convert
45
+ * @returns QueryRangeWithContinuationToken with simplified boundaries and continuation token
46
+ * @hidden
47
+ */
48
+ export function convertRangeMappingToQueryRange(rangeMapping) {
49
+ if (!rangeMapping.partitionKeyRange) {
50
+ throw new Error("Failed to convert range mapping: Missing partition key range information. " +
51
+ "The QueryRangeMapping object must contain a valid partitionKeyRange with min and max boundaries. " +
52
+ "This may indicate an incomplete partition key range resolution during query setup.");
53
+ }
54
+ const pkRange = rangeMapping.partitionKeyRange;
55
+ // Create simplified range assuming min is inclusive and max is exclusive
56
+ const simplifiedRange = {
57
+ min: pkRange.minInclusive,
58
+ max: pkRange.maxExclusive,
59
+ };
60
+ return {
61
+ queryRange: simplifiedRange,
62
+ continuationToken: rangeMapping.continuationToken,
63
+ };
64
+ }
65
+ /**
66
+ * Converts an array of QueryRangeMapping to an array of QueryRangeWithContinuationToken
67
+ * @param rangeMappings - Array of QueryRangeMapping to convert
68
+ * @returns Array of QueryRangeWithContinuationToken with simplified boundaries and continuation tokens
69
+ * @hidden
70
+ */
71
+ export function convertRangeMappingsToQueryRangesWithTokens(rangeMappings) {
72
+ return rangeMappings.map((mapping) => convertRangeMappingToQueryRange(mapping));
73
+ }
74
+ /**
75
+ * Converts a SimplifiedQueryRange back to a QueryRange for internal use
76
+ * @param simplifiedRange - The simplified range to convert
77
+ * @returns QueryRange with standard assumptions (min inclusive, max exclusive)
78
+ * @hidden
79
+ */
80
+ export function convertSimplifiedRangeToQueryRange(simplifiedRange) {
81
+ return new QueryRange(simplifiedRange.min, simplifiedRange.max, true, // minInclusive = true (assumption)
82
+ false);
83
+ }
84
+ //# sourceMappingURL=CompositeQueryContinuationToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompositeQueryContinuationToken.js","sourceRoot":"","sources":["../../../../src/documents/ContinuationToken/CompositeQueryContinuationToken.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAiDzD;;;GAGG;AACH,MAAM,UAAU,qCAAqC,CACnD,GAAW,EACX,aAAgD,EAChD,MAAe,EACf,KAAc;IAEd,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjD,MAAM,IAAI,KAAK,CACb,uFAAuF;YACrF,mHAAmH;YACnH,uFAAuF,CAC1F,CAAC;IACJ,CAAC;IAED,OAAO;QACL,GAAG;QACH,aAAa,EAAE,aAAa;QAC5B,MAAM;QACN,KAAK;KACN,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAAsC;IAC5E,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAC/B,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oCAAoC,CAClD,WAAmB;IAEnB,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;AACjC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,0BAA0B,CAAC,WAAmB;IAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;AACjC,CAAC;AAkBD;;;;;GAKG;AACH,MAAM,UAAU,+BAA+B,CAC7C,YAA+B;IAE/B,IAAI,CAAC,YAAY,CAAC,iBAAiB,EAAE,CAAC;QACpC,MAAM,IAAI,KAAK,CACb,4EAA4E;YAC1E,mGAAmG;YACnG,oFAAoF,CACvF,CAAC;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,YAAY,CAAC,iBAAiB,CAAC;IAE/C,yEAAyE;IACzE,MAAM,eAAe,GAAkB;QACrC,GAAG,EAAE,OAAO,CAAC,YAAY;QACzB,GAAG,EAAE,OAAO,CAAC,YAAY;KAC1B,CAAC;IAEF,OAAO;QACL,UAAU,EAAE,eAAe;QAC3B,iBAAiB,EAAE,YAAY,CAAC,iBAAiB;KAClD,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,2CAA2C,CACzD,aAAkC;IAElC,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,+BAA+B,CAAC,OAAO,CAAC,CAAC,CAAC;AAClF,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,kCAAkC,CAAC,eAA8B;IAC/E,OAAO,IAAI,UAAU,CACnB,eAAe,CAAC,GAAG,EACnB,eAAe,CAAC,GAAG,EACnB,IAAI,EAAE,mCAAmC;IACzC,KAAK,CACN,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { QueryRange } from \"../../routing/QueryRange.js\";\nimport type { QueryRangeMapping } from \"../../queryExecutionContext/queryRangeMapping.js\";\n\n/**\n * @hidden\n */\nexport interface RangeBoundary {\n /**\n * Minimum boundary (inclusive)\n */\n min: string;\n /**\n * Maximum boundary (exclusive)\n */\n max: string;\n}\n\n/**\n * @hidden\n * Base interface for all continuation tokens containing common fields\n */\nexport interface BaseContinuationToken {\n /**\n * Resource ID of the container for which the continuation token is issued\n */\n rid: string;\n\n /**\n * List of query ranges with their continuation tokens\n */\n rangeMappings: QueryRangeWithContinuationToken[];\n\n /**\n * Current offset value for OFFSET/LIMIT queries\n */\n offset?: number;\n\n /**\n * Current limit value for OFFSET/LIMIT queries\n */\n limit?: number;\n}\n\n/**\n * @hidden\n * Composite continuation token for parallel query execution across multiple partition ranges\n */\nexport interface CompositeQueryContinuationToken extends BaseContinuationToken {}\n\n/**\n * Creates a new CompositeQueryContinuationToken\n * @hidden\n */\nexport function createCompositeQueryContinuationToken(\n rid: string,\n rangeMappings: QueryRangeWithContinuationToken[],\n offset?: number,\n limit?: number,\n): CompositeQueryContinuationToken {\n if (!rangeMappings || rangeMappings.length === 0) {\n throw new Error(\n \"Failed to create composite continuation token: No partition range mappings provided. \" +\n \"This typically indicates an issue with query execution context initialization or partition key range resolution. \" +\n \"Ensure the query is properly configured and the container has valid partition ranges.\",\n );\n }\n\n return {\n rid,\n rangeMappings: rangeMappings,\n offset,\n limit,\n };\n}\n\n/**\n * Serializes the composite continuation token to a JSON string\n * @hidden\n */\nexport function serializeCompositeToken(token: CompositeQueryContinuationToken): string {\n return JSON.stringify(token);\n}\n\n/**\n * Deserializes a JSON string to a CompositeQueryContinuationToken\n * @hidden\n */\nexport function parseCompositeQueryContinuationToken(\n tokenString: string,\n): CompositeQueryContinuationToken {\n return JSON.parse(tokenString);\n}\n\n/**\n * Deserializes a JSON string to a CompositeQueryContinuationToken\n * @hidden\n */\nexport function parseBaseContinuationToken(tokenString: string): BaseContinuationToken {\n return JSON.parse(tokenString);\n}\n\n/**\n * @hidden\n * Represents a query range with its associated continuation token\n */\nexport interface QueryRangeWithContinuationToken {\n /**\n * The simplified query range containing min/max boundaries\n */\n queryRange: RangeBoundary;\n\n /**\n * The continuation token for this specific range\n */\n continuationToken: string | undefined;\n}\n\n/**\n * Converts QueryRangeMapping to QueryRangeWithContinuationToken using simplified range format\n * @param rangeMapping - The QueryRangeMapping to convert\n * @returns QueryRangeWithContinuationToken with simplified boundaries and continuation token\n * @hidden\n */\nexport function convertRangeMappingToQueryRange(\n rangeMapping: QueryRangeMapping,\n): QueryRangeWithContinuationToken {\n if (!rangeMapping.partitionKeyRange) {\n throw new Error(\n \"Failed to convert range mapping: Missing partition key range information. \" +\n \"The QueryRangeMapping object must contain a valid partitionKeyRange with min and max boundaries. \" +\n \"This may indicate an incomplete partition key range resolution during query setup.\",\n );\n }\n\n const pkRange = rangeMapping.partitionKeyRange;\n\n // Create simplified range assuming min is inclusive and max is exclusive\n const simplifiedRange: RangeBoundary = {\n min: pkRange.minInclusive,\n max: pkRange.maxExclusive,\n };\n\n return {\n queryRange: simplifiedRange,\n continuationToken: rangeMapping.continuationToken,\n };\n}\n\n/**\n * Converts an array of QueryRangeMapping to an array of QueryRangeWithContinuationToken\n * @param rangeMappings - Array of QueryRangeMapping to convert\n * @returns Array of QueryRangeWithContinuationToken with simplified boundaries and continuation tokens\n * @hidden\n */\nexport function convertRangeMappingsToQueryRangesWithTokens(\n rangeMappings: QueryRangeMapping[],\n): QueryRangeWithContinuationToken[] {\n return rangeMappings.map((mapping) => convertRangeMappingToQueryRange(mapping));\n}\n\n/**\n * Converts a SimplifiedQueryRange back to a QueryRange for internal use\n * @param simplifiedRange - The simplified range to convert\n * @returns QueryRange with standard assumptions (min inclusive, max exclusive)\n * @hidden\n */\nexport function convertSimplifiedRangeToQueryRange(simplifiedRange: RangeBoundary): QueryRange {\n return new QueryRange(\n simplifiedRange.min,\n simplifiedRange.max,\n true, // minInclusive = true (assumption)\n false, // maxInclusive = false (max is exclusive, assumption)\n );\n}\n"]}
@@ -0,0 +1,40 @@
1
+ import type { QueryRangeWithContinuationToken, BaseContinuationToken } from "./CompositeQueryContinuationToken.js";
2
+ /**
3
+ * Continuation token for order by queries.
4
+ * @hidden
5
+ */
6
+ export interface OrderByQueryContinuationToken extends BaseContinuationToken {
7
+ /**
8
+ * Order by items for the query
9
+ */
10
+ orderByItems: any[];
11
+ /**
12
+ * Number of items to skip in the query
13
+ */
14
+ skipCount: number;
15
+ /**
16
+ * Document ID of the last document result
17
+ */
18
+ documentRid: string;
19
+ /**
20
+ * Hash of the last document result for distinct order queries
21
+ * Used to ensure duplicates are not returned across continuation boundaries
22
+ */
23
+ hashedLastResult?: string;
24
+ }
25
+ /**
26
+ * Creates an OrderByQueryContinuationToken
27
+ * @hidden
28
+ */
29
+ export declare function createOrderByQueryContinuationToken(rangeMappings: QueryRangeWithContinuationToken[], orderByItems: any[], rid: string, skipCount: number, documentRid?: string, offset?: number, limit?: number, hashedLastResult?: string): OrderByQueryContinuationToken;
30
+ /**
31
+ * Serializes an OrderByQueryContinuationToken to a JSON string
32
+ * @hidden
33
+ */
34
+ export declare function serializeOrderByQueryContinuationToken(token: OrderByQueryContinuationToken): string;
35
+ /**
36
+ * Deserializes a JSON string to an OrderByQueryContinuationToken
37
+ * @hidden
38
+ */
39
+ export declare function parseOrderByQueryContinuationToken(tokenString: string): OrderByQueryContinuationToken;
40
+ //# sourceMappingURL=OrderByQueryContinuationToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrderByQueryContinuationToken.d.ts","sourceRoot":"","sources":["../../../../src/documents/ContinuationToken/OrderByQueryContinuationToken.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,+BAA+B,EAC/B,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAE9C;;;GAGG;AACH,MAAM,WAAW,6BAA8B,SAAQ,qBAAqB;IAC1E;;OAEG;IACH,YAAY,EAAE,GAAG,EAAE,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;GAGG;AACH,wBAAgB,mCAAmC,CACjD,aAAa,EAAE,+BAA+B,EAAE,EAChD,YAAY,EAAE,GAAG,EAAE,EACnB,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,MAAM,EACjB,WAAW,CAAC,EAAE,MAAM,EACpB,MAAM,CAAC,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,MAAM,EACd,gBAAgB,CAAC,EAAE,MAAM,GACxB,6BAA6B,CAmB/B;AAED;;;GAGG;AACH,wBAAgB,sCAAsC,CACpD,KAAK,EAAE,6BAA6B,GACnC,MAAM,CAER;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CAChD,WAAW,EAAE,MAAM,GAClB,6BAA6B,CAE/B"}
@@ -0,0 +1,39 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ /**
4
+ * Creates an OrderByQueryContinuationToken
5
+ * @hidden
6
+ */
7
+ export function createOrderByQueryContinuationToken(rangeMappings, orderByItems, rid, skipCount, documentRid, offset, limit, hashedLastResult) {
8
+ if (!rangeMappings || rangeMappings.length === 0) {
9
+ throw new Error("rangeMappings must contain at least one element");
10
+ }
11
+ if (!orderByItems || orderByItems.length === 0) {
12
+ throw new Error("orderByItems must contain at least one element");
13
+ }
14
+ return {
15
+ rangeMappings,
16
+ orderByItems,
17
+ rid,
18
+ skipCount,
19
+ documentRid,
20
+ offset,
21
+ limit,
22
+ hashedLastResult,
23
+ };
24
+ }
25
+ /**
26
+ * Serializes an OrderByQueryContinuationToken to a JSON string
27
+ * @hidden
28
+ */
29
+ export function serializeOrderByQueryContinuationToken(token) {
30
+ return JSON.stringify(token);
31
+ }
32
+ /**
33
+ * Deserializes a JSON string to an OrderByQueryContinuationToken
34
+ * @hidden
35
+ */
36
+ export function parseOrderByQueryContinuationToken(tokenString) {
37
+ return JSON.parse(tokenString);
38
+ }
39
+ //# sourceMappingURL=OrderByQueryContinuationToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrderByQueryContinuationToken.js","sourceRoot":"","sources":["../../../../src/documents/ContinuationToken/OrderByQueryContinuationToken.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAkClC;;;GAGG;AACH,MAAM,UAAU,mCAAmC,CACjD,aAAgD,EAChD,YAAmB,EACnB,GAAW,EACX,SAAiB,EACjB,WAAoB,EACpB,MAAe,EACf,KAAc,EACd,gBAAyB;IAEzB,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjD,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;IACrE,CAAC;IAED,IAAI,CAAC,YAAY,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/C,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;IACpE,CAAC;IAED,OAAO;QACL,aAAa;QACb,YAAY;QACZ,GAAG;QACH,SAAS;QACT,WAAW;QACX,MAAM;QACN,KAAK;QACL,gBAAgB;KACgB,CAAC;AACrC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,sCAAsC,CACpD,KAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAC/B,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,kCAAkC,CAChD,WAAmB;IAEnB,OAAO,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n QueryRangeWithContinuationToken,\n BaseContinuationToken,\n} from \"./CompositeQueryContinuationToken.js\";\n\n/**\n * Continuation token for order by queries.\n * @hidden\n */\nexport interface OrderByQueryContinuationToken extends BaseContinuationToken {\n /**\n * Order by items for the query\n */\n orderByItems: any[];\n\n /**\n * Number of items to skip in the query\n */\n skipCount: number;\n\n /**\n * Document ID of the last document result\n */\n documentRid: string;\n\n /**\n * Hash of the last document result for distinct order queries\n * Used to ensure duplicates are not returned across continuation boundaries\n */\n hashedLastResult?: string;\n}\n\n/**\n * Creates an OrderByQueryContinuationToken\n * @hidden\n */\nexport function createOrderByQueryContinuationToken(\n rangeMappings: QueryRangeWithContinuationToken[],\n orderByItems: any[],\n rid: string,\n skipCount: number,\n documentRid?: string,\n offset?: number,\n limit?: number,\n hashedLastResult?: string,\n): OrderByQueryContinuationToken {\n if (!rangeMappings || rangeMappings.length === 0) {\n throw new Error(\"rangeMappings must contain at least one element\");\n }\n\n if (!orderByItems || orderByItems.length === 0) {\n throw new Error(\"orderByItems must contain at least one element\");\n }\n\n return {\n rangeMappings,\n orderByItems,\n rid,\n skipCount,\n documentRid,\n offset,\n limit,\n hashedLastResult,\n } as OrderByQueryContinuationToken;\n}\n\n/**\n * Serializes an OrderByQueryContinuationToken to a JSON string\n * @hidden\n */\nexport function serializeOrderByQueryContinuationToken(\n token: OrderByQueryContinuationToken,\n): string {\n return JSON.stringify(token);\n}\n\n/**\n * Deserializes a JSON string to an OrderByQueryContinuationToken\n * @hidden\n */\nexport function parseOrderByQueryContinuationToken(\n tokenString: string,\n): OrderByQueryContinuationToken {\n return JSON.parse(tokenString);\n}\n"]}
@@ -0,0 +1,21 @@
1
+ import type { QueryRange } from "../../index.js";
2
+ /**
3
+ * Represents information about a partition range update that occurred during query execution.
4
+ * This includes the original range, new ranges after split/merge, and the continuation token.
5
+ * @hidden
6
+ */
7
+ export interface PartitionRangeUpdate {
8
+ /** The original partition key range before the split/merge operation */
9
+ oldRange: QueryRange;
10
+ /** The new partition key ranges after the split/merge operation */
11
+ newRanges: QueryRange[];
12
+ /** The continuation token associated with this range update */
13
+ continuationToken: string | undefined;
14
+ }
15
+ /**
16
+ * A collection of partition range updates indexed by range keys.
17
+ * The key is typically in the format "minInclusive-maxExclusive".
18
+ * @hidden
19
+ */
20
+ export type PartitionRangeUpdates = Record<string, PartitionRangeUpdate>;
21
+ //# sourceMappingURL=PartitionRangeUpdate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PartitionRangeUpdate.d.ts","sourceRoot":"","sources":["../../../../src/documents/ContinuationToken/PartitionRangeUpdate.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,wEAAwE;IACxE,QAAQ,EAAE,UAAU,CAAC;IACrB,mEAAmE;IACnE,SAAS,EAAE,UAAU,EAAE,CAAC;IACxB,+DAA+D;IAC/D,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC;AAED;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ export {};
4
+ //# sourceMappingURL=PartitionRangeUpdate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PartitionRangeUpdate.js","sourceRoot":"","sources":["../../../../src/documents/ContinuationToken/PartitionRangeUpdate.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { QueryRange } from \"../../index.js\";\n\n/**\n * Represents information about a partition range update that occurred during query execution.\n * This includes the original range, new ranges after split/merge, and the continuation token.\n * @hidden\n */\nexport interface PartitionRangeUpdate {\n /** The original partition key range before the split/merge operation */\n oldRange: QueryRange;\n /** The new partition key ranges after the split/merge operation */\n newRanges: QueryRange[];\n /** The continuation token associated with this range update */\n continuationToken: string | undefined;\n}\n\n/**\n * A collection of partition range updates indexed by range keys.\n * The key is typically in the format \"minInclusive-maxExclusive\".\n * @hidden\n */\nexport type PartitionRangeUpdates = Record<string, PartitionRangeUpdate>;\n"]}
@@ -33,6 +33,10 @@ export interface VectorEmbedding {
33
33
  * Represents the data type of the vector.
34
34
  */
35
35
  export declare enum VectorEmbeddingDataType {
36
+ /**
37
+ * 16-bit floating point number.
38
+ */
39
+ Float16 = "float16",
36
40
  /**
37
41
  * 32-bit floating point number.
38
42
  */
@@ -1 +1 @@
1
- {"version":3,"file":"VectorEmbeddingPolicy.d.ts","sourceRoot":"","sources":["../../../src/documents/VectorEmbeddingPolicy.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,gBAAgB,EAAE,eAAe,EAAE,CAAC;CACrC;AACD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,uBAAuB,CAAC;IAClC;;OAEG;IACH,gBAAgB,EAAE,+BAA+B,CAAC;CACnD;AAED;;GAEG;AACH,oBAAY,uBAAuB;IACjC;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,KAAK,UAAU;IACf;;OAEG;IACH,IAAI,SAAS;CACd;AACD;;GAEG;AACH,oBAAY,+BAA+B;IACzC;;OAEG;IACH,SAAS,cAAc;IACvB;;OAEG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,UAAU,eAAe;CAC1B"}
1
+ {"version":3,"file":"VectorEmbeddingPolicy.d.ts","sourceRoot":"","sources":["../../../src/documents/VectorEmbeddingPolicy.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,gBAAgB,EAAE,eAAe,EAAE,CAAC;CACrC;AACD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,EAAE,uBAAuB,CAAC;IAClC;;OAEG;IACH,gBAAgB,EAAE,+BAA+B,CAAC;CACnD;AAED;;GAEG;AACH,oBAAY,uBAAuB;IACjC;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,KAAK,UAAU;IACf;;OAEG;IACH,IAAI,SAAS;CACd;AACD;;GAEG;AACH,oBAAY,+BAA+B;IACzC;;OAEG;IACH,SAAS,cAAc;IACvB;;OAEG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,UAAU,eAAe;CAC1B"}
@@ -3,6 +3,10 @@
3
3
  */
4
4
  export var VectorEmbeddingDataType;
5
5
  (function (VectorEmbeddingDataType) {
6
+ /**
7
+ * 16-bit floating point number.
8
+ */
9
+ VectorEmbeddingDataType["Float16"] = "float16";
6
10
  /**
7
11
  * 32-bit floating point number.
8
12
  */
@@ -1 +1 @@
1
- {"version":3,"file":"VectorEmbeddingPolicy.js","sourceRoot":"","sources":["../../../src/documents/VectorEmbeddingPolicy.ts"],"names":[],"mappings":"AAkCA;;GAEG;AACH,MAAM,CAAN,IAAY,uBAaX;AAbD,WAAY,uBAAuB;IACjC;;OAEG;IACH,8CAAmB,CAAA;IACnB;;OAEG;IACH,0CAAe,CAAA;IACf;;OAEG;IACH,wCAAa,CAAA;AACf,CAAC,EAbW,uBAAuB,KAAvB,uBAAuB,QAalC;AACD;;GAEG;AACH,MAAM,CAAN,IAAY,+BAaX;AAbD,WAAY,+BAA+B;IACzC;;OAEG;IACH,0DAAuB,CAAA;IACvB;;OAEG;IACH,oDAAiB,CAAA;IACjB;;OAEG;IACH,4DAAyB,CAAA;AAC3B,CAAC,EAbW,+BAA+B,KAA/B,+BAA+B,QAa1C","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/**\n * Represents the policy configuration for vector embeddings in the Azure Cosmos DB service.\n */\nexport interface VectorEmbeddingPolicy {\n /**\n * The vector embeddings to be configured.\n */\n vectorEmbeddings: VectorEmbedding[];\n}\n/**\n * Represents a vector embedding.\n * A vector embedding is used to define a vector field in the documents.\n */\nexport interface VectorEmbedding {\n /**\n * The path to the vector field in the document.\n */\n path: string;\n /**\n * The number of dimensions in the vector.\n */\n dimensions: number;\n /**\n * The data type of the vector.\n */\n dataType: VectorEmbeddingDataType;\n /**\n * The distance function to use for distance calculation in between vectors.\n */\n distanceFunction: VectorEmbeddingDistanceFunction;\n}\n\n/**\n * Represents the data type of the vector.\n */\nexport enum VectorEmbeddingDataType {\n /**\n * 32-bit floating point number.\n */\n Float32 = \"float32\",\n /**\n * 8-bit unsigned integer.\n */\n UInt8 = \"uint8\",\n /**\n * 8-bit signed integer.\n */\n Int8 = \"int8\",\n}\n/**\n * Represents the distance function to use for distance calculation in between vectors.\n */\nexport enum VectorEmbeddingDistanceFunction {\n /**\n * Represents euclidean distance function.\n */\n Euclidean = \"euclidean\",\n /**\n * Represents cosine distance function.\n */\n Cosine = \"cosine\",\n /**\n * Represents dot product distance function.\n */\n DotProduct = \"dotproduct\",\n}\n"]}
1
+ {"version":3,"file":"VectorEmbeddingPolicy.js","sourceRoot":"","sources":["../../../src/documents/VectorEmbeddingPolicy.ts"],"names":[],"mappings":"AAkCA;;GAEG;AACH,MAAM,CAAN,IAAY,uBAiBX;AAjBD,WAAY,uBAAuB;IACjC;;OAEG;IACH,8CAAmB,CAAA;IACnB;;OAEG;IACH,8CAAmB,CAAA;IACnB;;OAEG;IACH,0CAAe,CAAA;IACf;;OAEG;IACH,wCAAa,CAAA;AACf,CAAC,EAjBW,uBAAuB,KAAvB,uBAAuB,QAiBlC;AACD;;GAEG;AACH,MAAM,CAAN,IAAY,+BAaX;AAbD,WAAY,+BAA+B;IACzC;;OAEG;IACH,0DAAuB,CAAA;IACvB;;OAEG;IACH,oDAAiB,CAAA;IACjB;;OAEG;IACH,4DAAyB,CAAA;AAC3B,CAAC,EAbW,+BAA+B,KAA/B,+BAA+B,QAa1C","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/**\n * Represents the policy configuration for vector embeddings in the Azure Cosmos DB service.\n */\nexport interface VectorEmbeddingPolicy {\n /**\n * The vector embeddings to be configured.\n */\n vectorEmbeddings: VectorEmbedding[];\n}\n/**\n * Represents a vector embedding.\n * A vector embedding is used to define a vector field in the documents.\n */\nexport interface VectorEmbedding {\n /**\n * The path to the vector field in the document.\n */\n path: string;\n /**\n * The number of dimensions in the vector.\n */\n dimensions: number;\n /**\n * The data type of the vector.\n */\n dataType: VectorEmbeddingDataType;\n /**\n * The distance function to use for distance calculation in between vectors.\n */\n distanceFunction: VectorEmbeddingDistanceFunction;\n}\n\n/**\n * Represents the data type of the vector.\n */\nexport enum VectorEmbeddingDataType {\n /**\n * 16-bit floating point number.\n */\n Float16 = \"float16\",\n /**\n * 32-bit floating point number.\n */\n Float32 = \"float32\",\n /**\n * 8-bit unsigned integer.\n */\n UInt8 = \"uint8\",\n /**\n * 8-bit signed integer.\n */\n Int8 = \"int8\",\n}\n/**\n * Represents the distance function to use for distance calculation in between vectors.\n */\nexport enum VectorEmbeddingDistanceFunction {\n /**\n * Represents euclidean distance function.\n */\n Euclidean = \"euclidean\",\n /**\n * Represents cosine distance function.\n */\n Cosine = \"cosine\",\n /**\n * Represents dot product distance function.\n */\n DotProduct = \"dotproduct\",\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"MaxAggregator.d.ts","sourceRoot":"","sources":["../../../../src/queryExecutionContext/Aggregators/MaxAggregator.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,cAAc;AACd,qBAAa,aAAc,YAAW,UAAU;IAC9C,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,QAAQ,CAAoC;IACpD;;;OAGG;;IAKH;;OAEG;IACI,SAAS,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI;IAUjD;;OAEG;IACI,SAAS,IAAI,MAAM;CAG3B"}
1
+ {"version":3,"file":"MaxAggregator.d.ts","sourceRoot":"","sources":["../../../../src/queryExecutionContext/Aggregators/MaxAggregator.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,cAAc;AACd,qBAAa,aAAc,YAAW,UAAU;IAC9C,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,QAAQ,CAAoC;IACpD;;;OAGG;;IAKH;;OAEG;IACI,SAAS,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI;IAejD;;OAEG;IACI,SAAS,IAAI,MAAM;CAG3B"}
@@ -17,6 +17,10 @@ export class MaxAggregator {
17
17
  * Add the provided item to aggregation result.
18
18
  */
19
19
  aggregate(other) {
20
+ // Skip aggregation if other.max is undefined (empty partition with count:0)
21
+ if (other.max === undefined) {
22
+ return;
23
+ }
20
24
  if (this.value === undefined) {
21
25
  this.value = other.max;
22
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"MaxAggregator.js","sourceRoot":"","sources":["../../../../src/queryExecutionContext/Aggregators/MaxAggregator.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAQ5F,cAAc;AACd,MAAM,OAAO,aAAa;IAChB,KAAK,CAAS;IACd,QAAQ,CAAoC;IACpD;;;OAGG;IACH;QACE,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,IAAI,iCAAiC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;IACvE,CAAC;IACD;;OAEG;IACI,SAAS,CAAC,KAAyB;QACxC,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC;QACzB,CAAC;aAAM,IACL,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,EAAE,OAAO,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAC1F,CAAC;YACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC;QACzB,CAAC;IACH,CAAC;IAED;;OAEG;IACI,SAAS;QACd,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { OrderByDocumentProducerComparator } from \"../orderByDocumentProducerComparator.js\";\nimport type { Aggregator } from \"./Aggregator.js\";\n\ninterface MaxAggregateResult {\n count: number;\n max?: number;\n}\n\n/** @hidden */\nexport class MaxAggregator implements Aggregator {\n private value: number;\n private comparer: OrderByDocumentProducerComparator;\n /**\n * Represents an aggregator for MAX operator.\n * @hidden\n */\n constructor() {\n this.value = undefined;\n this.comparer = new OrderByDocumentProducerComparator([\"Ascending\"]);\n }\n /**\n * Add the provided item to aggregation result.\n */\n public aggregate(other: MaxAggregateResult): void {\n if (this.value === undefined) {\n this.value = other.max;\n } else if (\n this.comparer.compareValue(other.max, typeof other.max, this.value, typeof this.value) > 0\n ) {\n this.value = other.max;\n }\n }\n\n /**\n * Get the aggregation result.\n */\n public getResult(): number {\n return this.value;\n }\n}\n"]}
1
+ {"version":3,"file":"MaxAggregator.js","sourceRoot":"","sources":["../../../../src/queryExecutionContext/Aggregators/MaxAggregator.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAQ5F,cAAc;AACd,MAAM,OAAO,aAAa;IAChB,KAAK,CAAS;IACd,QAAQ,CAAoC;IACpD;;;OAGG;IACH;QACE,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,IAAI,iCAAiC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;IACvE,CAAC;IACD;;OAEG;IACI,SAAS,CAAC,KAAyB;QACxC,4EAA4E;QAC5E,IAAI,KAAK,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;YAC5B,OAAO;QACT,CAAC;QAED,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC;QACzB,CAAC;aAAM,IACL,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,EAAE,OAAO,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAC1F,CAAC;YACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC;QACzB,CAAC;IACH,CAAC;IAED;;OAEG;IACI,SAAS;QACd,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { OrderByDocumentProducerComparator } from \"../orderByDocumentProducerComparator.js\";\nimport type { Aggregator } from \"./Aggregator.js\";\n\ninterface MaxAggregateResult {\n count: number;\n max?: number;\n}\n\n/** @hidden */\nexport class MaxAggregator implements Aggregator {\n private value: number;\n private comparer: OrderByDocumentProducerComparator;\n /**\n * Represents an aggregator for MAX operator.\n * @hidden\n */\n constructor() {\n this.value = undefined;\n this.comparer = new OrderByDocumentProducerComparator([\"Ascending\"]);\n }\n /**\n * Add the provided item to aggregation result.\n */\n public aggregate(other: MaxAggregateResult): void {\n // Skip aggregation if other.max is undefined (empty partition with count:0)\n if (other.max === undefined) {\n return;\n }\n\n if (this.value === undefined) {\n this.value = other.max;\n } else if (\n this.comparer.compareValue(other.max, typeof other.max, this.value, typeof this.value) > 0\n ) {\n this.value = other.max;\n }\n }\n\n /**\n * Get the aggregation result.\n */\n public getResult(): number {\n return this.value;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"MinAggregator.d.ts","sourceRoot":"","sources":["../../../../src/queryExecutionContext/Aggregators/MinAggregator.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,cAAc;AACd,qBAAa,aAAc,YAAW,UAAU;IAC9C,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,QAAQ,CAAoC;IACpD;;;OAGG;;IAKH;;OAEG;IACI,SAAS,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI;IAajD;;OAEG;IACI,SAAS,IAAI,MAAM;CAG3B"}
1
+ {"version":3,"file":"MinAggregator.d.ts","sourceRoot":"","sources":["../../../../src/queryExecutionContext/Aggregators/MinAggregator.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,cAAc;AACd,qBAAa,aAAc,YAAW,UAAU;IAC9C,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,QAAQ,CAAoC;IACpD;;;OAGG;;IAKH;;OAEG;IACI,SAAS,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI;IAkBjD;;OAEG;IACI,SAAS,IAAI,MAAM;CAG3B"}
@@ -17,6 +17,10 @@ export class MinAggregator {
17
17
  * Add the provided item to aggregation result.
18
18
  */
19
19
  aggregate(other) {
20
+ // Skip aggregation if other.min is undefined (empty partition with count:0)
21
+ if (other.min === undefined) {
22
+ return;
23
+ }
20
24
  if (this.value === undefined) {
21
25
  // || typeof this.value === "object"
22
26
  this.value = other.min;
@@ -1 +1 @@
1
- {"version":3,"file":"MinAggregator.js","sourceRoot":"","sources":["../../../../src/queryExecutionContext/Aggregators/MinAggregator.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAQ5F,cAAc;AACd,MAAM,OAAO,aAAa;IAChB,KAAK,CAAS;IACd,QAAQ,CAAoC;IACpD;;;OAGG;IACH;QACE,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,IAAI,iCAAiC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;IACvE,CAAC;IACD;;OAEG;IACI,SAAS,CAAC,KAAyB;QACxC,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC7B,oCAAoC;YACpC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC;QACzB,CAAC;aAAM,CAAC;YACN,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,+BAA+B;YACpG,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC;YACrE,IAAI,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC/E,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC;YACzB,CAAC;QACH,CAAC;IACH,CAAC;IAED;;OAEG;IACI,SAAS;QACd,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { OrderByDocumentProducerComparator } from \"../orderByDocumentProducerComparator.js\";\nimport type { Aggregator } from \"./Aggregator.js\";\n\nexport interface MinAggregateResult {\n min: number;\n count: number;\n}\n\n/** @hidden */\nexport class MinAggregator implements Aggregator {\n private value: number;\n private comparer: OrderByDocumentProducerComparator;\n /**\n * Represents an aggregator for MIN operator.\n * @hidden\n */\n constructor() {\n this.value = undefined;\n this.comparer = new OrderByDocumentProducerComparator([\"Ascending\"]);\n }\n /**\n * Add the provided item to aggregation result.\n */\n public aggregate(other: MinAggregateResult): void {\n if (this.value === undefined) {\n // || typeof this.value === \"object\"\n this.value = other.min;\n } else {\n const otherType = other.min === null ? \"NoValue\" : typeof other.min; // || typeof other === \"object\"\n const thisType = this.value === null ? \"NoValue\" : typeof this.value;\n if (this.comparer.compareValue(other.min, otherType, this.value, thisType) < 0) {\n this.value = other.min;\n }\n }\n }\n\n /**\n * Get the aggregation result.\n */\n public getResult(): number {\n return this.value;\n }\n}\n"]}
1
+ {"version":3,"file":"MinAggregator.js","sourceRoot":"","sources":["../../../../src/queryExecutionContext/Aggregators/MinAggregator.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAQ5F,cAAc;AACd,MAAM,OAAO,aAAa;IAChB,KAAK,CAAS;IACd,QAAQ,CAAoC;IACpD;;;OAGG;IACH;QACE,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,IAAI,iCAAiC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;IACvE,CAAC;IACD;;OAEG;IACI,SAAS,CAAC,KAAyB;QACxC,4EAA4E;QAC5E,IAAI,KAAK,CAAC,GAAG,KAAK,SAAS,EAAE,CAAC;YAC5B,OAAO;QACT,CAAC;QAED,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YAC7B,oCAAoC;YACpC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC;QACzB,CAAC;aAAM,CAAC;YACN,MAAM,SAAS,GAAG,KAAK,CAAC,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,+BAA+B;YACpG,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC;YACrE,IAAI,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC/E,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC;YACzB,CAAC;QACH,CAAC;IACH,CAAC;IAED;;OAEG;IACI,SAAS;QACd,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { OrderByDocumentProducerComparator } from \"../orderByDocumentProducerComparator.js\";\nimport type { Aggregator } from \"./Aggregator.js\";\n\nexport interface MinAggregateResult {\n min: number;\n count: number;\n}\n\n/** @hidden */\nexport class MinAggregator implements Aggregator {\n private value: number;\n private comparer: OrderByDocumentProducerComparator;\n /**\n * Represents an aggregator for MIN operator.\n * @hidden\n */\n constructor() {\n this.value = undefined;\n this.comparer = new OrderByDocumentProducerComparator([\"Ascending\"]);\n }\n /**\n * Add the provided item to aggregation result.\n */\n public aggregate(other: MinAggregateResult): void {\n // Skip aggregation if other.min is undefined (empty partition with count:0)\n if (other.min === undefined) {\n return;\n }\n\n if (this.value === undefined) {\n // || typeof this.value === \"object\"\n this.value = other.min;\n } else {\n const otherType = other.min === null ? \"NoValue\" : typeof other.min; // || typeof other === \"object\"\n const thisType = this.value === null ? \"NoValue\" : typeof this.value;\n if (this.comparer.compareValue(other.min, otherType, this.value, thisType) < 0) {\n this.value = other.min;\n }\n }\n }\n\n /**\n * Get the aggregation result.\n */\n public getResult(): number {\n return this.value;\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=BaseContinuationTokenManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseContinuationTokenManager.d.ts","sourceRoot":"","sources":["../../../../src/queryExecutionContext/ContinuationTokenManager/BaseContinuationTokenManager.ts"],"names":[],"mappings":""}
@@ -0,0 +1,174 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT License.
3
+ import { parseBaseContinuationToken, } from "../../documents/ContinuationToken/CompositeQueryContinuationToken.js";
4
+ import { PartitionRangeManager } from "../PartitionRangeManager.js";
5
+ /**
6
+ * Base abstract class for continuation token management.
7
+ * Provides common functionality shared between parallel and ORDER BY query token managers.
8
+ * @internal
9
+ */
10
+ export class BaseContinuationTokenManager {
11
+ ranges = [];
12
+ partitionRangeManager = new PartitionRangeManager();
13
+ constructor(initialContinuationToken) {
14
+ if (initialContinuationToken) {
15
+ const token = parseBaseContinuationToken(initialContinuationToken);
16
+ if (token?.rangeMappings) {
17
+ this.ranges = token.rangeMappings;
18
+ }
19
+ }
20
+ }
21
+ /**
22
+ * Provides controlled access to partition range manager for subclasses.
23
+ * This is the only protected access point needed.
24
+ */
25
+ get partitionManager() {
26
+ return this.partitionRangeManager;
27
+ }
28
+ /**
29
+ * Provides controlled access to ranges for subclasses.
30
+ * Made protected to allow subclass range management.
31
+ */
32
+ get rangeList() {
33
+ return this.ranges;
34
+ }
35
+ /**
36
+ * Processes query results and generates continuation tokens for pagination.
37
+ * Handles response data processing, range management, and token generation.
38
+ *
39
+ * @param pageSize - Maximum number of items to return in this page
40
+ * @param isResponseEmpty - Whether the current response contains no data
41
+ * @param responseResult - Optional response data containing partition mappings and query-specific data
42
+ * @returns Object containing the end index for slicing results and optional continuation token for next page
43
+ */
44
+ paginateResults(pageSize, isResponseEmpty, responseResult) {
45
+ // Process response data
46
+ if (responseResult) {
47
+ this.processResponseResult(responseResult);
48
+ }
49
+ this.removeExhaustedRangesFromRanges();
50
+ const result = this.processRangesForPagination(pageSize, isResponseEmpty);
51
+ const tokenString = this.generateContinuationTokenString();
52
+ // Clean up processed ranges
53
+ this.trimProcessedData(result.processedRanges, result.endIndex);
54
+ return {
55
+ endIndex: result.endIndex,
56
+ continuationToken: tokenString,
57
+ };
58
+ }
59
+ /**
60
+ * Generates continuation token string using the appropriate serialization function.
61
+ * This provides a common implementation that delegates to query-specific logic.
62
+ */
63
+ generateContinuationTokenString() {
64
+ const token = this.getCurrentContinuationToken();
65
+ if (!token) {
66
+ return undefined;
67
+ }
68
+ const serializeFunction = this.getSerializationFunction();
69
+ return serializeFunction(token);
70
+ }
71
+ /**
72
+ * Cleans up processed data after a page has been returned.
73
+ * Handles both common and query-specific cleanup.
74
+ */
75
+ trimProcessedData(processedRanges, endIndex) {
76
+ processedRanges.forEach((rangeId) => {
77
+ this.partitionRangeManager.removePartitionRangeMapping(rangeId);
78
+ });
79
+ // Delegate query-specific cleanup to subclass
80
+ this.performQuerySpecificDataTrim(processedRanges, endIndex);
81
+ }
82
+ addPartitionKeyRangeMap(partitionKeyRangeMap) {
83
+ this.partitionRangeManager.addPartitionKeyRangeMap(partitionKeyRangeMap);
84
+ }
85
+ /**
86
+ * Processes the entire response result and updates the continuation token manager state.
87
+ * This encapsulates all response handling logic in one place.
88
+ */
89
+ processResponseResult(responseResult) {
90
+ // Handle partition key range map
91
+ if (responseResult.partitionKeyRangeMap) {
92
+ this.addPartitionKeyRangeMap(responseResult.partitionKeyRangeMap);
93
+ }
94
+ // Handle partition range updates
95
+ if (responseResult.updatedContinuationRanges) {
96
+ this.handlePartitionRangeChanges(responseResult.updatedContinuationRanges);
97
+ }
98
+ this.processQuerySpecificResponse(responseResult);
99
+ }
100
+ isPartitionExhausted(continuationToken) {
101
+ return (!continuationToken ||
102
+ continuationToken === "" ||
103
+ continuationToken === "null" ||
104
+ continuationToken.toLowerCase() === "null");
105
+ }
106
+ removeExhaustedRangesFromRanges() {
107
+ if (!this.ranges || !Array.isArray(this.ranges)) {
108
+ return;
109
+ }
110
+ this.ranges = this.ranges.filter((mapping) => {
111
+ if (!mapping) {
112
+ return false;
113
+ }
114
+ const isExhausted = this.isPartitionExhausted(mapping.continuationToken);
115
+ return !isExhausted;
116
+ });
117
+ }
118
+ handlePartitionRangeChanges(updatedContinuationRanges) {
119
+ if (updatedContinuationRanges && Object.keys(updatedContinuationRanges).length === 0) {
120
+ return;
121
+ }
122
+ Object.entries(updatedContinuationRanges).forEach(([rangeKey, rangeChange]) => {
123
+ this.processRangeChange(rangeKey, rangeChange);
124
+ });
125
+ }
126
+ processRangeChange(_rangeKey, rangeChange) {
127
+ const { oldRange, newRanges, continuationToken } = rangeChange;
128
+ if (newRanges.length === 1) {
129
+ this.handleRangeMerge(oldRange, newRanges[0], continuationToken);
130
+ }
131
+ else {
132
+ this.handleRangeSplit(oldRange, newRanges, continuationToken);
133
+ }
134
+ }
135
+ handleRangeMerge(oldRange, newRange, continuationToken) {
136
+ // Find existing range mapping to update in the common ranges array
137
+ const existingMappingIndex = this.ranges.findIndex((mapping) => mapping.queryRange.min === oldRange.min && mapping.queryRange.max === oldRange.max);
138
+ if (existingMappingIndex < 0) {
139
+ return;
140
+ }
141
+ // Update existing mapping with new range properties
142
+ const existingMapping = this.ranges[existingMappingIndex];
143
+ // Create new simplified QueryRange with updated boundaries
144
+ const updatedQueryRange = {
145
+ min: newRange.min,
146
+ max: newRange.max,
147
+ };
148
+ // Update the mapping
149
+ existingMapping.queryRange = updatedQueryRange;
150
+ existingMapping.continuationToken = continuationToken;
151
+ }
152
+ handleRangeSplit(oldRange, newRanges, continuationToken) {
153
+ // Remove the old range mapping from the common ranges array
154
+ this.ranges = this.ranges.filter((mapping) => !(mapping.queryRange.min === oldRange.min && mapping.queryRange.max === oldRange.max));
155
+ // Add new range mappings for each split range
156
+ newRanges.forEach((newRange) => {
157
+ this.createNewRangeMapping(newRange, continuationToken);
158
+ });
159
+ }
160
+ createNewRangeMapping(partitionKeyRange, continuationToken) {
161
+ // Create new simplified QueryRange
162
+ const queryRange = {
163
+ min: partitionKeyRange.min,
164
+ max: partitionKeyRange.max,
165
+ };
166
+ // Create new QueryRangeWithContinuationToken
167
+ const newRangeWithToken = {
168
+ queryRange: queryRange,
169
+ continuationToken: continuationToken,
170
+ };
171
+ this.ranges.push(newRangeWithToken);
172
+ }
173
+ }
174
+ //# sourceMappingURL=BaseContinuationTokenManager.js.map