@contentful/experience-design-system-cli 2.37.1-dev-build-8757f66c.0 → 2.37.1-dev-build-932fd115.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/dist/app.d.ts +2 -1
- package/dist/app.js +79 -610
- package/dist/index.js +107 -594
- package/dist/package.json +1 -1
- package/dist/src/commands/import-options.d.ts +13 -0
- package/dist/src/commands/import.d.ts +2 -1
- package/dist/src/tui/import/spawn-v1-import.d.ts +3 -1
- package/dist/src/tui/import/steps/04-credentials/logic.d.ts +3 -0
- package/dist/src/tui/import/steps/04-credentials/validate.d.ts +1 -1
- package/legacy/package.json +1 -1
- package/package.json +3 -3
package/dist/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ImportOptions {
|
|
2
|
+
agent?: string;
|
|
3
|
+
prompt: string[];
|
|
4
|
+
cache: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface RawImportOptions {
|
|
7
|
+
agent?: string;
|
|
8
|
+
prompt?: string[];
|
|
9
|
+
cache?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function toImportOptions(raw: RawImportOptions): ImportOptions;
|
|
12
|
+
export declare function importOptionArgs(options: ImportOptions): string[];
|
|
13
|
+
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import type { Command } from 'commander';
|
|
2
|
-
|
|
2
|
+
import { type ImportOptions } from './import-options.js';
|
|
3
|
+
export declare function registerImportCommand(program: Command, openTui: (options: ImportOptions) => Promise<void>): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ImportOptions } from '../../commands/import-options.js';
|
|
1
2
|
interface StepResult {
|
|
2
3
|
step: string;
|
|
3
4
|
status: 'complete' | 'failed' | 'skipped';
|
|
@@ -14,7 +15,7 @@ interface PipelineResult {
|
|
|
14
15
|
report: string[];
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
|
-
export interface SpawnV1ImportOptions {
|
|
18
|
+
export interface SpawnV1ImportOptions extends Partial<ImportOptions> {
|
|
18
19
|
projectPath?: string;
|
|
19
20
|
tokens?: string;
|
|
20
21
|
filePaths?: string[];
|
|
@@ -27,5 +28,6 @@ export interface SpawnV1ImportResult {
|
|
|
27
28
|
stdout: string;
|
|
28
29
|
stderr: string;
|
|
29
30
|
}
|
|
31
|
+
export declare function buildArgs(options: SpawnV1ImportOptions): string[];
|
|
30
32
|
export declare function spawnV1Import(options?: SpawnV1ImportOptions): Promise<SpawnV1ImportResult>;
|
|
31
33
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const FIELDS: readonly ["spaceId", "environmentId", "cmaToken", "host"];
|
|
2
2
|
export type CredentialField = (typeof FIELDS)[number];
|
|
3
3
|
export type CredentialValues = Record<CredentialField, string>;
|
|
4
|
+
export declare const DEFAULT_HOST = "api.contentful.com";
|
|
4
5
|
interface Key {
|
|
5
6
|
escape: boolean;
|
|
6
7
|
tab: boolean;
|
|
@@ -9,6 +10,8 @@ interface Key {
|
|
|
9
10
|
export type KeyAction = 'back' | 'next-field' | 'skip' | null;
|
|
10
11
|
export declare function keyAction(input: string, key: Key): KeyAction;
|
|
11
12
|
export declare function nextField(field: CredentialField): CredentialField;
|
|
13
|
+
export declare function toConfiguredHost(host: string | undefined): string;
|
|
14
|
+
export declare function toApiHost(host: string): string;
|
|
12
15
|
export declare function normalize(values: CredentialValues): CredentialValues;
|
|
13
16
|
export declare function missingField(values: CredentialValues): boolean;
|
|
14
17
|
export declare function isUnchanged(current: CredentialValues, initial: CredentialValues): boolean;
|
package/legacy/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.37.1-dev-build-
|
|
3
|
+
"version": "2.37.1-dev-build-932fd115.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"ts-morph": "^27.0.2",
|
|
45
45
|
"typescript": "^5.9.3",
|
|
46
46
|
"zod": "^4.6.5",
|
|
47
|
-
"@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-
|
|
48
|
-
"@contentful/experience-design-system-types": "2.37.1-dev-build-
|
|
47
|
+
"@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-932fd115.0",
|
|
48
|
+
"@contentful/experience-design-system-types": "2.37.1-dev-build-932fd115.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@tsconfig/node24": "^24.0.4",
|