@fluidframework/map 0.48.3 → 0.49.0-39015
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/dist/directory.d.ts +130 -0
- package/dist/directory.d.ts.map +1 -1
- package/dist/directory.js +9 -0
- package/dist/directory.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/interfaces.d.ts +102 -0
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/interfaces.js.map +1 -1
- package/dist/map.d.ts +9 -1
- package/dist/map.d.ts.map +1 -1
- package/dist/map.js +9 -1
- package/dist/map.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/lib/directory.d.ts +130 -0
- package/lib/directory.d.ts.map +1 -1
- package/lib/directory.js +9 -0
- package/lib/directory.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/interfaces.d.ts +102 -0
- package/lib/interfaces.d.ts.map +1 -1
- package/lib/interfaces.js.map +1 -1
- package/lib/map.d.ts +9 -1
- package/lib/map.d.ts.map +1 -1
- package/lib/map.js +9 -1
- package/lib/map.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.d.ts.map +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/package.json +8 -8
- package/src/directory.ts +10 -1
- package/src/index.ts +1 -0
- package/src/interfaces.ts +102 -0
- package/src/map.ts +9 -1
- package/src/packageVersion.ts +1 -1
- package/tsconfig.json +0 -1
package/dist/directory.d.ts
CHANGED
|
@@ -7,6 +7,108 @@ import { ISequencedDocumentMessage, ITree } from "@fluidframework/protocol-defin
|
|
|
7
7
|
import { IChannelAttributes, IFluidDataStoreRuntime, IChannelStorageService, IChannelServices, IChannelFactory } from "@fluidframework/datastore-definitions";
|
|
8
8
|
import { SharedObject } from "@fluidframework/shared-object-base";
|
|
9
9
|
import { IDirectory, ISerializableValue, ISharedDirectory, ISharedDirectoryEvents } from "./interfaces";
|
|
10
|
+
import { LocalValueMaker } from "./localValues";
|
|
11
|
+
/**
|
|
12
|
+
* Operation indicating a value should be set for a key.
|
|
13
|
+
*/
|
|
14
|
+
interface IDirectorySetOperation {
|
|
15
|
+
/**
|
|
16
|
+
* String identifier of the operation type.
|
|
17
|
+
*/
|
|
18
|
+
type: "set";
|
|
19
|
+
/**
|
|
20
|
+
* Directory key being modified.
|
|
21
|
+
*/
|
|
22
|
+
key: string;
|
|
23
|
+
/**
|
|
24
|
+
* Absolute path of the directory where the modified key is located.
|
|
25
|
+
*/
|
|
26
|
+
path: string;
|
|
27
|
+
/**
|
|
28
|
+
* Value to be set on the key.
|
|
29
|
+
*/
|
|
30
|
+
value: ISerializableValue;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Operation indicating a key should be deleted from the directory.
|
|
34
|
+
*/
|
|
35
|
+
interface IDirectoryDeleteOperation {
|
|
36
|
+
/**
|
|
37
|
+
* String identifier of the operation type.
|
|
38
|
+
*/
|
|
39
|
+
type: "delete";
|
|
40
|
+
/**
|
|
41
|
+
* Directory key being modified.
|
|
42
|
+
*/
|
|
43
|
+
key: string;
|
|
44
|
+
/**
|
|
45
|
+
* Absolute path of the directory where the modified key is located.
|
|
46
|
+
*/
|
|
47
|
+
path: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* An operation on a specific key within a directory
|
|
51
|
+
*/
|
|
52
|
+
declare type IDirectoryKeyOperation = IDirectorySetOperation | IDirectoryDeleteOperation;
|
|
53
|
+
/**
|
|
54
|
+
* Operation indicating the directory should be cleared.
|
|
55
|
+
*/
|
|
56
|
+
interface IDirectoryClearOperation {
|
|
57
|
+
/**
|
|
58
|
+
* String identifier of the operation type.
|
|
59
|
+
*/
|
|
60
|
+
type: "clear";
|
|
61
|
+
/**
|
|
62
|
+
* Absolute path of the directory being cleared.
|
|
63
|
+
*/
|
|
64
|
+
path: string;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* An operation on one or more of the keys within a directory
|
|
68
|
+
*/
|
|
69
|
+
declare type IDirectoryStorageOperation = IDirectoryKeyOperation | IDirectoryClearOperation;
|
|
70
|
+
/**
|
|
71
|
+
* Operation indicating a subdirectory should be created.
|
|
72
|
+
*/
|
|
73
|
+
interface IDirectoryCreateSubDirectoryOperation {
|
|
74
|
+
/**
|
|
75
|
+
* String identifier of the operation type.
|
|
76
|
+
*/
|
|
77
|
+
type: "createSubDirectory";
|
|
78
|
+
/**
|
|
79
|
+
* Absolute path of the directory that will contain the new subdirectory.
|
|
80
|
+
*/
|
|
81
|
+
path: string;
|
|
82
|
+
/**
|
|
83
|
+
* Name of the new subdirectory.
|
|
84
|
+
*/
|
|
85
|
+
subdirName: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Operation indicating a subdirectory should be deleted.
|
|
89
|
+
*/
|
|
90
|
+
interface IDirectoryDeleteSubDirectoryOperation {
|
|
91
|
+
/**
|
|
92
|
+
* String identifier of the operation type.
|
|
93
|
+
*/
|
|
94
|
+
type: "deleteSubDirectory";
|
|
95
|
+
/**
|
|
96
|
+
* Absolute path of the directory that contains the directory to be deleted.
|
|
97
|
+
*/
|
|
98
|
+
path: string;
|
|
99
|
+
/**
|
|
100
|
+
* Name of the subdirectory to be deleted.
|
|
101
|
+
*/
|
|
102
|
+
subdirName: string;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* An operation on the subdirectories within a directory
|
|
106
|
+
*/
|
|
107
|
+
declare type IDirectorySubDirectoryOperation = IDirectoryCreateSubDirectoryOperation | IDirectoryDeleteSubDirectoryOperation;
|
|
108
|
+
/**
|
|
109
|
+
* Any operation on a directory
|
|
110
|
+
*/
|
|
111
|
+
export declare type IDirectoryOperation = IDirectoryStorageOperation | IDirectorySubDirectoryOperation;
|
|
10
112
|
/**
|
|
11
113
|
* Defines the in-memory object structure to be used for the conversion to/from serialized.
|
|
12
114
|
* @privateRemarks
|
|
@@ -91,6 +193,10 @@ export declare class SharedDirectory extends SharedObject<ISharedDirectoryEvents
|
|
|
91
193
|
* {@inheritDoc IDirectory.absolutePath}
|
|
92
194
|
*/
|
|
93
195
|
get absolutePath(): string;
|
|
196
|
+
/**
|
|
197
|
+
* @internal
|
|
198
|
+
*/
|
|
199
|
+
readonly localValueMaker: LocalValueMaker;
|
|
94
200
|
/**
|
|
95
201
|
* Root of the SharedDirectory, most operations on the SharedDirectory itself act on the root.
|
|
96
202
|
*/
|
|
@@ -190,26 +296,46 @@ export declare class SharedDirectory extends SharedObject<ISharedDirectoryEvents
|
|
|
190
296
|
getWorkingDirectory(relativePath: string): IDirectory | undefined;
|
|
191
297
|
/**
|
|
192
298
|
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.snapshotCore}
|
|
299
|
+
* @internal
|
|
193
300
|
*/
|
|
194
301
|
protected snapshotCore(serializer: IFluidSerializer): ITree;
|
|
302
|
+
/**
|
|
303
|
+
* Submits an operation
|
|
304
|
+
* @param op - Op to submit
|
|
305
|
+
* @param localOpMetadata - The local metadata associated with the op. We send a unique id that is used to track
|
|
306
|
+
* this op while it has not been ack'd. This will be sent when we receive this op back from the server.
|
|
307
|
+
* @internal
|
|
308
|
+
*/
|
|
309
|
+
submitDirectoryMessage(op: IDirectoryOperation, localOpMetadata: unknown): void;
|
|
195
310
|
/**
|
|
196
311
|
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.onDisconnect}
|
|
312
|
+
* @internal
|
|
197
313
|
*/
|
|
198
314
|
protected onDisconnect(): void;
|
|
199
315
|
/**
|
|
200
316
|
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.reSubmitCore}
|
|
317
|
+
* @internal
|
|
201
318
|
*/
|
|
202
319
|
protected reSubmitCore(content: any, localOpMetadata: unknown): void;
|
|
203
320
|
/**
|
|
204
321
|
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.loadCore}
|
|
322
|
+
* @internal
|
|
205
323
|
*/
|
|
206
324
|
protected loadCore(storage: IChannelStorageService): Promise<void>;
|
|
325
|
+
/**
|
|
326
|
+
* Populate the directory with the given directory data.
|
|
327
|
+
* @param data - A JSON string containing serialized directory data
|
|
328
|
+
* @internal
|
|
329
|
+
*/
|
|
330
|
+
protected populate(data: IDirectoryDataObject): void;
|
|
207
331
|
/**
|
|
208
332
|
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.registerCore}
|
|
333
|
+
* @internal
|
|
209
334
|
*/
|
|
210
335
|
protected registerCore(): void;
|
|
211
336
|
/**
|
|
212
337
|
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.processCore}
|
|
338
|
+
* @internal
|
|
213
339
|
*/
|
|
214
340
|
protected processCore(message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown): void;
|
|
215
341
|
/**
|
|
@@ -232,6 +358,10 @@ export declare class SharedDirectory extends SharedObject<ISharedDirectoryEvents
|
|
|
232
358
|
* Set the message handlers for the directory.
|
|
233
359
|
*/
|
|
234
360
|
private setMessageHandlers;
|
|
361
|
+
/**
|
|
362
|
+
* @internal
|
|
363
|
+
*/
|
|
235
364
|
protected applyStashedOp(): void;
|
|
236
365
|
}
|
|
366
|
+
export {};
|
|
237
367
|
//# sourceMappingURL=directory.d.ts.map
|
package/dist/directory.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["../src/directory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAGnE,OAAO,EACH,yBAAyB,EACzB,KAAK,EAER,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACH,kBAAkB,EAClB,sBAAsB,EACtB,sBA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AGG;cACa,QAAQ,CAAC,OAAO,EAAE,sBAAsB;IAgBxD;;;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,oBAAoB;IAmC7C;;;OAGG;IACH,SAAS,CAAC,YAAY,IAAI,IAAI;IAiB9B;;;OAGG;IACH,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,yBAAyB,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,GAAG,IAAI;IASzG;;;OAGG;IACH,OAAO,CAAC,YAAY;IAIpB;;;;;;;;;OASG;IACH,OAAO,CAAC,SAAS;IAYjB;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAgG1B;;OAEG;IACH,SAAS,CAAC,cAAc;CAG3B"}
|
package/dist/directory.js
CHANGED
|
@@ -338,6 +338,7 @@ class SharedDirectory extends shared_object_base_1.SharedObject {
|
|
|
338
338
|
}
|
|
339
339
|
/**
|
|
340
340
|
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.snapshotCore}
|
|
341
|
+
* @internal
|
|
341
342
|
*/
|
|
342
343
|
snapshotCore(serializer) {
|
|
343
344
|
return serializeDirectory(this.root, serializer);
|
|
@@ -354,10 +355,12 @@ class SharedDirectory extends shared_object_base_1.SharedObject {
|
|
|
354
355
|
}
|
|
355
356
|
/**
|
|
356
357
|
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.onDisconnect}
|
|
358
|
+
* @internal
|
|
357
359
|
*/
|
|
358
360
|
onDisconnect() { }
|
|
359
361
|
/**
|
|
360
362
|
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.reSubmitCore}
|
|
363
|
+
* @internal
|
|
361
364
|
*/
|
|
362
365
|
reSubmitCore(content, localOpMetadata) {
|
|
363
366
|
const message = content;
|
|
@@ -367,6 +370,7 @@ class SharedDirectory extends shared_object_base_1.SharedObject {
|
|
|
367
370
|
}
|
|
368
371
|
/**
|
|
369
372
|
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.loadCore}
|
|
373
|
+
* @internal
|
|
370
374
|
*/
|
|
371
375
|
async loadCore(storage) {
|
|
372
376
|
const data = await driver_utils_1.readAndParse(storage, snapshotFileName);
|
|
@@ -415,6 +419,7 @@ class SharedDirectory extends shared_object_base_1.SharedObject {
|
|
|
415
419
|
}
|
|
416
420
|
/**
|
|
417
421
|
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.registerCore}
|
|
422
|
+
* @internal
|
|
418
423
|
*/
|
|
419
424
|
registerCore() {
|
|
420
425
|
const subdirsToRegisterFrom = new Array();
|
|
@@ -432,6 +437,7 @@ class SharedDirectory extends shared_object_base_1.SharedObject {
|
|
|
432
437
|
}
|
|
433
438
|
/**
|
|
434
439
|
* {@inheritDoc @fluidframework/shared-object-base#SharedObject.processCore}
|
|
440
|
+
* @internal
|
|
435
441
|
*/
|
|
436
442
|
processCore(message, local, localOpMetadata) {
|
|
437
443
|
if (message.type === protocol_definitions_1.MessageType.Operation) {
|
|
@@ -543,6 +549,9 @@ class SharedDirectory extends shared_object_base_1.SharedObject {
|
|
|
543
549
|
},
|
|
544
550
|
});
|
|
545
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
* @internal
|
|
554
|
+
*/
|
|
546
555
|
applyStashedOp() {
|
|
547
556
|
throw new Error("not implemented");
|
|
548
557
|
}
|