azure-mock 2.13.1 → 2.15.0

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 (3) hide show
  1. package/dist/index.d.ts +186 -222
  2. package/dist/index.js +5610 -163
  3. package/package.json +11 -7
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { AnonymousCredential, AppendBlobClient, BlobAbortCopyFromURLResponse, BlobBatchClient, BlobBatchDeleteBlobsResponse, BlobBeginCopyFromURLResponse, BlobClient, BlobCopyFromURLResponse, BlobCreateSnapshotResponse, BlobDeleteIfExistsResponse, BlobDeleteImmutabilityPolicyResponse, BlobDeleteOptions, BlobDeleteResponse, BlobDownloadResponseModel, BlobDownloadResponseParsed, BlobGetAccountInfoResponse, BlobGetPropertiesResponse, BlobGetTagsResponse, BlobItem, BlobLeaseClient, BlobPrefix, BlobSetHTTPHeadersResponse, BlobSetImmutabilityPolicyResponse, BlobSetLegalHoldResponse, BlobSetMetadataResponse, BlobSetTagsResponse, BlobSetTierResponse, BlobUndeleteResponse, BlobUploadCommonResponse, BlockBlobClient, BlockBlobCommitBlockListResponse, BlockBlobGetBlockListResponse, BlockBlobPutBlobFromUrlResponse, BlockBlobStageBlockFromURLResponse, BlockBlobStageBlockResponse, BlockBlobUploadResponse, ContainerClient, ContainerCreateIfNotExistsResponse, ContainerCreateResponse, ContainerDeleteIfExistsResponse, ContainerDeleteResponse, ContainerFindBlobsByTagsSegmentResponse, ContainerGetAccessPolicyResponse, ContainerGetAccountInfoResponse, ContainerGetPropertiesResponse, ContainerListBlobFlatSegmentResponse, ContainerListBlobHierarchySegmentResponse, ContainerListBlobsOptions, ContainerSetAccessPolicyResponse, ContainerSetMetadataResponse, FilterBlobItem, HttpRequestBody, PageBlobClient, PollOperationState, PollerLikeWithCancellation, StorageSharedKeyCredential } from "@azure/storage-blob";
2
- import { MapValue } from "type-fest/source/entry";
3
2
  import { CreateTableEntityResponse, GetAccessPolicyResponse, GetTableEntityResponse, ListTableEntitiesOptions, TableClient, TableDeleteEntityHeaders, TableEntity, TableEntityResult, TableEntityResultPage, TableMergeEntityHeaders, TableSetAccessPolicyHeaders, TableTransactionResponse, UpdateMode } from "@azure/data-tables";
4
3
 
5
4
  //#region src/models/BlobHierarchyItem.d.ts
@@ -9,6 +8,49 @@ type BlobHierarchyItem = (BlobItem & {
9
8
  kind: "prefix";
10
9
  });
11
10
  //#endregion
11
+ //#region ../shared/dist/index.d.ts
12
+ //#region src/models/azure/BinaryOperator.d.ts
13
+ declare enum BinaryOperator {
14
+ eq = "eq",
15
+ ge = "ge",
16
+ gt = "gt",
17
+ le = "le",
18
+ lt = "lt",
19
+ ne = "ne",
20
+ }
21
+ //#endregion
22
+ //#region src/models/azure/SearchOperator.d.ts
23
+ declare enum SearchOperator {
24
+ arrayContains = "arrayContains",
25
+ }
26
+ //#endregion
27
+ //#region src/models/azure/SerializableValue.d.ts
28
+
29
+ type SerializableValue = boolean | Date | null | number | string;
30
+ //#endregion
31
+ //#region src/models/azure/Clause.d.ts
32
+ type Clause = {
33
+ key: string;
34
+ not?: boolean;
35
+ } & ({
36
+ operator: BinaryOperator;
37
+ value: SerializableValue;
38
+ } | {
39
+ operator: Exclude<SearchOperator, SearchOperator.arrayContains>;
40
+ value: SerializableValue;
41
+ } | {
42
+ operator: SearchOperator.arrayContains;
43
+ value: SerializableValue[];
44
+ });
45
+ //#endregion
46
+ //#region src/models/azure/UnaryOperator.d.ts
47
+
48
+ //#endregion
49
+ //#region src/util/types/MapValue.d.ts
50
+ type MapValue<BaseType> = BaseType extends Map<unknown, infer ValueType> ? ValueType : never;
51
+ //#endregion
52
+ //#region src/util/types/TupleSplitHead.d.ts
53
+ //#endregion
12
54
  //#region src/store/MockContainerDatabase.d.ts
13
55
  declare const MockContainerDatabase: Map<string, Map<string, Buffer>>;
14
56
  //#endregion
@@ -26,27 +68,81 @@ declare class MockBlobBatchClient implements BlobBatchClient {
26
68
  getContainer(containerName: string): MapValue<typeof MockContainerDatabase>;
27
69
  }
28
70
  //#endregion
29
- //#region ../../node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/observable-like.d.ts
30
- declare global {
31
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
32
- interface SymbolConstructor {
33
- readonly observable: symbol;
34
- }
71
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/is-any.d.ts
72
+ /**
73
+ Returns a boolean for whether the given type is `any`.
74
+
75
+ @link https://stackoverflow.com/a/49928360/1490091
76
+
77
+ Useful in type utilities, such as disallowing `any`s to be passed to a function.
78
+
79
+ @example
80
+ ```
81
+ import type {IsAny} from 'type-fest';
82
+
83
+ const typedObject = {a: 1, b: 2} as const;
84
+ const anyObject: any = {a: 1, b: 2};
85
+
86
+ function get<O extends (IsAny<O> extends true ? {} : Record<string, number>), K extends keyof O = keyof O>(obj: O, key: K) {
87
+ return obj[key];
35
88
  }
36
89
 
37
- /**
38
- @remarks
39
- The TC39 observable proposal defines a `closed` property, but some implementations (such as xstream) do not as of 10/08/2021.
40
- As well, some guidance on making an `Observable` to not include `closed` property.
41
- @see https://github.com/tc39/proposal-observable/blob/master/src/Observable.js#L129-L130
42
- @see https://github.com/staltz/xstream/blob/6c22580c1d84d69773ee4b0905df44ad464955b3/src/index.ts#L79-L85
43
- @see https://github.com/benlesh/symbol-observable#making-an-object-observable
44
-
45
- @category Observable
90
+ const typedA = get(typedObject, 'a');
91
+ //=> 1
92
+
93
+ const anyA = get(anyObject, 'a');
94
+ //=> any
95
+ ```
96
+
97
+ @category Type Guard
98
+ @category Utilities
46
99
  */
100
+ type IsAny<T> = 0 extends 1 & NoInfer<T> ? true : false;
101
+ //#endregion
102
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/is-optional-key-of.d.ts
103
+ /**
104
+ Returns a boolean for whether the given key is an optional key of type.
105
+
106
+ This is useful when writing utility types or schema validators that need to differentiate `optional` keys.
107
+
108
+ @example
109
+ ```
110
+ import type {IsOptionalKeyOf} from 'type-fest';
111
+
112
+ interface User {
113
+ name: string;
114
+ surname: string;
115
+
116
+ luckyNumber?: number;
117
+ }
47
118
 
119
+ interface Admin {
120
+ name: string;
121
+ surname?: string;
122
+ }
123
+
124
+ type T1 = IsOptionalKeyOf<User, 'luckyNumber'>;
125
+ //=> true
126
+
127
+ type T2 = IsOptionalKeyOf<User, 'name'>;
128
+ //=> false
129
+
130
+ type T3 = IsOptionalKeyOf<User, 'name' | 'luckyNumber'>;
131
+ //=> boolean
132
+
133
+ type T4 = IsOptionalKeyOf<User | Admin, 'name'>;
134
+ //=> false
135
+
136
+ type T5 = IsOptionalKeyOf<User | Admin, 'surname'>;
137
+ //=> boolean
138
+ ```
139
+
140
+ @category Type Guard
141
+ @category Utilities
142
+ */
143
+ type IsOptionalKeyOf<Type extends object, Key extends keyof Type> = IsAny<Type | Key> extends true ? never : Key extends keyof Type ? Type extends Record<Key, Type[Key]> ? false : true : false;
48
144
  //#endregion
49
- //#region ../../node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/optional-keys-of.d.ts
145
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/optional-keys-of.d.ts
50
146
  /**
51
147
  Extract all optional keys from the given type.
52
148
 
@@ -80,11 +176,11 @@ const update2: UpdateOperation<User> = {
80
176
 
81
177
  @category Utilities
82
178
  */
83
- type OptionalKeysOf<BaseType extends object> = BaseType extends unknown // For distributing `BaseType`
84
- ? (keyof { [Key in keyof BaseType as BaseType extends Record<Key, BaseType[Key]> ? never : Key]: never }) & (keyof BaseType) // Intersect with `keyof BaseType` to ensure result of `OptionalKeysOf<BaseType>` is always assignable to `keyof BaseType`
85
- : never; // Should never happen
179
+ type OptionalKeysOf<Type extends object> = Type extends unknown // For distributing `Type`
180
+ ? (keyof { [Key in keyof Type as IsOptionalKeyOf<Type, Key> extends false ? never : Key]: never }) & keyof Type // Intersect with `keyof Type` to ensure result of `OptionalKeysOf<Type>` is always assignable to `keyof Type`
181
+ : never;
86
182
  //#endregion
87
- //#region ../../node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/required-keys-of.d.ts
183
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/required-keys-of.d.ts
88
184
  /**
89
185
  Extract all required keys from the given type.
90
186
 
@@ -109,11 +205,10 @@ const validator2 = createValidation<User>('surname', value => value.length < 25)
109
205
 
110
206
  @category Utilities
111
207
  */
112
- type RequiredKeysOf<BaseType extends object> = BaseType extends unknown // For distributing `BaseType`
113
- ? Exclude<keyof BaseType, OptionalKeysOf<BaseType>> : never; // Should never happen
114
-
208
+ type RequiredKeysOf<Type extends object> = Type extends unknown // For distributing `Type`
209
+ ? Exclude<keyof Type, OptionalKeysOf<Type>> : never;
115
210
  //#endregion
116
- //#region ../../node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/is-never.d.ts
211
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/is-never.d.ts
117
212
  /**
118
213
  Returns a boolean for whether the given type is `never`.
119
214
 
@@ -157,64 +252,67 @@ endIfEqual('abc', '123');
157
252
  */
158
253
  type IsNever<T> = [T] extends [never] ? true : false;
159
254
  //#endregion
160
- //#region ../../node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/if-never.d.ts
255
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/if.d.ts
161
256
  /**
162
- An if-else-like type that resolves depending on whether the given type is `never`.
257
+ An if-else-like type that resolves depending on whether the given `boolean` type is `true` or `false`.
258
+
259
+ Use-cases:
260
+ - You can use this in combination with `Is*` types to create an if-else-like experience. For example, `If<IsAny<any>, 'is any', 'not any'>`.
163
261
 
164
- @see {@link IsNever}
262
+ Note:
263
+ - Returns a union of if branch and else branch if the given type is `boolean` or `any`. For example, `If<boolean, 'Y', 'N'>` will return `'Y' | 'N'`.
264
+ - Returns the else branch if the given type is `never`. For example, `If<never, 'Y', 'N'>` will return `'N'`.
165
265
 
166
266
  @example
167
267
  ```
168
- import type {IfNever} from 'type-fest';
268
+ import {If} from 'type-fest';
169
269
 
170
- type ShouldBeTrue = IfNever<never>;
171
- //=> true
270
+ type A = If<true, 'yes', 'no'>;
271
+ //=> 'yes'
172
272
 
173
- type ShouldBeBar = IfNever<'not never', 'foo', 'bar'>;
174
- //=> 'bar'
175
- ```
273
+ type B = If<false, 'yes', 'no'>;
274
+ //=> 'no'
176
275
 
177
- @category Type Guard
178
- @category Utilities
179
- */
180
- type IfNever<T, TypeIfNever = true, TypeIfNotNever = false> = (IsNever<T> extends true ? TypeIfNever : TypeIfNotNever);
181
- //#endregion
182
- //#region ../../node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/is-any.d.ts
183
- // Can eventually be replaced with the built-in once this library supports
184
- // TS5.4+ only. Tracked in https://github.com/sindresorhus/type-fest/issues/848
185
- type NoInfer<T> = T extends infer U ? U : never;
276
+ type C = If<boolean, 'yes', 'no'>;
277
+ //=> 'yes' | 'no'
186
278
 
187
- /**
188
- Returns a boolean for whether the given type is `any`.
279
+ type D = If<any, 'yes', 'no'>;
280
+ //=> 'yes' | 'no'
189
281
 
190
- @link https://stackoverflow.com/a/49928360/1490091
191
-
192
- Useful in type utilities, such as disallowing `any`s to be passed to a function.
282
+ type E = If<never, 'yes', 'no'>;
283
+ //=> 'no'
284
+ ```
193
285
 
194
286
  @example
195
287
  ```
196
- import type {IsAny} from 'type-fest';
288
+ import {If, IsAny, IsNever} from 'type-fest';
197
289
 
198
- const typedObject = {a: 1, b: 2} as const;
199
- const anyObject: any = {a: 1, b: 2};
290
+ type A = If<IsAny<unknown>, 'is any', 'not any'>;
291
+ //=> 'not any'
200
292
 
201
- function get<O extends (IsAny<O> extends true ? {} : Record<string, number>), K extends keyof O = keyof O>(obj: O, key: K) {
202
- return obj[key];
203
- }
293
+ type B = If<IsNever<never>, 'is never', 'not never'>;
294
+ //=> 'is never'
295
+ ```
204
296
 
205
- const typedA = get(typedObject, 'a');
206
- //=> 1
297
+ @example
298
+ ```
299
+ import {If, IsEqual} from 'type-fest';
207
300
 
208
- const anyA = get(anyObject, 'a');
209
- //=> any
301
+ type IfEqual<T, U, IfBranch, ElseBranch> = If<IsEqual<T, U>, IfBranch, ElseBranch>;
302
+
303
+ type A = IfEqual<string, string, 'equal', 'not equal'>;
304
+ //=> 'equal'
305
+
306
+ type B = IfEqual<string, number, 'equal', 'not equal'>;
307
+ //=> 'not equal'
210
308
  ```
211
309
 
212
310
  @category Type Guard
213
311
  @category Utilities
214
312
  */
215
- type IsAny<T> = 0 extends 1 & NoInfer<T> ? true : false;
313
+ type If<Type extends boolean, IfBranch, ElseBranch> = IsNever<Type> extends true ? ElseBranch : Type extends true ? IfBranch : ElseBranch;
216
314
  //#endregion
217
- //#region ../../node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/is-equal.d.ts
315
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/is-equal.d.ts
218
316
  /**
219
317
  Returns a boolean for whether the two given types are equal.
220
318
 
@@ -243,7 +341,7 @@ type Includes<Value extends readonly any[], Item> =
243
341
  */
244
342
  type IsEqual<A, B> = (<G>() => G extends A & G | G ? 1 : 2) extends (<G>() => G extends B & G | G ? 1 : 2) ? true : false;
245
343
  //#endregion
246
- //#region ../../node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/simplify.d.ts
344
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/simplify.d.ts
247
345
  /**
248
346
  Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability.
249
347
 
@@ -303,7 +401,7 @@ fn(someInterface as Simplify<SomeInterface>); // Good: transform an `interface`
303
401
  */
304
402
  type Simplify<T> = { [KeyType in keyof T]: T[KeyType] } & {};
305
403
  //#endregion
306
- //#region ../../node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/omit-index-signature.d.ts
404
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/omit-index-signature.d.ts
307
405
  /**
308
406
  Omit any index signatures from the given object type, leaving only explicitly defined properties.
309
407
 
@@ -396,7 +494,7 @@ type ExampleWithoutIndexSignatures = OmitIndexSignature<Example>;
396
494
  */
397
495
  type OmitIndexSignature<ObjectType> = { [KeyType in keyof ObjectType as {} extends Record<KeyType, unknown> ? never : KeyType]: ObjectType[KeyType] };
398
496
  //#endregion
399
- //#region ../../node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/pick-index-signature.d.ts
497
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/pick-index-signature.d.ts
400
498
  /**
401
499
  Pick only index signatures from the given object type, leaving out all explicitly defined properties.
402
500
 
@@ -444,7 +542,7 @@ type ExampleIndexSignature = PickIndexSignature<Example>;
444
542
  */
445
543
  type PickIndexSignature<ObjectType> = { [KeyType in keyof ObjectType as {} extends Record<KeyType, unknown> ? KeyType : never]: ObjectType[KeyType] };
446
544
  //#endregion
447
- //#region ../../node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/merge.d.ts
545
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/merge.d.ts
448
546
  // Merges two objects without worrying about index signatures.
449
547
  type SimpleMerge<Destination, Source> = { [Key in keyof Destination as Key extends keyof Source ? never : Key]: Destination[Key] } & Source;
450
548
 
@@ -484,29 +582,7 @@ export type FooBar = Merge<Foo, Bar>;
484
582
  */
485
583
  type Merge<Destination, Source> = Simplify<SimpleMerge<PickIndexSignature<Destination>, PickIndexSignature<Source>> & SimpleMerge<OmitIndexSignature<Destination>, OmitIndexSignature<Source>>>;
486
584
  //#endregion
487
- //#region ../../node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/if-any.d.ts
488
- /**
489
- An if-else-like type that resolves depending on whether the given type is `any`.
490
-
491
- @see {@link IsAny}
492
-
493
- @example
494
- ```
495
- import type {IfAny} from 'type-fest';
496
-
497
- type ShouldBeTrue = IfAny<any>;
498
- //=> true
499
-
500
- type ShouldBeBar = IfAny<'not any', 'foo', 'bar'>;
501
- //=> 'bar'
502
- ```
503
-
504
- @category Type Guard
505
- @category Utilities
506
- */
507
- type IfAny<T, TypeIfAny = true, TypeIfNotAny = false> = (IsAny<T> extends true ? TypeIfAny : TypeIfNotAny);
508
- //#endregion
509
- //#region ../../node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/internal/object.d.ts
585
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/internal/object.d.ts
510
586
  /**
511
587
  Merges user specified options with default options.
512
588
 
@@ -559,10 +635,9 @@ type Result = ApplyDefaultOptions<PathsOptions, DefaultPathsOptions, SpecifiedOp
559
635
  // Types of property 'leavesOnly' are incompatible. Type 'string' is not assignable to type 'boolean'.
560
636
  ```
561
637
  */
562
- type ApplyDefaultOptions<Options extends object, Defaults extends Simplify<Omit<Required<Options>, RequiredKeysOf<Options>> & Partial<Record<RequiredKeysOf<Options>, never>>>, SpecifiedOptions extends Options> = IfAny<SpecifiedOptions, Defaults, IfNever<SpecifiedOptions, Defaults, Simplify<Merge<Defaults, { [Key in keyof SpecifiedOptions as Key extends OptionalKeysOf<Options> ? Extract<SpecifiedOptions[Key], undefined> extends never ? Key : never : Key]: SpecifiedOptions[Key] }> & Required<Options>> // `& Required<Options>` ensures that `ApplyDefaultOptions<SomeOption, ...>` is always assignable to `Required<SomeOption>`
563
- >>;
638
+ type ApplyDefaultOptions<Options extends object, Defaults extends Simplify<Omit<Required<Options>, RequiredKeysOf<Options>> & Partial<Record<RequiredKeysOf<Options>, never>>>, SpecifiedOptions extends Options> = If<IsAny<SpecifiedOptions>, Defaults, If<IsNever<SpecifiedOptions>, Defaults, Simplify<Merge<Defaults, { [Key in keyof SpecifiedOptions as Key extends OptionalKeysOf<Options> ? undefined extends SpecifiedOptions[Key] ? never : Key : Key]: SpecifiedOptions[Key] }> & Required<Options>>>>;
564
639
  //#endregion
565
- //#region ../../node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/except.d.ts
640
+ //#region ../../node_modules/.pnpm/type-fest@5.0.1/node_modules/type-fest/source/except.d.ts
566
641
  /**
567
642
  Filter out keys from an object.
568
643
 
@@ -841,10 +916,10 @@ declare class MockTableClient implements Except<TableClient, "pipeline"> {
841
916
  private withMetadata;
842
917
  }
843
918
  //#endregion
844
- //#region src/util/bodyToBuffer.d.ts
919
+ //#region src/services/blob/bodyToBuffer.d.ts
845
920
  declare const bodyToBuffer: (body: HttpRequestBody) => Promise<Buffer>;
846
921
  //#endregion
847
- //#region src/util/getAzureErrorXml.d.ts
922
+ //#region src/services/blob/getAzureErrorXml.d.ts
848
923
  /**
849
924
  * Generates a standard Azure Storage error XML response body.
850
925
  * @param errorCode The official Azure error code (e.g., "BlobNotFound").
@@ -853,16 +928,16 @@ declare const bodyToBuffer: (body: HttpRequestBody) => Promise<Buffer>;
853
928
  */
854
929
  declare const getAzureErrorXml: (errorCode: string, errorMessage: string) => string;
855
930
  //#endregion
856
- //#region src/util/getBlobItemXml.d.ts
931
+ //#region src/services/blob/getBlobItemXml.d.ts
857
932
  declare const getBlobItemXml: ({
858
933
  name,
859
934
  properties
860
935
  }: BlobItem) => string;
861
936
  //#endregion
862
- //#region src/util/getBlobPrefixXml.d.ts
937
+ //#region src/services/blob/getBlobPrefixXml.d.ts
863
938
  declare const getBlobPrefixXml: (name: string) => string;
864
939
  //#endregion
865
- //#region src/util/getListBlobsXml.d.ts
940
+ //#region src/services/blob/getListBlobsXml.d.ts
866
941
  /**
867
942
  * Generates a standard Azure Storage list blobs XML response body.
868
943
  * @param containerName The container name.
@@ -871,7 +946,7 @@ declare const getBlobPrefixXml: (name: string) => string;
871
946
  */
872
947
  declare const getListBlobsXml: (containerName: string, blobsXml: string) => string;
873
948
  //#endregion
874
- //#region src/util/isReadableStream.d.ts
949
+ //#region src/services/blob/isReadableStream.d.ts
875
950
  declare const isReadableStream: (value: unknown) => value is NodeJS.ReadableStream;
876
951
  //#endregion
877
952
  //#region ../../node_modules/.pnpm/@azure+abort-controller@2.1.2/node_modules/@azure/abort-controller/dist/esm/AbortSignalLike.d.ts
@@ -899,19 +974,15 @@ declare global {
899
974
  interface Event {}
900
975
  }
901
976
  //#endregion
902
- //#region ../../node_modules/.pnpm/@azure+core-util@1.13.0/node_modules/@azure/core-util/dist/esm/index.d.ts
977
+ //#region ../../node_modules/.pnpm/@azure+core-util@1.13.1/node_modules/@azure/core-util/dist/esm/index.d.ts
903
978
  /**
904
979
  * Supported HTTP methods to use when making requests.
905
980
  *
906
981
  * @public
907
982
  */
908
983
  type HttpMethods = "GET" | "PUT" | "POST" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS" | "TRACE";
909
- /**
910
- * A generic shape for a plain JS object.
911
- */
912
-
913
984
  //#endregion
914
- //#region ../../node_modules/.pnpm/@azure+core-tracing@1.3.0/node_modules/@azure/core-tracing/dist/esm/interfaces.d.ts
985
+ //#region ../../node_modules/.pnpm/@azure+core-tracing@1.3.1/node_modules/@azure/core-tracing/dist/esm/interfaces.d.ts
915
986
  /** An immutable context bag of tracing values for the current operation. */
916
987
  interface TracingContext {
917
988
  /**
@@ -942,22 +1013,14 @@ interface OperationTracingOptions {
942
1013
  /** The context to use for created Tracing Spans. */
943
1014
  tracingContext?: TracingContext;
944
1015
  }
945
- /**
946
- * A utility type for when we know a TracingContext has been set
947
- * as part of an operation's options.
948
- */
949
1016
  //#endregion
950
- //#region ../../node_modules/.pnpm/@azure+core-rest-pipeline@1.22.0/node_modules/@azure/core-rest-pipeline/dist/esm/interfaces.d.ts
1017
+ //#region ../../node_modules/.pnpm/@azure+core-rest-pipeline@1.22.1/node_modules/@azure/core-rest-pipeline/dist/esm/interfaces.d.ts
951
1018
  /**
952
1019
  * A HttpHeaders collection represented as a simple JSON object.
953
1020
  */
954
1021
  type RawHttpHeaders$1 = {
955
1022
  [headerName: string]: string;
956
1023
  };
957
- /**
958
- * A HttpHeaders collection for input, represented as a simple JSON object.
959
- */
960
-
961
1024
  /**
962
1025
  * Represents a set of HTTP headers on a request/response.
963
1026
  * Header names are treated as case insensitive.
@@ -1156,10 +1219,6 @@ interface PipelineRequest {
1156
1219
  */
1157
1220
  requestOverrides?: Record<string, unknown>;
1158
1221
  }
1159
- /**
1160
- * Metadata about a response received by the pipeline.
1161
- */
1162
-
1163
1222
  /**
1164
1223
  * Fired in response to upload or download progress.
1165
1224
  */
@@ -1202,10 +1261,6 @@ type FormDataValue = string | Blob | File;
1202
1261
  type FormDataMap = {
1203
1262
  [key: string]: FormDataValue | FormDataValue[];
1204
1263
  };
1205
- /**
1206
- * Options that control how to retry failed requests.
1207
- */
1208
-
1209
1264
  /**
1210
1265
  * Represents a certificate for TLS authentication.
1211
1266
  */
@@ -1284,7 +1339,7 @@ interface PxfObject {
1284
1339
  passphrase?: string | undefined;
1285
1340
  }
1286
1341
  //#endregion
1287
- //#region ../../node_modules/.pnpm/@azure+core-rest-pipeline@1.22.0/node_modules/@azure/core-rest-pipeline/dist/esm/index.d.ts
1342
+ //#region ../../node_modules/.pnpm/@azure+core-rest-pipeline@1.22.1/node_modules/@azure/core-rest-pipeline/dist/esm/index.d.ts
1288
1343
  declare global {
1289
1344
  interface FormData {}
1290
1345
  interface Blob {}
@@ -1293,7 +1348,7 @@ declare global {
1293
1348
  interface TransformStream<I = any, O = any> {}
1294
1349
  }
1295
1350
  //#endregion
1296
- //#region ../../node_modules/.pnpm/@azure+core-http-compat@2.3.0/node_modules/@azure/core-http-compat/dist/esm/util.d.ts
1351
+ //#region ../../node_modules/.pnpm/@azure+core-http-compat@2.3.1/node_modules/@azure/core-http-compat/dist/esm/util.d.ts
1297
1352
  /**
1298
1353
  * An individual header within a HttpHeaders collection.
1299
1354
  */
@@ -1368,10 +1423,6 @@ interface HttpHeadersLike {
1368
1423
  preserveCase?: boolean;
1369
1424
  }): RawHttpHeaders;
1370
1425
  }
1371
- /**
1372
- * A collection of HTTP header key/value pairs.
1373
- */
1374
-
1375
1426
  /**
1376
1427
  * An interface compatible with NodeJS's `http.Agent`.
1377
1428
  * We want to avoid publicly re-exporting the actual interface,
@@ -1519,106 +1570,19 @@ type TransferProgressEvent = {
1519
1570
  loadedBytes: number;
1520
1571
  };
1521
1572
  //#endregion
1522
- //#region src/util/toWebResourceLike.d.ts
1573
+ //#region src/services/blob/toWebResourceLike.d.ts
1523
1574
  declare const toWebResourceLike: (request: PipelineRequest) => WebResourceLike;
1524
1575
  //#endregion
1525
- //#region ../shared/dist/index.d.ts
1526
- //#region src/models/azure/BinaryOperator.d.ts
1527
- declare enum BinaryOperator {
1528
- eq = "eq",
1529
- ge = "ge",
1530
- gt = "gt",
1531
- le = "le",
1532
- lt = "lt",
1533
- ne = "ne",
1534
- }
1535
- //#endregion
1536
- //#region src/models/azure/Literal.d.ts
1537
-
1538
- //#endregion
1539
- //#region ../../node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/observable-like.d.ts
1540
- declare global {
1541
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1542
- interface SymbolConstructor {
1543
- readonly observable: symbol;
1544
- }
1545
- }
1546
-
1547
- /**
1548
- @remarks
1549
- The TC39 observable proposal defines a `closed` property, but some implementations (such as xstream) do not as of 10/08/2021.
1550
- As well, some guidance on making an `Observable` to not include `closed` property.
1551
- @see https://github.com/tc39/proposal-observable/blob/master/src/Observable.js#L129-L130
1552
- @see https://github.com/staltz/xstream/blob/6c22580c1d84d69773ee4b0905df44ad464955b3/src/index.ts#L79-L85
1553
- @see https://github.com/benlesh/symbol-observable#making-an-object-observable
1554
-
1555
- @category Observable
1556
- */
1557
-
1558
- //#endregion
1559
- //#region ../../node_modules/.pnpm/type-fest@4.41.0/node_modules/type-fest/source/optional-keys-of.d.ts
1560
- /**
1561
- Extract all optional keys from the given type.
1562
-
1563
- This is useful when you want to create a new type that contains different type values for the optional keys only.
1564
-
1565
- @example
1566
- ```
1567
- import type {OptionalKeysOf, Except} from 'type-fest';
1568
-
1569
- interface User {
1570
- name: string;
1571
- surname: string;
1572
-
1573
- luckyNumber?: number;
1574
- }
1575
-
1576
- const REMOVE_FIELD = Symbol('remove field symbol');
1577
- type UpdateOperation<Entity extends object> = Except<Partial<Entity>, OptionalKeysOf<Entity>> & {
1578
- [Key in OptionalKeysOf<Entity>]?: Entity[Key] | typeof REMOVE_FIELD;
1579
- };
1580
-
1581
- const update1: UpdateOperation<User> = {
1582
- name: 'Alice'
1583
- };
1584
-
1585
- const update2: UpdateOperation<User> = {
1586
- name: 'Bob',
1587
- luckyNumber: REMOVE_FIELD
1588
- };
1589
- ```
1590
-
1591
- @category Utilities
1592
- */
1593
- //#endregion
1594
- //#region src/models/tableFilter/Clause.d.ts
1595
- interface Clause {
1596
- key: string;
1597
- not?: boolean;
1598
- operator: BinaryOperator;
1599
- value: string;
1600
- }
1601
- //#endregion
1602
- //#region src/util/tableFilter/applyTableFilter.d.ts
1603
- declare const applyTableFilter: <T extends object>(entities: TableEntity<T>[], filter: string) => TableEntity<T>[];
1604
- //#endregion
1605
- //#region src/util/tableFilter/compare.d.ts
1606
- declare const compare: (operator: BinaryOperator, leftHandSide: string, rightHandSide: string) => boolean;
1607
- //#endregion
1608
- //#region src/util/tableFilter/constants.d.ts
1609
- declare const CLAUSE_REGEX: RegExp;
1576
+ //#region src/services/table/applyTableFilter.d.ts
1577
+ declare const applyTableFilter: <T extends Record<string, unknown>>(entities: TableEntity<T>[], clauses: Clause[]) => TableEntity<T>[];
1610
1578
  //#endregion
1611
- //#region src/util/tableFilter/createTableFilterPredicate.d.ts
1612
- declare const createTableFilterPredicate: <T extends object>(filter: string) => ((entity: TableEntity<T>) => boolean);
1579
+ //#region src/services/table/compare.d.ts
1580
+ declare const compare: <T>(operator: BinaryOperator, leftHandSide: T, rightHandSide: null | T) => boolean;
1613
1581
  //#endregion
1614
- //#region src/util/tableFilter/isNullClause.d.ts
1615
- declare const isNullClause: ({
1616
- not,
1617
- operator,
1618
- value
1619
- }: Clause) => boolean;
1582
+ //#region src/services/table/createTableFilterPredicate.d.ts
1583
+ declare const createTableFilterPredicate: <T extends Record<string, unknown>>(filter: string) => ((entity: TableEntity<T>) => boolean);
1620
1584
  //#endregion
1621
- //#region src/util/tableFilter/parseClause.d.ts
1622
- declare const parseClause: (rawClause: string) => Clause;
1585
+ //#region src/services/table/isTableNullClause.d.ts
1586
+ declare const isTableNullClause: (clause: Clause) => boolean;
1623
1587
  //#endregion
1624
- export { BlobHierarchyItem, CLAUSE_REGEX, Clause, MockBlobBatchClient, MockBlobClient, MockBlockBlobClient, MockContainerClient, MockContainerDatabase, MockRestError, MockTableClient, MockTableDatabase, PageSettings, PagedAsyncIterableIterator, applyTableFilter, bodyToBuffer, compare, createTableFilterPredicate, getAzureErrorXml, getBlobItemXml, getBlobPrefixXml, getListBlobsXml, isNullClause, isReadableStream, parseClause, toWebResourceLike };
1588
+ export { BlobHierarchyItem, MockBlobBatchClient, MockBlobClient, MockBlockBlobClient, MockContainerClient, MockContainerDatabase, MockRestError, MockTableClient, MockTableDatabase, PageSettings, PagedAsyncIterableIterator, applyTableFilter, bodyToBuffer, compare, createTableFilterPredicate, getAzureErrorXml, getBlobItemXml, getBlobPrefixXml, getListBlobsXml, isReadableStream, isTableNullClause, toWebResourceLike };