@fluidframework/container-loader 2.0.0-rc.2.0.2 → 2.0.0-rc.3.0.0
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 +33 -0
- package/api-report/container-loader.api.md +13 -13
- package/dist/attachment.d.ts +6 -9
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.js +5 -5
- package/dist/attachment.js.map +1 -1
- package/dist/audience.d.ts +1 -1
- package/dist/audience.d.ts.map +1 -1
- package/dist/audience.js +4 -4
- package/dist/audience.js.map +1 -1
- package/dist/catchUpMonitor.d.ts +1 -1
- package/dist/catchUpMonitor.d.ts.map +1 -1
- package/dist/catchUpMonitor.js +2 -2
- package/dist/catchUpMonitor.js.map +1 -1
- package/dist/connectionManager.d.ts +4 -4
- package/dist/connectionManager.d.ts.map +1 -1
- package/dist/connectionManager.js +48 -43
- package/dist/connectionManager.js.map +1 -1
- package/dist/connectionStateHandler.d.ts +3 -3
- package/dist/connectionStateHandler.d.ts.map +1 -1
- package/dist/connectionStateHandler.js +27 -27
- package/dist/connectionStateHandler.js.map +1 -1
- package/dist/container.d.ts +9 -46
- package/dist/container.d.ts.map +1 -1
- package/dist/container.js +105 -116
- package/dist/container.js.map +1 -1
- package/dist/containerContext.d.ts +19 -7
- package/dist/containerContext.d.ts.map +1 -1
- package/dist/containerContext.js +7 -2
- package/dist/containerContext.js.map +1 -1
- package/dist/containerStorageAdapter.d.ts +3 -3
- package/dist/containerStorageAdapter.d.ts.map +1 -1
- package/dist/containerStorageAdapter.js +6 -6
- package/dist/containerStorageAdapter.js.map +1 -1
- package/dist/contracts.d.ts +4 -3
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +2 -2
- package/dist/contracts.js.map +1 -1
- package/dist/debugLogger.d.ts +2 -1
- package/dist/debugLogger.d.ts.map +1 -1
- package/dist/debugLogger.js +4 -4
- package/dist/debugLogger.js.map +1 -1
- package/dist/deltaManager.d.ts +11 -7
- package/dist/deltaManager.d.ts.map +1 -1
- package/dist/deltaManager.js +53 -50
- package/dist/deltaManager.js.map +1 -1
- package/dist/deltaQueue.d.ts +1 -1
- package/dist/deltaQueue.d.ts.map +1 -1
- package/dist/deltaQueue.js +5 -5
- package/dist/deltaQueue.js.map +1 -1
- package/dist/error.d.ts +3 -2
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js +5 -5
- package/dist/error.js.map +1 -1
- package/dist/legacy.d.ts +29 -0
- package/dist/loader.d.ts +4 -4
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +23 -23
- package/dist/loader.js.map +1 -1
- package/dist/location-redirection-utilities/resolveWithLocationRedirection.d.ts +2 -2
- package/dist/location-redirection-utilities/resolveWithLocationRedirection.d.ts.map +1 -1
- package/dist/location-redirection-utilities/resolveWithLocationRedirection.js +2 -2
- package/dist/location-redirection-utilities/resolveWithLocationRedirection.js.map +1 -1
- package/dist/noopHeuristic.d.ts +1 -1
- package/dist/noopHeuristic.d.ts.map +1 -1
- package/dist/noopHeuristic.js +6 -6
- package/dist/noopHeuristic.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/protocol.d.ts +1 -1
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +2 -2
- package/dist/protocol.js.map +1 -1
- package/dist/protocolTreeDocumentStorageService.d.ts +4 -4
- package/dist/protocolTreeDocumentStorageService.d.ts.map +1 -1
- package/dist/protocolTreeDocumentStorageService.js.map +1 -1
- package/dist/public.d.ts +14 -0
- package/dist/quorum.d.ts +1 -1
- package/dist/quorum.d.ts.map +1 -1
- package/dist/quorum.js +4 -0
- package/dist/quorum.js.map +1 -1
- package/dist/retriableDocumentStorageService.d.ts +2 -2
- package/dist/retriableDocumentStorageService.d.ts.map +1 -1
- package/dist/retriableDocumentStorageService.js +7 -7
- package/dist/retriableDocumentStorageService.js.map +1 -1
- package/dist/serializedStateManager.d.ts +86 -16
- package/dist/serializedStateManager.d.ts.map +1 -1
- package/dist/serializedStateManager.js +182 -82
- package/dist/serializedStateManager.js.map +1 -1
- package/dist/utils.d.ts +24 -9
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +82 -25
- package/dist/utils.js.map +1 -1
- package/internal.d.ts +11 -0
- package/legacy.d.ts +11 -0
- package/lib/attachment.d.ts +6 -9
- package/lib/attachment.d.ts.map +1 -1
- package/lib/attachment.js +1 -1
- package/lib/attachment.js.map +1 -1
- package/lib/audience.d.ts +1 -1
- package/lib/audience.d.ts.map +1 -1
- package/lib/audience.js +1 -1
- package/lib/audience.js.map +1 -1
- package/lib/catchUpMonitor.d.ts +1 -1
- package/lib/catchUpMonitor.d.ts.map +1 -1
- package/lib/catchUpMonitor.js +1 -1
- package/lib/catchUpMonitor.js.map +1 -1
- package/lib/connectionManager.d.ts +4 -4
- package/lib/connectionManager.d.ts.map +1 -1
- package/lib/connectionManager.js +11 -6
- package/lib/connectionManager.js.map +1 -1
- package/lib/connectionStateHandler.d.ts +3 -3
- package/lib/connectionStateHandler.d.ts.map +1 -1
- package/lib/connectionStateHandler.js +2 -2
- package/lib/connectionStateHandler.js.map +1 -1
- package/lib/container.d.ts +9 -46
- package/lib/container.d.ts.map +1 -1
- package/lib/container.js +37 -48
- package/lib/container.js.map +1 -1
- package/lib/containerContext.d.ts +19 -7
- package/lib/containerContext.d.ts.map +1 -1
- package/lib/containerContext.js +7 -2
- package/lib/containerContext.js.map +1 -1
- package/lib/containerStorageAdapter.d.ts +3 -3
- package/lib/containerStorageAdapter.d.ts.map +1 -1
- package/lib/containerStorageAdapter.js +2 -2
- package/lib/containerStorageAdapter.js.map +1 -1
- package/lib/contracts.d.ts +4 -3
- package/lib/contracts.d.ts.map +1 -1
- package/lib/contracts.js +1 -1
- package/lib/contracts.js.map +1 -1
- package/lib/debugLogger.d.ts +2 -1
- package/lib/debugLogger.d.ts.map +1 -1
- package/lib/debugLogger.js +1 -1
- package/lib/debugLogger.js.map +1 -1
- package/lib/deltaManager.d.ts +11 -7
- package/lib/deltaManager.d.ts.map +1 -1
- package/lib/deltaManager.js +13 -10
- package/lib/deltaManager.js.map +1 -1
- package/lib/deltaQueue.d.ts +1 -1
- package/lib/deltaQueue.d.ts.map +1 -1
- package/lib/deltaQueue.js +2 -2
- package/lib/deltaQueue.js.map +1 -1
- package/lib/error.d.ts +3 -2
- package/lib/error.d.ts.map +1 -1
- package/lib/error.js +2 -2
- package/lib/error.js.map +1 -1
- package/lib/legacy.d.ts +29 -0
- package/lib/loader.d.ts +4 -4
- package/lib/loader.d.ts.map +1 -1
- package/lib/loader.js +4 -4
- package/lib/loader.js.map +1 -1
- package/lib/location-redirection-utilities/resolveWithLocationRedirection.d.ts +2 -2
- package/lib/location-redirection-utilities/resolveWithLocationRedirection.d.ts.map +1 -1
- package/lib/location-redirection-utilities/resolveWithLocationRedirection.js +2 -2
- package/lib/location-redirection-utilities/resolveWithLocationRedirection.js.map +1 -1
- package/lib/noopHeuristic.d.ts +1 -1
- package/lib/noopHeuristic.d.ts.map +1 -1
- package/lib/noopHeuristic.js +2 -2
- package/lib/noopHeuristic.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/protocol.d.ts +1 -1
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +1 -1
- package/lib/protocol.js.map +1 -1
- package/lib/protocolTreeDocumentStorageService.d.ts +4 -4
- package/lib/protocolTreeDocumentStorageService.d.ts.map +1 -1
- package/lib/protocolTreeDocumentStorageService.js.map +1 -1
- package/lib/public.d.ts +14 -0
- package/lib/quorum.d.ts +1 -1
- package/lib/quorum.d.ts.map +1 -1
- package/lib/quorum.js +4 -0
- package/lib/quorum.js.map +1 -1
- package/lib/retriableDocumentStorageService.d.ts +2 -2
- package/lib/retriableDocumentStorageService.d.ts.map +1 -1
- package/lib/retriableDocumentStorageService.js +3 -3
- package/lib/retriableDocumentStorageService.js.map +1 -1
- package/lib/serializedStateManager.d.ts +86 -16
- package/lib/serializedStateManager.d.ts.map +1 -1
- package/lib/serializedStateManager.js +174 -77
- package/lib/serializedStateManager.js.map +1 -1
- package/lib/utils.d.ts +24 -9
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +69 -15
- package/lib/utils.js.map +1 -1
- package/package.json +37 -58
- package/src/attachment.ts +10 -8
- package/src/audience.ts +3 -2
- package/src/catchUpMonitor.ts +2 -2
- package/src/connectionManager.ts +27 -20
- package/src/connectionStateHandler.ts +7 -7
- package/src/container.ts +90 -143
- package/src/containerContext.ts +22 -12
- package/src/containerStorageAdapter.ts +7 -6
- package/src/contracts.ts +4 -5
- package/src/debugLogger.ts +3 -4
- package/src/deltaManager.ts +40 -30
- package/src/deltaQueue.ts +2 -2
- package/src/error.ts +5 -4
- package/src/loader.ts +25 -23
- package/src/location-redirection-utilities/resolveWithLocationRedirection.ts +4 -4
- package/src/noopHeuristic.ts +3 -3
- package/src/packageVersion.ts +1 -1
- package/src/protocol.ts +2 -2
- package/src/protocolTreeDocumentStorageService.ts +4 -1
- package/src/quorum.ts +2 -1
- package/src/retriableDocumentStorageService.ts +6 -5
- package/src/serializedStateManager.ts +299 -111
- package/src/utils.ts +103 -24
- package/api-extractor-cjs.json +0 -8
- package/dist/container-loader-alpha.d.ts +0 -275
- package/dist/container-loader-beta.d.ts +0 -101
- package/dist/container-loader-public.d.ts +0 -101
- package/dist/container-loader-untrimmed.d.ts +0 -331
- package/lib/container-loader-alpha.d.ts +0 -275
- package/lib/container-loader-beta.d.ts +0 -101
- package/lib/container-loader-public.d.ts +0 -101
- package/lib/container-loader-untrimmed.d.ts +0 -331
- package/lib/test/attachment.spec.js +0 -380
- package/lib/test/attachment.spec.js.map +0 -1
- package/lib/test/catchUpMonitor.spec.js +0 -88
- package/lib/test/catchUpMonitor.spec.js.map +0 -1
- package/lib/test/connectionManager.spec.js +0 -201
- package/lib/test/connectionManager.spec.js.map +0 -1
- package/lib/test/connectionStateHandler.spec.js +0 -555
- package/lib/test/connectionStateHandler.spec.js.map +0 -1
- package/lib/test/container.spec.js +0 -64
- package/lib/test/container.spec.js.map +0 -1
- package/lib/test/deltaManager.spec.js +0 -405
- package/lib/test/deltaManager.spec.js.map +0 -1
- package/lib/test/loader.spec.js +0 -212
- package/lib/test/loader.spec.js.map +0 -1
- package/lib/test/locationRedirectionTests.spec.js +0 -44
- package/lib/test/locationRedirectionTests.spec.js.map +0 -1
- package/lib/test/serializedStateManager.spec.js +0 -148
- package/lib/test/serializedStateManager.spec.js.map +0 -1
- package/lib/test/snapshotConversionTest.spec.js +0 -79
- package/lib/test/snapshotConversionTest.spec.js.map +0 -1
- package/lib/test/types/validateContainerLoaderPrevious.generated.js +0 -38
- package/lib/test/types/validateContainerLoaderPrevious.generated.js.map +0 -1
- package/lib/test/utils.spec.js +0 -31
- package/lib/test/utils.spec.js.map +0 -1
- /package/{dist → lib}/tsdoc-metadata.json +0 -0
package/api-extractor-cjs.json
DELETED
|
@@ -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,275 +0,0 @@
|
|
|
1
|
-
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
2
|
-
import { IAudienceOwner } from '@fluidframework/container-definitions';
|
|
3
|
-
import { IClientDetails } from '@fluidframework/protocol-definitions';
|
|
4
|
-
import { IConfigProviderBase } from '@fluidframework/core-interfaces';
|
|
5
|
-
import { IContainer } from '@fluidframework/container-definitions';
|
|
6
|
-
import { IDocumentAttributes } from '@fluidframework/protocol-definitions';
|
|
7
|
-
import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
|
|
8
|
-
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
9
|
-
import { IFluidCodeDetails } from '@fluidframework/container-definitions';
|
|
10
|
-
import { IFluidModule } from '@fluidframework/container-definitions';
|
|
11
|
-
import { IHostLoader } from '@fluidframework/container-definitions';
|
|
12
|
-
import { ILoaderOptions as ILoaderOptions_2 } from '@fluidframework/container-definitions';
|
|
13
|
-
import { ILocationRedirectionError } from '@fluidframework/driver-definitions';
|
|
14
|
-
import { IProtocolHandler as IProtocolHandler_2 } from '@fluidframework/protocol-base';
|
|
15
|
-
import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions';
|
|
16
|
-
import { IQuorumSnapshot } from '@fluidframework/protocol-base';
|
|
17
|
-
import { IRequest } from '@fluidframework/core-interfaces';
|
|
18
|
-
import { ISignalMessage } from '@fluidframework/protocol-definitions';
|
|
19
|
-
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
20
|
-
import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
|
|
21
|
-
import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* The state of the Container's connection to the service.
|
|
25
|
-
* @public
|
|
26
|
-
*/
|
|
27
|
-
export declare enum ConnectionState {
|
|
28
|
-
/**
|
|
29
|
-
* The container is not connected to the ordering service
|
|
30
|
-
* Note - When in this state the container may be about to reconnect,
|
|
31
|
-
* or may remain disconnected until explicitly told to connect.
|
|
32
|
-
*/
|
|
33
|
-
Disconnected = 0,
|
|
34
|
-
/**
|
|
35
|
-
* The container is disconnected but actively trying to establish a new connection
|
|
36
|
-
* PLEASE NOTE that this numerical value falls out of the order you may expect for this state
|
|
37
|
-
*/
|
|
38
|
-
EstablishingConnection = 3,
|
|
39
|
-
/**
|
|
40
|
-
* The container has an inbound connection only, and is catching up to the latest known state from the service.
|
|
41
|
-
*/
|
|
42
|
-
CatchingUp = 1,
|
|
43
|
-
/**
|
|
44
|
-
* The container is fully connected and syncing
|
|
45
|
-
*/
|
|
46
|
-
Connected = 2
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @deprecated ICodeDetailsLoader interface is moved to {@link @fluidframework/container-definitions#ICodeDetailsLoader}
|
|
51
|
-
* to have code loading modules in one package. #8193
|
|
52
|
-
* Fluid code loader resolves a code module matching the document schema, i.e. code details, such as
|
|
53
|
-
* a package name and package version range.
|
|
54
|
-
* @alpha
|
|
55
|
-
*/
|
|
56
|
-
export declare interface ICodeDetailsLoader extends Partial<IProvideFluidCodeDetailsComparer> {
|
|
57
|
-
/**
|
|
58
|
-
* Load the code module (package) that is capable to interact with the document.
|
|
59
|
-
*
|
|
60
|
-
* @param source - Code proposal that articulates the current schema the document is written in.
|
|
61
|
-
* @returns Code module entry point along with the code details associated with it.
|
|
62
|
-
*/
|
|
63
|
-
load(source: IFluidCodeDetails): Promise<IFluidModuleWithDetails>;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* Excluded from this release type: IContainerExperimental */
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Subset of IDocumentStorageService which only supports createBlob() and readBlob(). This is used to support
|
|
70
|
-
* blobs in detached containers.
|
|
71
|
-
* @alpha
|
|
72
|
-
*/
|
|
73
|
-
export declare type IDetachedBlobStorage = Pick<IDocumentStorageService, "createBlob" | "readBlob"> & {
|
|
74
|
-
size: number;
|
|
75
|
-
/**
|
|
76
|
-
* Return an array of all blob IDs present in storage
|
|
77
|
-
*/
|
|
78
|
-
getBlobIds(): string[];
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @deprecated IFluidModuleWithDetails interface is moved to
|
|
83
|
-
* {@link @fluidframework/container-definitions#IFluidModuleWithDetails}
|
|
84
|
-
* to have all the code loading modules in one package. #8193
|
|
85
|
-
* Encapsulates a module entry point with corresponding code details.
|
|
86
|
-
* @alpha
|
|
87
|
-
*/
|
|
88
|
-
export declare interface IFluidModuleWithDetails {
|
|
89
|
-
/** Fluid code module that implements the runtime factory needed to instantiate the container runtime. */
|
|
90
|
-
module: IFluidModule;
|
|
91
|
-
/**
|
|
92
|
-
* Code details associated with the module. Represents a document schema this module supports.
|
|
93
|
-
* If the code loader implements the {@link @fluidframework/core-interfaces#IFluidCodeDetailsComparer} interface,
|
|
94
|
-
* it'll be called to determine whether the module code details satisfy the new code proposal in the quorum.
|
|
95
|
-
*/
|
|
96
|
-
details: IFluidCodeDetails;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* @alpha
|
|
101
|
-
*/
|
|
102
|
-
export declare interface ILoaderOptions extends ILoaderOptions_2 {
|
|
103
|
-
summarizeProtocolTree?: boolean;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Services and properties necessary for creating a loader
|
|
108
|
-
* @alpha
|
|
109
|
-
*/
|
|
110
|
-
export declare interface ILoaderProps {
|
|
111
|
-
/**
|
|
112
|
-
* The url resolver used by the loader for resolving external urls
|
|
113
|
-
* into Fluid urls such that the container specified by the
|
|
114
|
-
* external url can be loaded.
|
|
115
|
-
*/
|
|
116
|
-
readonly urlResolver: IUrlResolver;
|
|
117
|
-
/**
|
|
118
|
-
* The document service factory take the Fluid url provided
|
|
119
|
-
* by the resolved url and constructs all the necessary services
|
|
120
|
-
* for communication with the container's server.
|
|
121
|
-
*/
|
|
122
|
-
readonly documentServiceFactory: IDocumentServiceFactory;
|
|
123
|
-
/**
|
|
124
|
-
* The code loader handles loading the necessary code
|
|
125
|
-
* for running a container once it is loaded.
|
|
126
|
-
*/
|
|
127
|
-
readonly codeLoader: ICodeDetailsLoader;
|
|
128
|
-
/**
|
|
129
|
-
* A property bag of options used by various layers
|
|
130
|
-
* to control features
|
|
131
|
-
*/
|
|
132
|
-
readonly options?: ILoaderOptions;
|
|
133
|
-
/**
|
|
134
|
-
* Scope is provided to all container and is a set of shared
|
|
135
|
-
* services for container's to integrate with their host environment.
|
|
136
|
-
*/
|
|
137
|
-
readonly scope?: FluidObject;
|
|
138
|
-
/**
|
|
139
|
-
* The logger that all telemetry should be pushed to.
|
|
140
|
-
*/
|
|
141
|
-
readonly logger?: ITelemetryBaseLogger;
|
|
142
|
-
/**
|
|
143
|
-
* Blobs storage for detached containers.
|
|
144
|
-
*/
|
|
145
|
-
readonly detachedBlobStorage?: IDetachedBlobStorage;
|
|
146
|
-
/**
|
|
147
|
-
* The configuration provider which may be used to control features.
|
|
148
|
-
*/
|
|
149
|
-
readonly configProvider?: IConfigProviderBase;
|
|
150
|
-
/**
|
|
151
|
-
* Optional property for allowing the container to use a custom
|
|
152
|
-
* protocol implementation for handling the quorum and/or the audience.
|
|
153
|
-
*/
|
|
154
|
-
readonly protocolHandlerBuilder?: ProtocolHandlerBuilder;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Services and properties used by and exposed by the loader
|
|
159
|
-
* @alpha
|
|
160
|
-
*/
|
|
161
|
-
export declare interface ILoaderServices {
|
|
162
|
-
/**
|
|
163
|
-
* The url resolver used by the loader for resolving external urls
|
|
164
|
-
* into Fluid urls such that the container specified by the
|
|
165
|
-
* external url can be loaded.
|
|
166
|
-
*/
|
|
167
|
-
readonly urlResolver: IUrlResolver;
|
|
168
|
-
/**
|
|
169
|
-
* The document service factory take the Fluid url provided
|
|
170
|
-
* by the resolved url and constructs all the necessary services
|
|
171
|
-
* for communication with the container's server.
|
|
172
|
-
*/
|
|
173
|
-
readonly documentServiceFactory: IDocumentServiceFactory;
|
|
174
|
-
/**
|
|
175
|
-
* The code loader handles loading the necessary code
|
|
176
|
-
* for running a container once it is loaded.
|
|
177
|
-
*/
|
|
178
|
-
readonly codeLoader: ICodeDetailsLoader;
|
|
179
|
-
/**
|
|
180
|
-
* A property bag of options used by various layers
|
|
181
|
-
* to control features
|
|
182
|
-
*/
|
|
183
|
-
readonly options: ILoaderOptions;
|
|
184
|
-
/**
|
|
185
|
-
* Scope is provided to all container and is a set of shared
|
|
186
|
-
* services for container's to integrate with their host environment.
|
|
187
|
-
*/
|
|
188
|
-
readonly scope: FluidObject;
|
|
189
|
-
/**
|
|
190
|
-
* The logger downstream consumers should construct their loggers from
|
|
191
|
-
*/
|
|
192
|
-
readonly subLogger: ITelemetryLoggerExt;
|
|
193
|
-
/**
|
|
194
|
-
* Blobs storage for detached containers.
|
|
195
|
-
*/
|
|
196
|
-
readonly detachedBlobStorage?: IDetachedBlobStorage;
|
|
197
|
-
/**
|
|
198
|
-
* Optional property for allowing the container to use a custom
|
|
199
|
-
* protocol implementation for handling the quorum and/or the audience.
|
|
200
|
-
*/
|
|
201
|
-
readonly protocolHandlerBuilder?: ProtocolHandlerBuilder;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
/* Excluded from this release type: IParsedUrl */
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* @alpha
|
|
208
|
-
*/
|
|
209
|
-
export declare interface IProtocolHandler extends IProtocolHandler_2 {
|
|
210
|
-
readonly audience: IAudienceOwner;
|
|
211
|
-
processSignal(message: ISignalMessage): any;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/* Excluded from this release type: isLocationRedirectionError */
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Manages Fluid resource loading
|
|
218
|
-
* @alpha
|
|
219
|
-
*/
|
|
220
|
-
export declare class Loader implements IHostLoader {
|
|
221
|
-
readonly services: ILoaderServices;
|
|
222
|
-
private readonly mc;
|
|
223
|
-
constructor(loaderProps: ILoaderProps);
|
|
224
|
-
createDetachedContainer(codeDetails: IFluidCodeDetails, createDetachedProps?: {
|
|
225
|
-
canReconnect?: boolean;
|
|
226
|
-
clientDetailsOverride?: IClientDetails;
|
|
227
|
-
}): Promise<IContainer>;
|
|
228
|
-
rehydrateDetachedContainerFromSnapshot(snapshot: string, createDetachedProps?: {
|
|
229
|
-
canReconnect?: boolean;
|
|
230
|
-
clientDetailsOverride?: IClientDetails;
|
|
231
|
-
}): Promise<IContainer>;
|
|
232
|
-
resolve(request: IRequest, pendingLocalState?: string): Promise<IContainer>;
|
|
233
|
-
private resolveCore;
|
|
234
|
-
private loadContainer;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* Function to be used for creating a protocol handler.
|
|
239
|
-
* @alpha
|
|
240
|
-
*/
|
|
241
|
-
export declare type ProtocolHandlerBuilder = (attributes: IDocumentAttributes, snapshot: IQuorumSnapshot, sendProposal: (key: string, value: any) => number) => IProtocolHandler;
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Handles location redirection while fulfilling the loader request.
|
|
245
|
-
* @param api - Callback in which user can wrap the loader.resolve or loader.request call.
|
|
246
|
-
* @param request - request to be resolved.
|
|
247
|
-
* @param urlResolver - resolver used to resolve the url.
|
|
248
|
-
* @param logger - logger to send events.
|
|
249
|
-
* @returns Response from the API call.
|
|
250
|
-
* @alpha
|
|
251
|
-
*/
|
|
252
|
-
export declare function resolveWithLocationRedirectionHandling<T>(api: (request: IRequest) => Promise<T>, request: IRequest, urlResolver: IUrlResolver, logger?: ITelemetryBaseLogger): Promise<T>;
|
|
253
|
-
|
|
254
|
-
/* Excluded from this release type: tryParseCompatibleResolvedUrl */
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* Waits until container connects to delta storage and gets up-to-date.
|
|
258
|
-
*
|
|
259
|
-
* Useful when resolving URIs and hitting 404, due to container being loaded from (stale) snapshot and not being
|
|
260
|
-
* up to date. Host may chose to wait in such case and retry resolving URI.
|
|
261
|
-
*
|
|
262
|
-
* Warning: Will wait infinitely for connection to establish if there is no connection.
|
|
263
|
-
* May result in deadlock if Container.disconnect() is called and never followed by a call to Container.connect().
|
|
264
|
-
*
|
|
265
|
-
* @returns `true`: container is up to date, it processed all the ops that were know at the time of first connection.
|
|
266
|
-
*
|
|
267
|
-
* `false`: storage does not provide indication of how far the client is. Container processed all the ops known to it,
|
|
268
|
-
* but it maybe still behind.
|
|
269
|
-
*
|
|
270
|
-
* @throws an error beginning with `"Container closed"` if the container is closed before it catches up.
|
|
271
|
-
* @alpha
|
|
272
|
-
*/
|
|
273
|
-
export declare function waitContainerToCatchUp(container: IContainer): Promise<boolean>;
|
|
274
|
-
|
|
275
|
-
export { }
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
2
|
-
import { IAudienceOwner } from '@fluidframework/container-definitions';
|
|
3
|
-
import { IClientDetails } from '@fluidframework/protocol-definitions';
|
|
4
|
-
import { IConfigProviderBase } from '@fluidframework/core-interfaces';
|
|
5
|
-
import { IContainer } from '@fluidframework/container-definitions';
|
|
6
|
-
import { IDocumentAttributes } from '@fluidframework/protocol-definitions';
|
|
7
|
-
import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
|
|
8
|
-
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
9
|
-
import { IFluidCodeDetails } from '@fluidframework/container-definitions';
|
|
10
|
-
import { IFluidModule } from '@fluidframework/container-definitions';
|
|
11
|
-
import { IHostLoader } from '@fluidframework/container-definitions';
|
|
12
|
-
import { ILoaderOptions as ILoaderOptions_2 } from '@fluidframework/container-definitions';
|
|
13
|
-
import { ILocationRedirectionError } from '@fluidframework/driver-definitions';
|
|
14
|
-
import { IProtocolHandler as IProtocolHandler_2 } from '@fluidframework/protocol-base';
|
|
15
|
-
import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions';
|
|
16
|
-
import { IQuorumSnapshot } from '@fluidframework/protocol-base';
|
|
17
|
-
import { IRequest } from '@fluidframework/core-interfaces';
|
|
18
|
-
import { ISignalMessage } from '@fluidframework/protocol-definitions';
|
|
19
|
-
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
20
|
-
import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
|
|
21
|
-
import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* The state of the Container's connection to the service.
|
|
25
|
-
* @public
|
|
26
|
-
*/
|
|
27
|
-
export declare enum ConnectionState {
|
|
28
|
-
/**
|
|
29
|
-
* The container is not connected to the ordering service
|
|
30
|
-
* Note - When in this state the container may be about to reconnect,
|
|
31
|
-
* or may remain disconnected until explicitly told to connect.
|
|
32
|
-
*/
|
|
33
|
-
Disconnected = 0,
|
|
34
|
-
/**
|
|
35
|
-
* The container is disconnected but actively trying to establish a new connection
|
|
36
|
-
* PLEASE NOTE that this numerical value falls out of the order you may expect for this state
|
|
37
|
-
*/
|
|
38
|
-
EstablishingConnection = 3,
|
|
39
|
-
/**
|
|
40
|
-
* The container has an inbound connection only, and is catching up to the latest known state from the service.
|
|
41
|
-
*/
|
|
42
|
-
CatchingUp = 1,
|
|
43
|
-
/**
|
|
44
|
-
* The container is fully connected and syncing
|
|
45
|
-
*/
|
|
46
|
-
Connected = 2
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/* Excluded from this release type: IAudienceOwner */
|
|
50
|
-
|
|
51
|
-
/* Excluded from this release type: ICodeDetailsLoader */
|
|
52
|
-
|
|
53
|
-
/* Excluded from this release type: IContainer */
|
|
54
|
-
|
|
55
|
-
/* Excluded from this release type: IContainerExperimental */
|
|
56
|
-
|
|
57
|
-
/* Excluded from this release type: IDetachedBlobStorage */
|
|
58
|
-
|
|
59
|
-
/* Excluded from this release type: IDocumentServiceFactory */
|
|
60
|
-
|
|
61
|
-
/* Excluded from this release type: IDocumentStorageService */
|
|
62
|
-
|
|
63
|
-
/* Excluded from this release type: IFluidCodeDetails */
|
|
64
|
-
|
|
65
|
-
/* Excluded from this release type: IFluidModule */
|
|
66
|
-
|
|
67
|
-
/* Excluded from this release type: IFluidModuleWithDetails */
|
|
68
|
-
|
|
69
|
-
/* Excluded from this release type: IHostLoader */
|
|
70
|
-
|
|
71
|
-
/* Excluded from this release type: ILoaderOptions */
|
|
72
|
-
|
|
73
|
-
/* Excluded from this release type: ILoaderOptions_2 */
|
|
74
|
-
|
|
75
|
-
/* Excluded from this release type: ILoaderProps */
|
|
76
|
-
|
|
77
|
-
/* Excluded from this release type: ILoaderServices */
|
|
78
|
-
|
|
79
|
-
/* Excluded from this release type: ILocationRedirectionError */
|
|
80
|
-
|
|
81
|
-
/* Excluded from this release type: IParsedUrl */
|
|
82
|
-
|
|
83
|
-
/* Excluded from this release type: IProtocolHandler */
|
|
84
|
-
|
|
85
|
-
/* Excluded from this release type: IProvideFluidCodeDetailsComparer */
|
|
86
|
-
|
|
87
|
-
/* Excluded from this release type: isLocationRedirectionError */
|
|
88
|
-
|
|
89
|
-
/* Excluded from this release type: IUrlResolver */
|
|
90
|
-
|
|
91
|
-
/* Excluded from this release type: Loader */
|
|
92
|
-
|
|
93
|
-
/* Excluded from this release type: ProtocolHandlerBuilder */
|
|
94
|
-
|
|
95
|
-
/* Excluded from this release type: resolveWithLocationRedirectionHandling */
|
|
96
|
-
|
|
97
|
-
/* Excluded from this release type: tryParseCompatibleResolvedUrl */
|
|
98
|
-
|
|
99
|
-
/* Excluded from this release type: waitContainerToCatchUp */
|
|
100
|
-
|
|
101
|
-
export { }
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
2
|
-
import { IAudienceOwner } from '@fluidframework/container-definitions';
|
|
3
|
-
import { IClientDetails } from '@fluidframework/protocol-definitions';
|
|
4
|
-
import { IConfigProviderBase } from '@fluidframework/core-interfaces';
|
|
5
|
-
import { IContainer } from '@fluidframework/container-definitions';
|
|
6
|
-
import { IDocumentAttributes } from '@fluidframework/protocol-definitions';
|
|
7
|
-
import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
|
|
8
|
-
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
9
|
-
import { IFluidCodeDetails } from '@fluidframework/container-definitions';
|
|
10
|
-
import { IFluidModule } from '@fluidframework/container-definitions';
|
|
11
|
-
import { IHostLoader } from '@fluidframework/container-definitions';
|
|
12
|
-
import { ILoaderOptions as ILoaderOptions_2 } from '@fluidframework/container-definitions';
|
|
13
|
-
import { ILocationRedirectionError } from '@fluidframework/driver-definitions';
|
|
14
|
-
import { IProtocolHandler as IProtocolHandler_2 } from '@fluidframework/protocol-base';
|
|
15
|
-
import { IProvideFluidCodeDetailsComparer } from '@fluidframework/container-definitions';
|
|
16
|
-
import { IQuorumSnapshot } from '@fluidframework/protocol-base';
|
|
17
|
-
import { IRequest } from '@fluidframework/core-interfaces';
|
|
18
|
-
import { ISignalMessage } from '@fluidframework/protocol-definitions';
|
|
19
|
-
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
20
|
-
import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
|
|
21
|
-
import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* The state of the Container's connection to the service.
|
|
25
|
-
* @public
|
|
26
|
-
*/
|
|
27
|
-
export declare enum ConnectionState {
|
|
28
|
-
/**
|
|
29
|
-
* The container is not connected to the ordering service
|
|
30
|
-
* Note - When in this state the container may be about to reconnect,
|
|
31
|
-
* or may remain disconnected until explicitly told to connect.
|
|
32
|
-
*/
|
|
33
|
-
Disconnected = 0,
|
|
34
|
-
/**
|
|
35
|
-
* The container is disconnected but actively trying to establish a new connection
|
|
36
|
-
* PLEASE NOTE that this numerical value falls out of the order you may expect for this state
|
|
37
|
-
*/
|
|
38
|
-
EstablishingConnection = 3,
|
|
39
|
-
/**
|
|
40
|
-
* The container has an inbound connection only, and is catching up to the latest known state from the service.
|
|
41
|
-
*/
|
|
42
|
-
CatchingUp = 1,
|
|
43
|
-
/**
|
|
44
|
-
* The container is fully connected and syncing
|
|
45
|
-
*/
|
|
46
|
-
Connected = 2
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/* Excluded from this release type: IAudienceOwner */
|
|
50
|
-
|
|
51
|
-
/* Excluded from this release type: ICodeDetailsLoader */
|
|
52
|
-
|
|
53
|
-
/* Excluded from this release type: IContainer */
|
|
54
|
-
|
|
55
|
-
/* Excluded from this release type: IContainerExperimental */
|
|
56
|
-
|
|
57
|
-
/* Excluded from this release type: IDetachedBlobStorage */
|
|
58
|
-
|
|
59
|
-
/* Excluded from this release type: IDocumentServiceFactory */
|
|
60
|
-
|
|
61
|
-
/* Excluded from this release type: IDocumentStorageService */
|
|
62
|
-
|
|
63
|
-
/* Excluded from this release type: IFluidCodeDetails */
|
|
64
|
-
|
|
65
|
-
/* Excluded from this release type: IFluidModule */
|
|
66
|
-
|
|
67
|
-
/* Excluded from this release type: IFluidModuleWithDetails */
|
|
68
|
-
|
|
69
|
-
/* Excluded from this release type: IHostLoader */
|
|
70
|
-
|
|
71
|
-
/* Excluded from this release type: ILoaderOptions */
|
|
72
|
-
|
|
73
|
-
/* Excluded from this release type: ILoaderOptions_2 */
|
|
74
|
-
|
|
75
|
-
/* Excluded from this release type: ILoaderProps */
|
|
76
|
-
|
|
77
|
-
/* Excluded from this release type: ILoaderServices */
|
|
78
|
-
|
|
79
|
-
/* Excluded from this release type: ILocationRedirectionError */
|
|
80
|
-
|
|
81
|
-
/* Excluded from this release type: IParsedUrl */
|
|
82
|
-
|
|
83
|
-
/* Excluded from this release type: IProtocolHandler */
|
|
84
|
-
|
|
85
|
-
/* Excluded from this release type: IProvideFluidCodeDetailsComparer */
|
|
86
|
-
|
|
87
|
-
/* Excluded from this release type: isLocationRedirectionError */
|
|
88
|
-
|
|
89
|
-
/* Excluded from this release type: IUrlResolver */
|
|
90
|
-
|
|
91
|
-
/* Excluded from this release type: Loader */
|
|
92
|
-
|
|
93
|
-
/* Excluded from this release type: ProtocolHandlerBuilder */
|
|
94
|
-
|
|
95
|
-
/* Excluded from this release type: resolveWithLocationRedirectionHandling */
|
|
96
|
-
|
|
97
|
-
/* Excluded from this release type: tryParseCompatibleResolvedUrl */
|
|
98
|
-
|
|
99
|
-
/* Excluded from this release type: waitContainerToCatchUp */
|
|
100
|
-
|
|
101
|
-
export { }
|