@contentful/experience-design-system-cli 2.32.1-dev-build-e667d41.0 → 2.32.1-dev-build-4cf393a.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.32.1-dev-build-e667d41.0",
3
+ "version": "2.32.1-dev-build-4cf393a.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -0,0 +1,17 @@
1
+ import { type PlainClientAPI } from 'contentful-management';
2
+ interface CreateCmaClientOptions {
3
+ cmaToken: string;
4
+ /**
5
+ * Optional CMA host override. Accepts either a full URL
6
+ * (`https://api.contentful.com`) or a bare hostname (`api.contentful.com`);
7
+ * contentful-management wants the bare form so we normalize here.
8
+ */
9
+ host?: string;
10
+ }
11
+ /**
12
+ * Build a plain contentful-management client. Single place that picks the
13
+ * `{ type: 'plain' }` overload so callers never have to think about it,
14
+ * and normalizes host into the bare-hostname shape the SDK expects.
15
+ */
16
+ export declare function createCmaClient(opts: CreateCmaClientOptions): PlainClientAPI;
17
+ export {};
@@ -0,0 +1,16 @@
1
+ import { type ComponentProps, type DesignTokenProps, type PlainClientAPI } from 'contentful-management';
2
+ export interface ExistingEntities {
3
+ components: ComponentProps[];
4
+ tokens: DesignTokenProps[];
5
+ }
6
+ interface FetchExistingEntitiesParams {
7
+ spaceId: string;
8
+ environmentId: string;
9
+ }
10
+ /**
11
+ * Fetch all existing Components + DesignTokens for a space+env. Pagination
12
+ * is delegated to the SDK's `fetchAll()` helper. Caller supplies the
13
+ * pre-built plain client (see `createCmaClient()`).
14
+ */
15
+ export declare function fetchExistingEntities(client: PlainClientAPI, params: FetchExistingEntitiesParams): Promise<ExistingEntities>;
16
+ export {};
@@ -28,6 +28,7 @@ export interface PipelineOptions {
28
28
  /** When true, auto-reject cycle participants and retry push instead of surfacing an error. */
29
29
  autoRejectCycles?: boolean;
30
30
  allowDeletions?: boolean;
31
+ withSpaceContext?: boolean;
31
32
  compositionMode?: CompositionMode;
32
33
  compositionMap?: string;
33
34
  compositionAgent?: boolean;