@adobe/aio-commerce-lib-app 0.2.0 → 0.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.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/actions/index.cjs +815 -170
- package/dist/cjs/actions/index.d.cts +2 -2
- package/dist/cjs/app-Dx0ca6oL.d.cts +181 -0
- package/dist/cjs/commands/generate/actions/templates/business-configuration/get-config-schema.js.template +63 -0
- package/dist/cjs/commands/generate/actions/templates/business-configuration/get-configuration.js.template +104 -0
- package/dist/cjs/commands/generate/actions/templates/business-configuration/get-scope-tree.js.template +69 -0
- package/dist/cjs/commands/generate/actions/templates/business-configuration/set-configuration.js.template +125 -0
- package/dist/cjs/commands/generate/actions/templates/business-configuration/set-custom-scope-tree.js.template +83 -0
- package/dist/cjs/commands/generate/actions/templates/business-configuration/sync-commerce-scopes.js.template +113 -0
- package/dist/cjs/commands/generate/actions/templates/business-configuration/unsync-commerce-scopes.js.template +56 -0
- package/dist/cjs/commands/index.cjs +1075 -119
- package/dist/cjs/config/index.cjs +20 -1
- package/dist/cjs/config/index.d.cts +532 -3
- package/dist/cjs/config-JQ_n-5Nk.cjs +565 -0
- package/dist/cjs/error-Byj1DVHZ.cjs +344 -0
- package/dist/cjs/{index-DS3IlISO.d.cts → index-C5SutkJQ.d.cts} +1 -1
- package/dist/cjs/logging-DYwr5WQk.cjs +25 -0
- package/dist/cjs/management/index.cjs +9 -1
- package/dist/cjs/management/index.d.cts +1 -1
- package/dist/cjs/management-Dm5h0E6l.cjs +1246 -0
- package/dist/es/actions/index.d.mts +2 -2
- package/dist/es/actions/index.mjs +813 -170
- package/dist/es/app-Cx1-6dn0.d.mts +181 -0
- package/dist/es/commands/generate/actions/templates/business-configuration/get-config-schema.js.template +63 -0
- package/dist/es/commands/generate/actions/templates/business-configuration/get-configuration.js.template +104 -0
- package/dist/es/commands/generate/actions/templates/business-configuration/get-scope-tree.js.template +69 -0
- package/dist/es/commands/generate/actions/templates/business-configuration/set-configuration.js.template +125 -0
- package/dist/es/commands/generate/actions/templates/business-configuration/set-custom-scope-tree.js.template +83 -0
- package/dist/es/commands/generate/actions/templates/business-configuration/sync-commerce-scopes.js.template +113 -0
- package/dist/es/commands/generate/actions/templates/business-configuration/unsync-commerce-scopes.js.template +56 -0
- package/dist/es/commands/index.mjs +1070 -119
- package/dist/es/config/index.d.mts +532 -3
- package/dist/es/config/index.mjs +4 -1
- package/dist/es/config-BSGerqCG.mjs +457 -0
- package/dist/es/error-P7JgUTds.mjs +251 -0
- package/dist/es/{index-DQepSWYP.d.mts → index-Bxr3zvCT.d.mts} +2 -2
- package/dist/es/logging-VgerMhp6.mjs +18 -0
- package/dist/es/management/index.d.mts +2 -2
- package/dist/es/management/index.mjs +3 -1
- package/dist/es/management-Y7pwEbNI.mjs +1204 -0
- package/package.json +20 -8
- package/dist/cjs/app-C4HhkXbP.d.cts +0 -451
- package/dist/cjs/error-yAk1zzvx.cjs +0 -1
- package/dist/cjs/management-CE3_DJw4.cjs +0 -2
- package/dist/cjs/parser-Dovux8ce.cjs +0 -1
- package/dist/cjs/schemas-CdaP-Exw.cjs +0 -1
- package/dist/es/app-CMpx3D7Y.d.mts +0 -451
- package/dist/es/chunk-VmiN0kV1.mjs +0 -1
- package/dist/es/error-hBHRgZ9R.mjs +0 -1
- package/dist/es/management-BM2WcbV6.mjs +0 -2
- package/dist/es/parser-DOVfvr9l.mjs +0 -1
- package/dist/es/schemas-eemlD-xS.mjs +0 -1
- /package/dist/cjs/commands/generate/actions/templates/{custom-scripts.js.template → app-management/custom-scripts.js.template} +0 -0
- /package/dist/cjs/commands/generate/actions/templates/{get-app-config.js.template → app-management/get-app-config.js.template} +0 -0
- /package/dist/cjs/commands/generate/actions/templates/{installation.js.template → app-management/installation.js.template} +0 -0
- /package/dist/es/commands/generate/actions/templates/{custom-scripts.js.template → app-management/custom-scripts.js.template} +0 -0
- /package/dist/es/commands/generate/actions/templates/{get-app-config.js.template → app-management/get-app-config.js.template} +0 -0
- /package/dist/es/commands/generate/actions/templates/{installation.js.template → app-management/installation.js.template} +0 -0
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
import { CommerceSdkValidationError } from "@adobe/aio-commerce-lib-core/error";
|
|
3
|
+
|
|
4
|
+
//#region ../../packages-private/common-utils/source/valibot/schemas.ts
|
|
5
|
+
const ALPHANUMERIC_OR_UNDERSCORE_REGEX = {
|
|
6
|
+
any: /^[a-zA-Z0-9_]+$/,
|
|
7
|
+
lowercase: /^[a-z0-9_]+$/,
|
|
8
|
+
uppercase: /^[A-Z0-9_]+$/
|
|
9
|
+
};
|
|
10
|
+
const ALPHANUMERIC_OR_HYPHEN_REGEX = {
|
|
11
|
+
any: /^[a-zA-Z0-9-]+$/,
|
|
12
|
+
lowercase: /^[a-z0-9-]+$/,
|
|
13
|
+
uppercase: /^[A-Z0-9-]+$/
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* A schema for a string value.
|
|
17
|
+
* @param name The name of the field this schema refers to.
|
|
18
|
+
*/
|
|
19
|
+
function stringValueSchema(name) {
|
|
20
|
+
return v.string(`Expected a string value for '${name}'`);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A schema for a non-empty string value.
|
|
24
|
+
* @param name The name of the field this schema refers to.
|
|
25
|
+
*/
|
|
26
|
+
function nonEmptyStringValueSchema(name) {
|
|
27
|
+
return v.pipe(stringValueSchema(name), v.nonEmpty(`The value of "${name}" must not be empty`));
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* A schema for a boolean value.
|
|
31
|
+
* @param name The name of the field this schema refers to.
|
|
32
|
+
*/
|
|
33
|
+
function booleanValueSchema(name) {
|
|
34
|
+
return v.boolean(`Expected a boolean value for '${name}'`);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A schema for a string that only contains alphanumeric characters and underscores.
|
|
38
|
+
* @param name The name of the field this schema refers to.
|
|
39
|
+
* @param casing The allowed casing for the string (default: "any").
|
|
40
|
+
*/
|
|
41
|
+
function alphaNumericOrUnderscoreSchema(name, casing = "any") {
|
|
42
|
+
const casingLabel = casing === "any" ? "" : ` (${casing} only)`;
|
|
43
|
+
return v.pipe(stringValueSchema(name), v.regex(ALPHANUMERIC_OR_UNDERSCORE_REGEX[casing], `Only alphanumeric characters and underscores are allowed in string value of "${name}"${casingLabel}`));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* A schema for a string that only contains alphanumeric characters and hyphens.
|
|
47
|
+
* @param name The name of the field this schema refers to.
|
|
48
|
+
* @param casing The allowed casing for the string (default: "any").
|
|
49
|
+
*/
|
|
50
|
+
function alphaNumericOrHyphenSchema(name, casing = "any") {
|
|
51
|
+
const casingLabel = casing === "any" ? "" : ` (${casing} only)`;
|
|
52
|
+
return v.pipe(stringValueSchema(name), v.regex(ALPHANUMERIC_OR_HYPHEN_REGEX[casing], `Only alphanumeric characters and hyphens are allowed in string value of "${name}"${casingLabel}`));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region source/config/schema/installation.ts
|
|
57
|
+
const MAX_DESCRIPTION_LENGTH$1 = 255;
|
|
58
|
+
const MAX_NAME_LENGTH = 255;
|
|
59
|
+
const MAX_MESSAGE_LENGTH = 1e3;
|
|
60
|
+
/**
|
|
61
|
+
* Regex for script paths that can be relative or absolute.
|
|
62
|
+
* Must end with .js extension
|
|
63
|
+
* Examples:
|
|
64
|
+
* - "./scripts/setup.js"
|
|
65
|
+
* - "./setup.js"
|
|
66
|
+
* - "../../scripts/setup.js"
|
|
67
|
+
*/
|
|
68
|
+
const SCRIPT_PATH_REGEX = /^(?:\.{0,2}\/)*[\w-/]*[\w-]+\.js$/;
|
|
69
|
+
/**
|
|
70
|
+
* Schema for custom installation step configuration
|
|
71
|
+
*/
|
|
72
|
+
const CustomInstallationStepSchema = v.object({
|
|
73
|
+
script: v.pipe(nonEmptyStringValueSchema("script path"), v.regex(SCRIPT_PATH_REGEX, "Script path must end with .js (e.g., \"./setup.js\", \"./scripts/setup.js\", or \"../../scripts/setup.js\")")),
|
|
74
|
+
name: v.pipe(nonEmptyStringValueSchema("step name"), v.maxLength(MAX_NAME_LENGTH, `The step name must not be longer than ${MAX_NAME_LENGTH} characters`)),
|
|
75
|
+
description: v.pipe(nonEmptyStringValueSchema("step description"), v.maxLength(MAX_DESCRIPTION_LENGTH$1, `The step description must not be longer than ${MAX_DESCRIPTION_LENGTH$1} characters`))
|
|
76
|
+
});
|
|
77
|
+
/**
|
|
78
|
+
* Schema for installation messages configuration
|
|
79
|
+
*/
|
|
80
|
+
const MessagesSchema = v.object({
|
|
81
|
+
preInstallation: v.optional(v.pipe(nonEmptyStringValueSchema("preInstallation message"), v.maxLength(MAX_MESSAGE_LENGTH, `The preInstallation message must not be longer than ${MAX_MESSAGE_LENGTH} characters`))),
|
|
82
|
+
postInstallation: v.optional(v.pipe(nonEmptyStringValueSchema("postInstallation message"), v.maxLength(MAX_MESSAGE_LENGTH, `The postInstallation message must not be longer than ${MAX_MESSAGE_LENGTH} characters`)))
|
|
83
|
+
});
|
|
84
|
+
/**
|
|
85
|
+
* Schema for installation configuration
|
|
86
|
+
*/
|
|
87
|
+
const InstallationSchema = v.object({
|
|
88
|
+
messages: v.optional(MessagesSchema),
|
|
89
|
+
customInstallationSteps: v.pipe(v.optional(v.array(CustomInstallationStepSchema, "Expected an array of custom installation steps")), v.check((input) => {
|
|
90
|
+
const steps = input || [];
|
|
91
|
+
return new Set(steps.map((step) => step.name)).size === steps.length;
|
|
92
|
+
}, "Duplicate step names detected in custom installation steps. Each step must have a unique name."))
|
|
93
|
+
});
|
|
94
|
+
/**
|
|
95
|
+
* Check if config has custom installation settings.
|
|
96
|
+
* @param config - The configuration to check.
|
|
97
|
+
*/
|
|
98
|
+
function hasCustomInstallation(config) {
|
|
99
|
+
return config.installation !== void 0;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Check if config has custom installation steps.
|
|
103
|
+
* @param config - The configuration to check.
|
|
104
|
+
*/
|
|
105
|
+
function hasCustomInstallationSteps(config) {
|
|
106
|
+
return Array.isArray(config?.installation?.customInstallationSteps) && config.installation.customInstallationSteps.length > 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region source/config/schema/eventing.ts
|
|
111
|
+
const MAX_DESCRIPTION_LENGTH = 255;
|
|
112
|
+
const MAX_LABEL_LENGTH = 100;
|
|
113
|
+
const MAX_KEY_LENGTH = 50;
|
|
114
|
+
/**
|
|
115
|
+
* Regex for Commerce event names that must start with "plugin." or "observer."
|
|
116
|
+
* followed by lowercase letters and underscores only.
|
|
117
|
+
* Examples: "plugin.order_placed", "observer.catalog_update"
|
|
118
|
+
*/
|
|
119
|
+
const COMMERCE_EVENT_NAME_REGEX = /^(?:plugin|observer)\.[a-z_]+$/;
|
|
120
|
+
/**
|
|
121
|
+
* Regex for field names according to XSD fieldName pattern.
|
|
122
|
+
* Field name can either contain only [a-zA-Z0-9_\-\.\[\]] or be set to *.
|
|
123
|
+
*/
|
|
124
|
+
const FIELD_NAME_REGEX = /^([a-zA-Z0-9_\-.[\]]+|\*)$/;
|
|
125
|
+
/**
|
|
126
|
+
* Schema for Commerce event names.
|
|
127
|
+
* Validates that the event name starts with "plugin." or "observer."
|
|
128
|
+
* followed by lowercase letters and underscores only.
|
|
129
|
+
*/
|
|
130
|
+
function commerceEventNameSchema() {
|
|
131
|
+
return v.pipe(nonEmptyStringValueSchema("event name"), v.regex(COMMERCE_EVENT_NAME_REGEX, "Event name must start with \"plugin.\" or \"observer.\" followed by lowercase letters and underscores only (e.g., \"plugin.order_placed\")"));
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Schema for field names.
|
|
135
|
+
* Validates that the field name matches the XSD fieldName pattern:
|
|
136
|
+
* can either contain only [a-zA-Z0-9_\-\.\[\]] or be set to *.
|
|
137
|
+
*/
|
|
138
|
+
function fieldNameSchema() {
|
|
139
|
+
return v.pipe(nonEmptyStringValueSchema("field name"), v.regex(FIELD_NAME_REGEX, "Field name must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), dots (.), and square brackets ([, ]), or be exactly \"*\""));
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Schema for field objects in Commerce events.
|
|
143
|
+
* Each field has a required name and an optional source.
|
|
144
|
+
*/
|
|
145
|
+
function commerceEventFieldSchema() {
|
|
146
|
+
return v.object({
|
|
147
|
+
name: fieldNameSchema(),
|
|
148
|
+
source: v.optional(stringValueSchema("field source"))
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/** Schema for event provider configuration */
|
|
152
|
+
const ProviderSchema = v.object({
|
|
153
|
+
label: v.pipe(nonEmptyStringValueSchema("provider label"), v.maxLength(MAX_LABEL_LENGTH, `The provider label must not be longer than ${MAX_LABEL_LENGTH} characters`)),
|
|
154
|
+
description: v.pipe(nonEmptyStringValueSchema("provider description"), v.maxLength(MAX_DESCRIPTION_LENGTH, `The provider description must not be longer than ${MAX_DESCRIPTION_LENGTH} characters`)),
|
|
155
|
+
key: v.optional(v.pipe(alphaNumericOrHyphenSchema("provider key"), v.maxLength(MAX_KEY_LENGTH, `The provider key must not be longer than ${MAX_KEY_LENGTH} characters`)))
|
|
156
|
+
});
|
|
157
|
+
/** Schema for base shared properties between event types. */
|
|
158
|
+
const BaseEventSchema = v.object({
|
|
159
|
+
label: v.pipe(nonEmptyStringValueSchema("event label"), v.maxLength(MAX_LABEL_LENGTH, `The event label must not be longer than ${MAX_LABEL_LENGTH} characters`)),
|
|
160
|
+
description: v.pipe(nonEmptyStringValueSchema("event description"), v.maxLength(MAX_DESCRIPTION_LENGTH, `The event description must not be longer than ${MAX_DESCRIPTION_LENGTH} characters`)),
|
|
161
|
+
runtimeActions: v.array(v.pipe(nonEmptyStringValueSchema("runtime action"), v.regex(/^[a-z0-9-]+\/[a-z0-9-]+$/, "Runtime action must be in the format \"<package>/<action>\" (e.g., \"my-package/my-action\")")), "Expected an array of runtime actions in the format <package>/<action>")
|
|
162
|
+
});
|
|
163
|
+
/**
|
|
164
|
+
* Schema for rule operator values.
|
|
165
|
+
* Valid operators for Commerce event filtering rules.
|
|
166
|
+
*/
|
|
167
|
+
const OPERATORS = [
|
|
168
|
+
"greaterThan",
|
|
169
|
+
"lessThan",
|
|
170
|
+
"equal",
|
|
171
|
+
"regex",
|
|
172
|
+
"in",
|
|
173
|
+
"onChange"
|
|
174
|
+
];
|
|
175
|
+
const ruleOperatorSchema = v.union(OPERATORS.map((op) => v.literal(op)), `Operator must be one of: ${OPERATORS.join(", ")}`);
|
|
176
|
+
/** Schema for Commerce event rule configuration */
|
|
177
|
+
const CommerceEventRuleSchema = v.object({
|
|
178
|
+
field: nonEmptyStringValueSchema("rule field"),
|
|
179
|
+
operator: ruleOperatorSchema,
|
|
180
|
+
value: nonEmptyStringValueSchema("rule value")
|
|
181
|
+
});
|
|
182
|
+
/** Schema for Commerce event configuration */
|
|
183
|
+
const CommerceEventSchema = v.object({
|
|
184
|
+
...BaseEventSchema.entries,
|
|
185
|
+
name: commerceEventNameSchema(),
|
|
186
|
+
fields: v.array(commerceEventFieldSchema(), "Expected an array of event field objects with a 'name' property"),
|
|
187
|
+
rules: v.optional(v.array(CommerceEventRuleSchema, "Expected an array of event rules with field, operator, and value")),
|
|
188
|
+
destination: v.optional(nonEmptyStringValueSchema("destination")),
|
|
189
|
+
hipaaAuditRequired: v.optional(booleanValueSchema("hipaaAuditRequired")),
|
|
190
|
+
prioritary: v.optional(booleanValueSchema("prioritary")),
|
|
191
|
+
force: v.optional(booleanValueSchema("force"))
|
|
192
|
+
});
|
|
193
|
+
/** Schema for external event configuration */
|
|
194
|
+
const ExternalEventSchema = v.object({
|
|
195
|
+
...BaseEventSchema.entries,
|
|
196
|
+
name: alphaNumericOrUnderscoreSchema("event name", "lowercase")
|
|
197
|
+
});
|
|
198
|
+
/** Schema for Commerce event source configuration */
|
|
199
|
+
const CommerceEventSourceSchema = v.object({
|
|
200
|
+
provider: ProviderSchema,
|
|
201
|
+
events: v.array(CommerceEventSchema, "Expected an array of Commerce events")
|
|
202
|
+
});
|
|
203
|
+
/** Schema for external event source configuration */
|
|
204
|
+
const ExternalEventSourceSchema = v.object({
|
|
205
|
+
provider: ProviderSchema,
|
|
206
|
+
events: v.array(ExternalEventSchema, "Expected an array of external events")
|
|
207
|
+
});
|
|
208
|
+
/** Schema for eventing configuration with separate commerce and external arrays */
|
|
209
|
+
const EventingSchema = v.object({
|
|
210
|
+
commerce: v.optional(v.array(CommerceEventSourceSchema, "Expected an array of Commerce event sources")),
|
|
211
|
+
external: v.optional(v.array(ExternalEventSourceSchema, "Expected an array of external event sources"))
|
|
212
|
+
});
|
|
213
|
+
/**
|
|
214
|
+
* Check if config has commerce event sources.
|
|
215
|
+
* @param config - The configuration to check.
|
|
216
|
+
*/
|
|
217
|
+
function hasCommerceEvents(config) {
|
|
218
|
+
return Array.isArray(config?.eventing?.commerce) && config.eventing.commerce.length > 0;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Check if config has external event sources.
|
|
222
|
+
* @param config - The configuration to check.
|
|
223
|
+
*/
|
|
224
|
+
function hasExternalEvents(config) {
|
|
225
|
+
return Array.isArray(config?.eventing?.external) && config.eventing.external.length > 0;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Check if config has any eventing configuration.
|
|
229
|
+
* @param config - The configuration to check.
|
|
230
|
+
*/
|
|
231
|
+
function hasEventing(config) {
|
|
232
|
+
return config.eventing !== void 0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
//#endregion
|
|
236
|
+
//#region ../../packages-private/scripting-utils/source/error.ts
|
|
237
|
+
/**
|
|
238
|
+
* This module exports shared error utilities for the AIO Commerce SDK.
|
|
239
|
+
* @packageDocumentation
|
|
240
|
+
*/
|
|
241
|
+
/**
|
|
242
|
+
* Stringify an error to a human-friendly string.
|
|
243
|
+
* @param error - The error to stringify.
|
|
244
|
+
*/
|
|
245
|
+
function stringifyError(error) {
|
|
246
|
+
if (error instanceof CommerceSdkValidationError) return error.display();
|
|
247
|
+
return error instanceof Error ? error.message : String(error);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
//#endregion
|
|
251
|
+
export { hasExternalEvents as a, hasCustomInstallationSteps as c, hasEventing as i, alphaNumericOrHyphenSchema as l, EventingSchema as n, InstallationSchema as o, hasCommerceEvents as r, hasCustomInstallation as s, stringifyError as t, nonEmptyStringValueSchema as u };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as CommerceAppConfigOutputModel } from "./app-Cx1-6dn0.mjs";
|
|
2
|
+
import AioLogger from "@adobe/aio-lib-core-logging";
|
|
2
3
|
import * as v from "valibot";
|
|
3
4
|
import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
|
|
4
|
-
import AioLogger from "@adobe/aio-lib-core-logging";
|
|
5
5
|
|
|
6
6
|
//#region source/management/installation/schema.d.ts
|
|
7
7
|
/** Schema for validating Adobe I/O app credentials required for installation. */
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import util from "util";
|
|
2
|
+
|
|
3
|
+
//#region ../../packages-private/common-utils/source/logging.ts
|
|
4
|
+
/**
|
|
5
|
+
* Shorthand to inspect an object.
|
|
6
|
+
*
|
|
7
|
+
* @param obj - The object to inspect.
|
|
8
|
+
* @returns A string representation of the object.
|
|
9
|
+
*/
|
|
10
|
+
function inspect(obj, params = {}) {
|
|
11
|
+
return util.inspect(obj, {
|
|
12
|
+
depth: null,
|
|
13
|
+
...params
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { inspect as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../app-
|
|
2
|
-
import { A as BranchStep, B as defineBranchStep, C as StepStatus, D as isInProgressState, E as isFailedState, F as LeafStep, H as isBranchStep, I as LeafStepOptions, L as Step, M as ExecutionContext, N as InferStepOutput, O as isSucceededState, P as InstallationContext, R as StepContextFactory, S as InstallationStatus, T as isCompletedState, U as isLeafStep, V as defineLeafStep, _ as FailedInstallationState, a as CustomInstallationStepHandler, b as InstallationError, c as ExecuteWorkflowOptions, d as InstallationHooks, f as StepEvent, g as ExecutionStatus, h as StepSucceededEvent, i as runInstallation, j as BranchStepOptions, k as AnyStep, l as createInitialState, m as StepStartedEvent, n as RunInstallationOptions, o as defineCustomInstallationStep, p as StepFailedEvent, r as createInitialInstallationState, s as CreateInitialStateOptions, t as CreateInitialInstallationStateOptions, u as executeWorkflow, v as InProgressInstallationState, w as SucceededInstallationState, x as InstallationState, y as InstallationData, z as StepMeta } from "../index-
|
|
1
|
+
import "../app-Cx1-6dn0.mjs";
|
|
2
|
+
import { A as BranchStep, B as defineBranchStep, C as StepStatus, D as isInProgressState, E as isFailedState, F as LeafStep, H as isBranchStep, I as LeafStepOptions, L as Step, M as ExecutionContext, N as InferStepOutput, O as isSucceededState, P as InstallationContext, R as StepContextFactory, S as InstallationStatus, T as isCompletedState, U as isLeafStep, V as defineLeafStep, _ as FailedInstallationState, a as CustomInstallationStepHandler, b as InstallationError, c as ExecuteWorkflowOptions, d as InstallationHooks, f as StepEvent, g as ExecutionStatus, h as StepSucceededEvent, i as runInstallation, j as BranchStepOptions, k as AnyStep, l as createInitialState, m as StepStartedEvent, n as RunInstallationOptions, o as defineCustomInstallationStep, p as StepFailedEvent, r as createInitialInstallationState, s as CreateInitialStateOptions, t as CreateInitialInstallationStateOptions, u as executeWorkflow, v as InProgressInstallationState, w as SucceededInstallationState, x as InstallationState, y as InstallationData, z as StepMeta } from "../index-Bxr3zvCT.mjs";
|
|
3
3
|
export { AnyStep, BranchStep, BranchStepOptions, CreateInitialInstallationStateOptions, CreateInitialStateOptions, CustomInstallationStepHandler, ExecuteWorkflowOptions, ExecutionContext, ExecutionStatus, FailedInstallationState, InProgressInstallationState, InferStepOutput, InstallationContext, InstallationData, InstallationError, InstallationHooks, InstallationState, InstallationStatus, LeafStep, LeafStepOptions, RunInstallationOptions, Step, StepContextFactory, StepEvent, StepFailedEvent, StepMeta, StepStartedEvent, StepStatus, StepSucceededEvent, SucceededInstallationState, createInitialInstallationState, createInitialState, defineBranchStep, defineCustomInstallationStep, defineLeafStep, executeWorkflow, isBranchStep, isCompletedState, isFailedState, isInProgressState, isLeafStep, isSucceededState, runInstallation };
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
import{a as isFailedState,i as isCompletedState,n as runInstallation,o as isInProgressState,r as defineCustomInstallationStep,s as isSucceededState,t as createInitialInstallationState}from"../management-
|
|
1
|
+
import { a as isFailedState, i as isCompletedState, n as runInstallation, o as isInProgressState, r as defineCustomInstallationStep, s as isSucceededState, t as createInitialInstallationState } from "../management-Y7pwEbNI.mjs";
|
|
2
|
+
|
|
3
|
+
export { createInitialInstallationState, defineCustomInstallationStep, isCompletedState, isFailedState, isInProgressState, isSucceededState, runInstallation };
|