@azure/storage-blob-changefeed 12.0.0-alpha.20231120.1 → 12.0.0-alpha.20231206.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/package.json +2 -13
  2. package/types/3.1/storage-blob-changefeed/samples-dev/blobChangeFeedClient.d.ts +0 -2
  3. package/types/3.1/storage-blob-changefeed/samples-dev/resumeListChanges.d.ts +0 -2
  4. package/types/3.1/storage-blob-changefeed/src/AvroReaderFactory.d.ts +0 -9
  5. package/types/3.1/storage-blob-changefeed/src/BlobChangeFeedClient.d.ts +0 -182
  6. package/types/3.1/storage-blob-changefeed/src/ChangeFeed.d.ts +0 -37
  7. package/types/3.1/storage-blob-changefeed/src/ChangeFeedFactory.d.ts +0 -13
  8. package/types/3.1/storage-blob-changefeed/src/Chunk.d.ts +0 -28
  9. package/types/3.1/storage-blob-changefeed/src/ChunkFactory.d.ts +0 -23
  10. package/types/3.1/storage-blob-changefeed/src/LazyLoadingBlobStream.d.ts +0 -46
  11. package/types/3.1/storage-blob-changefeed/src/LazyLoadingBlobStreamFactory.d.ts +0 -6
  12. package/types/3.1/storage-blob-changefeed/src/Segment.d.ts +0 -29
  13. package/types/3.1/storage-blob-changefeed/src/SegmentFactory.d.ts +0 -29
  14. package/types/3.1/storage-blob-changefeed/src/Shard.d.ts +0 -28
  15. package/types/3.1/storage-blob-changefeed/src/ShardFactory.d.ts +0 -21
  16. package/types/3.1/storage-blob-changefeed/src/index.d.ts +0 -4
  17. package/types/3.1/storage-blob-changefeed/src/log.d.ts +0 -5
  18. package/types/3.1/storage-blob-changefeed/src/models/BlobChangeFeedEvent.d.ts +0 -233
  19. package/types/3.1/storage-blob-changefeed/src/models/ChangeFeedCursor.d.ts +0 -17
  20. package/types/3.1/storage-blob-changefeed/src/models/models.d.ts +0 -23
  21. package/types/3.1/storage-blob-changefeed/src/utils/constants.d.ts +0 -9
  22. package/types/3.1/storage-blob-changefeed/src/utils/tracing.d.ts +0 -6
  23. package/types/3.1/storage-blob-changefeed/src/utils/utils.browser.d.ts +0 -15
  24. package/types/3.1/storage-blob-changefeed/src/utils/utils.common.d.ts +0 -37
  25. package/types/3.1/storage-blob-changefeed/src/utils/utils.node.d.ts +0 -15
  26. package/types/3.1/storage-blob-changefeed/test/blobchangefeedclient.spec.d.ts +0 -2
  27. package/types/3.1/storage-blob-changefeed/test/changefeed.spec.d.ts +0 -2
  28. package/types/3.1/storage-blob-changefeed/test/chunk.spec.d.ts +0 -2
  29. package/types/3.1/storage-blob-changefeed/test/segment.spec.d.ts +0 -2
  30. package/types/3.1/storage-blob-changefeed/test/shard.spec.d.ts +0 -2
  31. package/types/3.1/storage-blob-changefeed/test/utils/index.d.ts +0 -14
  32. package/types/3.1/storage-blob-changefeed/test/utils/testutils.common.d.ts +0 -68
  33. package/types/3.1/storage-blob-changefeed.d.ts +0 -437
  34. package/types/3.1/storage-internal-avro/src/AvroConstants.d.ts +0 -5
  35. package/types/3.1/storage-internal-avro/src/AvroParser.d.ts +0 -57
  36. package/types/3.1/storage-internal-avro/src/AvroReadable.d.ts +0 -16
  37. package/types/3.1/storage-internal-avro/src/AvroReadableFromBlob.d.ts +0 -9
  38. package/types/3.1/storage-internal-avro/src/AvroReadableFromStream.d.ts +0 -11
  39. package/types/3.1/storage-internal-avro/src/AvroReader.d.ts +0 -33
  40. package/types/3.1/storage-internal-avro/src/index.browser.d.ts +0 -4
  41. package/types/3.1/storage-internal-avro/src/index.d.ts +0 -4
  42. package/types/3.1/storage-internal-avro/src/utils/utils.common.d.ts +0 -6
  43. package/types/3.1/storage-internal-avro/test/browser/avroreadable.spec.d.ts +0 -2
  44. package/types/3.1/storage-internal-avro/test/node/avroreadable.spec.d.ts +0 -2
  45. package/types/3.1/storage-internal-avro/test/node/avroreader.spec.d.ts +0 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@azure/storage-blob-changefeed",
3
3
  "sdk-type": "client",
4
- "version": "12.0.0-alpha.20231120.1",
4
+ "version": "12.0.0-alpha.20231206.1",
5
5
  "description": "Microsoft Azure Storage SDK for JavaScript - Blob Change Feed",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist-esm/storage-blob-changefeed/src/index.js",
@@ -13,13 +13,6 @@
13
13
  "process": false
14
14
  },
15
15
  "types": "./types/latest/storage-blob-changefeed.d.ts",
16
- "typesVersions": {
17
- "<3.6": {
18
- "*": [
19
- "./types/3.1/storage-blob-changefeed.d.ts"
20
- ]
21
- }
22
- },
23
16
  "engines": {
24
17
  "node": ">=18.0.0"
25
18
  },
@@ -29,8 +22,7 @@
29
22
  "build:samples": "echo Obsolete.",
30
23
  "build:prep-samples": "dev-tool samples prep && cd dist-samples && tsc",
31
24
  "build:test": "npm run build:es6 && dev-tool run bundle --browser-test=false",
32
- "build:types": "downlevel-dts types/latest types/3.1",
33
- "build": "npm run clean && npm run build:es6 && dev-tool run bundle --browser-test=false && api-extractor run --local && npm run build:types",
25
+ "build": "npm run clean && npm run build:es6 && dev-tool run bundle --browser-test=false && api-extractor run --local",
34
26
  "check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
35
27
  "clean": "rimraf dist dist-* types temp statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml",
36
28
  "clean:samples": "rimraf samples/v12-beta/javascript/node_modules samples/v12-beta/typescript/node_modules samples/v12-beta/typescript/dist samples/v12-beta/typescript/package-lock.json samples/v12-beta/javascript/package-lock.json",
@@ -59,7 +51,6 @@
59
51
  "dist-esm/storage-blob-changefeed/src/",
60
52
  "dist-esm/storage-internal-avro/src/",
61
53
  "types/latest/storage-blob-changefeed.d.ts",
62
- "types/3.1/storage-blob-changefeed.d.ts",
63
54
  "README.md",
64
55
  "LICENSE"
65
56
  ],
@@ -116,7 +107,6 @@
116
107
  "chai": "^4.2.0",
117
108
  "cross-env": "^7.0.2",
118
109
  "dotenv": "^16.0.0",
119
- "downlevel-dts": "^0.10.0",
120
110
  "es6-promise": "^4.2.5",
121
111
  "eslint": "^8.0.0",
122
112
  "esm": "^3.2.18",
@@ -133,7 +123,6 @@
133
123
  "karma-mocha-reporter": "^2.2.5",
134
124
  "karma-sourcemap-loader": "^0.3.8",
135
125
  "mocha": "^10.0.0",
136
- "mocha-junit-reporter": "^2.0.0",
137
126
  "c8": "^8.0.0",
138
127
  "prettier": "^2.5.1",
139
128
  "puppeteer": "^19.2.2",
@@ -1,2 +0,0 @@
1
- export declare function main(): Promise<void>;
2
- //# sourceMappingURL=blobChangeFeedClient.d.ts.map
@@ -1,2 +0,0 @@
1
- export declare function main(): Promise<void>;
2
- //# sourceMappingURL=resumeListChanges.d.ts.map
@@ -1,9 +0,0 @@
1
- import { AvroReadable, AvroReader } from "../../storage-internal-avro/src";
2
- /**
3
- * Creates AvroReaders. Allows us to inject mock AvroReaders in the Chunk unit tests.
4
- */
5
- export declare class AvroReaderFactory {
6
- create(headerAndDataStream: AvroReadable): AvroReader;
7
- create(dataStream: AvroReadable, headerStream: AvroReadable, blockOffset: number, eventIndex: number): AvroReader;
8
- }
9
- //# sourceMappingURL=AvroReaderFactory.d.ts.map
@@ -1,182 +0,0 @@
1
- import { StoragePipelineOptions, StorageSharedKeyCredential, AnonymousCredential, Pipeline } from "@azure/storage-blob";
2
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
3
- import { BlobChangeFeedEvent } from "./models/BlobChangeFeedEvent";
4
- import { BlobChangeFeedListChangesOptions } from "./models/models";
5
- import { TokenCredential } from "@azure/core-auth";
6
- /**
7
- * Contains paged response data for the {@link BlobChangeFeedClient.listChanges} operation.
8
- */
9
- export declare class BlobChangeFeedEventPage {
10
- /**
11
- * Array of {@link BlobChangeFeedEvent}.
12
- */
13
- events: BlobChangeFeedEvent[];
14
- /**
15
- * The token that keeps track of where to continue the iterator.
16
- */
17
- continuationToken: string;
18
- constructor();
19
- }
20
- /**
21
- * Creates a new Pipeline object with Credential provided.
22
- *
23
- * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.
24
- * @param pipelineOptions - Optional. Options.
25
- * @returns A new Pipeline object.
26
- */
27
- export declare function newPipeline(credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, pipelineOptions?: StoragePipelineOptions): Pipeline;
28
- /**
29
- * Blob Change Feed client options.
30
- */
31
- export interface BlobChangeFeedClientOptions {
32
- /**
33
- * The maximum length of an transfer in bytes.
34
- */
35
- maximumTransferSize?: number;
36
- }
37
- /**
38
- * BlobChangeFeedClient.
39
- * @see https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-change-feed?tabs=azure-portal
40
- */
41
- export declare class BlobChangeFeedClient {
42
- /**
43
- * blobServiceClient provided by `@azure/storage-blob` package.
44
- */
45
- private blobServiceClient;
46
- private changeFeedFactory;
47
- private changeFeedClientOptions;
48
- /**
49
- *
50
- * Creates an instance of BlobChangeFeedClient from connection string.
51
- *
52
- * @param connectionString - Account connection string or a SAS connection string of an Azure storage account.
53
- * [ Note - Account connection string can only be used in NODE.JS runtime. ]
54
- * Account connection string example -
55
- * `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
56
- * SAS connection string example -
57
- * `BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
58
- * @param options - Optional. Options to configure the HTTP pipeline.
59
- */
60
- static fromConnectionString(connectionString: string, options?: StoragePipelineOptions, changeFeedClientOptions?: BlobChangeFeedClientOptions): BlobChangeFeedClient;
61
- /**
62
- * Creates an instance of BlobChangeFeedClient.
63
- *
64
- * @param url - A Client string pointing to Azure Storage blob service, such as
65
- * "https://myaccount.blob.core.windows.net". You can append a SAS
66
- * if using AnonymousCredential, such as "https://myaccount.blob.core.windows.net?sasString".
67
- * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.
68
- * @param options - Optional. Options to configure the HTTP pipeline.
69
- *
70
- * Example using DefaultAzureCredential from `@azure/identity`:
71
- *
72
- * ```js
73
- * const account = "<storage account name>";
74
- *
75
- * const defaultAzureCredential = new DefaultAzureCredential();
76
- *
77
- * const blobChangeFeedClient = new BlobChangeFeedClient(
78
- * `https://${account}.blob.core.windows.net`,
79
- * defaultAzureCredential
80
- * );
81
- * ```
82
- *
83
- * Example using an account name/key:
84
- *
85
- * ```js
86
- * const account = "<storage account name>"
87
- * const sharedKeyCredential = new StorageSharedKeyCredential(account, "<account key>");
88
- *
89
- * const blobChangeFeedClient = new BlobChangeFeedClient(
90
- * `https://${account}.blob.core.windows.net`,
91
- * sharedKeyCredential
92
- * );
93
- * ```
94
- */
95
- constructor(url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions, changeFeedClientOptions?: BlobChangeFeedClientOptions);
96
- /**
97
- * Creates an instance of BlobChangeFeedClient.
98
- *
99
- * @param url - A Client string pointing to Azure Storage blob service, such as
100
- * "https://myaccount.blob.core.windows.net". You can append a SAS
101
- * if using AnonymousCredential, such as "https://myaccount.blob.core.windows.net?sasString".
102
- * @param pipeline - Call newPipeline() to create a default
103
- * pipeline, or provide a customized pipeline.
104
- */
105
- constructor(url: string, pipeline: Pipeline);
106
- private getChange;
107
- private getPage;
108
- /**
109
- * Returns an async iterable iterator to list all the change feed events
110
- * in the specified account.
111
- *
112
- * .byPage() returns an async iterable iterator to list the change feed events in pages.
113
- *
114
- * Example using `for await` syntax:
115
- *
116
- * ```js
117
- * let i = 1;
118
- * for await (const event of blobChangeFeedClient.listChanges()) {
119
- * console.log(`Event ${i++}, type: ${event.eventType}`);
120
- * }
121
- * ```
122
- *
123
- * Example using `iter.next()`:
124
- *
125
- * ```js
126
- * let i = 1;
127
- * const iter = blobChangeFeedClient.listChanges();
128
- * let eventItem = await iter.next();
129
- * while (!eventItem.done) {
130
- * console.log(`Event ${i++}, type: ${eventItem.eventType}`);
131
- * eventItem = await iter.next();
132
- * }
133
- * ```
134
- *
135
- * Example using `byPage()`:
136
- *
137
- * ```js
138
- * // passing optional maxPageSize in the page settings
139
- * let i = 1;
140
- * for await (const eventPage of blobChangeFeedClient.listChanges().byPage({ maxPageSize: 20 })) {
141
- * if (eventPage.events) {
142
- * for (const event of eventPage.events) {
143
- * console.log(`Event ${i++}, type: ${event.eventType}`);
144
- * }
145
- * }
146
- * }
147
- * ```
148
- *
149
- * Example using paging with a marker:
150
- *
151
- * ```js
152
- * let i = 1;
153
- * let iterator = blobChangeFeedClient.listChanges().byPage({ maxPageSize: 2 });
154
- * let eventPage = (await iterator.next()).value;
155
- *
156
- * if (eventPage.events) {
157
- * for (const container of eventPage.events) {
158
- * console.log(`Event ${i++}, type: ${event.eventType}`);
159
- * }
160
- * }
161
- *
162
- * // Gets next marker
163
- * let marker = eventPage.continuationToken;
164
- * // Passing next marker as continuationToken
165
- * iterator = blobChangeFeedClient
166
- * .listChanges()
167
- * .byPage({ continuationToken: marker, maxPageSize: 10 });
168
- * eventPage = (await iterator.next()).value;
169
- *
170
- * if (eventPage.events) {
171
- * for (const container of eventPage.events) {
172
- * console.log(`Event ${i++}, type: ${event.eventType}`);
173
- * }
174
- * }
175
- * ```
176
- *
177
- * @param options - Options to list change feed events.
178
- * @returns An asyncIterableIterator that supports paging.
179
- */
180
- listChanges(options?: BlobChangeFeedListChangesOptions): PagedAsyncIterableIterator<BlobChangeFeedEvent, BlobChangeFeedEventPage>;
181
- }
182
- //# sourceMappingURL=BlobChangeFeedClient.d.ts.map
@@ -1,37 +0,0 @@
1
- import { ContainerClient, CommonOptions } from "@azure/storage-blob";
2
- import { Segment } from "./Segment";
3
- import { SegmentFactory } from "./SegmentFactory";
4
- import { BlobChangeFeedEvent } from "./models/BlobChangeFeedEvent";
5
- import { ChangeFeedCursor } from "./models/ChangeFeedCursor";
6
- import { AbortSignalLike } from "@azure/abort-controller";
7
- /**
8
- * Options to configure {@link ChangeFeed.getChange} operation.
9
- */
10
- export interface ChangeFeedGetChangeOptions 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 ChangeFeed {
18
- /**
19
- * BlobContainerClient for making List Blob requests and creating Segments.
20
- */
21
- private readonly containerClient?;
22
- private readonly segmentFactory?;
23
- private readonly years;
24
- private segments;
25
- private currentSegment?;
26
- private lastConsumable?;
27
- private startTime?;
28
- private endTime?;
29
- private end?;
30
- constructor();
31
- constructor(containerClient: ContainerClient, segmentFactory: SegmentFactory, years: number[], segments: string[], currentSegment: Segment, lastConsumable: Date, startTime?: Date, endTime?: Date);
32
- private advanceSegmentIfNecessary;
33
- hasNext(): boolean;
34
- getChange(options?: ChangeFeedGetChangeOptions): Promise<BlobChangeFeedEvent | undefined>;
35
- getCursor(): ChangeFeedCursor;
36
- }
37
- //# sourceMappingURL=ChangeFeed.d.ts.map
@@ -1,13 +0,0 @@
1
- import { BlobServiceClient } from "@azure/storage-blob";
2
- import { ChangeFeed } from "./ChangeFeed";
3
- import { SegmentFactory } from "./SegmentFactory";
4
- import { BlobChangeFeedListChangesOptions } from "./models/models";
5
- export declare class ChangeFeedFactory {
6
- private readonly segmentFactory;
7
- private readonly maxTransferSize?;
8
- constructor(maxTransferSize?: number);
9
- constructor(segmentFactory: SegmentFactory);
10
- private static validateCursor;
11
- create(blobServiceClient: BlobServiceClient, continuationToken?: string, options?: BlobChangeFeedListChangesOptions): Promise<ChangeFeed>;
12
- }
13
- //# sourceMappingURL=ChangeFeedFactory.d.ts.map
@@ -1,28 +0,0 @@
1
- import { AvroReader } from "../../storage-internal-avro/src";
2
- import { BlobChangeFeedEvent } from "./models/BlobChangeFeedEvent";
3
- import { CommonOptions } from "@azure/storage-blob";
4
- import { AbortSignalLike } from "@azure/abort-controller";
5
- import { AvroParseOptions } from "../../storage-internal-avro/src/AvroReader";
6
- /**
7
- * Options to configure {@link Chunk.getChange} operation.
8
- */
9
- export interface ChunkGetChangeOptions 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 Chunk {
17
- readonly chunkPath: string;
18
- private readonly avroReader;
19
- private readonly iter;
20
- private _blockOffset;
21
- readonly blockOffset: number;
22
- private _eventIndex;
23
- readonly eventIndex: number;
24
- constructor(avroReader: AvroReader, blockOffset: number, eventIndex: number, chunkPath: string, avroOptions?: AvroParseOptions);
25
- hasNext(): boolean;
26
- getChange(): Promise<BlobChangeFeedEvent | undefined>;
27
- }
28
- //# sourceMappingURL=Chunk.d.ts.map
@@ -1,23 +0,0 @@
1
- import { AvroReaderFactory } from "./AvroReaderFactory";
2
- import { ContainerClient, CommonOptions } from "@azure/storage-blob";
3
- import { Chunk } from "./Chunk";
4
- import { AbortSignalLike } from "@azure/abort-controller";
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 &commat;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
- private readonly maxTransferSize?;
20
- constructor(avroReaderFactory: AvroReaderFactory, lazyLoadingBlobStreamFactory: LazyLoadingBlobStreamFactory, maxTransferSize?: number);
21
- create(containerClient: ContainerClient, chunkPath: string, blockOffset?: number, eventIndex?: number, options?: CreateChunkOptions): Promise<Chunk>;
22
- }
23
- //# sourceMappingURL=ChunkFactory.d.ts.map
@@ -1,46 +0,0 @@
1
- /// <reference types="node" />
2
- import { Readable, ReadableOptions } from "stream";
3
- import { BlobClient, CommonOptions } from "@azure/storage-blob";
4
- import { AbortSignalLike } from "@azure/abort-controller";
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
@@ -1,6 +0,0 @@
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
@@ -1,29 +0,0 @@
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/abort-controller";
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
- readonly 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
@@ -1,29 +0,0 @@
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/abort-controller";
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
@@ -1,28 +0,0 @@
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/abort-controller";
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
@@ -1,21 +0,0 @@
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/abort-controller";
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
@@ -1,4 +0,0 @@
1
- export * from "./BlobChangeFeedClient";
2
- export * from "./models/BlobChangeFeedEvent";
3
- export * from "./models/models";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,5 +0,0 @@
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