@azure/storage-blob-changefeed 12.0.0-alpha.20220413.1 → 12.0.0-alpha.20220419.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.
- package/CHANGELOG.md +4 -1
- package/dist/index.js +147 -73
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/ChangeFeed.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/ChangeFeedFactory.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/Chunk.js +2 -8
- package/dist-esm/storage-blob-changefeed/src/Chunk.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/LazyLoadingBlobStream.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/Segment.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/SegmentFactory.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/Shard.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/ShardFactory.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/models/BlobChangeFeedEvent.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/utils/utils.common.js +81 -0
- package/dist-esm/storage-blob-changefeed/src/utils/utils.common.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/AvroParser.js +38 -40
- package/dist-esm/storage-internal-avro/src/AvroParser.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/AvroReadableFromBlob.js +4 -4
- package/dist-esm/storage-internal-avro/src/AvroReadableFromBlob.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/AvroReadableFromStream.js +7 -5
- package/dist-esm/storage-internal-avro/src/AvroReadableFromStream.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/AvroReader.js +8 -6
- package/dist-esm/storage-internal-avro/src/AvroReader.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/utils/utils.common.js +2 -1
- package/dist-esm/storage-internal-avro/src/utils/utils.common.js.map +1 -1
- package/package.json +2 -2
- package/types/3.1/storage-blob-changefeed/src/models/BlobChangeFeedEvent.d.ts +140 -1
- package/types/3.1/storage-blob-changefeed/src/utils/utils.common.d.ts +2 -0
- package/types/3.1/storage-blob-changefeed/test/utils/testutils.common.d.ts +9 -1
- package/types/3.1/storage-blob-changefeed.d.ts +140 -1
- package/types/3.1/storage-internal-avro/src/AvroParser.d.ts +1 -1
- package/types/3.1/storage-internal-avro/src/AvroReader.d.ts +1 -1
- package/types/latest/storage-blob-changefeed/src/Chunk.d.ts.map +1 -1
- package/types/latest/storage-blob-changefeed/src/models/BlobChangeFeedEvent.d.ts +140 -1
- package/types/latest/storage-blob-changefeed/src/models/BlobChangeFeedEvent.d.ts.map +1 -1
- package/types/latest/storage-blob-changefeed/src/utils/utils.common.d.ts +2 -0
- package/types/latest/storage-blob-changefeed/src/utils/utils.common.d.ts.map +1 -1
- package/types/latest/storage-blob-changefeed/test/utils/testutils.common.d.ts +9 -1
- package/types/latest/storage-blob-changefeed/test/utils/testutils.common.d.ts.map +1 -1
- package/types/latest/storage-blob-changefeed.d.ts +146 -1
- package/types/latest/storage-internal-avro/src/AvroParser.d.ts +1 -1
- package/types/latest/storage-internal-avro/src/AvroParser.d.ts.map +1 -1
- package/types/latest/storage-internal-avro/src/AvroReadableFromBlob.d.ts.map +1 -1
- package/types/latest/storage-internal-avro/src/AvroReadableFromStream.d.ts.map +1 -1
- package/types/latest/storage-internal-avro/src/AvroReader.d.ts +1 -1
- package/types/latest/storage-internal-avro/src/AvroReader.d.ts.map +1 -1
- package/types/latest/storage-internal-avro/src/utils/utils.common.d.ts.map +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Change feed event record types.
|
|
3
3
|
*/
|
|
4
|
-
export declare type BlobChangeFeedEventType = "UnspecifiedEventType" | "BlobCreated" | "BlobDeleted" | "BlobPropertiesUpdated" | "BlobSnapshotCreated" | "Control" | "BlobTierChanged" | "BlobAsyncOperationInitiated" | "BlobMetadataUpdated";
|
|
4
|
+
export declare type BlobChangeFeedEventType = "UnspecifiedEventType" | "BlobCreated" | "BlobDeleted" | "BlobPropertiesUpdated" | "BlobSnapshotCreated" | "Control" | "BlobTierChanged" | "BlobAsyncOperationInitiated" | "BlobMetadataUpdated" | "RestorePointMarkerCreated";
|
|
5
5
|
/**
|
|
6
6
|
* Change feed event record. Contains response data for the {@link BlobChangeFeedClient.listChanges} operation.
|
|
7
7
|
* @see https://docs.microsoft.com/en-us/azure/event-grid/event-schema-blob-storage?toc=/azure/storage/blobs/toc.json#event-properties
|
|
@@ -35,6 +35,10 @@ export interface BlobChangeFeedEvent {
|
|
|
35
35
|
* The schema version of the data object. The publisher defines the schema version.
|
|
36
36
|
*/
|
|
37
37
|
dataVersion?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The schema version of the data object. The publisher defines the schema version.
|
|
40
|
+
*/
|
|
41
|
+
schemaVersion?: number;
|
|
38
42
|
/**
|
|
39
43
|
* The schema version of the event metadata. Event Grid defines the schema of the top-level properties. Event Grid provides this value.
|
|
40
44
|
*/
|
|
@@ -44,6 +48,86 @@ export interface BlobChangeFeedEvent {
|
|
|
44
48
|
* The type of blob.
|
|
45
49
|
*/
|
|
46
50
|
export declare type BlobType = "BlockBlob" | "AppendBlob" | "PageBlob";
|
|
51
|
+
/**
|
|
52
|
+
* The AccessTier.
|
|
53
|
+
*/
|
|
54
|
+
export declare type AccessTier = "P4" | "P6" | "P10" | "P15" | "P20" | "P30" | "P40" | "P50" | "P60" | "P70" | "P80" | "Hot" | "Cool" | "Archive";
|
|
55
|
+
/**
|
|
56
|
+
* A blob property that was updated.
|
|
57
|
+
*/
|
|
58
|
+
export interface BlobPropertyChange {
|
|
59
|
+
/**
|
|
60
|
+
* The name of the property that was updated.
|
|
61
|
+
*/
|
|
62
|
+
propertyName: string;
|
|
63
|
+
/**
|
|
64
|
+
* The previous value of the property.
|
|
65
|
+
*/
|
|
66
|
+
oldValue: string;
|
|
67
|
+
/**
|
|
68
|
+
* The new value of the property.
|
|
69
|
+
*/
|
|
70
|
+
newValue: string;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Blob properties that were updated during an event.
|
|
74
|
+
*/
|
|
75
|
+
export declare type UpdatedBlobProperties = Record<string, BlobPropertyChange>;
|
|
76
|
+
/**
|
|
77
|
+
* Previous info for Change Feed Event.
|
|
78
|
+
*/
|
|
79
|
+
export interface ChangeFeedEventPreviousInfo {
|
|
80
|
+
/**
|
|
81
|
+
* Soft delete snapshot.
|
|
82
|
+
*/
|
|
83
|
+
softDeleteSnapshot?: string;
|
|
84
|
+
/**
|
|
85
|
+
* If the blob was soft deleted.
|
|
86
|
+
*/
|
|
87
|
+
isBlobSoftDeleted: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Blob version.
|
|
90
|
+
*/
|
|
91
|
+
newBlobVersion?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Last version.
|
|
94
|
+
*/
|
|
95
|
+
oldBlobVersion?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Previous Access Tier
|
|
98
|
+
*/
|
|
99
|
+
previousTier?: AccessTier;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* ChangeFeedEvent AsyncOperationInfo
|
|
103
|
+
*/
|
|
104
|
+
export interface BlobOperationResult {
|
|
105
|
+
/**
|
|
106
|
+
* Destination access tier.
|
|
107
|
+
*/
|
|
108
|
+
destinationAccessTier?: AccessTier;
|
|
109
|
+
/**
|
|
110
|
+
* If the operation was async.
|
|
111
|
+
*/
|
|
112
|
+
isAsync: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Copy Id.
|
|
115
|
+
*/
|
|
116
|
+
copyId?: string;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Blob tags that were updated as part of the change feed event.
|
|
120
|
+
*/
|
|
121
|
+
export interface BlobTagsChange {
|
|
122
|
+
/**
|
|
123
|
+
* Previous Tags.
|
|
124
|
+
*/
|
|
125
|
+
oldTags: Record<string, string>;
|
|
126
|
+
/**
|
|
127
|
+
* New Tags.
|
|
128
|
+
*/
|
|
129
|
+
newTags: Record<string, string>;
|
|
130
|
+
}
|
|
47
131
|
/**
|
|
48
132
|
* Change feed Blob storage event data.
|
|
49
133
|
*/
|
|
@@ -76,6 +160,12 @@ export interface BlobChangeFeedEventData {
|
|
|
76
160
|
* The size of the blob in bytes.
|
|
77
161
|
*/
|
|
78
162
|
contentLength: number;
|
|
163
|
+
/**
|
|
164
|
+
* The offset in bytes of a write operation taken at the point where the event-triggering application completed
|
|
165
|
+
* writing to the file.
|
|
166
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
167
|
+
*/
|
|
168
|
+
contentOffset?: number;
|
|
79
169
|
/**
|
|
80
170
|
* The type of blob.
|
|
81
171
|
*/
|
|
@@ -85,10 +175,59 @@ export interface BlobChangeFeedEventData {
|
|
|
85
175
|
* <storage-account-name>.blob.core.windows.net/<container-name>/<file-name>.
|
|
86
176
|
*/
|
|
87
177
|
url: string;
|
|
178
|
+
/**
|
|
179
|
+
* The url of the file that will exist after the operation completes. For example, if a file is renamed,
|
|
180
|
+
* the destinationUrl property contains the url of the new file name.
|
|
181
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
182
|
+
*/
|
|
183
|
+
destinationUrl?: string;
|
|
184
|
+
/**
|
|
185
|
+
* The url of the file that exists prior to the operation. For example, if a file is renamed, the sourceUrl
|
|
186
|
+
* contains the url of the original file name prior to the rename operation.
|
|
187
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
188
|
+
*/
|
|
189
|
+
sourceUrl?: string;
|
|
190
|
+
/**
|
|
191
|
+
* True to perform the operation on all child directories; otherwise False.
|
|
192
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
193
|
+
*/
|
|
194
|
+
isRecursive?: boolean;
|
|
88
195
|
/**
|
|
89
196
|
* An opaque string value representing the logical sequence of events for any particular blob name.
|
|
90
197
|
* Users can use standard string comparison to understand the relative sequence of two events on the same blob name.
|
|
91
198
|
*/
|
|
92
199
|
sequencer: string;
|
|
200
|
+
/**
|
|
201
|
+
* Previous info for the blob.
|
|
202
|
+
*/
|
|
203
|
+
previousInfo?: ChangeFeedEventPreviousInfo;
|
|
204
|
+
/**
|
|
205
|
+
* Blob properties that were updated during this event.
|
|
206
|
+
*/
|
|
207
|
+
updatedBlobProperties?: UpdatedBlobProperties;
|
|
208
|
+
/**
|
|
209
|
+
* Blob tags that were updated during this event.
|
|
210
|
+
*/
|
|
211
|
+
updatedBlobTags?: BlobTagsChange;
|
|
212
|
+
/**
|
|
213
|
+
* The Snapshot associated with the event.
|
|
214
|
+
*/
|
|
215
|
+
snapshot?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Version of the blob.
|
|
218
|
+
*/
|
|
219
|
+
blobVersion?: string;
|
|
220
|
+
/**
|
|
221
|
+
* Version of the container the blob is in.
|
|
222
|
+
*/
|
|
223
|
+
containerVersion?: string;
|
|
224
|
+
/**
|
|
225
|
+
* Access Tier of the blob.
|
|
226
|
+
*/
|
|
227
|
+
blobAccessTier?: AccessTier;
|
|
228
|
+
/**
|
|
229
|
+
* AsyncOperationInfo
|
|
230
|
+
*/
|
|
231
|
+
longRunningOperationInfo?: BlobOperationResult;
|
|
93
232
|
}
|
|
94
233
|
//# sourceMappingURL=BlobChangeFeedEvent.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AbortSignalLike } from "@azure/core-http";
|
|
2
2
|
import { ContainerClient, CommonOptions } from "@azure/storage-blob";
|
|
3
|
+
import { BlobChangeFeedEvent } from "../models/BlobChangeFeedEvent";
|
|
3
4
|
export declare function ceilToNearestHour(date: Date | undefined): Date | undefined;
|
|
4
5
|
export declare function floorToNearestHour(date: Date | undefined): Date | undefined;
|
|
5
6
|
/**
|
|
@@ -39,4 +40,5 @@ export interface GetSegmentsInYearOptions extends CommonOptions {
|
|
|
39
40
|
export declare function getSegmentsInYear(containerClient: ContainerClient, year: number, startTime?: Date, endTime?: Date, options?: GetSegmentsInYearOptions): Promise<string[]>;
|
|
40
41
|
export declare function parseDateFromSegmentPath(segmentPath: string): Date;
|
|
41
42
|
export declare function minDate(dateA: Date, dateB?: Date): Date;
|
|
43
|
+
export declare function rawEventToBlobChangeFeedEvent(rawEvent: Record<string, any>): BlobChangeFeedEvent;
|
|
42
44
|
//# sourceMappingURL=utils.common.d.ts.map
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { TokenCredential, GetTokenOptions, AccessToken } from "@azure/core-http";
|
|
2
3
|
import { RecorderEnvironmentSetup } from "@azure-tools/test-recorder";
|
|
4
|
+
import { Readable } from "stream";
|
|
3
5
|
export declare const testPollerProperties: {
|
|
4
6
|
intervalInMs: number | undefined;
|
|
5
7
|
};
|
|
@@ -49,8 +51,14 @@ export declare function isSuperSet(m1?: BlobMetadata, m2?: BlobMetadata): boolea
|
|
|
49
51
|
/**
|
|
50
52
|
* Sleep for seconds.
|
|
51
53
|
*
|
|
52
|
-
* @param seconds -
|
|
54
|
+
* @param seconds - duration to sleep in seconds
|
|
53
55
|
*/
|
|
54
56
|
export declare function sleep(seconds: number): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Read text content from a stream as string
|
|
59
|
+
* @param stream - stream to read from
|
|
60
|
+
* @returns a utf-8 string that is the whole content of the stream
|
|
61
|
+
*/
|
|
62
|
+
export declare function streamToString(stream: Readable): Promise<string>;
|
|
55
63
|
export {};
|
|
56
64
|
//# sourceMappingURL=testutils.common.d.ts.map
|
|
@@ -6,6 +6,10 @@ import { Pipeline } from '@azure/storage-blob';
|
|
|
6
6
|
import { StoragePipelineOptions } from '@azure/storage-blob';
|
|
7
7
|
import { StorageSharedKeyCredential } from '@azure/storage-blob';
|
|
8
8
|
import { TokenCredential } from '@azure/core-http';
|
|
9
|
+
/**
|
|
10
|
+
* The AccessTier.
|
|
11
|
+
*/
|
|
12
|
+
export declare type AccessTier = "P4" | "P6" | "P10" | "P15" | "P20" | "P30" | "P40" | "P50" | "P60" | "P70" | "P80" | "Hot" | "Cool" | "Archive";
|
|
9
13
|
/**
|
|
10
14
|
* BlobChangeFeedClient.
|
|
11
15
|
* @see https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-change-feed?tabs=azure-portal
|
|
@@ -183,6 +187,10 @@ export declare interface BlobChangeFeedEvent {
|
|
|
183
187
|
* The schema version of the data object. The publisher defines the schema version.
|
|
184
188
|
*/
|
|
185
189
|
dataVersion?: string;
|
|
190
|
+
/**
|
|
191
|
+
* The schema version of the data object. The publisher defines the schema version.
|
|
192
|
+
*/
|
|
193
|
+
schemaVersion?: number;
|
|
186
194
|
/**
|
|
187
195
|
* The schema version of the event metadata. Event Grid defines the schema of the top-level properties. Event Grid provides this value.
|
|
188
196
|
*/
|
|
@@ -220,6 +228,12 @@ export declare interface BlobChangeFeedEventData {
|
|
|
220
228
|
* The size of the blob in bytes.
|
|
221
229
|
*/
|
|
222
230
|
contentLength: number;
|
|
231
|
+
/**
|
|
232
|
+
* The offset in bytes of a write operation taken at the point where the event-triggering application completed
|
|
233
|
+
* writing to the file.
|
|
234
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
235
|
+
*/
|
|
236
|
+
contentOffset?: number;
|
|
223
237
|
/**
|
|
224
238
|
* The type of blob.
|
|
225
239
|
*/
|
|
@@ -229,11 +243,60 @@ export declare interface BlobChangeFeedEventData {
|
|
|
229
243
|
* <storage-account-name>.blob.core.windows.net/<container-name>/<file-name>.
|
|
230
244
|
*/
|
|
231
245
|
url: string;
|
|
246
|
+
/**
|
|
247
|
+
* The url of the file that will exist after the operation completes. For example, if a file is renamed,
|
|
248
|
+
* the destinationUrl property contains the url of the new file name.
|
|
249
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
250
|
+
*/
|
|
251
|
+
destinationUrl?: string;
|
|
252
|
+
/**
|
|
253
|
+
* The url of the file that exists prior to the operation. For example, if a file is renamed, the sourceUrl
|
|
254
|
+
* contains the url of the original file name prior to the rename operation.
|
|
255
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
256
|
+
*/
|
|
257
|
+
sourceUrl?: string;
|
|
258
|
+
/**
|
|
259
|
+
* True to perform the operation on all child directories; otherwise False.
|
|
260
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
261
|
+
*/
|
|
262
|
+
isRecursive?: boolean;
|
|
232
263
|
/**
|
|
233
264
|
* An opaque string value representing the logical sequence of events for any particular blob name.
|
|
234
265
|
* Users can use standard string comparison to understand the relative sequence of two events on the same blob name.
|
|
235
266
|
*/
|
|
236
267
|
sequencer: string;
|
|
268
|
+
/**
|
|
269
|
+
* Previous info for the blob.
|
|
270
|
+
*/
|
|
271
|
+
previousInfo?: ChangeFeedEventPreviousInfo;
|
|
272
|
+
/**
|
|
273
|
+
* Blob properties that were updated during this event.
|
|
274
|
+
*/
|
|
275
|
+
updatedBlobProperties?: UpdatedBlobProperties;
|
|
276
|
+
/**
|
|
277
|
+
* Blob tags that were updated during this event.
|
|
278
|
+
*/
|
|
279
|
+
updatedBlobTags?: BlobTagsChange;
|
|
280
|
+
/**
|
|
281
|
+
* The Snapshot associated with the event.
|
|
282
|
+
*/
|
|
283
|
+
snapshot?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Version of the blob.
|
|
286
|
+
*/
|
|
287
|
+
blobVersion?: string;
|
|
288
|
+
/**
|
|
289
|
+
* Version of the container the blob is in.
|
|
290
|
+
*/
|
|
291
|
+
containerVersion?: string;
|
|
292
|
+
/**
|
|
293
|
+
* Access Tier of the blob.
|
|
294
|
+
*/
|
|
295
|
+
blobAccessTier?: AccessTier;
|
|
296
|
+
/**
|
|
297
|
+
* AsyncOperationInfo
|
|
298
|
+
*/
|
|
299
|
+
longRunningOperationInfo?: BlobOperationResult;
|
|
237
300
|
}
|
|
238
301
|
/**
|
|
239
302
|
* Contains paged response data for the {@link BlobChangeFeedClient.listChanges} operation.
|
|
@@ -252,7 +315,7 @@ export declare class BlobChangeFeedEventPage {
|
|
|
252
315
|
/**
|
|
253
316
|
* Change feed event record types.
|
|
254
317
|
*/
|
|
255
|
-
export declare type BlobChangeFeedEventType = "UnspecifiedEventType" | "BlobCreated" | "BlobDeleted" | "BlobPropertiesUpdated" | "BlobSnapshotCreated" | "Control" | "BlobTierChanged" | "BlobAsyncOperationInitiated" | "BlobMetadataUpdated";
|
|
318
|
+
export declare type BlobChangeFeedEventType = "UnspecifiedEventType" | "BlobCreated" | "BlobDeleted" | "BlobPropertiesUpdated" | "BlobSnapshotCreated" | "Control" | "BlobTierChanged" | "BlobAsyncOperationInitiated" | "BlobMetadataUpdated" | "RestorePointMarkerCreated";
|
|
256
319
|
/**
|
|
257
320
|
* Options to configure {@link BlobChangeFeedClient.listChanges} operation.
|
|
258
321
|
*/
|
|
@@ -273,10 +336,82 @@ export declare interface BlobChangeFeedListChangesOptions extends CommonOptions
|
|
|
273
336
|
*/
|
|
274
337
|
end?: Date;
|
|
275
338
|
}
|
|
339
|
+
/**
|
|
340
|
+
* ChangeFeedEvent AsyncOperationInfo
|
|
341
|
+
*/
|
|
342
|
+
export declare interface BlobOperationResult {
|
|
343
|
+
/**
|
|
344
|
+
* Destination access tier.
|
|
345
|
+
*/
|
|
346
|
+
destinationAccessTier?: AccessTier;
|
|
347
|
+
/**
|
|
348
|
+
* If the operation was async.
|
|
349
|
+
*/
|
|
350
|
+
isAsync: boolean;
|
|
351
|
+
/**
|
|
352
|
+
* Copy Id.
|
|
353
|
+
*/
|
|
354
|
+
copyId?: string;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* A blob property that was updated.
|
|
358
|
+
*/
|
|
359
|
+
export declare interface BlobPropertyChange {
|
|
360
|
+
/**
|
|
361
|
+
* The name of the property that was updated.
|
|
362
|
+
*/
|
|
363
|
+
propertyName: string;
|
|
364
|
+
/**
|
|
365
|
+
* The previous value of the property.
|
|
366
|
+
*/
|
|
367
|
+
oldValue: string;
|
|
368
|
+
/**
|
|
369
|
+
* The new value of the property.
|
|
370
|
+
*/
|
|
371
|
+
newValue: string;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Blob tags that were updated as part of the change feed event.
|
|
375
|
+
*/
|
|
376
|
+
export declare interface BlobTagsChange {
|
|
377
|
+
/**
|
|
378
|
+
* Previous Tags.
|
|
379
|
+
*/
|
|
380
|
+
oldTags: Record<string, string>;
|
|
381
|
+
/**
|
|
382
|
+
* New Tags.
|
|
383
|
+
*/
|
|
384
|
+
newTags: Record<string, string>;
|
|
385
|
+
}
|
|
276
386
|
/**
|
|
277
387
|
* The type of blob.
|
|
278
388
|
*/
|
|
279
389
|
export declare type BlobType = "BlockBlob" | "AppendBlob" | "PageBlob";
|
|
390
|
+
/**
|
|
391
|
+
* Previous info for Change Feed Event.
|
|
392
|
+
*/
|
|
393
|
+
export declare interface ChangeFeedEventPreviousInfo {
|
|
394
|
+
/**
|
|
395
|
+
* Soft delete snapshot.
|
|
396
|
+
*/
|
|
397
|
+
softDeleteSnapshot?: string;
|
|
398
|
+
/**
|
|
399
|
+
* If the blob was soft deleted.
|
|
400
|
+
*/
|
|
401
|
+
isBlobSoftDeleted: boolean;
|
|
402
|
+
/**
|
|
403
|
+
* Blob version.
|
|
404
|
+
*/
|
|
405
|
+
newBlobVersion?: string;
|
|
406
|
+
/**
|
|
407
|
+
* Last version.
|
|
408
|
+
*/
|
|
409
|
+
oldBlobVersion?: string;
|
|
410
|
+
/**
|
|
411
|
+
* Previous Access Tier
|
|
412
|
+
*/
|
|
413
|
+
previousTier?: AccessTier;
|
|
414
|
+
}
|
|
280
415
|
/**
|
|
281
416
|
* Creates a new Pipeline object with Credential provided.
|
|
282
417
|
*
|
|
@@ -285,4 +420,8 @@ export declare type BlobType = "BlockBlob" | "AppendBlob" | "PageBlob";
|
|
|
285
420
|
* @returns A new Pipeline object.
|
|
286
421
|
*/
|
|
287
422
|
export declare function newPipeline(credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, pipelineOptions?: StoragePipelineOptions): Pipeline;
|
|
423
|
+
/**
|
|
424
|
+
* Blob properties that were updated during an event.
|
|
425
|
+
*/
|
|
426
|
+
export declare type UpdatedBlobProperties = Record<string, BlobPropertyChange>;
|
|
288
427
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AvroReadable } from "./AvroReadable";
|
|
2
1
|
import { AbortSignalLike } from "@azure/abort-controller";
|
|
2
|
+
import { AvroReadable } from "./AvroReadable";
|
|
3
3
|
/**
|
|
4
4
|
* Options to configure the AvroParser read methods.
|
|
5
5
|
* See {@link AvroParser.readFixedBytes}, {@link AvroParser.readMap} and etc.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AvroReadable } from "./AvroReadable";
|
|
2
1
|
import "@azure/core-paging";
|
|
3
2
|
import { AbortSignalLike } from "@azure/abort-controller";
|
|
3
|
+
import { AvroReadable } from "./AvroReadable";
|
|
4
4
|
/**
|
|
5
5
|
* Options to configure the {@link AvroReader.parseObjects} operation.
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chunk.d.ts","sourceRoot":"","sources":["../../../../src/Chunk.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"Chunk.d.ts","sourceRoot":"","sources":["../../../../src/Chunk.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAG9E;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IAC1D;;;OAGG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;CAC/B;AAED,qBAAa,KAAK;aAkBE,SAAS,EAAE,MAAM;IAjBnC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;IACxC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAoD;IAEzE,OAAO,CAAC,YAAY,CAAS;IAC7B,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED,OAAO,CAAC,WAAW,CAAS;IAC5B,IAAW,UAAU,IAAI,MAAM,CAE9B;gBAGC,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,MAAM,EACF,SAAS,EAAE,MAAM,EACjC,WAAW,GAAE,gBAAqB;IAS7B,OAAO,IAAI,OAAO;IAIZ,SAAS,IAAI,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC;CAmBnE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Change feed event record types.
|
|
3
3
|
*/
|
|
4
|
-
export declare type BlobChangeFeedEventType = "UnspecifiedEventType" | "BlobCreated" | "BlobDeleted" | "BlobPropertiesUpdated" | "BlobSnapshotCreated" | "Control" | "BlobTierChanged" | "BlobAsyncOperationInitiated" | "BlobMetadataUpdated";
|
|
4
|
+
export declare type BlobChangeFeedEventType = "UnspecifiedEventType" | "BlobCreated" | "BlobDeleted" | "BlobPropertiesUpdated" | "BlobSnapshotCreated" | "Control" | "BlobTierChanged" | "BlobAsyncOperationInitiated" | "BlobMetadataUpdated" | "RestorePointMarkerCreated";
|
|
5
5
|
/**
|
|
6
6
|
* Change feed event record. Contains response data for the {@link BlobChangeFeedClient.listChanges} operation.
|
|
7
7
|
* @see https://docs.microsoft.com/en-us/azure/event-grid/event-schema-blob-storage?toc=/azure/storage/blobs/toc.json#event-properties
|
|
@@ -35,6 +35,10 @@ export interface BlobChangeFeedEvent {
|
|
|
35
35
|
* The schema version of the data object. The publisher defines the schema version.
|
|
36
36
|
*/
|
|
37
37
|
dataVersion?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The schema version of the data object. The publisher defines the schema version.
|
|
40
|
+
*/
|
|
41
|
+
schemaVersion?: number;
|
|
38
42
|
/**
|
|
39
43
|
* The schema version of the event metadata. Event Grid defines the schema of the top-level properties. Event Grid provides this value.
|
|
40
44
|
*/
|
|
@@ -44,6 +48,86 @@ export interface BlobChangeFeedEvent {
|
|
|
44
48
|
* The type of blob.
|
|
45
49
|
*/
|
|
46
50
|
export declare type BlobType = "BlockBlob" | "AppendBlob" | "PageBlob";
|
|
51
|
+
/**
|
|
52
|
+
* The AccessTier.
|
|
53
|
+
*/
|
|
54
|
+
export declare type AccessTier = "P4" | "P6" | "P10" | "P15" | "P20" | "P30" | "P40" | "P50" | "P60" | "P70" | "P80" | "Hot" | "Cool" | "Archive";
|
|
55
|
+
/**
|
|
56
|
+
* A blob property that was updated.
|
|
57
|
+
*/
|
|
58
|
+
export interface BlobPropertyChange {
|
|
59
|
+
/**
|
|
60
|
+
* The name of the property that was updated.
|
|
61
|
+
*/
|
|
62
|
+
propertyName: string;
|
|
63
|
+
/**
|
|
64
|
+
* The previous value of the property.
|
|
65
|
+
*/
|
|
66
|
+
oldValue: string;
|
|
67
|
+
/**
|
|
68
|
+
* The new value of the property.
|
|
69
|
+
*/
|
|
70
|
+
newValue: string;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Blob properties that were updated during an event.
|
|
74
|
+
*/
|
|
75
|
+
export declare type UpdatedBlobProperties = Record<string, BlobPropertyChange>;
|
|
76
|
+
/**
|
|
77
|
+
* Previous info for Change Feed Event.
|
|
78
|
+
*/
|
|
79
|
+
export interface ChangeFeedEventPreviousInfo {
|
|
80
|
+
/**
|
|
81
|
+
* Soft delete snapshot.
|
|
82
|
+
*/
|
|
83
|
+
softDeleteSnapshot?: string;
|
|
84
|
+
/**
|
|
85
|
+
* If the blob was soft deleted.
|
|
86
|
+
*/
|
|
87
|
+
isBlobSoftDeleted: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Blob version.
|
|
90
|
+
*/
|
|
91
|
+
newBlobVersion?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Last version.
|
|
94
|
+
*/
|
|
95
|
+
oldBlobVersion?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Previous Access Tier
|
|
98
|
+
*/
|
|
99
|
+
previousTier?: AccessTier;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* ChangeFeedEvent AsyncOperationInfo
|
|
103
|
+
*/
|
|
104
|
+
export interface BlobOperationResult {
|
|
105
|
+
/**
|
|
106
|
+
* Destination access tier.
|
|
107
|
+
*/
|
|
108
|
+
destinationAccessTier?: AccessTier;
|
|
109
|
+
/**
|
|
110
|
+
* If the operation was async.
|
|
111
|
+
*/
|
|
112
|
+
isAsync: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Copy Id.
|
|
115
|
+
*/
|
|
116
|
+
copyId?: string;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Blob tags that were updated as part of the change feed event.
|
|
120
|
+
*/
|
|
121
|
+
export interface BlobTagsChange {
|
|
122
|
+
/**
|
|
123
|
+
* Previous Tags.
|
|
124
|
+
*/
|
|
125
|
+
oldTags: Record<string, string>;
|
|
126
|
+
/**
|
|
127
|
+
* New Tags.
|
|
128
|
+
*/
|
|
129
|
+
newTags: Record<string, string>;
|
|
130
|
+
}
|
|
47
131
|
/**
|
|
48
132
|
* Change feed Blob storage event data.
|
|
49
133
|
*/
|
|
@@ -76,6 +160,12 @@ export interface BlobChangeFeedEventData {
|
|
|
76
160
|
* The size of the blob in bytes.
|
|
77
161
|
*/
|
|
78
162
|
contentLength: number;
|
|
163
|
+
/**
|
|
164
|
+
* The offset in bytes of a write operation taken at the point where the event-triggering application completed
|
|
165
|
+
* writing to the file.
|
|
166
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
167
|
+
*/
|
|
168
|
+
contentOffset?: number;
|
|
79
169
|
/**
|
|
80
170
|
* The type of blob.
|
|
81
171
|
*/
|
|
@@ -85,10 +175,59 @@ export interface BlobChangeFeedEventData {
|
|
|
85
175
|
* <storage-account-name>.blob.core.windows.net/<container-name>/<file-name>.
|
|
86
176
|
*/
|
|
87
177
|
url: string;
|
|
178
|
+
/**
|
|
179
|
+
* The url of the file that will exist after the operation completes. For example, if a file is renamed,
|
|
180
|
+
* the destinationUrl property contains the url of the new file name.
|
|
181
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
182
|
+
*/
|
|
183
|
+
destinationUrl?: string;
|
|
184
|
+
/**
|
|
185
|
+
* The url of the file that exists prior to the operation. For example, if a file is renamed, the sourceUrl
|
|
186
|
+
* contains the url of the original file name prior to the rename operation.
|
|
187
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
188
|
+
*/
|
|
189
|
+
sourceUrl?: string;
|
|
190
|
+
/**
|
|
191
|
+
* True to perform the operation on all child directories; otherwise False.
|
|
192
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
193
|
+
*/
|
|
194
|
+
isRecursive?: boolean;
|
|
88
195
|
/**
|
|
89
196
|
* An opaque string value representing the logical sequence of events for any particular blob name.
|
|
90
197
|
* Users can use standard string comparison to understand the relative sequence of two events on the same blob name.
|
|
91
198
|
*/
|
|
92
199
|
sequencer: string;
|
|
200
|
+
/**
|
|
201
|
+
* Previous info for the blob.
|
|
202
|
+
*/
|
|
203
|
+
previousInfo?: ChangeFeedEventPreviousInfo;
|
|
204
|
+
/**
|
|
205
|
+
* Blob properties that were updated during this event.
|
|
206
|
+
*/
|
|
207
|
+
updatedBlobProperties?: UpdatedBlobProperties;
|
|
208
|
+
/**
|
|
209
|
+
* Blob tags that were updated during this event.
|
|
210
|
+
*/
|
|
211
|
+
updatedBlobTags?: BlobTagsChange;
|
|
212
|
+
/**
|
|
213
|
+
* The Snapshot associated with the event.
|
|
214
|
+
*/
|
|
215
|
+
snapshot?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Version of the blob.
|
|
218
|
+
*/
|
|
219
|
+
blobVersion?: string;
|
|
220
|
+
/**
|
|
221
|
+
* Version of the container the blob is in.
|
|
222
|
+
*/
|
|
223
|
+
containerVersion?: string;
|
|
224
|
+
/**
|
|
225
|
+
* Access Tier of the blob.
|
|
226
|
+
*/
|
|
227
|
+
blobAccessTier?: AccessTier;
|
|
228
|
+
/**
|
|
229
|
+
* AsyncOperationInfo
|
|
230
|
+
*/
|
|
231
|
+
longRunningOperationInfo?: BlobOperationResult;
|
|
93
232
|
}
|
|
94
233
|
//# sourceMappingURL=BlobChangeFeedEvent.d.ts.map
|
|
@@ -1 +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;
|
|
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,GACrB,2BAA2B,CAAC;AAEhC;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC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AAM,CAAC;IAErB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B;;OAEG;IACH,wBAAwB,CAAC,EAAE,mBAAmB,CAAC;CAChD"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AbortSignalLike } from "@azure/core-http";
|
|
2
2
|
import { ContainerClient, CommonOptions } from "@azure/storage-blob";
|
|
3
|
+
import { BlobChangeFeedEvent } from "../models/BlobChangeFeedEvent";
|
|
3
4
|
export declare function ceilToNearestHour(date: Date | undefined): Date | undefined;
|
|
4
5
|
export declare function floorToNearestHour(date: Date | undefined): Date | undefined;
|
|
5
6
|
/**
|
|
@@ -39,4 +40,5 @@ export interface GetSegmentsInYearOptions extends CommonOptions {
|
|
|
39
40
|
export declare function getSegmentsInYear(containerClient: ContainerClient, year: number, startTime?: Date, endTime?: Date, options?: GetSegmentsInYearOptions): Promise<string[]>;
|
|
40
41
|
export declare function parseDateFromSegmentPath(segmentPath: string): Date;
|
|
41
42
|
export declare function minDate(dateA: Date, dateB?: Date): Date;
|
|
43
|
+
export declare function rawEventToBlobChangeFeedEvent(rawEvent: Record<string, any>): BlobChangeFeedEvent;
|
|
42
44
|
//# sourceMappingURL=utils.common.d.ts.map
|
|
@@ -1 +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;
|
|
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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CAAC,GAAG,mBAAmB,CAwFhG"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { TokenCredential, GetTokenOptions, AccessToken } from "@azure/core-http";
|
|
2
3
|
import { RecorderEnvironmentSetup } from "@azure-tools/test-recorder";
|
|
4
|
+
import { Readable } from "stream";
|
|
3
5
|
export declare const testPollerProperties: {
|
|
4
6
|
intervalInMs: number | undefined;
|
|
5
7
|
};
|
|
@@ -49,8 +51,14 @@ export declare function isSuperSet(m1?: BlobMetadata, m2?: BlobMetadata): boolea
|
|
|
49
51
|
/**
|
|
50
52
|
* Sleep for seconds.
|
|
51
53
|
*
|
|
52
|
-
* @param seconds -
|
|
54
|
+
* @param seconds - duration to sleep in seconds
|
|
53
55
|
*/
|
|
54
56
|
export declare function sleep(seconds: number): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Read text content from a stream as string
|
|
59
|
+
* @param stream - stream to read from
|
|
60
|
+
* @returns a utf-8 string that is the whole content of the stream
|
|
61
|
+
*/
|
|
62
|
+
export declare function streamToString(stream: Readable): Promise<string>;
|
|
55
63
|
export {};
|
|
56
64
|
//# sourceMappingURL=testutils.common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testutils.common.d.ts","sourceRoot":"","sources":["../../../../../test/utils/testutils.common.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjF,OAAO,EAAuB,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"testutils.common.d.ts","sourceRoot":"","sources":["../../../../../test/utils/testutils.common.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjF,OAAO,EAAuB,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,EAAE,QAAQ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