processfocus 0.1.0-next.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.
- package/LICENSE.md +28 -0
- package/README.md +14 -0
- package/dist/auth-FmXptohB.mjs +275 -0
- package/dist/auth-config/src/lib/authentication-config.d.ts +146 -0
- package/dist/auth-config/src/lib/custom-entities-config.d.ts +47 -0
- package/dist/auth-config/src/lib/policies-config.d.ts +52 -0
- package/dist/auth-config/src/lib/provider-types.d.ts +194 -0
- package/dist/auth.d.ts +4 -0
- package/dist/auth.mjs +2 -0
- package/dist/business-calendar/src/index.d.ts +10 -0
- package/dist/business-calendar/src/lib/calendar-config.d.ts +163 -0
- package/dist/business-calendar/src/lib/calendar-period.d.ts +88 -0
- package/dist/business-calendar/src/lib/calendar-service-impl.d.ts +19 -0
- package/dist/business-calendar/src/lib/calendar-service.d.ts +215 -0
- package/dist/business-calendar/src/lib/datetime-utils.d.ts +30 -0
- package/dist/business-calendar/src/lib/duration-calculator.d.ts +49 -0
- package/dist/business-calendar/src/lib/errors.d.ts +69 -0
- package/dist/business-calendar/src/lib/holiday-calculator.d.ts +61 -0
- package/dist/business-calendar/src/lib/holidays.d.ts +141 -0
- package/dist/business-calendar/src/lib/types.d.ts +110 -0
- package/dist/calendar.d.ts +1 -0
- package/dist/calendar.mjs +1204 -0
- package/dist/form-client-representation/src/index.d.ts +6 -0
- package/dist/form-client-representation/src/lib/as-client-representation.d.ts +31 -0
- package/dist/form-client-representation/src/lib/client-form-definition.d.ts +17 -0
- package/dist/form-client-representation/src/lib/extract-annotations.d.ts +20 -0
- package/dist/form-client-representation/src/lib/plugin-registry.d.ts +6 -0
- package/dist/form-client-representation/src/lib/types.d.ts +239 -0
- package/dist/form-client-representation/src/lib/walker.d.ts +68 -0
- package/dist/form-rule/src/index.d.ts +3 -0
- package/dist/form-rule/src/lib/evaluator.d.ts +2 -0
- package/dist/form-rule/src/lib/paths.d.ts +9 -0
- package/dist/form-rule/src/lib/types.d.ts +89 -0
- package/dist/form-schema/src/index.d.ts +8 -0
- package/dist/form-schema/src/lib/annotation-helpers.d.ts +8 -0
- package/dist/form-schema/src/lib/deferred-value.d.ts +10 -0
- package/dist/form-schema/src/lib/email.d.ts +23 -0
- package/dist/form-schema/src/lib/field-count.d.ts +32 -0
- package/dist/form-schema/src/lib/form-annotations.d.ts +25 -0
- package/dist/form-schema/src/lib/form-schema.d.ts +459 -0
- package/dist/form-schema/src/lib/phone.d.ts +4 -0
- package/dist/form-schema/src/lib/property-signature.d.ts +3 -0
- package/dist/form-submission-schema/src/index.d.ts +2 -0
- package/dist/form-submission-schema/src/lib/form-submission-schema.d.ts +49 -0
- package/dist/form-submission-schema/src/lib/schema-defaults.d.ts +16 -0
- package/dist/forms.d.ts +1 -0
- package/dist/forms.mjs +2 -0
- package/dist/frontend-manifest/src/index.d.ts +2 -0
- package/dist/frontend-manifest/src/lib/browser-plugin-artifact.d.ts +25 -0
- package/dist/frontend-manifest/src/lib/frontend-manifest.d.ts +83 -0
- package/dist/frontend-plugin-host/src/index.d.ts +2 -0
- package/dist/frontend-plugin-host/src/lib/frontend-plugin-host.d.ts +124 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.mjs +3780 -0
- package/dist/manifest.d.ts +2 -0
- package/dist/manifest.mjs +5 -0
- package/dist/paths-BkzLn-rG.mjs +282 -0
- package/dist/plugin.d.ts +3 -0
- package/dist/plugin.mjs +84 -0
- package/dist/process/src/lib/app-icons.d.ts +52 -0
- package/dist/process/src/lib/brands.d.ts +20 -0
- package/dist/process/src/lib/document-store.d.ts +30 -0
- package/dist/process/src/lib/execution-failure-notifications.d.ts +14 -0
- package/dist/process/src/lib/flow-context.d.ts +181 -0
- package/dist/process/src/lib/flow-path.d.ts +123 -0
- package/dist/process/src/lib/form-authoring.d.ts +19 -0
- package/dist/process/src/lib/form-decoration.d.ts +13 -0
- package/dist/process/src/lib/form-defaults.d.ts +5 -0
- package/dist/process/src/lib/form.d.ts +557 -0
- package/dist/process/src/lib/invitation.d.ts +35 -0
- package/dist/process/src/lib/list.d.ts +447 -0
- package/dist/process/src/lib/lookup-accessor.d.ts +68 -0
- package/dist/process/src/lib/node_step.d.ts +68 -0
- package/dist/process/src/lib/org-unit.d.ts +53 -0
- package/dist/process/src/lib/org-utils.d.ts +56 -0
- package/dist/process/src/lib/organisation-frontend-plugin-manifest.d.ts +33 -0
- package/dist/process/src/lib/organisation.d.ts +166 -0
- package/dist/process/src/lib/phase.d.ts +16 -0
- package/dist/process/src/lib/process.d.ts +196 -0
- package/dist/process/src/lib/public-form-branding.d.ts +27 -0
- package/dist/process/src/lib/role.d.ts +29 -0
- package/dist/process/src/lib/schedule.d.ts +239 -0
- package/dist/process/src/lib/sla.d.ts +84 -0
- package/dist/process/src/lib/stats-view.d.ts +68 -0
- package/dist/process/src/lib/step.d.ts +130 -0
- package/dist/process/src/lib/system-step-executor.d.ts +130 -0
- package/dist/process/src/lib/system-step.d.ts +248 -0
- package/dist/sdk/src/auth.d.ts +4 -0
- package/dist/sdk/src/calendar.d.ts +1 -0
- package/dist/sdk/src/forms.d.ts +1 -0
- package/dist/sdk/src/index.d.ts +26 -0
- package/dist/sdk/src/manifest.d.ts +2 -0
- package/dist/sdk/src/plugin.d.ts +3 -0
- package/dist/sdk/src/testing.d.ts +9 -0
- package/dist/src-C-909PVQ.mjs +498 -0
- package/dist/testing.d.ts +9 -0
- package/dist/testing.mjs +5 -0
- package/package.json +67 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import type { Schema } from "effect";
|
|
2
|
+
import { Context, Effect } from "effect";
|
|
3
|
+
import type { FlowContext, ForEachOutput, FormStepMeta, MergeFormStep, MergeSteps, StepMeta } from "./flow-context.js";
|
|
4
|
+
import { type FlowPath, type MergeState, type OnErrorOptions } from "./flow-path.js";
|
|
5
|
+
import type { Phase } from "./phase.js";
|
|
6
|
+
import type { InferSchemaType, Process, ResolveStepOutput } from "./process.js";
|
|
7
|
+
import type { SlaConfig } from "./sla.js";
|
|
8
|
+
import { type IStepScope, Step } from "./step.js";
|
|
9
|
+
/**
|
|
10
|
+
* Domain failures from author-defined process callbacks.
|
|
11
|
+
* Must be tagged so onError routing can match `_tag` without duck-typing.
|
|
12
|
+
*
|
|
13
|
+
* Set `retryable: false` for deterministic refusals (validation failures,
|
|
14
|
+
* unsupported operations, configuration mismatches) so system-step-execution
|
|
15
|
+
* records the todo failure immediately instead of re-raising for delayed
|
|
16
|
+
* retries. Omit the field (or set `true`) for transient failures that may
|
|
17
|
+
* succeed on a later attempt.
|
|
18
|
+
*/
|
|
19
|
+
export type AuthorTaggedError = {
|
|
20
|
+
readonly _tag: string;
|
|
21
|
+
readonly retryable?: boolean;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Structural guard for AuthorTaggedError (cross-boundary safe; no instanceof).
|
|
25
|
+
*/
|
|
26
|
+
export declare const isAuthorTaggedError: (error: unknown) => error is AuthorTaggedError;
|
|
27
|
+
/**
|
|
28
|
+
* True when a failure value explicitly opts out of system-step retries.
|
|
29
|
+
* Cross-boundary safe: checks the `retryable` field without `instanceof`.
|
|
30
|
+
*/
|
|
31
|
+
export declare const isNonRetryableAuthorError: (error: unknown) => boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Pass through a tagged author error, otherwise replace with `fallback`.
|
|
34
|
+
* Use at org/plugin boundaries that still yield untyped Effect failure channels.
|
|
35
|
+
*/
|
|
36
|
+
export declare const coerceAuthorTaggedError: (error: unknown, fallback: AuthorTaggedError) => AuthorTaggedError;
|
|
37
|
+
declare const ForEachStepRequiresItemsError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
38
|
+
readonly _tag: "ForEachStepRequiresItemsError";
|
|
39
|
+
} & Readonly<A>;
|
|
40
|
+
/**
|
|
41
|
+
* Error when `input()` is called on a forEach step (use `forEachItems()` instead).
|
|
42
|
+
*/
|
|
43
|
+
export declare class ForEachStepRequiresItemsError extends ForEachStepRequiresItemsError_base<{
|
|
44
|
+
readonly stepPath: string;
|
|
45
|
+
}> {
|
|
46
|
+
}
|
|
47
|
+
declare const NotAForEachStepError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
48
|
+
readonly _tag: "NotAForEachStepError";
|
|
49
|
+
} & Readonly<A>;
|
|
50
|
+
/**
|
|
51
|
+
* Error when `forEachItems()` is called on a step that does not use forEach.
|
|
52
|
+
*/
|
|
53
|
+
export declare class NotAForEachStepError extends NotAForEachStepError_base<{
|
|
54
|
+
readonly stepPath: string;
|
|
55
|
+
}> {
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Result of executeStep() — a tagged union controlling dispatch behavior.
|
|
59
|
+
*
|
|
60
|
+
* - `Completed`: step ran inline and produced output to merge into state.
|
|
61
|
+
* - `Deferred`: step dispatched work externally (e.g. Fargate) and will
|
|
62
|
+
* complete itself asynchronously. The handler should mark the job done
|
|
63
|
+
* without completing the todo.
|
|
64
|
+
*
|
|
65
|
+
* When a `Deferred` result includes a `stateUpdate`, the handler merges it
|
|
66
|
+
* into process state immediately (before the todo completes). Plugin-internal
|
|
67
|
+
* metadata must be namespaced under `_internal.<plugin>` to avoid collisions
|
|
68
|
+
* between plugins that adopt deferred delivery (e.g. `_internal.resend`).
|
|
69
|
+
*/
|
|
70
|
+
export type StepResult = {
|
|
71
|
+
readonly _tag: "Completed";
|
|
72
|
+
readonly output: Record<string, unknown>;
|
|
73
|
+
} | {
|
|
74
|
+
readonly _tag: "Deferred";
|
|
75
|
+
readonly stateUpdate?: Record<string, unknown>;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Context passed to executeStep() so dispatch strategies can reference
|
|
79
|
+
* the current job's identifiers.
|
|
80
|
+
*/
|
|
81
|
+
export interface StepJobContext {
|
|
82
|
+
readonly todoId: string;
|
|
83
|
+
readonly stepPath: string;
|
|
84
|
+
}
|
|
85
|
+
declare const CurrentStepJobContext_base: Context.TagClass<CurrentStepJobContext, "processfocus/CurrentStepJobContext", StepJobContext>;
|
|
86
|
+
/**
|
|
87
|
+
* Current system-step job identifiers, provided while `executeStep` runs.
|
|
88
|
+
* Use this from NodeStep `execute` callbacks that need the Todo identity
|
|
89
|
+
* for replay-safe side effects.
|
|
90
|
+
*/
|
|
91
|
+
export declare class CurrentStepJobContext extends CurrentStepJobContext_base {
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Configuration for forEach (multi-instance) steps.
|
|
95
|
+
* When present, the step produces N todos from a dynamic list of items.
|
|
96
|
+
*
|
|
97
|
+
* @typeParam TState - Accumulated state from previous steps
|
|
98
|
+
* @typeParam TSteps - Record of completed step metadata for ctx.step access
|
|
99
|
+
* @typeParam TItem - Type of each item in the array
|
|
100
|
+
*/
|
|
101
|
+
export interface ForEachConfig<TState, TSteps extends Record<string, StepMeta | FormStepMeta>, TItem> {
|
|
102
|
+
readonly items: (state: TState, ctx: FlowContext<TSteps>) => Effect.Effect<ReadonlyArray<TItem>, AuthorTaggedError, unknown>;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Base props shared by both input-based and forEach-based SystemSteps.
|
|
106
|
+
*/
|
|
107
|
+
interface SystemStepPropsBase<TOutput extends Schema.Struct.Fields = Schema.Struct.Fields> {
|
|
108
|
+
readonly name?: string;
|
|
109
|
+
readonly purpose?: string;
|
|
110
|
+
readonly phase?: Phase;
|
|
111
|
+
readonly sla?: SlaConfig;
|
|
112
|
+
readonly alwaysNotify?: boolean;
|
|
113
|
+
readonly longDuration?: boolean;
|
|
114
|
+
readonly output: TOutput;
|
|
115
|
+
/**
|
|
116
|
+
* Maximum number of retry attempts when the step fails.
|
|
117
|
+
* - `0`: No retries - fail immediately on first error
|
|
118
|
+
* - `1+`: Retry up to this many times after failure
|
|
119
|
+
* - `undefined`: Use system default (typically 5)
|
|
120
|
+
*
|
|
121
|
+
* Only applies to system steps (role IS NULL). Form steps ignore this setting.
|
|
122
|
+
*/
|
|
123
|
+
readonly retries?: number;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Props for SystemStep - a step executed by the system without human interaction.
|
|
127
|
+
*
|
|
128
|
+
* SystemSteps do not have a `role` property - they are executed by the system.
|
|
129
|
+
* `input` and `forEach` are mutually exclusive: when `forEach` is present,
|
|
130
|
+
* `items(state, ctx)` returns `Array<TInput>` directly — the items ARE the inputs.
|
|
131
|
+
*
|
|
132
|
+
* @typeParam TState - Accumulated state from previous steps
|
|
133
|
+
* @typeParam TSteps - Record of completed step metadata for ctx.step access
|
|
134
|
+
* @typeParam TInput - Input derived from state
|
|
135
|
+
* @typeParam TOutput - Output schema fields merged into process state
|
|
136
|
+
* @typeParam TIsForEach - Whether this step uses forEach semantics
|
|
137
|
+
*/
|
|
138
|
+
export type SystemStepProps<TState = Record<string, never>, TSteps extends Record<string, StepMeta | FormStepMeta> = Record<string, never>, TInput = unknown, TOutput extends Schema.Struct.Fields = Schema.Struct.Fields, TIsForEach extends boolean = false> = SystemStepPropsBase<TOutput> & (TIsForEach extends true ? {
|
|
139
|
+
forEach: ForEachConfig<TState, TSteps, TInput>;
|
|
140
|
+
input?: never;
|
|
141
|
+
} : {
|
|
142
|
+
input: (state: TState, ctx: FlowContext<TSteps>) => Effect.Effect<TInput, AuthorTaggedError, unknown>;
|
|
143
|
+
forEach?: never;
|
|
144
|
+
});
|
|
145
|
+
/**
|
|
146
|
+
* Abstract base class for system-executed steps.
|
|
147
|
+
*
|
|
148
|
+
* SystemStep represents a step that is automatically executed by the job worker
|
|
149
|
+
* when the flow reaches it, rather than waiting for human interaction.
|
|
150
|
+
*
|
|
151
|
+
* Unlike Form steps which have a `role` (who completes them), SystemSteps have
|
|
152
|
+
* no role - they are executed by the system. In the database, this is represented
|
|
153
|
+
* by `role_id = NULL`.
|
|
154
|
+
*
|
|
155
|
+
* Subclasses must implement the `execute` method which contains the business logic.
|
|
156
|
+
*
|
|
157
|
+
* @typeParam TState - Accumulated state from previous steps
|
|
158
|
+
* @typeParam TSteps - Record of completed step metadata for ctx.step access
|
|
159
|
+
* @typeParam TInput - Input derived from state
|
|
160
|
+
* @typeParam TOutput - Output schema fields merged into process state
|
|
161
|
+
* @typeParam TId - Step identifier literal type
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* ```typescript
|
|
165
|
+
* // NodeStep is a concrete implementation that takes execute as a prop
|
|
166
|
+
* const greet = new NodeStep(register, "Greet", {
|
|
167
|
+
* input: (state) => Effect.succeed({ name: state.name }),
|
|
168
|
+
* output: {},
|
|
169
|
+
* execute: (input) => Effect.gen(function* () {
|
|
170
|
+
* console.log(`Hello ${input.name}`)
|
|
171
|
+
* }),
|
|
172
|
+
* })
|
|
173
|
+
* ```
|
|
174
|
+
*/
|
|
175
|
+
export declare abstract class SystemStep<TState = Record<string, never>, TSteps extends Record<string, StepMeta | FormStepMeta> = Record<string, never>, TInput = unknown, TOutput extends Schema.Struct.Fields = Schema.Struct.Fields, TId extends string = string, TIsForEach extends boolean = false> extends Step<TState, TOutput, TId, false, TIsForEach> {
|
|
176
|
+
readonly isSystemStep = true;
|
|
177
|
+
readonly longDuration: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Maximum number of retry attempts when the step fails.
|
|
180
|
+
* - `0`: No retries - fail immediately on first error
|
|
181
|
+
* - `1+`: Retry up to this many times after failure
|
|
182
|
+
* - `undefined`: Use system default
|
|
183
|
+
*/
|
|
184
|
+
readonly retries: number | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* The input derivation function, stored for runtime execution.
|
|
187
|
+
* Undefined when forEach is used (items replaces input).
|
|
188
|
+
*/
|
|
189
|
+
private _inputFn;
|
|
190
|
+
/**
|
|
191
|
+
* The forEach items function, stored for runtime execution.
|
|
192
|
+
* Undefined when input is used instead.
|
|
193
|
+
*/
|
|
194
|
+
private _forEachItemsFn;
|
|
195
|
+
constructor(scope: Process | IStepScope<TState, TSteps> | FlowPath<TState, Schema.Struct.Fields | undefined, TSteps>, id: TId, props: SystemStepProps<TState, TSteps, TInput, TOutput, any>);
|
|
196
|
+
/**
|
|
197
|
+
* Get the output schema for this step.
|
|
198
|
+
* Overrides base to return non-undefined (SystemSteps always have output).
|
|
199
|
+
*/
|
|
200
|
+
get output(): TOutput;
|
|
201
|
+
/**
|
|
202
|
+
* Derive input from the current process state and context.
|
|
203
|
+
* Called by SystemStepExecutor before executing.
|
|
204
|
+
* Fails with ForEachStepRequiresItemsError if this is a forEach step
|
|
205
|
+
* (use forEachItems instead). Author input callbacks may fail with
|
|
206
|
+
* AuthorTaggedError; requirements stay deferred on R.
|
|
207
|
+
*/
|
|
208
|
+
input(state: TState, ctx: FlowContext<TSteps>): Effect.Effect<TInput, ForEachStepRequiresItemsError | AuthorTaggedError, unknown>;
|
|
209
|
+
/**
|
|
210
|
+
* Get the forEach items for this step.
|
|
211
|
+
* Returns the array of items, where each item IS the input for one execution.
|
|
212
|
+
* Only available when forEach is configured.
|
|
213
|
+
*/
|
|
214
|
+
forEachItems(state: TState, ctx: FlowContext<TSteps>): Effect.Effect<ReadonlyArray<TInput>, NotAForEachStepError | AuthorTaggedError, unknown>;
|
|
215
|
+
/**
|
|
216
|
+
* Execute the step logic with the derived input.
|
|
217
|
+
* Subclasses must implement this method.
|
|
218
|
+
*
|
|
219
|
+
* The execute function may use Effect services (via yield*) and may fail
|
|
220
|
+
* with tagged domain errors. These requirements and errors are propagated
|
|
221
|
+
* when the step is executed by the SystemStepExecutor.
|
|
222
|
+
*
|
|
223
|
+
* @param input - Input derived from process state
|
|
224
|
+
* @returns Effect producing the output to merge into state
|
|
225
|
+
*/
|
|
226
|
+
abstract execute(input: TInput): Effect.Effect<InferSchemaType<TOutput>, AuthorTaggedError, unknown>;
|
|
227
|
+
/**
|
|
228
|
+
* Execute the step with derived input.
|
|
229
|
+
* This is the main entry point used by SystemStepExecutor for non-forEach steps.
|
|
230
|
+
* For forEach steps, the executor calls execute(input) directly with item_data.
|
|
231
|
+
*/
|
|
232
|
+
executeWithInput(state: TState, ctx: FlowContext<TSteps>): Effect.Effect<InferSchemaType<TOutput>, ForEachStepRequiresItemsError | AuthorTaggedError, unknown>;
|
|
233
|
+
/**
|
|
234
|
+
* Execute the step and wrap output as a StepResult.
|
|
235
|
+
*
|
|
236
|
+
* The default implementation calls `execute()` and returns `Completed`.
|
|
237
|
+
* Runtime/platform decides where and how this code runs (for example,
|
|
238
|
+
* inline in a worker or dispatched to another runtime for long-duration
|
|
239
|
+
* steps).
|
|
240
|
+
*
|
|
241
|
+
* @param input - Pre-computed input for the step
|
|
242
|
+
* @param _jobContext - Job identifiers (todoId, stepPath) for external dispatch
|
|
243
|
+
* @returns A StepResult indicating whether the step completed or was deferred
|
|
244
|
+
*/
|
|
245
|
+
executeStep(input: TInput, _jobContext: StepJobContext): Effect.Effect<StepResult, AuthorTaggedError, unknown>;
|
|
246
|
+
onError<TNextState, TNextOutput extends Schema.Struct.Fields | undefined, TNextId extends string, TNextIsForm extends boolean = false, TNextIsForEach extends boolean = false>(target: Step<TNextState, TNextOutput, TNextId, TNextIsForm, TNextIsForEach>, options?: OnErrorOptions): FlowPath<TNextIsForEach extends true ? TState & ForEachOutput<TNextId, TNextOutput, TNextIsForm> : MergeState<TState, ResolveStepOutput<TNextOutput, TNextIsForm>>, TNextOutput, TNextIsForm extends true ? MergeFormStep<TSteps, TNextId> : MergeSteps<TSteps, TNextId>>;
|
|
247
|
+
}
|
|
248
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { AuthenticationConfig, type AuthenticationConfigProps, type IdentityProvidersConfig, type SecretClientsConfig, isAuthenticationConfig, } from "./auth-config/src/lib/authentication-config.js";
|
|
2
|
+
export { CustomEntitiesConfig, type CustomEntitiesConfigProps, isCustomEntitiesConfig, } from "./auth-config/src/lib/custom-entities-config.js";
|
|
3
|
+
export { PoliciesConfig, type PoliciesConfigProps, isPoliciesConfig, } from "./auth-config/src/lib/policies-config.js";
|
|
4
|
+
export { type AppleOAuthProviderConfig, AppleOAuthProviderConfigSchema, type CognitoOAuthProviderConfig, CognitoOAuthProviderConfigSchema, DEFAULT_OAUTH_PROVIDER_SCOPES, type GoogleOAuthProviderConfig, GoogleOAuthProviderConfigSchema, type KeycloakOAuthProviderConfig, KeycloakOAuthProviderConfigSchema, type MicrosoftOAuthProviderConfig, MicrosoftOAuthProviderConfigSchema, OAUTH_PROVIDER_NAMES, type OAuthProviderConfig, OAuthProviderConfigSchema, type OAuthProviderName, OAuthProviderNameSchema, type PasskeyProviderConfig, PasskeyProviderConfigSchema, type SecretClientConfig, SecretClientConfigSchema, type SlackOAuthProviderConfig, SlackOAuthProviderConfigSchema, } from "./auth-config/src/lib/provider-types.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AllDays, BusinessCalendarConfig, CalendarPeriod, CalendarPeriodFromJson, DateException, DayOfMonth, DayOfWeek, type DaySchedule, Friday, Holiday, Monday, Month, NL_HOLIDAYS, NZ_HOLIDAYS, NthOccurrence, Saturday, Sunday, Thursday, type TimeOfDay, type TimeRange, Tuesday, US_HOLIDAYS, Wednesday, Weekdays, type WeeklySchedule, createDefaultConfig, createStandardWeekdaySchedule, easterRelativeHoliday, fixedHoliday, lastWeekdayHoliday, nthWeekdayHoliday, } from "./business-calendar/src/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./form-schema/src/index.js";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type { ExecutorDescriptor } from "@processfocus/runtime";
|
|
2
|
+
export { type AppIconManifestIconProps, type AppIconMetadataIconProps, AppIcons, type AppIconsProps, } from "./process/src/lib/app-icons.js";
|
|
3
|
+
export { isDocumentStore, isForm, isInvitation, isList, isOrgUnit, isOrganisation, isProcess, isRole, isStatsView, isStep, } from "./process/src/lib/brands.js";
|
|
4
|
+
export { DocumentStore, type DocumentStoreProps, } from "./process/src/lib/document-store.js";
|
|
5
|
+
export { ExecutionFailureNotifications, type ExecutionFailureNotificationsProps, } from "./process/src/lib/execution-failure-notifications.js";
|
|
6
|
+
export type { CamelCase, FlowContext, ForEachOutput, FormStepMeta, MergeFormStep, MergeSteps, ProcessMeta, ProviderUserDisplayResolver, StepMeta, StepProviderUserInfo, StepUserInfo, SummaryContext, } from "./process/src/lib/flow-context.js";
|
|
7
|
+
export { type ConditionOptions, ElseBranch, type ElseTransitionOptions, FlowPath, type MergeState, type OnErrorOptions, type ScheduleOptions, type TransitionOptions, } from "./process/src/lib/flow-path.js";
|
|
8
|
+
export { Form, type FormEmbedConfig, type FormPublicCompletionConfig, FormRuleSelf, type FormRuleTargetTree, type FormStepProps, LookupFieldNotFoundError, type PublicCompletionCorrectionConfig, type PublicCompletionEmailTemplate, type PublicCompletionRecipient, type Summary, } from "./process/src/lib/form.js";
|
|
9
|
+
export { Invitation, type InvitationProps, } from "./process/src/lib/invitation.js";
|
|
10
|
+
export { DEFAULT_PAGE_SIZE, List, type ListDeleteFunction, type ListItemQueryContext, type ListItemQueryFunction, type ListProps, type ListQueryContext, type ListQueryFunction, type ListQueryResult, type ListSortDirection, type ListSortInput, ListSortable, type ListUpdateFunction, ListUpdateValidationError, ListVisibleInList, MAX_PAGE_SIZE, type OutputItem, } from "./process/src/lib/list.js";
|
|
11
|
+
export { type DependentQueryInput, LookupAccessor, LookupBuilder, type QueryInput, } from "./process/src/lib/lookup-accessor.js";
|
|
12
|
+
export { NodeStep, type NodeStepProps, } from "./process/src/lib/node_step.js";
|
|
13
|
+
export { OrgUnit, type OrgUnitProps, type OrgUnitType, } from "./process/src/lib/org-unit.js";
|
|
14
|
+
export { Organisation, type OrganisationProps, } from "./process/src/lib/organisation.js";
|
|
15
|
+
export { Phase, type PhaseProps } from "./process/src/lib/phase.js";
|
|
16
|
+
export { type Condition, type CronWeekday, type DailyProcessCron, type HourlyProcessCron, type InferFormSchemaType, type InferSchemaType, type MonthlyProcessCron, Process, type ProcessCron, type ProcessProps, type ProcessResponsibility, type ResolveStepOutput, type ScheduleFn, type WeeklyProcessCron, } from "./process/src/lib/process.js";
|
|
17
|
+
export { PublicFormBranding, type PublicFormBrandingProps, } from "./process/src/lib/public-form-branding.js";
|
|
18
|
+
export { Role, type RoleProps } from "./process/src/lib/role.js";
|
|
19
|
+
export { type BusinessDaysSchedule, type BusinessHoursSchedule, type BusinessMinutesSchedule, type ClockTimeSchedule, type FromPointSchedule, Schedule, type ScheduleMarker, type ScheduledTime, } from "./process/src/lib/schedule.js";
|
|
20
|
+
export { Sla, type SlaConfig, type SlaOptions, type SlaUnit, } from "./process/src/lib/sla.js";
|
|
21
|
+
export { StatsView, type StatsViewProps, type StatsViewRenderer, } from "./process/src/lib/stats-view.js";
|
|
22
|
+
export { type IStepScope, Step, type StepProps, } from "./process/src/lib/step.js";
|
|
23
|
+
export { type AuthorTaggedError, CurrentStepJobContext, type ForEachConfig, type StepJobContext, type StepResult, SystemStep, type SystemStepProps, coerceAuthorTaggedError, isAuthorTaggedError, isNonRetryableAuthorError, } from "./process/src/lib/system-step.js";
|
|
24
|
+
export { StepProcessStateReader } from "./process/src/lib/system-step-executor.js";
|
|
25
|
+
export * from "./auth.js";
|
|
26
|
+
export type { OrganisationFrontendManifestFormComponentPluginDeclaration, OrganisationFrontendPluginManifestClientPlugin, OrganisationFrontendPluginManifestJson, } from "./manifest.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type { OrganisationFrontendManifest, OrganisationFrontendManifestFormComponentPluginDeclaration, OrganisationFrontendPluginManifestClientPlugin, OrganisationFrontendPluginManifestJson, } from "./frontend-manifest/src/index.js";
|
|
2
|
+
export { ORGANISATION_FRONTEND_MANIFEST_FILE, ORGANISATION_FRONTEND_MANIFEST_VERSION, } from "./frontend-manifest/src/index.js";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { ExecutionMenuActionRegistration, ExecutionMenuActionSelectContext, ExecutionMenuActionVisibilityContext, FormRenderer, FormRendererOptions, FormRendererRegistration, FrontendClientPluginGraphqlRequestError, FrontendClientPluginIdentity, FrontendClientPluginRegistration, FrontendPluginField, FrontendPluginForm, GraphqlClientConsumerProps, GraphqlRequester, OrganisationFrontendPlugin, OrganisationFrontendPluginFailure, OrganisationFrontendPluginHost, RegistrationDisposer, RegistrationRegistry, } from "../frontend-plugin-host/src/index.js";
|
|
2
|
+
export { DuplicatePluginRegistrationError, FRONTEND_PLUGIN_HOST_INTERFACE_VERSION, activateOrganisationFrontendPlugin, activateOrganisationFrontendPlugins, createRegistrationRegistry, } from "../frontend-plugin-host/src/index.js";
|
|
3
|
+
export type { OrganisationBrowserPluginArtifactProvider, OrganisationBrowserPluginBuildInput, OrganisationFrontendManifestPluginCategory, OrganisationFrontendPluginManifestClientPlugin, OrganisationFrontendPluginManifestJson, OrganisationFrontendPluginManifestProvider, } from "./process/src/lib/organisation-frontend-plugin-manifest.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./form-rule/src/index.js";
|
|
2
|
+
export declare const validateOrganisation: (organisation: {
|
|
3
|
+
readonly processes: () => ReadonlyArray<{
|
|
4
|
+
readonly node: {
|
|
5
|
+
readonly path: string;
|
|
6
|
+
};
|
|
7
|
+
validateFlows(): Readonly<Record<string, readonly string[]>>;
|
|
8
|
+
}>;
|
|
9
|
+
}) => readonly string[];
|