@fluidframework/map 2.0.0-internal.7.0.1 → 2.0.0-internal.7.1.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.
- package/CHANGELOG.md +4 -0
- package/api-extractor.json +13 -1
- package/api-report/map.api.md +299 -0
- package/dist/map-alpha.d.ts +897 -0
- package/dist/map-beta.d.ts +897 -0
- package/dist/map-public.d.ts +897 -0
- package/dist/map.d.ts +982 -169
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/package.json +23 -23
- package/src/packageVersion.ts +1 -1
package/CHANGELOG.md
CHANGED
package/api-extractor.json
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
3
|
-
"extends": "@fluidframework/build-common/api-extractor-
|
|
3
|
+
"extends": "@fluidframework/build-common/api-extractor-base.json",
|
|
4
|
+
|
|
5
|
+
// TODO: Fix violations and remove these rule overrides
|
|
6
|
+
"messages": {
|
|
7
|
+
"extractorMessageReporting": {
|
|
8
|
+
"ae-missing-release-tag": {
|
|
9
|
+
"logLevel": "none"
|
|
10
|
+
},
|
|
11
|
+
"ae-forgotten-export": {
|
|
12
|
+
"logLevel": "none"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
4
16
|
}
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
## API Report File for "@fluidframework/map"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { IChannelAttributes } from '@fluidframework/datastore-definitions';
|
|
8
|
+
import { IChannelFactory } from '@fluidframework/datastore-definitions';
|
|
9
|
+
import { IChannelServices } from '@fluidframework/datastore-definitions';
|
|
10
|
+
import { IChannelStorageService } from '@fluidframework/datastore-definitions';
|
|
11
|
+
import { IDisposable } from '@fluidframework/core-interfaces';
|
|
12
|
+
import { IEvent } from '@fluidframework/core-interfaces';
|
|
13
|
+
import { IEventProvider } from '@fluidframework/core-interfaces';
|
|
14
|
+
import { IEventThisPlaceHolder } from '@fluidframework/core-interfaces';
|
|
15
|
+
import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
|
|
16
|
+
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
17
|
+
import { IFluidSerializer } from '@fluidframework/shared-object-base';
|
|
18
|
+
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
19
|
+
import { ISharedObject } from '@fluidframework/shared-object-base';
|
|
20
|
+
import { ISharedObjectEvents } from '@fluidframework/shared-object-base';
|
|
21
|
+
import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
|
|
22
|
+
import { ITelemetryContext } from '@fluidframework/runtime-definitions';
|
|
23
|
+
import { SharedObject } from '@fluidframework/shared-object-base';
|
|
24
|
+
|
|
25
|
+
// @public @sealed
|
|
26
|
+
export class DirectoryFactory implements IChannelFactory {
|
|
27
|
+
// (undocumented)
|
|
28
|
+
static readonly Attributes: IChannelAttributes;
|
|
29
|
+
// (undocumented)
|
|
30
|
+
get attributes(): IChannelAttributes;
|
|
31
|
+
// (undocumented)
|
|
32
|
+
create(runtime: IFluidDataStoreRuntime, id: string): ISharedDirectory;
|
|
33
|
+
// (undocumented)
|
|
34
|
+
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedDirectory>;
|
|
35
|
+
// (undocumented)
|
|
36
|
+
static readonly Type = "https://graph.microsoft.com/types/directory";
|
|
37
|
+
// (undocumented)
|
|
38
|
+
get type(): string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// @public
|
|
42
|
+
export interface ICreateInfo {
|
|
43
|
+
ccIds: string[];
|
|
44
|
+
csn: number;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// @public
|
|
48
|
+
export interface IDirectory extends Map<string, any>, IEventProvider<IDirectoryEvents>, Partial<IDisposable> {
|
|
49
|
+
readonly absolutePath: string;
|
|
50
|
+
countSubDirectory?(): number;
|
|
51
|
+
createSubDirectory(subdirName: string): IDirectory;
|
|
52
|
+
deleteSubDirectory(subdirName: string): boolean;
|
|
53
|
+
get<T = any>(key: string): T | undefined;
|
|
54
|
+
getSubDirectory(subdirName: string): IDirectory | undefined;
|
|
55
|
+
getWorkingDirectory(relativePath: string): IDirectory | undefined;
|
|
56
|
+
hasSubDirectory(subdirName: string): boolean;
|
|
57
|
+
set<T = unknown>(key: string, value: T): this;
|
|
58
|
+
subdirectories(): IterableIterator<[string, IDirectory]>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// @public
|
|
62
|
+
export interface IDirectoryClearOperation {
|
|
63
|
+
path: string;
|
|
64
|
+
type: "clear";
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// @public
|
|
68
|
+
export interface IDirectoryCreateSubDirectoryOperation {
|
|
69
|
+
path: string;
|
|
70
|
+
subdirName: string;
|
|
71
|
+
type: "createSubDirectory";
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// @public
|
|
75
|
+
export interface IDirectoryDataObject {
|
|
76
|
+
ci?: ICreateInfo;
|
|
77
|
+
storage?: {
|
|
78
|
+
[key: string]: ISerializableValue;
|
|
79
|
+
};
|
|
80
|
+
subdirectories?: {
|
|
81
|
+
[subdirName: string]: IDirectoryDataObject;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// @public
|
|
86
|
+
export interface IDirectoryDeleteOperation {
|
|
87
|
+
key: string;
|
|
88
|
+
path: string;
|
|
89
|
+
type: "delete";
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// @public
|
|
93
|
+
export interface IDirectoryDeleteSubDirectoryOperation {
|
|
94
|
+
path: string;
|
|
95
|
+
subdirName: string;
|
|
96
|
+
type: "deleteSubDirectory";
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// @public
|
|
100
|
+
export interface IDirectoryEvents extends IEvent {
|
|
101
|
+
(event: "containedValueChanged", listener: (changed: IValueChanged, local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
102
|
+
(event: "subDirectoryCreated", listener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
103
|
+
(event: "subDirectoryDeleted", listener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
104
|
+
(event: "disposed", listener: (target: IEventThisPlaceHolder) => void): any;
|
|
105
|
+
(event: "undisposed", listener: (target: IEventThisPlaceHolder) => void): any;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// @public
|
|
109
|
+
export type IDirectoryKeyOperation = IDirectorySetOperation | IDirectoryDeleteOperation;
|
|
110
|
+
|
|
111
|
+
// @internal
|
|
112
|
+
export interface IDirectoryNewStorageFormat {
|
|
113
|
+
blobs: string[];
|
|
114
|
+
content: IDirectoryDataObject;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// @public
|
|
118
|
+
export type IDirectoryOperation = IDirectoryStorageOperation | IDirectorySubDirectoryOperation;
|
|
119
|
+
|
|
120
|
+
// @public
|
|
121
|
+
export interface IDirectorySetOperation {
|
|
122
|
+
key: string;
|
|
123
|
+
path: string;
|
|
124
|
+
type: "set";
|
|
125
|
+
value: ISerializableValue;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// @public
|
|
129
|
+
export type IDirectoryStorageOperation = IDirectoryKeyOperation | IDirectoryClearOperation;
|
|
130
|
+
|
|
131
|
+
// @public
|
|
132
|
+
export type IDirectorySubDirectoryOperation = IDirectoryCreateSubDirectoryOperation | IDirectoryDeleteSubDirectoryOperation;
|
|
133
|
+
|
|
134
|
+
// @public
|
|
135
|
+
export interface IDirectoryValueChanged extends IValueChanged {
|
|
136
|
+
path: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// @public
|
|
140
|
+
export interface ILocalValue {
|
|
141
|
+
makeSerialized(serializer: IFluidSerializer, bind: IFluidHandle): ISerializedValue;
|
|
142
|
+
readonly type: string;
|
|
143
|
+
readonly value: any;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// @public @deprecated
|
|
147
|
+
export interface ISerializableValue {
|
|
148
|
+
type: string;
|
|
149
|
+
value: any;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// @public
|
|
153
|
+
export interface ISerializedValue {
|
|
154
|
+
type: string;
|
|
155
|
+
value: string | undefined;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// @public
|
|
159
|
+
export interface ISharedDirectory extends ISharedObject<ISharedDirectoryEvents & IDirectoryEvents>, Omit<IDirectory, "on" | "once" | "off"> {
|
|
160
|
+
// (undocumented)
|
|
161
|
+
[Symbol.iterator](): IterableIterator<[string, any]>;
|
|
162
|
+
// (undocumented)
|
|
163
|
+
readonly [Symbol.toStringTag]: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// @public
|
|
167
|
+
export interface ISharedDirectoryEvents extends ISharedObjectEvents {
|
|
168
|
+
(event: "valueChanged", listener: (changed: IDirectoryValueChanged, local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
169
|
+
(event: "clear", listener: (local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
170
|
+
(event: "subDirectoryCreated", listener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
171
|
+
(event: "subDirectoryDeleted", listener: (path: string, local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// @public
|
|
175
|
+
export interface ISharedMap extends ISharedObject<ISharedMapEvents>, Map<string, any> {
|
|
176
|
+
get<T = any>(key: string): T | undefined;
|
|
177
|
+
set<T = unknown>(key: string, value: T): this;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// @public
|
|
181
|
+
export interface ISharedMapEvents extends ISharedObjectEvents {
|
|
182
|
+
(event: "valueChanged", listener: (changed: IValueChanged, local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
183
|
+
(event: "clear", listener: (local: boolean, target: IEventThisPlaceHolder) => void): any;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// @public
|
|
187
|
+
export interface IValueChanged {
|
|
188
|
+
key: string;
|
|
189
|
+
previousValue: any;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// @public
|
|
193
|
+
export class LocalValueMaker {
|
|
194
|
+
constructor(serializer: IFluidSerializer);
|
|
195
|
+
fromInMemory(value: unknown): ILocalValue;
|
|
196
|
+
fromSerializable(serializable: ISerializableValue): ILocalValue;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// @public @sealed
|
|
200
|
+
export class MapFactory implements IChannelFactory {
|
|
201
|
+
// (undocumented)
|
|
202
|
+
static readonly Attributes: IChannelAttributes;
|
|
203
|
+
// (undocumented)
|
|
204
|
+
get attributes(): IChannelAttributes;
|
|
205
|
+
// (undocumented)
|
|
206
|
+
create(runtime: IFluidDataStoreRuntime, id: string): ISharedMap;
|
|
207
|
+
// (undocumented)
|
|
208
|
+
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedMap>;
|
|
209
|
+
// (undocumented)
|
|
210
|
+
static readonly Type = "https://graph.microsoft.com/types/map";
|
|
211
|
+
// (undocumented)
|
|
212
|
+
get type(): string;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// @public @sealed
|
|
216
|
+
export class SharedDirectory extends SharedObject<ISharedDirectoryEvents> implements ISharedDirectory {
|
|
217
|
+
[Symbol.iterator](): IterableIterator<[string, any]>;
|
|
218
|
+
[Symbol.toStringTag]: string;
|
|
219
|
+
constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
|
|
220
|
+
get absolutePath(): string;
|
|
221
|
+
// @internal (undocumented)
|
|
222
|
+
protected applyStashedOp(op: unknown): unknown;
|
|
223
|
+
clear(): void;
|
|
224
|
+
countSubDirectory(): number;
|
|
225
|
+
static create(runtime: IFluidDataStoreRuntime, id?: string): SharedDirectory;
|
|
226
|
+
createSubDirectory(subdirName: string): IDirectory;
|
|
227
|
+
delete(key: string): boolean;
|
|
228
|
+
deleteSubDirectory(subdirName: string): boolean;
|
|
229
|
+
// (undocumented)
|
|
230
|
+
dispose(error?: Error): void;
|
|
231
|
+
// (undocumented)
|
|
232
|
+
get disposed(): boolean;
|
|
233
|
+
entries(): IterableIterator<[string, any]>;
|
|
234
|
+
forEach(callback: (value: any, key: string, map: Map<string, any>) => void): void;
|
|
235
|
+
get<T = any>(key: string): T | undefined;
|
|
236
|
+
static getFactory(): IChannelFactory;
|
|
237
|
+
getSubDirectory(subdirName: string): IDirectory | undefined;
|
|
238
|
+
getWorkingDirectory(relativePath: string): IDirectory | undefined;
|
|
239
|
+
has(key: string): boolean;
|
|
240
|
+
hasSubDirectory(subdirName: string): boolean;
|
|
241
|
+
keys(): IterableIterator<string>;
|
|
242
|
+
// @internal (undocumented)
|
|
243
|
+
protected loadCore(storage: IChannelStorageService): Promise<void>;
|
|
244
|
+
// @internal (undocumented)
|
|
245
|
+
readonly localValueMaker: LocalValueMaker;
|
|
246
|
+
// @internal (undocumented)
|
|
247
|
+
protected onDisconnect(): void;
|
|
248
|
+
// @internal
|
|
249
|
+
protected populate(data: IDirectoryDataObject): void;
|
|
250
|
+
// @internal (undocumented)
|
|
251
|
+
protected processCore(message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown): void;
|
|
252
|
+
// @internal (undocumented)
|
|
253
|
+
protected reSubmitCore(content: unknown, localOpMetadata: unknown): void;
|
|
254
|
+
// @internal (undocumented)
|
|
255
|
+
protected rollback(content: unknown, localOpMetadata: unknown): void;
|
|
256
|
+
set<T = unknown>(key: string, value: T): this;
|
|
257
|
+
get size(): number;
|
|
258
|
+
subdirectories(): IterableIterator<[string, IDirectory]>;
|
|
259
|
+
// @internal
|
|
260
|
+
submitDirectoryMessage(op: IDirectoryOperation, localOpMetadata: unknown): void;
|
|
261
|
+
// @internal (undocumented)
|
|
262
|
+
protected summarizeCore(serializer: IFluidSerializer, telemetryContext?: ITelemetryContext): ISummaryTreeWithStats;
|
|
263
|
+
values(): IterableIterator<any>;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// @public
|
|
267
|
+
export class SharedMap extends SharedObject<ISharedMapEvents> implements ISharedMap {
|
|
268
|
+
[Symbol.iterator](): IterableIterator<[string, any]>;
|
|
269
|
+
readonly [Symbol.toStringTag]: string;
|
|
270
|
+
constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
|
|
271
|
+
// @internal (undocumented)
|
|
272
|
+
protected applyStashedOp(content: unknown): unknown;
|
|
273
|
+
clear(): void;
|
|
274
|
+
static create(runtime: IFluidDataStoreRuntime, id?: string): SharedMap;
|
|
275
|
+
delete(key: string): boolean;
|
|
276
|
+
entries(): IterableIterator<[string, any]>;
|
|
277
|
+
forEach(callbackFn: (value: any, key: string, map: Map<string, any>) => void): void;
|
|
278
|
+
get<T = any>(key: string): T | undefined;
|
|
279
|
+
static getFactory(): IChannelFactory;
|
|
280
|
+
has(key: string): boolean;
|
|
281
|
+
keys(): IterableIterator<string>;
|
|
282
|
+
// @internal (undocumented)
|
|
283
|
+
protected loadCore(storage: IChannelStorageService): Promise<void>;
|
|
284
|
+
// @internal (undocumented)
|
|
285
|
+
protected onDisconnect(): void;
|
|
286
|
+
// @internal (undocumented)
|
|
287
|
+
protected processCore(message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown): void;
|
|
288
|
+
// @internal (undocumented)
|
|
289
|
+
protected reSubmitCore(content: unknown, localOpMetadata: unknown): void;
|
|
290
|
+
// @internal (undocumented)
|
|
291
|
+
protected rollback(content: unknown, localOpMetadata: unknown): void;
|
|
292
|
+
set(key: string, value: unknown): this;
|
|
293
|
+
get size(): number;
|
|
294
|
+
// @internal (undocumented)
|
|
295
|
+
protected summarizeCore(serializer: IFluidSerializer, telemetryContext?: ITelemetryContext): ISummaryTreeWithStats;
|
|
296
|
+
values(): IterableIterator<any>;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
```
|