@adobe/aio-commerce-lib-app 1.1.0 → 1.3.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.
Files changed (40) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/cjs/actions/app-config.cjs +1 -1
  3. package/dist/cjs/actions/app-config.d.cts +3 -3
  4. package/dist/cjs/actions/config.cjs +33 -2
  5. package/dist/cjs/actions/config.d.cts +2 -2
  6. package/dist/cjs/actions/installation.cjs +167 -43
  7. package/dist/cjs/actions/installation.d.cts +4 -4
  8. package/dist/cjs/actions/scope-tree.d.cts +3 -3
  9. package/dist/cjs/{app-lymFcs59.d.cts → app-DcQMhW2N.d.cts} +13 -1
  10. package/dist/cjs/commands/index.cjs +3 -3
  11. package/dist/cjs/config/index.cjs +3 -3
  12. package/dist/cjs/config/index.d.cts +39 -3
  13. package/dist/cjs/{config-YEeaEqzi.cjs → config-BppBKCFj.cjs} +1 -1
  14. package/dist/{es/index-D33OCH0D.d.mts → cjs/index-BVwQk9bx.d.cts} +103 -34
  15. package/dist/cjs/management/index.cjs +3 -1
  16. package/dist/cjs/management/index.d.cts +2 -2
  17. package/dist/cjs/{management-PZtLe4Ji.cjs → management-C6xG5bfl.cjs} +731 -163
  18. package/dist/cjs/{validate-CwwYD8aC.cjs → validate-CeUCT_7k.cjs} +7 -3
  19. package/dist/cjs/{webhooks-CbZpv9y_.cjs → webhooks-CLtDxwMa.cjs} +33 -0
  20. package/dist/es/actions/app-config.d.mts +3 -3
  21. package/dist/es/actions/app-config.mjs +1 -1
  22. package/dist/es/actions/config.d.mts +2 -2
  23. package/dist/es/actions/config.mjs +34 -3
  24. package/dist/es/actions/installation.d.mts +4 -4
  25. package/dist/es/actions/installation.mjs +168 -44
  26. package/dist/es/actions/scope-tree.d.mts +3 -3
  27. package/dist/es/actions/scope-tree.mjs +1 -1
  28. package/dist/es/{app-Ct7Y0NP8.d.mts → app-DJr-mN9d.d.mts} +13 -1
  29. package/dist/es/commands/index.mjs +3 -3
  30. package/dist/es/config/index.d.mts +39 -3
  31. package/dist/es/config/index.mjs +3 -3
  32. package/dist/es/{config-BbrkH0Xt.mjs → config-BohwKkQS.mjs} +1 -1
  33. package/dist/{cjs/index-DRhLtRrX.d.cts → es/index-BENO5T7n.d.mts} +103 -34
  34. package/dist/es/management/index.d.mts +2 -2
  35. package/dist/es/management/index.mjs +2 -2
  36. package/dist/es/{management-CIoVWirU.mjs → management-ByHvVJ12.mjs} +723 -167
  37. package/dist/es/{validate-qRpfubPo.mjs → validate-CqJdGzyZ.mjs} +8 -4
  38. package/dist/es/{webhooks-NgM6k3_r.mjs → webhooks-CYo-pqbR.mjs} +23 -2
  39. package/package.json +5 -4
  40. /package/dist/es/{schemas-BvPxQwgQ.mjs → schemas-CVXHgUhv.mjs} +0 -0
@@ -12,10 +12,10 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { n as CommerceAppConfigOutputModel } from "./app-Ct7Y0NP8.mjs";
16
- import AioLogger from "@adobe/aio-lib-core-logging";
17
- import * as v from "valibot";
15
+ import { n as CommerceAppConfigOutputModel } from "./app-DcQMhW2N.cjs";
18
16
  import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
17
+ import * as v from "valibot";
18
+ import AioLogger from "@adobe/aio-lib-core-logging";
19
19
 
20
20
  //#region source/management/installation/schema.d.ts
21
21
  /** Schema for validating Adobe I/O app credentials required for installation. */
@@ -62,38 +62,49 @@ type StepContextFactory<TStepCtx extends Record<string, unknown> = Record<string
62
62
  type ExecutionContext<TStepCtx extends Record<string, unknown> = Record<string, unknown>> = InstallationContext & TStepCtx;
63
63
  /**
64
64
  * A narrowed context available to step `validate` handlers.
65
- * Excludes `customScripts` — those only apply during installation `run`, not pre-flight validation.
65
+ * Excludes `customScripts` — those only apply during installation, not pre-flight validation.
66
66
  */
67
67
  type ValidationContext = Omit<InstallationContext, "customScripts">;
68
68
  /** The context passed to step `validate` handlers (base validation context merged with step-level context). */
69
69
  type ValidationExecutionContext<TStepCtx extends Record<string, unknown> = Record<string, unknown>> = ValidationContext & TStepCtx;
70
- /** Metadata for a step (used for UI display). */
71
- type StepMeta = {
70
+ /** Metadata info for a step (used for UI display). */
71
+ type StepMetaInfo = {
72
72
  label: string;
73
73
  description?: string;
74
74
  };
75
+ /** Step metadata keyed by execution mode. */
76
+ type StepMeta = {
77
+ install: StepMetaInfo;
78
+ uninstall?: StepMetaInfo;
79
+ };
75
80
  /** Defines the base properties of a step. */
76
81
  type StepBase<TName extends string = string, TConfig extends CommerceAppConfigOutputModel = CommerceAppConfigOutputModel> = {
77
- /** The name of this step. */name: TName; /** Metadata associated with the step. */
82
+ /** The name of this step. */name: TName; /** Metadata associated with the step, keyed by execution mode. */
78
83
  meta: StepMeta; /** Whether the step should be taken into consideration. */
79
84
  when?: (config: CommerceAppConfigOutputModel) => config is TConfig;
80
85
  };
81
86
  /** A leaf step that executes work (no children). */
82
87
  type LeafStep<TName extends string = string, TConfig extends CommerceAppConfigOutputModel = CommerceAppConfigOutputModel, TStepCtx extends Record<string, unknown> = Record<string, unknown>, TOutput = unknown> = StepBase<TName, TConfig> & {
83
88
  type: "leaf"; /** The execution handler for the step. */
84
- run: (config: TConfig, context: ExecutionContext<TStepCtx>) => TOutput | Promise<TOutput>;
89
+ install: (config: TConfig, context: ExecutionContext<TStepCtx>) => TOutput | Promise<TOutput>;
85
90
  /**
86
91
  * Optional pre-installation validation handler.
87
92
  * Called before installation begins to surface issues (errors or warnings).
88
93
  * Returning an empty array means the step has no issues.
89
94
  */
90
95
  validate?: (config: TConfig, context: ValidationExecutionContext<TStepCtx>) => ValidationIssue[] | Promise<ValidationIssue[]>;
96
+ /**
97
+ * Optional uninstall handler for the step.
98
+ * Called during uninstallation to reverse the work done by `install`.
99
+ * If absent, the step is silently skipped during uninstallation.
100
+ */
101
+ uninstall?: (config: TConfig, context: ExecutionContext<TStepCtx>) => void | Promise<void>;
91
102
  };
92
103
  /** A branch step that contains children (no execution). */
93
- type BranchStep<TName extends string = string, TConfig extends CommerceAppConfigOutputModel = CommerceAppConfigOutputModel, TStepCtx extends Record<string, unknown> = Record<string, unknown>> = StepBase<TName, TConfig> & {
104
+ type BranchStep<TName extends string = string, TConfig extends CommerceAppConfigOutputModel = CommerceAppConfigOutputModel, TStepCtx extends Record<string, unknown> = Record<string, unknown>, TChildren extends AnyStep[] = AnyStep[]> = StepBase<TName, TConfig> & {
94
105
  type: "branch"; /** An optional factory function to setup shared context for the children steps. */
95
106
  context?: StepContextFactory<TStepCtx>; /** The children steps of this branch. */
96
- children: AnyStep[];
107
+ children: TChildren;
97
108
  /**
98
109
  * Optional pre-installation validation handler for the branch itself.
99
110
  * Called before children are validated. Returning an empty array means
@@ -107,10 +118,11 @@ type Step<TName extends string = string, TConfig extends CommerceAppConfigOutput
107
118
  interface AnyStep {
108
119
  children?: AnyStep[];
109
120
  context?: (context: InstallationContext) => any;
121
+ install?: (config: any, context: any) => unknown | Promise<unknown>;
110
122
  meta: StepMeta;
111
123
  name: string;
112
- run?: (config: any, context: any) => unknown | Promise<unknown>;
113
124
  type: "leaf" | "branch";
125
+ uninstall?: (config: any, context: any) => void | Promise<void>;
114
126
  validate?: (config: any, context: any) => ValidationIssue[] | Promise<ValidationIssue[]>;
115
127
  when?: (config: CommerceAppConfigOutputModel) => boolean;
116
128
  }
@@ -121,7 +133,7 @@ declare function isBranchStep(step: AnyStep): step is BranchStep;
121
133
  /** Options for defining a leaf step. */
122
134
  type LeafStepOptions<TName extends string, TConfig extends CommerceAppConfigOutputModel, TStepCtx extends Record<string, unknown> = Record<string, unknown>, TOutput = unknown> = Omit<LeafStep<TName, TConfig, TStepCtx, TOutput>, "type">;
123
135
  /** Options for defining a branch step. */
124
- type BranchStepOptions<TName extends string, TConfig extends CommerceAppConfigOutputModel, TStepCtx extends Record<string, unknown> = Record<string, unknown>> = Omit<BranchStep<TName, TConfig, TStepCtx>, "type">;
136
+ type BranchStepOptions<TName extends string, TConfig extends CommerceAppConfigOutputModel, TStepCtx extends Record<string, unknown> = Record<string, unknown>, TChildren extends AnyStep[] = AnyStep[]> = Omit<BranchStep<TName, TConfig, TStepCtx, TChildren>, "type">;
125
137
  /**
126
138
  * Define a leaf step (executable, no children).
127
139
  *
@@ -129,15 +141,23 @@ type BranchStepOptions<TName extends string, TConfig extends CommerceAppConfigOu
129
141
  * ```typescript
130
142
  * const createProviders = defineLeafStep({
131
143
  * name: "providers",
132
- * meta: { label: "Create Providers", description: "Creates I/O Events providers" },
133
- * run: async ({ config, stepContext }) => {
144
+ * meta: { install: { label: "Create Providers", description: "Creates I/O Events providers" } },
145
+ * install: async ({ config, stepContext }) => {
134
146
  * const { eventsClient } = stepContext;
135
147
  * return eventsClient.createProvider(config.eventing);
136
148
  * },
137
149
  * });
138
150
  * ```
139
151
  */
140
- declare function defineLeafStep<TName extends string, TConfig extends CommerceAppConfigOutputModel, TStepCtx extends Record<string, unknown> = Record<string, unknown>, TOutput = unknown>(options: LeafStepOptions<TName, TConfig, TStepCtx, TOutput>): LeafStep<TName, TConfig, TStepCtx, TOutput>;
152
+ declare function defineLeafStep<TName extends string, TConfig extends CommerceAppConfigOutputModel, TStepCtx extends Record<string, unknown> = Record<string, unknown>, TOutput = unknown>(options: LeafStepOptions<TName, TConfig, TStepCtx, TOutput>): {
153
+ type: "leaf";
154
+ name: TName;
155
+ meta: StepMeta;
156
+ when: ((config: CommerceAppConfigOutputModel) => config is TConfig) | undefined;
157
+ install: (config: TConfig, context: ExecutionContext<TStepCtx>) => TOutput | Promise<TOutput>;
158
+ uninstall: ((config: TConfig, context: ExecutionContext<TStepCtx>) => void | Promise<void>) | undefined;
159
+ validate: ((config: TConfig, context: ValidationExecutionContext<TStepCtx>) => ValidationIssue[] | Promise<ValidationIssue[]>) | undefined;
160
+ };
141
161
  /**
142
162
  * Define a branch step (container with children, no runner).
143
163
  *
@@ -145,14 +165,22 @@ declare function defineLeafStep<TName extends string, TConfig extends CommerceAp
145
165
  * ```typescript
146
166
  * const eventing = defineBranchStep({
147
167
  * name: "eventing",
148
- * meta: { label: "Eventing", description: "Sets up I/O Events" },
168
+ * meta: { install: { label: "Eventing", description: "Sets up I/O Events" } },
149
169
  * when: hasEventing,
150
170
  * context: async (ctx) => ({ eventsClient: await createEventsClient(ctx) }),
151
171
  * children: [commerceEventsStep, externalEventsStep],
152
172
  * });
153
173
  * ```
154
174
  */
155
- declare function defineBranchStep<TName extends string, TConfig extends CommerceAppConfigOutputModel, TStepCtx extends Record<string, unknown> = Record<string, unknown>>(options: BranchStepOptions<TName, TConfig, TStepCtx>): BranchStep<TName, TConfig, TStepCtx>;
175
+ declare function defineBranchStep<TName extends string, TConfig extends CommerceAppConfigOutputModel, TStepCtx extends Record<string, unknown> = Record<string, unknown>, const TChildren extends AnyStep[] = AnyStep[]>(options: BranchStepOptions<TName, TConfig, TStepCtx, TChildren>): {
176
+ type: "branch";
177
+ name: TName;
178
+ meta: StepMeta;
179
+ when: ((config: CommerceAppConfigOutputModel) => config is TConfig) | undefined;
180
+ context: StepContextFactory<TStepCtx> | undefined;
181
+ children: TChildren;
182
+ validate: ((config: TConfig, context: ValidationExecutionContext<TStepCtx>) => ValidationIssue[] | Promise<ValidationIssue[]>) | undefined;
183
+ };
156
184
  /** Infer the output type from a leaf step. */
157
185
  type InferStepOutput<TStep> = TStep extends LeafStep<infer _TName, infer _TConfig, infer _TStepCtx, infer TOutput> ? Awaited<TOutput> : never;
158
186
  //#endregion
@@ -173,7 +201,7 @@ type StepStatus = {
173
201
  /** Step name (unique among siblings). */name: string; /** Unique step identifier (e.g., UUID). */
174
202
  id: string; /** Full path from root to this step. */
175
203
  path: string[]; /** Step metadata (for display purposes). */
176
- meta: StepMeta; /** Current execution status. */
204
+ meta: StepMetaInfo; /** Current execution status. */
177
205
  status: ExecutionStatus; /** Child step statuses (empty for leaf steps). */
178
206
  children: StepStatus[];
179
207
  };
@@ -255,7 +283,8 @@ type InstallationHooks = {
255
283
  /** Options for creating an initial installation state. */
256
284
  type CreateInitialStateOptions = {
257
285
  /** The root branch step to build the state from. */rootStep: BranchStep; /** The app configuration used to determine applicable steps. */
258
- config: CommerceAppConfigOutputModel;
286
+ config: CommerceAppConfigOutputModel; /** The execution mode. When "uninstall", steps use `meta.uninstall` if defined; defaults to "install". */
287
+ mode?: ExecutionMode;
259
288
  };
260
289
  /** Options for executing a workflow. */
261
290
  type ExecuteWorkflowOptions = {
@@ -265,6 +294,8 @@ type ExecuteWorkflowOptions = {
265
294
  initialState: InProgressInstallationState; /** Lifecycle hooks for status change notifications. */
266
295
  hooks?: InstallationHooks;
267
296
  };
297
+ /** Execution mode: "install" or "uninstall". */
298
+ type ExecutionMode = "install" | "uninstall";
268
299
  /**
269
300
  * Creates an initial installation state from a root step and config.
270
301
  *
@@ -276,13 +307,18 @@ declare function createInitialState(options: CreateInitialStateOptions): InProgr
276
307
  * Executes a workflow from an initial state. Returns the final state (never throws).
277
308
  */
278
309
  declare function executeWorkflow(options: ExecuteWorkflowOptions): Promise<SucceededInstallationState | FailedInstallationState>;
310
+ /**
311
+ * Executes an uninstall workflow from an initial state. Returns the final state (never throws).
312
+ * Steps with an `uninstall` handler get it called; steps without are silently skipped.
313
+ */
314
+ declare function executeUninstallWorkflow(options: ExecuteWorkflowOptions): Promise<SucceededInstallationState | FailedInstallationState>;
279
315
  //#endregion
280
316
  //#region source/management/installation/workflow/validation.d.ts
281
317
  /** Validation result for a single step, mirroring the step hierarchy. */
282
318
  type StepValidationResult = {
283
319
  /** Step name (unique among siblings). */name: string; /** Full path from root to this step. */
284
320
  path: string[]; /** Step metadata (for display purposes). */
285
- meta: StepMeta; /** Issues found for this specific step (not including children). */
321
+ meta: StepMetaInfo; /** Issues found for this specific step (not including children). */
286
322
  issues: ValidationIssue[]; /** Validation results for child steps (empty for leaf steps). */
287
323
  children: StepValidationResult[];
288
324
  };
@@ -327,35 +363,49 @@ declare function validateStepTree(options: ValidateStepTreeOptions): Promise<Val
327
363
  * @returns The result of the installation step (can be any value or Promise)
328
364
  */
329
365
  type CustomInstallationStepHandler<TResult = unknown> = (config: CommerceAppConfigOutputModel, context: ExecutionContext) => TResult | Promise<TResult>;
366
+ /**
367
+ * Object form for defining a custom installation step with both install and uninstall handlers.
368
+ *
369
+ * @template TResult - The return type of the install handler
370
+ */
371
+ type CustomInstallationStepDefinition<TResult = unknown> = {
372
+ /** The installation handler, called when the app is installed. */install: CustomInstallationStepHandler<TResult>; /** The optional uninstall handler, called when the app is uninstalled. */
373
+ uninstall?: CustomInstallationStepHandler<void>;
374
+ };
330
375
  /**
331
376
  * Define a custom installation step with type-safe parameters.
332
377
  *
333
378
  * This helper provides type safety and IDE autocompletion for custom installation scripts.
334
- * The handler function receives properly typed `config` and `context` parameters.
379
+ * Accepts either a plain function (install only) or an object with `install` and optional
380
+ * `uninstall` handlers.
335
381
  *
336
- * @param handler - The installation step handler function
337
- * @returns The same handler function (for use as default export)
338
- *
339
- * @example
382
+ * @example Plain function (install only):
340
383
  * ```typescript
341
384
  * import { defineCustomInstallationStep } from "@adobe/aio-commerce-lib-app/management";
342
385
  *
343
386
  * export default defineCustomInstallationStep(async (config, context) => {
344
387
  * const { logger, params } = context;
345
- *
346
388
  * logger.info(`Setting up ${config.metadata.displayName}...`);
389
+ * return { status: "success" };
390
+ * });
391
+ * ```
347
392
  *
348
- * // Your installation logic here
349
- * // TypeScript will provide autocompletion for config and context
393
+ * @example Object form with install and uninstall:
394
+ * ```typescript
395
+ * import { defineCustomInstallationStep } from "@adobe/aio-commerce-lib-app/management";
350
396
  *
351
- * return {
352
- * status: "success",
353
- * message: "Setup completed",
354
- * };
397
+ * export default defineCustomInstallationStep({
398
+ * install: async (config, context) => {
399
+ * context.logger.info(`Registering ${config.metadata.displayName}...`);
400
+ * return { status: "success" };
401
+ * },
402
+ * uninstall: async (config, context) => {
403
+ * context.logger.info(`Removing ${config.metadata.displayName}...`);
404
+ * },
355
405
  * });
356
406
  * ```
357
407
  */
358
- declare function defineCustomInstallationStep<TResult = unknown>(handler: CustomInstallationStepHandler<TResult>): CustomInstallationStepHandler<TResult>;
408
+ declare function defineCustomInstallationStep<TResult = unknown>(handlerOrDefinition: CustomInstallationStepHandler<TResult> | CustomInstallationStepDefinition<TResult>): CustomInstallationStepHandler<TResult> | CustomInstallationStepDefinition<TResult>;
359
409
  //#endregion
360
410
  //#region source/management/installation/runner.d.ts
361
411
  /** Options for creating an initial installation state. */
@@ -379,6 +429,25 @@ declare function createInitialInstallationState(options: CreateInitialInstallati
379
429
  * Runs the full installation workflow. Returns the final state (never throws).
380
430
  */
381
431
  declare function runInstallation(options: RunInstallationOptions): Promise<SucceededInstallationState | FailedInstallationState>;
432
+ /** Options for creating an initial uninstallation state. */
433
+ type CreateInitialUninstallationStateOptions = {
434
+ /** The app configuration used to determine applicable steps. */config: CommerceAppConfigOutputModel;
435
+ };
436
+ /** Options for running an uninstallation. */
437
+ type RunUninstallationOptions = {
438
+ /** Shared installation context (params, logger, etc.). */installationContext: InstallationContext; /** The app configuration. */
439
+ config: CommerceAppConfigOutputModel; /** The initial uninstallation state (with all steps pending). */
440
+ initialState: InProgressInstallationState; /** Lifecycle hooks for status change notifications. */
441
+ hooks?: InstallationHooks;
442
+ };
443
+ /**
444
+ * Creates an initial uninstallation state from the config and step definitions.
445
+ */
446
+ declare function createInitialUninstallationState(options: CreateInitialUninstallationStateOptions): InProgressInstallationState;
447
+ /**
448
+ * Runs the full uninstallation workflow. Returns the final state (never throws).
449
+ */
450
+ declare function runUninstallation(options: RunUninstallationOptions): Promise<SucceededInstallationState | FailedInstallationState>;
382
451
  /** Options for running pre-installation validation. */
383
452
  type RunValidationOptions = {
384
453
  /** Validation context (params, logger, appData — no customScripts). */validationContext: ValidationContext; /** The app configuration. */
@@ -394,4 +463,4 @@ type RunValidationOptions = {
394
463
  */
395
464
  declare function runValidation(options: RunValidationOptions): Promise<ValidationResult>;
396
465
  //#endregion
397
- export { isBranchStep as $, StepStatus as A, InferStepOutput as B, ExecutionStatus as C, InstallationError as D, InstallationData as E, isSucceededState as F, StepContextFactory as G, LeafStep as H, AnyStep as I, ValidationExecutionContext as J, StepMeta as K, BranchStep as L, isCompletedState as M, isFailedState as N, InstallationState as O, isInProgressState as P, defineLeafStep as Q, BranchStepOptions as R, StepSucceededEvent as S, InProgressInstallationState as T, LeafStepOptions as U, InstallationContext as V, Step as W, ValidationIssueSeverity as X, ValidationIssue as Y, defineBranchStep as Z, executeWorkflow as _, runInstallation as a, StepFailedEvent as b, defineCustomInstallationStep as c, ValidationResult as d, isLeafStep as et, ValidationSummary as f, createInitialState as g, ExecuteWorkflowOptions as h, createInitialInstallationState as i, SucceededInstallationState as j, InstallationStatus as k, StepValidationResult as l, CreateInitialStateOptions as m, RunInstallationOptions as n, runValidation as o, validateStepTree as p, ValidationContext as q, RunValidationOptions as r, CustomInstallationStepHandler as s, CreateInitialInstallationStateOptions as t, ValidateStepTreeOptions as u, InstallationHooks as v, FailedInstallationState as w, StepStartedEvent as x, StepEvent as y, ExecutionContext as z };
466
+ export { StepMetaInfo as $, FailedInstallationState as A, isInProgressState as B, executeWorkflow as C, StepStartedEvent as D, StepFailedEvent as E, InstallationStatus as F, ExecutionContext as G, AnyStep as H, StepStatus as I, LeafStep as J, InferStepOutput as K, SucceededInstallationState as L, InstallationData as M, InstallationError as N, StepSucceededEvent as O, InstallationState as P, StepMeta as Q, isCompletedState as R, executeUninstallWorkflow as S, StepEvent as T, BranchStep as U, isSucceededState as V, BranchStepOptions as W, Step as X, LeafStepOptions as Y, StepContextFactory as Z, ValidationSummary as _, RunValidationOptions as a, defineLeafStep as at, ExecuteWorkflowOptions as b, runInstallation as c, CustomInstallationStepDefinition as d, ValidationContext as et, CustomInstallationStepHandler as f, ValidationResult as g, ValidateStepTreeOptions as h, RunUninstallationOptions as i, defineBranchStep as it, InProgressInstallationState as j, ExecutionStatus as k, runUninstallation as l, StepValidationResult as m, CreateInitialUninstallationStateOptions as n, ValidationIssue as nt, createInitialInstallationState as o, isBranchStep as ot, defineCustomInstallationStep as p, InstallationContext as q, RunInstallationOptions as r, ValidationIssueSeverity as rt, createInitialUninstallationState as s, isLeafStep as st, CreateInitialInstallationStateOptions as t, ValidationExecutionContext as tt, runValidation as u, validateStepTree as v, InstallationHooks as w, createInitialState as x, CreateInitialStateOptions as y, isFailedState as z };
@@ -13,13 +13,15 @@
13
13
  */
14
14
 
15
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
- const require_management = require('../management-PZtLe4Ji.cjs');
16
+ const require_management = require('../management-C6xG5bfl.cjs');
17
17
 
18
18
  exports.createInitialInstallationState = require_management.createInitialInstallationState;
19
+ exports.createInitialUninstallationState = require_management.createInitialUninstallationState;
19
20
  exports.defineCustomInstallationStep = require_management.defineCustomInstallationStep;
20
21
  exports.isCompletedState = require_management.isCompletedState;
21
22
  exports.isFailedState = require_management.isFailedState;
22
23
  exports.isInProgressState = require_management.isInProgressState;
23
24
  exports.isSucceededState = require_management.isSucceededState;
24
25
  exports.runInstallation = require_management.runInstallation;
26
+ exports.runUninstallation = require_management.runUninstallation;
25
27
  exports.runValidation = require_management.runValidation;
@@ -12,5 +12,5 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { $ as isBranchStep, A as StepStatus, B as InferStepOutput, C as ExecutionStatus, D as InstallationError, E as InstallationData, F as isSucceededState, G as StepContextFactory, H as LeafStep, I as AnyStep, J as ValidationExecutionContext, K as StepMeta, L as BranchStep, M as isCompletedState, N as isFailedState, O as InstallationState, P as isInProgressState, Q as defineLeafStep, R as BranchStepOptions, S as StepSucceededEvent, T as InProgressInstallationState, U as LeafStepOptions, V as InstallationContext, W as Step, X as ValidationIssueSeverity, Y as ValidationIssue, Z as defineBranchStep, _ as executeWorkflow, a as runInstallation, b as StepFailedEvent, c as defineCustomInstallationStep, d as ValidationResult, et as isLeafStep, f as ValidationSummary, g as createInitialState, h as ExecuteWorkflowOptions, i as createInitialInstallationState, j as SucceededInstallationState, k as InstallationStatus, l as StepValidationResult, m as CreateInitialStateOptions, n as RunInstallationOptions, o as runValidation, p as validateStepTree, q as ValidationContext, r as RunValidationOptions, s as CustomInstallationStepHandler, t as CreateInitialInstallationStateOptions, u as ValidateStepTreeOptions, v as InstallationHooks, w as FailedInstallationState, x as StepStartedEvent, y as StepEvent, z as ExecutionContext } from "../index-DRhLtRrX.cjs";
16
- export { AnyStep, BranchStep, BranchStepOptions, CreateInitialInstallationStateOptions, CreateInitialStateOptions, CustomInstallationStepHandler, ExecuteWorkflowOptions, ExecutionContext, ExecutionStatus, FailedInstallationState, InProgressInstallationState, InferStepOutput, InstallationContext, InstallationData, InstallationError, InstallationHooks, InstallationState, InstallationStatus, LeafStep, LeafStepOptions, RunInstallationOptions, RunValidationOptions, Step, StepContextFactory, StepEvent, StepFailedEvent, StepMeta, StepStartedEvent, StepStatus, StepSucceededEvent, StepValidationResult, SucceededInstallationState, ValidateStepTreeOptions, ValidationContext, ValidationExecutionContext, ValidationIssue, ValidationIssueSeverity, ValidationResult, ValidationSummary, createInitialInstallationState, createInitialState, defineBranchStep, defineCustomInstallationStep, defineLeafStep, executeWorkflow, isBranchStep, isCompletedState, isFailedState, isInProgressState, isLeafStep, isSucceededState, runInstallation, runValidation, validateStepTree };
15
+ import { $ as StepMetaInfo, A as FailedInstallationState, B as isInProgressState, C as executeWorkflow, D as StepStartedEvent, E as StepFailedEvent, F as InstallationStatus, G as ExecutionContext, H as AnyStep, I as StepStatus, J as LeafStep, K as InferStepOutput, L as SucceededInstallationState, M as InstallationData, N as InstallationError, O as StepSucceededEvent, P as InstallationState, Q as StepMeta, R as isCompletedState, S as executeUninstallWorkflow, T as StepEvent, U as BranchStep, V as isSucceededState, W as BranchStepOptions, X as Step, Y as LeafStepOptions, Z as StepContextFactory, _ as ValidationSummary, a as RunValidationOptions, at as defineLeafStep, b as ExecuteWorkflowOptions, c as runInstallation, d as CustomInstallationStepDefinition, et as ValidationContext, f as CustomInstallationStepHandler, g as ValidationResult, h as ValidateStepTreeOptions, i as RunUninstallationOptions, it as defineBranchStep, j as InProgressInstallationState, k as ExecutionStatus, l as runUninstallation, m as StepValidationResult, n as CreateInitialUninstallationStateOptions, nt as ValidationIssue, o as createInitialInstallationState, ot as isBranchStep, p as defineCustomInstallationStep, q as InstallationContext, r as RunInstallationOptions, rt as ValidationIssueSeverity, s as createInitialUninstallationState, st as isLeafStep, t as CreateInitialInstallationStateOptions, tt as ValidationExecutionContext, u as runValidation, v as validateStepTree, w as InstallationHooks, x as createInitialState, y as CreateInitialStateOptions, z as isFailedState } from "../index-BVwQk9bx.cjs";
16
+ export { AnyStep, BranchStep, BranchStepOptions, CreateInitialInstallationStateOptions, CreateInitialStateOptions, CreateInitialUninstallationStateOptions, CustomInstallationStepDefinition, CustomInstallationStepHandler, ExecuteWorkflowOptions, ExecutionContext, ExecutionStatus, FailedInstallationState, InProgressInstallationState, InferStepOutput, InstallationContext, InstallationData, InstallationError, InstallationHooks, InstallationState, InstallationStatus, LeafStep, LeafStepOptions, RunInstallationOptions, RunUninstallationOptions, RunValidationOptions, Step, StepContextFactory, StepEvent, StepFailedEvent, StepMeta, StepMetaInfo, StepStartedEvent, StepStatus, StepSucceededEvent, StepValidationResult, SucceededInstallationState, ValidateStepTreeOptions, ValidationContext, ValidationExecutionContext, ValidationIssue, ValidationIssueSeverity, ValidationResult, ValidationSummary, createInitialInstallationState, createInitialState, createInitialUninstallationState, defineBranchStep, defineCustomInstallationStep, defineLeafStep, executeUninstallWorkflow, executeWorkflow, isBranchStep, isCompletedState, isFailedState, isInProgressState, isLeafStep, isSucceededState, runInstallation, runUninstallation, runValidation, validateStepTree };