@ollie-shop/cli 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/.turbo/turbo-build.log +2 -11
- package/CHANGELOG.md +13 -7
- package/CLAUDE_CLI.md +265 -0
- package/README.md +704 -8
- package/__tests__/mocks/console.ts +22 -0
- package/__tests__/mocks/core.ts +137 -0
- package/__tests__/mocks/index.ts +4 -0
- package/__tests__/mocks/inquirer.ts +16 -0
- package/__tests__/mocks/progress.ts +19 -0
- package/dist/__tests__/helpers/cli-test-helper.d.ts +89 -0
- package/dist/__tests__/helpers/cli-test-helper.d.ts.map +1 -0
- package/dist/__tests__/helpers/cli-test-helper.js +220 -0
- package/dist/__tests__/mocks/index.d.ts +69 -0
- package/dist/__tests__/mocks/index.d.ts.map +1 -0
- package/dist/__tests__/mocks/index.js +77 -0
- package/dist/actions/component.actions.d.ts +14 -0
- package/dist/actions/component.actions.d.ts.map +1 -0
- package/dist/actions/component.actions.js +273 -0
- package/dist/actions/function.actions.d.ts +15 -0
- package/dist/actions/function.actions.d.ts.map +1 -0
- package/dist/actions/function.actions.js +254 -0
- package/dist/actions/project.actions.d.ts +17 -0
- package/dist/actions/project.actions.d.ts.map +1 -0
- package/dist/actions/project.actions.js +97 -0
- package/dist/actions/version.actions.d.ts +19 -0
- package/dist/actions/version.actions.d.ts.map +1 -0
- package/dist/actions/version.actions.js +216 -0
- package/dist/commands/component.d.ts +3 -0
- package/dist/commands/component.d.ts.map +1 -0
- package/dist/commands/component.js +192 -0
- package/dist/commands/docs.d.ts +3 -0
- package/dist/commands/docs.d.ts.map +1 -0
- package/dist/commands/docs.js +16 -0
- package/dist/commands/function.d.ts +3 -0
- package/dist/commands/function.d.ts.map +1 -0
- package/dist/commands/function.js +243 -0
- package/dist/commands/help.d.ts +3 -0
- package/dist/commands/help.d.ts.map +1 -0
- package/dist/commands/help.js +20 -0
- package/dist/commands/index.d.ts +3 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +26 -0
- package/dist/commands/login.d.ts +3 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +175 -0
- package/dist/commands/project.d.ts +3 -0
- package/dist/commands/project.d.ts.map +1 -0
- package/dist/commands/project.js +78 -0
- package/dist/commands/store-version.d.ts +3 -0
- package/dist/commands/store-version.d.ts.map +1 -0
- package/dist/commands/store-version.js +241 -0
- package/dist/commands/version.d.ts +3 -0
- package/dist/commands/version.d.ts.map +1 -0
- package/dist/commands/version.js +46 -0
- package/dist/commands/whoami.d.ts +3 -0
- package/dist/commands/whoami.d.ts.map +1 -0
- package/dist/commands/whoami.js +41 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +88 -478
- package/dist/prompts/component.prompts.d.ts +14 -0
- package/dist/prompts/component.prompts.d.ts.map +1 -0
- package/dist/prompts/component.prompts.js +75 -0
- package/dist/prompts/function.prompts.d.ts +21 -0
- package/dist/prompts/function.prompts.d.ts.map +1 -0
- package/dist/prompts/function.prompts.js +127 -0
- package/dist/schemas/command.schema.d.ts +516 -0
- package/dist/schemas/command.schema.d.ts.map +1 -0
- package/dist/schemas/command.schema.js +267 -0
- package/dist/types/index.d.ts +147 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +18 -0
- package/dist/utils/auth.d.ts +4 -0
- package/dist/utils/auth.d.ts.map +1 -0
- package/dist/utils/auth.js +26 -0
- package/dist/utils/cli-progress-reporter.d.ts +12 -0
- package/dist/utils/cli-progress-reporter.d.ts.map +1 -0
- package/dist/utils/cli-progress-reporter.js +77 -0
- package/dist/utils/command-builder.d.ts +22 -0
- package/dist/utils/command-builder.d.ts.map +1 -0
- package/dist/utils/command-builder.js +268 -0
- package/dist/utils/command-helpers.d.ts +19 -0
- package/dist/utils/command-helpers.d.ts.map +1 -0
- package/dist/utils/command-helpers.js +79 -0
- package/dist/utils/command-parser.d.ts +146 -0
- package/dist/utils/command-parser.d.ts.map +1 -0
- package/dist/utils/command-parser.js +179 -0
- package/dist/utils/command-suggestions.d.ts +35 -0
- package/dist/utils/command-suggestions.d.ts.map +1 -0
- package/dist/utils/command-suggestions.js +152 -0
- package/dist/utils/console.d.ts +44 -0
- package/dist/utils/console.d.ts.map +1 -0
- package/dist/utils/console.js +233 -0
- package/dist/utils/constants.d.ts +8 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/constants.js +10 -0
- package/dist/utils/context-detector.d.ts +12 -0
- package/dist/utils/context-detector.d.ts.map +1 -0
- package/dist/utils/context-detector.js +155 -0
- package/dist/utils/enhanced-error-handler.d.ts +47 -0
- package/dist/utils/enhanced-error-handler.d.ts.map +1 -0
- package/dist/utils/enhanced-error-handler.js +221 -0
- package/dist/utils/error-handler.d.ts +3 -0
- package/dist/utils/error-handler.d.ts.map +1 -0
- package/dist/utils/error-handler.js +55 -0
- package/dist/utils/errors.d.ts +44 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +76 -0
- package/dist/utils/interactive-builder.d.ts +22 -0
- package/dist/utils/interactive-builder.d.ts.map +1 -0
- package/dist/utils/interactive-builder.js +246 -0
- package/dist/utils/rich-progress.d.ts +59 -0
- package/dist/utils/rich-progress.d.ts.map +1 -0
- package/dist/utils/rich-progress.js +234 -0
- package/dist/utils/store.d.ts +11 -0
- package/dist/utils/store.d.ts.map +1 -0
- package/dist/utils/store.js +19 -0
- package/dist/utils/validation-error-formatter.d.ts +25 -0
- package/dist/utils/validation-error-formatter.d.ts.map +1 -0
- package/dist/utils/validation-error-formatter.js +258 -0
- package/dist/utils/validation-helpers.d.ts +60 -0
- package/dist/utils/validation-helpers.d.ts.map +1 -0
- package/dist/utils/validation-helpers.js +152 -0
- package/package.json +43 -11
- package/src/__tests__/helpers/cli-test-helper.ts +281 -0
- package/src/__tests__/mocks/index.ts +142 -0
- package/src/actions/component.actions.ts +334 -0
- package/src/actions/function.actions.ts +313 -0
- package/src/actions/project.actions.ts +126 -0
- package/src/actions/version.actions.ts +233 -0
- package/src/commands/__tests__/component-validation.test.ts +250 -0
- package/src/commands/__tests__/component.test.ts +321 -0
- package/src/commands/__tests__/function-validation.test.ts +220 -0
- package/src/commands/__tests__/function.test.ts +286 -0
- package/src/commands/__tests__/store-version-validation.test.ts +414 -0
- package/src/commands/__tests__/store-version.test.ts +405 -0
- package/src/commands/__tests__/version.test.ts +71 -0
- package/src/commands/component.ts +188 -0
- package/src/commands/docs.ts +11 -11
- package/src/commands/function.ts +252 -0
- package/src/commands/help.ts +8 -18
- package/src/commands/index.ts +14 -7
- package/src/commands/login.ts +19 -79
- package/src/commands/project.ts +107 -0
- package/src/commands/store-version.ts +242 -0
- package/src/commands/version.ts +45 -8
- package/src/commands/whoami.ts +8 -13
- package/src/index.ts +108 -34
- package/src/prompts/component.prompts.ts +94 -0
- package/src/prompts/function.prompts.ts +168 -0
- package/src/schemas/command.schema.ts +354 -0
- package/src/types/index.ts +183 -0
- package/src/utils/__tests__/command-parser.test.ts +159 -0
- package/src/utils/__tests__/command-suggestions.test.ts +185 -0
- package/src/utils/__tests__/console.test.ts +192 -0
- package/src/utils/__tests__/context-detector.test.ts +258 -0
- package/src/utils/__tests__/enhanced-error-handler.test.ts +137 -0
- package/src/utils/__tests__/error-handler.test.ts +107 -0
- package/src/utils/__tests__/rich-progress.test.ts +170 -0
- package/src/utils/__tests__/validation-error-formatter.test.ts +175 -0
- package/src/utils/__tests__/validation-helpers.test.ts +125 -0
- package/src/utils/auth.ts +0 -1
- package/src/utils/cli-progress-reporter.ts +84 -0
- package/src/utils/command-builder.ts +390 -0
- package/src/utils/command-helpers.ts +83 -0
- package/src/utils/command-parser.ts +250 -0
- package/src/utils/command-suggestions.ts +176 -0
- package/src/utils/console.ts +291 -0
- package/src/utils/context-detector.ts +177 -0
- package/src/utils/enhanced-error-handler.ts +264 -0
- package/src/utils/error-handler.ts +60 -0
- package/src/utils/errors.ts +125 -0
- package/src/utils/interactive-builder.ts +271 -0
- package/src/utils/rich-progress.ts +320 -0
- package/src/utils/validation-error-formatter.ts +337 -0
- package/src/utils/validation-helpers.ts +192 -0
- package/tsconfig.json +13 -7
- package/vitest.config.ts +28 -0
- package/vitest.setup.ts +29 -0
- package/src/commands/validate.ts +0 -62
- package/src/utils/core.ts +0 -105
- package/tsup.config.ts +0 -15
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type FunctionInvocationTypeType, type OnErrorBehaviorType } from "@ollie-shop/core";
|
|
2
|
+
export interface FunctionCreationAnswers {
|
|
3
|
+
name: string;
|
|
4
|
+
invocation: FunctionInvocationTypeType;
|
|
5
|
+
priority: number;
|
|
6
|
+
onError: OnErrorBehaviorType;
|
|
7
|
+
includeTests: boolean;
|
|
8
|
+
description?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface FunctionDeploymentAnswers {
|
|
11
|
+
versionId: string;
|
|
12
|
+
confirm: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface FunctionTestAnswers {
|
|
15
|
+
pattern: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function promptFunctionCreation(name?: string, invocation?: string, priority?: number, onError?: string): Promise<FunctionCreationAnswers>;
|
|
18
|
+
export declare function promptFunctionDeployment(): Promise<FunctionDeploymentAnswers>;
|
|
19
|
+
export declare function promptFunctionTest(): Promise<FunctionTestAnswers>;
|
|
20
|
+
export declare function getInvocationDescription(invocation: FunctionInvocationTypeType): string;
|
|
21
|
+
//# sourceMappingURL=function.prompts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function.prompts.d.ts","sourceRoot":"","sources":["../../src/prompts/function.prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,0BAA0B,EAE/B,KAAK,mBAAmB,EACzB,MAAM,kBAAkB,CAAC;AAI1B,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,0BAA0B,CAAC;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;CACjB;AAoBD,wBAAsB,sBAAsB,CAC1C,IAAI,CAAC,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,MAAM,EACnB,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,uBAAuB,CAAC,CAuElC;AAED,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,yBAAyB,CAAC,CAoBnF;AAED,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,mBAAmB,CAAC,CAWvE;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,0BAA0B,GACrC,MAAM,CAOR"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.promptFunctionCreation = promptFunctionCreation;
|
|
7
|
+
exports.promptFunctionDeployment = promptFunctionDeployment;
|
|
8
|
+
exports.promptFunctionTest = promptFunctionTest;
|
|
9
|
+
exports.getInvocationDescription = getInvocationDescription;
|
|
10
|
+
const core_1 = require("@ollie-shop/core");
|
|
11
|
+
const inquirer_1 = __importDefault(require("inquirer"));
|
|
12
|
+
const validation_helpers_1 = require("../utils/validation-helpers");
|
|
13
|
+
// Generate function invocation choices from core enum
|
|
14
|
+
const invocationChoices = core_1.FunctionInvocationType.options.map((type) => ({
|
|
15
|
+
name: type === "request"
|
|
16
|
+
? "Request (before forwarding to target)"
|
|
17
|
+
: "Response (after receiving from target)",
|
|
18
|
+
value: type,
|
|
19
|
+
}));
|
|
20
|
+
// Generate error behavior choices from core enum
|
|
21
|
+
const errorBehaviorChoices = core_1.OnErrorBehavior.options.map((behavior) => ({
|
|
22
|
+
name: behavior === "throw"
|
|
23
|
+
? "Throw error and stop execution"
|
|
24
|
+
: "Skip and continue with next function",
|
|
25
|
+
value: behavior,
|
|
26
|
+
}));
|
|
27
|
+
async function promptFunctionCreation(name, invocation, priority, onError) {
|
|
28
|
+
const questions = [];
|
|
29
|
+
if (!name) {
|
|
30
|
+
questions.push({
|
|
31
|
+
type: "input",
|
|
32
|
+
name: "name",
|
|
33
|
+
message: "What's the name of your function?",
|
|
34
|
+
validate: (input) => {
|
|
35
|
+
return (0, validation_helpers_1.validateFunctionName)(input);
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
if (!invocation) {
|
|
40
|
+
questions.push({
|
|
41
|
+
type: "list",
|
|
42
|
+
name: "invocation",
|
|
43
|
+
message: "When should this function execute?",
|
|
44
|
+
choices: invocationChoices,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
if (priority === undefined) {
|
|
48
|
+
questions.push({
|
|
49
|
+
type: "number",
|
|
50
|
+
name: "priority",
|
|
51
|
+
message: "Priority (0-100, higher = executes first):",
|
|
52
|
+
default: 0,
|
|
53
|
+
validate: (input) => {
|
|
54
|
+
if (input < 0 || input > 100)
|
|
55
|
+
return "Priority must be between 0 and 100";
|
|
56
|
+
return true;
|
|
57
|
+
},
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
if (!onError) {
|
|
61
|
+
questions.push({
|
|
62
|
+
type: "list",
|
|
63
|
+
name: "onError",
|
|
64
|
+
message: "What should happen if this function fails?",
|
|
65
|
+
choices: errorBehaviorChoices,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
questions.push({
|
|
69
|
+
type: "input",
|
|
70
|
+
name: "description",
|
|
71
|
+
message: "Enter a description (optional):",
|
|
72
|
+
default: "",
|
|
73
|
+
}, {
|
|
74
|
+
type: "confirm",
|
|
75
|
+
name: "includeTests",
|
|
76
|
+
message: "Include test files?",
|
|
77
|
+
default: true,
|
|
78
|
+
});
|
|
79
|
+
const answers = await inquirer_1.default.prompt(questions);
|
|
80
|
+
return {
|
|
81
|
+
name: name || answers.name,
|
|
82
|
+
invocation: invocation || answers.invocation,
|
|
83
|
+
priority: priority ?? answers.priority,
|
|
84
|
+
onError: onError || answers.onError,
|
|
85
|
+
description: answers.description || undefined,
|
|
86
|
+
includeTests: answers.includeTests,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
async function promptFunctionDeployment() {
|
|
90
|
+
const answers = await inquirer_1.default.prompt([
|
|
91
|
+
{
|
|
92
|
+
type: "input",
|
|
93
|
+
name: "versionId",
|
|
94
|
+
message: "Enter the version ID to deploy to:",
|
|
95
|
+
validate: (input) => {
|
|
96
|
+
if (!input.trim())
|
|
97
|
+
return "Version ID is required";
|
|
98
|
+
return true;
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
type: "confirm",
|
|
103
|
+
name: "confirm",
|
|
104
|
+
message: "Are you sure you want to deploy this function?",
|
|
105
|
+
default: false,
|
|
106
|
+
},
|
|
107
|
+
]);
|
|
108
|
+
return answers;
|
|
109
|
+
}
|
|
110
|
+
async function promptFunctionTest() {
|
|
111
|
+
const answers = await inquirer_1.default.prompt([
|
|
112
|
+
{
|
|
113
|
+
type: "input",
|
|
114
|
+
name: "pattern",
|
|
115
|
+
message: "Enter test file pattern:",
|
|
116
|
+
default: "**/*.test.{js,ts}",
|
|
117
|
+
},
|
|
118
|
+
]);
|
|
119
|
+
return answers;
|
|
120
|
+
}
|
|
121
|
+
function getInvocationDescription(invocation) {
|
|
122
|
+
const descriptions = {
|
|
123
|
+
request: "Executes before forwarding request to target URL",
|
|
124
|
+
response: "Executes after receiving response from target URL",
|
|
125
|
+
};
|
|
126
|
+
return descriptions[invocation] || "Custom invocation handler";
|
|
127
|
+
}
|
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
import { ComponentNameSchema, FunctionNameSchema } from "@ollie-shop/core";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export { ComponentNameSchema, FunctionNameSchema };
|
|
4
|
+
/**
|
|
5
|
+
* CLI-specific schemas (only for CLI-specific concerns)
|
|
6
|
+
*/
|
|
7
|
+
export declare const PathSchema: z.ZodString;
|
|
8
|
+
export declare const StoreIdSchema: z.ZodString;
|
|
9
|
+
export declare const VersionNameSchema: z.ZodString;
|
|
10
|
+
export declare const PrioritySchema: z.ZodNumber;
|
|
11
|
+
export declare const UrlSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
12
|
+
export declare const SemverSchema: z.ZodString;
|
|
13
|
+
/**
|
|
14
|
+
* Component command schemas
|
|
15
|
+
*/
|
|
16
|
+
export declare const ComponentCreateOptionsSchema: z.ZodEffects<z.ZodObject<{
|
|
17
|
+
name: z.ZodOptional<z.ZodString>;
|
|
18
|
+
slot: z.ZodDefault<z.ZodOptional<z.ZodEnum<["header", "footer", "sidebar", "main", "checkout-summary", "payment-method", "shipping-method", "customer-info", "order-confirmation"]>>>;
|
|
19
|
+
tests: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
20
|
+
template: z.ZodOptional<z.ZodString>;
|
|
21
|
+
interactive: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
slot: "header" | "footer" | "sidebar" | "main" | "checkout-summary" | "payment-method" | "shipping-method" | "customer-info" | "order-confirmation";
|
|
24
|
+
tests: boolean;
|
|
25
|
+
name?: string | undefined;
|
|
26
|
+
template?: string | undefined;
|
|
27
|
+
interactive?: boolean | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
name?: string | undefined;
|
|
30
|
+
slot?: "header" | "footer" | "sidebar" | "main" | "checkout-summary" | "payment-method" | "shipping-method" | "customer-info" | "order-confirmation" | undefined;
|
|
31
|
+
tests?: boolean | undefined;
|
|
32
|
+
template?: string | undefined;
|
|
33
|
+
interactive?: boolean | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
slot: "header" | "footer" | "sidebar" | "main" | "checkout-summary" | "payment-method" | "shipping-method" | "customer-info" | "order-confirmation";
|
|
36
|
+
tests: boolean;
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
template?: string | undefined;
|
|
39
|
+
interactive?: boolean | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
name?: string | undefined;
|
|
42
|
+
slot?: "header" | "footer" | "sidebar" | "main" | "checkout-summary" | "payment-method" | "shipping-method" | "customer-info" | "order-confirmation" | undefined;
|
|
43
|
+
tests?: boolean | undefined;
|
|
44
|
+
template?: string | undefined;
|
|
45
|
+
interactive?: boolean | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
export declare const ComponentBuildOptionsSchema: z.ZodObject<{
|
|
48
|
+
path: z.ZodOptional<z.ZodString>;
|
|
49
|
+
watch: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
+
minify: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
sourcemap: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
path?: string | undefined;
|
|
54
|
+
watch?: boolean | undefined;
|
|
55
|
+
minify?: boolean | undefined;
|
|
56
|
+
sourcemap?: boolean | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
path?: string | undefined;
|
|
59
|
+
watch?: boolean | undefined;
|
|
60
|
+
minify?: boolean | undefined;
|
|
61
|
+
sourcemap?: boolean | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
export declare const ComponentValidateOptionsSchema: z.ZodObject<{
|
|
64
|
+
path: z.ZodOptional<z.ZodString>;
|
|
65
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
fix: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
path?: string | undefined;
|
|
69
|
+
strict?: boolean | undefined;
|
|
70
|
+
fix?: boolean | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
path?: string | undefined;
|
|
73
|
+
strict?: boolean | undefined;
|
|
74
|
+
fix?: boolean | undefined;
|
|
75
|
+
}>;
|
|
76
|
+
export declare const ComponentDeployOptionsSchema: z.ZodObject<{
|
|
77
|
+
path: z.ZodOptional<z.ZodString>;
|
|
78
|
+
componentId: z.ZodOptional<z.ZodString>;
|
|
79
|
+
id: z.ZodOptional<z.ZodString>;
|
|
80
|
+
wait: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
path?: string | undefined;
|
|
83
|
+
componentId?: string | undefined;
|
|
84
|
+
id?: string | undefined;
|
|
85
|
+
wait?: boolean | undefined;
|
|
86
|
+
}, {
|
|
87
|
+
path?: string | undefined;
|
|
88
|
+
componentId?: string | undefined;
|
|
89
|
+
id?: string | undefined;
|
|
90
|
+
wait?: boolean | undefined;
|
|
91
|
+
}>;
|
|
92
|
+
/**
|
|
93
|
+
* Function command schemas
|
|
94
|
+
*/
|
|
95
|
+
export declare const FunctionCreateOptionsSchema: z.ZodObject<{
|
|
96
|
+
name: z.ZodString;
|
|
97
|
+
invocation: z.ZodDefault<z.ZodOptional<z.ZodEnum<["request", "response"]>>>;
|
|
98
|
+
priority: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
99
|
+
onError: z.ZodDefault<z.ZodOptional<z.ZodEnum<["throw", "skip"]>>>;
|
|
100
|
+
tests: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
101
|
+
template: z.ZodOptional<z.ZodString>;
|
|
102
|
+
description: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
name: string;
|
|
105
|
+
tests: boolean;
|
|
106
|
+
invocation: "request" | "response";
|
|
107
|
+
priority: number;
|
|
108
|
+
onError: "throw" | "skip";
|
|
109
|
+
template?: string | undefined;
|
|
110
|
+
description?: string | undefined;
|
|
111
|
+
}, {
|
|
112
|
+
name: string;
|
|
113
|
+
tests?: boolean | undefined;
|
|
114
|
+
template?: string | undefined;
|
|
115
|
+
invocation?: "request" | "response" | undefined;
|
|
116
|
+
priority?: number | undefined;
|
|
117
|
+
onError?: "throw" | "skip" | undefined;
|
|
118
|
+
description?: string | undefined;
|
|
119
|
+
}>;
|
|
120
|
+
export declare const FunctionBuildOptionsSchema: z.ZodObject<{
|
|
121
|
+
path: z.ZodOptional<z.ZodString>;
|
|
122
|
+
watch: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
+
minify: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
+
target: z.ZodOptional<z.ZodEnum<["node16", "node18", "node20"]>>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
path?: string | undefined;
|
|
127
|
+
watch?: boolean | undefined;
|
|
128
|
+
minify?: boolean | undefined;
|
|
129
|
+
target?: "node16" | "node18" | "node20" | undefined;
|
|
130
|
+
}, {
|
|
131
|
+
path?: string | undefined;
|
|
132
|
+
watch?: boolean | undefined;
|
|
133
|
+
minify?: boolean | undefined;
|
|
134
|
+
target?: "node16" | "node18" | "node20" | undefined;
|
|
135
|
+
}>;
|
|
136
|
+
export declare const FunctionValidateOptionsSchema: z.ZodObject<{
|
|
137
|
+
path: z.ZodOptional<z.ZodString>;
|
|
138
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
139
|
+
fix: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
path?: string | undefined;
|
|
142
|
+
strict?: boolean | undefined;
|
|
143
|
+
fix?: boolean | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
path?: string | undefined;
|
|
146
|
+
strict?: boolean | undefined;
|
|
147
|
+
fix?: boolean | undefined;
|
|
148
|
+
}>;
|
|
149
|
+
export declare const FunctionTestOptionsSchema: z.ZodObject<{
|
|
150
|
+
path: z.ZodOptional<z.ZodString>;
|
|
151
|
+
payload: z.ZodOptional<z.ZodString>;
|
|
152
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
153
|
+
coverage: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
+
watch: z.ZodOptional<z.ZodBoolean>;
|
|
155
|
+
}, "strip", z.ZodTypeAny, {
|
|
156
|
+
path?: string | undefined;
|
|
157
|
+
watch?: boolean | undefined;
|
|
158
|
+
payload?: string | undefined;
|
|
159
|
+
timeout?: number | undefined;
|
|
160
|
+
coverage?: boolean | undefined;
|
|
161
|
+
}, {
|
|
162
|
+
path?: string | undefined;
|
|
163
|
+
watch?: boolean | undefined;
|
|
164
|
+
payload?: string | undefined;
|
|
165
|
+
timeout?: number | undefined;
|
|
166
|
+
coverage?: boolean | undefined;
|
|
167
|
+
}>;
|
|
168
|
+
export declare const FunctionDeployOptionsSchema: z.ZodObject<{
|
|
169
|
+
path: z.ZodOptional<z.ZodString>;
|
|
170
|
+
functionId: z.ZodOptional<z.ZodString>;
|
|
171
|
+
id: z.ZodOptional<z.ZodString>;
|
|
172
|
+
wait: z.ZodOptional<z.ZodBoolean>;
|
|
173
|
+
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
path?: string | undefined;
|
|
175
|
+
id?: string | undefined;
|
|
176
|
+
wait?: boolean | undefined;
|
|
177
|
+
functionId?: string | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
path?: string | undefined;
|
|
180
|
+
id?: string | undefined;
|
|
181
|
+
wait?: boolean | undefined;
|
|
182
|
+
functionId?: string | undefined;
|
|
183
|
+
}>;
|
|
184
|
+
/**
|
|
185
|
+
* Development server schemas
|
|
186
|
+
*/
|
|
187
|
+
export declare const DevServerOptionsSchema: z.ZodObject<{
|
|
188
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
189
|
+
host: z.ZodDefault<z.ZodString>;
|
|
190
|
+
open: z.ZodDefault<z.ZodBoolean>;
|
|
191
|
+
component: z.ZodOptional<z.ZodString>;
|
|
192
|
+
function: z.ZodOptional<z.ZodString>;
|
|
193
|
+
mockData: z.ZodOptional<z.ZodString>;
|
|
194
|
+
hot: z.ZodDefault<z.ZodBoolean>;
|
|
195
|
+
https: z.ZodDefault<z.ZodBoolean>;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
port: number;
|
|
198
|
+
host: string;
|
|
199
|
+
open: boolean;
|
|
200
|
+
hot: boolean;
|
|
201
|
+
https: boolean;
|
|
202
|
+
function?: string | undefined;
|
|
203
|
+
component?: string | undefined;
|
|
204
|
+
mockData?: string | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
function?: string | undefined;
|
|
207
|
+
port?: number | undefined;
|
|
208
|
+
host?: string | undefined;
|
|
209
|
+
open?: boolean | undefined;
|
|
210
|
+
component?: string | undefined;
|
|
211
|
+
mockData?: string | undefined;
|
|
212
|
+
hot?: boolean | undefined;
|
|
213
|
+
https?: boolean | undefined;
|
|
214
|
+
}>;
|
|
215
|
+
/**
|
|
216
|
+
* Global CLI options schemas
|
|
217
|
+
*/
|
|
218
|
+
export declare const GlobalOptionsSchema: z.ZodObject<{
|
|
219
|
+
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
220
|
+
quiet: z.ZodDefault<z.ZodBoolean>;
|
|
221
|
+
color: z.ZodDefault<z.ZodBoolean>;
|
|
222
|
+
config: z.ZodOptional<z.ZodString>;
|
|
223
|
+
logLevel: z.ZodDefault<z.ZodEnum<["error", "warn", "info", "debug"]>>;
|
|
224
|
+
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
verbose: boolean;
|
|
226
|
+
quiet: boolean;
|
|
227
|
+
color: boolean;
|
|
228
|
+
logLevel: "error" | "warn" | "info" | "debug";
|
|
229
|
+
config?: string | undefined;
|
|
230
|
+
}, {
|
|
231
|
+
verbose?: boolean | undefined;
|
|
232
|
+
quiet?: boolean | undefined;
|
|
233
|
+
color?: boolean | undefined;
|
|
234
|
+
config?: string | undefined;
|
|
235
|
+
logLevel?: "error" | "warn" | "info" | "debug" | undefined;
|
|
236
|
+
}>;
|
|
237
|
+
/**
|
|
238
|
+
* Build command schemas
|
|
239
|
+
*/
|
|
240
|
+
export declare const BuildOptionsSchema: z.ZodObject<{
|
|
241
|
+
path: z.ZodOptional<z.ZodString>;
|
|
242
|
+
output: z.ZodOptional<z.ZodString>;
|
|
243
|
+
minify: z.ZodDefault<z.ZodBoolean>;
|
|
244
|
+
sourcemap: z.ZodDefault<z.ZodBoolean>;
|
|
245
|
+
watch: z.ZodDefault<z.ZodBoolean>;
|
|
246
|
+
clean: z.ZodDefault<z.ZodBoolean>;
|
|
247
|
+
}, "strip", z.ZodTypeAny, {
|
|
248
|
+
watch: boolean;
|
|
249
|
+
minify: boolean;
|
|
250
|
+
sourcemap: boolean;
|
|
251
|
+
clean: boolean;
|
|
252
|
+
path?: string | undefined;
|
|
253
|
+
output?: string | undefined;
|
|
254
|
+
}, {
|
|
255
|
+
path?: string | undefined;
|
|
256
|
+
watch?: boolean | undefined;
|
|
257
|
+
minify?: boolean | undefined;
|
|
258
|
+
sourcemap?: boolean | undefined;
|
|
259
|
+
output?: string | undefined;
|
|
260
|
+
clean?: boolean | undefined;
|
|
261
|
+
}>;
|
|
262
|
+
/**
|
|
263
|
+
* Login/Auth schemas
|
|
264
|
+
*/
|
|
265
|
+
export declare const LoginOptionsSchema: z.ZodObject<{
|
|
266
|
+
token: z.ZodOptional<z.ZodString>;
|
|
267
|
+
interactive: z.ZodDefault<z.ZodBoolean>;
|
|
268
|
+
save: z.ZodDefault<z.ZodBoolean>;
|
|
269
|
+
}, "strip", z.ZodTypeAny, {
|
|
270
|
+
interactive: boolean;
|
|
271
|
+
save: boolean;
|
|
272
|
+
token?: string | undefined;
|
|
273
|
+
}, {
|
|
274
|
+
interactive?: boolean | undefined;
|
|
275
|
+
token?: string | undefined;
|
|
276
|
+
save?: boolean | undefined;
|
|
277
|
+
}>;
|
|
278
|
+
/**
|
|
279
|
+
* Init project schemas
|
|
280
|
+
*/
|
|
281
|
+
export declare const InitOptionsSchema: z.ZodObject<{
|
|
282
|
+
name: z.ZodOptional<z.ZodString>;
|
|
283
|
+
template: z.ZodDefault<z.ZodOptional<z.ZodEnum<["default", "grocery", "sales"]>>>;
|
|
284
|
+
git: z.ZodDefault<z.ZodBoolean>;
|
|
285
|
+
install: z.ZodDefault<z.ZodBoolean>;
|
|
286
|
+
path: z.ZodOptional<z.ZodString>;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
template: "default" | "grocery" | "sales";
|
|
289
|
+
git: boolean;
|
|
290
|
+
install: boolean;
|
|
291
|
+
path?: string | undefined;
|
|
292
|
+
name?: string | undefined;
|
|
293
|
+
}, {
|
|
294
|
+
path?: string | undefined;
|
|
295
|
+
name?: string | undefined;
|
|
296
|
+
template?: "default" | "grocery" | "sales" | undefined;
|
|
297
|
+
git?: boolean | undefined;
|
|
298
|
+
install?: boolean | undefined;
|
|
299
|
+
}>;
|
|
300
|
+
/**
|
|
301
|
+
* Store version command schemas
|
|
302
|
+
*/
|
|
303
|
+
export declare const StoreVersionCreateOptionsSchema: z.ZodObject<{
|
|
304
|
+
store: z.ZodString;
|
|
305
|
+
name: z.ZodString;
|
|
306
|
+
template: z.ZodOptional<z.ZodEnum<["default", "grocery", "sales"]>>;
|
|
307
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
308
|
+
}, "strip", z.ZodTypeAny, {
|
|
309
|
+
name: string;
|
|
310
|
+
store: string;
|
|
311
|
+
template?: "default" | "grocery" | "sales" | undefined;
|
|
312
|
+
active?: boolean | undefined;
|
|
313
|
+
}, {
|
|
314
|
+
name: string;
|
|
315
|
+
store: string;
|
|
316
|
+
template?: "default" | "grocery" | "sales" | undefined;
|
|
317
|
+
active?: boolean | undefined;
|
|
318
|
+
}>;
|
|
319
|
+
export declare const StoreVersionListOptionsSchema: z.ZodObject<{
|
|
320
|
+
store: z.ZodString;
|
|
321
|
+
}, "strip", z.ZodTypeAny, {
|
|
322
|
+
store: string;
|
|
323
|
+
}, {
|
|
324
|
+
store: string;
|
|
325
|
+
}>;
|
|
326
|
+
export declare const StoreVersionCloneOptionsSchema: z.ZodObject<{
|
|
327
|
+
store: z.ZodString;
|
|
328
|
+
sourceId: z.ZodString;
|
|
329
|
+
name: z.ZodString;
|
|
330
|
+
}, "strip", z.ZodTypeAny, {
|
|
331
|
+
name: string;
|
|
332
|
+
store: string;
|
|
333
|
+
sourceId: string;
|
|
334
|
+
}, {
|
|
335
|
+
name: string;
|
|
336
|
+
store: string;
|
|
337
|
+
sourceId: string;
|
|
338
|
+
}>;
|
|
339
|
+
export declare const StoreVersionActivateOptionsSchema: z.ZodObject<{
|
|
340
|
+
store: z.ZodString;
|
|
341
|
+
versionId: z.ZodString;
|
|
342
|
+
}, "strip", z.ZodTypeAny, {
|
|
343
|
+
store: string;
|
|
344
|
+
versionId: string;
|
|
345
|
+
}, {
|
|
346
|
+
store: string;
|
|
347
|
+
versionId: string;
|
|
348
|
+
}>;
|
|
349
|
+
export declare const StoreVersionSetDefaultOptionsSchema: z.ZodObject<{
|
|
350
|
+
store: z.ZodString;
|
|
351
|
+
versionId: z.ZodString;
|
|
352
|
+
}, "strip", z.ZodTypeAny, {
|
|
353
|
+
store: string;
|
|
354
|
+
versionId: string;
|
|
355
|
+
}, {
|
|
356
|
+
store: string;
|
|
357
|
+
versionId: string;
|
|
358
|
+
}>;
|
|
359
|
+
export type ComponentCreateOptions = z.infer<typeof ComponentCreateOptionsSchema>;
|
|
360
|
+
export type ComponentBuildOptions = z.infer<typeof ComponentBuildOptionsSchema>;
|
|
361
|
+
export type ComponentValidateOptions = z.infer<typeof ComponentValidateOptionsSchema>;
|
|
362
|
+
export type ComponentDeployOptions = z.infer<typeof ComponentDeployOptionsSchema>;
|
|
363
|
+
export type FunctionCreateOptions = z.infer<typeof FunctionCreateOptionsSchema>;
|
|
364
|
+
export type FunctionBuildOptions = z.infer<typeof FunctionBuildOptionsSchema>;
|
|
365
|
+
export type FunctionValidateOptions = z.infer<typeof FunctionValidateOptionsSchema>;
|
|
366
|
+
export type FunctionTestOptions = z.infer<typeof FunctionTestOptionsSchema>;
|
|
367
|
+
export type FunctionDeployOptions = z.infer<typeof FunctionDeployOptionsSchema>;
|
|
368
|
+
export type DevServerOptions = z.infer<typeof DevServerOptionsSchema>;
|
|
369
|
+
export type GlobalOptions = z.infer<typeof GlobalOptionsSchema>;
|
|
370
|
+
export type BuildOptions = z.infer<typeof BuildOptionsSchema>;
|
|
371
|
+
export type LoginOptions = z.infer<typeof LoginOptionsSchema>;
|
|
372
|
+
export type InitOptions = z.infer<typeof InitOptionsSchema>;
|
|
373
|
+
export type StoreVersionCreateOptions = z.infer<typeof StoreVersionCreateOptionsSchema>;
|
|
374
|
+
export type StoreVersionListOptions = z.infer<typeof StoreVersionListOptionsSchema>;
|
|
375
|
+
export type StoreVersionCloneOptions = z.infer<typeof StoreVersionCloneOptionsSchema>;
|
|
376
|
+
export type StoreVersionActivateOptions = z.infer<typeof StoreVersionActivateOptionsSchema>;
|
|
377
|
+
export type StoreVersionSetDefaultOptions = z.infer<typeof StoreVersionSetDefaultOptionsSchema>;
|
|
378
|
+
/**
|
|
379
|
+
* Validation helper functions
|
|
380
|
+
*/
|
|
381
|
+
export declare function validatePath(path: string): boolean;
|
|
382
|
+
export declare function validateStoreId(storeId: string): boolean;
|
|
383
|
+
export declare function validateVersionName(name: string): boolean;
|
|
384
|
+
export declare function validatePriority(priority: number): boolean;
|
|
385
|
+
export declare function validateUrl(url: string): boolean;
|
|
386
|
+
export declare function validateSemver(version: string): boolean;
|
|
387
|
+
/**
|
|
388
|
+
* CLI Data Display Schemas
|
|
389
|
+
* These schemas define the structure for data displayed in CLI commands
|
|
390
|
+
*/
|
|
391
|
+
export declare const FunctionListItemSchema: z.ZodObject<{
|
|
392
|
+
id: z.ZodString;
|
|
393
|
+
name: z.ZodString;
|
|
394
|
+
runtime: z.ZodOptional<z.ZodString>;
|
|
395
|
+
version: z.ZodOptional<z.ZodString>;
|
|
396
|
+
enabled: z.ZodBoolean;
|
|
397
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
398
|
+
invocation: z.ZodOptional<z.ZodEnum<["request", "response"]>>;
|
|
399
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
400
|
+
onError: z.ZodOptional<z.ZodEnum<["throw", "skip"]>>;
|
|
401
|
+
description: z.ZodOptional<z.ZodString>;
|
|
402
|
+
}, "strip", z.ZodTypeAny, {
|
|
403
|
+
name: string;
|
|
404
|
+
id: string;
|
|
405
|
+
enabled: boolean;
|
|
406
|
+
createdAt: string | Date;
|
|
407
|
+
invocation?: "request" | "response" | undefined;
|
|
408
|
+
priority?: number | undefined;
|
|
409
|
+
onError?: "throw" | "skip" | undefined;
|
|
410
|
+
description?: string | undefined;
|
|
411
|
+
runtime?: string | undefined;
|
|
412
|
+
version?: string | undefined;
|
|
413
|
+
}, {
|
|
414
|
+
name: string;
|
|
415
|
+
id: string;
|
|
416
|
+
enabled: boolean;
|
|
417
|
+
createdAt: string | Date;
|
|
418
|
+
invocation?: "request" | "response" | undefined;
|
|
419
|
+
priority?: number | undefined;
|
|
420
|
+
onError?: "throw" | "skip" | undefined;
|
|
421
|
+
description?: string | undefined;
|
|
422
|
+
runtime?: string | undefined;
|
|
423
|
+
version?: string | undefined;
|
|
424
|
+
}>;
|
|
425
|
+
export declare const ComponentListItemSchema: z.ZodObject<{
|
|
426
|
+
id: z.ZodString;
|
|
427
|
+
name: z.ZodString;
|
|
428
|
+
slot: z.ZodEnum<["header", "footer", "sidebar", "main", "checkout-summary", "payment-method", "shipping-method", "customer-info", "order-confirmation"]>;
|
|
429
|
+
version: z.ZodOptional<z.ZodString>;
|
|
430
|
+
enabled: z.ZodBoolean;
|
|
431
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
432
|
+
description: z.ZodOptional<z.ZodString>;
|
|
433
|
+
}, "strip", z.ZodTypeAny, {
|
|
434
|
+
name: string;
|
|
435
|
+
slot: "header" | "footer" | "sidebar" | "main" | "checkout-summary" | "payment-method" | "shipping-method" | "customer-info" | "order-confirmation";
|
|
436
|
+
id: string;
|
|
437
|
+
enabled: boolean;
|
|
438
|
+
createdAt: string | Date;
|
|
439
|
+
description?: string | undefined;
|
|
440
|
+
version?: string | undefined;
|
|
441
|
+
}, {
|
|
442
|
+
name: string;
|
|
443
|
+
slot: "header" | "footer" | "sidebar" | "main" | "checkout-summary" | "payment-method" | "shipping-method" | "customer-info" | "order-confirmation";
|
|
444
|
+
id: string;
|
|
445
|
+
enabled: boolean;
|
|
446
|
+
createdAt: string | Date;
|
|
447
|
+
description?: string | undefined;
|
|
448
|
+
version?: string | undefined;
|
|
449
|
+
}>;
|
|
450
|
+
export declare const BuildStatusSchema: z.ZodObject<{
|
|
451
|
+
id: z.ZodString;
|
|
452
|
+
status: z.ZodEnum<["pending", "building", "success", "error", "PENDING", "IN_PROGRESS", "SUCCESS", "SUCCEEDED", "FAILED", "FAULT"]>;
|
|
453
|
+
startTime: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
454
|
+
endTime: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
455
|
+
deploymentUrl: z.ZodOptional<z.ZodString>;
|
|
456
|
+
artifactLocation: z.ZodOptional<z.ZodString>;
|
|
457
|
+
logs: z.ZodOptional<z.ZodString>;
|
|
458
|
+
error: z.ZodOptional<z.ZodString>;
|
|
459
|
+
resourceId: z.ZodString;
|
|
460
|
+
resourceType: z.ZodEnum<["component", "function"]>;
|
|
461
|
+
}, "strip", z.ZodTypeAny, {
|
|
462
|
+
status: "error" | "pending" | "building" | "success" | "PENDING" | "IN_PROGRESS" | "SUCCESS" | "SUCCEEDED" | "FAILED" | "FAULT";
|
|
463
|
+
id: string;
|
|
464
|
+
startTime: string | Date;
|
|
465
|
+
resourceId: string;
|
|
466
|
+
resourceType: "function" | "component";
|
|
467
|
+
error?: string | undefined;
|
|
468
|
+
endTime?: string | Date | undefined;
|
|
469
|
+
deploymentUrl?: string | undefined;
|
|
470
|
+
artifactLocation?: string | undefined;
|
|
471
|
+
logs?: string | undefined;
|
|
472
|
+
}, {
|
|
473
|
+
status: "error" | "pending" | "building" | "success" | "PENDING" | "IN_PROGRESS" | "SUCCESS" | "SUCCEEDED" | "FAILED" | "FAULT";
|
|
474
|
+
id: string;
|
|
475
|
+
startTime: string | Date;
|
|
476
|
+
resourceId: string;
|
|
477
|
+
resourceType: "function" | "component";
|
|
478
|
+
error?: string | undefined;
|
|
479
|
+
endTime?: string | Date | undefined;
|
|
480
|
+
deploymentUrl?: string | undefined;
|
|
481
|
+
artifactLocation?: string | undefined;
|
|
482
|
+
logs?: string | undefined;
|
|
483
|
+
}>;
|
|
484
|
+
export declare const VersionListItemSchema: z.ZodObject<{
|
|
485
|
+
id: z.ZodString;
|
|
486
|
+
name: z.ZodString;
|
|
487
|
+
template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
488
|
+
active: z.ZodBoolean;
|
|
489
|
+
default: z.ZodBoolean;
|
|
490
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
491
|
+
updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
492
|
+
storeId: z.ZodString;
|
|
493
|
+
}, "strip", z.ZodTypeAny, {
|
|
494
|
+
name: string;
|
|
495
|
+
id: string;
|
|
496
|
+
default: boolean;
|
|
497
|
+
active: boolean;
|
|
498
|
+
createdAt: string | Date;
|
|
499
|
+
updatedAt: string | Date;
|
|
500
|
+
storeId: string;
|
|
501
|
+
template?: string | null | undefined;
|
|
502
|
+
}, {
|
|
503
|
+
name: string;
|
|
504
|
+
id: string;
|
|
505
|
+
default: boolean;
|
|
506
|
+
active: boolean;
|
|
507
|
+
createdAt: string | Date;
|
|
508
|
+
updatedAt: string | Date;
|
|
509
|
+
storeId: string;
|
|
510
|
+
template?: string | null | undefined;
|
|
511
|
+
}>;
|
|
512
|
+
export type FunctionListItem = z.infer<typeof FunctionListItemSchema>;
|
|
513
|
+
export type ComponentListItem = z.infer<typeof ComponentListItemSchema>;
|
|
514
|
+
export type BuildStatusItem = z.infer<typeof BuildStatusSchema>;
|
|
515
|
+
export type VersionListItem = z.infer<typeof VersionListItemSchema>;
|
|
516
|
+
//# sourceMappingURL=command.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/command.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,mBAAmB,EAGnB,kBAAkB,EAGnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,UAAU,aAA4C,CAAC;AAEpE,eAAO,MAAM,aAAa,aAA6C,CAAC;AAExE,eAAO,MAAM,iBAAiB,aAG8B,CAAC;AAE7D,eAAO,MAAM,cAAc,aAIsB,CAAC;AAElD,eAAO,MAAM,SAAS,2CAeyB,CAAC;AAEhD,eAAO,MAAM,YAAY,aAKtB,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWrC,CAAC;AAEL,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAKtC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;EAIzC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;EAKvC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;EAQtC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;EAKrC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAIxC,CAAC;AAEH,eAAO,MAAM,yBA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