@fluidframework/ordered-collection 2.0.0-dev-rc.3.0.0.254513 → 2.0.0-dev-rc.3.0.0.254866

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.
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
10
+ export {
11
+ // alpha APIs
12
+ ConsensusCallback,
13
+ ConsensusOrderedCollection,
14
+ ConsensusQueue,
15
+ ConsensusResult,
16
+ IConsensusOrderedCollection,
17
+ IConsensusOrderedCollectionEvents,
18
+ IOrderedCollection,
19
+ ISnapshotable
20
+ } from "./index.js";
package/dist/beta.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/ordered-collection";
8
- export declare const pkgVersion = "2.0.0-dev-rc.3.0.0.254513";
8
+ export declare const pkgVersion = "2.0.0-dev-rc.3.0.0.254866";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -8,5 +8,5 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.pkgVersion = exports.pkgName = void 0;
10
10
  exports.pkgName = "@fluidframework/ordered-collection";
11
- exports.pkgVersion = "2.0.0-dev-rc.3.0.0.254513";
11
+ exports.pkgVersion = "2.0.0-dev-rc.3.0.0.254866";
12
12
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,oCAAoC,CAAC;AAC/C,QAAA,UAAU,GAAG,2BAA2B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/ordered-collection\";\nexport const pkgVersion = \"2.0.0-dev-rc.3.0.0.254513\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,oCAAoC,CAAC;AAC/C,QAAA,UAAU,GAAG,2BAA2B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/ordered-collection\";\nexport const pkgVersion = \"2.0.0-dev-rc.3.0.0.254866\";\n"]}
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
package/lib/alpha.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
10
+ export {
11
+ // alpha APIs
12
+ ConsensusCallback,
13
+ ConsensusOrderedCollection,
14
+ ConsensusQueue,
15
+ ConsensusResult,
16
+ IConsensusOrderedCollection,
17
+ IConsensusOrderedCollectionEvents,
18
+ IOrderedCollection,
19
+ ISnapshotable
20
+ } from "./index.js";
package/lib/beta.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/ordered-collection";
8
- export declare const pkgVersion = "2.0.0-dev-rc.3.0.0.254513";
8
+ export declare const pkgVersion = "2.0.0-dev-rc.3.0.0.254866";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluidframework/ordered-collection";
8
- export const pkgVersion = "2.0.0-dev-rc.3.0.0.254513";
8
+ export const pkgVersion = "2.0.0-dev-rc.3.0.0.254866";
9
9
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,oCAAoC,CAAC;AAC5D,MAAM,CAAC,MAAM,UAAU,GAAG,2BAA2B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/ordered-collection\";\nexport const pkgVersion = \"2.0.0-dev-rc.3.0.0.254513\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,oCAAoC,CAAC;AAC5D,MAAM,CAAC,MAAM,UAAU,GAAG,2BAA2B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/ordered-collection\";\nexport const pkgVersion = \"2.0.0-dev-rc.3.0.0.254866\";\n"]}
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/ordered-collection",
3
- "version": "2.0.0-dev-rc.3.0.0.254513",
3
+ "version": "2.0.0-dev-rc.3.0.0.254866",
4
4
  "description": "Consensus Collection",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -15,21 +15,21 @@
15
15
  "exports": {
16
16
  ".": {
17
17
  "import": {
18
- "types": "./lib/ordered-collection-public.d.ts",
18
+ "types": "./lib/public.d.ts",
19
19
  "default": "./lib/index.js"
20
20
  },
21
21
  "require": {
22
- "types": "./dist/ordered-collection-public.d.ts",
22
+ "types": "./dist/public.d.ts",
23
23
  "default": "./dist/index.js"
24
24
  }
25
25
  },
26
26
  "./alpha": {
27
27
  "import": {
28
- "types": "./lib/ordered-collection-alpha.d.ts",
28
+ "types": "./lib/alpha.d.ts",
29
29
  "default": "./lib/index.js"
30
30
  },
31
31
  "require": {
32
- "types": "./dist/ordered-collection-alpha.d.ts",
32
+ "types": "./dist/alpha.d.ts",
33
33
  "default": "./dist/index.js"
34
34
  }
35
35
  },
@@ -45,7 +45,7 @@
45
45
  }
46
46
  },
47
47
  "main": "dist/index.js",
48
- "types": "./dist/ordered-collection-public.d.ts",
48
+ "types": "./dist/public.d.ts",
49
49
  "c8": {
50
50
  "all": true,
51
51
  "cache-dir": "nyc/.cache",
@@ -67,28 +67,28 @@
67
67
  "temp-directory": "nyc/.nyc_output"
68
68
  },
69
69
  "dependencies": {
70
- "@fluid-internal/client-utils": "2.0.0-dev-rc.3.0.0.254513",
71
- "@fluidframework/core-interfaces": "2.0.0-dev-rc.3.0.0.254513",
72
- "@fluidframework/core-utils": "2.0.0-dev-rc.3.0.0.254513",
73
- "@fluidframework/datastore-definitions": "2.0.0-dev-rc.3.0.0.254513",
70
+ "@fluid-internal/client-utils": "2.0.0-dev-rc.3.0.0.254866",
71
+ "@fluidframework/core-interfaces": "2.0.0-dev-rc.3.0.0.254866",
72
+ "@fluidframework/core-utils": "2.0.0-dev-rc.3.0.0.254866",
73
+ "@fluidframework/datastore-definitions": "2.0.0-dev-rc.3.0.0.254866",
74
74
  "@fluidframework/protocol-definitions": "^3.2.0",
75
- "@fluidframework/runtime-definitions": "2.0.0-dev-rc.3.0.0.254513",
76
- "@fluidframework/runtime-utils": "2.0.0-dev-rc.3.0.0.254513",
77
- "@fluidframework/shared-object-base": "2.0.0-dev-rc.3.0.0.254513",
78
- "@fluidframework/telemetry-utils": "2.0.0-dev-rc.3.0.0.254513",
75
+ "@fluidframework/runtime-definitions": "2.0.0-dev-rc.3.0.0.254866",
76
+ "@fluidframework/runtime-utils": "2.0.0-dev-rc.3.0.0.254866",
77
+ "@fluidframework/shared-object-base": "2.0.0-dev-rc.3.0.0.254866",
78
+ "@fluidframework/telemetry-utils": "2.0.0-dev-rc.3.0.0.254866",
79
79
  "uuid": "^9.0.0"
80
80
  },
81
81
  "devDependencies": {
82
82
  "@arethetypeswrong/cli": "^0.15.2",
83
83
  "@biomejs/biome": "^1.6.2",
84
- "@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.3.0.0.254513",
85
- "@fluid-private/test-dds-utils": "2.0.0-dev-rc.3.0.0.254513",
84
+ "@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.3.0.0.254866",
85
+ "@fluid-private/test-dds-utils": "2.0.0-dev-rc.3.0.0.254866",
86
86
  "@fluid-tools/build-cli": "^0.35.0",
87
87
  "@fluidframework/build-common": "^2.0.3",
88
88
  "@fluidframework/build-tools": "^0.35.0",
89
89
  "@fluidframework/eslint-config-fluid": "^5.1.0",
90
90
  "@fluidframework/ordered-collection-previous": "npm:@fluidframework/ordered-collection@2.0.0-internal.8.0.0",
91
- "@fluidframework/test-runtime-utils": "2.0.0-dev-rc.3.0.0.254513",
91
+ "@fluidframework/test-runtime-utils": "2.0.0-dev-rc.3.0.0.254866",
92
92
  "@microsoft/api-extractor": "^7.42.3",
93
93
  "@types/mocha": "^9.1.1",
94
94
  "@types/node": "^18.19.0",
@@ -106,29 +106,17 @@
106
106
  "rimraf": "^4.4.0",
107
107
  "typescript": "~5.1.6"
108
108
  },
109
- "fluidBuild": {
110
- "tasks": {
111
- "build:docs": {
112
- "dependsOn": [
113
- "...",
114
- "api-extractor:commonjs",
115
- "api-extractor:esnext"
116
- ],
117
- "script": false
118
- }
119
- }
120
- },
121
109
  "typeValidation": {
122
110
  "broken": {}
123
111
  },
124
112
  "scripts": {
125
113
  "api": "fluid-build . --task api",
126
- "api-extractor:commonjs": "api-extractor run --config ./api-extractor-cjs.json",
127
- "api-extractor:esnext": "api-extractor run --local",
114
+ "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist",
115
+ "api-extractor:esnext": "flub generate entrypoints --outDir ./lib",
128
116
  "build": "fluid-build . --task build",
129
117
  "build:commonjs": "fluid-build . --task commonjs",
130
118
  "build:compile": "fluid-build . --task compile",
131
- "build:docs": "fluid-build . --task api",
119
+ "build:docs": "api-extractor run --local",
132
120
  "build:esnext": "tsc --project ./tsconfig.json",
133
121
  "build:genver": "gen-version",
134
122
  "build:test": "npm run build:test:esm && npm run build:test:cjs",
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/ordered-collection";
9
- export const pkgVersion = "2.0.0-dev-rc.3.0.0.254513";
9
+ export const pkgVersion = "2.0.0-dev-rc.3.0.0.254866";
@@ -1,8 +0,0 @@
1
- {
2
- "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "extends": "../../../common/build/build-common/api-extractor-base.cjs.primary.json",
4
- // CJS is actually secondary; so, no report.
5
- "apiReport": {
6
- "enabled": false
7
- }
8
- }
@@ -1,228 +0,0 @@
1
- import { IChannelAttributes } from '@fluidframework/datastore-definitions';
2
- import { IChannelFactory } from '@fluidframework/datastore-definitions';
3
- import { IChannelServices } from '@fluidframework/datastore-definitions';
4
- import { IChannelStorageService } from '@fluidframework/datastore-definitions';
5
- import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
6
- import { IFluidSerializer } from '@fluidframework/shared-object-base';
7
- import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
8
- import { ISharedObject } from '@fluidframework/shared-object-base';
9
- import { ISharedObjectEvents } from '@fluidframework/shared-object-base';
10
- import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
11
- import { SharedObject } from '@fluidframework/shared-object-base/internal';
12
-
13
- /* Excluded from this release type: acquireAndComplete */
14
-
15
- /**
16
- * Callback provided to acquire() and waitAndAcquire() methods.
17
- * @returns ConsensusResult indicating whether item was completed, or releases back to the queue.
18
- * @alpha
19
- */
20
- export declare type ConsensusCallback<T> = (value: T) => Promise<ConsensusResult>;
21
-
22
- /**
23
- * Implementation of a consensus collection shared object
24
- *
25
- * Implements the shared object's communication, and the semantics around the
26
- * release/complete mechanism following acquire.
27
- *
28
- * Generally not used directly. A derived type will pass in a backing data type
29
- * IOrderedCollection that will define the deterministic add/acquire order and snapshot ability.
30
- * @alpha
31
- */
32
- export declare class ConsensusOrderedCollection<T = any> extends SharedObject<IConsensusOrderedCollectionEvents<T>> implements IConsensusOrderedCollection<T> {
33
- private readonly data;
34
- /**
35
- * The set of values that have been acquired but not yet completed or released
36
- */
37
- private jobTracking;
38
- /**
39
- * Constructs a new consensus collection. If the object is non-local an id and service interfaces will
40
- * be provided
41
- */
42
- protected constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes, data: IOrderedCollection<T>);
43
- /**
44
- * Add a value to the consensus collection.
45
- */
46
- add(value: T): Promise<void>;
47
- /**
48
- * Remove a value from the consensus collection. If the collection is empty, returns false.
49
- * Otherwise calls callback with the value
50
- */
51
- acquire(callback: ConsensusCallback<T>): Promise<boolean>;
52
- /**
53
- * Wait for a value to be available and acquire it from the consensus collection
54
- */
55
- waitAndAcquire(callback: ConsensusCallback<T>): Promise<void>;
56
- protected summarizeCore(serializer: IFluidSerializer): ISummaryTreeWithStats;
57
- protected isActive(): boolean;
58
- protected complete(acquireId: string): Promise<void>;
59
- protected completeCore(acquireId: string): void;
60
- protected release(acquireId: string): void;
61
- protected releaseCore(acquireId: string): void;
62
- /**
63
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.loadCore}
64
- */
65
- protected loadCore(storage: IChannelStorageService): Promise<void>;
66
- protected onDisconnect(): void;
67
- protected processCore(message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown): void;
68
- private submit;
69
- private addCore;
70
- private acquireCore;
71
- private acquireInternal;
72
- private removeClient;
73
- private serializeValue;
74
- private deserializeValue;
75
- protected applyStashedOp(): void;
76
- }
77
-
78
- /**
79
- * Implementation of a consensus stack
80
- *
81
- * An derived type of ConsensusOrderedCollection with a queue as the backing data and order.
82
- * @alpha
83
- */
84
- export declare class ConsensusQueue<T = any> extends ConsensusOrderedCollection<T> {
85
- /**
86
- * Create a new consensus queue
87
- *
88
- * @param runtime - data store runtime the new consensus queue belongs to
89
- * @param id - optional name of theconsensus queue
90
- * @returns newly create consensus queue (but not attached yet)
91
- */
92
- static create<T = any>(runtime: IFluidDataStoreRuntime, id?: string): ConsensusQueue<T>;
93
- /**
94
- * Get a factory for ConsensusQueue to register with the data store.
95
- *
96
- * @returns a factory that creates and load ConsensusQueue
97
- */
98
- static getFactory(): IChannelFactory;
99
- /**
100
- * Constructs a new consensus queue. If the object is non-local an id and service interfaces will
101
- * be provided
102
- */
103
- constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
104
- }
105
-
106
- /* Excluded from this release type: ConsensusQueueFactory */
107
-
108
- /**
109
- * @alpha
110
- */
111
- export declare enum ConsensusResult {
112
- Release = 0,
113
- Complete = 1
114
- }
115
-
116
- /**
117
- * Consensus Ordered Collection interface
118
- *
119
- * An consensus ordered collection is a distributed data structure, which
120
- * holds a collection of JSON-able or handles, and has a
121
- * deterministic add/remove order.
122
- *
123
- * @remarks
124
- * The order the server receive the add/remove operation determines the
125
- * order those operation are applied to the collection. Different clients
126
- * issuing `add` or `acquire` operations at the same time will be sequenced.
127
- * The order dictates which `add` is done first, thus determining the order
128
- * in which it appears in the collection. It also determines which client
129
- * will get the first removed item, etc. All operations are asynchronous.
130
- * A function `waitAndAcquire` is provided to wait for and remove an entry in the collection.
131
- *
132
- * As a client acquires an item, it processes it and then returns a value (via callback)
133
- * indicating whether it has completed processing the item, or whether the item should be
134
- * released back to the collection for another client to process.
135
- *
136
- * All objects added to the collection will be cloned (via JSON).
137
- * They will not be references to the original input object. Thus changed to
138
- * the input object will not reflect the object in the collection.
139
- * @alpha
140
- */
141
- export declare interface IConsensusOrderedCollection<T = any> extends ISharedObject<IConsensusOrderedCollectionEvents<T>> {
142
- /**
143
- * Adds a value to the collection
144
- */
145
- add(value: T): Promise<void>;
146
- /**
147
- * Retrieves a value from the collection.
148
- * @returns Returns true (and calls callback with acquired value) if collection was not empty.
149
- * Otherwise returns false.
150
- */
151
- acquire(callback: ConsensusCallback<T>): Promise<boolean>;
152
- /**
153
- * Wait for a value to be available and remove it from the consensus collection
154
- * Calls callback with retrieved value.
155
- */
156
- waitAndAcquire(callback: ConsensusCallback<T>): Promise<void>;
157
- }
158
-
159
- /**
160
- * Events notifying about addition, acquisition, release and completion of items
161
- * @alpha
162
- */
163
- export declare interface IConsensusOrderedCollectionEvents<T> extends ISharedObjectEvents {
164
- /**
165
- * Event fires when new item is added to the queue or
166
- * an item previously acquired is returned back to a queue (including client loosing connection)
167
- * @param newlyAdded - indicates if it's newly added item of previously acquired item
168
- */
169
- (event: "add", listener: (value: T, newlyAdded: boolean) => void): this;
170
- /**
171
- * Event fires when a client acquired an item
172
- * Fires both for locally acquired items, as well as items acquired by remote clients
173
- */
174
- (event: "acquire", listener: (value: T, clientId?: string) => void): this;
175
- /**
176
- * "Complete event fires when a client completes an item.
177
- */
178
- (event: "complete", listener: (value: T) => void): this;
179
- /**
180
- * Event fires when locally acquired item is being released back to the queue.
181
- * Please note that release process is asynchronous, so it takes a while for it to happen
182
- * ("add" event will be fired as result of it)
183
- * @param intentional - indicates whether release was intentional (result of returning
184
- * ConsensusResult.Release from callback) or it happened as result of lost connection.
185
- */
186
- (event: "localRelease", listener: (value: T, intentional: boolean) => void): this;
187
- }
188
-
189
- /* Excluded from this release type: IConsensusOrderedCollectionFactory */
190
-
191
- /**
192
- * Ordered Collection interface
193
- *
194
- * Collection of objects that has deterministic add and remove ordering.
195
- * Object implementing this interface can be used as the data backing
196
- * for the ConsensusOrderedCollection
197
- * @alpha
198
- */
199
- export declare interface IOrderedCollection<T = any> extends ISnapshotable<T> {
200
- /**
201
- * Adds a value to the collection
202
- */
203
- add(value: T): any;
204
- /**
205
- * Retrieves a value from the collection.
206
- */
207
- remove(): T;
208
- /**
209
- * Return the size of the collection
210
- */
211
- size(): number;
212
- }
213
-
214
- /**
215
- * Interface for object that can be snapshoted
216
- *
217
- * TODO: move this to be use in other place
218
- * TODO: currently input and output is not symmetrical, can they become symmetrical?
219
- * @alpha
220
- */
221
- export declare interface ISnapshotable<T> {
222
- asArray(): T[];
223
- loadFrom(values: T[]): void;
224
- }
225
-
226
- /* Excluded from this release type: waitAcquireAndComplete */
227
-
228
- export { }
@@ -1,39 +0,0 @@
1
- import { IChannelAttributes } from '@fluidframework/datastore-definitions';
2
- import { IChannelFactory } from '@fluidframework/datastore-definitions';
3
- import { IChannelServices } from '@fluidframework/datastore-definitions';
4
- import { IChannelStorageService } from '@fluidframework/datastore-definitions';
5
- import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
6
- import { IFluidSerializer } from '@fluidframework/shared-object-base';
7
- import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
8
- import { ISharedObject } from '@fluidframework/shared-object-base';
9
- import { ISharedObjectEvents } from '@fluidframework/shared-object-base';
10
- import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
11
- import { SharedObject } from '@fluidframework/shared-object-base/internal';
12
-
13
- /* Excluded from this release type: acquireAndComplete */
14
-
15
- /* Excluded from this release type: ConsensusCallback */
16
-
17
- /* Excluded from this release type: ConsensusOrderedCollection */
18
-
19
- /* Excluded from this release type: ConsensusQueue */
20
-
21
- /* Excluded from this release type: ConsensusQueueFactory */
22
-
23
- /* Excluded from this release type: ConsensusResult */
24
-
25
- /* Excluded from this release type: IConsensusOrderedCollection */
26
-
27
- /* Excluded from this release type: IConsensusOrderedCollectionEvents */
28
-
29
- /* Excluded from this release type: IConsensusOrderedCollectionFactory */
30
-
31
- /* Excluded from this release type: IOrderedCollection */
32
-
33
- /* Excluded from this release type: ISnapshotable */
34
-
35
- /* Excluded from this release type: SharedObject */
36
-
37
- /* Excluded from this release type: waitAcquireAndComplete */
38
-
39
- export { }
@@ -1,39 +0,0 @@
1
- import { IChannelAttributes } from '@fluidframework/datastore-definitions';
2
- import { IChannelFactory } from '@fluidframework/datastore-definitions';
3
- import { IChannelServices } from '@fluidframework/datastore-definitions';
4
- import { IChannelStorageService } from '@fluidframework/datastore-definitions';
5
- import { IFluidDataStoreRuntime } from '@fluidframework/datastore-definitions';
6
- import { IFluidSerializer } from '@fluidframework/shared-object-base';
7
- import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
8
- import { ISharedObject } from '@fluidframework/shared-object-base';
9
- import { ISharedObjectEvents } from '@fluidframework/shared-object-base';
10
- import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
11
- import { SharedObject } from '@fluidframework/shared-object-base/internal';
12
-
13
- /* Excluded from this release type: acquireAndComplete */
14
-
15
- /* Excluded from this release type: ConsensusCallback */
16
-
17
- /* Excluded from this release type: ConsensusOrderedCollection */
18
-
19
- /* Excluded from this release type: ConsensusQueue */
20
-
21
- /* Excluded from this release type: ConsensusQueueFactory */
22
-
23
- /* Excluded from this release type: ConsensusResult */
24
-
25
- /* Excluded from this release type: IConsensusOrderedCollection */
26
-
27
- /* Excluded from this release type: IConsensusOrderedCollectionEvents */
28
-
29
- /* Excluded from this release type: IConsensusOrderedCollectionFactory */
30
-
31
- /* Excluded from this release type: IOrderedCollection */
32
-
33
- /* Excluded from this release type: ISnapshotable */
34
-
35
- /* Excluded from this release type: SharedObject */
36
-
37
- /* Excluded from this release type: waitAcquireAndComplete */
38
-
39
- export { }