@fluidframework/fluid-static 2.0.0-dev.7.4.0.215930 → 2.0.0-dev.7.4.0.216897

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 (46) hide show
  1. package/api-extractor-lint.json +13 -0
  2. package/api-extractor.json +0 -4
  3. package/api-report/fluid-static.api.md +24 -25
  4. package/dist/fluid-static-alpha.d.ts +53 -548
  5. package/dist/fluid-static-beta.d.ts +53 -548
  6. package/dist/fluid-static-public.d.ts +53 -548
  7. package/dist/fluid-static-untrimmed.d.ts +32 -2
  8. package/dist/fluidContainer.cjs +4 -2
  9. package/dist/fluidContainer.cjs.map +1 -1
  10. package/dist/fluidContainer.d.ts +7 -2
  11. package/dist/fluidContainer.d.ts.map +1 -1
  12. package/dist/rootDataObject.cjs +4 -0
  13. package/dist/rootDataObject.cjs.map +1 -1
  14. package/dist/rootDataObject.d.ts +4 -0
  15. package/dist/rootDataObject.d.ts.map +1 -1
  16. package/dist/serviceAudience.cjs +4 -0
  17. package/dist/serviceAudience.cjs.map +1 -1
  18. package/dist/serviceAudience.d.ts +4 -0
  19. package/dist/serviceAudience.d.ts.map +1 -1
  20. package/dist/types.cjs.map +1 -1
  21. package/dist/types.d.ts +17 -0
  22. package/dist/types.d.ts.map +1 -1
  23. package/lib/fluid-static-alpha.d.ts +53 -548
  24. package/lib/fluid-static-beta.d.ts +53 -548
  25. package/lib/fluid-static-public.d.ts +53 -548
  26. package/lib/fluid-static-untrimmed.d.ts +32 -2
  27. package/lib/fluidContainer.d.ts +7 -2
  28. package/lib/fluidContainer.d.ts.map +1 -1
  29. package/lib/fluidContainer.mjs +4 -2
  30. package/lib/fluidContainer.mjs.map +1 -1
  31. package/lib/rootDataObject.d.ts +4 -0
  32. package/lib/rootDataObject.d.ts.map +1 -1
  33. package/lib/rootDataObject.mjs +4 -0
  34. package/lib/rootDataObject.mjs.map +1 -1
  35. package/lib/serviceAudience.d.ts +4 -0
  36. package/lib/serviceAudience.d.ts.map +1 -1
  37. package/lib/serviceAudience.mjs +4 -0
  38. package/lib/serviceAudience.mjs.map +1 -1
  39. package/lib/types.d.ts +17 -0
  40. package/lib/types.d.ts.map +1 -1
  41. package/lib/types.mjs.map +1 -1
  42. package/package.json +16 -15
  43. package/src/fluidContainer.ts +7 -2
  44. package/src/rootDataObject.ts +4 -0
  45. package/src/serviceAudience.ts +4 -0
  46. package/src/types.ts +17 -0
@@ -4,576 +4,81 @@
4
4
  * @packageDocumentation
5
5
  */
6
6
 
7
- import { AttachState } from '@fluidframework/container-definitions';
8
- import { BaseContainerRuntimeFactory } from '@fluidframework/aqueduct';
9
- import { ConnectionState } from '@fluidframework/container-definitions';
10
- import { IAudience } from '@fluidframework/container-definitions';
11
- import { IChannelFactory } from '@fluidframework/datastore-definitions';
12
7
  import { IClient } from '@fluidframework/protocol-definitions';
13
- import { IContainer } from '@fluidframework/container-definitions';
14
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
15
- import { ICriticalContainerError } from '@fluidframework/container-definitions';
16
- import { IEvent } from '@fluidframework/core-interfaces';
17
- import { IEventProvider } from '@fluidframework/core-interfaces';
18
- import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
19
- import { IFluidLoadable } from '@fluidframework/core-interfaces';
20
- import { IRuntimeFactory } from '@fluidframework/container-definitions';
21
8
 
22
- /**
23
- * Declares the Fluid objects that will be available in the {@link IFluidContainer | Container}.
24
- *
25
- * @remarks
26
- *
27
- * It includes both the instances of objects that are initially available upon `Container` creation, as well
28
- * as the types of objects that may be dynamically created throughout the lifetime of the `Container`.
29
- */
30
- export declare interface ContainerSchema {
31
- /**
32
- * Defines loadable objects that will be created when the {@link IFluidContainer | Container} is first created.
33
- *
34
- * @remarks It uses the key as the id and the value as the loadable object to create.
35
- *
36
- * @example
37
- *
38
- * In the example below two objects will be created when the `Container` is first
39
- * created. One with id "map1" that will return a `SharedMap` and the other with
40
- * id "pair1" that will return a `KeyValueDataObject`.
41
- *
42
- * ```typescript
43
- * {
44
- * map1: SharedMap,
45
- * pair1: KeyValueDataObject,
46
- * }
47
- * ```
48
- */
49
- initialObjects: LoadableObjectClassRecord;
50
- /**
51
- * Loadable objects that can be created after the initial {@link IFluidContainer | Container} creation.
52
- *
53
- * @remarks
54
- *
55
- * Types defined in `initialObjects` will always be available and are not required to be provided here.
56
- *
57
- * For best practice it's recommended to define all the dynamic types you create even if they are
58
- * included via initialObjects.
59
- */
60
- dynamicObjectTypes?: LoadableObjectClass<any>[];
61
- }
62
-
63
- export declare function createDOProviderContainerRuntimeFactory(props: {
64
- schema: ContainerSchema;
65
- }): IRuntimeFactory;
66
-
67
- export declare function createFluidContainer<TContainerSchema extends ContainerSchema = ContainerSchema>(props: {
68
- container: IContainer;
69
- rootDataObject: IRootDataObject;
70
- }): IFluidContainer<TContainerSchema>;
71
-
72
- export declare function createServiceAudience<M extends IMember = IMember>(props: {
73
- container: IContainer;
74
- createServiceMember: (audienceMember: IClient) => M;
75
- }): IServiceAudience<M>;
9
+ /* Excluded from this release type: AttachState */
76
10
 
77
- /**
78
- * A class that has a factory that can create a `DataObject` and a
79
- * constructor that will return the type of the `DataObject`.
80
- *
81
- * @typeParam T - The class of the `DataObject`.
82
- */
83
- export declare type DataObjectClass<T extends IFluidLoadable> = {
84
- readonly factory: IFluidDataStoreFactory;
85
- } & LoadableObjectCtor<T>;
11
+ /* Excluded from this release type: BaseContainerRuntimeFactory */
86
12
 
87
- /**
88
- * Container code that provides a single {@link IRootDataObject}.
89
- *
90
- * @remarks
91
- *
92
- * This data object is dynamically customized (registry and initial objects) based on the schema provided.
93
- * to the container runtime factory.
94
- * @deprecated use {@link createDOProviderContainerRuntimeFactory} instead
95
- */
96
- export declare class DOProviderContainerRuntimeFactory extends BaseContainerRuntimeFactory {
97
- private readonly rootDataObjectFactory;
98
- private readonly initialObjects;
99
- constructor(schema: ContainerSchema);
100
- /**
101
- * {@inheritDoc @fluidframework/aqueduct#BaseContainerRuntimeFactory.containerInitializingFirstTime}
102
- */
103
- protected containerInitializingFirstTime(runtime: IContainerRuntime): Promise<void>;
104
- }
13
+ /* Excluded from this release type: ConnectionState */
105
14
 
106
- /**
107
- * Base {@link IFluidContainer} implementation.
108
- *
109
- * @typeparam TContainerSchema - Used to determine the type of 'initialObjects'.
110
- * @remarks
111
- *
112
- * Note: this implementation is not complete. Consumers who rely on {@link IFluidContainer.attach}
113
- * will need to utilize or provide a service-specific implementation of this type that implements that method.
114
- * @deprecated use {@link createFluidContainer} and {@link IFluidContainer} instead
115
- */
116
- export declare class FluidContainer<TContainerSchema extends ContainerSchema = ContainerSchema> extends TypedEventEmitter<IFluidContainerEvents> implements IFluidContainer<TContainerSchema> {
117
- private readonly container;
118
- private readonly rootDataObject;
119
- private readonly connectedHandler;
120
- private readonly disconnectedHandler;
121
- private readonly disposedHandler;
122
- private readonly savedHandler;
123
- private readonly dirtyHandler;
124
- constructor(container: IContainer, rootDataObject: IRootDataObject);
125
- /**
126
- * {@inheritDoc IFluidContainer.isDirty}
127
- */
128
- get isDirty(): boolean;
129
- /**
130
- * {@inheritDoc IFluidContainer.attachState}
131
- */
132
- get attachState(): AttachState;
133
- /**
134
- * {@inheritDoc IFluidContainer.disposed}
135
- */
136
- get disposed(): boolean;
137
- /**
138
- * {@inheritDoc IFluidContainer.connectionState}
139
- */
140
- get connectionState(): ConnectionState;
141
- /**
142
- * {@inheritDoc IFluidContainer.initialObjects}
143
- */
144
- get initialObjects(): InitialObjects<TContainerSchema>;
145
- /**
146
- * Incomplete base implementation of {@link IFluidContainer.attach}.
147
- *
148
- * @remarks
149
- *
150
- * Note: this implementation will unconditionally throw.
151
- * Consumers who rely on this will need to utilize or provide a service specific implementation of this base type
152
- * that provides an implementation of this method.
153
- *
154
- * The reason is because externally we are presenting a separation between the service and the `FluidContainer`,
155
- * but internally this separation is not there.
156
- */
157
- attach(): Promise<string>;
158
- /**
159
- * {@inheritDoc IFluidContainer.connect}
160
- */
161
- connect(): Promise<void>;
162
- /**
163
- * {@inheritDoc IFluidContainer.connect}
164
- */
165
- disconnect(): Promise<void>;
166
- /**
167
- * {@inheritDoc IFluidContainer.create}
168
- */
169
- create<T extends IFluidLoadable>(objectClass: LoadableObjectClass<T>): Promise<T>;
170
- /**
171
- * {@inheritDoc IFluidContainer.dispose}
172
- */
173
- dispose(): void;
174
- /* Excluded from this release type: INTERNAL_CONTAINER_DO_NOT_USE */
175
- }
15
+ /* Excluded from this release type: ContainerSchema */
176
16
 
177
- /**
178
- * Base interface for information for each connection made to the Fluid session.
179
- *
180
- * @remarks This interface can be extended to provide additional information specific to each service.
181
- */
182
- export declare interface IConnection {
183
- /**
184
- * A unique ID for the connection. A single user may have multiple connections, each with a different ID.
185
- */
186
- id: string;
187
- /**
188
- * Whether the connection is in read or read/write mode.
189
- */
190
- mode: "write" | "read";
191
- }
17
+ /* Excluded from this release type: createDOProviderContainerRuntimeFactory */
192
18
 
193
- /**
194
- * Provides an entrypoint into the client side of collaborative Fluid data.
195
- * Provides access to the data as well as status on the collaboration session.
196
- *
197
- * @typeparam TContainerSchema - Used to determine the type of 'initialObjects'.
198
- *
199
- * @remarks Note: external implementations of this interface are not supported.
200
- */
201
- export declare interface IFluidContainer<TContainerSchema extends ContainerSchema = ContainerSchema> extends IEventProvider<IFluidContainerEvents> {
202
- /**
203
- * Provides the current connected state of the container
204
- */
205
- readonly connectionState: ConnectionState;
206
- /**
207
- * A container is considered **dirty** if it has local changes that have not yet been acknowledged by the service.
208
- *
209
- * @remarks
210
- *
211
- * You should always check the `isDirty` flag before closing the container or navigating away from the page.
212
- * Closing the container while `isDirty === true` may result in the loss of operations that have not yet been
213
- * acknowledged by the service.
214
- *
215
- * A container is considered dirty in the following cases:
216
- *
217
- * 1. The container has been created in the detached state, and either it has not been attached yet or it is
218
- * in the process of being attached (container is in `attaching` state). If container is closed prior to being
219
- * attached, host may never know if the file was created or not.
220
- *
221
- * 2. The container was attached, but it has local changes that have not yet been saved to service endpoint.
222
- * This occurs as part of normal op flow where pending operation (changes) are awaiting acknowledgement from the
223
- * service. In some cases this can be due to lack of network connection. If the network connection is down,
224
- * it needs to be restored for the pending changes to be acknowledged.
225
- */
226
- readonly isDirty: boolean;
227
- /**
228
- * Whether or not the container is disposed, which permanently disables it.
229
- */
230
- readonly disposed: boolean;
231
- /**
232
- * The collection of data objects and Distributed Data Stores (DDSes) that were specified by the schema.
233
- *
234
- * @remarks These data objects and DDSes exist for the lifetime of the container.
235
- */
236
- readonly initialObjects: InitialObjects<TContainerSchema>;
237
- /**
238
- * The current attachment state of the container.
239
- *
240
- * @remarks
241
- *
242
- * Once a container has been attached, it remains attached.
243
- * When loading an existing container, it will already be attached.
244
- */
245
- readonly attachState: AttachState;
246
- /**
247
- * A newly created container starts detached from the collaborative service.
248
- * Calling `attach()` uploads the new container to the service and connects to the collaborative service.
249
- *
250
- * @remarks
251
- *
252
- * This should only be called when the container is in the
253
- * {@link @fluidframework/container-definitions#AttachState.Detatched} state.
254
- *
255
- * This can be determined by observing {@link IFluidContainer.attachState}.
256
- *
257
- * @returns A promise which resolves when the attach is complete, with the string identifier of the container.
258
- */
259
- attach(): Promise<string>;
260
- /**
261
- * Attempts to connect the container to the delta stream and process operations.
262
- *
263
- * @throws Will throw an error if connection is unsuccessful.
264
- *
265
- * @remarks
266
- *
267
- * This should only be called when the container is in the
268
- * {@link @fluidframework/container-definitions#ConnectionState.Disconnected} state.
269
- *
270
- * This can be determined by observing {@link IFluidContainer.connectionState}.
271
- */
272
- connect(): void;
273
- /**
274
- * Disconnects the container from the delta stream and stops processing operations.
275
- *
276
- * @remarks
277
- *
278
- * This should only be called when the container is in the
279
- * {@link @fluidframework/container-definitions#ConnectionState.Connected} state.
280
- *
281
- * This can be determined by observing {@link IFluidContainer.connectionState}.
282
- */
283
- disconnect(): void;
284
- /**
285
- * Create a new data object or Distributed Data Store (DDS) of the specified type.
286
- *
287
- * @remarks
288
- *
289
- * In order to share the data object or DDS with other
290
- * collaborators and retrieve it later, store its handle in a collection like a SharedDirectory from your
291
- * initialObjects.
292
- *
293
- * @param objectClass - The class of the `DataObject` or `SharedObject` to create.
294
- *
295
- * @typeParam T - The class of the `DataObject` or `SharedObject`.
296
- */
297
- create<T extends IFluidLoadable>(objectClass: LoadableObjectClass<T>): Promise<T>;
298
- /**
299
- * Dispose of the container instance, permanently disabling it.
300
- */
301
- dispose(): void;
302
- }
19
+ /* Excluded from this release type: createFluidContainer */
303
20
 
304
- /**
305
- * Events emitted from {@link IFluidContainer}.
306
- */
307
- export declare interface IFluidContainerEvents extends IEvent {
308
- /**
309
- * Emitted when the {@link IFluidContainer} completes connecting to the Fluid service.
310
- *
311
- * @remarks Reflects connection state changes against the (delta) service acknowledging ops/edits.
312
- *
313
- * @see
314
- *
315
- * - {@link IFluidContainer.connectionState}
316
- *
317
- * - {@link IFluidContainer.connect}
318
- */
319
- (event: "connected", listener: () => void): void;
320
- /**
321
- * Emitted when the {@link IFluidContainer} becomes disconnected from the Fluid service.
322
- *
323
- * @remarks Reflects connection state changes against the (delta) service acknowledging ops/edits.
324
- *
325
- * @see
326
- *
327
- * - {@link IFluidContainer.connectionState}
328
- *
329
- * - {@link IFluidContainer.disconnect}
330
- */
331
- (event: "disconnected", listener: () => void): void;
332
- /**
333
- * Emitted when all local changes/edits have been acknowledged by the service.
334
- *
335
- * @remarks "dirty" event will be emitted when the next local change has been made.
336
- *
337
- * @see {@link IFluidContainer.isDirty}
338
- */
339
- (event: "saved", listener: () => void): void;
340
- /**
341
- * Emitted when the first local change has been made, following a "saved" event.
342
- *
343
- * @remarks "saved" event will be emitted once all local changes have been acknowledged by the service.
344
- *
345
- * @see {@link IFluidContainer.isDirty}
346
- */
347
- (event: "dirty", listener: () => void): void;
348
- /**
349
- * Emitted when the {@link IFluidContainer} is closed, which permanently disables it.
350
- *
351
- * @remarks Listener parameters:
352
- *
353
- * - `error`: If the container was closed due to error (as opposed to an explicit call to
354
- * {@link IFluidContainer.dispose}), this will contain details about the error that caused it.
355
- */
356
- (event: "disposed", listener: (error?: ICriticalContainerError) => void): any;
357
- }
21
+ /* Excluded from this release type: createServiceAudience */
358
22
 
359
- /**
360
- * Base interface to be implemented to fetch each service's member.
361
- *
362
- * @remarks This interface can be extended by each service to provide additional service-specific user metadata.
363
- */
364
- export declare interface IMember {
365
- /**
366
- * An ID for the user, unique among each individual user connecting to the session.
367
- */
368
- userId: string;
369
- /**
370
- * The set of connections the user has made, e.g. from multiple tabs or devices.
371
- */
372
- connections: IConnection[];
373
- }
23
+ /* Excluded from this release type: DataObjectClass */
374
24
 
375
- /**
376
- * Extract the type of 'initialObjects' from the given {@link ContainerSchema} type.
377
- */
378
- export declare type InitialObjects<T extends ContainerSchema> = {
379
- [K in keyof T["initialObjects"]]: T["initialObjects"][K] extends LoadableObjectClass<infer TChannel> ? TChannel : never;
380
- };
25
+ /* Excluded from this release type: DOProviderContainerRuntimeFactory */
381
26
 
382
- export declare interface IProvideRootDataObject {
383
- readonly IRootDataObject?: IRootDataObject;
384
- }
27
+ /* Excluded from this release type: FluidContainer */
385
28
 
386
- /**
387
- * Holds the collection of objects that the container was initially created with, as well as provides the ability
388
- * to dynamically create further objects during usage.
389
- */
390
- export declare interface IRootDataObject extends IProvideRootDataObject {
391
- /**
392
- * Provides a record of the initial objects defined on creation.
393
- */
394
- readonly initialObjects: LoadableObjectRecord;
395
- /**
396
- * Dynamically creates a new detached collaborative object (DDS/DataObject).
397
- *
398
- * @param objectClass - Type of the collaborative object to be created.
399
- *
400
- * @typeParam T - The class of the `DataObject` or `SharedObject`.
401
- */
402
- create<T extends IFluidLoadable>(objectClass: LoadableObjectClass<T>): Promise<T>;
403
- }
29
+ /* Excluded from this release type: IAudience */
404
30
 
405
- /**
406
- * Base interface to be implemented to fetch each service's audience.
407
- *
408
- * @remarks
409
- *
410
- * The type parameter `M` allows consumers to further extend the client object with service-specific
411
- * details about the connecting client, such as device information, environment, or a username.
412
- *
413
- * @typeParam M - A service-specific {@link IMember} type.
414
- */
415
- export declare interface IServiceAudience<M extends IMember> extends IEventProvider<IServiceAudienceEvents<M>> {
416
- /**
417
- * Returns an map of all users currently in the Fluid session where key is the userId and the value is the
418
- * member object. The implementation may choose to exclude certain connections from the returned map.
419
- * E.g. ServiceAudience excludes non-interactive connections to represent only the roster of live users.
420
- */
421
- getMembers(): Map<string, M>;
422
- /**
423
- * Returns the current active user on this client once they are connected. Otherwise, returns undefined.
424
- */
425
- getMyself(): Myself<M> | undefined;
426
- }
31
+ /* Excluded from this release type: IChannelFactory */
427
32
 
428
- /**
429
- * Events that trigger when the roster of members in the Fluid session change.
430
- *
431
- * @remarks
432
- *
433
- * Only changes that would be reflected in the returned map of {@link IServiceAudience}'s
434
- * {@link IServiceAudience.getMembers} method will emit events.
435
- *
436
- * @typeParam M - A service-specific {@link IMember} implementation.
437
- */
438
- export declare interface IServiceAudienceEvents<M extends IMember> extends IEvent {
439
- /**
440
- * Emitted when a {@link IMember | member}(s) are either added or removed.
441
- *
442
- * @eventProperty
443
- */
444
- (event: "membersChanged", listener: () => void): void;
445
- /**
446
- * Emitted when a {@link IMember | member} joins the audience.
447
- *
448
- * @eventProperty
449
- */
450
- (event: "memberAdded", listener: MemberChangedListener<M>): void;
451
- /**
452
- * Emitted when a {@link IMember | member} leaves the audience.
453
- *
454
- * @eventProperty
455
- */
456
- (event: "memberRemoved", listener: MemberChangedListener<M>): void;
457
- }
33
+ /* Excluded from this release type: IConnection */
458
34
 
459
- /**
460
- * A class object of `DataObject` or `SharedObject`.
461
- *
462
- * @typeParam T - The class of the `DataObject` or `SharedObject`.
463
- */
464
- export declare type LoadableObjectClass<T extends IFluidLoadable> = DataObjectClass<T> | SharedObjectClass<T>;
35
+ /* Excluded from this release type: IContainer */
465
36
 
466
- /**
467
- * A mapping of string identifiers to classes that will later be used to instantiate a corresponding `DataObject`
468
- * or `SharedObject` in a {@link LoadableObjectRecord}.
469
- */
470
- export declare type LoadableObjectClassRecord = Record<string, LoadableObjectClass<any>>;
37
+ /* Excluded from this release type: IContainerRuntime */
471
38
 
472
- /**
473
- * An object with a constructor that will return an {@link @fluidframework/core-interfaces#IFluidLoadable}.
474
- *
475
- * @typeParam T - The class of the loadable object.
476
- */
477
- export declare type LoadableObjectCtor<T extends IFluidLoadable> = new (...args: any[]) => T;
39
+ /* Excluded from this release type: ICriticalContainerError */
478
40
 
479
- /**
480
- * A mapping of string identifiers to instantiated `DataObject`s or `SharedObject`s.
481
- */
482
- export declare type LoadableObjectRecord = Record<string, IFluidLoadable>;
41
+ /* Excluded from this release type: IEvent */
483
42
 
484
- /**
485
- * Signature for {@link IMember} change events.
486
- *
487
- * @param clientId - A unique identifier for the client.
488
- * @param member - The service-specific member object for the client.
489
- *
490
- * @see See {@link IServiceAudienceEvents} for usage details.
491
- */
492
- export declare type MemberChangedListener<M extends IMember> = (clientId: string, member: M) => void;
43
+ /* Excluded from this release type: IEventProvider */
493
44
 
494
- /**
495
- * An extended member object that includes currentConnection
496
- */
497
- export declare type Myself<M extends IMember = IMember> = M & {
498
- currentConnection: string;
499
- };
45
+ /* Excluded from this release type: IFluidContainer */
500
46
 
501
- /**
502
- * Base class for providing audience information for sessions interacting with {@link IFluidContainer}
503
- *
504
- * @remarks
505
- *
506
- * This can be extended by different service-specific client packages to additional parameters to
507
- * the user and client details returned in {@link IMember}.
508
- *
509
- * @typeParam M - A service-specific {@link IMember} implementation.
510
- * @deprecated use {@link createServiceAudience} and {@link IServiceAudience} instead
511
- */
512
- export declare abstract class ServiceAudience<M extends IMember = IMember> extends TypedEventEmitter<IServiceAudienceEvents<M>> implements IServiceAudience<M> {
513
- /**
514
- * Fluid Container to read the audience from.
515
- */
516
- protected readonly container: IContainer;
517
- /**
518
- * Audience object which includes all the existing members of the {@link IFluidContainer | container}.
519
- */
520
- protected readonly audience: IAudience;
521
- /**
522
- * Retain the most recent member list.
523
- *
524
- * @remarks
525
- *
526
- * This is so we have more information about a member leaving the audience in the `removeMember` event.
527
- *
528
- * It allows us to match the behavior of the `addMember` event where it only fires on a change to the members this
529
- * class exposes (and would actually produce a change in what `getMembers` returns).
530
- *
531
- * It also allows us to provide the client details in the event which makes it easier to find that client connection
532
- * in a map keyed on the `userId` and not `clientId`.
533
- *
534
- * This map will always be up-to-date in a `removeMember` event because it is set once at construction and in
535
- * every `addMember` event. It is mapped `clientId` to `M` to be better work with what the {@link IServiceAudience}
536
- * events provide.
537
- */
538
- protected lastMembers: Map<string, M>;
539
- constructor(
540
- /**
541
- * Fluid Container to read the audience from.
542
- */
543
- container: IContainer);
544
- /**
545
- * Provides ability for inheriting class to modify/extend the audience object.
546
- *
547
- * @param audienceMember - Record of a specific audience member.
548
- */
549
- protected abstract createServiceMember(audienceMember: IClient): M;
550
- /**
551
- * {@inheritDoc IServiceAudience.getMembers}
552
- */
553
- getMembers(): Map<string, M>;
554
- /**
555
- * {@inheritDoc IServiceAudience.getMyself}
556
- */
557
- getMyself(): Myself<M> | undefined;
558
- private getMember;
559
- /**
560
- * Provides ability for the inheriting class to include/omit specific members.
561
- * An example use case is omitting the summarizer client.
562
- *
563
- * @param member - Member to be included/omitted.
564
- */
565
- protected shouldIncludeAsMember(member: IClient): boolean;
566
- }
47
+ /* Excluded from this release type: IFluidContainerEvents */
567
48
 
568
- /**
569
- * A class that has a factory that can create a DDSes (`SharedObject`s) and a
570
- * constructor that will return the type of the `DataObject`.
571
- *
572
- * @typeParam T - The class of the `SharedObject`.
573
- */
574
- export declare type SharedObjectClass<T extends IFluidLoadable> = {
575
- readonly getFactory: () => IChannelFactory;
576
- } & LoadableObjectCtor<T>;
49
+ /* Excluded from this release type: IFluidDataStoreFactory */
50
+
51
+ /* Excluded from this release type: IFluidLoadable */
52
+
53
+ /* Excluded from this release type: IMember */
54
+
55
+ /* Excluded from this release type: InitialObjects */
56
+
57
+ /* Excluded from this release type: IProvideRootDataObject */
58
+
59
+ /* Excluded from this release type: IRootDataObject */
60
+
61
+ /* Excluded from this release type: IRuntimeFactory */
62
+
63
+ /* Excluded from this release type: IServiceAudience */
64
+
65
+ /* Excluded from this release type: IServiceAudienceEvents */
66
+
67
+ /* Excluded from this release type: LoadableObjectClass */
68
+
69
+ /* Excluded from this release type: LoadableObjectClassRecord */
70
+
71
+ /* Excluded from this release type: LoadableObjectCtor */
72
+
73
+ /* Excluded from this release type: LoadableObjectRecord */
74
+
75
+ /* Excluded from this release type: MemberChangedListener */
76
+
77
+ /* Excluded from this release type: Myself */
78
+
79
+ /* Excluded from this release type: ServiceAudience */
80
+
81
+ /* Excluded from this release type: SharedObjectClass */
577
82
 
578
83
  /* Excluded from this release type: TypedEventEmitter */
579
84