fluid-framework 2.110.0 → 2.112.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.
@@ -710,6 +710,20 @@ export type IsListener<TListener> = TListener extends (...args: any[]) => void ?
710
710
  // @public @system
711
711
  export type IsUnion<T, T2 = T> = T extends unknown ? [T2] extends [T] ? false : true : "error";
712
712
 
713
+ // @public
714
+ export interface ITelemetryBaseEvent extends ITelemetryBaseProperties {
715
+ // (undocumented)
716
+ category: string;
717
+ // (undocumented)
718
+ eventName: string;
719
+ }
720
+
721
+ // @public
722
+ export interface ITelemetryBaseLogger {
723
+ minLogLevel?: LogLevel | undefined;
724
+ send(event: ITelemetryBaseEvent, logLevel?: LogLevel): void;
725
+ }
726
+
713
727
  // @public
714
728
  export interface ITelemetryBaseProperties {
715
729
  [index: string]: TelemetryBaseEventPropertyType | Tagged<TelemetryBaseEventPropertyType>;
@@ -768,6 +782,23 @@ export type Listeners<T extends object> = {
768
782
  [P in (string | symbol) & keyof T as IsListener<T[P]> extends true ? P : never]: T[P];
769
783
  };
770
784
 
785
+ // @public
786
+ export const LogLevel: LogLevelConst;
787
+
788
+ // @public
789
+ export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
790
+
791
+ // @public
792
+ export interface LogLevelConst {
793
+ // @deprecated
794
+ readonly default: 20;
795
+ // @deprecated
796
+ readonly error: 30;
797
+ readonly essential: 30;
798
+ readonly info: 20;
799
+ readonly verbose: 10;
800
+ }
801
+
771
802
  // @public @sealed
772
803
  export interface MakeNominal {
773
804
  }
@@ -907,6 +938,11 @@ export interface RunTransaction {
907
938
  readonly rollback: typeof rollback;
908
939
  }
909
940
 
941
+ // @beta @input
942
+ export interface RunTransactionParamsBeta {
943
+ readonly label?: unknown;
944
+ }
945
+
910
946
  // @public @sealed
911
947
  export interface SchemaCompatibilityStatus {
912
948
  readonly canInitialize: boolean;
@@ -1146,7 +1182,7 @@ export namespace System_Unsafe {
1146
1182
  // @system
1147
1183
  export type InsertableTreeNodeFromAllowedTypesUnsafe<TList extends AllowedTypesUnsafe> = IsUnion<TList> extends true ? never : {
1148
1184
  readonly [Property in keyof TList]: TList[Property] extends LazyItem<infer TSchema extends TreeNodeSchemaUnsafe> ? InsertableTypedNodeUnsafe<TSchema> : never;
1149
- }[number];
1185
+ }[NumberKeys<TList>];
1150
1186
  // @system
1151
1187
  export type InsertableTreeNodeFromImplicitAllowedTypesUnsafe<TSchema extends ImplicitAllowedTypesUnsafe> = [TSchema] extends [TreeNodeSchemaUnsafe] ? InsertableTypedNodeUnsafe<TSchema> : [TSchema] extends [AllowedTypesUnsafe] ? InsertableTreeNodeFromAllowedTypesUnsafe<TSchema> : never;
1152
1188
  // @system
@@ -1301,9 +1337,32 @@ export interface Tagged<V, T extends string = string> {
1301
1337
  // @public
1302
1338
  export type TelemetryBaseEventPropertyType = string | number | boolean | undefined;
1303
1339
 
1340
+ // @beta @input
1341
+ export type TransactionCallbackStatusBeta<TSuccessValue, TFailureValue> = (WithValue<TSuccessValue> & {
1342
+ readonly rollback?: false;
1343
+ }) | (WithValue<TFailureValue> & {
1344
+ readonly rollback: true;
1345
+ });
1346
+
1304
1347
  // @public
1305
1348
  export type TransactionConstraint = NodeInDocumentConstraint;
1306
1349
 
1350
+ // @beta @sealed
1351
+ export interface TransactionResultFailed<TFailureValue> extends WithValue<TFailureValue> {
1352
+ readonly success: false;
1353
+ }
1354
+
1355
+ // @beta @sealed
1356
+ export interface TransactionResultSuccess<TSuccessValue> extends WithValue<TSuccessValue> {
1357
+ readonly success: true;
1358
+ }
1359
+
1360
+ // @beta @sealed
1361
+ export type TransactionValueResult<TSuccessValue, TFailureValue> = TransactionResultSuccess<TSuccessValue> | TransactionResultFailed<TFailureValue>;
1362
+
1363
+ // @beta @sealed
1364
+ export type TransactionVoidResult = Omit<TransactionResultSuccess<unknown>, "value"> | Omit<TransactionResultFailed<unknown>, "value">;
1365
+
1307
1366
  // @public
1308
1367
  export type TransformedEvent<TThis, E, A extends any[]> = (event: E, listener: (...args: ReplaceIEventThisPlaceHolder<A, TThis>) => void) => TThis;
1309
1368
 
@@ -1503,6 +1562,8 @@ export interface TreeView<in out TSchema extends ImplicitFieldSchema> extends ID
1503
1562
  export interface TreeViewBeta<in out TSchema extends ImplicitFieldSchema> extends TreeView<TSchema>, TreeBranch {
1504
1563
  // (undocumented)
1505
1564
  fork(): ReturnType<TreeBranch["fork"]> & TreeViewBeta<TSchema>;
1565
+ runTransaction<TOut extends TransactionCallbackStatusBeta<unknown, unknown> | VoidTransactionCallbackStatusBeta | void>(transaction: () => TOut, params?: RunTransactionParamsBeta): TOut extends TransactionCallbackStatusBeta<infer TSuccessValue, infer TFailureValue> ? TransactionValueResult<TSuccessValue, TFailureValue> : TransactionVoidResult;
1566
+ runTransactionAsync<TOut extends TransactionCallbackStatusBeta<unknown, unknown> | VoidTransactionCallbackStatusBeta | void>(transaction: () => Promise<TOut>, params?: RunTransactionParamsBeta): Promise<TOut extends TransactionCallbackStatusBeta<infer TSuccessValue, infer TFailureValue> ? TransactionValueResult<TSuccessValue, TFailureValue> : TransactionVoidResult>;
1506
1567
  }
1507
1568
 
1508
1569
  // @public @sealed
@@ -1580,6 +1641,9 @@ export interface ViewableTree {
1580
1641
  viewWith<TRoot extends ImplicitFieldSchema>(config: TreeViewConfiguration<TRoot>): TreeView<TRoot>;
1581
1642
  }
1582
1643
 
1644
+ // @beta @input
1645
+ export type VoidTransactionCallbackStatusBeta = Omit<TransactionCallbackStatusBeta<unknown, unknown>, "value">;
1646
+
1583
1647
  // @public @sealed
1584
1648
  export interface WithType<out TName extends string = string, out TKind extends NodeKind = NodeKind, out TInfo = unknown> {
1585
1649
  // @deprecated
@@ -1587,4 +1651,9 @@ export interface WithType<out TName extends string = string, out TKind extends N
1587
1651
  get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind, TreeNode, never, boolean, TInfo>;
1588
1652
  }
1589
1653
 
1654
+ // @beta @input
1655
+ export interface WithValue<TValue> {
1656
+ readonly value: TValue;
1657
+ }
1658
+
1590
1659
  ```
@@ -983,6 +983,20 @@ export type IsListener<TListener> = TListener extends (...args: any[]) => void ?
983
983
  // @public @system
984
984
  export type IsUnion<T, T2 = T> = T extends unknown ? [T2] extends [T] ? false : true : "error";
985
985
 
986
+ // @public
987
+ export interface ITelemetryBaseEvent extends ITelemetryBaseProperties {
988
+ // (undocumented)
989
+ category: string;
990
+ // (undocumented)
991
+ eventName: string;
992
+ }
993
+
994
+ // @public
995
+ export interface ITelemetryBaseLogger {
996
+ minLogLevel?: LogLevel | undefined;
997
+ send(event: ITelemetryBaseEvent, logLevel?: LogLevel): void;
998
+ }
999
+
986
1000
  // @public
987
1001
  export interface ITelemetryBaseProperties {
988
1002
  [index: string]: TelemetryBaseEventPropertyType | Tagged<TelemetryBaseEventPropertyType>;
@@ -1054,6 +1068,23 @@ export type Listeners<T extends object> = {
1054
1068
  [P in (string | symbol) & keyof T as IsListener<T[P]> extends true ? P : never]: T[P];
1055
1069
  };
1056
1070
 
1071
+ // @public
1072
+ export const LogLevel: LogLevelConst;
1073
+
1074
+ // @public
1075
+ export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
1076
+
1077
+ // @public
1078
+ export interface LogLevelConst {
1079
+ // @deprecated
1080
+ readonly default: 20;
1081
+ // @deprecated
1082
+ readonly error: 30;
1083
+ readonly essential: 30;
1084
+ readonly info: 20;
1085
+ readonly verbose: 10;
1086
+ }
1087
+
1057
1088
  // @public @sealed
1058
1089
  export interface MakeNominal {
1059
1090
  }
@@ -1193,6 +1224,11 @@ export interface RunTransaction {
1193
1224
  readonly rollback: typeof rollback;
1194
1225
  }
1195
1226
 
1227
+ // @beta @input
1228
+ export interface RunTransactionParamsBeta {
1229
+ readonly label?: unknown;
1230
+ }
1231
+
1196
1232
  // @public @sealed
1197
1233
  export interface SchemaCompatibilityStatus {
1198
1234
  readonly canInitialize: boolean;
@@ -1512,7 +1548,7 @@ export namespace System_Unsafe {
1512
1548
  // @system
1513
1549
  export type InsertableTreeNodeFromAllowedTypesUnsafe<TList extends AllowedTypesUnsafe> = IsUnion<TList> extends true ? never : {
1514
1550
  readonly [Property in keyof TList]: TList[Property] extends LazyItem<infer TSchema extends TreeNodeSchemaUnsafe> ? InsertableTypedNodeUnsafe<TSchema> : never;
1515
- }[number];
1551
+ }[NumberKeys<TList>];
1516
1552
  // @system
1517
1553
  export type InsertableTreeNodeFromImplicitAllowedTypesUnsafe<TSchema extends ImplicitAllowedTypesUnsafe> = [TSchema] extends [TreeNodeSchemaUnsafe] ? InsertableTypedNodeUnsafe<TSchema> : [TSchema] extends [AllowedTypesUnsafe] ? InsertableTreeNodeFromAllowedTypesUnsafe<TSchema> : never;
1518
1554
  // @system
@@ -1667,9 +1703,32 @@ export interface Tagged<V, T extends string = string> {
1667
1703
  // @public
1668
1704
  export type TelemetryBaseEventPropertyType = string | number | boolean | undefined;
1669
1705
 
1706
+ // @beta @input
1707
+ export type TransactionCallbackStatusBeta<TSuccessValue, TFailureValue> = (WithValue<TSuccessValue> & {
1708
+ readonly rollback?: false;
1709
+ }) | (WithValue<TFailureValue> & {
1710
+ readonly rollback: true;
1711
+ });
1712
+
1670
1713
  // @public
1671
1714
  export type TransactionConstraint = NodeInDocumentConstraint;
1672
1715
 
1716
+ // @beta @sealed
1717
+ export interface TransactionResultFailed<TFailureValue> extends WithValue<TFailureValue> {
1718
+ readonly success: false;
1719
+ }
1720
+
1721
+ // @beta @sealed
1722
+ export interface TransactionResultSuccess<TSuccessValue> extends WithValue<TSuccessValue> {
1723
+ readonly success: true;
1724
+ }
1725
+
1726
+ // @beta @sealed
1727
+ export type TransactionValueResult<TSuccessValue, TFailureValue> = TransactionResultSuccess<TSuccessValue> | TransactionResultFailed<TFailureValue>;
1728
+
1729
+ // @beta @sealed
1730
+ export type TransactionVoidResult = Omit<TransactionResultSuccess<unknown>, "value"> | Omit<TransactionResultFailed<unknown>, "value">;
1731
+
1673
1732
  // @public
1674
1733
  export type TransformedEvent<TThis, E, A extends any[]> = (event: E, listener: (...args: ReplaceIEventThisPlaceHolder<A, TThis>) => void) => TThis;
1675
1734
 
@@ -1869,6 +1928,8 @@ export interface TreeView<in out TSchema extends ImplicitFieldSchema> extends ID
1869
1928
  export interface TreeViewBeta<in out TSchema extends ImplicitFieldSchema> extends TreeView<TSchema>, TreeBranch {
1870
1929
  // (undocumented)
1871
1930
  fork(): ReturnType<TreeBranch["fork"]> & TreeViewBeta<TSchema>;
1931
+ runTransaction<TOut extends TransactionCallbackStatusBeta<unknown, unknown> | VoidTransactionCallbackStatusBeta | void>(transaction: () => TOut, params?: RunTransactionParamsBeta): TOut extends TransactionCallbackStatusBeta<infer TSuccessValue, infer TFailureValue> ? TransactionValueResult<TSuccessValue, TFailureValue> : TransactionVoidResult;
1932
+ runTransactionAsync<TOut extends TransactionCallbackStatusBeta<unknown, unknown> | VoidTransactionCallbackStatusBeta | void>(transaction: () => Promise<TOut>, params?: RunTransactionParamsBeta): Promise<TOut extends TransactionCallbackStatusBeta<infer TSuccessValue, infer TFailureValue> ? TransactionValueResult<TSuccessValue, TFailureValue> : TransactionVoidResult>;
1872
1933
  }
1873
1934
 
1874
1935
  // @public @sealed
@@ -1946,6 +2007,9 @@ export interface ViewableTree {
1946
2007
  viewWith<TRoot extends ImplicitFieldSchema>(config: TreeViewConfiguration<TRoot>): TreeView<TRoot>;
1947
2008
  }
1948
2009
 
2010
+ // @beta @input
2011
+ export type VoidTransactionCallbackStatusBeta = Omit<TransactionCallbackStatusBeta<unknown, unknown>, "value">;
2012
+
1949
2013
  // @public @sealed
1950
2014
  export interface WithType<out TName extends string = string, out TKind extends NodeKind = NodeKind, out TInfo = unknown> {
1951
2015
  // @deprecated
@@ -1953,4 +2017,9 @@ export interface WithType<out TName extends string = string, out TKind extends N
1953
2017
  get [typeSchemaSymbol](): TreeNodeSchemaClass<TName, TKind, TreeNode, never, boolean, TInfo>;
1954
2018
  }
1955
2019
 
2020
+ // @beta @input
2021
+ export interface WithValue<TValue> {
2022
+ readonly value: TValue;
2023
+ }
2024
+
1956
2025
  ```
@@ -524,6 +524,20 @@ export type IsListener<TListener> = TListener extends (...args: any[]) => void ?
524
524
  // @public @system
525
525
  export type IsUnion<T, T2 = T> = T extends unknown ? [T2] extends [T] ? false : true : "error";
526
526
 
527
+ // @public
528
+ export interface ITelemetryBaseEvent extends ITelemetryBaseProperties {
529
+ // (undocumented)
530
+ category: string;
531
+ // (undocumented)
532
+ eventName: string;
533
+ }
534
+
535
+ // @public
536
+ export interface ITelemetryBaseLogger {
537
+ minLogLevel?: LogLevel | undefined;
538
+ send(event: ITelemetryBaseEvent, logLevel?: LogLevel): void;
539
+ }
540
+
527
541
  // @public
528
542
  export interface ITelemetryBaseProperties {
529
543
  [index: string]: TelemetryBaseEventPropertyType | Tagged<TelemetryBaseEventPropertyType>;
@@ -573,6 +587,23 @@ export type Listeners<T extends object> = {
573
587
  [P in (string | symbol) & keyof T as IsListener<T[P]> extends true ? P : never]: T[P];
574
588
  };
575
589
 
590
+ // @public
591
+ export const LogLevel: LogLevelConst;
592
+
593
+ // @public
594
+ export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
595
+
596
+ // @public
597
+ export interface LogLevelConst {
598
+ // @deprecated
599
+ readonly default: 20;
600
+ // @deprecated
601
+ readonly error: 30;
602
+ readonly essential: 30;
603
+ readonly info: 20;
604
+ readonly verbose: 10;
605
+ }
606
+
576
607
  // @public @sealed
577
608
  export interface MakeNominal {
578
609
  }
@@ -794,7 +825,7 @@ export namespace System_Unsafe {
794
825
  // @system
795
826
  export type InsertableTreeNodeFromAllowedTypesUnsafe<TList extends AllowedTypesUnsafe> = IsUnion<TList> extends true ? never : {
796
827
  readonly [Property in keyof TList]: TList[Property] extends LazyItem<infer TSchema extends TreeNodeSchemaUnsafe> ? InsertableTypedNodeUnsafe<TSchema> : never;
797
- }[number];
828
+ }[NumberKeys<TList>];
798
829
  // @system
799
830
  export type InsertableTreeNodeFromImplicitAllowedTypesUnsafe<TSchema extends ImplicitAllowedTypesUnsafe> = [TSchema] extends [TreeNodeSchemaUnsafe] ? InsertableTypedNodeUnsafe<TSchema> : [TSchema] extends [AllowedTypesUnsafe] ? InsertableTreeNodeFromAllowedTypesUnsafe<TSchema> : never;
800
831
  // @system
@@ -496,6 +496,20 @@ export type IsListener<TListener> = TListener extends (...args: any[]) => void ?
496
496
  // @public @system
497
497
  export type IsUnion<T, T2 = T> = T extends unknown ? [T2] extends [T] ? false : true : "error";
498
498
 
499
+ // @public
500
+ export interface ITelemetryBaseEvent extends ITelemetryBaseProperties {
501
+ // (undocumented)
502
+ category: string;
503
+ // (undocumented)
504
+ eventName: string;
505
+ }
506
+
507
+ // @public
508
+ export interface ITelemetryBaseLogger {
509
+ minLogLevel?: LogLevel | undefined;
510
+ send(event: ITelemetryBaseEvent, logLevel?: LogLevel): void;
511
+ }
512
+
499
513
  // @public
500
514
  export interface ITelemetryBaseProperties {
501
515
  [index: string]: TelemetryBaseEventPropertyType | Tagged<TelemetryBaseEventPropertyType>;
@@ -539,6 +553,23 @@ export type Listeners<T extends object> = {
539
553
  [P in (string | symbol) & keyof T as IsListener<T[P]> extends true ? P : never]: T[P];
540
554
  };
541
555
 
556
+ // @public
557
+ export const LogLevel: LogLevelConst;
558
+
559
+ // @public
560
+ export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
561
+
562
+ // @public
563
+ export interface LogLevelConst {
564
+ // @deprecated
565
+ readonly default: 20;
566
+ // @deprecated
567
+ readonly error: 30;
568
+ readonly essential: 30;
569
+ readonly info: 20;
570
+ readonly verbose: 10;
571
+ }
572
+
542
573
  // @public @sealed
543
574
  export interface MakeNominal {
544
575
  }
@@ -760,7 +791,7 @@ export namespace System_Unsafe {
760
791
  // @system
761
792
  export type InsertableTreeNodeFromAllowedTypesUnsafe<TList extends AllowedTypesUnsafe> = IsUnion<TList> extends true ? never : {
762
793
  readonly [Property in keyof TList]: TList[Property] extends LazyItem<infer TSchema extends TreeNodeSchemaUnsafe> ? InsertableTypedNodeUnsafe<TSchema> : never;
763
- }[number];
794
+ }[NumberKeys<TList>];
764
795
  // @system
765
796
  export type InsertableTreeNodeFromImplicitAllowedTypesUnsafe<TSchema extends ImplicitAllowedTypesUnsafe> = [TSchema] extends [TreeNodeSchemaUnsafe] ? InsertableTypedNodeUnsafe<TSchema> : [TSchema] extends [AllowedTypesUnsafe] ? InsertableTreeNodeFromAllowedTypesUnsafe<TSchema> : never;
766
797
  // @system
package/dist/alpha.d.ts CHANGED
@@ -54,6 +54,8 @@ export {
54
54
  IProvideFluidLoadable,
55
55
  IServiceAudience,
56
56
  IServiceAudienceEvents,
57
+ ITelemetryBaseEvent,
58
+ ITelemetryBaseLogger,
57
59
  ITelemetryBaseProperties,
58
60
  ITree,
59
61
  ITreeConfigurationOptions,
@@ -74,6 +76,8 @@ export {
74
76
  LeafSchema,
75
77
  Listenable,
76
78
  Listeners,
79
+ LogLevel,
80
+ LogLevelConst,
77
81
  MakeNominal,
78
82
  MapNodeInsertableData,
79
83
  MemberChangedListener,
@@ -173,6 +177,7 @@ export {
173
177
  ObjectSchemaOptions,
174
178
  PopUnion,
175
179
  RecordNodeInsertableData,
180
+ RunTransactionParamsBeta,
176
181
  SchemaFactoryBeta,
177
182
  SchemaStaticsBeta,
178
183
  SchemaUpgrade,
@@ -181,6 +186,11 @@ export {
181
186
  SnapshotSchemaCompatibilityOptions,
182
187
  System_TableSchema,
183
188
  TableSchema,
189
+ TransactionCallbackStatusBeta,
190
+ TransactionResultFailed,
191
+ TransactionResultSuccess,
192
+ TransactionValueResult,
193
+ TransactionVoidResult,
184
194
  TreeBeta,
185
195
  TreeBranch,
186
196
  TreeChangeEventsBeta,
@@ -195,6 +205,8 @@ export {
195
205
  UnannotateAllowedTypesList,
196
206
  UnannotateAllowedTypesListUnsafe,
197
207
  UnionToTuple,
208
+ VoidTransactionCallbackStatusBeta,
209
+ WithValue,
198
210
  adaptEnum,
199
211
  asBeta,
200
212
  configuredSharedTreeBeta,
@@ -224,6 +236,7 @@ export {
224
236
  ChangeMetadata,
225
237
  CodecName,
226
238
  CodecWriteOptions,
239
+ Component,
227
240
  CreateIndependentTreeAlphaOptions,
228
241
  DirtyTreeMap,
229
242
  DirtyTreeStatus,
@@ -247,6 +260,7 @@ export {
247
260
  ITreeAlpha,
248
261
  IncrementalEncodingPolicy,
249
262
  IndependentViewOptions,
263
+ IndependentViewTelemetryOptions,
250
264
  Insertable,
251
265
  InsertableContent,
252
266
  InsertableField,
@@ -295,7 +309,7 @@ export {
295
309
  RemoteChangeMetadata,
296
310
  RevertibleAlpha,
297
311
  RevertibleAlphaFactory,
298
- RunTransactionParams,
312
+ RunTransactionParamsAlpha,
299
313
  SchemaFactoryAlpha,
300
314
  SchemaStaticsAlpha,
301
315
  SchemaType,
@@ -313,13 +327,10 @@ export {
313
327
  SimpleRecordNodeSchema,
314
328
  SimpleTreeSchema,
315
329
  TextAsTree,
316
- TransactionCallbackStatus,
330
+ TransactionCallbackStatusAlpha,
317
331
  TransactionConstraintAlpha,
318
332
  TransactionLabels,
319
- TransactionResult,
320
- TransactionResultExt,
321
- TransactionResultFailed,
322
- TransactionResultSuccess,
333
+ TransactionPostProcessor,
323
334
  TreeAlpha,
324
335
  TreeArrayNodeAlpha,
325
336
  TreeBranchAlpha,
@@ -339,8 +350,7 @@ export {
339
350
  VerboseTree,
340
351
  VerboseTreeNode,
341
352
  ViewContent,
342
- VoidTransactionCallbackStatus,
343
- WithValue,
353
+ VoidTransactionCallbackStatusAlpha,
344
354
  allowUnused,
345
355
  asAlpha,
346
356
  asTreeViewAlpha,
@@ -368,6 +378,7 @@ export {
368
378
  incrementalSummaryHint,
369
379
  independentInitializedView,
370
380
  independentView,
381
+ minimize,
371
382
  normalizeAllowedTypes,
372
383
  persistedToSimpleSchema,
373
384
  replaceConciseTreeHandles,
package/dist/beta.d.ts CHANGED
@@ -54,6 +54,8 @@ export {
54
54
  IProvideFluidLoadable,
55
55
  IServiceAudience,
56
56
  IServiceAudienceEvents,
57
+ ITelemetryBaseEvent,
58
+ ITelemetryBaseLogger,
57
59
  ITelemetryBaseProperties,
58
60
  ITree,
59
61
  ITreeConfigurationOptions,
@@ -74,6 +76,8 @@ export {
74
76
  LeafSchema,
75
77
  Listenable,
76
78
  Listeners,
79
+ LogLevel,
80
+ LogLevelConst,
77
81
  MakeNominal,
78
82
  MapNodeInsertableData,
79
83
  MemberChangedListener,
@@ -173,6 +177,7 @@ export {
173
177
  ObjectSchemaOptions,
174
178
  PopUnion,
175
179
  RecordNodeInsertableData,
180
+ RunTransactionParamsBeta,
176
181
  SchemaFactoryBeta,
177
182
  SchemaStaticsBeta,
178
183
  SchemaUpgrade,
@@ -181,6 +186,11 @@ export {
181
186
  SnapshotSchemaCompatibilityOptions,
182
187
  System_TableSchema,
183
188
  TableSchema,
189
+ TransactionCallbackStatusBeta,
190
+ TransactionResultFailed,
191
+ TransactionResultSuccess,
192
+ TransactionValueResult,
193
+ TransactionVoidResult,
184
194
  TreeBeta,
185
195
  TreeBranch,
186
196
  TreeChangeEventsBeta,
@@ -195,6 +205,8 @@ export {
195
205
  UnannotateAllowedTypesList,
196
206
  UnannotateAllowedTypesListUnsafe,
197
207
  UnionToTuple,
208
+ VoidTransactionCallbackStatusBeta,
209
+ WithValue,
198
210
  adaptEnum,
199
211
  asBeta,
200
212
  configuredSharedTreeBeta,
package/dist/index.d.ts CHANGED
@@ -15,7 +15,7 @@ export { ConnectionState } from "@fluidframework/container-loader";
15
15
  export type { ContainerAttachProps, ContainerSchema, IConnection, IFluidContainer, IFluidContainerEvents, IMember, InitialObjects, IServiceAudience, IServiceAudienceEvents, MemberChangedListener, Myself, } from "@fluidframework/fluid-static";
16
16
  export { getPresence, getPresenceAlpha } from "@fluidframework/fluid-static/internal";
17
17
  export type { SharedObjectKind } from "@fluidframework/shared-object-base";
18
- export type { IErrorBase, IEventProvider, IDisposable, IEvent, IEventThisPlaceHolder, IErrorEvent, ErasedType, IFluidHandle, IFluidLoadable, ITelemetryBaseProperties, IEventTransformer, IProvideFluidLoadable, IFluidHandleErased, TransformedEvent, TelemetryBaseEventPropertyType, Tagged, ReplaceIEventThisPlaceHolder, FluidObject, // Linked in doc comment
18
+ export type { IErrorBase, IEventProvider, IDisposable, IEvent, IEventThisPlaceHolder, IErrorEvent, ErasedType, IFluidHandle, IFluidLoadable, ITelemetryBaseEvent, ITelemetryBaseLogger, ITelemetryBaseProperties, IEventTransformer, IProvideFluidLoadable, IFluidHandleErased, LogLevel, LogLevelConst, TransformedEvent, TelemetryBaseEventPropertyType, Tagged, ReplaceIEventThisPlaceHolder, FluidObject, // Linked in doc comment
19
19
  FluidObjectProviderKeys, // Used by FluidObject
20
20
  Listeners, IsListener, Listenable, Off, } from "@fluidframework/core-interfaces";
21
21
  export type { ErasedBaseType, FluidIterable, FluidIterableIterator, FluidMap, FluidReadonlyMap, } from "@fluidframework/core-interfaces/internal";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAMH,YAAY,EACX,eAAe,IAAI,mBAAmB,EAAE,0CAA0C;AAClF,uBAAuB,GACvB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,YAAY,EACX,oBAAoB,EACpB,eAAe,EACf,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,MAAM,GACN,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACtF,YAAY,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,YAAY,EACX,UAAU,EACV,cAAc,EACd,WAAW,EACX,MAAM,EACN,qBAAqB,EACrB,WAAW,EACX,UAAU,EACV,YAAY,EACZ,cAAc,EACd,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,8BAA8B,EAC9B,MAAM,EACN,4BAA4B,EAC5B,WAAW,EAAE,wBAAwB;AACrC,uBAAuB,EAAE,sBAAsB;AAE/C,SAAS,EACT,UAAU,EACV,UAAU,EACV,GAAG,GAEH,MAAM,iCAAiC,CAAC;AACzC,YAAY,EACX,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,QAAQ,EACR,gBAAgB,GAChB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,YAAY,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AASnE,cAAc,4BAA4B,CAAC;AAQ3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAGN,KAAK,iBAAiB,EACtB,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,EAAE,gBAAgB,CAAC,KAAK,CAAsB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,iBAAiB,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAExF;AAQD,YAAY,EACX,UAAU,EACV,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,gBAAgB,EAChB,aAAa,GACb,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAE1E,YAAY,EACX,mBAAmB,EACnB,qBAAqB,EACrB,SAAS,EACT,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,4BAA4B,EAC5B,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,IAAI,EACJ,sBAAsB,EACtB,2BAA2B,EAC3B,iCAAiC,EACjC,qBAAqB,GACrB,MAAM,mCAAmC,CAAC;AAE3C,YAAY,EACX,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,wBAAwB,GACxB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE,YAAY,EACX,aAAa,EACb,mBAAmB,EACnB,iBAAiB,GACjB,MAAM,6CAA6C,CAAC;AAErD,YAAY,EACX,yBAAyB,EAAE,iCAAiC;AAC5D,aAAa,EAAE,yCAAyC;AACxD,MAAM,GACN,MAAM,6CAA6C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;AAiBH,+EAAoE;AAA3D,oHAAA,WAAW,OAAA;AACpB,qEAAmE;AAA1D,mHAAA,eAAe,OAAA;AAcxB,kEAAsF;AAA7E,uGAAA,WAAW,OAAA;AAAE,4GAAA,gBAAgB,OAAA;AAoCtC,gEAAyE;AAAhE,8GAAA,kBAAkB,OAAA;AAI3B,mDAAmD;AACnD,4FAA4F;AAC5F;;;;MAIG;AACH,6DAA2C;AAU3C,4DAIuC;AAEvC;;;;;;;;;GASG;AACU,QAAA,UAAU,GAA4B,qBAAkB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,oBAAoB,CAAC,OAA0B;IAC9D,OAAO,IAAA,+BAA4B,EAAC,OAAO,CAAC,CAAC;AAC9C,CAAC;AAFD,oDAEC;AAmBD,yDAA0E;AAAjE,2GAAA,eAAe,OAAA;AAAE,qGAAA,SAAS,OAAA;AA4BnC,8DAAiE;AAAxD,wGAAA,YAAY,OAAA;AAcrB,4BAA4B","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Bundles a collection of Fluid Framework client libraries for easy use when paired with a corresponding service client\n * package (e.g. `@fluidframework/azure-client`, `@fluidframework/tinylicious-client`, or `@fluidframework/odsp-client (BETA)`).\n *\n * @packageDocumentation\n */\n\n// ===============================================================\n// #region Public, Beta and Alpha (non-legacy) exports\n// #region Basic re-exports\n\nexport type {\n\tConnectionState as ConnectionStateType, // TODO: deduplicate ConnectionState types\n\tICriticalContainerError,\n} from \"@fluidframework/container-definitions\";\nexport { AttachState } from \"@fluidframework/container-definitions\";\nexport { ConnectionState } from \"@fluidframework/container-loader\";\nexport type {\n\tContainerAttachProps,\n\tContainerSchema,\n\tIConnection,\n\tIFluidContainer,\n\tIFluidContainerEvents,\n\tIMember,\n\tInitialObjects,\n\tIServiceAudience,\n\tIServiceAudienceEvents,\n\tMemberChangedListener,\n\tMyself,\n} from \"@fluidframework/fluid-static\";\nexport { getPresence, getPresenceAlpha } from \"@fluidframework/fluid-static/internal\";\nexport type { SharedObjectKind } from \"@fluidframework/shared-object-base\";\nexport type {\n\tIErrorBase,\n\tIEventProvider,\n\tIDisposable,\n\tIEvent,\n\tIEventThisPlaceHolder,\n\tIErrorEvent,\n\tErasedType,\n\tIFluidHandle,\n\tIFluidLoadable,\n\tITelemetryBaseProperties,\n\tIEventTransformer,\n\tIProvideFluidLoadable,\n\tIFluidHandleErased,\n\tTransformedEvent,\n\tTelemetryBaseEventPropertyType,\n\tTagged,\n\tReplaceIEventThisPlaceHolder,\n\tFluidObject, // Linked in doc comment\n\tFluidObjectProviderKeys, // Used by FluidObject\n\t/* eslint-disable import-x/export -- The event APIs are known to conflict, and this is intended as the exports via `@fluidframework/core-interfaces` are preferred over the deprecated ones from `@fluidframework/tree`. */\n\tListeners,\n\tIsListener,\n\tListenable,\n\tOff,\n\t/* eslint-enable import-x/export */\n} from \"@fluidframework/core-interfaces\";\nexport type {\n\tErasedBaseType,\n\tFluidIterable,\n\tFluidIterableIterator,\n\tFluidMap,\n\tFluidReadonlyMap,\n} from \"@fluidframework/core-interfaces/internal\";\nexport { onAssertionFailure } from \"@fluidframework/core-utils/internal\";\n\nexport type { isFluidHandle } from \"@fluidframework/runtime-utils\";\n\n// Let the tree package manage its own API surface.\n// Note: this only surfaces the `@public, @beta and @alpha` API items from the tree package.\n/* eslint-disable-next-line\n\tno-restricted-syntax,\n\timport-x/no-internal-modules,\n\timport-x/export -- This re-exports all non-conflicting APIs from `@fluidframework/tree`. In cases where * exports conflict with named exports, the named exports take precedence per https://tc39.es/ecma262/multipage/ecmascript-language-scripts-and-modules.html#sec-getexportednames. This does trigger the `import-x/export` lint warning (which is intentionally disabled here). This approach ensures that the non-deprecated versions of the event APIs from `@fluidframework/core-interfaces` (provided as named indirect exports) eclipse the deprecated ones from `@fluidframework/tree`. The preferred versions of the event APIs are those exported via `@fluidframework/core-interfaces`.\n\t*/\nexport * from \"@fluidframework/tree/alpha\";\n\n// End of basic public+beta+alpha exports - nothing above this line should\n// depend on an /internal path.\n// #endregion Basic re-exports\n// ---------------------------------------------------------------\n// #region Custom re-exports\n\nimport type { SharedObjectKind } from \"@fluidframework/shared-object-base\";\nimport type { ITree } from \"@fluidframework/tree\";\nimport {\n\tSharedTree as OriginalSharedTree,\n\tconfiguredSharedTree as originalConfiguredSharedTree,\n\ttype SharedTreeOptions,\n} from \"@fluidframework/tree/internal\";\n\n/**\n * A hierarchical data structure for collaboratively editing strongly typed JSON-like trees\n * of objects, arrays, and other data types.\n * @privateRemarks\n * Here we reexport SharedTree, but with the `@legacy` types (`ISharedObjectKind`) removed, just keeping the `SharedObjectKind`.\n * Doing this requires creating this new typed export rather than relying on a reexport directly from the tree package.\n * The tree package itself does not do this because it's API needs to be usable from the encapsulated API which requires `ISharedObjectKind`.\n * This package however is not intended for use by users of the encapsulated API, and therefore it can discard that interface.\n * @public\n */\nexport const SharedTree: SharedObjectKind<ITree> = OriginalSharedTree;\n\n/**\n * {@link SharedTree} but allowing a non-default configuration.\n * @remarks\n * This is useful for debugging and testing.\n * For example, it can be used to opt into extra validation or see if opting out of some optimizations fixes an issue.\n *\n * With great care, and knowledge of the support and stability of the options exposed here,\n * this can also be used to opt into some features early or for performance tuning.\n *\n * @example\n * ```typescript\n * import {\n * \tTreeCompressionStrategy,\n * \tconfiguredSharedTree,\n * \tFormatValidatorBasic,\n * \tForestTypeReference,\n * } from \"fluid-framework/alpha\";\n * const SharedTree = configuredSharedTree({\n * \tforest: ForestTypeReference,\n * \tjsonValidator: FormatValidatorBasic,\n * \ttreeEncodeType: TreeCompressionStrategy.Uncompressed,\n * });\n * ```\n * @alpha\n */\nexport function configuredSharedTree(options: SharedTreeOptions): SharedObjectKind<ITree> {\n\treturn originalConfiguredSharedTree(options);\n}\n\n// #endregion Custom re-exports\n// #endregion\n\n// ===============================================================\n// #region Legacy exports\n\nexport type {\n\tIDirectory,\n\tIDirectoryEvents,\n\tIDirectoryValueChanged,\n\tISharedDirectory,\n\tISharedDirectoryEvents,\n\tISharedMap,\n\tISharedMapEvents,\n\tIValueChanged,\n} from \"@fluidframework/map/internal\";\n\nexport { SharedDirectory, SharedMap } from \"@fluidframework/map/internal\";\n\nexport type {\n\tDeserializeCallback,\n\tInteriorSequencePlace,\n\tIInterval,\n\tIntervalStickiness,\n\tISequenceDeltaRange,\n\tISerializedInterval,\n\tISharedSegmentSequenceEvents,\n\tISharedString,\n\tSequencePlace,\n\tSharedStringSegment,\n\tSide,\n\tISharedSegmentSequence,\n\tISequenceIntervalCollection,\n\tISequenceIntervalCollectionEvents,\n\tSequenceIntervalIndex,\n} from \"@fluidframework/sequence/internal\";\n\nexport type {\n\tIntervalType,\n\tSequenceDeltaEvent,\n\tSequenceEvent,\n\tSequenceInterval,\n\tSequenceMaintenanceEvent,\n} from \"@fluidframework/sequence/internal\";\n\nexport { SharedString } from \"@fluidframework/sequence/internal\";\n\nexport type {\n\tISharedObject,\n\tISharedObjectEvents,\n\tISharedObjectKind,\n} from \"@fluidframework/shared-object-base/internal\";\n\nexport type {\n\tISequencedDocumentMessage, // Leaked via ISharedObjectEvents\n\tIBranchOrigin, // Required for ISequencedDocumentMessage\n\tITrace, // Required for ISequencedDocumentMessage\n} from \"@fluidframework/driver-definitions/internal\";\n\n// #endregion Legacy exports\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;AAiBH,+EAAoE;AAA3D,oHAAA,WAAW,OAAA;AACpB,qEAAmE;AAA1D,mHAAA,eAAe,OAAA;AAcxB,kEAAsF;AAA7E,uGAAA,WAAW,OAAA;AAAE,4GAAA,gBAAgB,OAAA;AAwCtC,gEAAyE;AAAhE,8GAAA,kBAAkB,OAAA;AAI3B,mDAAmD;AACnD,4FAA4F;AAC5F;;;;MAIG;AACH,6DAA2C;AAU3C,4DAIuC;AAEvC;;;;;;;;;GASG;AACU,QAAA,UAAU,GAA4B,qBAAkB,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,oBAAoB,CAAC,OAA0B;IAC9D,OAAO,IAAA,+BAA4B,EAAC,OAAO,CAAC,CAAC;AAC9C,CAAC;AAFD,oDAEC;AAmBD,yDAA0E;AAAjE,2GAAA,eAAe,OAAA;AAAE,qGAAA,SAAS,OAAA;AA4BnC,8DAAiE;AAAxD,wGAAA,YAAY,OAAA;AAcrB,4BAA4B","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Bundles a collection of Fluid Framework client libraries for easy use when paired with a corresponding service client\n * package (e.g. `@fluidframework/azure-client`, `@fluidframework/tinylicious-client`, or `@fluidframework/odsp-client (BETA)`).\n *\n * @packageDocumentation\n */\n\n// ===============================================================\n// #region Public, Beta and Alpha (non-legacy) exports\n// #region Basic re-exports\n\nexport type {\n\tConnectionState as ConnectionStateType, // TODO: deduplicate ConnectionState types\n\tICriticalContainerError,\n} from \"@fluidframework/container-definitions\";\nexport { AttachState } from \"@fluidframework/container-definitions\";\nexport { ConnectionState } from \"@fluidframework/container-loader\";\nexport type {\n\tContainerAttachProps,\n\tContainerSchema,\n\tIConnection,\n\tIFluidContainer,\n\tIFluidContainerEvents,\n\tIMember,\n\tInitialObjects,\n\tIServiceAudience,\n\tIServiceAudienceEvents,\n\tMemberChangedListener,\n\tMyself,\n} from \"@fluidframework/fluid-static\";\nexport { getPresence, getPresenceAlpha } from \"@fluidframework/fluid-static/internal\";\nexport type { SharedObjectKind } from \"@fluidframework/shared-object-base\";\nexport type {\n\tIErrorBase,\n\tIEventProvider,\n\tIDisposable,\n\tIEvent,\n\tIEventThisPlaceHolder,\n\tIErrorEvent,\n\tErasedType,\n\tIFluidHandle,\n\tIFluidLoadable,\n\tITelemetryBaseEvent,\n\tITelemetryBaseLogger,\n\tITelemetryBaseProperties,\n\tIEventTransformer,\n\tIProvideFluidLoadable,\n\tIFluidHandleErased,\n\tLogLevel,\n\tLogLevelConst,\n\tTransformedEvent,\n\tTelemetryBaseEventPropertyType,\n\tTagged,\n\tReplaceIEventThisPlaceHolder,\n\tFluidObject, // Linked in doc comment\n\tFluidObjectProviderKeys, // Used by FluidObject\n\t/* eslint-disable import-x/export -- The event APIs are known to conflict, and this is intended as the exports via `@fluidframework/core-interfaces` are preferred over the deprecated ones from `@fluidframework/tree`. */\n\tListeners,\n\tIsListener,\n\tListenable,\n\tOff,\n\t/* eslint-enable import-x/export */\n} from \"@fluidframework/core-interfaces\";\nexport type {\n\tErasedBaseType,\n\tFluidIterable,\n\tFluidIterableIterator,\n\tFluidMap,\n\tFluidReadonlyMap,\n} from \"@fluidframework/core-interfaces/internal\";\nexport { onAssertionFailure } from \"@fluidframework/core-utils/internal\";\n\nexport type { isFluidHandle } from \"@fluidframework/runtime-utils\";\n\n// Let the tree package manage its own API surface.\n// Note: this only surfaces the `@public, @beta and @alpha` API items from the tree package.\n/* eslint-disable-next-line\n\tno-restricted-syntax,\n\timport-x/no-internal-modules,\n\timport-x/export -- This re-exports all non-conflicting APIs from `@fluidframework/tree`. In cases where * exports conflict with named exports, the named exports take precedence per https://tc39.es/ecma262/multipage/ecmascript-language-scripts-and-modules.html#sec-getexportednames. This does trigger the `import-x/export` lint warning (which is intentionally disabled here). This approach ensures that the non-deprecated versions of the event APIs from `@fluidframework/core-interfaces` (provided as named indirect exports) eclipse the deprecated ones from `@fluidframework/tree`. The preferred versions of the event APIs are those exported via `@fluidframework/core-interfaces`.\n\t*/\nexport * from \"@fluidframework/tree/alpha\";\n\n// End of basic public+beta+alpha exports - nothing above this line should\n// depend on an /internal path.\n// #endregion Basic re-exports\n// ---------------------------------------------------------------\n// #region Custom re-exports\n\nimport type { SharedObjectKind } from \"@fluidframework/shared-object-base\";\nimport type { ITree } from \"@fluidframework/tree\";\nimport {\n\tSharedTree as OriginalSharedTree,\n\tconfiguredSharedTree as originalConfiguredSharedTree,\n\ttype SharedTreeOptions,\n} from \"@fluidframework/tree/internal\";\n\n/**\n * A hierarchical data structure for collaboratively editing strongly typed JSON-like trees\n * of objects, arrays, and other data types.\n * @privateRemarks\n * Here we reexport SharedTree, but with the `@legacy` types (`ISharedObjectKind`) removed, just keeping the `SharedObjectKind`.\n * Doing this requires creating this new typed export rather than relying on a reexport directly from the tree package.\n * The tree package itself does not do this because it's API needs to be usable from the encapsulated API which requires `ISharedObjectKind`.\n * This package however is not intended for use by users of the encapsulated API, and therefore it can discard that interface.\n * @public\n */\nexport const SharedTree: SharedObjectKind<ITree> = OriginalSharedTree;\n\n/**\n * {@link SharedTree} but allowing a non-default configuration.\n * @remarks\n * This is useful for debugging and testing.\n * For example, it can be used to opt into extra validation or see if opting out of some optimizations fixes an issue.\n *\n * With great care, and knowledge of the support and stability of the options exposed here,\n * this can also be used to opt into some features early or for performance tuning.\n *\n * @example\n * ```typescript\n * import {\n * \tTreeCompressionStrategy,\n * \tconfiguredSharedTree,\n * \tFormatValidatorBasic,\n * \tForestTypeReference,\n * } from \"fluid-framework/alpha\";\n * const SharedTree = configuredSharedTree({\n * \tforest: ForestTypeReference,\n * \tjsonValidator: FormatValidatorBasic,\n * \ttreeEncodeType: TreeCompressionStrategy.Uncompressed,\n * });\n * ```\n * @alpha\n */\nexport function configuredSharedTree(options: SharedTreeOptions): SharedObjectKind<ITree> {\n\treturn originalConfiguredSharedTree(options);\n}\n\n// #endregion Custom re-exports\n// #endregion\n\n// ===============================================================\n// #region Legacy exports\n\nexport type {\n\tIDirectory,\n\tIDirectoryEvents,\n\tIDirectoryValueChanged,\n\tISharedDirectory,\n\tISharedDirectoryEvents,\n\tISharedMap,\n\tISharedMapEvents,\n\tIValueChanged,\n} from \"@fluidframework/map/internal\";\n\nexport { SharedDirectory, SharedMap } from \"@fluidframework/map/internal\";\n\nexport type {\n\tDeserializeCallback,\n\tInteriorSequencePlace,\n\tIInterval,\n\tIntervalStickiness,\n\tISequenceDeltaRange,\n\tISerializedInterval,\n\tISharedSegmentSequenceEvents,\n\tISharedString,\n\tSequencePlace,\n\tSharedStringSegment,\n\tSide,\n\tISharedSegmentSequence,\n\tISequenceIntervalCollection,\n\tISequenceIntervalCollectionEvents,\n\tSequenceIntervalIndex,\n} from \"@fluidframework/sequence/internal\";\n\nexport type {\n\tIntervalType,\n\tSequenceDeltaEvent,\n\tSequenceEvent,\n\tSequenceInterval,\n\tSequenceMaintenanceEvent,\n} from \"@fluidframework/sequence/internal\";\n\nexport { SharedString } from \"@fluidframework/sequence/internal\";\n\nexport type {\n\tISharedObject,\n\tISharedObjectEvents,\n\tISharedObjectKind,\n} from \"@fluidframework/shared-object-base/internal\";\n\nexport type {\n\tISequencedDocumentMessage, // Leaked via ISharedObjectEvents\n\tIBranchOrigin, // Required for ISequencedDocumentMessage\n\tITrace, // Required for ISequencedDocumentMessage\n} from \"@fluidframework/driver-definitions/internal\";\n\n// #endregion Legacy exports\n"]}
package/dist/legacy.d.ts CHANGED
@@ -54,6 +54,8 @@ export {
54
54
  IProvideFluidLoadable,
55
55
  IServiceAudience,
56
56
  IServiceAudienceEvents,
57
+ ITelemetryBaseEvent,
58
+ ITelemetryBaseLogger,
57
59
  ITelemetryBaseProperties,
58
60
  ITree,
59
61
  ITreeConfigurationOptions,
@@ -74,6 +76,8 @@ export {
74
76
  LeafSchema,
75
77
  Listenable,
76
78
  Listeners,
79
+ LogLevel,
80
+ LogLevelConst,
77
81
  MakeNominal,
78
82
  MapNodeInsertableData,
79
83
  MemberChangedListener,
@@ -180,6 +184,7 @@ export {
180
184
  ObjectSchemaOptions,
181
185
  PopUnion,
182
186
  RecordNodeInsertableData,
187
+ RunTransactionParamsBeta,
183
188
  SchemaFactoryBeta,
184
189
  SchemaStaticsBeta,
185
190
  SchemaUpgrade,
@@ -188,6 +193,11 @@ export {
188
193
  SnapshotSchemaCompatibilityOptions,
189
194
  System_TableSchema,
190
195
  TableSchema,
196
+ TransactionCallbackStatusBeta,
197
+ TransactionResultFailed,
198
+ TransactionResultSuccess,
199
+ TransactionValueResult,
200
+ TransactionVoidResult,
191
201
  TreeBeta,
192
202
  TreeBranch,
193
203
  TreeChangeEventsBeta,
@@ -202,6 +212,8 @@ export {
202
212
  UnannotateAllowedTypesList,
203
213
  UnannotateAllowedTypesListUnsafe,
204
214
  UnionToTuple,
215
+ VoidTransactionCallbackStatusBeta,
216
+ WithValue,
205
217
  adaptEnum,
206
218
  asBeta,
207
219
  configuredSharedTreeBeta,
package/dist/public.d.ts CHANGED
@@ -54,6 +54,8 @@ export {
54
54
  IProvideFluidLoadable,
55
55
  IServiceAudience,
56
56
  IServiceAudienceEvents,
57
+ ITelemetryBaseEvent,
58
+ ITelemetryBaseLogger,
57
59
  ITelemetryBaseProperties,
58
60
  ITree,
59
61
  ITreeConfigurationOptions,
@@ -74,6 +76,8 @@ export {
74
76
  LeafSchema,
75
77
  Listenable,
76
78
  Listeners,
79
+ LogLevel,
80
+ LogLevelConst,
77
81
  MakeNominal,
78
82
  MapNodeInsertableData,
79
83
  MemberChangedListener,