From e03fd7c106a13c7c2c766f5230e82237b10f91ee Mon Sep 17 00:00:00 2001 From: WMXPY Date: Sat, 21 Oct 2023 14:36:12 -0700 Subject: [PATCH] add configu for procedure start and end --- src/procedure/definition/configuration.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/procedure/definition/configuration.ts b/src/procedure/definition/configuration.ts index 57f25dc..8a4df10 100644 --- a/src/procedure/definition/configuration.ts +++ b/src/procedure/definition/configuration.ts @@ -8,7 +8,14 @@ import { Pattern } from "@sudoo/pattern"; export enum PUB_PROCEDURE_TYPE { + // Procedure Control + START = "START", + END = "END", + + // Action Taking DRIVER = "DRIVER", + + // Data Manipulation MAP = "MAP", } @@ -21,10 +28,22 @@ export type PubProcedureConfiguration = { }; export type PubProcedureConfigurationPayloadSwitch = + T extends PUB_PROCEDURE_TYPE.START ? PubProcedureConfiguration_Start : + T extends PUB_PROCEDURE_TYPE.END ? PubProcedureConfiguration_End : T extends PUB_PROCEDURE_TYPE.DRIVER ? PubProcedureConfiguration_Driver : T extends PUB_PROCEDURE_TYPE.MAP ? PubProcedureConfiguration_Map : never; +export type PubProcedureConfiguration_Start = { + + readonly patterns: Record; +}; + +export type PubProcedureConfiguration_End = { + + readonly patterns: Record; +}; + export type PubProcedureConfiguration_Driver = { readonly driverName: string;