@fluidframework/shared-summary-block 2.0.0-internal.7.1.1 → 2.0.0-internal.7.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @fluidframework/shared-summary-block
2
2
 
3
+ ## 2.0.0-internal.7.2.0
4
+
5
+ Dependency updates only.
6
+
3
7
  ## 2.0.0-internal.7.1.0
4
8
 
5
9
  Dependency updates only.
@@ -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/shared-summary-block";
8
- export declare const pkgVersion = "2.0.0-internal.7.1.1";
8
+ export declare const pkgVersion = "2.0.0-internal.7.2.1";
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/shared-summary-block";
11
- exports.pkgVersion = "2.0.0-internal.7.1.1";
11
+ exports.pkgVersion = "2.0.0-internal.7.2.1";
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,sCAAsC,CAAC;AACjD,QAAA,UAAU,GAAG,sBAAsB,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/shared-summary-block\";\nexport const pkgVersion = \"2.0.0-internal.7.1.1\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,sCAAsC,CAAC;AACjD,QAAA,UAAU,GAAG,sBAAsB,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/shared-summary-block\";\nexport const pkgVersion = \"2.0.0-internal.7.2.1\";\n"]}
@@ -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/shared-summary-block";
8
- export declare const pkgVersion = "2.0.0-internal.7.1.1";
8
+ export declare const pkgVersion = "2.0.0-internal.7.2.1";
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/shared-summary-block";
8
- export const pkgVersion = "2.0.0-internal.7.1.1";
8
+ export const pkgVersion = "2.0.0-internal.7.2.1";
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,sCAAsC,CAAC;AAC9D,MAAM,CAAC,MAAM,UAAU,GAAG,sBAAsB,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/shared-summary-block\";\nexport const pkgVersion = \"2.0.0-internal.7.1.1\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,sCAAsC,CAAC;AAC9D,MAAM,CAAC,MAAM,UAAU,GAAG,sBAAsB,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/shared-summary-block\";\nexport const pkgVersion = \"2.0.0-internal.7.2.1\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/shared-summary-block",
3
- "version": "2.0.0-internal.7.1.1",
3
+ "version": "2.0.0-internal.7.2.1",
4
4
  "description": "A DDS that does not generate ops but is part of summary",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -35,28 +35,27 @@
35
35
  "temp-directory": "nyc/.nyc_output"
36
36
  },
37
37
  "dependencies": {
38
- "@fluidframework/core-interfaces": ">=2.0.0-internal.7.1.1 <2.0.0-internal.7.2.0",
39
- "@fluidframework/datastore-definitions": ">=2.0.0-internal.7.1.1 <2.0.0-internal.7.2.0",
40
- "@fluidframework/driver-utils": ">=2.0.0-internal.7.1.1 <2.0.0-internal.7.2.0",
38
+ "@fluidframework/core-interfaces": ">=2.0.0-internal.7.2.1 <2.0.0-internal.7.3.0",
39
+ "@fluidframework/datastore-definitions": ">=2.0.0-internal.7.2.1 <2.0.0-internal.7.3.0",
40
+ "@fluidframework/driver-utils": ">=2.0.0-internal.7.2.1 <2.0.0-internal.7.3.0",
41
41
  "@fluidframework/protocol-definitions": "^3.0.0",
42
- "@fluidframework/runtime-definitions": ">=2.0.0-internal.7.1.1 <2.0.0-internal.7.2.0",
43
- "@fluidframework/shared-object-base": ">=2.0.0-internal.7.1.1 <2.0.0-internal.7.2.0"
42
+ "@fluidframework/runtime-definitions": ">=2.0.0-internal.7.2.1 <2.0.0-internal.7.3.0",
43
+ "@fluidframework/shared-object-base": ">=2.0.0-internal.7.2.1 <2.0.0-internal.7.3.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@fluid-tools/build-cli": "^0.25.0",
47
- "@fluidframework/build-common": "^2.0.1",
48
- "@fluidframework/build-tools": "^0.25.0",
46
+ "@fluid-tools/build-cli": "^0.26.1",
47
+ "@fluidframework/build-common": "^2.0.3",
48
+ "@fluidframework/build-tools": "^0.26.1",
49
49
  "@fluidframework/eslint-config-fluid": "^3.0.0",
50
- "@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.1.1 <2.0.0-internal.7.2.0",
50
+ "@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.2.1 <2.0.0-internal.7.3.0",
51
51
  "@fluidframework/shared-summary-block-previous": "npm:@fluidframework/shared-summary-block@2.0.0-internal.7.1.0",
52
- "@fluidframework/test-runtime-utils": ">=2.0.0-internal.7.1.1 <2.0.0-internal.7.2.0",
52
+ "@fluidframework/test-runtime-utils": ">=2.0.0-internal.7.2.1 <2.0.0-internal.7.3.0",
53
53
  "@microsoft/api-extractor": "^7.37.0",
54
54
  "@types/benchmark": "^2.1.0",
55
55
  "@types/mocha": "^9.1.1",
56
56
  "@types/node": "^16.18.38",
57
57
  "benchmark": "^2.1.4",
58
58
  "c8": "^7.7.1",
59
- "copyfiles": "^2.4.1",
60
59
  "cross-env": "^7.0.3",
61
60
  "eslint": "~8.50.0",
62
61
  "mocha": "^10.2.0",
@@ -80,7 +79,7 @@
80
79
  "build:genver": "gen-version",
81
80
  "build:test": "tsc --project ./src/test/tsconfig.json",
82
81
  "ci:build:docs": "api-extractor run",
83
- "clean": "rimraf --glob 'dist' 'lib' '*.tsbuildinfo' '*.build.log' '_api-extractor-temp' 'nyc'",
82
+ "clean": "rimraf --glob dist lib \"*.tsbuildinfo\" \"*.build.log\" _api-extractor-temp nyc",
84
83
  "eslint": "eslint --format stylish src",
85
84
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
86
85
  "format": "npm run prettier:fix",
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/shared-summary-block";
9
- export const pkgVersion = "2.0.0-internal.7.1.1";
9
+ export const pkgVersion = "2.0.0-internal.7.2.1";
@@ -1,130 +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 { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
10
- import { Jsonable } from '@fluidframework/datastore-definitions';
11
- import { SharedObject } from '@fluidframework/shared-object-base';
12
-
13
- /**
14
- * Shared summary block interface. A shared summary block is part of the summary but it does not generate any ops.
15
- * The set on this interface must only be called in response to a remote op. Basically, if we replay same ops,
16
- * the set of calls on this interface to set data should be the same. This is critical because the object does not
17
- * generate ops of its own, but relies on the above principle to maintain eventual consistency and to summarize.
18
- *
19
- * @public
20
- */
21
- export declare interface ISharedSummaryBlock extends ISharedObject {
22
- /**
23
- * Retrieves the given key from the map.
24
- * @param key - Key to retrieve from.
25
- * @returns The stored value, or undefined if the key is not set.
26
- */
27
- get<T>(key: string): Jsonable<T>;
28
- /**
29
- * Sets the value stored at key to the provided value.
30
- * @param key - Key to set at.
31
- * @param value - Jsonable type value to set.
32
- */
33
- set<T>(key: string, value: Jsonable<T>): void;
34
- }
35
-
36
- /**
37
- * Implementation of a shared summary block. It does not generate any ops. It is only part of the summary.
38
- * Data should be set in this object in response to a remote op.
39
- *
40
- * @public
41
- */
42
- export declare class SharedSummaryBlock extends SharedObject implements ISharedSummaryBlock {
43
- /**
44
- * Create a new shared summary block
45
- *
46
- * @param runtime - data store runtime the new shared summary block belongs to.
47
- * @param id - optional name of the shared summary block.
48
- * @returns newly created shared summary block (but not attached yet).
49
- */
50
- static create(runtime: IFluidDataStoreRuntime, id?: string): SharedSummaryBlock;
51
- /**
52
- * Get a factory for SharedSummaryBlock to register with the data store.
53
- *
54
- * @returns a factory that creates and loads SharedSummaryBlock.
55
- */
56
- static getFactory(): IChannelFactory;
57
- /**
58
- * The data held by this object.
59
- */
60
- private readonly data;
61
- /**
62
- * Constructs a new SharedSummaryBlock. If the object is non-local, an id and service interfaces will
63
- * be provided.
64
- *
65
- * @param id - optional name of the shared summary block.
66
- * @param runtime - data store runtime thee object belongs to.
67
- * @param attributes - The attributes for the object.
68
- */
69
- constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
70
- /**
71
- * {@inheritDoc ISharedSummaryBlock.get}
72
- */
73
- get<T>(key: string): Jsonable<T>;
74
- /**
75
- * {@inheritDoc ISharedSummaryBlock.set}
76
- */
77
- set<T>(key: string, value: Jsonable<T>): void;
78
- /**
79
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.summarizeCore}
80
- */
81
- protected summarizeCore(serializer: IFluidSerializer): ISummaryTreeWithStats;
82
- /**
83
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.loadCore}
84
- */
85
- protected loadCore(storage: IChannelStorageService): Promise<void>;
86
- /**
87
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.onDisconnect}
88
- */
89
- protected onDisconnect(): void;
90
- /**
91
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.processCore}
92
- */
93
- protected processCore(message: ISequencedDocumentMessage, local: boolean): void;
94
- protected applyStashedOp(): void;
95
- }
96
-
97
- /**
98
- * The factory that defines the shared summary block.
99
- *
100
- * @sealed
101
- * @public
102
- */
103
- export declare class SharedSummaryBlockFactory implements IChannelFactory {
104
- /**
105
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory."type"}
106
- */
107
- static readonly Type = "https://graph.microsoft.com/types/shared-summary-block";
108
- /**
109
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.attributes}
110
- */
111
- static readonly Attributes: IChannelAttributes;
112
- /**
113
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory."type"}
114
- */
115
- get type(): string;
116
- /**
117
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.attributes}
118
- */
119
- get attributes(): IChannelAttributes;
120
- /**
121
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
122
- */
123
- load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedObject>;
124
- /**
125
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.create}
126
- */
127
- create(runtime: IFluidDataStoreRuntime, id: string): ISharedObject;
128
- }
129
-
130
- export { }
@@ -1,130 +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 { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
10
- import { Jsonable } from '@fluidframework/datastore-definitions';
11
- import { SharedObject } from '@fluidframework/shared-object-base';
12
-
13
- /**
14
- * Shared summary block interface. A shared summary block is part of the summary but it does not generate any ops.
15
- * The set on this interface must only be called in response to a remote op. Basically, if we replay same ops,
16
- * the set of calls on this interface to set data should be the same. This is critical because the object does not
17
- * generate ops of its own, but relies on the above principle to maintain eventual consistency and to summarize.
18
- *
19
- * @public
20
- */
21
- export declare interface ISharedSummaryBlock extends ISharedObject {
22
- /**
23
- * Retrieves the given key from the map.
24
- * @param key - Key to retrieve from.
25
- * @returns The stored value, or undefined if the key is not set.
26
- */
27
- get<T>(key: string): Jsonable<T>;
28
- /**
29
- * Sets the value stored at key to the provided value.
30
- * @param key - Key to set at.
31
- * @param value - Jsonable type value to set.
32
- */
33
- set<T>(key: string, value: Jsonable<T>): void;
34
- }
35
-
36
- /**
37
- * Implementation of a shared summary block. It does not generate any ops. It is only part of the summary.
38
- * Data should be set in this object in response to a remote op.
39
- *
40
- * @public
41
- */
42
- export declare class SharedSummaryBlock extends SharedObject implements ISharedSummaryBlock {
43
- /**
44
- * Create a new shared summary block
45
- *
46
- * @param runtime - data store runtime the new shared summary block belongs to.
47
- * @param id - optional name of the shared summary block.
48
- * @returns newly created shared summary block (but not attached yet).
49
- */
50
- static create(runtime: IFluidDataStoreRuntime, id?: string): SharedSummaryBlock;
51
- /**
52
- * Get a factory for SharedSummaryBlock to register with the data store.
53
- *
54
- * @returns a factory that creates and loads SharedSummaryBlock.
55
- */
56
- static getFactory(): IChannelFactory;
57
- /**
58
- * The data held by this object.
59
- */
60
- private readonly data;
61
- /**
62
- * Constructs a new SharedSummaryBlock. If the object is non-local, an id and service interfaces will
63
- * be provided.
64
- *
65
- * @param id - optional name of the shared summary block.
66
- * @param runtime - data store runtime thee object belongs to.
67
- * @param attributes - The attributes for the object.
68
- */
69
- constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
70
- /**
71
- * {@inheritDoc ISharedSummaryBlock.get}
72
- */
73
- get<T>(key: string): Jsonable<T>;
74
- /**
75
- * {@inheritDoc ISharedSummaryBlock.set}
76
- */
77
- set<T>(key: string, value: Jsonable<T>): void;
78
- /**
79
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.summarizeCore}
80
- */
81
- protected summarizeCore(serializer: IFluidSerializer): ISummaryTreeWithStats;
82
- /**
83
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.loadCore}
84
- */
85
- protected loadCore(storage: IChannelStorageService): Promise<void>;
86
- /**
87
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.onDisconnect}
88
- */
89
- protected onDisconnect(): void;
90
- /**
91
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.processCore}
92
- */
93
- protected processCore(message: ISequencedDocumentMessage, local: boolean): void;
94
- protected applyStashedOp(): void;
95
- }
96
-
97
- /**
98
- * The factory that defines the shared summary block.
99
- *
100
- * @sealed
101
- * @public
102
- */
103
- export declare class SharedSummaryBlockFactory implements IChannelFactory {
104
- /**
105
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory."type"}
106
- */
107
- static readonly Type = "https://graph.microsoft.com/types/shared-summary-block";
108
- /**
109
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.attributes}
110
- */
111
- static readonly Attributes: IChannelAttributes;
112
- /**
113
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory."type"}
114
- */
115
- get type(): string;
116
- /**
117
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.attributes}
118
- */
119
- get attributes(): IChannelAttributes;
120
- /**
121
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
122
- */
123
- load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedObject>;
124
- /**
125
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.create}
126
- */
127
- create(runtime: IFluidDataStoreRuntime, id: string): ISharedObject;
128
- }
129
-
130
- export { }
@@ -1,130 +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 { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
10
- import { Jsonable } from '@fluidframework/datastore-definitions';
11
- import { SharedObject } from '@fluidframework/shared-object-base';
12
-
13
- /**
14
- * Shared summary block interface. A shared summary block is part of the summary but it does not generate any ops.
15
- * The set on this interface must only be called in response to a remote op. Basically, if we replay same ops,
16
- * the set of calls on this interface to set data should be the same. This is critical because the object does not
17
- * generate ops of its own, but relies on the above principle to maintain eventual consistency and to summarize.
18
- *
19
- * @public
20
- */
21
- export declare interface ISharedSummaryBlock extends ISharedObject {
22
- /**
23
- * Retrieves the given key from the map.
24
- * @param key - Key to retrieve from.
25
- * @returns The stored value, or undefined if the key is not set.
26
- */
27
- get<T>(key: string): Jsonable<T>;
28
- /**
29
- * Sets the value stored at key to the provided value.
30
- * @param key - Key to set at.
31
- * @param value - Jsonable type value to set.
32
- */
33
- set<T>(key: string, value: Jsonable<T>): void;
34
- }
35
-
36
- /**
37
- * Implementation of a shared summary block. It does not generate any ops. It is only part of the summary.
38
- * Data should be set in this object in response to a remote op.
39
- *
40
- * @public
41
- */
42
- export declare class SharedSummaryBlock extends SharedObject implements ISharedSummaryBlock {
43
- /**
44
- * Create a new shared summary block
45
- *
46
- * @param runtime - data store runtime the new shared summary block belongs to.
47
- * @param id - optional name of the shared summary block.
48
- * @returns newly created shared summary block (but not attached yet).
49
- */
50
- static create(runtime: IFluidDataStoreRuntime, id?: string): SharedSummaryBlock;
51
- /**
52
- * Get a factory for SharedSummaryBlock to register with the data store.
53
- *
54
- * @returns a factory that creates and loads SharedSummaryBlock.
55
- */
56
- static getFactory(): IChannelFactory;
57
- /**
58
- * The data held by this object.
59
- */
60
- private readonly data;
61
- /**
62
- * Constructs a new SharedSummaryBlock. If the object is non-local, an id and service interfaces will
63
- * be provided.
64
- *
65
- * @param id - optional name of the shared summary block.
66
- * @param runtime - data store runtime thee object belongs to.
67
- * @param attributes - The attributes for the object.
68
- */
69
- constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
70
- /**
71
- * {@inheritDoc ISharedSummaryBlock.get}
72
- */
73
- get<T>(key: string): Jsonable<T>;
74
- /**
75
- * {@inheritDoc ISharedSummaryBlock.set}
76
- */
77
- set<T>(key: string, value: Jsonable<T>): void;
78
- /**
79
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.summarizeCore}
80
- */
81
- protected summarizeCore(serializer: IFluidSerializer): ISummaryTreeWithStats;
82
- /**
83
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.loadCore}
84
- */
85
- protected loadCore(storage: IChannelStorageService): Promise<void>;
86
- /**
87
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.onDisconnect}
88
- */
89
- protected onDisconnect(): void;
90
- /**
91
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.processCore}
92
- */
93
- protected processCore(message: ISequencedDocumentMessage, local: boolean): void;
94
- protected applyStashedOp(): void;
95
- }
96
-
97
- /**
98
- * The factory that defines the shared summary block.
99
- *
100
- * @sealed
101
- * @public
102
- */
103
- export declare class SharedSummaryBlockFactory implements IChannelFactory {
104
- /**
105
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory."type"}
106
- */
107
- static readonly Type = "https://graph.microsoft.com/types/shared-summary-block";
108
- /**
109
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.attributes}
110
- */
111
- static readonly Attributes: IChannelAttributes;
112
- /**
113
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory."type"}
114
- */
115
- get type(): string;
116
- /**
117
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.attributes}
118
- */
119
- get attributes(): IChannelAttributes;
120
- /**
121
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
122
- */
123
- load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedObject>;
124
- /**
125
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.create}
126
- */
127
- create(runtime: IFluidDataStoreRuntime, id: string): ISharedObject;
128
- }
129
-
130
- export { }
@@ -1,130 +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 { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
10
- import { Jsonable } from '@fluidframework/datastore-definitions';
11
- import { SharedObject } from '@fluidframework/shared-object-base';
12
-
13
- /**
14
- * Shared summary block interface. A shared summary block is part of the summary but it does not generate any ops.
15
- * The set on this interface must only be called in response to a remote op. Basically, if we replay same ops,
16
- * the set of calls on this interface to set data should be the same. This is critical because the object does not
17
- * generate ops of its own, but relies on the above principle to maintain eventual consistency and to summarize.
18
- *
19
- * @public
20
- */
21
- export declare interface ISharedSummaryBlock extends ISharedObject {
22
- /**
23
- * Retrieves the given key from the map.
24
- * @param key - Key to retrieve from.
25
- * @returns The stored value, or undefined if the key is not set.
26
- */
27
- get<T>(key: string): Jsonable<T>;
28
- /**
29
- * Sets the value stored at key to the provided value.
30
- * @param key - Key to set at.
31
- * @param value - Jsonable type value to set.
32
- */
33
- set<T>(key: string, value: Jsonable<T>): void;
34
- }
35
-
36
- /**
37
- * Implementation of a shared summary block. It does not generate any ops. It is only part of the summary.
38
- * Data should be set in this object in response to a remote op.
39
- *
40
- * @public
41
- */
42
- export declare class SharedSummaryBlock extends SharedObject implements ISharedSummaryBlock {
43
- /**
44
- * Create a new shared summary block
45
- *
46
- * @param runtime - data store runtime the new shared summary block belongs to.
47
- * @param id - optional name of the shared summary block.
48
- * @returns newly created shared summary block (but not attached yet).
49
- */
50
- static create(runtime: IFluidDataStoreRuntime, id?: string): SharedSummaryBlock;
51
- /**
52
- * Get a factory for SharedSummaryBlock to register with the data store.
53
- *
54
- * @returns a factory that creates and loads SharedSummaryBlock.
55
- */
56
- static getFactory(): IChannelFactory;
57
- /**
58
- * The data held by this object.
59
- */
60
- private readonly data;
61
- /**
62
- * Constructs a new SharedSummaryBlock. If the object is non-local, an id and service interfaces will
63
- * be provided.
64
- *
65
- * @param id - optional name of the shared summary block.
66
- * @param runtime - data store runtime thee object belongs to.
67
- * @param attributes - The attributes for the object.
68
- */
69
- constructor(id: string, runtime: IFluidDataStoreRuntime, attributes: IChannelAttributes);
70
- /**
71
- * {@inheritDoc ISharedSummaryBlock.get}
72
- */
73
- get<T>(key: string): Jsonable<T>;
74
- /**
75
- * {@inheritDoc ISharedSummaryBlock.set}
76
- */
77
- set<T>(key: string, value: Jsonable<T>): void;
78
- /**
79
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.summarizeCore}
80
- */
81
- protected summarizeCore(serializer: IFluidSerializer): ISummaryTreeWithStats;
82
- /**
83
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.loadCore}
84
- */
85
- protected loadCore(storage: IChannelStorageService): Promise<void>;
86
- /**
87
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.onDisconnect}
88
- */
89
- protected onDisconnect(): void;
90
- /**
91
- * {@inheritDoc @fluidframework/shared-object-base#SharedObject.processCore}
92
- */
93
- protected processCore(message: ISequencedDocumentMessage, local: boolean): void;
94
- protected applyStashedOp(): void;
95
- }
96
-
97
- /**
98
- * The factory that defines the shared summary block.
99
- *
100
- * @sealed
101
- * @public
102
- */
103
- export declare class SharedSummaryBlockFactory implements IChannelFactory {
104
- /**
105
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory."type"}
106
- */
107
- static readonly Type = "https://graph.microsoft.com/types/shared-summary-block";
108
- /**
109
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.attributes}
110
- */
111
- static readonly Attributes: IChannelAttributes;
112
- /**
113
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory."type"}
114
- */
115
- get type(): string;
116
- /**
117
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.attributes}
118
- */
119
- get attributes(): IChannelAttributes;
120
- /**
121
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}
122
- */
123
- load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, attributes: IChannelAttributes): Promise<ISharedObject>;
124
- /**
125
- * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.create}
126
- */
127
- create(runtime: IFluidDataStoreRuntime, id: string): ISharedObject;
128
- }
129
-
130
- export { }