@@ -74,11 +74,13 @@ export interface TransactionOptions extends Omit<CommandOperationOptions, 'timeo
7474
7575/**
7676 * @public
77+ * @deprecated - Will be made internal in a future major release.
7778 * A class maintaining state related to a server transaction. Internal Only
7879 */
7980export class Transaction {
8081 /** @internal */
8182 state : TxnState ;
83+ /** @deprecated - Will be made internal in a future major release. */
8284 options : TransactionOptions ;
8385 /** @internal */
8486 _pinnedServer ?: Server ;
@@ -122,26 +124,33 @@ export class Transaction {
122124 return this . _pinnedServer ;
123125 }
124126
127+ /** @deprecated - Will be made internal in a future major release. */
125128 get recoveryToken ( ) : Document | undefined {
126129 return this . _recoveryToken ;
127130 }
128131
132+ /** @deprecated - Will be made internal in a future major release. */
129133 get isPinned ( ) : boolean {
130134 return ! ! this . server ;
131135 }
132136
133- /** @returns Whether the transaction has started */
137+ /**
138+ * @deprecated - Will be made internal in a future major release.
139+ * @returns Whether the transaction has started
140+ */
134141 get isStarting ( ) : boolean {
135142 return this . state === TxnState . STARTING_TRANSACTION ;
136143 }
137144
138145 /**
146+ * @deprecated - Will be made internal in a future major release.
139147 * @returns Whether this session is presently in a transaction
140148 */
141149 get isActive ( ) : boolean {
142150 return ACTIVE_STATES . has ( this . state ) ;
143151 }
144152
153+ /** @deprecated - Will be made internal in a future major release. */
145154 get isCommitted ( ) : boolean {
146155 return COMMITTED_STATES . has ( this . state ) ;
147156 }
0 commit comments