@azure/storage-blob-changefeed 12.0.0-alpha.20211217.2 → 12.0.0-alpha.20220113.3

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 (161) hide show
  1. package/README.md +4 -3
  2. package/dist/index.js +47 -47
  3. package/dist/index.js.map +1 -1
  4. package/dist-esm/storage-blob-changefeed/src/BlobChangeFeedClient.js +4 -4
  5. package/dist-esm/storage-blob-changefeed/src/BlobChangeFeedClient.js.map +1 -1
  6. package/dist-esm/storage-blob-changefeed/src/ChangeFeed.js +8 -8
  7. package/dist-esm/storage-blob-changefeed/src/ChangeFeed.js.map +1 -1
  8. package/dist-esm/storage-blob-changefeed/src/ChangeFeedFactory.js +7 -7
  9. package/dist-esm/storage-blob-changefeed/src/ChangeFeedFactory.js.map +1 -1
  10. package/dist-esm/storage-blob-changefeed/src/ChunkFactory.js +1 -1
  11. package/dist-esm/storage-blob-changefeed/src/ChunkFactory.js.map +1 -1
  12. package/dist-esm/storage-blob-changefeed/src/LazyLoadingBlobStream.js +5 -5
  13. package/dist-esm/storage-blob-changefeed/src/LazyLoadingBlobStream.js.map +1 -1
  14. package/dist-esm/storage-blob-changefeed/src/Segment.js +3 -3
  15. package/dist-esm/storage-blob-changefeed/src/Segment.js.map +1 -1
  16. package/dist-esm/storage-blob-changefeed/src/SegmentFactory.js +3 -3
  17. package/dist-esm/storage-blob-changefeed/src/SegmentFactory.js.map +1 -1
  18. package/dist-esm/storage-blob-changefeed/src/Shard.js +3 -3
  19. package/dist-esm/storage-blob-changefeed/src/Shard.js.map +1 -1
  20. package/dist-esm/storage-blob-changefeed/src/ShardFactory.js +3 -3
  21. package/dist-esm/storage-blob-changefeed/src/ShardFactory.js.map +1 -1
  22. package/dist-esm/storage-blob-changefeed/src/utils/tracing.js +1 -1
  23. package/dist-esm/storage-blob-changefeed/src/utils/tracing.js.map +1 -1
  24. package/dist-esm/storage-blob-changefeed/src/utils/utils.common.js +4 -4
  25. package/dist-esm/storage-blob-changefeed/src/utils/utils.common.js.map +1 -1
  26. package/dist-esm/storage-internal-avro/src/AvroParser.js.map +1 -1
  27. package/dist-esm/storage-internal-avro/src/AvroReader.js +8 -8
  28. package/dist-esm/storage-internal-avro/src/AvroReader.js.map +1 -1
  29. package/package.json +26 -19
  30. package/types/3.1/storage-blob-changefeed/samples-dev/blobChangeFeedClient.d.ts +2 -0
  31. package/types/3.1/storage-blob-changefeed/samples-dev/resumeListChanges.d.ts +2 -0
  32. package/types/3.1/storage-blob-changefeed/src/AvroReaderFactory.d.ts +9 -0
  33. package/types/3.1/storage-blob-changefeed/src/BlobChangeFeedClient.d.ts +172 -0
  34. package/types/3.1/storage-blob-changefeed/src/ChangeFeed.d.ts +37 -0
  35. package/types/3.1/storage-blob-changefeed/src/ChangeFeedFactory.d.ts +12 -0
  36. package/types/3.1/storage-blob-changefeed/src/Chunk.d.ts +28 -0
  37. package/types/3.1/storage-blob-changefeed/src/ChunkFactory.d.ts +22 -0
  38. package/types/3.1/storage-blob-changefeed/src/LazyLoadingBlobStream.d.ts +46 -0
  39. package/types/3.1/storage-blob-changefeed/src/LazyLoadingBlobStreamFactory.d.ts +6 -0
  40. package/types/3.1/storage-blob-changefeed/src/Segment.d.ts +29 -0
  41. package/types/3.1/storage-blob-changefeed/src/SegmentFactory.d.ts +29 -0
  42. package/types/3.1/storage-blob-changefeed/src/Shard.d.ts +28 -0
  43. package/types/3.1/storage-blob-changefeed/src/ShardFactory.d.ts +21 -0
  44. package/types/3.1/storage-blob-changefeed/src/index.d.ts +4 -0
  45. package/types/3.1/storage-blob-changefeed/src/log.d.ts +5 -0
  46. package/types/3.1/storage-blob-changefeed/src/models/BlobChangeFeedEvent.d.ts +94 -0
  47. package/types/3.1/storage-blob-changefeed/src/models/ChangeFeedCursor.d.ts +17 -0
  48. package/types/3.1/storage-blob-changefeed/src/models/models.d.ts +23 -0
  49. package/types/3.1/storage-blob-changefeed/src/utils/constants.d.ts +9 -0
  50. package/types/3.1/storage-blob-changefeed/src/utils/tracing.d.ts +11 -0
  51. package/types/3.1/storage-blob-changefeed/src/utils/utils.browser.d.ts +15 -0
  52. package/types/3.1/storage-blob-changefeed/src/utils/utils.common.d.ts +42 -0
  53. package/types/3.1/storage-blob-changefeed/src/utils/utils.node.d.ts +15 -0
  54. package/types/3.1/storage-blob-changefeed/test/blobchangefeedclient.spec.d.ts +2 -0
  55. package/types/3.1/storage-blob-changefeed/test/changefeed.spec.d.ts +2 -0
  56. package/types/3.1/storage-blob-changefeed/test/chunk.spec.d.ts +2 -0
  57. package/types/3.1/storage-blob-changefeed/test/segment.spec.d.ts +2 -0
  58. package/types/3.1/storage-blob-changefeed/test/shard.spec.d.ts +2 -0
  59. package/types/3.1/storage-blob-changefeed/test/utils/index.d.ts +13 -0
  60. package/types/3.1/storage-blob-changefeed/test/utils/testutils.common.d.ts +56 -0
  61. package/{typings → types}/3.1/storage-blob-changefeed.d.ts +0 -0
  62. package/types/3.1/storage-internal-avro/src/AvroConstants.d.ts +5 -0
  63. package/types/3.1/storage-internal-avro/src/AvroParser.d.ts +57 -0
  64. package/types/3.1/storage-internal-avro/src/AvroReadable.d.ts +16 -0
  65. package/types/3.1/storage-internal-avro/src/AvroReadableFromBlob.d.ts +9 -0
  66. package/types/3.1/storage-internal-avro/src/AvroReadableFromStream.d.ts +11 -0
  67. package/types/3.1/storage-internal-avro/src/AvroReader.d.ts +33 -0
  68. package/types/3.1/storage-internal-avro/src/index.browser.d.ts +4 -0
  69. package/types/3.1/storage-internal-avro/src/index.d.ts +4 -0
  70. package/types/3.1/storage-internal-avro/src/utils/utils.common.d.ts +6 -0
  71. package/types/3.1/storage-internal-avro/test/browser/avroreadable.spec.d.ts +2 -0
  72. package/types/3.1/storage-internal-avro/test/node/avroreadable.spec.d.ts +2 -0
  73. package/types/3.1/storage-internal-avro/test/node/avroreader.spec.d.ts +2 -0
  74. package/types/latest/storage-blob-changefeed/samples-dev/blobChangeFeedClient.d.ts +2 -0
  75. package/types/latest/storage-blob-changefeed/samples-dev/blobChangeFeedClient.d.ts.map +1 -0
  76. package/types/latest/storage-blob-changefeed/samples-dev/resumeListChanges.d.ts +2 -0
  77. package/types/latest/storage-blob-changefeed/samples-dev/resumeListChanges.d.ts.map +1 -0
  78. package/types/latest/storage-blob-changefeed/src/AvroReaderFactory.d.ts +9 -0
  79. package/types/latest/storage-blob-changefeed/src/AvroReaderFactory.d.ts.map +1 -0
  80. package/types/latest/storage-blob-changefeed/src/BlobChangeFeedClient.d.ts +172 -0
  81. package/types/latest/storage-blob-changefeed/src/BlobChangeFeedClient.d.ts.map +1 -0
  82. package/types/latest/storage-blob-changefeed/src/ChangeFeed.d.ts +37 -0
  83. package/types/latest/storage-blob-changefeed/src/ChangeFeed.d.ts.map +1 -0
  84. package/types/latest/storage-blob-changefeed/src/ChangeFeedFactory.d.ts +12 -0
  85. package/types/latest/storage-blob-changefeed/src/ChangeFeedFactory.d.ts.map +1 -0
  86. package/types/latest/storage-blob-changefeed/src/Chunk.d.ts +28 -0
  87. package/types/latest/storage-blob-changefeed/src/Chunk.d.ts.map +1 -0
  88. package/types/latest/storage-blob-changefeed/src/ChunkFactory.d.ts +22 -0
  89. package/types/latest/storage-blob-changefeed/src/ChunkFactory.d.ts.map +1 -0
  90. package/types/latest/storage-blob-changefeed/src/LazyLoadingBlobStream.d.ts +46 -0
  91. package/types/latest/storage-blob-changefeed/src/LazyLoadingBlobStream.d.ts.map +1 -0
  92. package/types/latest/storage-blob-changefeed/src/LazyLoadingBlobStreamFactory.d.ts +6 -0
  93. package/types/latest/storage-blob-changefeed/src/LazyLoadingBlobStreamFactory.d.ts.map +1 -0
  94. package/types/latest/storage-blob-changefeed/src/Segment.d.ts +29 -0
  95. package/types/latest/storage-blob-changefeed/src/Segment.d.ts.map +1 -0
  96. package/types/latest/storage-blob-changefeed/src/SegmentFactory.d.ts +29 -0
  97. package/types/latest/storage-blob-changefeed/src/SegmentFactory.d.ts.map +1 -0
  98. package/types/latest/storage-blob-changefeed/src/Shard.d.ts +28 -0
  99. package/types/latest/storage-blob-changefeed/src/Shard.d.ts.map +1 -0
  100. package/types/latest/storage-blob-changefeed/src/ShardFactory.d.ts +21 -0
  101. package/types/latest/storage-blob-changefeed/src/ShardFactory.d.ts.map +1 -0
  102. package/types/latest/storage-blob-changefeed/src/index.d.ts +4 -0
  103. package/types/latest/storage-blob-changefeed/src/index.d.ts.map +1 -0
  104. package/types/latest/storage-blob-changefeed/src/log.d.ts +5 -0
  105. package/types/latest/storage-blob-changefeed/src/log.d.ts.map +1 -0
  106. package/types/latest/storage-blob-changefeed/src/models/BlobChangeFeedEvent.d.ts +94 -0
  107. package/types/latest/storage-blob-changefeed/src/models/BlobChangeFeedEvent.d.ts.map +1 -0
  108. package/types/latest/storage-blob-changefeed/src/models/ChangeFeedCursor.d.ts +17 -0
  109. package/types/latest/storage-blob-changefeed/src/models/ChangeFeedCursor.d.ts.map +1 -0
  110. package/types/latest/storage-blob-changefeed/src/models/models.d.ts +23 -0
  111. package/types/latest/storage-blob-changefeed/src/models/models.d.ts.map +1 -0
  112. package/types/latest/storage-blob-changefeed/src/utils/constants.d.ts +9 -0
  113. package/types/latest/storage-blob-changefeed/src/utils/constants.d.ts.map +1 -0
  114. package/types/latest/storage-blob-changefeed/src/utils/tracing.d.ts +11 -0
  115. package/types/latest/storage-blob-changefeed/src/utils/tracing.d.ts.map +1 -0
  116. package/types/latest/storage-blob-changefeed/src/utils/utils.browser.d.ts +15 -0
  117. package/types/latest/storage-blob-changefeed/src/utils/utils.browser.d.ts.map +1 -0
  118. package/types/latest/storage-blob-changefeed/src/utils/utils.common.d.ts +42 -0
  119. package/types/latest/storage-blob-changefeed/src/utils/utils.common.d.ts.map +1 -0
  120. package/types/latest/storage-blob-changefeed/src/utils/utils.node.d.ts +15 -0
  121. package/types/latest/storage-blob-changefeed/src/utils/utils.node.d.ts.map +1 -0
  122. package/types/latest/storage-blob-changefeed/test/blobchangefeedclient.spec.d.ts +2 -0
  123. package/types/latest/storage-blob-changefeed/test/blobchangefeedclient.spec.d.ts.map +1 -0
  124. package/types/latest/storage-blob-changefeed/test/changefeed.spec.d.ts +2 -0
  125. package/types/latest/storage-blob-changefeed/test/changefeed.spec.d.ts.map +1 -0
  126. package/types/latest/storage-blob-changefeed/test/chunk.spec.d.ts +2 -0
  127. package/types/latest/storage-blob-changefeed/test/chunk.spec.d.ts.map +1 -0
  128. package/types/latest/storage-blob-changefeed/test/segment.spec.d.ts +2 -0
  129. package/types/latest/storage-blob-changefeed/test/segment.spec.d.ts.map +1 -0
  130. package/types/latest/storage-blob-changefeed/test/shard.spec.d.ts +2 -0
  131. package/types/latest/storage-blob-changefeed/test/shard.spec.d.ts.map +1 -0
  132. package/types/latest/storage-blob-changefeed/test/utils/index.d.ts +13 -0
  133. package/types/latest/storage-blob-changefeed/test/utils/index.d.ts.map +1 -0
  134. package/types/latest/storage-blob-changefeed/test/utils/testutils.common.d.ts +56 -0
  135. package/types/latest/storage-blob-changefeed/test/utils/testutils.common.d.ts.map +1 -0
  136. package/{typings → types}/latest/storage-blob-changefeed.d.ts +0 -0
  137. package/types/latest/storage-internal-avro/src/AvroConstants.d.ts +5 -0
  138. package/types/latest/storage-internal-avro/src/AvroConstants.d.ts.map +1 -0
  139. package/types/latest/storage-internal-avro/src/AvroParser.d.ts +57 -0
  140. package/types/latest/storage-internal-avro/src/AvroParser.d.ts.map +1 -0
  141. package/types/latest/storage-internal-avro/src/AvroReadable.d.ts +16 -0
  142. package/types/latest/storage-internal-avro/src/AvroReadable.d.ts.map +1 -0
  143. package/types/latest/storage-internal-avro/src/AvroReadableFromBlob.d.ts +9 -0
  144. package/types/latest/storage-internal-avro/src/AvroReadableFromBlob.d.ts.map +1 -0
  145. package/types/latest/storage-internal-avro/src/AvroReadableFromStream.d.ts +11 -0
  146. package/types/latest/storage-internal-avro/src/AvroReadableFromStream.d.ts.map +1 -0
  147. package/types/latest/storage-internal-avro/src/AvroReader.d.ts +33 -0
  148. package/types/latest/storage-internal-avro/src/AvroReader.d.ts.map +1 -0
  149. package/types/latest/storage-internal-avro/src/index.browser.d.ts +4 -0
  150. package/types/latest/storage-internal-avro/src/index.browser.d.ts.map +1 -0
  151. package/types/latest/storage-internal-avro/src/index.d.ts +4 -0
  152. package/types/latest/storage-internal-avro/src/index.d.ts.map +1 -0
  153. package/types/latest/storage-internal-avro/src/utils/utils.common.d.ts +6 -0
  154. package/types/latest/storage-internal-avro/src/utils/utils.common.d.ts.map +1 -0
  155. package/types/latest/storage-internal-avro/test/browser/avroreadable.spec.d.ts +2 -0
  156. package/types/latest/storage-internal-avro/test/browser/avroreadable.spec.d.ts.map +1 -0
  157. package/types/latest/storage-internal-avro/test/node/avroreadable.spec.d.ts +2 -0
  158. package/types/latest/storage-internal-avro/test/node/avroreadable.spec.d.ts.map +1 -0
  159. package/types/latest/storage-internal-avro/test/node/avroreader.spec.d.ts +2 -0
  160. package/types/latest/storage-internal-avro/test/node/avroreader.spec.d.ts.map +1 -0
  161. package/types/latest/tsdoc-metadata.json +11 -0
@@ -0,0 +1,22 @@
1
+ import { AvroReaderFactory } from "./AvroReaderFactory";
2
+ import { ContainerClient, CommonOptions } from "@azure/storage-blob";
3
+ import { Chunk } from "./Chunk";
4
+ import { AbortSignalLike } from "@azure/core-http";
5
+ import { LazyLoadingBlobStreamFactory } from "./LazyLoadingBlobStreamFactory";
6
+ /**
7
+ * Options to configure {@link ChunkFactory.create} operation.
8
+ */
9
+ export interface CreateChunkOptions extends CommonOptions {
10
+ /**
11
+ * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
12
+ * For example, use the @azure/abort-controller to create an `AbortSignal`.
13
+ */
14
+ abortSignal?: AbortSignalLike;
15
+ }
16
+ export declare class ChunkFactory {
17
+ private readonly avroReaderFactory;
18
+ private readonly lazyLoadingBlobStreamFactory;
19
+ constructor(avroReaderFactory: AvroReaderFactory, lazyLoadingBlobStreamFactory: LazyLoadingBlobStreamFactory);
20
+ create(containerClient: ContainerClient, chunkPath: string, blockOffset?: number, eventIndex?: number, options?: CreateChunkOptions): Promise<Chunk>;
21
+ }
22
+ //# sourceMappingURL=ChunkFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChunkFactory.d.ts","sourceRoot":"","sources":["../../../../src/ChunkFactory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAG9E;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAoB;IACtD,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAA+B;gBAG1E,iBAAiB,EAAE,iBAAiB,EACpC,4BAA4B,EAAE,4BAA4B;IAM/C,MAAM,CACjB,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,MAAM,EACjB,WAAW,CAAC,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,MAAM,EACnB,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC,KAAK,CAAC;CAiClB"}
@@ -0,0 +1,46 @@
1
+ /// <reference types="node" />
2
+ import { Readable, ReadableOptions } from "stream";
3
+ import { BlobClient, CommonOptions } from "@azure/storage-blob";
4
+ import { AbortSignalLike } from "@azure/core-http";
5
+ /**
6
+ * Options to configure the LazyLoadingBlobStream.
7
+ */
8
+ export interface LazyLoadingBlobStreamOptions extends ReadableOptions, CommonOptions {
9
+ /**
10
+ * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
11
+ * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
12
+ */
13
+ abortSignal?: AbortSignalLike;
14
+ }
15
+ /**
16
+ * This class generates a readable stream from a blobClient's data.
17
+ */
18
+ export declare class LazyLoadingBlobStream extends Readable {
19
+ /**
20
+ * BlobClient to make download calls with.
21
+ */
22
+ private readonly blobClient;
23
+ /**
24
+ * The offset within the blob of the next block we will download.
25
+ */
26
+ private offset;
27
+ private readonly blockSize;
28
+ private lastDownloadBytes;
29
+ private lastDownloadData?;
30
+ private blobLength;
31
+ private options?;
32
+ /**
33
+ * Creates an instance of LazyLoadingBlobStream.
34
+ *
35
+ * @param byteLength - The total length of data contained in the buffers
36
+ */
37
+ constructor(blobClient: BlobClient, offset: number, blockSize: number, options?: LazyLoadingBlobStreamOptions);
38
+ private downloadBlock;
39
+ /**
40
+ * Internal _read() that will be called when the stream wants to pull more data in.
41
+ *
42
+ * @param size - Optional. The size of data to be read
43
+ */
44
+ _read(size?: number): Promise<void>;
45
+ }
46
+ //# sourceMappingURL=LazyLoadingBlobStream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LazyLoadingBlobStream.d.ts","sourceRoot":"","sources":["../../../../src/LazyLoadingBlobStream.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAInD;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,eAAe,EAAE,aAAa;IAClF;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAUD;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,QAAQ;IACjD;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;IAExC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAS;IAEvB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IAEnC,OAAO,CAAC,iBAAiB,CAAS;IAElC,OAAO,CAAC,gBAAgB,CAAC,CAAS;IAElC,OAAO,CAAC,UAAU,CAAS;IAE3B,OAAO,CAAC,OAAO,CAAC,CAA+B;IAE/C;;;;OAIG;gBAED,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,4BAA4B;YAW1B,aAAa;IAmC3B;;;;OAIG;IACU,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CA0CjD"}
@@ -0,0 +1,6 @@
1
+ import { BlobClient } from "@azure/storage-blob";
2
+ import { LazyLoadingBlobStreamOptions, LazyLoadingBlobStream } from "./LazyLoadingBlobStream";
3
+ export declare class LazyLoadingBlobStreamFactory {
4
+ create(blobClient: BlobClient, offset: number, blockSize: number, options?: LazyLoadingBlobStreamOptions): LazyLoadingBlobStream;
5
+ }
6
+ //# sourceMappingURL=LazyLoadingBlobStreamFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LazyLoadingBlobStreamFactory.d.ts","sourceRoot":"","sources":["../../../../src/LazyLoadingBlobStreamFactory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAE9F,qBAAa,4BAA4B;IAChC,MAAM,CACX,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,4BAA4B,GACrC,qBAAqB;CAGzB"}
@@ -0,0 +1,29 @@
1
+ import { BlobChangeFeedEvent } from "./models/BlobChangeFeedEvent";
2
+ import { Shard } from "./Shard";
3
+ import { SegmentCursor } from "./models/ChangeFeedCursor";
4
+ import { CommonOptions } from "@azure/storage-blob";
5
+ import { AbortSignalLike } from "@azure/core-http";
6
+ /**
7
+ * Options to configure {@link Segment.getChange} operation.
8
+ */
9
+ export interface SegmentGetChangeOptions extends CommonOptions {
10
+ /**
11
+ * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
12
+ * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
13
+ */
14
+ abortSignal?: AbortSignalLike;
15
+ }
16
+ export declare class Segment {
17
+ private readonly manifestPath;
18
+ private readonly shards;
19
+ private shardDone;
20
+ private shardDoneCount;
21
+ private shardIndex;
22
+ private _dateTime;
23
+ get dateTime(): Date;
24
+ constructor(shards: Shard[], shardIndex: number, dateTime: Date, manifestPath: string);
25
+ hasNext(): boolean;
26
+ getChange(options?: SegmentGetChangeOptions): Promise<BlobChangeFeedEvent | undefined>;
27
+ getCursor(): SegmentCursor;
28
+ }
29
+ //# sourceMappingURL=Segment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../../src/Segment.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,aAAa,EAAe,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAInD;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,aAAa;IAC5D;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,qBAAa,OAAO;IAoBhB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAnB/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAU;IAGjC,OAAO,CAAC,SAAS,CAAY;IAC7B,OAAO,CAAC,cAAc,CAAS;IAE/B,OAAO,CAAC,UAAU,CAAS;IAI3B,OAAO,CAAC,SAAS,CAAO;IACxB,IAAW,QAAQ,IAAI,IAAI,CAE1B;gBAGC,MAAM,EAAE,KAAK,EAAE,EACf,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,IAAI,EACG,YAAY,EAAE,MAAM;IAUhC,OAAO,IAAI,OAAO;IAIZ,SAAS,CACpB,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC;IAwCpC,SAAS,IAAI,aAAa;CAelC"}
@@ -0,0 +1,29 @@
1
+ import { ShardFactory } from "./ShardFactory";
2
+ import { ContainerClient, CommonOptions } from "@azure/storage-blob";
3
+ import { Segment } from "./Segment";
4
+ import { SegmentCursor } from "./models/ChangeFeedCursor";
5
+ import { AbortSignalLike } from "@azure/core-http";
6
+ export interface SegmentManifest {
7
+ version?: number;
8
+ begin?: Date;
9
+ intervalSecs?: number;
10
+ status: string;
11
+ config?: any;
12
+ chunkFilePaths: string[];
13
+ }
14
+ /**
15
+ * Options to configure {@link SegmentFactory.create} operation.
16
+ */
17
+ export interface CreateSegmentOptions extends CommonOptions {
18
+ /**
19
+ * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
20
+ * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
21
+ */
22
+ abortSignal?: AbortSignalLike;
23
+ }
24
+ export declare class SegmentFactory {
25
+ private readonly shardFactory;
26
+ constructor(shardFactory: ShardFactory);
27
+ create(containerClient: ContainerClient, manifestPath: string, cursor?: SegmentCursor, options?: CreateSegmentOptions): Promise<Segment>;
28
+ }
29
+ //# sourceMappingURL=SegmentFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentFactory.d.ts","sourceRoot":"","sources":["../../../../src/SegmentFactory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGrE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG1D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAInD,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,aAAa;IACzD;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;gBAEhC,YAAY,EAAE,YAAY;IAIzB,MAAM,CACjB,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,MAAM,EACpB,MAAM,CAAC,EAAE,aAAa,EACtB,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,OAAO,CAAC;CAsDpB"}
@@ -0,0 +1,28 @@
1
+ import { ContainerClient, CommonOptions } from "@azure/storage-blob";
2
+ import { ChunkFactory } from "./ChunkFactory";
3
+ import { Chunk } from "./Chunk";
4
+ import { BlobChangeFeedEvent } from "./models/BlobChangeFeedEvent";
5
+ import { ShardCursor } from "./models/ChangeFeedCursor";
6
+ import { AbortSignalLike } from "@azure/core-http";
7
+ /**
8
+ * Options to configure {@link Shard.getChange} operation.
9
+ */
10
+ export interface ShardGetChangeOptions extends CommonOptions {
11
+ /**
12
+ * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
13
+ * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
14
+ */
15
+ abortSignal?: AbortSignalLike;
16
+ }
17
+ export declare class Shard {
18
+ readonly shardPath: string;
19
+ private readonly containerClient;
20
+ private readonly chunkFactory;
21
+ private readonly chunks;
22
+ private currentChunk;
23
+ constructor(containerClient: ContainerClient, chunkFactory: ChunkFactory, chunks: string[], currentChunk: Chunk | undefined, shardPath: string);
24
+ hasNext(): boolean;
25
+ getChange(options?: ShardGetChangeOptions): Promise<BlobChangeFeedEvent | undefined>;
26
+ getCursor(): ShardCursor | undefined;
27
+ }
28
+ //# sourceMappingURL=Shard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Shard.d.ts","sourceRoot":"","sources":["../../../../src/Shard.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAInD;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IAC1D;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,qBAAa,KAAK;aAcE,SAAS,EAAE,MAAM;IAbnC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAkB;IAElD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAE5C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAW;IAElC,OAAO,CAAC,YAAY,CAAoB;gBAGtC,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,EAAE,EAChB,YAAY,EAAE,KAAK,GAAG,SAAS,EACf,SAAS,EAAE,MAAM;IAQ5B,OAAO,IAAI,OAAO;IAMZ,SAAS,CACpB,OAAO,GAAE,qBAA0B,GAClC,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC;IAiCpC,SAAS,IAAI,WAAW,GAAG,SAAS;CAS5C"}
@@ -0,0 +1,21 @@
1
+ import { ChunkFactory } from "./ChunkFactory";
2
+ import { ShardCursor } from "./models/ChangeFeedCursor";
3
+ import { Shard } from "./Shard";
4
+ import { ContainerClient, CommonOptions } from "@azure/storage-blob";
5
+ import { AbortSignalLike } from "@azure/core-http";
6
+ /**
7
+ * Options to configure {@link ShardFactory.create} operation.
8
+ */
9
+ export interface CreateShardOptions extends CommonOptions {
10
+ /**
11
+ * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
12
+ * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
13
+ */
14
+ abortSignal?: AbortSignalLike;
15
+ }
16
+ export declare class ShardFactory {
17
+ private readonly chunkFactory;
18
+ constructor(chunkFactory: ChunkFactory);
19
+ create(containerClient: ContainerClient, shardPath: string, shardCursor?: ShardCursor, options?: CreateShardOptions): Promise<Shard>;
20
+ }
21
+ //# sourceMappingURL=ShardFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShardFactory.d.ts","sourceRoot":"","sources":["../../../../src/ShardFactory.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAInD;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;gBAEhC,YAAY,EAAE,YAAY;IAIzB,MAAM,CACjB,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,MAAM,EACjB,WAAW,CAAC,EAAE,WAAW,EACzB,OAAO,GAAE,kBAAuB,GAC/B,OAAO,CAAC,KAAK,CAAC;CA+DlB"}
@@ -0,0 +1,4 @@
1
+ export * from "./BlobChangeFeedClient";
2
+ export * from "./models/BlobChangeFeedEvent";
3
+ export * from "./models/models";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The `@azure/logger` configuration for this package.
3
+ */
4
+ export declare const logger: import("@azure/logger").AzureLogger;
5
+ //# sourceMappingURL=log.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../src/log.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,MAAM,qCAAgD,CAAC"}
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Change feed event record types.
3
+ */
4
+ export declare type BlobChangeFeedEventType = "UnspecifiedEventType" | "BlobCreated" | "BlobDeleted" | "BlobPropertiesUpdated" | "BlobSnapshotCreated" | "Control" | "BlobTierChanged" | "BlobAsyncOperationInitiated" | "BlobMetadataUpdated";
5
+ /**
6
+ * Change feed event record. Contains response data for the {@link BlobChangeFeedClient.listChanges} operation.
7
+ * @see https://docs.microsoft.com/en-us/azure/event-grid/event-schema-blob-storage?toc=/azure/storage/blobs/toc.json#event-properties
8
+ */
9
+ export interface BlobChangeFeedEvent {
10
+ /**
11
+ * Full resource path to the event source. This field is not writeable. Event Grid provides this value.
12
+ */
13
+ topic: string;
14
+ /**
15
+ * Publisher-defined path to the event subject.
16
+ */
17
+ subject: string;
18
+ /**
19
+ * One of the registered event types for this event source.
20
+ */
21
+ eventType: BlobChangeFeedEventType;
22
+ /**
23
+ * The time the event is generated based on the provider's UTC time.
24
+ */
25
+ eventTime: Date;
26
+ /**
27
+ * Unique identifier for the event.
28
+ */
29
+ id: string;
30
+ /**
31
+ * Blob storage event data.
32
+ */
33
+ data: BlobChangeFeedEventData;
34
+ /**
35
+ * The schema version of the data object. The publisher defines the schema version.
36
+ */
37
+ dataVersion?: string;
38
+ /**
39
+ * The schema version of the event metadata. Event Grid defines the schema of the top-level properties. Event Grid provides this value.
40
+ */
41
+ metadataVersion: string;
42
+ }
43
+ /**
44
+ * The type of blob.
45
+ */
46
+ export declare type BlobType = "BlockBlob" | "AppendBlob" | "PageBlob";
47
+ /**
48
+ * Change feed Blob storage event data.
49
+ */
50
+ export interface BlobChangeFeedEventData {
51
+ /**
52
+ * The operation that triggered the event.
53
+ */
54
+ api: string;
55
+ /**
56
+ * A client-provided request id for the storage API operation. This id can be used to
57
+ * correlate to Azure Storage diagnostic logs using the "client-request-id" field in the logs,
58
+ * and can be provided in client requests using the "x-ms-client-request-id" header.
59
+ */
60
+ clientRequestId: string;
61
+ /**
62
+ * Service-generated request id for the storage API operation. Can be used to correlate to Azure Storage
63
+ * diagnostic logs using the "request-id-header" field in the logs and is returned from initiating API call
64
+ * in the 'x-ms-request-id' header.
65
+ */
66
+ requestId: string;
67
+ /**
68
+ * The value that you can use to perform operations conditionally.
69
+ */
70
+ etag: string;
71
+ /**
72
+ * The content type specified for the blob.
73
+ */
74
+ contentType: string;
75
+ /**
76
+ * The size of the blob in bytes.
77
+ */
78
+ contentLength: number;
79
+ /**
80
+ * The type of blob.
81
+ */
82
+ blobType: BlobType;
83
+ /**
84
+ * The path to the blob. If the client uses a Blob REST API, then the url has this structure:
85
+ * <storage-account-name>.blob.core.windows.net/<container-name>/<file-name>.
86
+ */
87
+ url: string;
88
+ /**
89
+ * An opaque string value representing the logical sequence of events for any particular blob name.
90
+ * Users can use standard string comparison to understand the relative sequence of two events on the same blob name.
91
+ */
92
+ sequencer: string;
93
+ }
94
+ //# sourceMappingURL=BlobChangeFeedEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlobChangeFeedEvent.d.ts","sourceRoot":"","sources":["../../../../../src/models/BlobChangeFeedEvent.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,oBAAY,uBAAuB,GAC/B,sBAAsB,GACtB,aAAa,GACb,aAAa,GACb,uBAAuB,GACvB,qBAAqB,GACrB,SAAS,GACT,iBAAiB,GACjB,6BAA6B,GAC7B,qBAAqB,CAAC;AAE1B;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,EAAE,uBAAuB,CAAC;IAEnC;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAEhB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,uBAAuB,CAAC;IAE9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,oBAAY,QAAQ,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;IAEnB;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,17 @@
1
+ export interface ChangeFeedCursor {
2
+ CursorVersion: number;
3
+ UrlHost: string;
4
+ EndTime?: string;
5
+ CurrentSegmentCursor: SegmentCursor;
6
+ }
7
+ export interface SegmentCursor {
8
+ ShardCursors: ShardCursor[];
9
+ CurrentShardPath: string;
10
+ SegmentPath: string;
11
+ }
12
+ export interface ShardCursor {
13
+ CurrentChunkPath: string;
14
+ BlockOffset: number;
15
+ EventIndex: number;
16
+ }
17
+ //# sourceMappingURL=ChangeFeedCursor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChangeFeedCursor.d.ts","sourceRoot":"","sources":["../../../../../src/models/ChangeFeedCursor.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,MAAM,CAAC;IAEtB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,aAAa,CAAC;CACrC;AAED,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,23 @@
1
+ import { CommonOptions } from "@azure/storage-blob";
2
+ import { AbortSignalLike } from "@azure/core-http";
3
+ /**
4
+ * Options to configure {@link BlobChangeFeedClient.listChanges} operation.
5
+ */
6
+ export interface BlobChangeFeedListChangesOptions extends CommonOptions {
7
+ /**
8
+ * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
9
+ * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
10
+ */
11
+ abortSignal?: AbortSignalLike;
12
+ /**
13
+ * Specify the start of the time range during which the change feed records will be fetched.
14
+ * Note that for now the change feed client will round start time down to the nearest hour.
15
+ */
16
+ start?: Date;
17
+ /**
18
+ * Specify the end of the time range during which the change feed records will be fetched.
19
+ * Note that for now the change feed client will round end time up to the nearest hour.
20
+ */
21
+ end?: Date;
22
+ }
23
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../../src/models/models.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,gCAAiC,SAAQ,aAAa;IACrE;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAE9B;;;OAGG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC;IAEb;;;OAGG;IACH,GAAG,CAAC,EAAE,IAAI,CAAC;CACZ"}
@@ -0,0 +1,9 @@
1
+ export declare const SDK_VERSION: string;
2
+ export declare const CHANGE_FEED_CONTAINER_NAME: string;
3
+ export declare const CHANGE_FEED_META_SEGMENT_PATH: string;
4
+ export declare const CHANGE_FEED_STATUS_FINALIZED: string;
5
+ export declare const CHANGE_FEED_SEGMENT_PREFIX: string;
6
+ export declare const CHANGE_FEED_INITIALIZATION_SEGMENT: string;
7
+ export declare const CHANGE_FEED_MAX_PAGE_SIZE: number;
8
+ export declare const CHANGE_FEED_CHUNK_BLOCK_DOWNLOAD_SIZE: number;
9
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/utils/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,EAAE,MAA2B,CAAC;AAEtD,eAAO,MAAM,0BAA0B,EAAE,MAA0B,CAAC;AACpE,eAAO,MAAM,6BAA6B,EAAE,MAA6B,CAAC;AAC1E,eAAO,MAAM,4BAA4B,EAAE,MAAoB,CAAC;AAChE,eAAO,MAAM,0BAA0B,EAAE,MAAwB,CAAC;AAClE,eAAO,MAAM,kCAAkC,EAAE,MAAe,CAAC;AAEjE,eAAO,MAAM,yBAAyB,EAAE,MAAa,CAAC;AACtD,eAAO,MAAM,qCAAqC,EAAE,MAAyB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Creates a span using the global tracer.
3
+ * @internal
4
+ */
5
+ export declare const createSpan: <T extends {
6
+ tracingOptions?: import("@azure/core-tracing").OperationTracingOptions | undefined;
7
+ }>(operationName: string, operationOptions: T | undefined) => {
8
+ span: import("@azure/core-tracing").Span;
9
+ updatedOptions: T;
10
+ };
11
+ //# sourceMappingURL=tracing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../../../../src/utils/tracing.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,UAAU;;;;;CAGrB,CAAC"}
@@ -0,0 +1,15 @@
1
+ /// <reference types="node" />
2
+ /**
3
+ * Read body from downloading operation methods to string.
4
+ * Works in both Node.js and browsers.
5
+ *
6
+ * @param response - Convenience layer methods response with downloaded body
7
+ * @param length - Length of Readable stream, needed for Node.js environment
8
+ */
9
+ export declare function bodyToString(response: {
10
+ readableStreamBody?: NodeJS.ReadableStream;
11
+ blobBody?: Promise<Blob>;
12
+ }, _length?: number): Promise<string>;
13
+ export declare function blobToString(blob: Blob): Promise<string>;
14
+ export declare function bodyToAvroReadable(): void;
15
+ //# sourceMappingURL=utils.browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.browser.d.ts","sourceRoot":"","sources":["../../../../../src/utils/utils.browser.ts"],"names":[],"mappings":";AAGA;;;;;;GAMG;AACH,wBAAsB,YAAY,CAChC,QAAQ,EAAE;IACR,kBAAkB,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B,EAED,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,MAAM,CAAC,CAGjB;AAED,wBAAsB,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAS9D;AAED,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC"}
@@ -0,0 +1,42 @@
1
+ import { AbortSignalLike } from "@azure/core-http";
2
+ import { ContainerClient, CommonOptions } from "@azure/storage-blob";
3
+ export declare function ceilToNearestHour(date: Date | undefined): Date | undefined;
4
+ export declare function floorToNearestHour(date: Date | undefined): Date | undefined;
5
+ /**
6
+ * Get host from an URL string.
7
+ *
8
+ * @param url - Source URL string
9
+ */
10
+ export declare function getHost(url: string): string | undefined;
11
+ /**
12
+ * Get URI from an URL string.
13
+ *
14
+ * @param url - Source URL string
15
+ */
16
+ export declare function getURI(url: string): string;
17
+ export declare function hashString(str: string): number;
18
+ /**
19
+ * Options to configure {@link getYearsPaths} operation.
20
+ */
21
+ export interface GetYearsPathsOptions extends CommonOptions {
22
+ /**
23
+ * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
24
+ * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
25
+ */
26
+ abortSignal?: AbortSignalLike;
27
+ }
28
+ export declare function getYearsPaths(containerClient: ContainerClient, options?: GetYearsPathsOptions): Promise<number[]>;
29
+ /**
30
+ * Options to configure {@link getSegmentsInYear} operation.
31
+ */
32
+ export interface GetSegmentsInYearOptions extends CommonOptions {
33
+ /**
34
+ * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.
35
+ * For example, use the &commat;azure/abort-controller to create an `AbortSignal`.
36
+ */
37
+ abortSignal?: AbortSignalLike;
38
+ }
39
+ export declare function getSegmentsInYear(containerClient: ContainerClient, year: number, startTime?: Date, endTime?: Date, options?: GetSegmentsInYearOptions): Promise<string[]>;
40
+ export declare function parseDateFromSegmentPath(segmentPath: string): Date;
41
+ export declare function minDate(dateA: Date, dateB?: Date): Date;
42
+ //# sourceMappingURL=utils.common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.common.d.ts","sourceRoot":"","sources":["../../../../../src/utils/utils.common.ts"],"names":[],"mappings":"AAGA,OAAO,EAAc,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAMrE,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,SAAS,CAK1E;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,SAAS,CAK3E;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGvD;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG1C;AAGD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAO9C;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,aAAa;IACzD;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,wBAAsB,aAAa,CACjC,eAAe,EAAE,eAAe,EAChC,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,MAAM,EAAE,CAAC,CAwBnB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,aAAa;IAC7D;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,wBAAsB,iBAAiB,CACrC,eAAe,EAAE,eAAe,EAChC,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,IAAI,EAChB,OAAO,CAAC,EAAE,IAAI,EACd,OAAO,GAAE,wBAA6B,GACrC,OAAO,CAAC,MAAM,EAAE,CAAC,CAgCnB;AAED,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAmBlE;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAKvD"}
@@ -0,0 +1,15 @@
1
+ /// <reference types="node" />
2
+ import { AvroReadable } from "../../../storage-internal-avro/src";
3
+ /**
4
+ * Read body from downloading operation methods to string.
5
+ * Works in both Node.js and browsers.
6
+ *
7
+ * @param response - Convenience layer methods response with downloaded body
8
+ * @param length - Length of Readable stream, needed for Node.js environment
9
+ */
10
+ export declare function bodyToString(response: {
11
+ readableStreamBody?: NodeJS.ReadableStream;
12
+ blobBody?: Promise<Blob>;
13
+ }, length?: number): Promise<string>;
14
+ export declare function streamToAvroReadable(readableStream: NodeJS.ReadableStream): AvroReadable;
15
+ //# sourceMappingURL=utils.node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.node.d.ts","sourceRoot":"","sources":["../../../../../src/utils/utils.node.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAA0B,MAAM,oCAAoC,CAAC;AAE1F;;;;;;GAMG;AACH,wBAAsB,YAAY,CAChC,QAAQ,EAAE;IACR,kBAAkB,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B,EACD,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,CAAC,CAcjB;AAED,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,MAAM,CAAC,cAAc,GAAG,YAAY,CAExF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=blobchangefeedclient.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blobchangefeedclient.spec.d.ts","sourceRoot":"","sources":["../../../../test/blobchangefeedclient.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=changefeed.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changefeed.spec.d.ts","sourceRoot":"","sources":["../../../../test/changefeed.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=chunk.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunk.spec.d.ts","sourceRoot":"","sources":["../../../../test/chunk.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=segment.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"segment.spec.d.ts","sourceRoot":"","sources":["../../../../test/segment.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=shard.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shard.spec.d.ts","sourceRoot":"","sources":["../../../../test/shard.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import { StorageSharedKeyCredential, BlobServiceClient } from "@azure/storage-blob";
2
+ import { BlobChangeFeedClient } from "../../src";
3
+ import { TokenCredential } from "@azure/core-http";
4
+ export * from "./testutils.common";
5
+ export declare function getGenericCredential(accountType: string): StorageSharedKeyCredential;
6
+ export declare function getGenericBSU(accountType: string, accountNameSuffix?: string): BlobServiceClient;
7
+ export declare function getTokenCredential(): TokenCredential;
8
+ export declare function getTokenBSU(): BlobServiceClient;
9
+ export declare function getBSU(): BlobServiceClient;
10
+ export declare function getAlternateBSU(): BlobServiceClient;
11
+ export declare function getConnectionStringFromEnvironment(): string;
12
+ export declare function getBlobChangeFeedClient(accountType?: string, accountNameSuffix?: string): BlobChangeFeedClient;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../test/utils/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,0BAA0B,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGnD,cAAc,oBAAoB,CAAC;AAEnC,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,0BAA0B,CAapF;AAED,wBAAgB,aAAa,CAC3B,WAAW,EAAE,MAAM,EACnB,iBAAiB,GAAE,MAAW,GAC7B,iBAAiB,CAYnB;AAED,wBAAgB,kBAAkB,IAAI,eAAe,CAQpD;AAED,wBAAgB,WAAW,IAAI,iBAAiB,CAW/C;AAED,wBAAgB,MAAM,IAAI,iBAAiB,CAE1C;AAED,wBAAgB,eAAe,IAAI,iBAAiB,CAEnD;AAED,wBAAgB,kCAAkC,IAAI,MAAM,CAS3D;AAED,wBAAgB,uBAAuB,CACrC,WAAW,GAAE,MAAW,EACxB,iBAAiB,GAAE,MAAW,GAC7B,oBAAoB,CAYtB"}
@@ -0,0 +1,56 @@
1
+ import { TokenCredential, GetTokenOptions, AccessToken } from "@azure/core-http";
2
+ import { RecorderEnvironmentSetup } from "@azure-tools/test-recorder";
3
+ export declare const testPollerProperties: {
4
+ intervalInMs: number | undefined;
5
+ };
6
+ export declare const recorderEnvSetup: RecorderEnvironmentSetup;
7
+ /**
8
+ * A TokenCredential that always returns the given token. This class can be
9
+ * used when the access token is already known or can be retrieved from an
10
+ * outside source.
11
+ */
12
+ export declare class SimpleTokenCredential implements TokenCredential {
13
+ /**
14
+ * The raw token string. Can be changed when the token needs to be updated.
15
+ */
16
+ token: string;
17
+ /**
18
+ * The Date at which the token expires. Can be changed to update the expiration time.
19
+ */
20
+ expiresOn: Date;
21
+ /**
22
+ * Creates an instance of TokenCredential.
23
+ * @param token -
24
+ */
25
+ constructor(token: string, expiresOn?: Date);
26
+ /**
27
+ * Retrieves the token stored in this RawTokenCredential.
28
+ *
29
+ * @param _scopes - Ignored since token is already known.
30
+ * @param _options - Ignored since token is already known.
31
+ * @returns The access token details.
32
+ */
33
+ getToken(_scopes: string | string[], _options?: GetTokenOptions): Promise<AccessToken | null>;
34
+ }
35
+ export declare function isBrowser(): boolean;
36
+ export declare function getUniqueName(prefix: string): string;
37
+ export declare function base64encode(content: string): string;
38
+ export declare function base64decode(encodedString: string): string;
39
+ declare type BlobMetadata = {
40
+ [propertyName: string]: string;
41
+ };
42
+ /**
43
+ * Validate if m1 is super set of m2.
44
+ *
45
+ * @param m1 - BlobMetadata
46
+ * @param m2 - BlobMetadata
47
+ */
48
+ export declare function isSuperSet(m1?: BlobMetadata, m2?: BlobMetadata): boolean;
49
+ /**
50
+ * Sleep for seconds.
51
+ *
52
+ * @param seconds -
53
+ */
54
+ export declare function sleep(seconds: number): Promise<void>;
55
+ export {};
56
+ //# sourceMappingURL=testutils.common.d.ts.map