@contentful/experience-design-system-cli 2.37.1-dev-build-2fb4dadf.0 → 2.37.1-dev-build-34dbca05.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.js +533 -299
- package/dist/index.js +1958 -1574
- package/dist/package.json +1 -1
- package/legacy/dist/src/analytics/exit.d.ts +1 -1
- package/legacy/dist/src/analytics/index.d.ts +2 -5
- package/legacy/dist/src/index.js +18561 -18497
- package/legacy/package.json +1 -1
- package/package.json +3 -3
- package/legacy/dist/src/analytics/apply.d.ts +0 -6
- package/legacy/dist/src/analytics/client.d.ts +0 -8
- package/legacy/dist/src/analytics/constants.d.ts +0 -4
- package/legacy/dist/src/analytics/normalize.d.ts +0 -3
- package/legacy/dist/src/analytics/os.d.ts +0 -2
- package/legacy/dist/src/analytics/session.d.ts +0 -3
- package/legacy/dist/src/analytics/tracker.d.ts +0 -16
- package/legacy/dist/src/analytics/types.d.ts +0 -28
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-34dbca05.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"ts-morph": "^27.0.2",
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
47
|
"zod": "^4.6.5",
|
|
48
|
-
"@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-
|
|
49
|
-
"@contentful/experience-design-system-types": "2.37.1-dev-build-
|
|
48
|
+
"@contentful/experience-design-system-backend-pipeline": "2.37.1-dev-build-34dbca05.0",
|
|
49
|
+
"@contentful/experience-design-system-types": "2.37.1-dev-build-34dbca05.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@tsconfig/node24": "^24.0.4",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ApplyOperationResponse } from '@contentful/experience-design-system-types';
|
|
2
|
-
import type { ImportApiClient } from '../apply/api-client.js';
|
|
3
|
-
/** Record apply/preview API outcomes on the active command. */
|
|
4
|
-
export declare function recordApplyOutcome(client: ImportApiClient, spaceId: string, environmentId: string, operation: ApplyOperationResponse): void;
|
|
5
|
-
/** Record Contentful target context without an apply operation (e.g. preview-only). */
|
|
6
|
-
export declare function recordContentfulContext(client: ImportApiClient, spaceId: string, environmentId: string): void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare function cliVersion(): string;
|
|
2
|
-
export declare function setPersistedAnalyticsDisabled(disabled: boolean): void;
|
|
3
|
-
export declare function analyticsEnabled(): boolean;
|
|
4
|
-
export declare function trackEvent(event: string, properties: Record<string, unknown>, anonymousId: string, options?: {
|
|
5
|
-
flush?: boolean;
|
|
6
|
-
}): Promise<void>;
|
|
7
|
-
export declare function flushAnalytics(): Promise<void>;
|
|
8
|
-
export declare function resetAnalyticsClientForTests(): void;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { CommandCompletion, CommandContext, CommandFailure, EntryCommand } from './types.js';
|
|
2
|
-
/** Record the start of a tracked command. Invoked is deferred until a session is bound. */
|
|
3
|
-
export declare function noteCommandStart(commandChain: string): void;
|
|
4
|
-
/** Bind a session id, preferring a pipeline parent id when present. */
|
|
5
|
-
export declare function bindAnalyticsSessionId(sessionId: string | undefined, context?: CommandContext): Promise<string>;
|
|
6
|
-
/** Attach Contentful target context for the active command. */
|
|
7
|
-
export declare function setCommandContext(context: CommandContext): void;
|
|
8
|
-
/** Merge optional completion fields before the terminal event fires. */
|
|
9
|
-
export declare function enrichCommandResult(fields: CommandCompletion): void;
|
|
10
|
-
/** Bind the pipeline session and emit invoked once both command and session are known. */
|
|
11
|
-
export declare function bindAnalyticsSession(id: string, context?: CommandContext): Promise<void>;
|
|
12
|
-
/** Emit session_started once per new pipeline head. */
|
|
13
|
-
export declare function emitSessionStarted(entryCommand: EntryCommand): Promise<void>;
|
|
14
|
-
export declare function completeActiveCommand(): Promise<void>;
|
|
15
|
-
export declare function failActiveCommand(fields?: CommandFailure): Promise<void>;
|
|
16
|
-
export declare function resetAnalyticsStateForTests(): void;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/** Tracked CLI commands — closed set aligned with the published event schema. */
|
|
2
|
-
export type DsiCliCommand = 'analyze_extract' | 'analyze_select' | 'generate_components' | 'generate_tokens' | 'map_tokens' | 'apply_push' | 'print_components' | 'print_tokens' | 'import';
|
|
3
|
-
export type EntryCommand = 'analyze_extract' | 'import';
|
|
4
|
-
export type OsName = 'macOS' | 'Linux' | 'Windows' | 'Android' | 'other';
|
|
5
|
-
export type WriteResult = {
|
|
6
|
-
created_count: number;
|
|
7
|
-
updated_count: number;
|
|
8
|
-
failed_count: number;
|
|
9
|
-
};
|
|
10
|
-
export type CommandContext = {
|
|
11
|
-
space_key?: string;
|
|
12
|
-
environment_key?: string;
|
|
13
|
-
x_contentful_request_id?: string;
|
|
14
|
-
};
|
|
15
|
-
export type CommandCompletion = CommandContext & {
|
|
16
|
-
dsi_operation_id?: string;
|
|
17
|
-
extracted_component_count?: number;
|
|
18
|
-
accepted_component_count?: number;
|
|
19
|
-
component_type_result?: WriteResult;
|
|
20
|
-
design_token_result?: WriteResult;
|
|
21
|
-
};
|
|
22
|
-
export type CommandFailure = CommandContext & {
|
|
23
|
-
dsi_operation_id?: string;
|
|
24
|
-
error_name?: string;
|
|
25
|
-
error_code?: string;
|
|
26
|
-
http_status_code?: number;
|
|
27
|
-
exit_code?: number;
|
|
28
|
-
};
|