@fluidframework/ordered-collection 2.0.0-internal.7.3.0 → 2.0.0-internal.7.4.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/api-extractor-lint.json +13 -0
  3. package/api-extractor.json +3 -6
  4. package/api-report/ordered-collection.api.md +11 -11
  5. package/dist/consensusOrderedCollection.cjs +1 -0
  6. package/dist/consensusOrderedCollection.cjs.map +1 -1
  7. package/dist/consensusOrderedCollection.d.ts +1 -0
  8. package/dist/consensusOrderedCollection.d.ts.map +1 -1
  9. package/dist/consensusQueue.cjs +1 -0
  10. package/dist/consensusQueue.cjs.map +1 -1
  11. package/dist/consensusQueue.d.ts +1 -0
  12. package/dist/consensusQueue.d.ts.map +1 -1
  13. package/dist/interfaces.cjs +3 -0
  14. package/dist/interfaces.cjs.map +1 -1
  15. package/dist/interfaces.d.ts +9 -0
  16. package/dist/interfaces.d.ts.map +1 -1
  17. package/dist/ordered-collection-alpha.d.ts +11 -209
  18. package/dist/ordered-collection-beta.d.ts +41 -219
  19. package/dist/ordered-collection-public.d.ts +41 -219
  20. package/dist/ordered-collection-untrimmed.d.ts +13 -0
  21. package/dist/packageVersion.cjs +1 -1
  22. package/dist/packageVersion.cjs.map +1 -1
  23. package/dist/packageVersion.d.ts +1 -1
  24. package/dist/testUtils.cjs +2 -0
  25. package/dist/testUtils.cjs.map +1 -1
  26. package/dist/testUtils.d.ts +2 -0
  27. package/dist/testUtils.d.ts.map +1 -1
  28. package/lib/consensusOrderedCollection.d.ts +2 -1
  29. package/lib/consensusOrderedCollection.d.ts.map +1 -1
  30. package/lib/consensusOrderedCollection.mjs +1 -0
  31. package/lib/consensusOrderedCollection.mjs.map +1 -1
  32. package/lib/consensusOrderedCollectionFactory.d.ts +1 -1
  33. package/lib/consensusOrderedCollectionFactory.d.ts.map +1 -1
  34. package/lib/consensusQueue.d.ts +2 -1
  35. package/lib/consensusQueue.d.ts.map +1 -1
  36. package/lib/consensusQueue.mjs +1 -0
  37. package/lib/consensusQueue.mjs.map +1 -1
  38. package/lib/index.d.ts +4 -4
  39. package/lib/index.d.ts.map +1 -1
  40. package/lib/interfaces.d.ts +9 -0
  41. package/lib/interfaces.d.ts.map +1 -1
  42. package/lib/interfaces.mjs +3 -0
  43. package/lib/interfaces.mjs.map +1 -1
  44. package/lib/ordered-collection-alpha.d.ts +11 -209
  45. package/lib/ordered-collection-beta.d.ts +41 -219
  46. package/lib/ordered-collection-public.d.ts +41 -219
  47. package/lib/ordered-collection-untrimmed.d.ts +13 -0
  48. package/lib/packageVersion.d.ts +1 -1
  49. package/lib/packageVersion.mjs +1 -1
  50. package/lib/packageVersion.mjs.map +1 -1
  51. package/lib/testUtils.d.ts +3 -1
  52. package/lib/testUtils.d.ts.map +1 -1
  53. package/lib/testUtils.mjs +2 -0
  54. package/lib/testUtils.mjs.map +1 -1
  55. package/package.json +18 -27
  56. package/src/consensusOrderedCollection.ts +1 -0
  57. package/src/consensusQueue.ts +1 -0
  58. package/src/interfaces.ts +9 -0
  59. package/src/packageVersion.ts +1 -1
  60. package/src/testUtils.ts +2 -0
package/lib/index.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- export { ConsensusCallback, ConsensusResult, IConsensusOrderedCollection, IConsensusOrderedCollectionEvents, IConsensusOrderedCollectionFactory, IOrderedCollection, ISnapshotable, } from "./interfaces";
6
- export { ConsensusOrderedCollection } from "./consensusOrderedCollection";
7
- export { ConsensusQueue } from "./consensusQueue";
8
- export { acquireAndComplete, waitAcquireAndComplete } from "./testUtils";
5
+ export { ConsensusCallback, ConsensusResult, IConsensusOrderedCollection, IConsensusOrderedCollectionEvents, IConsensusOrderedCollectionFactory, IOrderedCollection, ISnapshotable, } from "./interfaces.mjs";
6
+ export { ConsensusOrderedCollection } from "./consensusOrderedCollection.mjs";
7
+ export { ConsensusQueue } from "./consensusQueue.mjs";
8
+ export { acquireAndComplete, waitAcquireAndComplete } from "./testUtils.mjs";
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,iBAAiB,EACjB,eAAe,EACf,2BAA2B,EAC3B,iCAAiC,EACjC,kCAAkC,EAClC,kBAAkB,EAClB,aAAa,GACb,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EACN,iBAAiB,EACjB,eAAe,EACf,2BAA2B,EAC3B,iCAAiC,EACjC,kCAAkC,EAClC,kBAAkB,EAClB,aAAa,GACb;OACM,EAAE,0BAA0B,EAAE;OAC9B,EAAE,cAAc,EAAE;OAClB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE"}
@@ -4,6 +4,9 @@
4
4
  */
5
5
  import { IFluidDataStoreRuntime, IChannelServices, IChannelAttributes, IChannelFactory } from "@fluidframework/datastore-definitions";
6
6
  import { ISharedObject, ISharedObjectEvents } from "@fluidframework/shared-object-base";
7
+ /**
8
+ * @internal
9
+ */
7
10
  export declare enum ConsensusResult {
8
11
  Release = 0,
9
12
  Complete = 1
@@ -11,6 +14,7 @@ export declare enum ConsensusResult {
11
14
  /**
12
15
  * Callback provided to acquire() and waitAndAcquire() methods.
13
16
  * @returns ConsensusResult indicating whether item was completed, or releases back to the queue.
17
+ * @internal
14
18
  */
15
19
  export type ConsensusCallback<T> = (value: T) => Promise<ConsensusResult>;
16
20
  /**
@@ -18,6 +22,7 @@ export type ConsensusCallback<T> = (value: T) => Promise<ConsensusResult>;
18
22
  *
19
23
  * Extends the base IChannelFactory to return a more definite type of IConsensusOrderedCollection
20
24
  * Use for the runtime to create and load distributed data structure by type name of each channel
25
+ * @internal
21
26
  */
22
27
  export interface IConsensusOrderedCollectionFactory extends IChannelFactory {
23
28
  load(document: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<IConsensusOrderedCollection>;
@@ -25,6 +30,7 @@ export interface IConsensusOrderedCollectionFactory extends IChannelFactory {
25
30
  }
26
31
  /**
27
32
  * Events notifying about addition, acquisition, release and completion of items
33
+ * @internal
28
34
  */
29
35
  export interface IConsensusOrderedCollectionEvents<T> extends ISharedObjectEvents {
30
36
  /**
@@ -74,6 +80,7 @@ export interface IConsensusOrderedCollectionEvents<T> extends ISharedObjectEvent
74
80
  * All objects added to the collection will be cloned (via JSON).
75
81
  * They will not be references to the original input object. Thus changed to
76
82
  * the input object will not reflect the object in the collection.
83
+ * @internal
77
84
  */
78
85
  export interface IConsensusOrderedCollection<T = any> extends ISharedObject<IConsensusOrderedCollectionEvents<T>> {
79
86
  /**
@@ -97,6 +104,7 @@ export interface IConsensusOrderedCollection<T = any> extends ISharedObject<ICon
97
104
  *
98
105
  * TODO: move this to be use in other place
99
106
  * TODO: currently input and output is not symmetrical, can they become symmetrical?
107
+ * @internal
100
108
  */
101
109
  export interface ISnapshotable<T> {
102
110
  asArray(): T[];
@@ -108,6 +116,7 @@ export interface ISnapshotable<T> {
108
116
  * Collection of objects that has deterministic add and remove ordering.
109
117
  * Object implementing this interface can be used as the data backing
110
118
  * for the ConsensusOrderedCollection
119
+ * @internal
111
120
  */
112
121
  export interface IOrderedCollection<T = any> extends ISnapshotable<T> {
113
122
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,sBAAsB,EAC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G;IACH,OAAO,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAE1D;;;OAGG;IACH,cAAc,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9D;AAED;;;;;;GAMG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC;IAC/B,OAAO,IAAI,CAAC,EAAE,CAAC;IAEf,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC;CAC5B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;IACpE;;OAEG;IACH,GAAG,CAAC,KAAK,EAAE,CAAC,OAAE;IAEd;;OAEG;IACH,MAAM,IAAI,CAAC,CAAC;IAEZ;;OAEG;IACH,IAAI,IAAI,MAAM,CAAC;CACf"}
@@ -2,6 +2,9 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
+ /**
6
+ * @internal
7
+ */
5
8
  export var ConsensusResult;
6
9
  (function (ConsensusResult) {
7
10
  ConsensusResult[ConsensusResult["Release"] = 0] = "Release";
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.mjs","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IAC1B,2DAAO,CAAA;IACP,6DAAQ,CAAA;AACT,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIFluidDataStoreRuntime,\n\tIChannelServices,\n\tIChannelAttributes,\n\tIChannelFactory,\n} from \"@fluidframework/datastore-definitions\";\nimport { ISharedObject, ISharedObjectEvents } from \"@fluidframework/shared-object-base\";\n\nexport enum ConsensusResult {\n\tRelease,\n\tComplete,\n}\n\n/**\n * Callback provided to acquire() and waitAndAcquire() methods.\n * @returns ConsensusResult indicating whether item was completed, or releases back to the queue.\n */\nexport type ConsensusCallback<T> = (value: T) => Promise<ConsensusResult>;\n\n/**\n * Consensus Ordered Collection channel factory interface\n *\n * Extends the base IChannelFactory to return a more definite type of IConsensusOrderedCollection\n * Use for the runtime to create and load distributed data structure by type name of each channel\n */\nexport interface IConsensusOrderedCollectionFactory extends IChannelFactory {\n\tload(\n\t\tdocument: IFluidDataStoreRuntime,\n\t\tid: string,\n\t\tservices: IChannelServices,\n\t\tattributes: IChannelAttributes,\n\t): Promise<IConsensusOrderedCollection>;\n\n\tcreate(document: IFluidDataStoreRuntime, id: string): IConsensusOrderedCollection;\n}\n\n/**\n * Events notifying about addition, acquisition, release and completion of items\n */\nexport interface IConsensusOrderedCollectionEvents<T> extends ISharedObjectEvents {\n\t/**\n\t * Event fires when new item is added to the queue or\n\t * an item previously acquired is returned back to a queue (including client loosing connection)\n\t * @param newlyAdded - indicates if it's newly added item of previously acquired item\n\t */\n\t(event: \"add\", listener: (value: T, newlyAdded: boolean) => void): this;\n\t/**\n\t * Event fires when a client acquired an item\n\t * Fires both for locally acquired items, as well as items acquired by remote clients\n\t */\n\t(event: \"acquire\", listener: (value: T, clientId?: string) => void): this;\n\n\t/**\n\t * \"Complete event fires when a client completes an item.\n\t */\n\t(event: \"complete\", listener: (value: T) => void): this;\n\n\t/**\n\t * Event fires when locally acquired item is being released back to the queue.\n\t * Please note that release process is asynchronous, so it takes a while for it to happen\n\t * (\"add\" event will be fired as result of it)\n\t * @param intentional - indicates whether release was intentional (result of returning\n\t * ConsensusResult.Release from callback) or it happened as result of lost connection.\n\t */\n\t(event: \"localRelease\", listener: (value: T, intentional: boolean) => void): this;\n}\n\n/**\n * Consensus Ordered Collection interface\n *\n * An consensus ordered collection is a distributed data structure, which\n * holds a collection of JSON-able or handles, and has a\n * deterministic add/remove order.\n *\n * @remarks\n * The order the server receive the add/remove operation determines the\n * order those operation are applied to the collection. Different clients\n * issuing `add` or `acquire` operations at the same time will be sequenced.\n * The order dictates which `add` is done first, thus determining the order\n * in which it appears in the collection. It also determines which client\n * will get the first removed item, etc. All operations are asynchronous.\n * A function `waitAndAcquire` is provided to wait for and remove an entry in the collection.\n *\n * As a client acquires an item, it processes it and then returns a value (via callback)\n * indicating whether it has completed processing the item, or whether the item should be\n * released back to the collection for another client to process.\n *\n * All objects added to the collection will be cloned (via JSON).\n * They will not be references to the original input object. Thus changed to\n * the input object will not reflect the object in the collection.\n */\nexport interface IConsensusOrderedCollection<T = any>\n\textends ISharedObject<IConsensusOrderedCollectionEvents<T>> {\n\t/**\n\t * Adds a value to the collection\n\t */\n\tadd(value: T): Promise<void>;\n\n\t/**\n\t * Retrieves a value from the collection.\n\t * @returns Returns true (and calls callback with acquired value) if collection was not empty.\n\t * Otherwise returns false.\n\t */\n\tacquire(callback: ConsensusCallback<T>): Promise<boolean>;\n\n\t/**\n\t * Wait for a value to be available and remove it from the consensus collection\n\t * Calls callback with retrieved value.\n\t */\n\twaitAndAcquire(callback: ConsensusCallback<T>): Promise<void>;\n}\n\n/**\n * Interface for object that can be snapshoted\n *\n * TODO: move this to be use in other place\n * TODO: currently input and output is not symmetrical, can they become symmetrical?\n */\nexport interface ISnapshotable<T> {\n\tasArray(): T[];\n\n\tloadFrom(values: T[]): void;\n}\n\n/**\n * Ordered Collection interface\n *\n * Collection of objects that has deterministic add and remove ordering.\n * Object implementing this interface can be used as the data backing\n * for the ConsensusOrderedCollection\n */\nexport interface IOrderedCollection<T = any> extends ISnapshotable<T> {\n\t/**\n\t * Adds a value to the collection\n\t */\n\tadd(value: T);\n\n\t/**\n\t * Retrieves a value from the collection.\n\t */\n\tremove(): T;\n\n\t/**\n\t * Return the size of the collection\n\t */\n\tsize(): number;\n}\n"]}
1
+ {"version":3,"file":"interfaces.mjs","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH;;GAEG;AACH,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IAC1B,2DAAO,CAAA;IACP,6DAAQ,CAAA;AACT,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIFluidDataStoreRuntime,\n\tIChannelServices,\n\tIChannelAttributes,\n\tIChannelFactory,\n} from \"@fluidframework/datastore-definitions\";\nimport { ISharedObject, ISharedObjectEvents } from \"@fluidframework/shared-object-base\";\n\n/**\n * @internal\n */\nexport enum ConsensusResult {\n\tRelease,\n\tComplete,\n}\n\n/**\n * Callback provided to acquire() and waitAndAcquire() methods.\n * @returns ConsensusResult indicating whether item was completed, or releases back to the queue.\n * @internal\n */\nexport type ConsensusCallback<T> = (value: T) => Promise<ConsensusResult>;\n\n/**\n * Consensus Ordered Collection channel factory interface\n *\n * Extends the base IChannelFactory to return a more definite type of IConsensusOrderedCollection\n * Use for the runtime to create and load distributed data structure by type name of each channel\n * @internal\n */\nexport interface IConsensusOrderedCollectionFactory extends IChannelFactory {\n\tload(\n\t\tdocument: IFluidDataStoreRuntime,\n\t\tid: string,\n\t\tservices: IChannelServices,\n\t\tattributes: IChannelAttributes,\n\t): Promise<IConsensusOrderedCollection>;\n\n\tcreate(document: IFluidDataStoreRuntime, id: string): IConsensusOrderedCollection;\n}\n\n/**\n * Events notifying about addition, acquisition, release and completion of items\n * @internal\n */\nexport interface IConsensusOrderedCollectionEvents<T> extends ISharedObjectEvents {\n\t/**\n\t * Event fires when new item is added to the queue or\n\t * an item previously acquired is returned back to a queue (including client loosing connection)\n\t * @param newlyAdded - indicates if it's newly added item of previously acquired item\n\t */\n\t(event: \"add\", listener: (value: T, newlyAdded: boolean) => void): this;\n\t/**\n\t * Event fires when a client acquired an item\n\t * Fires both for locally acquired items, as well as items acquired by remote clients\n\t */\n\t(event: \"acquire\", listener: (value: T, clientId?: string) => void): this;\n\n\t/**\n\t * \"Complete event fires when a client completes an item.\n\t */\n\t(event: \"complete\", listener: (value: T) => void): this;\n\n\t/**\n\t * Event fires when locally acquired item is being released back to the queue.\n\t * Please note that release process is asynchronous, so it takes a while for it to happen\n\t * (\"add\" event will be fired as result of it)\n\t * @param intentional - indicates whether release was intentional (result of returning\n\t * ConsensusResult.Release from callback) or it happened as result of lost connection.\n\t */\n\t(event: \"localRelease\", listener: (value: T, intentional: boolean) => void): this;\n}\n\n/**\n * Consensus Ordered Collection interface\n *\n * An consensus ordered collection is a distributed data structure, which\n * holds a collection of JSON-able or handles, and has a\n * deterministic add/remove order.\n *\n * @remarks\n * The order the server receive the add/remove operation determines the\n * order those operation are applied to the collection. Different clients\n * issuing `add` or `acquire` operations at the same time will be sequenced.\n * The order dictates which `add` is done first, thus determining the order\n * in which it appears in the collection. It also determines which client\n * will get the first removed item, etc. All operations are asynchronous.\n * A function `waitAndAcquire` is provided to wait for and remove an entry in the collection.\n *\n * As a client acquires an item, it processes it and then returns a value (via callback)\n * indicating whether it has completed processing the item, or whether the item should be\n * released back to the collection for another client to process.\n *\n * All objects added to the collection will be cloned (via JSON).\n * They will not be references to the original input object. Thus changed to\n * the input object will not reflect the object in the collection.\n * @internal\n */\nexport interface IConsensusOrderedCollection<T = any>\n\textends ISharedObject<IConsensusOrderedCollectionEvents<T>> {\n\t/**\n\t * Adds a value to the collection\n\t */\n\tadd(value: T): Promise<void>;\n\n\t/**\n\t * Retrieves a value from the collection.\n\t * @returns Returns true (and calls callback with acquired value) if collection was not empty.\n\t * Otherwise returns false.\n\t */\n\tacquire(callback: ConsensusCallback<T>): Promise<boolean>;\n\n\t/**\n\t * Wait for a value to be available and remove it from the consensus collection\n\t * Calls callback with retrieved value.\n\t */\n\twaitAndAcquire(callback: ConsensusCallback<T>): Promise<void>;\n}\n\n/**\n * Interface for object that can be snapshoted\n *\n * TODO: move this to be use in other place\n * TODO: currently input and output is not symmetrical, can they become symmetrical?\n * @internal\n */\nexport interface ISnapshotable<T> {\n\tasArray(): T[];\n\n\tloadFrom(values: T[]): void;\n}\n\n/**\n * Ordered Collection interface\n *\n * Collection of objects that has deterministic add and remove ordering.\n * Object implementing this interface can be used as the data backing\n * for the ConsensusOrderedCollection\n * @internal\n */\nexport interface IOrderedCollection<T = any> extends ISnapshotable<T> {\n\t/**\n\t * Adds a value to the collection\n\t */\n\tadd(value: T);\n\n\t/**\n\t * Retrieves a value from the collection.\n\t */\n\tremove(): T;\n\n\t/**\n\t * Return the size of the collection\n\t */\n\tsize(): number;\n}\n"]}
@@ -10,224 +10,26 @@ import { ISharedObjectEvents } from '@fluidframework/shared-object-base';
10
10
  import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
11
11
  import { SharedObject } from '@fluidframework/shared-object-base';
12
12
 
13
- /**
14
- * Helper method to acquire and complete an item
15
- * Should be used in test code only
16
- */
17
- export declare function acquireAndComplete<T>(collection: IConsensusOrderedCollection<T>): Promise<T | undefined>;
13
+ /* Excluded from this release type: acquireAndComplete */
18
14
 
19
- /**
20
- * Callback provided to acquire() and waitAndAcquire() methods.
21
- * @returns ConsensusResult indicating whether item was completed, or releases back to the queue.
22
- */
23
- export declare type ConsensusCallback<T> = (value: T) => Promise<ConsensusResult>;
15
+ /* Excluded from this release type: ConsensusCallback */
24
16
 
25
- /**
26
- * Implementation of a consensus collection shared object
27
- *
28
- * Implements the shared object's communication, and the semantics around the
29
- * release/complete mechanism following acquire.
30
- *
31
- * Generally not used directly. A derived type will pass in a backing data type
32
- * IOrderedCollection that will define the deterministic add/acquire order and snapshot ability.
33
- */
34
- export declare class ConsensusOrderedCollection<T = any> extends SharedObject<IConsensusOrderedCollectionEvents<T>> implements IConsensusOrderedCollection<T> {
35
- private readonly data;
36
- /**
37
- * The set of values that have been acquired but not yet completed or released
38
- */
39
- private jobTracking;
40
- /**
41
- * Constructs a new consensus collection. If the object is non-local an id and service interfaces will
42
- * be provided
43
- */
44
- protected constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes, data: IOrderedCollection<T>);
45
- /**
46
- * Add a value to the consensus collection.
47
- */
48
- add(value: T): Promise<void>;
49
- /**
50
- * Remove a value from the consensus collection. If the collection is empty, returns false.
51
- * Otherwise calls callback with the value
52
- */
53
- acquire(callback: ConsensusCallback<T>): Promise<boolean>;
54
- /**
55
- * Wait for a value to be available and acquire it from the consensus collection
56
- */
57
- waitAndAcquire(callback: ConsensusCallback<T>): Promise<void>;
58
- protected summarizeCore(serializer: IFluidSerializer): ISummaryTreeWithStats;
59
- protected isActive(): boolean;
60
- protected complete(acquireId: string): Promise<void>;
61
- protected completeCore(acquireId: string): void;
62
- protected release(acquireId: string): void;
63
- protected releaseCore(acquireId: string): void;
64
- /**
65
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.loadCore}
66
- */
67
- protected loadCore(storage: IChannelStorageService): Promise<void>;
68
- protected onDisconnect(): void;
69
- protected processCore(message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown): void;
70
- private submit;
71
- private addCore;
72
- private acquireCore;
73
- private acquireInternal;
74
- private removeClient;
75
- private serializeValue;
76
- private deserializeValue;
77
- protected applyStashedOp(): void;
78
- }
17
+ /* Excluded from this release type: ConsensusOrderedCollection */
79
18
 
80
- /**
81
- * Implementation of a consensus stack
82
- *
83
- * An derived type of ConsensusOrderedCollection with a queue as the backing data and order.
84
- */
85
- export declare class ConsensusQueue<T = any> extends ConsensusOrderedCollection<T> {
86
- /**
87
- * Create a new consensus queue
88
- *
89
- * @param runtime - data store runtime the new consensus queue belongs to
90
- * @param id - optional name of theconsensus queue
91
- * @returns newly create consensus queue (but not attached yet)
92
- */
93
- static create<T = any>(runtime: IFluidDataStoreRuntime, id?: string): ConsensusQueue<T>;
94
- /**
95
- * Get a factory for ConsensusQueue to register with the data store.
96
- *
97
- * @returns a factory that creates and load ConsensusQueue
98
- */
99
- static getFactory(): IChannelFactory;
100
- /**
101
- * Constructs a new consensus queue. If the object is non-local an id and service interfaces will
102
- * be provided
103
- */
104
- constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
105
- }
19
+ /* Excluded from this release type: ConsensusQueue */
106
20
 
107
- export declare enum ConsensusResult {
108
- Release = 0,
109
- Complete = 1
110
- }
21
+ /* Excluded from this release type: ConsensusResult */
111
22
 
112
- /**
113
- * Consensus Ordered Collection interface
114
- *
115
- * An consensus ordered collection is a distributed data structure, which
116
- * holds a collection of JSON-able or handles, and has a
117
- * deterministic add/remove order.
118
- *
119
- * @remarks
120
- * The order the server receive the add/remove operation determines the
121
- * order those operation are applied to the collection. Different clients
122
- * issuing `add` or `acquire` operations at the same time will be sequenced.
123
- * The order dictates which `add` is done first, thus determining the order
124
- * in which it appears in the collection. It also determines which client
125
- * will get the first removed item, etc. All operations are asynchronous.
126
- * A function `waitAndAcquire` is provided to wait for and remove an entry in the collection.
127
- *
128
- * As a client acquires an item, it processes it and then returns a value (via callback)
129
- * indicating whether it has completed processing the item, or whether the item should be
130
- * released back to the collection for another client to process.
131
- *
132
- * All objects added to the collection will be cloned (via JSON).
133
- * They will not be references to the original input object. Thus changed to
134
- * the input object will not reflect the object in the collection.
135
- */
136
- export declare interface IConsensusOrderedCollection<T = any> extends ISharedObject<IConsensusOrderedCollectionEvents<T>> {
137
- /**
138
- * Adds a value to the collection
139
- */
140
- add(value: T): Promise<void>;
141
- /**
142
- * Retrieves a value from the collection.
143
- * @returns Returns true (and calls callback with acquired value) if collection was not empty.
144
- * Otherwise returns false.
145
- */
146
- acquire(callback: ConsensusCallback<T>): Promise<boolean>;
147
- /**
148
- * Wait for a value to be available and remove it from the consensus collection
149
- * Calls callback with retrieved value.
150
- */
151
- waitAndAcquire(callback: ConsensusCallback<T>): Promise<void>;
152
- }
23
+ /* Excluded from this release type: IConsensusOrderedCollection */
153
24
 
154
- /**
155
- * Events notifying about addition, acquisition, release and completion of items
156
- */
157
- export declare interface IConsensusOrderedCollectionEvents<T> extends ISharedObjectEvents {
158
- /**
159
- * Event fires when new item is added to the queue or
160
- * an item previously acquired is returned back to a queue (including client loosing connection)
161
- * @param newlyAdded - indicates if it's newly added item of previously acquired item
162
- */
163
- (event: "add", listener: (value: T, newlyAdded: boolean) => void): this;
164
- /**
165
- * Event fires when a client acquired an item
166
- * Fires both for locally acquired items, as well as items acquired by remote clients
167
- */
168
- (event: "acquire", listener: (value: T, clientId?: string) => void): this;
169
- /**
170
- * "Complete event fires when a client completes an item.
171
- */
172
- (event: "complete", listener: (value: T) => void): this;
173
- /**
174
- * Event fires when locally acquired item is being released back to the queue.
175
- * Please note that release process is asynchronous, so it takes a while for it to happen
176
- * ("add" event will be fired as result of it)
177
- * @param intentional - indicates whether release was intentional (result of returning
178
- * ConsensusResult.Release from callback) or it happened as result of lost connection.
179
- */
180
- (event: "localRelease", listener: (value: T, intentional: boolean) => void): this;
181
- }
25
+ /* Excluded from this release type: IConsensusOrderedCollectionEvents */
182
26
 
183
- /**
184
- * Consensus Ordered Collection channel factory interface
185
- *
186
- * Extends the base IChannelFactory to return a more definite type of IConsensusOrderedCollection
187
- * Use for the runtime to create and load distributed data structure by type name of each channel
188
- */
189
- export declare interface IConsensusOrderedCollectionFactory extends IChannelFactory {
190
- load(document: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<IConsensusOrderedCollection>;
191
- create(document: IFluidDataStoreRuntime, id: string): IConsensusOrderedCollection;
192
- }
27
+ /* Excluded from this release type: IConsensusOrderedCollectionFactory */
193
28
 
194
- /**
195
- * Ordered Collection interface
196
- *
197
- * Collection of objects that has deterministic add and remove ordering.
198
- * Object implementing this interface can be used as the data backing
199
- * for the ConsensusOrderedCollection
200
- */
201
- export declare interface IOrderedCollection<T = any> extends ISnapshotable<T> {
202
- /**
203
- * Adds a value to the collection
204
- */
205
- add(value: T): any;
206
- /**
207
- * Retrieves a value from the collection.
208
- */
209
- remove(): T;
210
- /**
211
- * Return the size of the collection
212
- */
213
- size(): number;
214
- }
29
+ /* Excluded from this release type: IOrderedCollection */
215
30
 
216
- /**
217
- * Interface for object that can be snapshoted
218
- *
219
- * TODO: move this to be use in other place
220
- * TODO: currently input and output is not symmetrical, can they become symmetrical?
221
- */
222
- export declare interface ISnapshotable<T> {
223
- asArray(): T[];
224
- loadFrom(values: T[]): void;
225
- }
31
+ /* Excluded from this release type: ISnapshotable */
226
32
 
227
- /**
228
- * Helper method to acquire and complete an item
229
- * Should be used in test code only
230
- */
231
- export declare function waitAcquireAndComplete<T>(collection: IConsensusOrderedCollection<T>): Promise<T>;
33
+ /* Excluded from this release type: waitAcquireAndComplete */
232
34
 
233
35
  export { }
@@ -10,224 +10,46 @@ import { ISharedObjectEvents } from '@fluidframework/shared-object-base';
10
10
  import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
11
11
  import { SharedObject } from '@fluidframework/shared-object-base';
12
12
 
13
- /**
14
- * Helper method to acquire and complete an item
15
- * Should be used in test code only
16
- */
17
- export declare function acquireAndComplete<T>(collection: IConsensusOrderedCollection<T>): Promise<T | undefined>;
18
-
19
- /**
20
- * Callback provided to acquire() and waitAndAcquire() methods.
21
- * @returns ConsensusResult indicating whether item was completed, or releases back to the queue.
22
- */
23
- export declare type ConsensusCallback<T> = (value: T) => Promise<ConsensusResult>;
24
-
25
- /**
26
- * Implementation of a consensus collection shared object
27
- *
28
- * Implements the shared object's communication, and the semantics around the
29
- * release/complete mechanism following acquire.
30
- *
31
- * Generally not used directly. A derived type will pass in a backing data type
32
- * IOrderedCollection that will define the deterministic add/acquire order and snapshot ability.
33
- */
34
- export declare class ConsensusOrderedCollection<T = any> extends SharedObject<IConsensusOrderedCollectionEvents<T>> implements IConsensusOrderedCollection<T> {
35
- private readonly data;
36
- /**
37
- * The set of values that have been acquired but not yet completed or released
38
- */
39
- private jobTracking;
40
- /**
41
- * Constructs a new consensus collection. If the object is non-local an id and service interfaces will
42
- * be provided
43
- */
44
- protected constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes, data: IOrderedCollection<T>);
45
- /**
46
- * Add a value to the consensus collection.
47
- */
48
- add(value: T): Promise<void>;
49
- /**
50
- * Remove a value from the consensus collection. If the collection is empty, returns false.
51
- * Otherwise calls callback with the value
52
- */
53
- acquire(callback: ConsensusCallback<T>): Promise<boolean>;
54
- /**
55
- * Wait for a value to be available and acquire it from the consensus collection
56
- */
57
- waitAndAcquire(callback: ConsensusCallback<T>): Promise<void>;
58
- protected summarizeCore(serializer: IFluidSerializer): ISummaryTreeWithStats;
59
- protected isActive(): boolean;
60
- protected complete(acquireId: string): Promise<void>;
61
- protected completeCore(acquireId: string): void;
62
- protected release(acquireId: string): void;
63
- protected releaseCore(acquireId: string): void;
64
- /**
65
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.loadCore}
66
- */
67
- protected loadCore(storage: IChannelStorageService): Promise<void>;
68
- protected onDisconnect(): void;
69
- protected processCore(message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown): void;
70
- private submit;
71
- private addCore;
72
- private acquireCore;
73
- private acquireInternal;
74
- private removeClient;
75
- private serializeValue;
76
- private deserializeValue;
77
- protected applyStashedOp(): void;
78
- }
79
-
80
- /**
81
- * Implementation of a consensus stack
82
- *
83
- * An derived type of ConsensusOrderedCollection with a queue as the backing data and order.
84
- */
85
- export declare class ConsensusQueue<T = any> extends ConsensusOrderedCollection<T> {
86
- /**
87
- * Create a new consensus queue
88
- *
89
- * @param runtime - data store runtime the new consensus queue belongs to
90
- * @param id - optional name of theconsensus queue
91
- * @returns newly create consensus queue (but not attached yet)
92
- */
93
- static create<T = any>(runtime: IFluidDataStoreRuntime, id?: string): ConsensusQueue<T>;
94
- /**
95
- * Get a factory for ConsensusQueue to register with the data store.
96
- *
97
- * @returns a factory that creates and load ConsensusQueue
98
- */
99
- static getFactory(): IChannelFactory;
100
- /**
101
- * Constructs a new consensus queue. If the object is non-local an id and service interfaces will
102
- * be provided
103
- */
104
- constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
105
- }
106
-
107
- export declare enum ConsensusResult {
108
- Release = 0,
109
- Complete = 1
110
- }
111
-
112
- /**
113
- * Consensus Ordered Collection interface
114
- *
115
- * An consensus ordered collection is a distributed data structure, which
116
- * holds a collection of JSON-able or handles, and has a
117
- * deterministic add/remove order.
118
- *
119
- * @remarks
120
- * The order the server receive the add/remove operation determines the
121
- * order those operation are applied to the collection. Different clients
122
- * issuing `add` or `acquire` operations at the same time will be sequenced.
123
- * The order dictates which `add` is done first, thus determining the order
124
- * in which it appears in the collection. It also determines which client
125
- * will get the first removed item, etc. All operations are asynchronous.
126
- * A function `waitAndAcquire` is provided to wait for and remove an entry in the collection.
127
- *
128
- * As a client acquires an item, it processes it and then returns a value (via callback)
129
- * indicating whether it has completed processing the item, or whether the item should be
130
- * released back to the collection for another client to process.
131
- *
132
- * All objects added to the collection will be cloned (via JSON).
133
- * They will not be references to the original input object. Thus changed to
134
- * the input object will not reflect the object in the collection.
135
- */
136
- export declare interface IConsensusOrderedCollection<T = any> extends ISharedObject<IConsensusOrderedCollectionEvents<T>> {
137
- /**
138
- * Adds a value to the collection
139
- */
140
- add(value: T): Promise<void>;
141
- /**
142
- * Retrieves a value from the collection.
143
- * @returns Returns true (and calls callback with acquired value) if collection was not empty.
144
- * Otherwise returns false.
145
- */
146
- acquire(callback: ConsensusCallback<T>): Promise<boolean>;
147
- /**
148
- * Wait for a value to be available and remove it from the consensus collection
149
- * Calls callback with retrieved value.
150
- */
151
- waitAndAcquire(callback: ConsensusCallback<T>): Promise<void>;
152
- }
153
-
154
- /**
155
- * Events notifying about addition, acquisition, release and completion of items
156
- */
157
- export declare interface IConsensusOrderedCollectionEvents<T> extends ISharedObjectEvents {
158
- /**
159
- * Event fires when new item is added to the queue or
160
- * an item previously acquired is returned back to a queue (including client loosing connection)
161
- * @param newlyAdded - indicates if it's newly added item of previously acquired item
162
- */
163
- (event: "add", listener: (value: T, newlyAdded: boolean) => void): this;
164
- /**
165
- * Event fires when a client acquired an item
166
- * Fires both for locally acquired items, as well as items acquired by remote clients
167
- */
168
- (event: "acquire", listener: (value: T, clientId?: string) => void): this;
169
- /**
170
- * "Complete event fires when a client completes an item.
171
- */
172
- (event: "complete", listener: (value: T) => void): this;
173
- /**
174
- * Event fires when locally acquired item is being released back to the queue.
175
- * Please note that release process is asynchronous, so it takes a while for it to happen
176
- * ("add" event will be fired as result of it)
177
- * @param intentional - indicates whether release was intentional (result of returning
178
- * ConsensusResult.Release from callback) or it happened as result of lost connection.
179
- */
180
- (event: "localRelease", listener: (value: T, intentional: boolean) => void): this;
181
- }
182
-
183
- /**
184
- * Consensus Ordered Collection channel factory interface
185
- *
186
- * Extends the base IChannelFactory to return a more definite type of IConsensusOrderedCollection
187
- * Use for the runtime to create and load distributed data structure by type name of each channel
188
- */
189
- export declare interface IConsensusOrderedCollectionFactory extends IChannelFactory {
190
- load(document: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<IConsensusOrderedCollection>;
191
- create(document: IFluidDataStoreRuntime, id: string): IConsensusOrderedCollection;
192
- }
193
-
194
- /**
195
- * Ordered Collection interface
196
- *
197
- * Collection of objects that has deterministic add and remove ordering.
198
- * Object implementing this interface can be used as the data backing
199
- * for the ConsensusOrderedCollection
200
- */
201
- export declare interface IOrderedCollection<T = any> extends ISnapshotable<T> {
202
- /**
203
- * Adds a value to the collection
204
- */
205
- add(value: T): any;
206
- /**
207
- * Retrieves a value from the collection.
208
- */
209
- remove(): T;
210
- /**
211
- * Return the size of the collection
212
- */
213
- size(): number;
214
- }
215
-
216
- /**
217
- * Interface for object that can be snapshoted
218
- *
219
- * TODO: move this to be use in other place
220
- * TODO: currently input and output is not symmetrical, can they become symmetrical?
221
- */
222
- export declare interface ISnapshotable<T> {
223
- asArray(): T[];
224
- loadFrom(values: T[]): void;
225
- }
226
-
227
- /**
228
- * Helper method to acquire and complete an item
229
- * Should be used in test code only
230
- */
231
- export declare function waitAcquireAndComplete<T>(collection: IConsensusOrderedCollection<T>): Promise<T>;
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: ConsensusResult */
22
+
23
+ /* Excluded from this release type: IChannelAttributes */
24
+
25
+ /* Excluded from this release type: IChannelFactory */
26
+
27
+ /* Excluded from this release type: IChannelServices */
28
+
29
+ /* Excluded from this release type: IChannelStorageService */
30
+
31
+ /* Excluded from this release type: IConsensusOrderedCollection */
32
+
33
+ /* Excluded from this release type: IConsensusOrderedCollectionEvents */
34
+
35
+ /* Excluded from this release type: IConsensusOrderedCollectionFactory */
36
+
37
+ /* Excluded from this release type: IFluidDataStoreRuntime */
38
+
39
+ /* Excluded from this release type: IFluidSerializer */
40
+
41
+ /* Excluded from this release type: IOrderedCollection */
42
+
43
+ /* Excluded from this release type: ISharedObject */
44
+
45
+ /* Excluded from this release type: ISharedObjectEvents */
46
+
47
+ /* Excluded from this release type: ISnapshotable */
48
+
49
+ /* Excluded from this release type: ISummaryTreeWithStats */
50
+
51
+ /* Excluded from this release type: SharedObject */
52
+
53
+ /* Excluded from this release type: waitAcquireAndComplete */
232
54
 
233
55
  export { }