@fluid-experimental/property-dds 2.0.0-dev.6.4.0.192049 → 2.0.0-dev.7.2.0.204906
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 +52 -0
- package/api-extractor.json +10 -1
- package/api-report/property-dds.api.md +276 -0
- package/dist/property-dds-alpha.d.ts +264 -0
- package/dist/property-dds-beta.d.ts +264 -0
- package/dist/property-dds-public.d.ts +264 -0
- package/dist/property-dds-untrimmed.d.ts +264 -0
- package/dist/propertyTree.d.ts +2 -2
- package/dist/propertyTree.d.ts.map +1 -1
- package/dist/propertyTree.js +2 -2
- package/dist/propertyTree.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/lib/propertyTree.d.ts +2 -2
- package/lib/propertyTree.d.ts.map +1 -1
- package/lib/propertyTree.js +2 -2
- package/lib/propertyTree.js.map +1 -1
- package/package.json +30 -31
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,57 @@
|
|
|
1
1
|
# @fluid-experimental/property-dds
|
|
2
2
|
|
|
3
|
+
## 2.0.0-internal.7.1.0
|
|
4
|
+
|
|
5
|
+
Dependency updates only.
|
|
6
|
+
|
|
7
|
+
## 2.0.0-internal.7.0.0
|
|
8
|
+
|
|
9
|
+
### Major Changes
|
|
10
|
+
|
|
11
|
+
- Dependencies on @fluidframework/protocol-definitions package updated to 3.0.0 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
|
|
12
|
+
|
|
13
|
+
This included the following changes from the protocol-definitions release:
|
|
14
|
+
|
|
15
|
+
- Updating signal interfaces for some planned improvements. The intention is split the interface between signals
|
|
16
|
+
submitted by clients to the server and the resulting signals sent from the server to clients.
|
|
17
|
+
- A new optional type member is available on the ISignalMessage interface and a new ISentSignalMessage interface has
|
|
18
|
+
been added, which will be the typing for signals sent from the client to the server. Both extend a new
|
|
19
|
+
ISignalMessageBase interface that contains common members.
|
|
20
|
+
- The @fluidframework/common-definitions package dependency has been updated to version 1.0.0.
|
|
21
|
+
|
|
22
|
+
- Server upgrade: dependencies on Fluid server packages updated to 2.0.1 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
|
|
23
|
+
|
|
24
|
+
Dependencies on the following Fluid server package have been updated to version 2.0.1:
|
|
25
|
+
|
|
26
|
+
- @fluidframework/gitresources: 2.0.1
|
|
27
|
+
- @fluidframework/server-kafka-orderer: 2.0.1
|
|
28
|
+
- @fluidframework/server-lambdas: 2.0.1
|
|
29
|
+
- @fluidframework/server-lambdas-driver: 2.0.1
|
|
30
|
+
- @fluidframework/server-local-server: 2.0.1
|
|
31
|
+
- @fluidframework/server-memory-orderer: 2.0.1
|
|
32
|
+
- @fluidframework/protocol-base: 2.0.1
|
|
33
|
+
- @fluidframework/server-routerlicious: 2.0.1
|
|
34
|
+
- @fluidframework/server-routerlicious-base: 2.0.1
|
|
35
|
+
- @fluidframework/server-services: 2.0.1
|
|
36
|
+
- @fluidframework/server-services-client: 2.0.1
|
|
37
|
+
- @fluidframework/server-services-core: 2.0.1
|
|
38
|
+
- @fluidframework/server-services-ordering-kafkanode: 2.0.1
|
|
39
|
+
- @fluidframework/server-services-ordering-rdkafka: 2.0.1
|
|
40
|
+
- @fluidframework/server-services-ordering-zookeeper: 2.0.1
|
|
41
|
+
- @fluidframework/server-services-shared: 2.0.1
|
|
42
|
+
- @fluidframework/server-services-telemetry: 2.0.1
|
|
43
|
+
- @fluidframework/server-services-utils: 2.0.1
|
|
44
|
+
- @fluidframework/server-test-utils: 2.0.1
|
|
45
|
+
- tinylicious: 2.0.1
|
|
46
|
+
|
|
47
|
+
- Minimum TypeScript version now 5.1.6 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
|
|
48
|
+
|
|
49
|
+
The minimum supported TypeScript version for Fluid 2.0 clients is now 5.1.6.
|
|
50
|
+
|
|
51
|
+
## 2.0.0-internal.6.4.0
|
|
52
|
+
|
|
53
|
+
Dependency updates only.
|
|
54
|
+
|
|
3
55
|
## 2.0.0-internal.6.3.0
|
|
4
56
|
|
|
5
57
|
Dependency updates only.
|
package/api-extractor.json
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
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
|
+
}
|
|
12
|
+
}
|
|
4
13
|
}
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
## API Report File for "@fluid-experimental/property-dds"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
/// <reference types="node" />
|
|
8
|
+
|
|
9
|
+
import { IChannelAttributes } from '@fluidframework/datastore-definitions';
|
|
10
|
+
import { IChannelFactory } from '@fluidframework/datastore-definitions';
|
|
11
|
+
import { IChannelServices } from '@fluidframework/datastore-definitions';
|
|
12
|
+
import { IChannelStorageService } from '@fluidframework/datastore-definitions';
|
|
13
|
+
import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
|
|
14
|
+
import { IFluidSerializer } from '@fluidframework/shared-object-base';
|
|
15
|
+
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
16
|
+
import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
|
|
17
|
+
import { NodeProperty } from '@fluid-experimental/property-properties';
|
|
18
|
+
import { SharedObject } from '@fluidframework/shared-object-base';
|
|
19
|
+
|
|
20
|
+
// @public (undocumented)
|
|
21
|
+
export abstract class CompressedPropertyTreeFactory implements IChannelFactory {
|
|
22
|
+
// (undocumented)
|
|
23
|
+
abstract get attributes(): any;
|
|
24
|
+
// (undocumented)
|
|
25
|
+
create(document: IFluidDataStoreRuntime, id: string, requestUrl?: string): SharedPropertyTree;
|
|
26
|
+
// (undocumented)
|
|
27
|
+
abstract getDecodeFce(): any;
|
|
28
|
+
// (undocumented)
|
|
29
|
+
getEncDec(): ISharedPropertyTreeEncDec;
|
|
30
|
+
// (undocumented)
|
|
31
|
+
abstract getEncodeFce(): any;
|
|
32
|
+
// (undocumented)
|
|
33
|
+
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes, url?: string): Promise<SharedPropertyTree>;
|
|
34
|
+
// (undocumented)
|
|
35
|
+
abstract newPropertyTree(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes, options: SharedPropertyTreeOptions, propertyTreeConfig: IPropertyTreeConfig): SharedPropertyTree;
|
|
36
|
+
// (undocumented)
|
|
37
|
+
abstract get type(): any;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// @public
|
|
41
|
+
export class DeflatedPropertyTree extends SharedPropertyTree {
|
|
42
|
+
// (undocumented)
|
|
43
|
+
static create(runtime: IFluidDataStoreRuntime, id?: string, queryString?: string): DeflatedPropertyTree;
|
|
44
|
+
// (undocumented)
|
|
45
|
+
static getFactory(): IChannelFactory;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// @public (undocumented)
|
|
49
|
+
export class DeflatedPropertyTreeFactory extends CompressedPropertyTreeFactory {
|
|
50
|
+
// (undocumented)
|
|
51
|
+
static readonly Attributes: IChannelAttributes;
|
|
52
|
+
// (undocumented)
|
|
53
|
+
get attributes(): IChannelAttributes;
|
|
54
|
+
// (undocumented)
|
|
55
|
+
create(document: IFluidDataStoreRuntime, id: string, requestUrl?: string): DeflatedPropertyTree;
|
|
56
|
+
// (undocumented)
|
|
57
|
+
getDecodeFce(): any;
|
|
58
|
+
// (undocumented)
|
|
59
|
+
getEncodeFce(): any;
|
|
60
|
+
// (undocumented)
|
|
61
|
+
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes, url?: string): Promise<DeflatedPropertyTree>;
|
|
62
|
+
// (undocumented)
|
|
63
|
+
newPropertyTree(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes, options: SharedPropertyTreeOptions, propertyTreeConfig: IPropertyTreeConfig): SharedPropertyTree;
|
|
64
|
+
// (undocumented)
|
|
65
|
+
static readonly Type = "DeflatedPropertyTree:84534a0fe613522101f6";
|
|
66
|
+
// (undocumented)
|
|
67
|
+
get type(): string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// @public (undocumented)
|
|
71
|
+
export interface IPropertyTreeConfig {
|
|
72
|
+
// (undocumented)
|
|
73
|
+
encDec: ISharedPropertyTreeEncDec;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// @public (undocumented)
|
|
77
|
+
export interface IPropertyTreeMessage {
|
|
78
|
+
// (undocumented)
|
|
79
|
+
changeSet: SerializedChangeSet;
|
|
80
|
+
// (undocumented)
|
|
81
|
+
guid: string;
|
|
82
|
+
// (undocumented)
|
|
83
|
+
localBranchStart: string | undefined;
|
|
84
|
+
// (undocumented)
|
|
85
|
+
metadata: Metadata;
|
|
86
|
+
// (undocumented)
|
|
87
|
+
op: OpKind;
|
|
88
|
+
// (undocumented)
|
|
89
|
+
rebaseMetaInformation?: Map<any, any>;
|
|
90
|
+
// (undocumented)
|
|
91
|
+
referenceGuid: string;
|
|
92
|
+
// (undocumented)
|
|
93
|
+
remoteHeadGuid: string;
|
|
94
|
+
// (undocumented)
|
|
95
|
+
useMH?: boolean;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// @public (undocumented)
|
|
99
|
+
export interface IRemotePropertyTreeMessage extends IPropertyTreeMessage {
|
|
100
|
+
// (undocumented)
|
|
101
|
+
sequenceNumber: number;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// @public (undocumented)
|
|
105
|
+
export interface ISharedPropertyTreeEncDec {
|
|
106
|
+
// (undocumented)
|
|
107
|
+
messageEncoder: {
|
|
108
|
+
encode: (IPropertyTreeMessage: any) => IPropertyTreeMessage;
|
|
109
|
+
decode: (IPropertyTreeMessage: any) => IPropertyTreeMessage;
|
|
110
|
+
};
|
|
111
|
+
// (undocumented)
|
|
112
|
+
summaryEncoder: {
|
|
113
|
+
encode: (ISnapshotSummary: any) => Buffer;
|
|
114
|
+
decode: (Buffer: any) => ISnapshotSummary;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// @public (undocumented)
|
|
119
|
+
export interface ISnapshotSummary {
|
|
120
|
+
// (undocumented)
|
|
121
|
+
remoteChanges?: IPropertyTreeMessage[];
|
|
122
|
+
// (undocumented)
|
|
123
|
+
remoteHeadGuid: string;
|
|
124
|
+
// (undocumented)
|
|
125
|
+
remoteTipView?: SerializedChangeSet;
|
|
126
|
+
// (undocumented)
|
|
127
|
+
unrebasedRemoteChanges?: Record<string, IRemotePropertyTreeMessage>;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// @public (undocumented)
|
|
131
|
+
export class LZ4PropertyTree extends SharedPropertyTree {
|
|
132
|
+
// (undocumented)
|
|
133
|
+
static create(runtime: IFluidDataStoreRuntime, id?: string, queryString?: string): LZ4PropertyTree;
|
|
134
|
+
// (undocumented)
|
|
135
|
+
static getFactory(): IChannelFactory;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// @public (undocumented)
|
|
139
|
+
export class LZ4PropertyTreeFactory extends CompressedPropertyTreeFactory {
|
|
140
|
+
// (undocumented)
|
|
141
|
+
static readonly Attributes: IChannelAttributes;
|
|
142
|
+
// (undocumented)
|
|
143
|
+
get attributes(): IChannelAttributes;
|
|
144
|
+
// (undocumented)
|
|
145
|
+
create(document: IFluidDataStoreRuntime, id: string, requestUrl?: string): LZ4PropertyTree;
|
|
146
|
+
// (undocumented)
|
|
147
|
+
getDecodeFce(): any;
|
|
148
|
+
// (undocumented)
|
|
149
|
+
getEncodeFce(): any;
|
|
150
|
+
// (undocumented)
|
|
151
|
+
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes, url?: string): Promise<LZ4PropertyTree>;
|
|
152
|
+
// (undocumented)
|
|
153
|
+
newPropertyTree(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes, options: SharedPropertyTreeOptions, propertyTreeConfig: IPropertyTreeConfig): SharedPropertyTree;
|
|
154
|
+
// (undocumented)
|
|
155
|
+
static readonly Type = "LZ4PropertyTree:84534a0fe613522101f6";
|
|
156
|
+
// (undocumented)
|
|
157
|
+
get type(): string;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// @public (undocumented)
|
|
161
|
+
export type Metadata = any;
|
|
162
|
+
|
|
163
|
+
// @public (undocumented)
|
|
164
|
+
export const enum OpKind {
|
|
165
|
+
// (undocumented)
|
|
166
|
+
ChangeSet = 0
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// @public
|
|
170
|
+
export class PropertyTreeFactory implements IChannelFactory {
|
|
171
|
+
// (undocumented)
|
|
172
|
+
static readonly Attributes: IChannelAttributes;
|
|
173
|
+
// (undocumented)
|
|
174
|
+
get attributes(): IChannelAttributes;
|
|
175
|
+
// (undocumented)
|
|
176
|
+
create(document: IFluidDataStoreRuntime, id: string, requestUrl?: string): SharedPropertyTree;
|
|
177
|
+
// (undocumented)
|
|
178
|
+
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes, url?: string): Promise<SharedPropertyTree>;
|
|
179
|
+
// (undocumented)
|
|
180
|
+
static readonly Type = "PropertyTree:01EP5J4Y6C284JR6ATVPPHRJ4E";
|
|
181
|
+
// (undocumented)
|
|
182
|
+
get type(): string;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// @public (undocumented)
|
|
186
|
+
export type SerializedChangeSet = any;
|
|
187
|
+
|
|
188
|
+
// @public
|
|
189
|
+
export class SharedPropertyTree extends SharedObject {
|
|
190
|
+
constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes, options: SharedPropertyTreeOptions, propertyTreeConfig?: IPropertyTreeConfig);
|
|
191
|
+
// (undocumented)
|
|
192
|
+
get activeCommit(): IPropertyTreeMessage;
|
|
193
|
+
// (undocumented)
|
|
194
|
+
protected applyStashedOp(): void;
|
|
195
|
+
// (undocumented)
|
|
196
|
+
get changeSet(): SerializedChangeSet;
|
|
197
|
+
// (undocumented)
|
|
198
|
+
commit(metadata?: Metadata, submitEmptyChange?: boolean): void;
|
|
199
|
+
static create(runtime: IFluidDataStoreRuntime, id?: string, queryString?: string): SharedPropertyTree;
|
|
200
|
+
// (undocumented)
|
|
201
|
+
enqueuedMessages: IPropertyTreeMessage[];
|
|
202
|
+
static getFactory(): IChannelFactory;
|
|
203
|
+
// (undocumented)
|
|
204
|
+
getRebasedChanges(startGuid: string, endGuid?: string): IPropertyTreeMessage[];
|
|
205
|
+
// (undocumented)
|
|
206
|
+
getUnrebasedChange(guid: string): IRemotePropertyTreeMessage;
|
|
207
|
+
// (undocumented)
|
|
208
|
+
headCommitGuid: string;
|
|
209
|
+
// (undocumented)
|
|
210
|
+
protected loadCore(storage: IChannelStorageService): Promise<void>;
|
|
211
|
+
// (undocumented)
|
|
212
|
+
localChanges: IPropertyTreeMessage[];
|
|
213
|
+
protected logIfEnabled(message: any): void;
|
|
214
|
+
// (undocumented)
|
|
215
|
+
notificationDelayScope: number;
|
|
216
|
+
protected onConnect(): void;
|
|
217
|
+
// (undocumented)
|
|
218
|
+
protected onDisconnect(): void;
|
|
219
|
+
// (undocumented)
|
|
220
|
+
options: SharedPropertyTreeOptions;
|
|
221
|
+
popNotificationDelayScope(): void;
|
|
222
|
+
protected processCore(message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown): void;
|
|
223
|
+
// (undocumented)
|
|
224
|
+
propertyTreeConfig: IPropertyTreeConfig;
|
|
225
|
+
// (undocumented)
|
|
226
|
+
static prune(minimumSequenceNumber: number, remoteChanges: IPropertyTreeMessage[], unrebasedRemoteChanges: Record<string, IRemotePropertyTreeMessage>): {
|
|
227
|
+
remoteChanges: IPropertyTreeMessage[];
|
|
228
|
+
unrebasedRemoteChanges: Record<string, IRemotePropertyTreeMessage>;
|
|
229
|
+
prunedCount: number;
|
|
230
|
+
};
|
|
231
|
+
// (undocumented)
|
|
232
|
+
pruneHistory(): void;
|
|
233
|
+
pushNotificationDelayScope(): void;
|
|
234
|
+
// (undocumented)
|
|
235
|
+
remoteChanges: IPropertyTreeMessage[];
|
|
236
|
+
// (undocumented)
|
|
237
|
+
remoteTipView: SerializedChangeSet;
|
|
238
|
+
// (undocumented)
|
|
239
|
+
_reportDirtinessToView(): void;
|
|
240
|
+
// (undocumented)
|
|
241
|
+
protected reSubmitCore(content: any, localOpMetadata: unknown): void;
|
|
242
|
+
// (undocumented)
|
|
243
|
+
get root(): NodeProperty;
|
|
244
|
+
// (undocumented)
|
|
245
|
+
_root: any;
|
|
246
|
+
// (undocumented)
|
|
247
|
+
skipSequenceNumber: number;
|
|
248
|
+
// (undocumented)
|
|
249
|
+
stopTransmission(stop: boolean): void;
|
|
250
|
+
// (undocumented)
|
|
251
|
+
summarizeCore(serializer: IFluidSerializer): ISummaryTreeWithStats;
|
|
252
|
+
// (undocumented)
|
|
253
|
+
tipView: SerializedChangeSet;
|
|
254
|
+
// (undocumented)
|
|
255
|
+
transmissionsHaveBeenStopped: boolean;
|
|
256
|
+
// (undocumented)
|
|
257
|
+
unrebasedRemoteChanges: Record<string, IRemotePropertyTreeMessage>;
|
|
258
|
+
// (undocumented)
|
|
259
|
+
useMH: boolean;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// @public (undocumented)
|
|
263
|
+
export interface SharedPropertyTreeOptions {
|
|
264
|
+
// (undocumented)
|
|
265
|
+
clientFiltering?: boolean;
|
|
266
|
+
// (undocumented)
|
|
267
|
+
disablePartialCheckout?: boolean;
|
|
268
|
+
// (undocumented)
|
|
269
|
+
paths?: string[];
|
|
270
|
+
// (undocumented)
|
|
271
|
+
useMH?: boolean;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
// (No @packageDocumentation comment for this package)
|
|
275
|
+
|
|
276
|
+
```
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
import { IChannelAttributes } from '@fluidframework/datastore-definitions';
|
|
4
|
+
import { IChannelFactory } from '@fluidframework/datastore-definitions';
|
|
5
|
+
import { IChannelServices } from '@fluidframework/datastore-definitions';
|
|
6
|
+
import { IChannelStorageService } from '@fluidframework/datastore-definitions';
|
|
7
|
+
import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
|
|
8
|
+
import { IFluidSerializer } from '@fluidframework/shared-object-base';
|
|
9
|
+
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
10
|
+
import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
|
|
11
|
+
import { NodeProperty } from '@fluid-experimental/property-properties';
|
|
12
|
+
import { SharedObject } from '@fluidframework/shared-object-base';
|
|
13
|
+
|
|
14
|
+
export declare abstract class CompressedPropertyTreeFactory implements IChannelFactory {
|
|
15
|
+
abstract get attributes(): any;
|
|
16
|
+
abstract get type(): any;
|
|
17
|
+
abstract getEncodeFce(): any;
|
|
18
|
+
abstract getDecodeFce(): any;
|
|
19
|
+
private createCompressionMethods;
|
|
20
|
+
getEncDec(): ISharedPropertyTreeEncDec;
|
|
21
|
+
abstract newPropertyTree(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes, options: SharedPropertyTreeOptions, propertyTreeConfig: IPropertyTreeConfig): SharedPropertyTree;
|
|
22
|
+
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes, url?: string): Promise<SharedPropertyTree>;
|
|
23
|
+
create(document: IFluidDataStoreRuntime, id: string, requestUrl?: string): SharedPropertyTree;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* This class is the extension of SharedPropertyTree which compresses
|
|
28
|
+
* the deltas and summaries communicated to the server by Deflate.
|
|
29
|
+
*/
|
|
30
|
+
export declare class DeflatedPropertyTree extends SharedPropertyTree {
|
|
31
|
+
static create(runtime: IFluidDataStoreRuntime, id?: string, queryString?: string): DeflatedPropertyTree;
|
|
32
|
+
static getFactory(): IChannelFactory;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export declare class DeflatedPropertyTreeFactory extends CompressedPropertyTreeFactory {
|
|
36
|
+
static readonly Type = "DeflatedPropertyTree:84534a0fe613522101f6";
|
|
37
|
+
static readonly Attributes: IChannelAttributes;
|
|
38
|
+
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes, url?: string): Promise<DeflatedPropertyTree>;
|
|
39
|
+
create(document: IFluidDataStoreRuntime, id: string, requestUrl?: string): DeflatedPropertyTree;
|
|
40
|
+
get type(): string;
|
|
41
|
+
get attributes(): IChannelAttributes;
|
|
42
|
+
getEncodeFce(): any;
|
|
43
|
+
getDecodeFce(): any;
|
|
44
|
+
newPropertyTree(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes, options: SharedPropertyTreeOptions, propertyTreeConfig: IPropertyTreeConfig): SharedPropertyTree;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export declare interface IPropertyTreeConfig {
|
|
48
|
+
encDec: ISharedPropertyTreeEncDec;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export declare interface IPropertyTreeMessage {
|
|
52
|
+
op: OpKind;
|
|
53
|
+
changeSet: SerializedChangeSet;
|
|
54
|
+
metadata: Metadata;
|
|
55
|
+
guid: string;
|
|
56
|
+
referenceGuid: string;
|
|
57
|
+
remoteHeadGuid: string;
|
|
58
|
+
localBranchStart: string | undefined;
|
|
59
|
+
rebaseMetaInformation?: Map<any, any>;
|
|
60
|
+
useMH?: boolean;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export declare interface IRemotePropertyTreeMessage extends IPropertyTreeMessage {
|
|
64
|
+
sequenceNumber: number;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export declare interface ISharedPropertyTreeEncDec {
|
|
68
|
+
messageEncoder: {
|
|
69
|
+
encode: (IPropertyTreeMessage: any) => IPropertyTreeMessage;
|
|
70
|
+
decode: (IPropertyTreeMessage: any) => IPropertyTreeMessage;
|
|
71
|
+
};
|
|
72
|
+
summaryEncoder: {
|
|
73
|
+
encode: (ISnapshotSummary: any) => Buffer;
|
|
74
|
+
decode: (Buffer: any) => ISnapshotSummary;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export declare interface ISnapshotSummary {
|
|
79
|
+
remoteTipView?: SerializedChangeSet;
|
|
80
|
+
remoteChanges?: IPropertyTreeMessage[];
|
|
81
|
+
unrebasedRemoteChanges?: Record<string, IRemotePropertyTreeMessage>;
|
|
82
|
+
remoteHeadGuid: string;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export declare class LZ4PropertyTree extends SharedPropertyTree {
|
|
86
|
+
static create(runtime: IFluidDataStoreRuntime, id?: string, queryString?: string): LZ4PropertyTree;
|
|
87
|
+
static getFactory(): IChannelFactory;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export declare class LZ4PropertyTreeFactory extends CompressedPropertyTreeFactory {
|
|
91
|
+
static readonly Type = "LZ4PropertyTree:84534a0fe613522101f6";
|
|
92
|
+
static readonly Attributes: IChannelAttributes;
|
|
93
|
+
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes, url?: string): Promise<LZ4PropertyTree>;
|
|
94
|
+
create(document: IFluidDataStoreRuntime, id: string, requestUrl?: string): LZ4PropertyTree;
|
|
95
|
+
get type(): string;
|
|
96
|
+
get attributes(): IChannelAttributes;
|
|
97
|
+
getEncodeFce(): any;
|
|
98
|
+
getDecodeFce(): any;
|
|
99
|
+
newPropertyTree(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes, options: SharedPropertyTreeOptions, propertyTreeConfig: IPropertyTreeConfig): SharedPropertyTree;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export declare type Metadata = any;
|
|
103
|
+
|
|
104
|
+
export declare const enum OpKind {
|
|
105
|
+
ChangeSet = 0
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The factory that defines the map
|
|
110
|
+
*/
|
|
111
|
+
export declare class PropertyTreeFactory implements IChannelFactory {
|
|
112
|
+
static readonly Type = "PropertyTree:01EP5J4Y6C284JR6ATVPPHRJ4E";
|
|
113
|
+
static readonly Attributes: IChannelAttributes;
|
|
114
|
+
get type(): string;
|
|
115
|
+
get attributes(): IChannelAttributes;
|
|
116
|
+
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes, url?: string): Promise<SharedPropertyTree>;
|
|
117
|
+
create(document: IFluidDataStoreRuntime, id: string, requestUrl?: string): SharedPropertyTree;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export declare type SerializedChangeSet = any;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Silly DDS example that models a six sided die.
|
|
124
|
+
*
|
|
125
|
+
* Unlike the typical 'Dice Roller' example where clients clobber each other's last roll in a
|
|
126
|
+
* SharedMap, this 'SharedDie' DDS works by advancing an internal PRNG each time it sees a 'roll'
|
|
127
|
+
* operation.
|
|
128
|
+
*
|
|
129
|
+
* Because all clients are using the same PRNG starting in the same state, they arrive at
|
|
130
|
+
* consensus by simply applying the same number of rolls. (A fun addition would be logging
|
|
131
|
+
* who received which roll, which would need to change as clients learn how races are resolved
|
|
132
|
+
* in the total order)
|
|
133
|
+
*/
|
|
134
|
+
export declare class SharedPropertyTree extends SharedObject {
|
|
135
|
+
tipView: SerializedChangeSet;
|
|
136
|
+
remoteTipView: SerializedChangeSet;
|
|
137
|
+
localChanges: IPropertyTreeMessage[];
|
|
138
|
+
remoteChanges: IPropertyTreeMessage[];
|
|
139
|
+
unrebasedRemoteChanges: Record<string, IRemotePropertyTreeMessage>;
|
|
140
|
+
transmissionsHaveBeenStopped: boolean;
|
|
141
|
+
enqueuedMessages: IPropertyTreeMessage[];
|
|
142
|
+
notificationDelayScope: number;
|
|
143
|
+
_root: any;
|
|
144
|
+
options: SharedPropertyTreeOptions;
|
|
145
|
+
skipSequenceNumber: number;
|
|
146
|
+
headCommitGuid: string;
|
|
147
|
+
useMH: boolean;
|
|
148
|
+
propertyTreeConfig: IPropertyTreeConfig;
|
|
149
|
+
constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes, options: SharedPropertyTreeOptions, propertyTreeConfig?: IPropertyTreeConfig);
|
|
150
|
+
/**
|
|
151
|
+
* Create a new shared cell
|
|
152
|
+
*
|
|
153
|
+
* @param runtime - data store runtime the new shared map belongs to
|
|
154
|
+
* @param id - optional name of the shared map
|
|
155
|
+
* @returns newly create shared map (but not attached yet)
|
|
156
|
+
*/
|
|
157
|
+
static create(runtime: IFluidDataStoreRuntime, id?: string, queryString?: string): SharedPropertyTree;
|
|
158
|
+
/**
|
|
159
|
+
* Get a factory for SharedDie to register with the data store.
|
|
160
|
+
*
|
|
161
|
+
* @returns a factory that creates and load SharedDie
|
|
162
|
+
*/
|
|
163
|
+
static getFactory(): IChannelFactory;
|
|
164
|
+
/**
|
|
165
|
+
* in case of partial checkout we want to send the paths we are interested in once we are connected
|
|
166
|
+
*/
|
|
167
|
+
protected onConnect(): void;
|
|
168
|
+
private scopeFutureDeltasToPaths;
|
|
169
|
+
_reportDirtinessToView(): void;
|
|
170
|
+
get changeSet(): SerializedChangeSet;
|
|
171
|
+
get activeCommit(): IPropertyTreeMessage;
|
|
172
|
+
get root(): NodeProperty;
|
|
173
|
+
commit(metadata?: Metadata, submitEmptyChange?: boolean): void;
|
|
174
|
+
/**
|
|
175
|
+
* This method encodes the given message to the transfer form
|
|
176
|
+
* @param change - The message to be encoded.
|
|
177
|
+
*/
|
|
178
|
+
private encodeMessage;
|
|
179
|
+
/**
|
|
180
|
+
* This method decodes message from the transfer form.
|
|
181
|
+
* @param transferChange - The message to be decoded.
|
|
182
|
+
*/
|
|
183
|
+
private decodeMessage;
|
|
184
|
+
private applyChangeSet;
|
|
185
|
+
stopTransmission(stop: boolean): void;
|
|
186
|
+
/**
|
|
187
|
+
* Delays notifications until popNotificationDelayScope has been called the same number of times as
|
|
188
|
+
* pushNotificationDelayScope.
|
|
189
|
+
*/
|
|
190
|
+
pushNotificationDelayScope(): void;
|
|
191
|
+
/**
|
|
192
|
+
* Re-enables notifications when popNotificationDelayScope has been called the same number of times as
|
|
193
|
+
* pushNotificationDelayScope.
|
|
194
|
+
*/
|
|
195
|
+
popNotificationDelayScope(): void;
|
|
196
|
+
/**
|
|
197
|
+
* Process an operation
|
|
198
|
+
*
|
|
199
|
+
* @param message - the message to prepare
|
|
200
|
+
* @param local - whether the message was sent by the local client
|
|
201
|
+
* @param localOpMetadata - For local client messages, this is the metadata that was submitted with the message.
|
|
202
|
+
* For messages from a remote client, this will be undefined.
|
|
203
|
+
*/
|
|
204
|
+
protected processCore(message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown): void;
|
|
205
|
+
private addRemoteChange;
|
|
206
|
+
private updateRemoteHeadGuid;
|
|
207
|
+
static prune(minimumSequenceNumber: number, remoteChanges: IPropertyTreeMessage[], unrebasedRemoteChanges: Record<string, IRemotePropertyTreeMessage>): {
|
|
208
|
+
remoteChanges: IPropertyTreeMessage[];
|
|
209
|
+
unrebasedRemoteChanges: Record<string, IRemotePropertyTreeMessage>;
|
|
210
|
+
prunedCount: number;
|
|
211
|
+
};
|
|
212
|
+
pruneHistory(): void;
|
|
213
|
+
/**
|
|
214
|
+
* This method encodes the local summary (snapshot) object into the serialized form.
|
|
215
|
+
* @param summary - The local summary (snapshot)representation.
|
|
216
|
+
* @returns The serialized summary representation.
|
|
217
|
+
*/
|
|
218
|
+
private encodeSummary;
|
|
219
|
+
/**
|
|
220
|
+
* This method decodes the serialized form of the summary into the local summary (snapshot) object.
|
|
221
|
+
* @param serializedSummary - The serialized summary representation.
|
|
222
|
+
* @returns The local summary (snapshot)representation.
|
|
223
|
+
*/
|
|
224
|
+
private decodeSummary;
|
|
225
|
+
/**
|
|
226
|
+
* This method writes the log message if the logging is enabled in the extended DDS.
|
|
227
|
+
* The logging is not enabled in the default Property DDS
|
|
228
|
+
* @param message - The message to be logged.
|
|
229
|
+
*/
|
|
230
|
+
protected logIfEnabled(message: any): void;
|
|
231
|
+
/**
|
|
232
|
+
* This method encodes the binary representation of the
|
|
233
|
+
* blob.
|
|
234
|
+
* @param blob - The binary representation of the blob.
|
|
235
|
+
* @returns The encoded representation of the blob.
|
|
236
|
+
*/
|
|
237
|
+
private encodeSummaryBlob;
|
|
238
|
+
/**
|
|
239
|
+
* This method decodes the encoded representation of the
|
|
240
|
+
* blob.
|
|
241
|
+
* @param blob - The encoded representation of the blob.
|
|
242
|
+
* @returns The binary representation of the blob.
|
|
243
|
+
*/
|
|
244
|
+
private decodeSummaryBlob;
|
|
245
|
+
summarizeCore(serializer: IFluidSerializer): ISummaryTreeWithStats;
|
|
246
|
+
protected loadCore(storage: IChannelStorageService): Promise<void>;
|
|
247
|
+
protected onDisconnect(): void;
|
|
248
|
+
private _applyLocalChangeSet;
|
|
249
|
+
private _applyRemoteChangeSet;
|
|
250
|
+
getUnrebasedChange(guid: string): IRemotePropertyTreeMessage;
|
|
251
|
+
getRebasedChanges(startGuid: string, endGuid?: string): IPropertyTreeMessage[];
|
|
252
|
+
private rebaseLocalChanges;
|
|
253
|
+
protected reSubmitCore(content: any, localOpMetadata: unknown): void;
|
|
254
|
+
protected applyStashedOp(): void;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export declare interface SharedPropertyTreeOptions {
|
|
258
|
+
paths?: string[];
|
|
259
|
+
clientFiltering?: boolean;
|
|
260
|
+
useMH?: boolean;
|
|
261
|
+
disablePartialCheckout?: boolean;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export { }
|