@supernova-studio/client 1.4.11 → 1.4.13
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 +366 -1
- package/dist/index.d.ts +366 -1
- package/dist/index.js +66 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +669 -604
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4679,6 +4679,7 @@ var Session = z166.object({
|
|
|
4679
4679
|
id: z166.string(),
|
|
4680
4680
|
expiresAt: z166.coerce.date(),
|
|
4681
4681
|
userId: z166.string().nullable(),
|
|
4682
|
+
anonymousId: z166.string().nullable(),
|
|
4682
4683
|
data: SessionData
|
|
4683
4684
|
});
|
|
4684
4685
|
var AuthTokens = z166.object({
|
|
@@ -6500,27 +6501,82 @@ var DTODesignTokenGroupCreatePayload = z228.object({
|
|
|
6500
6501
|
childrenIds: z228.string().array()
|
|
6501
6502
|
});
|
|
6502
6503
|
|
|
6503
|
-
// src/api/dto/documentation/
|
|
6504
|
+
// src/api/dto/documentation/analytics.ts
|
|
6504
6505
|
import { z as z229 } from "zod";
|
|
6506
|
+
var DTOAnalyticsViewsDataPoint = z229.object({
|
|
6507
|
+
date: z229.string().regex(/^(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s\d{1,2}$/, "Date must be in format 'MMM D'"),
|
|
6508
|
+
views: z229.number().int().positive(),
|
|
6509
|
+
sessions: z229.number().int().positive()
|
|
6510
|
+
});
|
|
6511
|
+
var DTOAnalyticsViewsData = z229.array(DTOAnalyticsViewsDataPoint);
|
|
6512
|
+
var DTOHour = z229.enum([
|
|
6513
|
+
"12 am",
|
|
6514
|
+
"1 am",
|
|
6515
|
+
"2 am",
|
|
6516
|
+
"3 am",
|
|
6517
|
+
"4 am",
|
|
6518
|
+
"5 am",
|
|
6519
|
+
"6 am",
|
|
6520
|
+
"7 am",
|
|
6521
|
+
"8 am",
|
|
6522
|
+
"9 am",
|
|
6523
|
+
"10 am",
|
|
6524
|
+
"11 am",
|
|
6525
|
+
"12 pm",
|
|
6526
|
+
"1 pm",
|
|
6527
|
+
"2 pm",
|
|
6528
|
+
"3 pm",
|
|
6529
|
+
"4 pm",
|
|
6530
|
+
"5 pm",
|
|
6531
|
+
"6 pm",
|
|
6532
|
+
"7 pm",
|
|
6533
|
+
"8 pm",
|
|
6534
|
+
"9 pm",
|
|
6535
|
+
"10 pm",
|
|
6536
|
+
"11 pm"
|
|
6537
|
+
]);
|
|
6538
|
+
var DTODay = z229.enum(["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]);
|
|
6539
|
+
var DTOAnalyticsHeatmapDataEntry = z229.object({
|
|
6540
|
+
x: DTODay,
|
|
6541
|
+
y: z229.number()
|
|
6542
|
+
// number of visits (or other metric)
|
|
6543
|
+
});
|
|
6544
|
+
var DTOAnalyticsHeatmapData = z229.object({
|
|
6545
|
+
id: DTOHour,
|
|
6546
|
+
data: z229.array(DTOAnalyticsHeatmapDataEntry)
|
|
6547
|
+
});
|
|
6548
|
+
var DTOAnalyticsData = z229.object({
|
|
6549
|
+
views: DTOAnalyticsViewsData,
|
|
6550
|
+
heatmap: z229.array(DTOAnalyticsHeatmapData)
|
|
6551
|
+
});
|
|
6552
|
+
var DTOAnalyticsPerPageData = z229.record(z229.string(), DTOAnalyticsData);
|
|
6553
|
+
var DTOAnalyticsDataResponse = z229.object({
|
|
6554
|
+
versionViews: DTOAnalyticsViewsData,
|
|
6555
|
+
heatmap: z229.array(DTOAnalyticsHeatmapData),
|
|
6556
|
+
pages: DTOAnalyticsPerPageData
|
|
6557
|
+
});
|
|
6558
|
+
|
|
6559
|
+
// src/api/dto/documentation/anchor.ts
|
|
6560
|
+
import { z as z230 } from "zod";
|
|
6505
6561
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
6506
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
6507
|
-
anchors:
|
|
6562
|
+
var DTOGetDocumentationPageAnchorsResponse = z230.object({
|
|
6563
|
+
anchors: z230.array(DTODocumentationPageAnchor)
|
|
6508
6564
|
});
|
|
6509
6565
|
|
|
6510
6566
|
// src/api/dto/documentation/approvals.ts
|
|
6511
|
-
import { z as
|
|
6512
|
-
var DTODocumentationPageApprovalState =
|
|
6567
|
+
import { z as z231 } from "zod";
|
|
6568
|
+
var DTODocumentationPageApprovalState = z231.object({
|
|
6513
6569
|
approvalState: DocumentationPageApprovalState,
|
|
6514
|
-
pagePersistentId:
|
|
6515
|
-
updatedByUserId:
|
|
6516
|
-
designSystemVersionId:
|
|
6517
|
-
updatedAt:
|
|
6518
|
-
createdAt:
|
|
6519
|
-
});
|
|
6520
|
-
var DTODocumentationGroupApprovalState =
|
|
6521
|
-
persistentId:
|
|
6522
|
-
groupPersistentId:
|
|
6523
|
-
designSystemVersionId:
|
|
6570
|
+
pagePersistentId: z231.string(),
|
|
6571
|
+
updatedByUserId: z231.string(),
|
|
6572
|
+
designSystemVersionId: z231.string(),
|
|
6573
|
+
updatedAt: z231.coerce.date(),
|
|
6574
|
+
createdAt: z231.coerce.date()
|
|
6575
|
+
});
|
|
6576
|
+
var DTODocumentationGroupApprovalState = z231.object({
|
|
6577
|
+
persistentId: z231.string(),
|
|
6578
|
+
groupPersistentId: z231.string(),
|
|
6579
|
+
designSystemVersionId: z231.string(),
|
|
6524
6580
|
approvalState: DocumentationPageApprovalState
|
|
6525
6581
|
});
|
|
6526
6582
|
|
|
@@ -6528,68 +6584,68 @@ var DTODocumentationGroupApprovalState = z230.object({
|
|
|
6528
6584
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
6529
6585
|
|
|
6530
6586
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6531
|
-
import { z as
|
|
6587
|
+
import { z as z236 } from "zod";
|
|
6532
6588
|
|
|
6533
6589
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6534
|
-
import { z as
|
|
6590
|
+
import { z as z235 } from "zod";
|
|
6535
6591
|
|
|
6536
6592
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6537
|
-
import { z as
|
|
6593
|
+
import { z as z233 } from "zod";
|
|
6538
6594
|
|
|
6539
6595
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
6540
|
-
import { z as
|
|
6596
|
+
import { z as z232 } from "zod";
|
|
6541
6597
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
6542
|
-
var DTODocumentationItemConfigurationV2 =
|
|
6543
|
-
showSidebar:
|
|
6544
|
-
isPrivate:
|
|
6545
|
-
isHidden:
|
|
6598
|
+
var DTODocumentationItemConfigurationV2 = z232.object({
|
|
6599
|
+
showSidebar: z232.boolean(),
|
|
6600
|
+
isPrivate: z232.boolean(),
|
|
6601
|
+
isHidden: z232.boolean(),
|
|
6546
6602
|
header: DTODocumentationItemHeaderV2
|
|
6547
6603
|
});
|
|
6548
6604
|
|
|
6549
6605
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6550
|
-
var DTODocumentationDraftChangeType =
|
|
6551
|
-
var DTODocumentationDraftStateCreated =
|
|
6552
|
-
changeType:
|
|
6553
|
-
});
|
|
6554
|
-
var DTODocumentationDraftStateUpdated =
|
|
6555
|
-
changeType:
|
|
6556
|
-
changes:
|
|
6557
|
-
previousTitle:
|
|
6606
|
+
var DTODocumentationDraftChangeType = z233.enum(["Created", "Updated", "Deleted"]);
|
|
6607
|
+
var DTODocumentationDraftStateCreated = z233.object({
|
|
6608
|
+
changeType: z233.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
6609
|
+
});
|
|
6610
|
+
var DTODocumentationDraftStateUpdated = z233.object({
|
|
6611
|
+
changeType: z233.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
6612
|
+
changes: z233.object({
|
|
6613
|
+
previousTitle: z233.string().optional(),
|
|
6558
6614
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
6559
|
-
previousContentHash:
|
|
6615
|
+
previousContentHash: z233.string().optional()
|
|
6560
6616
|
})
|
|
6561
6617
|
});
|
|
6562
|
-
var DTODocumentationDraftStateDeleted =
|
|
6563
|
-
changeType:
|
|
6564
|
-
deletedAt:
|
|
6565
|
-
deletedByUserId:
|
|
6618
|
+
var DTODocumentationDraftStateDeleted = z233.object({
|
|
6619
|
+
changeType: z233.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
6620
|
+
deletedAt: z233.coerce.date(),
|
|
6621
|
+
deletedByUserId: z233.string()
|
|
6566
6622
|
});
|
|
6567
|
-
var DTODocumentationDraftState =
|
|
6623
|
+
var DTODocumentationDraftState = z233.discriminatedUnion("changeType", [
|
|
6568
6624
|
DTODocumentationDraftStateCreated,
|
|
6569
6625
|
DTODocumentationDraftStateUpdated,
|
|
6570
6626
|
DTODocumentationDraftStateDeleted
|
|
6571
6627
|
]);
|
|
6572
6628
|
|
|
6573
6629
|
// src/api/dto/elements/documentation/metadata.ts
|
|
6574
|
-
import { z as
|
|
6575
|
-
var DTODocumentationPublishMetadata =
|
|
6576
|
-
lastPublishedByUserId:
|
|
6577
|
-
lastPublishedAt:
|
|
6630
|
+
import { z as z234 } from "zod";
|
|
6631
|
+
var DTODocumentationPublishMetadata = z234.object({
|
|
6632
|
+
lastPublishedByUserId: z234.string(),
|
|
6633
|
+
lastPublishedAt: z234.coerce.date()
|
|
6578
6634
|
});
|
|
6579
6635
|
|
|
6580
6636
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6581
|
-
var DTODocumentationPageV2 =
|
|
6582
|
-
id:
|
|
6583
|
-
persistentId:
|
|
6584
|
-
designSystemVersionId:
|
|
6585
|
-
title:
|
|
6637
|
+
var DTODocumentationPageV2 = z235.object({
|
|
6638
|
+
id: z235.string(),
|
|
6639
|
+
persistentId: z235.string(),
|
|
6640
|
+
designSystemVersionId: z235.string(),
|
|
6641
|
+
title: z235.string(),
|
|
6586
6642
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6587
|
-
shortPersistentId:
|
|
6588
|
-
slug:
|
|
6589
|
-
userSlug:
|
|
6590
|
-
createdAt:
|
|
6591
|
-
updatedAt:
|
|
6592
|
-
path:
|
|
6643
|
+
shortPersistentId: z235.string(),
|
|
6644
|
+
slug: z235.string().optional(),
|
|
6645
|
+
userSlug: z235.string().optional(),
|
|
6646
|
+
createdAt: z235.coerce.date(),
|
|
6647
|
+
updatedAt: z235.coerce.date(),
|
|
6648
|
+
path: z235.string(),
|
|
6593
6649
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6594
6650
|
draftState: DTODocumentationDraftState.optional(),
|
|
6595
6651
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -6597,266 +6653,266 @@ var DTODocumentationPageV2 = z234.object({
|
|
|
6597
6653
|
/** Defines the approval state of the documentation page */
|
|
6598
6654
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
6599
6655
|
/** Id of the page document room */
|
|
6600
|
-
liveblocksRoomId:
|
|
6656
|
+
liveblocksRoomId: z235.string().optional(),
|
|
6601
6657
|
// Backward compatibility
|
|
6602
|
-
type:
|
|
6658
|
+
type: z235.literal("Page")
|
|
6603
6659
|
});
|
|
6604
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
6660
|
+
var DTOCreateDocumentationPageInputV2 = z235.object({
|
|
6605
6661
|
// Identifier
|
|
6606
|
-
persistentId:
|
|
6662
|
+
persistentId: z235.string(),
|
|
6607
6663
|
// Page properties
|
|
6608
|
-
title:
|
|
6664
|
+
title: z235.string(),
|
|
6609
6665
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6610
6666
|
// Page placement properties
|
|
6611
|
-
parentPersistentId:
|
|
6612
|
-
afterPersistentId:
|
|
6667
|
+
parentPersistentId: z235.string(),
|
|
6668
|
+
afterPersistentId: z235.string().nullish()
|
|
6613
6669
|
});
|
|
6614
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
6670
|
+
var DTOUpdateDocumentationPageInputV2 = z235.object({
|
|
6615
6671
|
// Identifier of the page to update
|
|
6616
|
-
id:
|
|
6672
|
+
id: z235.string(),
|
|
6617
6673
|
// Page properties
|
|
6618
|
-
title:
|
|
6674
|
+
title: z235.string().optional(),
|
|
6619
6675
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6620
6676
|
});
|
|
6621
|
-
var DTOUpdateDocumentationPageDocumentInputV2 =
|
|
6677
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = z235.object({
|
|
6622
6678
|
// Identifier of the page to update
|
|
6623
|
-
id:
|
|
6679
|
+
id: z235.string(),
|
|
6624
6680
|
// Page properties
|
|
6625
|
-
documentItems:
|
|
6681
|
+
documentItems: z235.array(DocumentationPageContentItem)
|
|
6626
6682
|
});
|
|
6627
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
6683
|
+
var DTOMoveDocumentationPageInputV2 = z235.object({
|
|
6628
6684
|
// Identifier of the group to update
|
|
6629
|
-
id:
|
|
6685
|
+
id: z235.string(),
|
|
6630
6686
|
// Page placement properties
|
|
6631
|
-
parentPersistentId:
|
|
6632
|
-
afterPersistentId:
|
|
6687
|
+
parentPersistentId: z235.string(),
|
|
6688
|
+
afterPersistentId: z235.string().nullish()
|
|
6633
6689
|
});
|
|
6634
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
6690
|
+
var DTODuplicateDocumentationPageInputV2 = z235.object({
|
|
6635
6691
|
// Identifier of the page to duplicate from
|
|
6636
|
-
id:
|
|
6692
|
+
id: z235.string(),
|
|
6637
6693
|
// New page persistent id
|
|
6638
|
-
persistentId:
|
|
6694
|
+
persistentId: z235.string(),
|
|
6639
6695
|
// Page placement properties
|
|
6640
|
-
parentPersistentId:
|
|
6641
|
-
afterPersistentId:
|
|
6696
|
+
parentPersistentId: z235.string(),
|
|
6697
|
+
afterPersistentId: z235.string().nullish()
|
|
6642
6698
|
});
|
|
6643
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
6699
|
+
var DTODeleteDocumentationPageInputV2 = z235.object({
|
|
6644
6700
|
// Identifier
|
|
6645
|
-
id:
|
|
6701
|
+
id: z235.string()
|
|
6646
6702
|
});
|
|
6647
|
-
var DTORestoreDocumentationPageInput =
|
|
6648
|
-
persistentId:
|
|
6649
|
-
snapshotId:
|
|
6703
|
+
var DTORestoreDocumentationPageInput = z235.object({
|
|
6704
|
+
persistentId: z235.string(),
|
|
6705
|
+
snapshotId: z235.string().optional()
|
|
6650
6706
|
});
|
|
6651
|
-
var DTORestoreDocumentationGroupInput =
|
|
6652
|
-
persistentId:
|
|
6653
|
-
snapshotId:
|
|
6707
|
+
var DTORestoreDocumentationGroupInput = z235.object({
|
|
6708
|
+
persistentId: z235.string(),
|
|
6709
|
+
snapshotId: z235.string().optional()
|
|
6654
6710
|
});
|
|
6655
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
6656
|
-
persistentId:
|
|
6711
|
+
var DTODocumentationPageApprovalStateChangeInput = z235.object({
|
|
6712
|
+
persistentId: z235.string(),
|
|
6657
6713
|
approvalState: DocumentationPageApprovalState.optional()
|
|
6658
6714
|
});
|
|
6659
6715
|
|
|
6660
6716
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6661
|
-
var DTODocumentationPageSnapshot =
|
|
6662
|
-
id:
|
|
6663
|
-
designSystemVersionId:
|
|
6664
|
-
createdAt:
|
|
6665
|
-
updatedAt:
|
|
6717
|
+
var DTODocumentationPageSnapshot = z236.object({
|
|
6718
|
+
id: z236.string(),
|
|
6719
|
+
designSystemVersionId: z236.string(),
|
|
6720
|
+
createdAt: z236.string(),
|
|
6721
|
+
updatedAt: z236.string(),
|
|
6666
6722
|
documentationPage: DTODocumentationPageV2,
|
|
6667
|
-
pageContentHash:
|
|
6723
|
+
pageContentHash: z236.string(),
|
|
6668
6724
|
reason: DesignElementSnapshotReason
|
|
6669
6725
|
});
|
|
6670
6726
|
|
|
6671
6727
|
// src/api/dto/documentation/link-preview.ts
|
|
6672
|
-
import { z as
|
|
6673
|
-
var DTODocumentationLinkPreviewResponse =
|
|
6728
|
+
import { z as z237 } from "zod";
|
|
6729
|
+
var DTODocumentationLinkPreviewResponse = z237.object({
|
|
6674
6730
|
linkPreview: DocumentationLinkPreview
|
|
6675
6731
|
});
|
|
6676
|
-
var DTODocumentationLinkPreviewRequest =
|
|
6677
|
-
url:
|
|
6678
|
-
documentationItemPersistentId:
|
|
6732
|
+
var DTODocumentationLinkPreviewRequest = z237.object({
|
|
6733
|
+
url: z237.string().optional(),
|
|
6734
|
+
documentationItemPersistentId: z237.string().optional()
|
|
6679
6735
|
});
|
|
6680
6736
|
|
|
6681
6737
|
// src/api/dto/documentation/publish.ts
|
|
6682
|
-
import { z as
|
|
6738
|
+
import { z as z241 } from "zod";
|
|
6683
6739
|
|
|
6684
6740
|
// src/api/dto/export/exporter.ts
|
|
6685
|
-
import { z as
|
|
6686
|
-
var DTOExporterType =
|
|
6687
|
-
var DTOExporterSource =
|
|
6688
|
-
var DTOExporterMembershipRole =
|
|
6689
|
-
var DTOExporterListQuery =
|
|
6690
|
-
limit:
|
|
6691
|
-
offset:
|
|
6741
|
+
import { z as z238 } from "zod";
|
|
6742
|
+
var DTOExporterType = z238.enum(["documentation", "code"]);
|
|
6743
|
+
var DTOExporterSource = z238.enum(["git", "upload"]);
|
|
6744
|
+
var DTOExporterMembershipRole = z238.enum(["Owner", "OwnerArchived", "User"]);
|
|
6745
|
+
var DTOExporterListQuery = z238.object({
|
|
6746
|
+
limit: z238.coerce.number().optional(),
|
|
6747
|
+
offset: z238.coerce.number().optional(),
|
|
6692
6748
|
type: DTOExporterType.optional(),
|
|
6693
|
-
search:
|
|
6749
|
+
search: z238.string().optional()
|
|
6694
6750
|
});
|
|
6695
|
-
var DTOExporter =
|
|
6696
|
-
id:
|
|
6697
|
-
name:
|
|
6698
|
-
isPrivate:
|
|
6751
|
+
var DTOExporter = z238.object({
|
|
6752
|
+
id: z238.string(),
|
|
6753
|
+
name: z238.string(),
|
|
6754
|
+
isPrivate: z238.boolean(),
|
|
6699
6755
|
exporterType: DTOExporterType,
|
|
6700
|
-
isDefaultDocumentationExporter:
|
|
6701
|
-
iconURL:
|
|
6756
|
+
isDefaultDocumentationExporter: z238.boolean(),
|
|
6757
|
+
iconURL: z238.string().optional(),
|
|
6702
6758
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
6703
6759
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
6704
6760
|
customBlocks: PulsarCustomBlock.array(),
|
|
6705
|
-
blockVariants:
|
|
6706
|
-
homepage:
|
|
6707
|
-
organization:
|
|
6708
|
-
packageId:
|
|
6709
|
-
tags:
|
|
6710
|
-
author:
|
|
6711
|
-
version:
|
|
6712
|
-
description:
|
|
6713
|
-
usesLocale:
|
|
6714
|
-
usesBrands:
|
|
6715
|
-
usesThemes:
|
|
6716
|
-
readme:
|
|
6717
|
-
routingVersion:
|
|
6761
|
+
blockVariants: z238.record(z238.string(), PulsarContributionVariant.array()),
|
|
6762
|
+
homepage: z238.string().optional(),
|
|
6763
|
+
organization: z238.string().optional(),
|
|
6764
|
+
packageId: z238.string().optional(),
|
|
6765
|
+
tags: z238.array(z238.string()),
|
|
6766
|
+
author: z238.string().optional(),
|
|
6767
|
+
version: z238.string(),
|
|
6768
|
+
description: z238.string(),
|
|
6769
|
+
usesLocale: z238.boolean(),
|
|
6770
|
+
usesBrands: z238.boolean(),
|
|
6771
|
+
usesThemes: z238.boolean(),
|
|
6772
|
+
readme: z238.string().optional(),
|
|
6773
|
+
routingVersion: z238.string().optional(),
|
|
6718
6774
|
source: DTOExporterSource,
|
|
6719
|
-
gitProvider:
|
|
6720
|
-
gitUrl: nullishToOptional(
|
|
6721
|
-
gitBranch: nullishToOptional(
|
|
6722
|
-
gitDirectory: nullishToOptional(
|
|
6723
|
-
isDeprecated:
|
|
6724
|
-
deprecationNote:
|
|
6725
|
-
replacementExporterId:
|
|
6726
|
-
});
|
|
6727
|
-
var DTOExporterMembership =
|
|
6728
|
-
workspaceId:
|
|
6729
|
-
exporterId:
|
|
6775
|
+
gitProvider: z238.string().optional(),
|
|
6776
|
+
gitUrl: nullishToOptional(z238.string()),
|
|
6777
|
+
gitBranch: nullishToOptional(z238.string()),
|
|
6778
|
+
gitDirectory: nullishToOptional(z238.string()),
|
|
6779
|
+
isDeprecated: z238.boolean(),
|
|
6780
|
+
deprecationNote: z238.string().optional(),
|
|
6781
|
+
replacementExporterId: z238.string().optional()
|
|
6782
|
+
});
|
|
6783
|
+
var DTOExporterMembership = z238.object({
|
|
6784
|
+
workspaceId: z238.string(),
|
|
6785
|
+
exporterId: z238.string(),
|
|
6730
6786
|
role: DTOExporterMembershipRole
|
|
6731
6787
|
});
|
|
6732
|
-
var DTOExporterResponse =
|
|
6788
|
+
var DTOExporterResponse = z238.object({
|
|
6733
6789
|
exporter: DTOExporter,
|
|
6734
6790
|
membership: DTOExporterMembership
|
|
6735
6791
|
});
|
|
6736
|
-
var DTOExporterListResponse =
|
|
6792
|
+
var DTOExporterListResponse = z238.object({
|
|
6737
6793
|
exporters: DTOExporter.array(),
|
|
6738
6794
|
membership: DTOExporterMembership.array(),
|
|
6739
|
-
total:
|
|
6795
|
+
total: z238.number()
|
|
6740
6796
|
});
|
|
6741
|
-
var DTOExporterGitProviderEnum =
|
|
6742
|
-
var DTOExporterCreateInput =
|
|
6743
|
-
url:
|
|
6797
|
+
var DTOExporterGitProviderEnum = z238.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
6798
|
+
var DTOExporterCreateInput = z238.object({
|
|
6799
|
+
url: z238.string(),
|
|
6744
6800
|
provider: DTOExporterGitProviderEnum
|
|
6745
6801
|
});
|
|
6746
|
-
var DTOExporterUpdateInput =
|
|
6747
|
-
url:
|
|
6802
|
+
var DTOExporterUpdateInput = z238.object({
|
|
6803
|
+
url: z238.string().optional()
|
|
6748
6804
|
});
|
|
6749
|
-
var DTOExporterDeprecationInput =
|
|
6750
|
-
isDeprecated:
|
|
6751
|
-
deprecationNote:
|
|
6752
|
-
replacementExporterId:
|
|
6805
|
+
var DTOExporterDeprecationInput = z238.object({
|
|
6806
|
+
isDeprecated: z238.boolean(),
|
|
6807
|
+
deprecationNote: z238.string().optional(),
|
|
6808
|
+
replacementExporterId: z238.string().optional()
|
|
6753
6809
|
});
|
|
6754
6810
|
|
|
6755
6811
|
// src/api/dto/export/filter.ts
|
|
6756
6812
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
6757
6813
|
|
|
6758
6814
|
// src/api/dto/export/job.ts
|
|
6759
|
-
import { z as
|
|
6760
|
-
var DTOExportJobCreatedBy =
|
|
6761
|
-
userId:
|
|
6762
|
-
userName:
|
|
6815
|
+
import { z as z239 } from "zod";
|
|
6816
|
+
var DTOExportJobCreatedBy = z239.object({
|
|
6817
|
+
userId: z239.string(),
|
|
6818
|
+
userName: z239.string()
|
|
6763
6819
|
});
|
|
6764
|
-
var DTOExportJobDesignSystemPreview =
|
|
6765
|
-
id:
|
|
6820
|
+
var DTOExportJobDesignSystemPreview = z239.object({
|
|
6821
|
+
id: z239.string(),
|
|
6766
6822
|
meta: ObjectMeta
|
|
6767
6823
|
});
|
|
6768
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
6769
|
-
id:
|
|
6824
|
+
var DTOExportJobDesignSystemVersionPreview = z239.object({
|
|
6825
|
+
id: z239.string(),
|
|
6770
6826
|
meta: ObjectMeta,
|
|
6771
|
-
version:
|
|
6772
|
-
isReadonly:
|
|
6827
|
+
version: z239.string(),
|
|
6828
|
+
isReadonly: z239.boolean()
|
|
6773
6829
|
});
|
|
6774
|
-
var DTOExportJobDestinations =
|
|
6830
|
+
var DTOExportJobDestinations = z239.object({
|
|
6775
6831
|
s3: ExporterDestinationS3.optional(),
|
|
6776
6832
|
azure: ExporterDestinationAzure.optional(),
|
|
6777
6833
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
6778
6834
|
github: ExporterDestinationGithub.optional(),
|
|
6779
6835
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
6780
6836
|
documentation: ExporterDestinationDocs.optional(),
|
|
6781
|
-
webhookUrl:
|
|
6837
|
+
webhookUrl: z239.string().optional()
|
|
6782
6838
|
});
|
|
6783
6839
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
6784
6840
|
sndocs: true
|
|
6785
6841
|
}).extend({
|
|
6786
6842
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
6787
6843
|
});
|
|
6788
|
-
var DTOExportJob =
|
|
6789
|
-
id:
|
|
6790
|
-
createdAt:
|
|
6791
|
-
finishedAt:
|
|
6792
|
-
index:
|
|
6844
|
+
var DTOExportJob = z239.object({
|
|
6845
|
+
id: z239.string(),
|
|
6846
|
+
createdAt: z239.coerce.date(),
|
|
6847
|
+
finishedAt: z239.coerce.date().optional(),
|
|
6848
|
+
index: z239.number().optional(),
|
|
6793
6849
|
status: ExportJobStatus,
|
|
6794
|
-
estimatedExecutionTime:
|
|
6850
|
+
estimatedExecutionTime: z239.number().optional(),
|
|
6795
6851
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
6796
6852
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
6797
6853
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
6798
6854
|
destinations: DTOExportJobDestinations,
|
|
6799
|
-
exporterId:
|
|
6800
|
-
scheduleId:
|
|
6855
|
+
exporterId: z239.string(),
|
|
6856
|
+
scheduleId: z239.string().optional(),
|
|
6801
6857
|
result: DTOExportJobResult.optional(),
|
|
6802
|
-
brandPersistentId:
|
|
6803
|
-
themePersistentId:
|
|
6804
|
-
themePersistentIds:
|
|
6858
|
+
brandPersistentId: z239.string().optional(),
|
|
6859
|
+
themePersistentId: z239.string().optional(),
|
|
6860
|
+
themePersistentIds: z239.string().array().optional(),
|
|
6805
6861
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
6806
6862
|
});
|
|
6807
|
-
var DTOExportJobResponse =
|
|
6863
|
+
var DTOExportJobResponse = z239.object({
|
|
6808
6864
|
job: DTOExportJob
|
|
6809
6865
|
});
|
|
6810
|
-
var DTOExportJobResponseLegacy =
|
|
6811
|
-
job:
|
|
6812
|
-
id:
|
|
6866
|
+
var DTOExportJobResponseLegacy = z239.object({
|
|
6867
|
+
job: z239.object({
|
|
6868
|
+
id: z239.string(),
|
|
6813
6869
|
status: ExportJobStatus
|
|
6814
6870
|
})
|
|
6815
6871
|
});
|
|
6816
|
-
var DTOExportJobCreateInput =
|
|
6817
|
-
designSystemId:
|
|
6818
|
-
designSystemVersionId:
|
|
6819
|
-
exporterId:
|
|
6820
|
-
brandId:
|
|
6821
|
-
themeId:
|
|
6822
|
-
themePersistentIds:
|
|
6872
|
+
var DTOExportJobCreateInput = z239.object({
|
|
6873
|
+
designSystemId: z239.string(),
|
|
6874
|
+
designSystemVersionId: z239.string(),
|
|
6875
|
+
exporterId: z239.string(),
|
|
6876
|
+
brandId: z239.string().optional(),
|
|
6877
|
+
themeId: z239.string().optional(),
|
|
6878
|
+
themePersistentIds: z239.string().array().optional(),
|
|
6823
6879
|
destinations: DTOExportJobDestinations,
|
|
6824
6880
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
6825
6881
|
});
|
|
6826
6882
|
|
|
6827
6883
|
// src/api/dto/export/pipeline.ts
|
|
6828
|
-
import { z as
|
|
6829
|
-
var DTOPipelineListQuery =
|
|
6830
|
-
designSystemId:
|
|
6831
|
-
exporterId:
|
|
6832
|
-
latestJobsLimit:
|
|
6833
|
-
});
|
|
6834
|
-
var DTOPipeline =
|
|
6835
|
-
id:
|
|
6836
|
-
name:
|
|
6884
|
+
import { z as z240 } from "zod";
|
|
6885
|
+
var DTOPipelineListQuery = z240.object({
|
|
6886
|
+
designSystemId: z240.string().optional(),
|
|
6887
|
+
exporterId: z240.string().optional(),
|
|
6888
|
+
latestJobsLimit: z240.coerce.number().optional()
|
|
6889
|
+
});
|
|
6890
|
+
var DTOPipeline = z240.object({
|
|
6891
|
+
id: z240.string(),
|
|
6892
|
+
name: z240.string(),
|
|
6837
6893
|
eventType: PipelineEventType,
|
|
6838
|
-
isEnabled:
|
|
6839
|
-
workspaceId:
|
|
6840
|
-
designSystemId:
|
|
6841
|
-
exporterId:
|
|
6842
|
-
brandPersistentId:
|
|
6843
|
-
themePersistentId:
|
|
6844
|
-
themePersistentIds:
|
|
6894
|
+
isEnabled: z240.boolean(),
|
|
6895
|
+
workspaceId: z240.string(),
|
|
6896
|
+
designSystemId: z240.string(),
|
|
6897
|
+
exporterId: z240.string(),
|
|
6898
|
+
brandPersistentId: z240.string().optional(),
|
|
6899
|
+
themePersistentId: z240.string().optional(),
|
|
6900
|
+
themePersistentIds: z240.string().array().optional(),
|
|
6845
6901
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6846
6902
|
...ExportDestinationsMap.shape,
|
|
6847
6903
|
latestJobs: DTOExportJob.array(),
|
|
6848
|
-
isExporterDeprecated:
|
|
6904
|
+
isExporterDeprecated: z240.boolean()
|
|
6849
6905
|
});
|
|
6850
|
-
var DTOPipelineListResponse =
|
|
6906
|
+
var DTOPipelineListResponse = z240.object({
|
|
6851
6907
|
pipelines: DTOPipeline.array()
|
|
6852
6908
|
});
|
|
6853
|
-
var DTOPipelineResponse =
|
|
6909
|
+
var DTOPipelineResponse = z240.object({
|
|
6854
6910
|
pipeline: DTOPipeline
|
|
6855
6911
|
});
|
|
6856
6912
|
|
|
6857
6913
|
// src/api/dto/documentation/publish.ts
|
|
6858
6914
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6859
|
-
var DTOPublishDocumentationRequest =
|
|
6915
|
+
var DTOPublishDocumentationRequest = z241.object({
|
|
6860
6916
|
environment: PublishedDocEnvironment,
|
|
6861
6917
|
/**
|
|
6862
6918
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6864,66 +6920,66 @@ var DTOPublishDocumentationRequest = z240.object({
|
|
|
6864
6920
|
*/
|
|
6865
6921
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6866
6922
|
});
|
|
6867
|
-
var DTOPublishDocumentationResponse =
|
|
6923
|
+
var DTOPublishDocumentationResponse = z241.object({
|
|
6868
6924
|
job: DTOExportJob
|
|
6869
6925
|
});
|
|
6870
6926
|
|
|
6871
6927
|
// src/api/dto/documentation/room.ts
|
|
6872
|
-
import { z as
|
|
6873
|
-
var DTODocumentationPageRoom =
|
|
6874
|
-
id:
|
|
6928
|
+
import { z as z242 } from "zod";
|
|
6929
|
+
var DTODocumentationPageRoom = z242.object({
|
|
6930
|
+
id: z242.string()
|
|
6875
6931
|
});
|
|
6876
|
-
var DTODocumentationPageRoomResponse =
|
|
6932
|
+
var DTODocumentationPageRoomResponse = z242.object({
|
|
6877
6933
|
room: DTODocumentationPageRoom
|
|
6878
6934
|
});
|
|
6879
6935
|
|
|
6880
6936
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
6881
|
-
import
|
|
6882
|
-
var DTOFigmaComponentGroup =
|
|
6883
|
-
id:
|
|
6884
|
-
designSystemVersionId:
|
|
6885
|
-
persistentId:
|
|
6886
|
-
isRoot:
|
|
6887
|
-
brandId:
|
|
6937
|
+
import z243 from "zod";
|
|
6938
|
+
var DTOFigmaComponentGroup = z243.object({
|
|
6939
|
+
id: z243.string(),
|
|
6940
|
+
designSystemVersionId: z243.string(),
|
|
6941
|
+
persistentId: z243.string(),
|
|
6942
|
+
isRoot: z243.boolean(),
|
|
6943
|
+
brandId: z243.string(),
|
|
6888
6944
|
meta: DTOObjectMeta,
|
|
6889
|
-
childrenIds:
|
|
6945
|
+
childrenIds: z243.string().array()
|
|
6890
6946
|
});
|
|
6891
|
-
var DTOFigmaComponentGroupListResponse =
|
|
6947
|
+
var DTOFigmaComponentGroupListResponse = z243.object({
|
|
6892
6948
|
groups: DTOFigmaComponentGroup.array()
|
|
6893
6949
|
});
|
|
6894
6950
|
|
|
6895
6951
|
// src/api/dto/elements/components/figma-component.ts
|
|
6896
|
-
import { z as
|
|
6952
|
+
import { z as z244 } from "zod";
|
|
6897
6953
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6898
|
-
var DTOFigmaComponentPropertyMap =
|
|
6899
|
-
var DTOFigmaComponent =
|
|
6900
|
-
id:
|
|
6901
|
-
persistentId:
|
|
6902
|
-
designSystemVersionId:
|
|
6903
|
-
brandId:
|
|
6904
|
-
thumbnailUrl:
|
|
6905
|
-
svgUrl:
|
|
6906
|
-
exportProperties:
|
|
6907
|
-
isAsset:
|
|
6954
|
+
var DTOFigmaComponentPropertyMap = z244.record(DTOFigmaComponentProperty);
|
|
6955
|
+
var DTOFigmaComponent = z244.object({
|
|
6956
|
+
id: z244.string(),
|
|
6957
|
+
persistentId: z244.string(),
|
|
6958
|
+
designSystemVersionId: z244.string(),
|
|
6959
|
+
brandId: z244.string(),
|
|
6960
|
+
thumbnailUrl: z244.string().optional(),
|
|
6961
|
+
svgUrl: z244.string().optional(),
|
|
6962
|
+
exportProperties: z244.object({
|
|
6963
|
+
isAsset: z244.boolean()
|
|
6908
6964
|
}),
|
|
6909
|
-
createdAt:
|
|
6910
|
-
updatedAt:
|
|
6965
|
+
createdAt: z244.coerce.date(),
|
|
6966
|
+
updatedAt: z244.coerce.date(),
|
|
6911
6967
|
meta: ObjectMeta,
|
|
6912
6968
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6913
|
-
parentComponentPersistentId:
|
|
6914
|
-
childrenPersistentIds:
|
|
6969
|
+
parentComponentPersistentId: z244.string().optional(),
|
|
6970
|
+
childrenPersistentIds: z244.string().array().optional(),
|
|
6915
6971
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6916
|
-
variantPropertyValues:
|
|
6972
|
+
variantPropertyValues: z244.record(z244.string()).optional()
|
|
6917
6973
|
});
|
|
6918
|
-
var DTOFigmaComponentListResponse =
|
|
6974
|
+
var DTOFigmaComponentListResponse = z244.object({
|
|
6919
6975
|
components: DTOFigmaComponent.array()
|
|
6920
6976
|
});
|
|
6921
6977
|
|
|
6922
6978
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6923
|
-
import { z as
|
|
6979
|
+
import { z as z246 } from "zod";
|
|
6924
6980
|
|
|
6925
6981
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6926
|
-
import { z as
|
|
6982
|
+
import { z as z245 } from "zod";
|
|
6927
6983
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6928
6984
|
sortOrder: true,
|
|
6929
6985
|
parentPersistentId: true,
|
|
@@ -6933,13 +6989,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6933
6989
|
data: true,
|
|
6934
6990
|
shortPersistentId: true
|
|
6935
6991
|
}).extend({
|
|
6936
|
-
title:
|
|
6937
|
-
isRoot:
|
|
6938
|
-
childrenIds:
|
|
6992
|
+
title: z245.string(),
|
|
6993
|
+
isRoot: z245.boolean(),
|
|
6994
|
+
childrenIds: z245.array(z245.string()),
|
|
6939
6995
|
groupBehavior: DocumentationGroupBehavior,
|
|
6940
|
-
shortPersistentId:
|
|
6996
|
+
shortPersistentId: z245.string(),
|
|
6941
6997
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6942
|
-
type:
|
|
6998
|
+
type: z245.literal("Group"),
|
|
6943
6999
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6944
7000
|
draftState: DTODocumentationDraftState.optional(),
|
|
6945
7001
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6947,127 +7003,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6947
7003
|
//** An approval state for frontend to utilize. */
|
|
6948
7004
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6949
7005
|
});
|
|
6950
|
-
var DTOCreateDocumentationGroupInput =
|
|
7006
|
+
var DTOCreateDocumentationGroupInput = z245.object({
|
|
6951
7007
|
// Identifier
|
|
6952
|
-
persistentId:
|
|
7008
|
+
persistentId: z245.string(),
|
|
6953
7009
|
// Group properties
|
|
6954
|
-
title:
|
|
7010
|
+
title: z245.string(),
|
|
6955
7011
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6956
7012
|
// Group placement properties
|
|
6957
|
-
afterPersistentId:
|
|
6958
|
-
parentPersistentId:
|
|
7013
|
+
afterPersistentId: z245.string().nullish(),
|
|
7014
|
+
parentPersistentId: z245.string()
|
|
6959
7015
|
});
|
|
6960
|
-
var DTOUpdateDocumentationGroupInput =
|
|
7016
|
+
var DTOUpdateDocumentationGroupInput = z245.object({
|
|
6961
7017
|
// Identifier of the group to update
|
|
6962
|
-
id:
|
|
7018
|
+
id: z245.string(),
|
|
6963
7019
|
// Group properties
|
|
6964
|
-
title:
|
|
7020
|
+
title: z245.string().optional(),
|
|
6965
7021
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6966
7022
|
});
|
|
6967
|
-
var DTOMoveDocumentationGroupInput =
|
|
7023
|
+
var DTOMoveDocumentationGroupInput = z245.object({
|
|
6968
7024
|
// Identifier of the group to update
|
|
6969
|
-
id:
|
|
7025
|
+
id: z245.string(),
|
|
6970
7026
|
// Group placement properties
|
|
6971
|
-
parentPersistentId:
|
|
6972
|
-
afterPersistentId:
|
|
7027
|
+
parentPersistentId: z245.string(),
|
|
7028
|
+
afterPersistentId: z245.string().nullish()
|
|
6973
7029
|
});
|
|
6974
|
-
var DTODuplicateDocumentationGroupInput =
|
|
7030
|
+
var DTODuplicateDocumentationGroupInput = z245.object({
|
|
6975
7031
|
// Identifier of the group to duplicate from
|
|
6976
|
-
id:
|
|
7032
|
+
id: z245.string(),
|
|
6977
7033
|
// New group persistent id
|
|
6978
|
-
persistentId:
|
|
7034
|
+
persistentId: z245.string(),
|
|
6979
7035
|
// Group placement properties
|
|
6980
|
-
afterPersistentId:
|
|
6981
|
-
parentPersistentId:
|
|
7036
|
+
afterPersistentId: z245.string().nullish(),
|
|
7037
|
+
parentPersistentId: z245.string()
|
|
6982
7038
|
});
|
|
6983
|
-
var DTOCreateDocumentationTabInput =
|
|
7039
|
+
var DTOCreateDocumentationTabInput = z245.object({
|
|
6984
7040
|
// New group persistent id
|
|
6985
|
-
persistentId:
|
|
7041
|
+
persistentId: z245.string(),
|
|
6986
7042
|
// If this is page, we will attempt to convert it to tab
|
|
6987
7043
|
// If this is tab group, we will add a new tab to it
|
|
6988
|
-
fromItemPersistentId:
|
|
6989
|
-
tabName:
|
|
7044
|
+
fromItemPersistentId: z245.string(),
|
|
7045
|
+
tabName: z245.string()
|
|
6990
7046
|
});
|
|
6991
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
7047
|
+
var DTODeleteDocumentationTabGroupInput = z245.object({
|
|
6992
7048
|
// Deleted group id
|
|
6993
|
-
id:
|
|
7049
|
+
id: z245.string()
|
|
6994
7050
|
});
|
|
6995
|
-
var DTODeleteDocumentationGroupInput =
|
|
7051
|
+
var DTODeleteDocumentationGroupInput = z245.object({
|
|
6996
7052
|
// Identifier
|
|
6997
|
-
id:
|
|
7053
|
+
id: z245.string(),
|
|
6998
7054
|
// Deletion options
|
|
6999
|
-
deleteSubtree:
|
|
7055
|
+
deleteSubtree: z245.boolean().default(false)
|
|
7000
7056
|
});
|
|
7001
7057
|
|
|
7002
7058
|
// src/api/dto/elements/documentation/group-action.ts
|
|
7003
|
-
var SuccessPayload =
|
|
7004
|
-
success:
|
|
7059
|
+
var SuccessPayload = z246.object({
|
|
7060
|
+
success: z246.literal(true)
|
|
7005
7061
|
});
|
|
7006
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
7007
|
-
type:
|
|
7062
|
+
var DTODocumentationGroupCreateActionOutputV2 = z246.object({
|
|
7063
|
+
type: z246.literal("DocumentationGroupCreate"),
|
|
7008
7064
|
output: SuccessPayload
|
|
7009
7065
|
});
|
|
7010
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
7011
|
-
type:
|
|
7066
|
+
var DTODocumentationTabCreateActionOutputV2 = z246.object({
|
|
7067
|
+
type: z246.literal("DocumentationTabCreate"),
|
|
7012
7068
|
output: SuccessPayload
|
|
7013
7069
|
});
|
|
7014
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
7015
|
-
type:
|
|
7070
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z246.object({
|
|
7071
|
+
type: z246.literal("DocumentationGroupUpdate"),
|
|
7016
7072
|
output: SuccessPayload
|
|
7017
7073
|
});
|
|
7018
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
7019
|
-
type:
|
|
7074
|
+
var DTODocumentationGroupMoveActionOutputV2 = z246.object({
|
|
7075
|
+
type: z246.literal("DocumentationGroupMove"),
|
|
7020
7076
|
output: SuccessPayload
|
|
7021
7077
|
});
|
|
7022
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
7023
|
-
type:
|
|
7078
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z246.object({
|
|
7079
|
+
type: z246.literal("DocumentationGroupDuplicate"),
|
|
7024
7080
|
output: SuccessPayload
|
|
7025
7081
|
});
|
|
7026
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
7027
|
-
type:
|
|
7082
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z246.object({
|
|
7083
|
+
type: z246.literal("DocumentationGroupDelete"),
|
|
7028
7084
|
output: SuccessPayload
|
|
7029
7085
|
});
|
|
7030
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
7031
|
-
type:
|
|
7086
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z246.object({
|
|
7087
|
+
type: z246.literal("DocumentationTabGroupDelete"),
|
|
7032
7088
|
output: SuccessPayload
|
|
7033
7089
|
});
|
|
7034
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
7035
|
-
type:
|
|
7090
|
+
var DTODocumentationGroupCreateActionInputV2 = z246.object({
|
|
7091
|
+
type: z246.literal("DocumentationGroupCreate"),
|
|
7036
7092
|
input: DTOCreateDocumentationGroupInput
|
|
7037
7093
|
});
|
|
7038
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
7039
|
-
type:
|
|
7094
|
+
var DTODocumentationTabCreateActionInputV2 = z246.object({
|
|
7095
|
+
type: z246.literal("DocumentationTabCreate"),
|
|
7040
7096
|
input: DTOCreateDocumentationTabInput
|
|
7041
7097
|
});
|
|
7042
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
7043
|
-
type:
|
|
7098
|
+
var DTODocumentationGroupUpdateActionInputV2 = z246.object({
|
|
7099
|
+
type: z246.literal("DocumentationGroupUpdate"),
|
|
7044
7100
|
input: DTOUpdateDocumentationGroupInput
|
|
7045
7101
|
});
|
|
7046
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
7047
|
-
type:
|
|
7102
|
+
var DTODocumentationGroupMoveActionInputV2 = z246.object({
|
|
7103
|
+
type: z246.literal("DocumentationGroupMove"),
|
|
7048
7104
|
input: DTOMoveDocumentationGroupInput
|
|
7049
7105
|
});
|
|
7050
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
7051
|
-
type:
|
|
7106
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z246.object({
|
|
7107
|
+
type: z246.literal("DocumentationGroupDuplicate"),
|
|
7052
7108
|
input: DTODuplicateDocumentationGroupInput
|
|
7053
7109
|
});
|
|
7054
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
7055
|
-
type:
|
|
7110
|
+
var DTODocumentationGroupDeleteActionInputV2 = z246.object({
|
|
7111
|
+
type: z246.literal("DocumentationGroupDelete"),
|
|
7056
7112
|
input: DTODeleteDocumentationGroupInput
|
|
7057
7113
|
});
|
|
7058
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
7059
|
-
type:
|
|
7114
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z246.object({
|
|
7115
|
+
type: z246.literal("DocumentationTabGroupDelete"),
|
|
7060
7116
|
input: DTODeleteDocumentationTabGroupInput
|
|
7061
7117
|
});
|
|
7062
7118
|
|
|
7063
7119
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
7064
|
-
import { z as
|
|
7120
|
+
import { z as z248 } from "zod";
|
|
7065
7121
|
|
|
7066
7122
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
7067
|
-
import { z as
|
|
7068
|
-
var DocumentationColorV1 =
|
|
7069
|
-
aliasTo:
|
|
7070
|
-
value:
|
|
7123
|
+
import { z as z247 } from "zod";
|
|
7124
|
+
var DocumentationColorV1 = z247.object({
|
|
7125
|
+
aliasTo: z247.string().optional(),
|
|
7126
|
+
value: z247.string().optional()
|
|
7071
7127
|
});
|
|
7072
7128
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
7073
7129
|
foregroundColor: true,
|
|
@@ -7076,10 +7132,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
7076
7132
|
foregroundColor: DocumentationColorV1.optional(),
|
|
7077
7133
|
backgroundColor: DocumentationColorV1.optional()
|
|
7078
7134
|
});
|
|
7079
|
-
var DTODocumentationItemConfigurationV1 =
|
|
7080
|
-
showSidebar:
|
|
7081
|
-
isPrivate:
|
|
7082
|
-
isHidden:
|
|
7135
|
+
var DTODocumentationItemConfigurationV1 = z247.object({
|
|
7136
|
+
showSidebar: z247.boolean(),
|
|
7137
|
+
isPrivate: z247.boolean(),
|
|
7138
|
+
isHidden: z247.boolean(),
|
|
7083
7139
|
header: DTODocumentationItemHeaderV1
|
|
7084
7140
|
});
|
|
7085
7141
|
|
|
@@ -7093,123 +7149,123 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
7093
7149
|
data: true,
|
|
7094
7150
|
shortPersistentId: true
|
|
7095
7151
|
}).extend({
|
|
7096
|
-
title:
|
|
7097
|
-
isRoot:
|
|
7098
|
-
childrenIds:
|
|
7152
|
+
title: z248.string(),
|
|
7153
|
+
isRoot: z248.boolean(),
|
|
7154
|
+
childrenIds: z248.array(z248.string()),
|
|
7099
7155
|
groupBehavior: DocumentationGroupBehavior,
|
|
7100
|
-
shortPersistentId:
|
|
7101
|
-
type:
|
|
7156
|
+
shortPersistentId: z248.string(),
|
|
7157
|
+
type: z248.literal("Group")
|
|
7102
7158
|
});
|
|
7103
7159
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
7104
7160
|
configuration: DTODocumentationItemConfigurationV1
|
|
7105
7161
|
});
|
|
7106
7162
|
|
|
7107
7163
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
7108
|
-
import { z as
|
|
7109
|
-
var DTODocumentationHierarchyV2 =
|
|
7110
|
-
pages:
|
|
7164
|
+
import { z as z249 } from "zod";
|
|
7165
|
+
var DTODocumentationHierarchyV2 = z249.object({
|
|
7166
|
+
pages: z249.array(
|
|
7111
7167
|
DTODocumentationPageV2.extend({
|
|
7112
7168
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7113
7169
|
draftState: DTODocumentationDraftState.optional()
|
|
7114
7170
|
})
|
|
7115
7171
|
),
|
|
7116
|
-
groups:
|
|
7172
|
+
groups: z249.array(
|
|
7117
7173
|
DTODocumentationGroupV2.extend({
|
|
7118
7174
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7119
7175
|
draftState: DTODocumentationDraftState.optional()
|
|
7120
7176
|
})
|
|
7121
7177
|
),
|
|
7122
7178
|
/** True if the documentation was already published, false otherwise. */
|
|
7123
|
-
hasPublishedDocumentationContent:
|
|
7179
|
+
hasPublishedDocumentationContent: z249.boolean()
|
|
7124
7180
|
});
|
|
7125
7181
|
|
|
7126
7182
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
7127
|
-
import { z as
|
|
7128
|
-
var SuccessPayload2 =
|
|
7129
|
-
success:
|
|
7183
|
+
import { z as z250 } from "zod";
|
|
7184
|
+
var SuccessPayload2 = z250.object({
|
|
7185
|
+
success: z250.literal(true)
|
|
7130
7186
|
});
|
|
7131
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
7132
|
-
type:
|
|
7187
|
+
var DTODocumentationPageCreateActionOutputV2 = z250.object({
|
|
7188
|
+
type: z250.literal("DocumentationPageCreate"),
|
|
7133
7189
|
output: SuccessPayload2
|
|
7134
7190
|
});
|
|
7135
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
7136
|
-
type:
|
|
7191
|
+
var DTODocumentationPageUpdateActionOutputV2 = z250.object({
|
|
7192
|
+
type: z250.literal("DocumentationPageUpdate"),
|
|
7137
7193
|
output: SuccessPayload2
|
|
7138
7194
|
});
|
|
7139
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
7140
|
-
type:
|
|
7195
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z250.object({
|
|
7196
|
+
type: z250.literal("DocumentationPageUpdateDocument"),
|
|
7141
7197
|
output: SuccessPayload2
|
|
7142
7198
|
});
|
|
7143
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
7144
|
-
type:
|
|
7199
|
+
var DTODocumentationPageMoveActionOutputV2 = z250.object({
|
|
7200
|
+
type: z250.literal("DocumentationPageMove"),
|
|
7145
7201
|
output: SuccessPayload2
|
|
7146
7202
|
});
|
|
7147
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
7148
|
-
type:
|
|
7203
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z250.object({
|
|
7204
|
+
type: z250.literal("DocumentationPageDuplicate"),
|
|
7149
7205
|
output: SuccessPayload2
|
|
7150
7206
|
});
|
|
7151
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
7152
|
-
type:
|
|
7207
|
+
var DTODocumentationPageDeleteActionOutputV2 = z250.object({
|
|
7208
|
+
type: z250.literal("DocumentationPageDelete"),
|
|
7153
7209
|
output: SuccessPayload2
|
|
7154
7210
|
});
|
|
7155
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
7156
|
-
type:
|
|
7211
|
+
var DTODocumentationPageRestoreActionOutput = z250.object({
|
|
7212
|
+
type: z250.literal("DocumentationPageRestore"),
|
|
7157
7213
|
output: SuccessPayload2
|
|
7158
7214
|
});
|
|
7159
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
7160
|
-
type:
|
|
7215
|
+
var DTODocumentationGroupRestoreActionOutput = z250.object({
|
|
7216
|
+
type: z250.literal("DocumentationGroupRestore"),
|
|
7161
7217
|
output: SuccessPayload2
|
|
7162
7218
|
});
|
|
7163
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
7164
|
-
type:
|
|
7219
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z250.object({
|
|
7220
|
+
type: z250.literal("DocumentationPageApprovalStateChange"),
|
|
7165
7221
|
output: SuccessPayload2
|
|
7166
7222
|
});
|
|
7167
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
7168
|
-
type:
|
|
7223
|
+
var DTODocumentationPageCreateActionInputV2 = z250.object({
|
|
7224
|
+
type: z250.literal("DocumentationPageCreate"),
|
|
7169
7225
|
input: DTOCreateDocumentationPageInputV2
|
|
7170
7226
|
});
|
|
7171
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
7172
|
-
type:
|
|
7227
|
+
var DTODocumentationPageUpdateActionInputV2 = z250.object({
|
|
7228
|
+
type: z250.literal("DocumentationPageUpdate"),
|
|
7173
7229
|
input: DTOUpdateDocumentationPageInputV2
|
|
7174
7230
|
});
|
|
7175
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
7176
|
-
type:
|
|
7231
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z250.object({
|
|
7232
|
+
type: z250.literal("DocumentationPageUpdateDocument"),
|
|
7177
7233
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
7178
7234
|
});
|
|
7179
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
7180
|
-
type:
|
|
7235
|
+
var DTODocumentationPageMoveActionInputV2 = z250.object({
|
|
7236
|
+
type: z250.literal("DocumentationPageMove"),
|
|
7181
7237
|
input: DTOMoveDocumentationPageInputV2
|
|
7182
7238
|
});
|
|
7183
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
7184
|
-
type:
|
|
7239
|
+
var DTODocumentationPageDuplicateActionInputV2 = z250.object({
|
|
7240
|
+
type: z250.literal("DocumentationPageDuplicate"),
|
|
7185
7241
|
input: DTODuplicateDocumentationPageInputV2
|
|
7186
7242
|
});
|
|
7187
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
7188
|
-
type:
|
|
7243
|
+
var DTODocumentationPageDeleteActionInputV2 = z250.object({
|
|
7244
|
+
type: z250.literal("DocumentationPageDelete"),
|
|
7189
7245
|
input: DTODeleteDocumentationPageInputV2
|
|
7190
7246
|
});
|
|
7191
|
-
var DTODocumentationPageRestoreActionInput =
|
|
7192
|
-
type:
|
|
7247
|
+
var DTODocumentationPageRestoreActionInput = z250.object({
|
|
7248
|
+
type: z250.literal("DocumentationPageRestore"),
|
|
7193
7249
|
input: DTORestoreDocumentationPageInput
|
|
7194
7250
|
});
|
|
7195
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
7196
|
-
type:
|
|
7251
|
+
var DTODocumentationGroupRestoreActionInput = z250.object({
|
|
7252
|
+
type: z250.literal("DocumentationGroupRestore"),
|
|
7197
7253
|
input: DTORestoreDocumentationGroupInput
|
|
7198
7254
|
});
|
|
7199
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
7200
|
-
type:
|
|
7255
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z250.object({
|
|
7256
|
+
type: z250.literal("DocumentationPageApprovalStateChange"),
|
|
7201
7257
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
7202
7258
|
});
|
|
7203
7259
|
|
|
7204
7260
|
// src/api/dto/elements/documentation/page-content.ts
|
|
7205
|
-
import { z as
|
|
7261
|
+
import { z as z251 } from "zod";
|
|
7206
7262
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
7207
|
-
var DTODocumentationPageContentGetResponse =
|
|
7263
|
+
var DTODocumentationPageContentGetResponse = z251.object({
|
|
7208
7264
|
pageContent: DTODocumentationPageContent
|
|
7209
7265
|
});
|
|
7210
7266
|
|
|
7211
7267
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
7212
|
-
import { z as
|
|
7268
|
+
import { z as z252 } from "zod";
|
|
7213
7269
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
7214
7270
|
data: true,
|
|
7215
7271
|
meta: true,
|
|
@@ -7217,81 +7273,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
7217
7273
|
sortOrder: true
|
|
7218
7274
|
}).extend({
|
|
7219
7275
|
configuration: DTODocumentationItemConfigurationV1,
|
|
7220
|
-
blocks:
|
|
7221
|
-
title:
|
|
7222
|
-
path:
|
|
7276
|
+
blocks: z252.array(PageBlockV1),
|
|
7277
|
+
title: z252.string(),
|
|
7278
|
+
path: z252.string()
|
|
7223
7279
|
});
|
|
7224
7280
|
|
|
7225
7281
|
// src/api/dto/elements/documentation/settings.ts
|
|
7226
|
-
import { z as
|
|
7227
|
-
var DTODocumentationSettings =
|
|
7228
|
-
isDraftFeatureAdopted:
|
|
7229
|
-
isApprovalsFeatureEnabled:
|
|
7230
|
-
isApprovalRequiredForPublishing:
|
|
7282
|
+
import { z as z253 } from "zod";
|
|
7283
|
+
var DTODocumentationSettings = z253.object({
|
|
7284
|
+
isDraftFeatureAdopted: z253.boolean(),
|
|
7285
|
+
isApprovalsFeatureEnabled: z253.boolean(),
|
|
7286
|
+
isApprovalRequiredForPublishing: z253.boolean()
|
|
7231
7287
|
});
|
|
7232
7288
|
|
|
7233
7289
|
// src/api/dto/elements/documentation/structure.ts
|
|
7234
|
-
import { z as
|
|
7235
|
-
var DTODocumentationStructureItemType =
|
|
7236
|
-
var DTODocumentationStructureItemBase =
|
|
7290
|
+
import { z as z254 } from "zod";
|
|
7291
|
+
var DTODocumentationStructureItemType = z254.enum(["Group", "Page"]);
|
|
7292
|
+
var DTODocumentationStructureItemBase = z254.object({
|
|
7237
7293
|
type: DTODocumentationStructureItemType,
|
|
7238
|
-
id:
|
|
7239
|
-
designSystemVersionId:
|
|
7240
|
-
shortPersistentId:
|
|
7241
|
-
persistentId:
|
|
7242
|
-
title:
|
|
7243
|
-
createdAt:
|
|
7244
|
-
updatedAt:
|
|
7294
|
+
id: z254.string(),
|
|
7295
|
+
designSystemVersionId: z254.string(),
|
|
7296
|
+
shortPersistentId: z254.string(),
|
|
7297
|
+
persistentId: z254.string(),
|
|
7298
|
+
title: z254.string(),
|
|
7299
|
+
createdAt: z254.coerce.date(),
|
|
7300
|
+
updatedAt: z254.coerce.date()
|
|
7245
7301
|
});
|
|
7246
7302
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
7247
|
-
type:
|
|
7248
|
-
groupBehavior:
|
|
7249
|
-
childrenIds:
|
|
7250
|
-
isRoot:
|
|
7303
|
+
type: z254.literal(DTODocumentationStructureItemType.enum.Group),
|
|
7304
|
+
groupBehavior: z254.string(),
|
|
7305
|
+
childrenIds: z254.string().array(),
|
|
7306
|
+
isRoot: z254.boolean()
|
|
7251
7307
|
});
|
|
7252
7308
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
7253
|
-
type:
|
|
7254
|
-
path:
|
|
7309
|
+
type: z254.literal(DTODocumentationStructureItemType.enum.Page),
|
|
7310
|
+
path: z254.string()
|
|
7255
7311
|
});
|
|
7256
|
-
var DTODocumentationStructureItem =
|
|
7312
|
+
var DTODocumentationStructureItem = z254.discriminatedUnion("type", [
|
|
7257
7313
|
DTODocumentationStructureGroupItem,
|
|
7258
7314
|
DTODocumentationStructurePageItem
|
|
7259
7315
|
]);
|
|
7260
|
-
var DTODocumentationStructure =
|
|
7261
|
-
items:
|
|
7316
|
+
var DTODocumentationStructure = z254.object({
|
|
7317
|
+
items: z254.array(DTODocumentationStructureItem)
|
|
7262
7318
|
});
|
|
7263
7319
|
|
|
7264
7320
|
// src/api/dto/elements/figma-nodes/figma-node-structure.ts
|
|
7265
|
-
import { z as
|
|
7266
|
-
var DTOFigmaNodeStructure =
|
|
7267
|
-
id:
|
|
7268
|
-
sourceId:
|
|
7321
|
+
import { z as z255 } from "zod";
|
|
7322
|
+
var DTOFigmaNodeStructure = z255.object({
|
|
7323
|
+
id: z255.string(),
|
|
7324
|
+
sourceId: z255.string(),
|
|
7269
7325
|
importState: FigmaNodeStructureStateV2,
|
|
7270
|
-
createdAt:
|
|
7271
|
-
updatedAt:
|
|
7326
|
+
createdAt: z255.coerce.date(),
|
|
7327
|
+
updatedAt: z255.coerce.date()
|
|
7272
7328
|
});
|
|
7273
7329
|
var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
|
|
7274
7330
|
rootNode: FigmaFileStructureNode
|
|
7275
7331
|
});
|
|
7276
|
-
var DTOFigmaNodeStructureListResponse =
|
|
7332
|
+
var DTOFigmaNodeStructureListResponse = z255.object({
|
|
7277
7333
|
structures: DTOFigmaNodeStructure.array()
|
|
7278
7334
|
});
|
|
7279
|
-
var DTOFigmaNodeStructureDetailResponse =
|
|
7335
|
+
var DTOFigmaNodeStructureDetailResponse = z255.object({
|
|
7280
7336
|
structure: DTOFigmaNodeStructureDetail
|
|
7281
7337
|
});
|
|
7282
7338
|
|
|
7283
7339
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7284
|
-
import { z as
|
|
7340
|
+
import { z as z257 } from "zod";
|
|
7285
7341
|
|
|
7286
7342
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
7287
|
-
import { z as
|
|
7343
|
+
import { z as z256 } from "zod";
|
|
7288
7344
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
7289
|
-
var DTOFigmaNodeOrigin =
|
|
7290
|
-
sourceId:
|
|
7291
|
-
fileId:
|
|
7292
|
-
parentName:
|
|
7345
|
+
var DTOFigmaNodeOrigin = z256.object({
|
|
7346
|
+
sourceId: z256.string(),
|
|
7347
|
+
fileId: z256.string().optional(),
|
|
7348
|
+
parentName: z256.string().optional()
|
|
7293
7349
|
});
|
|
7294
|
-
var DTOFigmaNodeRenderInputBase =
|
|
7350
|
+
var DTOFigmaNodeRenderInputBase = z256.object({
|
|
7295
7351
|
/**
|
|
7296
7352
|
* Format in which the node must be rendered, png by default.
|
|
7297
7353
|
*/
|
|
@@ -7299,57 +7355,57 @@ var DTOFigmaNodeRenderInputBase = z255.object({
|
|
|
7299
7355
|
/**
|
|
7300
7356
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
7301
7357
|
*/
|
|
7302
|
-
scale:
|
|
7358
|
+
scale: z256.number().optional()
|
|
7303
7359
|
});
|
|
7304
7360
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7305
|
-
inputType:
|
|
7361
|
+
inputType: z256.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
7306
7362
|
/**
|
|
7307
7363
|
* Id of a design system's data source representing a linked Figma file
|
|
7308
7364
|
*/
|
|
7309
|
-
sourceId:
|
|
7365
|
+
sourceId: z256.string(),
|
|
7310
7366
|
/**
|
|
7311
7367
|
* Id of a node within the Figma file
|
|
7312
7368
|
*/
|
|
7313
|
-
figmaFileNodeId:
|
|
7369
|
+
figmaFileNodeId: z256.string()
|
|
7314
7370
|
});
|
|
7315
7371
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7316
|
-
inputType:
|
|
7372
|
+
inputType: z256.literal("URL"),
|
|
7317
7373
|
/**
|
|
7318
7374
|
* Id of a design system's data source representing a linked Figma file
|
|
7319
7375
|
*/
|
|
7320
|
-
figmaNodeUrl:
|
|
7376
|
+
figmaNodeUrl: z256.string(),
|
|
7321
7377
|
/**
|
|
7322
7378
|
* Brand persistent id to use in case a source has to be created for this render
|
|
7323
7379
|
*/
|
|
7324
|
-
brandPersistentId:
|
|
7380
|
+
brandPersistentId: z256.string()
|
|
7325
7381
|
});
|
|
7326
|
-
var DTOFigmaNodeRerenderInput =
|
|
7327
|
-
inputType:
|
|
7382
|
+
var DTOFigmaNodeRerenderInput = z256.object({
|
|
7383
|
+
inputType: z256.literal("Rerender"),
|
|
7328
7384
|
/**
|
|
7329
7385
|
* Persistent ID of an existing Figma node
|
|
7330
7386
|
*/
|
|
7331
|
-
figmaNodePersistentId:
|
|
7387
|
+
figmaNodePersistentId: z256.string()
|
|
7332
7388
|
});
|
|
7333
|
-
var DTOFigmaNodeRenderInput =
|
|
7389
|
+
var DTOFigmaNodeRenderInput = z256.discriminatedUnion("inputType", [
|
|
7334
7390
|
DTOFigmaNodeRenderIdInput,
|
|
7335
7391
|
DTOFigmaNodeRenderUrlInput,
|
|
7336
7392
|
DTOFigmaNodeRerenderInput
|
|
7337
7393
|
]);
|
|
7338
7394
|
|
|
7339
7395
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7340
|
-
var DTOFigmaNodeData =
|
|
7396
|
+
var DTOFigmaNodeData = z257.object({
|
|
7341
7397
|
// Id of the node in the Figma file
|
|
7342
|
-
figmaNodeId:
|
|
7398
|
+
figmaNodeId: z257.string(),
|
|
7343
7399
|
// Validity
|
|
7344
|
-
isValid:
|
|
7400
|
+
isValid: z257.boolean(),
|
|
7345
7401
|
// Asset data
|
|
7346
|
-
assetId:
|
|
7347
|
-
assetUrl:
|
|
7402
|
+
assetId: z257.string(),
|
|
7403
|
+
assetUrl: z257.string(),
|
|
7348
7404
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
7349
7405
|
// Asset metadata
|
|
7350
|
-
assetScale:
|
|
7351
|
-
assetWidth:
|
|
7352
|
-
assetHeight:
|
|
7406
|
+
assetScale: z257.number(),
|
|
7407
|
+
assetWidth: z257.number().optional(),
|
|
7408
|
+
assetHeight: z257.number().optional()
|
|
7353
7409
|
});
|
|
7354
7410
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
7355
7411
|
data: true,
|
|
@@ -7360,15 +7416,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
7360
7416
|
});
|
|
7361
7417
|
|
|
7362
7418
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
7363
|
-
import { z as
|
|
7364
|
-
var DTOFigmaNodeDataV2 =
|
|
7365
|
-
sceneNodeId:
|
|
7419
|
+
import { z as z258 } from "zod";
|
|
7420
|
+
var DTOFigmaNodeDataV2 = z258.object({
|
|
7421
|
+
sceneNodeId: z258.string(),
|
|
7366
7422
|
format: FigmaNodeRenderFormat,
|
|
7367
|
-
scale:
|
|
7423
|
+
scale: z258.number().optional(),
|
|
7368
7424
|
renderState: FigmaNodeRenderState,
|
|
7369
7425
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
7370
7426
|
renderError: FigmaNodeRenderError.optional(),
|
|
7371
|
-
hasSource:
|
|
7427
|
+
hasSource: z258.boolean()
|
|
7372
7428
|
});
|
|
7373
7429
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
7374
7430
|
data: true,
|
|
@@ -7379,113 +7435,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
7379
7435
|
});
|
|
7380
7436
|
|
|
7381
7437
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
7382
|
-
import { z as
|
|
7383
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
7384
|
-
type:
|
|
7385
|
-
figmaNodes:
|
|
7438
|
+
import { z as z259 } from "zod";
|
|
7439
|
+
var DTOFigmaNodeRenderActionOutput = z259.object({
|
|
7440
|
+
type: z259.literal("FigmaNodeRender"),
|
|
7441
|
+
figmaNodes: z259.array(DTOFigmaNode)
|
|
7386
7442
|
});
|
|
7387
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
7388
|
-
type:
|
|
7389
|
-
figmaNodes:
|
|
7443
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z259.object({
|
|
7444
|
+
type: z259.literal("FigmaNodeRenderAsync"),
|
|
7445
|
+
figmaNodes: z259.array(DTOFigmaNodeV2)
|
|
7390
7446
|
});
|
|
7391
|
-
var DTOFigmaNodeRenderActionInput =
|
|
7392
|
-
type:
|
|
7447
|
+
var DTOFigmaNodeRenderActionInput = z259.object({
|
|
7448
|
+
type: z259.literal("FigmaNodeRender"),
|
|
7393
7449
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
7394
7450
|
});
|
|
7395
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
7396
|
-
type:
|
|
7451
|
+
var DTOFigmaNodeRenderAsyncActionInput = z259.object({
|
|
7452
|
+
type: z259.literal("FigmaNodeRenderAsync"),
|
|
7397
7453
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
7398
7454
|
});
|
|
7399
7455
|
|
|
7400
7456
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
7401
|
-
import { z as
|
|
7402
|
-
var DTOFrameNodeStructure =
|
|
7403
|
-
id:
|
|
7404
|
-
persistentId:
|
|
7405
|
-
designSystemVersionId:
|
|
7457
|
+
import { z as z260 } from "zod";
|
|
7458
|
+
var DTOFrameNodeStructure = z260.object({
|
|
7459
|
+
id: z260.string(),
|
|
7460
|
+
persistentId: z260.string(),
|
|
7461
|
+
designSystemVersionId: z260.string(),
|
|
7406
7462
|
origin: FigmaFileStructureOrigin,
|
|
7407
7463
|
assetsInFile: FigmaFileStructureStatistics
|
|
7408
7464
|
});
|
|
7409
|
-
var DTOFrameNodeStructureListResponse =
|
|
7465
|
+
var DTOFrameNodeStructureListResponse = z260.object({
|
|
7410
7466
|
structures: DTOFrameNodeStructure.array()
|
|
7411
7467
|
});
|
|
7412
7468
|
|
|
7413
7469
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
7414
|
-
import { z as
|
|
7470
|
+
import { z as z261 } from "zod";
|
|
7415
7471
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
|
|
7416
|
-
var DTOElementPropertyDefinitionOption =
|
|
7417
|
-
id:
|
|
7418
|
-
name:
|
|
7472
|
+
var DTOElementPropertyDefinitionOption = z261.object({
|
|
7473
|
+
id: z261.string(),
|
|
7474
|
+
name: z261.string(),
|
|
7419
7475
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
7420
7476
|
});
|
|
7421
|
-
var DTOElementPropertyDefinition =
|
|
7422
|
-
id:
|
|
7423
|
-
designSystemVersionId:
|
|
7477
|
+
var DTOElementPropertyDefinition = z261.object({
|
|
7478
|
+
id: z261.string(),
|
|
7479
|
+
designSystemVersionId: z261.string(),
|
|
7424
7480
|
meta: DTOObjectMeta,
|
|
7425
|
-
persistentId:
|
|
7481
|
+
persistentId: z261.string(),
|
|
7426
7482
|
type: ElementPropertyTypeSchema,
|
|
7427
7483
|
targetElementType: ElementPropertyTargetType,
|
|
7428
|
-
codeName:
|
|
7429
|
-
options: nullishToOptional(
|
|
7484
|
+
codeName: z261.string().regex(CODE_NAME_REGEX2),
|
|
7485
|
+
options: nullishToOptional(z261.array(DTOElementPropertyDefinitionOption)),
|
|
7430
7486
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7431
|
-
isImmutable:
|
|
7487
|
+
isImmutable: z261.boolean(),
|
|
7432
7488
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
7433
7489
|
});
|
|
7434
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
7435
|
-
definitions:
|
|
7490
|
+
var DTOElementPropertyDefinitionListResponse = z261.object({
|
|
7491
|
+
definitions: z261.array(DTOElementPropertyDefinition)
|
|
7436
7492
|
});
|
|
7437
|
-
var DTOElementPropertyDefinitionResponse =
|
|
7493
|
+
var DTOElementPropertyDefinitionResponse = z261.object({
|
|
7438
7494
|
definition: DTOElementPropertyDefinition
|
|
7439
7495
|
});
|
|
7440
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
7496
|
+
var DTOElementPropertyDefinitionCreatePayload = z261.object({
|
|
7441
7497
|
meta: DTOObjectMeta,
|
|
7442
|
-
persistentId:
|
|
7498
|
+
persistentId: z261.string(),
|
|
7443
7499
|
type: ElementPropertyTypeSchema,
|
|
7444
7500
|
targetElementType: ElementPropertyTargetType,
|
|
7445
|
-
codeName:
|
|
7446
|
-
options: nullishToOptional(
|
|
7501
|
+
codeName: z261.string().regex(CODE_NAME_REGEX2),
|
|
7502
|
+
options: nullishToOptional(z261.array(DTOElementPropertyDefinitionOption)),
|
|
7447
7503
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7448
|
-
columnWidth:
|
|
7504
|
+
columnWidth: z261.number().max(1024).optional()
|
|
7449
7505
|
});
|
|
7450
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
7506
|
+
var DTOElementPropertyDefinitionUpdatePayload = z261.object({
|
|
7451
7507
|
meta: DTOObjectMeta.optional(),
|
|
7452
|
-
codeName:
|
|
7453
|
-
options:
|
|
7508
|
+
codeName: z261.string().regex(CODE_NAME_REGEX2).optional(),
|
|
7509
|
+
options: z261.array(DTOElementPropertyDefinitionOption).optional()
|
|
7454
7510
|
});
|
|
7455
7511
|
|
|
7456
7512
|
// src/api/dto/elements/properties/property-values.ts
|
|
7457
|
-
import { z as
|
|
7458
|
-
var DTOElementPropertyValue =
|
|
7459
|
-
id:
|
|
7460
|
-
designSystemVersionId:
|
|
7461
|
-
definitionId:
|
|
7462
|
-
targetElementId:
|
|
7463
|
-
value:
|
|
7464
|
-
valuePreview:
|
|
7465
|
-
});
|
|
7466
|
-
var DTOElementPropertyValueListResponse =
|
|
7467
|
-
values:
|
|
7468
|
-
});
|
|
7469
|
-
var DTOElementPropertyValueResponse =
|
|
7513
|
+
import { z as z262 } from "zod";
|
|
7514
|
+
var DTOElementPropertyValue = z262.object({
|
|
7515
|
+
id: z262.string(),
|
|
7516
|
+
designSystemVersionId: z262.string(),
|
|
7517
|
+
definitionId: z262.string(),
|
|
7518
|
+
targetElementId: z262.string(),
|
|
7519
|
+
value: z262.union([z262.string(), z262.number(), z262.boolean()]).optional(),
|
|
7520
|
+
valuePreview: z262.string().optional()
|
|
7521
|
+
});
|
|
7522
|
+
var DTOElementPropertyValueListResponse = z262.object({
|
|
7523
|
+
values: z262.array(DTOElementPropertyValue)
|
|
7524
|
+
});
|
|
7525
|
+
var DTOElementPropertyValueResponse = z262.object({
|
|
7470
7526
|
value: DTOElementPropertyValue
|
|
7471
7527
|
});
|
|
7472
|
-
var DTOElementPropertyValuesEditActionOutput =
|
|
7473
|
-
type:
|
|
7474
|
-
output:
|
|
7528
|
+
var DTOElementPropertyValuesEditActionOutput = z262.object({
|
|
7529
|
+
type: z262.literal("ElementPropertyValuesEdit"),
|
|
7530
|
+
output: z262.object({ success: z262.literal(true) })
|
|
7475
7531
|
});
|
|
7476
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
7477
|
-
definitionId:
|
|
7478
|
-
targetElementId:
|
|
7479
|
-
value:
|
|
7532
|
+
var DTOElementPropertyValueUpsertPaylod = z262.object({
|
|
7533
|
+
definitionId: z262.string(),
|
|
7534
|
+
targetElementId: z262.string(),
|
|
7535
|
+
value: z262.string().or(z262.number()).or(z262.boolean()).nullable()
|
|
7480
7536
|
});
|
|
7481
|
-
var DTOElementPropertyValuesEditActionInput =
|
|
7482
|
-
type:
|
|
7537
|
+
var DTOElementPropertyValuesEditActionInput = z262.object({
|
|
7538
|
+
type: z262.literal("ElementPropertyValuesEdit"),
|
|
7483
7539
|
values: DTOElementPropertyValueUpsertPaylod.array()
|
|
7484
7540
|
});
|
|
7485
7541
|
|
|
7486
7542
|
// src/api/dto/elements/elements-action-v2.ts
|
|
7487
|
-
import { z as
|
|
7488
|
-
var DTOElementActionOutput =
|
|
7543
|
+
import { z as z263 } from "zod";
|
|
7544
|
+
var DTOElementActionOutput = z263.discriminatedUnion("type", [
|
|
7489
7545
|
// Documentation pages
|
|
7490
7546
|
DTODocumentationPageCreateActionOutputV2,
|
|
7491
7547
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -7512,7 +7568,7 @@ var DTOElementActionOutput = z262.discriminatedUnion("type", [
|
|
|
7512
7568
|
// Element properties
|
|
7513
7569
|
DTOElementPropertyValuesEditActionOutput
|
|
7514
7570
|
]);
|
|
7515
|
-
var DTOElementActionInput =
|
|
7571
|
+
var DTOElementActionInput = z263.discriminatedUnion("type", [
|
|
7516
7572
|
// Documentation pages
|
|
7517
7573
|
DTODocumentationPageCreateActionInputV2,
|
|
7518
7574
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -7539,90 +7595,90 @@ var DTOElementActionInput = z262.discriminatedUnion("type", [
|
|
|
7539
7595
|
// Element properties
|
|
7540
7596
|
DTOElementPropertyValuesEditActionInput
|
|
7541
7597
|
]).and(
|
|
7542
|
-
|
|
7543
|
-
tId:
|
|
7598
|
+
z263.object({
|
|
7599
|
+
tId: z263.string().optional()
|
|
7544
7600
|
})
|
|
7545
7601
|
);
|
|
7546
7602
|
|
|
7547
7603
|
// src/api/dto/elements/get-elements-v2.ts
|
|
7548
|
-
import { z as
|
|
7549
|
-
var DTOElementsGetTypeFilter =
|
|
7550
|
-
var DTOElementsGetQuerySchema =
|
|
7551
|
-
types:
|
|
7552
|
-
responseVersion:
|
|
7604
|
+
import { z as z264 } from "zod";
|
|
7605
|
+
var DTOElementsGetTypeFilter = z264.enum(["FigmaNode"]);
|
|
7606
|
+
var DTOElementsGetQuerySchema = z264.object({
|
|
7607
|
+
types: z264.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
7608
|
+
responseVersion: z264.coerce.number().default(1)
|
|
7553
7609
|
});
|
|
7554
|
-
var DTOElementsGetOutput =
|
|
7555
|
-
figmaNodes:
|
|
7610
|
+
var DTOElementsGetOutput = z264.object({
|
|
7611
|
+
figmaNodes: z264.array(DTOFigmaNode).optional()
|
|
7556
7612
|
});
|
|
7557
|
-
var DTOElementsGetOutputV2 =
|
|
7558
|
-
figmaNodes:
|
|
7613
|
+
var DTOElementsGetOutputV2 = z264.object({
|
|
7614
|
+
figmaNodes: z264.array(DTOFigmaNodeV2).optional()
|
|
7559
7615
|
});
|
|
7560
7616
|
|
|
7561
7617
|
// src/api/dto/figma-components/assets/download.ts
|
|
7562
|
-
import { z as
|
|
7563
|
-
var DTOAssetRenderConfiguration =
|
|
7564
|
-
prefix:
|
|
7565
|
-
suffix:
|
|
7566
|
-
scale:
|
|
7567
|
-
format:
|
|
7568
|
-
});
|
|
7569
|
-
var DTORenderedAssetFile =
|
|
7570
|
-
assetId:
|
|
7571
|
-
fileName:
|
|
7572
|
-
sourceUrl:
|
|
7618
|
+
import { z as z265 } from "zod";
|
|
7619
|
+
var DTOAssetRenderConfiguration = z265.object({
|
|
7620
|
+
prefix: z265.string().optional(),
|
|
7621
|
+
suffix: z265.string().optional(),
|
|
7622
|
+
scale: z265.enum(["x1", "x2", "x3", "x4"]),
|
|
7623
|
+
format: z265.enum(["png", "pdf", "svg"])
|
|
7624
|
+
});
|
|
7625
|
+
var DTORenderedAssetFile = z265.object({
|
|
7626
|
+
assetId: z265.string(),
|
|
7627
|
+
fileName: z265.string(),
|
|
7628
|
+
sourceUrl: z265.string(),
|
|
7573
7629
|
settings: DTOAssetRenderConfiguration,
|
|
7574
|
-
originalName:
|
|
7630
|
+
originalName: z265.string()
|
|
7575
7631
|
});
|
|
7576
|
-
var DTODownloadAssetsRequest =
|
|
7577
|
-
persistentIds:
|
|
7632
|
+
var DTODownloadAssetsRequest = z265.object({
|
|
7633
|
+
persistentIds: z265.array(z265.string().uuid()).optional(),
|
|
7578
7634
|
settings: DTOAssetRenderConfiguration.array()
|
|
7579
7635
|
});
|
|
7580
|
-
var DTODownloadAssetsResponse =
|
|
7636
|
+
var DTODownloadAssetsResponse = z265.object({
|
|
7581
7637
|
items: DTORenderedAssetFile.array()
|
|
7582
7638
|
});
|
|
7583
7639
|
|
|
7584
7640
|
// src/api/dto/liveblocks/auth-response.ts
|
|
7585
|
-
import { z as
|
|
7586
|
-
var DTOLiveblocksAuthResponse =
|
|
7587
|
-
token:
|
|
7641
|
+
import { z as z266 } from "zod";
|
|
7642
|
+
var DTOLiveblocksAuthResponse = z266.object({
|
|
7643
|
+
token: z266.string()
|
|
7588
7644
|
});
|
|
7589
7645
|
|
|
7590
7646
|
// src/api/dto/themes/override.ts
|
|
7591
|
-
import { z as
|
|
7647
|
+
import { z as z267 } from "zod";
|
|
7592
7648
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
7593
|
-
|
|
7594
|
-
tokenPersistentId:
|
|
7649
|
+
z267.object({
|
|
7650
|
+
tokenPersistentId: z267.string(),
|
|
7595
7651
|
origin: ThemeOverrideOrigin.optional()
|
|
7596
7652
|
})
|
|
7597
7653
|
);
|
|
7598
7654
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
7599
|
-
|
|
7600
|
-
tokenPersistentId:
|
|
7655
|
+
z267.object({
|
|
7656
|
+
tokenPersistentId: z267.string()
|
|
7601
7657
|
})
|
|
7602
7658
|
);
|
|
7603
7659
|
|
|
7604
7660
|
// src/api/dto/themes/theme.ts
|
|
7605
|
-
import { z as
|
|
7606
|
-
var DTOTheme =
|
|
7607
|
-
id:
|
|
7608
|
-
persistentId:
|
|
7609
|
-
designSystemVersionId:
|
|
7610
|
-
brandId:
|
|
7661
|
+
import { z as z268 } from "zod";
|
|
7662
|
+
var DTOTheme = z268.object({
|
|
7663
|
+
id: z268.string(),
|
|
7664
|
+
persistentId: z268.string(),
|
|
7665
|
+
designSystemVersionId: z268.string(),
|
|
7666
|
+
brandId: z268.string(),
|
|
7611
7667
|
meta: ObjectMeta,
|
|
7612
|
-
codeName:
|
|
7668
|
+
codeName: z268.string(),
|
|
7613
7669
|
overrides: DTOThemeOverride.array()
|
|
7614
7670
|
});
|
|
7615
|
-
var DTOThemeResponse =
|
|
7671
|
+
var DTOThemeResponse = z268.object({
|
|
7616
7672
|
theme: DTOTheme
|
|
7617
7673
|
});
|
|
7618
|
-
var DTOThemeListResponse =
|
|
7674
|
+
var DTOThemeListResponse = z268.object({
|
|
7619
7675
|
themes: DTOTheme.array()
|
|
7620
7676
|
});
|
|
7621
|
-
var DTOThemeCreatePayload =
|
|
7677
|
+
var DTOThemeCreatePayload = z268.object({
|
|
7622
7678
|
meta: ObjectMeta,
|
|
7623
|
-
persistentId:
|
|
7624
|
-
brandId:
|
|
7625
|
-
codeName:
|
|
7679
|
+
persistentId: z268.string(),
|
|
7680
|
+
brandId: z268.string(),
|
|
7681
|
+
codeName: z268.string(),
|
|
7626
7682
|
overrides: DTOThemeOverride.array()
|
|
7627
7683
|
});
|
|
7628
7684
|
|
|
@@ -7858,13 +7914,13 @@ var ExportersEndpoint = class {
|
|
|
7858
7914
|
};
|
|
7859
7915
|
|
|
7860
7916
|
// src/api/endpoints/codegen/jobs.ts
|
|
7861
|
-
import { z as
|
|
7917
|
+
import { z as z269 } from "zod";
|
|
7862
7918
|
var ExporterJobsEndpoint = class {
|
|
7863
7919
|
constructor(requestExecutor) {
|
|
7864
7920
|
this.requestExecutor = requestExecutor;
|
|
7865
7921
|
}
|
|
7866
7922
|
list(workspaceId) {
|
|
7867
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
7923
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z269.any());
|
|
7868
7924
|
}
|
|
7869
7925
|
get(workspaceId, jobId) {
|
|
7870
7926
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -7922,7 +7978,7 @@ var CodegenEndpoint = class {
|
|
|
7922
7978
|
};
|
|
7923
7979
|
|
|
7924
7980
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
7925
|
-
import { z as
|
|
7981
|
+
import { z as z270 } from "zod";
|
|
7926
7982
|
var BrandsEndpoint = class {
|
|
7927
7983
|
constructor(requestExecutor) {
|
|
7928
7984
|
this.requestExecutor = requestExecutor;
|
|
@@ -7956,7 +8012,7 @@ var BrandsEndpoint = class {
|
|
|
7956
8012
|
});
|
|
7957
8013
|
}
|
|
7958
8014
|
delete(dsId, vId, brandId) {
|
|
7959
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
8015
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z270.any(), {
|
|
7960
8016
|
method: "DELETE"
|
|
7961
8017
|
});
|
|
7962
8018
|
}
|
|
@@ -8169,7 +8225,7 @@ var ImportJobsEndpoint = class {
|
|
|
8169
8225
|
};
|
|
8170
8226
|
|
|
8171
8227
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
8172
|
-
import { z as
|
|
8228
|
+
import { z as z271 } from "zod";
|
|
8173
8229
|
var OverridesEndpoint = class {
|
|
8174
8230
|
constructor(requestExecutor) {
|
|
8175
8231
|
this.requestExecutor = requestExecutor;
|
|
@@ -8177,7 +8233,7 @@ var OverridesEndpoint = class {
|
|
|
8177
8233
|
create(dsId, versionId, themeId, body) {
|
|
8178
8234
|
return this.requestExecutor.json(
|
|
8179
8235
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
8180
|
-
|
|
8236
|
+
z271.any(),
|
|
8181
8237
|
{
|
|
8182
8238
|
method: "POST",
|
|
8183
8239
|
body
|
|
@@ -8187,7 +8243,7 @@ var OverridesEndpoint = class {
|
|
|
8187
8243
|
};
|
|
8188
8244
|
|
|
8189
8245
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
8190
|
-
import { z as
|
|
8246
|
+
import { z as z272 } from "zod";
|
|
8191
8247
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
8192
8248
|
constructor(requestExecutor) {
|
|
8193
8249
|
this.requestExecutor = requestExecutor;
|
|
@@ -8215,7 +8271,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
8215
8271
|
delete(designSystemId, versionId, defId) {
|
|
8216
8272
|
return this.requestExecutor.json(
|
|
8217
8273
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
8218
|
-
|
|
8274
|
+
z272.any(),
|
|
8219
8275
|
{ method: "DELETE" }
|
|
8220
8276
|
);
|
|
8221
8277
|
}
|
|
@@ -8254,7 +8310,7 @@ var VersionStatsEndpoint = class {
|
|
|
8254
8310
|
};
|
|
8255
8311
|
|
|
8256
8312
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
8257
|
-
import { z as
|
|
8313
|
+
import { z as z273 } from "zod";
|
|
8258
8314
|
var ThemesEndpoint = class {
|
|
8259
8315
|
constructor(requestExecutor) {
|
|
8260
8316
|
this.requestExecutor = requestExecutor;
|
|
@@ -8277,7 +8333,7 @@ var ThemesEndpoint = class {
|
|
|
8277
8333
|
});
|
|
8278
8334
|
}
|
|
8279
8335
|
delete(dsId, versionId, themeId) {
|
|
8280
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
8336
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z273.any(), {
|
|
8281
8337
|
method: "DELETE"
|
|
8282
8338
|
});
|
|
8283
8339
|
}
|
|
@@ -8432,7 +8488,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
8432
8488
|
};
|
|
8433
8489
|
|
|
8434
8490
|
// src/api/endpoints/design-system/design-systems.ts
|
|
8435
|
-
import { z as
|
|
8491
|
+
import { z as z275 } from "zod";
|
|
8436
8492
|
|
|
8437
8493
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
8438
8494
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -8509,7 +8565,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
8509
8565
|
};
|
|
8510
8566
|
|
|
8511
8567
|
// src/api/endpoints/design-system/sources.ts
|
|
8512
|
-
import { z as
|
|
8568
|
+
import { z as z274 } from "zod";
|
|
8513
8569
|
var DesignSystemSourcesEndpoint = class {
|
|
8514
8570
|
constructor(requestExecutor) {
|
|
8515
8571
|
this.requestExecutor = requestExecutor;
|
|
@@ -8524,7 +8580,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8524
8580
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
8525
8581
|
}
|
|
8526
8582
|
delete(dsId, sourceId) {
|
|
8527
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
8583
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z274.any(), { method: "DELETE" });
|
|
8528
8584
|
}
|
|
8529
8585
|
figmaImport(dsId, payload) {
|
|
8530
8586
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
@@ -8563,7 +8619,7 @@ var DesignSystemsEndpoint = class {
|
|
|
8563
8619
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
8564
8620
|
}
|
|
8565
8621
|
delete(dsId) {
|
|
8566
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
8622
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z275.any(), { method: "DELETE" });
|
|
8567
8623
|
}
|
|
8568
8624
|
update(dsId, body) {
|
|
8569
8625
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -8580,7 +8636,7 @@ var DesignSystemsEndpoint = class {
|
|
|
8580
8636
|
};
|
|
8581
8637
|
|
|
8582
8638
|
// src/api/endpoints/workspaces/integrations.ts
|
|
8583
|
-
import { z as
|
|
8639
|
+
import { z as z276 } from "zod";
|
|
8584
8640
|
var WorkspaceIntegrationsEndpoint = class {
|
|
8585
8641
|
constructor(requestExecutor) {
|
|
8586
8642
|
this.requestExecutor = requestExecutor;
|
|
@@ -8589,7 +8645,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
8589
8645
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
8590
8646
|
}
|
|
8591
8647
|
delete(wsId, iId) {
|
|
8592
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
8648
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z276.unknown(), { method: "DELETE" });
|
|
8593
8649
|
}
|
|
8594
8650
|
};
|
|
8595
8651
|
|
|
@@ -8621,7 +8677,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
8621
8677
|
};
|
|
8622
8678
|
|
|
8623
8679
|
// src/api/endpoints/workspaces/members.ts
|
|
8624
|
-
import { z as
|
|
8680
|
+
import { z as z277 } from "zod";
|
|
8625
8681
|
var WorkspaceMembersEndpoint = class {
|
|
8626
8682
|
constructor(requestExecutor) {
|
|
8627
8683
|
this.requestExecutor = requestExecutor;
|
|
@@ -8638,7 +8694,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
8638
8694
|
});
|
|
8639
8695
|
}
|
|
8640
8696
|
invite(workspaceId, body) {
|
|
8641
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
8697
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z277.any(), { method: "POST", body });
|
|
8642
8698
|
}
|
|
8643
8699
|
delete(workspaceId, userId) {
|
|
8644
8700
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -8648,7 +8704,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
8648
8704
|
};
|
|
8649
8705
|
|
|
8650
8706
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
8651
|
-
import { z as
|
|
8707
|
+
import { z as z278 } from "zod";
|
|
8652
8708
|
var WorkspacesEndpoint = class {
|
|
8653
8709
|
constructor(requestExecutor) {
|
|
8654
8710
|
this.requestExecutor = requestExecutor;
|
|
@@ -8673,10 +8729,10 @@ var WorkspacesEndpoint = class {
|
|
|
8673
8729
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
8674
8730
|
}
|
|
8675
8731
|
delete(workspaceId) {
|
|
8676
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
8732
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z278.any(), { method: "DELETE" });
|
|
8677
8733
|
}
|
|
8678
8734
|
subscription(workspaceId) {
|
|
8679
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
8735
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z278.any(), { method: "GET" });
|
|
8680
8736
|
}
|
|
8681
8737
|
transferOwnership(workspaceId, body) {
|
|
8682
8738
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
@@ -8776,9 +8832,9 @@ ${bodyText}`,
|
|
|
8776
8832
|
|
|
8777
8833
|
// src/api/transport/request-executor.ts
|
|
8778
8834
|
import fetch from "node-fetch";
|
|
8779
|
-
import { z as
|
|
8780
|
-
var ResponseWrapper =
|
|
8781
|
-
result:
|
|
8835
|
+
import { z as z279 } from "zod";
|
|
8836
|
+
var ResponseWrapper = z279.object({
|
|
8837
|
+
result: z279.record(z279.any())
|
|
8782
8838
|
});
|
|
8783
8839
|
var RequestExecutor = class {
|
|
8784
8840
|
constructor(testServerConfig) {
|
|
@@ -8855,31 +8911,31 @@ var SupernovaApiClient = class {
|
|
|
8855
8911
|
};
|
|
8856
8912
|
|
|
8857
8913
|
// src/events/design-system.ts
|
|
8858
|
-
import { z as
|
|
8859
|
-
var DTOEventFigmaNodesRendered =
|
|
8860
|
-
type:
|
|
8861
|
-
designSystemId:
|
|
8862
|
-
versionId:
|
|
8863
|
-
figmaNodePersistentIds:
|
|
8864
|
-
});
|
|
8865
|
-
var DTOEventDataSourcesImported =
|
|
8866
|
-
type:
|
|
8867
|
-
designSystemId:
|
|
8868
|
-
versionId:
|
|
8869
|
-
importJobId:
|
|
8914
|
+
import { z as z280 } from "zod";
|
|
8915
|
+
var DTOEventFigmaNodesRendered = z280.object({
|
|
8916
|
+
type: z280.literal("DesignSystem.FigmaNodesRendered"),
|
|
8917
|
+
designSystemId: z280.string(),
|
|
8918
|
+
versionId: z280.string(),
|
|
8919
|
+
figmaNodePersistentIds: z280.string().array()
|
|
8920
|
+
});
|
|
8921
|
+
var DTOEventDataSourcesImported = z280.object({
|
|
8922
|
+
type: z280.literal("DesignSystem.ImportJobFinished"),
|
|
8923
|
+
designSystemId: z280.string(),
|
|
8924
|
+
versionId: z280.string(),
|
|
8925
|
+
importJobId: z280.string(),
|
|
8870
8926
|
dataSourceType: DataSourceRemoteType,
|
|
8871
|
-
dataSourceIds:
|
|
8927
|
+
dataSourceIds: z280.string().array()
|
|
8872
8928
|
});
|
|
8873
8929
|
|
|
8874
8930
|
// src/events/event.ts
|
|
8875
|
-
import { z as
|
|
8876
|
-
var DTOEvent =
|
|
8931
|
+
import { z as z281 } from "zod";
|
|
8932
|
+
var DTOEvent = z281.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
8877
8933
|
|
|
8878
8934
|
// src/sync/docs-structure-repo.ts
|
|
8879
8935
|
import PQueue from "p-queue";
|
|
8880
8936
|
|
|
8881
8937
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
8882
|
-
import { z as
|
|
8938
|
+
import { z as z282 } from "zod";
|
|
8883
8939
|
|
|
8884
8940
|
// src/yjs/version-room/base.ts
|
|
8885
8941
|
var VersionRoomBaseYDoc = class {
|
|
@@ -9444,24 +9500,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
9444
9500
|
};
|
|
9445
9501
|
|
|
9446
9502
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
9447
|
-
var DocumentationHierarchySettings =
|
|
9448
|
-
routingVersion:
|
|
9449
|
-
isDraftFeatureAdopted:
|
|
9450
|
-
isApprovalFeatureEnabled:
|
|
9451
|
-
approvalRequiredForPublishing:
|
|
9503
|
+
var DocumentationHierarchySettings = z282.object({
|
|
9504
|
+
routingVersion: z282.string(),
|
|
9505
|
+
isDraftFeatureAdopted: z282.boolean(),
|
|
9506
|
+
isApprovalFeatureEnabled: z282.boolean(),
|
|
9507
|
+
approvalRequiredForPublishing: z282.boolean()
|
|
9452
9508
|
});
|
|
9453
9509
|
function yjsToDocumentationHierarchy(doc) {
|
|
9454
9510
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
9455
9511
|
}
|
|
9456
9512
|
|
|
9457
9513
|
// src/yjs/design-system-content/item-configuration.ts
|
|
9458
|
-
import { z as
|
|
9459
|
-
var DTODocumentationPageRoomHeaderData =
|
|
9460
|
-
title:
|
|
9514
|
+
import { z as z283 } from "zod";
|
|
9515
|
+
var DTODocumentationPageRoomHeaderData = z283.object({
|
|
9516
|
+
title: z283.string(),
|
|
9461
9517
|
configuration: DTODocumentationItemConfigurationV2
|
|
9462
9518
|
});
|
|
9463
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
9464
|
-
title:
|
|
9519
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z283.object({
|
|
9520
|
+
title: z283.string().optional(),
|
|
9465
9521
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
9466
9522
|
});
|
|
9467
9523
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -9512,7 +9568,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
9512
9568
|
header: rawHeader
|
|
9513
9569
|
};
|
|
9514
9570
|
return {
|
|
9515
|
-
title:
|
|
9571
|
+
title: z283.string().parse(title),
|
|
9516
9572
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
9517
9573
|
};
|
|
9518
9574
|
}
|
|
@@ -9522,9 +9578,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
9522
9578
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
9523
9579
|
|
|
9524
9580
|
// src/yjs/docs-editor/model/page.ts
|
|
9525
|
-
import { z as
|
|
9526
|
-
var DocumentationPageEditorModel =
|
|
9527
|
-
blocks:
|
|
9581
|
+
import { z as z284 } from "zod";
|
|
9582
|
+
var DocumentationPageEditorModel = z284.object({
|
|
9583
|
+
blocks: z284.array(DocumentationPageContentItem)
|
|
9528
9584
|
});
|
|
9529
9585
|
|
|
9530
9586
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -13083,7 +13139,7 @@ var blocks = [
|
|
|
13083
13139
|
|
|
13084
13140
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
13085
13141
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
13086
|
-
import { z as
|
|
13142
|
+
import { z as z285 } from "zod";
|
|
13087
13143
|
function yDocToPage(yDoc, definitions) {
|
|
13088
13144
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
13089
13145
|
}
|
|
@@ -13163,7 +13219,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
13163
13219
|
return null;
|
|
13164
13220
|
return {
|
|
13165
13221
|
id,
|
|
13166
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
13222
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z285.string()) ?? "",
|
|
13167
13223
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
13168
13224
|
};
|
|
13169
13225
|
}
|
|
@@ -13198,7 +13254,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
13198
13254
|
});
|
|
13199
13255
|
}
|
|
13200
13256
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
13201
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
13257
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z285.string());
|
|
13202
13258
|
if (!definitionId) {
|
|
13203
13259
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
13204
13260
|
return [];
|
|
@@ -13240,7 +13296,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
13240
13296
|
if (!id)
|
|
13241
13297
|
return null;
|
|
13242
13298
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13243
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
13299
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z285.string().optional()));
|
|
13244
13300
|
return {
|
|
13245
13301
|
id,
|
|
13246
13302
|
type: "Block",
|
|
@@ -13368,10 +13424,10 @@ function parseRichTextAttribute(mark) {
|
|
|
13368
13424
|
return null;
|
|
13369
13425
|
}
|
|
13370
13426
|
function parseProsemirrorLink(mark) {
|
|
13371
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
13427
|
+
const href = getProsemirrorAttribute(mark, "href", z285.string().optional());
|
|
13372
13428
|
if (!href)
|
|
13373
13429
|
return null;
|
|
13374
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
13430
|
+
const target = getProsemirrorAttribute(mark, "target", z285.string().optional());
|
|
13375
13431
|
const openInNewTab = target === "_blank";
|
|
13376
13432
|
if (href.startsWith("@")) {
|
|
13377
13433
|
return {
|
|
@@ -13390,10 +13446,10 @@ function parseProsemirrorLink(mark) {
|
|
|
13390
13446
|
}
|
|
13391
13447
|
}
|
|
13392
13448
|
function parseProsemirrorCommentHighlight(mark) {
|
|
13393
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
13449
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z285.string().optional());
|
|
13394
13450
|
if (!highlightId)
|
|
13395
13451
|
return null;
|
|
13396
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
13452
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z285.boolean().optional()) ?? false;
|
|
13397
13453
|
return {
|
|
13398
13454
|
type: "Comment",
|
|
13399
13455
|
commentHighlightId: highlightId,
|
|
@@ -13405,7 +13461,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
13405
13461
|
if (!id)
|
|
13406
13462
|
return null;
|
|
13407
13463
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13408
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
13464
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z285.boolean().optional()) !== false;
|
|
13409
13465
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
13410
13466
|
if (!tableChild) {
|
|
13411
13467
|
return emptyTable(id, variantId, 0);
|
|
@@ -13452,9 +13508,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
13452
13508
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13453
13509
|
if (!id)
|
|
13454
13510
|
return null;
|
|
13455
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
13511
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z285.string().optional());
|
|
13456
13512
|
let columnWidth;
|
|
13457
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
13513
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z285.array(z285.number()).nullish());
|
|
13458
13514
|
if (columnWidthArray) {
|
|
13459
13515
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
13460
13516
|
}
|
|
@@ -13492,7 +13548,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
13492
13548
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
13493
13549
|
};
|
|
13494
13550
|
case "image":
|
|
13495
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
13551
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z285.string());
|
|
13496
13552
|
if (!items)
|
|
13497
13553
|
return null;
|
|
13498
13554
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -13612,7 +13668,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
13612
13668
|
);
|
|
13613
13669
|
}
|
|
13614
13670
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
13615
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
13671
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z285.string());
|
|
13616
13672
|
if (!itemsString)
|
|
13617
13673
|
return null;
|
|
13618
13674
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -13624,18 +13680,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
13624
13680
|
}
|
|
13625
13681
|
function parseAppearance(prosemirrorNode) {
|
|
13626
13682
|
let appearance = {};
|
|
13627
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
13683
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z285.string().optional());
|
|
13628
13684
|
if (rawAppearanceString) {
|
|
13629
13685
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
13630
13686
|
if (parsedAppearance.success) {
|
|
13631
13687
|
appearance = parsedAppearance.data;
|
|
13632
13688
|
}
|
|
13633
13689
|
}
|
|
13634
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
13690
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z285.number().optional());
|
|
13635
13691
|
if (columns) {
|
|
13636
13692
|
appearance.numberOfColumns = columns;
|
|
13637
13693
|
}
|
|
13638
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
13694
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z285.string().optional());
|
|
13639
13695
|
if (backgroundColor) {
|
|
13640
13696
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
13641
13697
|
if (parsedColor.success) {
|
|
@@ -13730,13 +13786,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
13730
13786
|
}
|
|
13731
13787
|
}
|
|
13732
13788
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
13733
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
13789
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z285.string());
|
|
13734
13790
|
if (!id)
|
|
13735
13791
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
13736
13792
|
return id;
|
|
13737
13793
|
}
|
|
13738
13794
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
13739
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
13795
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z285.string()));
|
|
13740
13796
|
}
|
|
13741
13797
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
13742
13798
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -14281,6 +14337,13 @@ export {
|
|
|
14281
14337
|
CodeComponentsEndpoint,
|
|
14282
14338
|
CodegenEndpoint,
|
|
14283
14339
|
Collection2 as Collection,
|
|
14340
|
+
DTOAnalyticsData,
|
|
14341
|
+
DTOAnalyticsDataResponse,
|
|
14342
|
+
DTOAnalyticsHeatmapData,
|
|
14343
|
+
DTOAnalyticsHeatmapDataEntry,
|
|
14344
|
+
DTOAnalyticsPerPageData,
|
|
14345
|
+
DTOAnalyticsViewsData,
|
|
14346
|
+
DTOAnalyticsViewsDataPoint,
|
|
14284
14347
|
DTOAppBootstrapDataQuery,
|
|
14285
14348
|
DTOAppBootstrapDataResponse,
|
|
14286
14349
|
DTOAssetRenderConfiguration,
|
|
@@ -14317,6 +14380,7 @@ export {
|
|
|
14317
14380
|
DTODataSourceResponse,
|
|
14318
14381
|
DTODataSourceTokenStudio,
|
|
14319
14382
|
DTODataSourcesListResponse,
|
|
14383
|
+
DTODay,
|
|
14320
14384
|
DTODeleteDocumentationGroupInput,
|
|
14321
14385
|
DTODeleteDocumentationPageInputV2,
|
|
14322
14386
|
DTODeleteDocumentationTabGroupInput,
|
|
@@ -14519,6 +14583,7 @@ export {
|
|
|
14519
14583
|
DTOGitOrganization,
|
|
14520
14584
|
DTOGitProject,
|
|
14521
14585
|
DTOGitRepository,
|
|
14586
|
+
DTOHour,
|
|
14522
14587
|
DTOImportJob,
|
|
14523
14588
|
DTOImportJobResponse,
|
|
14524
14589
|
DTOIntegration,
|