@contentful/experience-design-system-cli 2.37.1-dev-build-a6ad74de.0 → 2.37.1-dev-build-ed4a0d5c.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 +456 -197
- package/dist/index.js +1943 -1493
- package/dist/package.json +1 -1
- package/dist/src/tui/import/steps/10-flow/flow/preview.d.ts +2 -0
- package/dist/src/tui/import/steps/10-flow/flow/push.d.ts +2 -0
- 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 +18680 -18565
- 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/dist/package.json
CHANGED
|
@@ -4,6 +4,8 @@ import { type CDFDocument, type DTCGTokenEntry, type ServerPreviewResponse } fro
|
|
|
4
4
|
import type { FlowPatch, FlowState } from './types.js';
|
|
5
5
|
type PreviewClient = {
|
|
6
6
|
previewImport(cdf: CDFDocument): Promise<ServerPreviewResponse>;
|
|
7
|
+
/** Request id of the most recent response, used by `recordContentfulContext` for analytics correlation. */
|
|
8
|
+
getLastRequestId(): string | undefined;
|
|
7
9
|
};
|
|
8
10
|
/** The outside world `runPreview` talks to, so each branch can be tested without a database or a network. */
|
|
9
11
|
export interface PreviewDeps {
|
|
@@ -8,6 +8,8 @@ type PushClient = {
|
|
|
8
8
|
pollOperation(operationId: string, options: {
|
|
9
9
|
onProgress?: (operation: ApplyOperationResponse) => void;
|
|
10
10
|
}): Promise<ApplyOperationResponse>;
|
|
11
|
+
/** Request id of the most recent response, used by `recordApplyOutcome` for analytics correlation. */
|
|
12
|
+
getLastRequestId(): string | undefined;
|
|
11
13
|
};
|
|
12
14
|
/** The outside world `runPush` talks to, so each branch can be tested without a network or a run history. */
|
|
13
15
|
export interface PushDeps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { type CommandFailure } from '@contentful/experience-design-system-backend-pipeline';
|
|
1
2
|
import type { ApiError } from '../apply/api-client.js';
|
|
2
|
-
import type { CommandFailure } from './types.js';
|
|
3
3
|
export declare function exitWithAnalytics(code: number, fields?: CommandFailure): Promise<never>;
|
|
4
4
|
export declare function failureFromApiError(error: ApiError): CommandFailure;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
+
export { bindAnalyticsSessionId, completeActiveCommand, emitSessionStarted, enrichCommandResult, failActiveCommand, flushAnalytics, isPipelineAnalyticsChild, noteCommandStart, recordApplyOutcome, recordContentfulContext, setCliVersion, setPersistedAnalyticsDisabled, } from '@contentful/experience-design-system-backend-pipeline';
|
|
2
|
+
export type { CommandFailure } from '@contentful/experience-design-system-backend-pipeline';
|
|
1
3
|
export { exitWithAnalytics, failureFromApiError } from './exit.js';
|
|
2
|
-
export { flushAnalytics, setPersistedAnalyticsDisabled } from './client.js';
|
|
3
|
-
export { isPipelineAnalyticsChild } from './session.js';
|
|
4
|
-
export { bindAnalyticsSessionId, completeActiveCommand, emitSessionStarted, enrichCommandResult, failActiveCommand, noteCommandStart, } from './tracker.js';
|
|
5
|
-
export { recordApplyOutcome, recordContentfulContext } from './apply.js';
|
|
6
|
-
export type { CommandFailure } from './types.js';
|