@supernova-studio/client 1.3.5 → 1.3.7
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/index.d.mts +222 -0
- package/dist/index.d.ts +222 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -97559,6 +97559,82 @@ declare class DocumentationEndpoint {
|
|
|
97559
97559
|
id: string;
|
|
97560
97560
|
};
|
|
97561
97561
|
}>;
|
|
97562
|
+
getBlockDefinitions(dsId: string, vId: string): Promise<{
|
|
97563
|
+
definitions: {
|
|
97564
|
+
item: {
|
|
97565
|
+
properties: {
|
|
97566
|
+
type: "Boolean" | "Number" | "Image" | "Text" | "URL" | "Token" | "Component" | "FigmaComponent" | "Color" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "MultiRichText" | "RichTextEditor" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "Asset" | "AssetProperty" | "FigmaNode" | "EmbedURL" | "CodeSandbox" | "Storybook";
|
|
97567
|
+
id: string;
|
|
97568
|
+
name: string;
|
|
97569
|
+
options?: Record<string, any> | undefined;
|
|
97570
|
+
description?: string | undefined;
|
|
97571
|
+
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
97572
|
+
}[];
|
|
97573
|
+
variants: {
|
|
97574
|
+
id: string;
|
|
97575
|
+
name: string;
|
|
97576
|
+
layout: {
|
|
97577
|
+
type: "Column" | "Row";
|
|
97578
|
+
gap?: "Small" | "Medium" | "Large" | "None" | undefined;
|
|
97579
|
+
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
97580
|
+
columnResizing?: "Fill" | "Hug" | undefined;
|
|
97581
|
+
} & {
|
|
97582
|
+
children: (PageBlockDefinitionLayout | string)[];
|
|
97583
|
+
};
|
|
97584
|
+
image?: string | undefined;
|
|
97585
|
+
description?: string | undefined;
|
|
97586
|
+
documentationLink?: string | undefined;
|
|
97587
|
+
maxColumns?: number | undefined;
|
|
97588
|
+
defaultColumns?: number | undefined;
|
|
97589
|
+
appearance?: {
|
|
97590
|
+
isBordered?: boolean | undefined;
|
|
97591
|
+
hasBackground?: boolean | undefined;
|
|
97592
|
+
isEditorPresentationDifferent?: boolean | undefined;
|
|
97593
|
+
showBlockHeaderInEditor?: boolean | undefined;
|
|
97594
|
+
} | undefined;
|
|
97595
|
+
}[];
|
|
97596
|
+
defaultVariantKey: string;
|
|
97597
|
+
appearance?: {
|
|
97598
|
+
isBordered?: boolean | undefined;
|
|
97599
|
+
hasBackground?: boolean | undefined;
|
|
97600
|
+
isEditorPresentationDifferent?: boolean | undefined;
|
|
97601
|
+
showBlockHeaderInEditor?: boolean | undefined;
|
|
97602
|
+
} | undefined;
|
|
97603
|
+
};
|
|
97604
|
+
category: "Text" | "Code" | "Embed" | "Guidelines" | "Layout" | "Media" | "Figma" | "Tokens" | "Components" | "Assets" | "Data" | "Other";
|
|
97605
|
+
id: string;
|
|
97606
|
+
name: string;
|
|
97607
|
+
description: string;
|
|
97608
|
+
behavior: {
|
|
97609
|
+
dataType: "Token" | "Component" | "FigmaComponent" | "Asset" | "FigmaNode" | "Item";
|
|
97610
|
+
items?: {
|
|
97611
|
+
numberOfItems: number;
|
|
97612
|
+
allowLinks: boolean;
|
|
97613
|
+
newItemLabel?: string | undefined;
|
|
97614
|
+
} | undefined;
|
|
97615
|
+
entities?: {
|
|
97616
|
+
selectionType: "Group" | "Entity" | "EntityAndGroup";
|
|
97617
|
+
maxSelected: number;
|
|
97618
|
+
} | undefined;
|
|
97619
|
+
};
|
|
97620
|
+
editorOptions: {
|
|
97621
|
+
newItemLabel?: string | undefined;
|
|
97622
|
+
onboarding?: {
|
|
97623
|
+
helpText: string;
|
|
97624
|
+
documentationLink?: string | undefined;
|
|
97625
|
+
} | undefined;
|
|
97626
|
+
};
|
|
97627
|
+
icon?: string | undefined;
|
|
97628
|
+
documentationLink?: string | undefined;
|
|
97629
|
+
appearance?: {
|
|
97630
|
+
isBordered?: boolean | undefined;
|
|
97631
|
+
hasBackground?: boolean | undefined;
|
|
97632
|
+
isEditorPresentationDifferent?: boolean | undefined;
|
|
97633
|
+
showBlockHeaderInEditor?: boolean | undefined;
|
|
97634
|
+
} | undefined;
|
|
97635
|
+
searchKeywords?: string[] | undefined;
|
|
97636
|
+
}[];
|
|
97637
|
+
}>;
|
|
97562
97638
|
}
|
|
97563
97639
|
|
|
97564
97640
|
declare class DesignSystemComponentEndpoint {
|
|
@@ -98181,6 +98257,152 @@ declare class ElementsActionEndpoint {
|
|
|
98181
98257
|
};
|
|
98182
98258
|
}[];
|
|
98183
98259
|
}>;
|
|
98260
|
+
updateDocPageDocument(dsId: string, vId: string, input: DTOUpdateDocumentationPageDocumentInputV2): Promise<{
|
|
98261
|
+
type: "DocumentationGroupCreate";
|
|
98262
|
+
output: {
|
|
98263
|
+
success: true;
|
|
98264
|
+
};
|
|
98265
|
+
} | {
|
|
98266
|
+
type: "DocumentationTabCreate";
|
|
98267
|
+
output: {
|
|
98268
|
+
success: true;
|
|
98269
|
+
};
|
|
98270
|
+
} | {
|
|
98271
|
+
type: "DocumentationGroupUpdate";
|
|
98272
|
+
output: {
|
|
98273
|
+
success: true;
|
|
98274
|
+
};
|
|
98275
|
+
} | {
|
|
98276
|
+
type: "DocumentationGroupMove";
|
|
98277
|
+
output: {
|
|
98278
|
+
success: true;
|
|
98279
|
+
};
|
|
98280
|
+
} | {
|
|
98281
|
+
type: "DocumentationGroupDuplicate";
|
|
98282
|
+
output: {
|
|
98283
|
+
success: true;
|
|
98284
|
+
};
|
|
98285
|
+
} | {
|
|
98286
|
+
type: "DocumentationGroupDelete";
|
|
98287
|
+
output: {
|
|
98288
|
+
success: true;
|
|
98289
|
+
};
|
|
98290
|
+
} | {
|
|
98291
|
+
type: "DocumentationTabGroupDelete";
|
|
98292
|
+
output: {
|
|
98293
|
+
success: true;
|
|
98294
|
+
};
|
|
98295
|
+
} | {
|
|
98296
|
+
type: "DocumentationPageCreate";
|
|
98297
|
+
output: {
|
|
98298
|
+
success: true;
|
|
98299
|
+
};
|
|
98300
|
+
} | {
|
|
98301
|
+
type: "DocumentationPageUpdate";
|
|
98302
|
+
output: {
|
|
98303
|
+
success: true;
|
|
98304
|
+
};
|
|
98305
|
+
} | {
|
|
98306
|
+
type: "DocumentationPageUpdateDocument";
|
|
98307
|
+
output: {
|
|
98308
|
+
success: true;
|
|
98309
|
+
};
|
|
98310
|
+
} | {
|
|
98311
|
+
type: "DocumentationPageMove";
|
|
98312
|
+
output: {
|
|
98313
|
+
success: true;
|
|
98314
|
+
};
|
|
98315
|
+
} | {
|
|
98316
|
+
type: "DocumentationPageDuplicate";
|
|
98317
|
+
output: {
|
|
98318
|
+
success: true;
|
|
98319
|
+
};
|
|
98320
|
+
} | {
|
|
98321
|
+
type: "DocumentationPageDelete";
|
|
98322
|
+
output: {
|
|
98323
|
+
success: true;
|
|
98324
|
+
};
|
|
98325
|
+
} | {
|
|
98326
|
+
type: "DocumentationPageRestore";
|
|
98327
|
+
output: {
|
|
98328
|
+
success: true;
|
|
98329
|
+
};
|
|
98330
|
+
} | {
|
|
98331
|
+
type: "DocumentationGroupRestore";
|
|
98332
|
+
output: {
|
|
98333
|
+
success: true;
|
|
98334
|
+
};
|
|
98335
|
+
} | {
|
|
98336
|
+
type: "DocumentationPageApprovalStateChange";
|
|
98337
|
+
output: {
|
|
98338
|
+
success: true;
|
|
98339
|
+
};
|
|
98340
|
+
} | {
|
|
98341
|
+
type: "FigmaNodeRender";
|
|
98342
|
+
figmaNodes: {
|
|
98343
|
+
id: string;
|
|
98344
|
+
persistentId: string;
|
|
98345
|
+
meta: {
|
|
98346
|
+
name: string;
|
|
98347
|
+
description?: string | undefined;
|
|
98348
|
+
};
|
|
98349
|
+
designSystemVersionId: string;
|
|
98350
|
+
createdAt: Date;
|
|
98351
|
+
updatedAt: Date;
|
|
98352
|
+
data: {
|
|
98353
|
+
figmaNodeId: string;
|
|
98354
|
+
isValid: boolean;
|
|
98355
|
+
assetId: string;
|
|
98356
|
+
assetUrl: string;
|
|
98357
|
+
assetFormat: "Png" | "Svg";
|
|
98358
|
+
assetScale: number;
|
|
98359
|
+
assetWidth?: number | undefined;
|
|
98360
|
+
assetHeight?: number | undefined;
|
|
98361
|
+
};
|
|
98362
|
+
origin: {
|
|
98363
|
+
sourceId: string;
|
|
98364
|
+
fileId?: string | undefined;
|
|
98365
|
+
parentName?: string | undefined;
|
|
98366
|
+
};
|
|
98367
|
+
}[];
|
|
98368
|
+
} | {
|
|
98369
|
+
type: "FigmaNodeRenderAsync";
|
|
98370
|
+
figmaNodes: {
|
|
98371
|
+
id: string;
|
|
98372
|
+
persistentId: string;
|
|
98373
|
+
meta: {
|
|
98374
|
+
name: string;
|
|
98375
|
+
description?: string | undefined;
|
|
98376
|
+
};
|
|
98377
|
+
designSystemVersionId: string;
|
|
98378
|
+
createdAt: Date;
|
|
98379
|
+
updatedAt: Date;
|
|
98380
|
+
data: {
|
|
98381
|
+
format: "Png" | "Svg";
|
|
98382
|
+
sceneNodeId: string;
|
|
98383
|
+
renderState: "InProgress" | "Failed" | "Success";
|
|
98384
|
+
hasSource: boolean;
|
|
98385
|
+
scale?: number | undefined;
|
|
98386
|
+
renderedImage?: {
|
|
98387
|
+
resourceId: string;
|
|
98388
|
+
format: "Png" | "Svg";
|
|
98389
|
+
url?: string | undefined;
|
|
98390
|
+
width?: number | undefined;
|
|
98391
|
+
height?: number | undefined;
|
|
98392
|
+
originKey?: string | undefined;
|
|
98393
|
+
scale?: number | undefined;
|
|
98394
|
+
} | undefined;
|
|
98395
|
+
renderError?: {
|
|
98396
|
+
type: "MissingIntegration" | "NodeNotFound" | "RenderError";
|
|
98397
|
+
} | undefined;
|
|
98398
|
+
};
|
|
98399
|
+
origin: {
|
|
98400
|
+
sourceId: string;
|
|
98401
|
+
fileId?: string | undefined;
|
|
98402
|
+
parentName?: string | undefined;
|
|
98403
|
+
};
|
|
98404
|
+
}[];
|
|
98405
|
+
}>;
|
|
98184
98406
|
updateDocGroup(dsId: string, vId: string, input: DTOUpdateDocumentationGroupInput): Promise<{
|
|
98185
98407
|
type: "DocumentationGroupCreate";
|
|
98186
98408
|
output: {
|
package/dist/index.d.ts
CHANGED
|
@@ -97559,6 +97559,82 @@ declare class DocumentationEndpoint {
|
|
|
97559
97559
|
id: string;
|
|
97560
97560
|
};
|
|
97561
97561
|
}>;
|
|
97562
|
+
getBlockDefinitions(dsId: string, vId: string): Promise<{
|
|
97563
|
+
definitions: {
|
|
97564
|
+
item: {
|
|
97565
|
+
properties: {
|
|
97566
|
+
type: "Boolean" | "Number" | "Image" | "Text" | "URL" | "Token" | "Component" | "FigmaComponent" | "Color" | "Code" | "Divider" | "Table" | "Markdown" | "RichText" | "MultiRichText" | "RichTextEditor" | "SingleSelect" | "MultiSelect" | "TokenType" | "TokenProperty" | "ComponentProperty" | "Asset" | "AssetProperty" | "FigmaNode" | "EmbedURL" | "CodeSandbox" | "Storybook";
|
|
97567
|
+
id: string;
|
|
97568
|
+
name: string;
|
|
97569
|
+
options?: Record<string, any> | undefined;
|
|
97570
|
+
description?: string | undefined;
|
|
97571
|
+
variantOptions?: Record<string, Record<string, any>> | undefined;
|
|
97572
|
+
}[];
|
|
97573
|
+
variants: {
|
|
97574
|
+
id: string;
|
|
97575
|
+
name: string;
|
|
97576
|
+
layout: {
|
|
97577
|
+
type: "Column" | "Row";
|
|
97578
|
+
gap?: "Small" | "Medium" | "Large" | "None" | undefined;
|
|
97579
|
+
columnAlign?: "Center" | "Start" | "End" | undefined;
|
|
97580
|
+
columnResizing?: "Fill" | "Hug" | undefined;
|
|
97581
|
+
} & {
|
|
97582
|
+
children: (PageBlockDefinitionLayout | string)[];
|
|
97583
|
+
};
|
|
97584
|
+
image?: string | undefined;
|
|
97585
|
+
description?: string | undefined;
|
|
97586
|
+
documentationLink?: string | undefined;
|
|
97587
|
+
maxColumns?: number | undefined;
|
|
97588
|
+
defaultColumns?: number | undefined;
|
|
97589
|
+
appearance?: {
|
|
97590
|
+
isBordered?: boolean | undefined;
|
|
97591
|
+
hasBackground?: boolean | undefined;
|
|
97592
|
+
isEditorPresentationDifferent?: boolean | undefined;
|
|
97593
|
+
showBlockHeaderInEditor?: boolean | undefined;
|
|
97594
|
+
} | undefined;
|
|
97595
|
+
}[];
|
|
97596
|
+
defaultVariantKey: string;
|
|
97597
|
+
appearance?: {
|
|
97598
|
+
isBordered?: boolean | undefined;
|
|
97599
|
+
hasBackground?: boolean | undefined;
|
|
97600
|
+
isEditorPresentationDifferent?: boolean | undefined;
|
|
97601
|
+
showBlockHeaderInEditor?: boolean | undefined;
|
|
97602
|
+
} | undefined;
|
|
97603
|
+
};
|
|
97604
|
+
category: "Text" | "Code" | "Embed" | "Guidelines" | "Layout" | "Media" | "Figma" | "Tokens" | "Components" | "Assets" | "Data" | "Other";
|
|
97605
|
+
id: string;
|
|
97606
|
+
name: string;
|
|
97607
|
+
description: string;
|
|
97608
|
+
behavior: {
|
|
97609
|
+
dataType: "Token" | "Component" | "FigmaComponent" | "Asset" | "FigmaNode" | "Item";
|
|
97610
|
+
items?: {
|
|
97611
|
+
numberOfItems: number;
|
|
97612
|
+
allowLinks: boolean;
|
|
97613
|
+
newItemLabel?: string | undefined;
|
|
97614
|
+
} | undefined;
|
|
97615
|
+
entities?: {
|
|
97616
|
+
selectionType: "Group" | "Entity" | "EntityAndGroup";
|
|
97617
|
+
maxSelected: number;
|
|
97618
|
+
} | undefined;
|
|
97619
|
+
};
|
|
97620
|
+
editorOptions: {
|
|
97621
|
+
newItemLabel?: string | undefined;
|
|
97622
|
+
onboarding?: {
|
|
97623
|
+
helpText: string;
|
|
97624
|
+
documentationLink?: string | undefined;
|
|
97625
|
+
} | undefined;
|
|
97626
|
+
};
|
|
97627
|
+
icon?: string | undefined;
|
|
97628
|
+
documentationLink?: string | undefined;
|
|
97629
|
+
appearance?: {
|
|
97630
|
+
isBordered?: boolean | undefined;
|
|
97631
|
+
hasBackground?: boolean | undefined;
|
|
97632
|
+
isEditorPresentationDifferent?: boolean | undefined;
|
|
97633
|
+
showBlockHeaderInEditor?: boolean | undefined;
|
|
97634
|
+
} | undefined;
|
|
97635
|
+
searchKeywords?: string[] | undefined;
|
|
97636
|
+
}[];
|
|
97637
|
+
}>;
|
|
97562
97638
|
}
|
|
97563
97639
|
|
|
97564
97640
|
declare class DesignSystemComponentEndpoint {
|
|
@@ -98181,6 +98257,152 @@ declare class ElementsActionEndpoint {
|
|
|
98181
98257
|
};
|
|
98182
98258
|
}[];
|
|
98183
98259
|
}>;
|
|
98260
|
+
updateDocPageDocument(dsId: string, vId: string, input: DTOUpdateDocumentationPageDocumentInputV2): Promise<{
|
|
98261
|
+
type: "DocumentationGroupCreate";
|
|
98262
|
+
output: {
|
|
98263
|
+
success: true;
|
|
98264
|
+
};
|
|
98265
|
+
} | {
|
|
98266
|
+
type: "DocumentationTabCreate";
|
|
98267
|
+
output: {
|
|
98268
|
+
success: true;
|
|
98269
|
+
};
|
|
98270
|
+
} | {
|
|
98271
|
+
type: "DocumentationGroupUpdate";
|
|
98272
|
+
output: {
|
|
98273
|
+
success: true;
|
|
98274
|
+
};
|
|
98275
|
+
} | {
|
|
98276
|
+
type: "DocumentationGroupMove";
|
|
98277
|
+
output: {
|
|
98278
|
+
success: true;
|
|
98279
|
+
};
|
|
98280
|
+
} | {
|
|
98281
|
+
type: "DocumentationGroupDuplicate";
|
|
98282
|
+
output: {
|
|
98283
|
+
success: true;
|
|
98284
|
+
};
|
|
98285
|
+
} | {
|
|
98286
|
+
type: "DocumentationGroupDelete";
|
|
98287
|
+
output: {
|
|
98288
|
+
success: true;
|
|
98289
|
+
};
|
|
98290
|
+
} | {
|
|
98291
|
+
type: "DocumentationTabGroupDelete";
|
|
98292
|
+
output: {
|
|
98293
|
+
success: true;
|
|
98294
|
+
};
|
|
98295
|
+
} | {
|
|
98296
|
+
type: "DocumentationPageCreate";
|
|
98297
|
+
output: {
|
|
98298
|
+
success: true;
|
|
98299
|
+
};
|
|
98300
|
+
} | {
|
|
98301
|
+
type: "DocumentationPageUpdate";
|
|
98302
|
+
output: {
|
|
98303
|
+
success: true;
|
|
98304
|
+
};
|
|
98305
|
+
} | {
|
|
98306
|
+
type: "DocumentationPageUpdateDocument";
|
|
98307
|
+
output: {
|
|
98308
|
+
success: true;
|
|
98309
|
+
};
|
|
98310
|
+
} | {
|
|
98311
|
+
type: "DocumentationPageMove";
|
|
98312
|
+
output: {
|
|
98313
|
+
success: true;
|
|
98314
|
+
};
|
|
98315
|
+
} | {
|
|
98316
|
+
type: "DocumentationPageDuplicate";
|
|
98317
|
+
output: {
|
|
98318
|
+
success: true;
|
|
98319
|
+
};
|
|
98320
|
+
} | {
|
|
98321
|
+
type: "DocumentationPageDelete";
|
|
98322
|
+
output: {
|
|
98323
|
+
success: true;
|
|
98324
|
+
};
|
|
98325
|
+
} | {
|
|
98326
|
+
type: "DocumentationPageRestore";
|
|
98327
|
+
output: {
|
|
98328
|
+
success: true;
|
|
98329
|
+
};
|
|
98330
|
+
} | {
|
|
98331
|
+
type: "DocumentationGroupRestore";
|
|
98332
|
+
output: {
|
|
98333
|
+
success: true;
|
|
98334
|
+
};
|
|
98335
|
+
} | {
|
|
98336
|
+
type: "DocumentationPageApprovalStateChange";
|
|
98337
|
+
output: {
|
|
98338
|
+
success: true;
|
|
98339
|
+
};
|
|
98340
|
+
} | {
|
|
98341
|
+
type: "FigmaNodeRender";
|
|
98342
|
+
figmaNodes: {
|
|
98343
|
+
id: string;
|
|
98344
|
+
persistentId: string;
|
|
98345
|
+
meta: {
|
|
98346
|
+
name: string;
|
|
98347
|
+
description?: string | undefined;
|
|
98348
|
+
};
|
|
98349
|
+
designSystemVersionId: string;
|
|
98350
|
+
createdAt: Date;
|
|
98351
|
+
updatedAt: Date;
|
|
98352
|
+
data: {
|
|
98353
|
+
figmaNodeId: string;
|
|
98354
|
+
isValid: boolean;
|
|
98355
|
+
assetId: string;
|
|
98356
|
+
assetUrl: string;
|
|
98357
|
+
assetFormat: "Png" | "Svg";
|
|
98358
|
+
assetScale: number;
|
|
98359
|
+
assetWidth?: number | undefined;
|
|
98360
|
+
assetHeight?: number | undefined;
|
|
98361
|
+
};
|
|
98362
|
+
origin: {
|
|
98363
|
+
sourceId: string;
|
|
98364
|
+
fileId?: string | undefined;
|
|
98365
|
+
parentName?: string | undefined;
|
|
98366
|
+
};
|
|
98367
|
+
}[];
|
|
98368
|
+
} | {
|
|
98369
|
+
type: "FigmaNodeRenderAsync";
|
|
98370
|
+
figmaNodes: {
|
|
98371
|
+
id: string;
|
|
98372
|
+
persistentId: string;
|
|
98373
|
+
meta: {
|
|
98374
|
+
name: string;
|
|
98375
|
+
description?: string | undefined;
|
|
98376
|
+
};
|
|
98377
|
+
designSystemVersionId: string;
|
|
98378
|
+
createdAt: Date;
|
|
98379
|
+
updatedAt: Date;
|
|
98380
|
+
data: {
|
|
98381
|
+
format: "Png" | "Svg";
|
|
98382
|
+
sceneNodeId: string;
|
|
98383
|
+
renderState: "InProgress" | "Failed" | "Success";
|
|
98384
|
+
hasSource: boolean;
|
|
98385
|
+
scale?: number | undefined;
|
|
98386
|
+
renderedImage?: {
|
|
98387
|
+
resourceId: string;
|
|
98388
|
+
format: "Png" | "Svg";
|
|
98389
|
+
url?: string | undefined;
|
|
98390
|
+
width?: number | undefined;
|
|
98391
|
+
height?: number | undefined;
|
|
98392
|
+
originKey?: string | undefined;
|
|
98393
|
+
scale?: number | undefined;
|
|
98394
|
+
} | undefined;
|
|
98395
|
+
renderError?: {
|
|
98396
|
+
type: "MissingIntegration" | "NodeNotFound" | "RenderError";
|
|
98397
|
+
} | undefined;
|
|
98398
|
+
};
|
|
98399
|
+
origin: {
|
|
98400
|
+
sourceId: string;
|
|
98401
|
+
fileId?: string | undefined;
|
|
98402
|
+
parentName?: string | undefined;
|
|
98403
|
+
};
|
|
98404
|
+
}[];
|
|
98405
|
+
}>;
|
|
98184
98406
|
updateDocGroup(dsId: string, vId: string, input: DTOUpdateDocumentationGroupInput): Promise<{
|
|
98185
98407
|
type: "DocumentationGroupCreate";
|
|
98186
98408
|
output: {
|
package/dist/index.js
CHANGED
|
@@ -7829,6 +7829,12 @@ var DocumentationEndpoint = class {
|
|
|
7829
7829
|
DTODocumentationPageRoomResponse
|
|
7830
7830
|
);
|
|
7831
7831
|
}
|
|
7832
|
+
async getBlockDefinitions(dsId, vId) {
|
|
7833
|
+
return await this.requestExecutor.json(
|
|
7834
|
+
`/design-systems/${dsId}/versions/${vId}/documentation/block-definitions`,
|
|
7835
|
+
DTOGetBlockDefinitionsOutput
|
|
7836
|
+
);
|
|
7837
|
+
}
|
|
7832
7838
|
};
|
|
7833
7839
|
|
|
7834
7840
|
// src/api/endpoints/design-system/versions/ds-components.ts
|
|
@@ -7871,6 +7877,9 @@ var ElementsActionEndpoint = class {
|
|
|
7871
7877
|
async updateDocPage(dsId, vId, input) {
|
|
7872
7878
|
return this.action(dsId, vId, { type: "DocumentationPageUpdate", input });
|
|
7873
7879
|
}
|
|
7880
|
+
async updateDocPageDocument(dsId, vId, input) {
|
|
7881
|
+
return this.action(dsId, vId, { type: "DocumentationPageUpdateDocument", input });
|
|
7882
|
+
}
|
|
7874
7883
|
async updateDocGroup(dsId, vId, input) {
|
|
7875
7884
|
return this.action(dsId, vId, { type: "DocumentationGroupUpdate", input });
|
|
7876
7885
|
}
|
|
@@ -13950,6 +13959,8 @@ var DocsStructureRepository = class {
|
|
|
13950
13959
|
try {
|
|
13951
13960
|
return await this.transactionExecutor(action.action);
|
|
13952
13961
|
} catch (e) {
|
|
13962
|
+
this.localActions = this.localActions.filter((a) => a.tId !== action.action.tId);
|
|
13963
|
+
this.refreshHierarchy();
|
|
13953
13964
|
this.errorObservers.forEach((o) => o(e, action.metadata));
|
|
13954
13965
|
}
|
|
13955
13966
|
}
|