Skip to content

Commit 2da8a06

Browse files
committed
cleanup
1 parent 2e01158 commit 2da8a06

16 files changed

Lines changed: 25 additions & 1373 deletions

ENTITY_IMPLEMENTATION_PLAN.md

Lines changed: 0 additions & 1220 deletions
This file was deleted.

packages/durabletask-js/src/client/client.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,6 @@ export class TaskHubGrpcClient {
405405
* @param operationName - The name of the operation to invoke.
406406
* @param input - Optional input data for the operation.
407407
* @param options - Optional signal options (e.g., scheduled time).
408-
*
409-
* @remarks
410-
* Dotnet reference: DurableEntityClient.SignalEntityAsync
411408
*/
412409
async signalEntity(
413410
id: EntityInstanceId,
@@ -451,9 +448,6 @@ export class TaskHubGrpcClient {
451448
* @param id - The ID of the entity to get.
452449
* @param includeState - Whether to include the entity's state in the response. Defaults to true.
453450
* @returns The entity metadata, or undefined if the entity does not exist.
454-
*
455-
* @remarks
456-
* Dotnet reference: DurableEntityClient.GetEntityAsync
457451
*/
458452
async getEntity<T = unknown>(
459453
id: EntityInstanceId,
@@ -491,7 +485,6 @@ export class TaskHubGrpcClient {
491485
*
492486
* @remarks
493487
* This method handles pagination automatically, fetching additional pages as needed.
494-
* Dotnet reference: DurableEntityClient.GetAllEntitiesAsync
495488
*/
496489
async *getEntities<T = unknown>(query?: EntityQuery): AsyncGenerator<EntityMetadata<T>, void, unknown> {
497490
let continuationToken: string | undefined = query?.continuationToken;
@@ -557,9 +550,6 @@ export class TaskHubGrpcClient {
557550
* @param request - The clean request specifying what to clean. Defaults to removing empty entities and releasing orphaned locks.
558551
* @param continueUntilComplete - Whether to continue until all cleaning is done, or return after one batch.
559552
* @returns The result of the clean operation.
560-
*
561-
* @remarks
562-
* Dotnet reference: DurableEntityClient.CleanEntityStorageAsync
563553
*/
564554
async cleanEntityStorage(
565555
request?: CleanEntityStorageRequest,

packages/durabletask-js/src/entities/entity-operation-failed-exception.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import * as pb from "../proto/orchestrator_service_pb";
1010
* @remarks
1111
* Contains structured information about an error that occurred during
1212
* entity operation execution, including error type, message, and stack trace.
13-
*
14-
* Dotnet reference: src/Abstractions/TaskFailureDetails.cs
1513
*/
1614
export interface TaskFailureDetails {
1715
/**
@@ -60,8 +58,6 @@ export function createTaskFailureDetails(proto: pb.TaskFailureDetails | undefine
6058
* @remarks
6159
* Detailed information associated with a particular operation failure, including exception details,
6260
* can be found in the `failureDetails` property.
63-
*
64-
* Dotnet reference: src/Abstractions/Entities/EntityOperationFailedException.cs
6561
*/
6662
export class EntityOperationFailedException extends Error {
6763
/**

packages/durabletask-js/src/entities/orchestration-entity-feature.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ export interface CriticalSectionInfo {
2727
* @remarks
2828
* Use this to release locks acquired via `lockEntities`.
2929
* Typically used in a try/finally block to ensure locks are released.
30-
*
31-
* Dotnet reference: IAsyncDisposable returned by LockEntitiesAsync
3230
*/
3331
export interface LockHandle {
3432
/**
@@ -45,8 +43,6 @@ export interface LockHandle {
4543
* - `callEntity` waits for a response from the entity.
4644
* - `signalEntity` is a one-way (fire-and-forget) operation that doesn't wait for a response.
4745
* - `lockEntities` acquires locks on multiple entities for critical sections.
48-
*
49-
* Dotnet reference: src/Abstractions/Entities/TaskOrchestrationEntityFeature.cs
5046
*/
5147
export interface OrchestrationEntityFeature {
5248
/**
@@ -64,8 +60,6 @@ export interface OrchestrationEntityFeature {
6460
* Unlike `signalEntity`, this method waits for the entity to process the operation
6561
* and returns the result. If the entity operation throws an exception, this method
6662
* will throw an `EntityOperationFailedException` containing the failure details.
67-
*
68-
* Dotnet reference: TaskOrchestrationEntityFeature.CallEntityAsync
6963
*/
7064
callEntity<TResult = void>(
7165
id: EntityInstanceId,
@@ -86,8 +80,6 @@ export interface OrchestrationEntityFeature {
8680
* This is a fire-and-forget operation. The orchestration will not wait for
8781
* the entity operation to complete. Use `callEntity` if you need to wait
8882
* for a response.
89-
*
90-
* Dotnet reference: TaskOrchestrationEntityFeature.SignalEntityAsync
9183
*/
9284
signalEntity(
9385
id: EntityInstanceId,
@@ -114,8 +106,6 @@ export interface OrchestrationEntityFeature {
114106
* - You can call (but not signal) the locked entities
115107
* - You cannot call sub-orchestrations
116108
* - You cannot acquire additional locks (no nested critical sections)
117-
*
118-
* Dotnet reference: TaskOrchestrationEntityFeature.LockEntitiesAsync
119109
*/
120110
lockEntities(...entityIds: EntityInstanceId[]): Task<LockHandle>;
121111

@@ -124,8 +114,6 @@ export interface OrchestrationEntityFeature {
124114
*
125115
* @returns Information about the current critical section state.
126116
*
127-
* @remarks
128-
* Dotnet reference: TaskOrchestrationEntityFeature.InCriticalSection
129117
*/
130118
isInCriticalSection(): CriticalSectionInfo;
131119
}

packages/durabletask-js/src/entities/signal-entity-options.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
* @remarks
88
* Signals are one-way (fire-and-forget) messages sent to entities.
99
* The signalTime option allows scheduling a signal for future delivery.
10-
*
11-
* Dotnet reference: src/Abstractions/Entities/CallEntityOptions.cs - SignalEntityOptions
1210
*/
1311
export interface SignalEntityOptions {
1412
/**
@@ -25,8 +23,6 @@ export interface SignalEntityOptions {
2523
* Currently empty, reserved for future extensibility.
2624
* Keeping this interface so we can ship with options in the API
2725
* and add properties later without breaking changes.
28-
*
29-
* Dotnet reference: src/Abstractions/Entities/CallEntityOptions.cs - CallEntityOptions
3026
*/
3127
// eslint-disable-next-line @typescript-eslint/no-empty-interface
3228
export interface CallEntityOptions {

packages/durabletask-js/src/entities/task-entity-context.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ export interface StartOrchestrationOptions {
2828
* @remarks
2929
* This context is available during entity operation execution and allows
3030
* the entity to interact with other entities and orchestrations.
31-
*
32-
* Dotnet reference: src/Abstractions/Entities/TaskEntityContext.cs
3331
*/
3432
export interface TaskEntityContext {
3533
/**

packages/durabletask-js/src/entities/task-entity-operation.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ import { TaskEntityState } from "./task-entity-state";
1313
* - The operation input (if any)
1414
* - The entity context (for signaling other entities, scheduling orchestrations)
1515
* - The entity state (for reading/writing persistent state)
16-
*
17-
* Dotnet reference: src/Abstractions/Entities/TaskEntityOperation.cs
1816
*/
1917
export interface TaskEntityOperation {
2018
/**

packages/durabletask-js/src/entities/task-entity-state.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
* @remarks
88
* This interface provides methods for getting and setting entity state during operation execution.
99
* Setting state to null or undefined will delete the entity state.
10-
*
11-
* Dotnet reference: src/Abstractions/Entities/TaskEntityState.cs
1210
*/
1311
export interface TaskEntityState {
1412
/**

packages/durabletask-js/src/entities/task-entity.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import { TaskEntityOperation } from "./task-entity-operation";
1010
* @remarks
1111
* This is the core interface that all entities must implement.
1212
* The state of an entity can be retrieved and updated via the operation's state property.
13-
*
14-
* Dotnet reference: src/Abstractions/Entities/TaskEntity.cs - ITaskEntity
1513
*/
1614
export interface ITaskEntity {
1715
/**
@@ -50,8 +48,6 @@ export type EntityFactory<T extends ITaskEntity = ITaskEntity> = () => T;
5048
* This class supports the `delete` operation implicitly. When `delete` is called and no
5149
* explicit delete method exists, the entity state is set to null (deleted).
5250
* To override this behavior, implement a `delete()` method on your entity.
53-
*
54-
* Dotnet reference: src/Abstractions/Entities/TaskEntity.cs - TaskEntity<TState>
5551
*/
5652
export abstract class TaskEntity<TState> implements ITaskEntity {
5753
/**

packages/durabletask-js/src/task/context/orchestration-context.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ export abstract class OrchestrationContext {
4646
* @remarks
4747
* Use this property to signal entities from within an orchestration.
4848
* Signaling is a one-way (fire-and-forget) operation.
49-
*
50-
* Dotnet reference: TaskOrchestrationContext.Entities
5149
*/
5250
abstract get entities(): OrchestrationEntityFeature;
5351

0 commit comments

Comments
 (0)