@supernova-studio/client 0.54.18 → 0.54.20
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 +2484 -12
- package/dist/index.d.ts +2484 -12
- package/dist/index.js +130 -106
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +550 -526
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/bff/app-bootstrap-data.ts +20 -0
- package/src/api/dto/bff/index.ts +1 -0
- package/src/api/dto/design-systems/design-system.ts +8 -3
- package/src/api/dto/index.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -4965,6 +4965,9 @@ var DTOPagination = z172.object({
|
|
|
4965
4965
|
offset: z172.string().optional()
|
|
4966
4966
|
});
|
|
4967
4967
|
|
|
4968
|
+
// src/api/dto/bff/app-bootstrap-data.ts
|
|
4969
|
+
import { z as z195 } from "zod";
|
|
4970
|
+
|
|
4968
4971
|
// src/api/dto/design-systems/brand.ts
|
|
4969
4972
|
import { z as z173 } from "zod";
|
|
4970
4973
|
var DTOBrand = z173.object({
|
|
@@ -5086,11 +5089,15 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5086
5089
|
}).extend({
|
|
5087
5090
|
meta: ObjectMeta,
|
|
5088
5091
|
docExporterId: z175.string(),
|
|
5089
|
-
sources: z175.array(z175.any())
|
|
5092
|
+
sources: z175.array(z175.any()),
|
|
5093
|
+
role: WorkspaceRoleSchema.optional()
|
|
5090
5094
|
});
|
|
5091
5095
|
var DTODesignSystemCreateResponse = z175.object({
|
|
5092
5096
|
designSystem: DTODesignSystem
|
|
5093
5097
|
});
|
|
5098
|
+
var DTODesignSystemsListResponse = z175.object({
|
|
5099
|
+
designSystems: DTODesignSystem.array()
|
|
5100
|
+
});
|
|
5094
5101
|
var DTODesignSystemCreateInput = z175.object({
|
|
5095
5102
|
workspaceId: z175.string(),
|
|
5096
5103
|
meta: ObjectMeta.optional(),
|
|
@@ -5395,20 +5402,138 @@ var DTOElementViewsListResponse = z189.object({
|
|
|
5395
5402
|
elementDataViews: z189.array(DTOElementView)
|
|
5396
5403
|
});
|
|
5397
5404
|
|
|
5398
|
-
// src/api/dto/
|
|
5405
|
+
// src/api/dto/workspaces/git.ts
|
|
5399
5406
|
import { z as z190 } from "zod";
|
|
5407
|
+
var DTOGitOrganization = z190.object({
|
|
5408
|
+
id: z190.string(),
|
|
5409
|
+
name: z190.string(),
|
|
5410
|
+
url: z190.string(),
|
|
5411
|
+
slug: z190.string()
|
|
5412
|
+
});
|
|
5413
|
+
var DTOGitProject = z190.object({
|
|
5414
|
+
id: z190.string(),
|
|
5415
|
+
name: z190.string(),
|
|
5416
|
+
url: z190.string(),
|
|
5417
|
+
slug: z190.string()
|
|
5418
|
+
});
|
|
5419
|
+
var DTOGitRepository = z190.object({
|
|
5420
|
+
id: z190.string(),
|
|
5421
|
+
name: z190.string(),
|
|
5422
|
+
url: z190.string(),
|
|
5423
|
+
slug: z190.string(),
|
|
5424
|
+
defaultBranch: z190.string().optional()
|
|
5425
|
+
});
|
|
5426
|
+
var DTOGitBranch = z190.object({
|
|
5427
|
+
name: z190.string(),
|
|
5428
|
+
lastCommitId: z190.string()
|
|
5429
|
+
});
|
|
5430
|
+
|
|
5431
|
+
// src/api/dto/workspaces/integrations.ts
|
|
5432
|
+
import { z as z191 } from "zod";
|
|
5433
|
+
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5434
|
+
accessToken: true,
|
|
5435
|
+
refreshToken: true
|
|
5436
|
+
});
|
|
5437
|
+
var DTOIntegration = z191.object({
|
|
5438
|
+
id: z191.string(),
|
|
5439
|
+
workspaceId: z191.string(),
|
|
5440
|
+
type: ExtendedIntegrationType,
|
|
5441
|
+
createdAt: z191.coerce.date(),
|
|
5442
|
+
integrationCredentials: z191.array(DTOIntegrationCredentials).optional(),
|
|
5443
|
+
integrationDesignSystems: z191.array(IntegrationDesignSystem).optional()
|
|
5444
|
+
});
|
|
5445
|
+
var DTOIntegrationOAuthGetResponse = z191.object({
|
|
5446
|
+
url: z191.string()
|
|
5447
|
+
});
|
|
5448
|
+
var DTOIntegrationPostResponse = z191.object({
|
|
5449
|
+
integration: DTOIntegration
|
|
5450
|
+
});
|
|
5451
|
+
var DTOIntegrationsGetListResponse = z191.object({
|
|
5452
|
+
integrations: DTOIntegration.array()
|
|
5453
|
+
});
|
|
5454
|
+
|
|
5455
|
+
// src/api/dto/workspaces/membership.ts
|
|
5456
|
+
import { z as z194 } from "zod";
|
|
5457
|
+
|
|
5458
|
+
// src/api/dto/workspaces/workspace.ts
|
|
5459
|
+
import { z as z193 } from "zod";
|
|
5460
|
+
|
|
5461
|
+
// src/api/dto/workspaces/npm-registry.ts
|
|
5462
|
+
import { z as z192 } from "zod";
|
|
5463
|
+
var DTONpmRegistryConfigConstants = {
|
|
5464
|
+
passwordPlaceholder: "redacted"
|
|
5465
|
+
};
|
|
5466
|
+
var DTONpmRegistryConfig = z192.object({
|
|
5467
|
+
// Registry basic configuration
|
|
5468
|
+
registryType: NpmRegistryType,
|
|
5469
|
+
registryUrl: z192.string(),
|
|
5470
|
+
customRegistryUrl: z192.string().optional(),
|
|
5471
|
+
// URL of Supernova NPM packages proxy
|
|
5472
|
+
proxyUrl: z192.string(),
|
|
5473
|
+
// Auth configuration
|
|
5474
|
+
authType: NpmRegistryAuthType,
|
|
5475
|
+
accessToken: z192.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5476
|
+
username: z192.string().optional(),
|
|
5477
|
+
password: z192.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5478
|
+
// NPM package scopes for whih the proxy should be enabled
|
|
5479
|
+
enabledScopes: z192.array(z192.string()),
|
|
5480
|
+
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5481
|
+
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5482
|
+
bypassProxy: z192.boolean()
|
|
5483
|
+
});
|
|
5484
|
+
|
|
5485
|
+
// src/api/dto/workspaces/workspace.ts
|
|
5486
|
+
var DTOWorkspace = z193.object({
|
|
5487
|
+
id: z193.string(),
|
|
5488
|
+
profile: WorkspaceProfile,
|
|
5489
|
+
subscription: Subscription,
|
|
5490
|
+
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5491
|
+
});
|
|
5492
|
+
|
|
5493
|
+
// src/api/dto/workspaces/membership.ts
|
|
5494
|
+
var DTOWorkspaceRole = z194.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
5495
|
+
var DTOUserWorkspaceMembership = z194.object({
|
|
5496
|
+
// Workspace the user is a member of
|
|
5497
|
+
workspace: DTOWorkspace,
|
|
5498
|
+
// Assigned role the user has in the workspace
|
|
5499
|
+
role: DTOWorkspaceRole,
|
|
5500
|
+
// Role that determines actual permissions the user has in the workspace
|
|
5501
|
+
// E.g. this is different from the default role when editors are downgraded to viewers
|
|
5502
|
+
// when a workspace's subscription is downgraded to free tier
|
|
5503
|
+
effectiveRole: DTOWorkspaceRole
|
|
5504
|
+
});
|
|
5505
|
+
var DTOUserWorkspaceMembershipsResponse = z194.object({
|
|
5506
|
+
membership: z194.array(DTOUserWorkspaceMembership)
|
|
5507
|
+
});
|
|
5508
|
+
|
|
5509
|
+
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5510
|
+
var DTOAppBootstrapDataQuery = z195.object({
|
|
5511
|
+
preferredWorkspaceId: z195.string().optional(),
|
|
5512
|
+
preferredDesignSystemId: z195.string().optional(),
|
|
5513
|
+
preferredVersionId: z195.string().optional(),
|
|
5514
|
+
preferredBrandId: z195.string().optional()
|
|
5515
|
+
});
|
|
5516
|
+
var DTOAppBootstrapDataResponse = z195.object({
|
|
5517
|
+
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
5518
|
+
designSystem: DTODesignSystem.optional(),
|
|
5519
|
+
version: DTODesignSystemVersion.optional(),
|
|
5520
|
+
brand: DTOBrand.optional()
|
|
5521
|
+
});
|
|
5522
|
+
|
|
5523
|
+
// src/api/dto/documentation/anchor.ts
|
|
5524
|
+
import { z as z196 } from "zod";
|
|
5400
5525
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
5401
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
5402
|
-
anchors:
|
|
5526
|
+
var DTOGetDocumentationPageAnchorsResponse = z196.object({
|
|
5527
|
+
anchors: z196.array(DTODocumentationPageAnchor)
|
|
5403
5528
|
});
|
|
5404
5529
|
|
|
5405
5530
|
// src/api/dto/documentation/approvals.ts
|
|
5406
|
-
import { z as
|
|
5531
|
+
import { z as z197 } from "zod";
|
|
5407
5532
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
5408
|
-
var DTODocumentationGroupApprovalState =
|
|
5409
|
-
persistentId:
|
|
5410
|
-
groupId:
|
|
5411
|
-
designSystemVersionId:
|
|
5533
|
+
var DTODocumentationGroupApprovalState = z197.object({
|
|
5534
|
+
persistentId: z197.string(),
|
|
5535
|
+
groupId: z197.string(),
|
|
5536
|
+
designSystemVersionId: z197.string(),
|
|
5412
5537
|
approvalState: DocumentationPageApprovalState
|
|
5413
5538
|
});
|
|
5414
5539
|
|
|
@@ -5416,68 +5541,68 @@ var DTODocumentationGroupApprovalState = z191.object({
|
|
|
5416
5541
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
5417
5542
|
|
|
5418
5543
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5419
|
-
import { z as
|
|
5544
|
+
import { z as z202 } from "zod";
|
|
5420
5545
|
|
|
5421
5546
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5422
|
-
import { z as
|
|
5547
|
+
import { z as z201 } from "zod";
|
|
5423
5548
|
|
|
5424
5549
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5425
|
-
import { z as
|
|
5550
|
+
import { z as z199 } from "zod";
|
|
5426
5551
|
|
|
5427
5552
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
5428
|
-
import { z as
|
|
5553
|
+
import { z as z198 } from "zod";
|
|
5429
5554
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5430
|
-
var DTODocumentationItemConfigurationV2 =
|
|
5431
|
-
showSidebar:
|
|
5432
|
-
isPrivate:
|
|
5433
|
-
isHidden:
|
|
5555
|
+
var DTODocumentationItemConfigurationV2 = z198.object({
|
|
5556
|
+
showSidebar: z198.boolean(),
|
|
5557
|
+
isPrivate: z198.boolean(),
|
|
5558
|
+
isHidden: z198.boolean(),
|
|
5434
5559
|
header: DTODocumentationItemHeaderV2
|
|
5435
5560
|
});
|
|
5436
5561
|
|
|
5437
5562
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5438
|
-
var DTODocumentationDraftChangeType =
|
|
5439
|
-
var DTODocumentationDraftStateCreated =
|
|
5440
|
-
changeType:
|
|
5441
|
-
});
|
|
5442
|
-
var DTODocumentationDraftStateUpdated =
|
|
5443
|
-
changeType:
|
|
5444
|
-
changes:
|
|
5445
|
-
previousTitle:
|
|
5563
|
+
var DTODocumentationDraftChangeType = z199.enum(["Created", "Updated", "Deleted"]);
|
|
5564
|
+
var DTODocumentationDraftStateCreated = z199.object({
|
|
5565
|
+
changeType: z199.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
5566
|
+
});
|
|
5567
|
+
var DTODocumentationDraftStateUpdated = z199.object({
|
|
5568
|
+
changeType: z199.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
5569
|
+
changes: z199.object({
|
|
5570
|
+
previousTitle: z199.string().optional(),
|
|
5446
5571
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
5447
|
-
previousContentHash:
|
|
5572
|
+
previousContentHash: z199.string().optional()
|
|
5448
5573
|
})
|
|
5449
5574
|
});
|
|
5450
|
-
var DTODocumentationDraftStateDeleted =
|
|
5451
|
-
changeType:
|
|
5452
|
-
deletedAt:
|
|
5453
|
-
deletedByUserId:
|
|
5575
|
+
var DTODocumentationDraftStateDeleted = z199.object({
|
|
5576
|
+
changeType: z199.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
5577
|
+
deletedAt: z199.coerce.date(),
|
|
5578
|
+
deletedByUserId: z199.string()
|
|
5454
5579
|
});
|
|
5455
|
-
var DTODocumentationDraftState =
|
|
5580
|
+
var DTODocumentationDraftState = z199.discriminatedUnion("changeType", [
|
|
5456
5581
|
DTODocumentationDraftStateCreated,
|
|
5457
5582
|
DTODocumentationDraftStateUpdated,
|
|
5458
5583
|
DTODocumentationDraftStateDeleted
|
|
5459
5584
|
]);
|
|
5460
5585
|
|
|
5461
5586
|
// src/api/dto/elements/documentation/metadata.ts
|
|
5462
|
-
import { z as
|
|
5463
|
-
var DTODocumentationPublishMetadata =
|
|
5464
|
-
lastPublishedByUserId:
|
|
5465
|
-
lastPublishedAt:
|
|
5587
|
+
import { z as z200 } from "zod";
|
|
5588
|
+
var DTODocumentationPublishMetadata = z200.object({
|
|
5589
|
+
lastPublishedByUserId: z200.string(),
|
|
5590
|
+
lastPublishedAt: z200.coerce.date()
|
|
5466
5591
|
});
|
|
5467
5592
|
|
|
5468
5593
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5469
|
-
var DTODocumentationPageV2 =
|
|
5470
|
-
id:
|
|
5471
|
-
persistentId:
|
|
5472
|
-
designSystemVersionId:
|
|
5473
|
-
title:
|
|
5594
|
+
var DTODocumentationPageV2 = z201.object({
|
|
5595
|
+
id: z201.string(),
|
|
5596
|
+
persistentId: z201.string(),
|
|
5597
|
+
designSystemVersionId: z201.string(),
|
|
5598
|
+
title: z201.string(),
|
|
5474
5599
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5475
|
-
shortPersistentId:
|
|
5476
|
-
slug:
|
|
5477
|
-
userSlug:
|
|
5478
|
-
createdAt:
|
|
5479
|
-
updatedAt:
|
|
5480
|
-
path:
|
|
5600
|
+
shortPersistentId: z201.string(),
|
|
5601
|
+
slug: z201.string().optional(),
|
|
5602
|
+
userSlug: z201.string().optional(),
|
|
5603
|
+
createdAt: z201.coerce.date(),
|
|
5604
|
+
updatedAt: z201.coerce.date(),
|
|
5605
|
+
path: z201.string(),
|
|
5481
5606
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5482
5607
|
draftState: DTODocumentationDraftState.optional(),
|
|
5483
5608
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -5485,197 +5610,197 @@ var DTODocumentationPageV2 = z195.object({
|
|
|
5485
5610
|
/** Defines the approval state of the documentation page */
|
|
5486
5611
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
5487
5612
|
// Backward compatibility
|
|
5488
|
-
type:
|
|
5613
|
+
type: z201.literal("Page")
|
|
5489
5614
|
});
|
|
5490
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5615
|
+
var DTOCreateDocumentationPageInputV2 = z201.object({
|
|
5491
5616
|
// Identifier
|
|
5492
|
-
persistentId:
|
|
5617
|
+
persistentId: z201.string().uuid(),
|
|
5493
5618
|
// Page properties
|
|
5494
|
-
title:
|
|
5619
|
+
title: z201.string(),
|
|
5495
5620
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5496
5621
|
// Page placement properties
|
|
5497
|
-
parentPersistentId:
|
|
5498
|
-
afterPersistentId:
|
|
5622
|
+
parentPersistentId: z201.string().uuid(),
|
|
5623
|
+
afterPersistentId: z201.string().uuid().nullish()
|
|
5499
5624
|
});
|
|
5500
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5625
|
+
var DTOUpdateDocumentationPageInputV2 = z201.object({
|
|
5501
5626
|
// Identifier of the group to update
|
|
5502
|
-
id:
|
|
5627
|
+
id: z201.string(),
|
|
5503
5628
|
// Page properties
|
|
5504
|
-
title:
|
|
5629
|
+
title: z201.string().optional(),
|
|
5505
5630
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5506
5631
|
});
|
|
5507
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5632
|
+
var DTOMoveDocumentationPageInputV2 = z201.object({
|
|
5508
5633
|
// Identifier of the group to update
|
|
5509
|
-
id:
|
|
5634
|
+
id: z201.string(),
|
|
5510
5635
|
// Page placement properties
|
|
5511
|
-
parentPersistentId:
|
|
5512
|
-
afterPersistentId:
|
|
5636
|
+
parentPersistentId: z201.string().uuid(),
|
|
5637
|
+
afterPersistentId: z201.string().uuid().nullish()
|
|
5513
5638
|
});
|
|
5514
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5639
|
+
var DTODuplicateDocumentationPageInputV2 = z201.object({
|
|
5515
5640
|
// Identifier of the page to duplicate from
|
|
5516
|
-
id:
|
|
5641
|
+
id: z201.string(),
|
|
5517
5642
|
// New page persistent id
|
|
5518
|
-
persistentId:
|
|
5643
|
+
persistentId: z201.string().uuid(),
|
|
5519
5644
|
// Page placement properties
|
|
5520
|
-
parentPersistentId:
|
|
5521
|
-
afterPersistentId:
|
|
5645
|
+
parentPersistentId: z201.string().uuid(),
|
|
5646
|
+
afterPersistentId: z201.string().uuid().nullish()
|
|
5522
5647
|
});
|
|
5523
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5648
|
+
var DTODeleteDocumentationPageInputV2 = z201.object({
|
|
5524
5649
|
// Identifier
|
|
5525
|
-
id:
|
|
5650
|
+
id: z201.string()
|
|
5526
5651
|
});
|
|
5527
|
-
var DTORestoreDocumentationPageInput =
|
|
5528
|
-
persistentId:
|
|
5529
|
-
snapshotId:
|
|
5652
|
+
var DTORestoreDocumentationPageInput = z201.object({
|
|
5653
|
+
persistentId: z201.string(),
|
|
5654
|
+
snapshotId: z201.string().optional()
|
|
5530
5655
|
});
|
|
5531
|
-
var DTORestoreDocumentationGroupInput =
|
|
5532
|
-
persistentId:
|
|
5533
|
-
snapshotId:
|
|
5656
|
+
var DTORestoreDocumentationGroupInput = z201.object({
|
|
5657
|
+
persistentId: z201.string(),
|
|
5658
|
+
snapshotId: z201.string().optional()
|
|
5534
5659
|
});
|
|
5535
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
5536
|
-
persistentId:
|
|
5660
|
+
var DTODocumentationPageApprovalStateChangeInput = z201.object({
|
|
5661
|
+
persistentId: z201.string(),
|
|
5537
5662
|
approvalState: DocumentationPageApprovalState.optional()
|
|
5538
5663
|
});
|
|
5539
5664
|
|
|
5540
5665
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5541
|
-
var DTODocumentationPageSnapshot =
|
|
5542
|
-
id:
|
|
5543
|
-
designSystemVersionId:
|
|
5544
|
-
createdAt:
|
|
5545
|
-
updatedAt:
|
|
5666
|
+
var DTODocumentationPageSnapshot = z202.object({
|
|
5667
|
+
id: z202.string(),
|
|
5668
|
+
designSystemVersionId: z202.string(),
|
|
5669
|
+
createdAt: z202.string(),
|
|
5670
|
+
updatedAt: z202.string(),
|
|
5546
5671
|
documentationPage: DTODocumentationPageV2,
|
|
5547
|
-
pageContentHash:
|
|
5672
|
+
pageContentHash: z202.string(),
|
|
5548
5673
|
reason: DesignElementSnapshotReason
|
|
5549
5674
|
});
|
|
5550
5675
|
|
|
5551
5676
|
// src/api/dto/documentation/link-preview.ts
|
|
5552
|
-
import { z as
|
|
5553
|
-
var DTODocumentationLinkPreviewResponse =
|
|
5677
|
+
import { z as z203 } from "zod";
|
|
5678
|
+
var DTODocumentationLinkPreviewResponse = z203.object({
|
|
5554
5679
|
linkPreview: DocumentationLinkPreview
|
|
5555
5680
|
});
|
|
5556
|
-
var DTODocumentationLinkPreviewRequest =
|
|
5557
|
-
url:
|
|
5558
|
-
documentationItemPersistentId:
|
|
5681
|
+
var DTODocumentationLinkPreviewRequest = z203.object({
|
|
5682
|
+
url: z203.string().optional(),
|
|
5683
|
+
documentationItemPersistentId: z203.string().optional()
|
|
5559
5684
|
});
|
|
5560
5685
|
|
|
5561
5686
|
// src/api/dto/documentation/publish.ts
|
|
5562
|
-
import { z as
|
|
5687
|
+
import { z as z207 } from "zod";
|
|
5563
5688
|
|
|
5564
5689
|
// src/api/dto/export/exporter.ts
|
|
5565
|
-
import { z as
|
|
5566
|
-
var DTOExporterType =
|
|
5567
|
-
var DTOExporterSource =
|
|
5568
|
-
var DTOExporterMembershipRole =
|
|
5569
|
-
var DTOExporter =
|
|
5570
|
-
id:
|
|
5571
|
-
name:
|
|
5572
|
-
isPrivate:
|
|
5690
|
+
import { z as z204 } from "zod";
|
|
5691
|
+
var DTOExporterType = z204.enum(["documentation", "code"]);
|
|
5692
|
+
var DTOExporterSource = z204.enum(["git", "upload"]);
|
|
5693
|
+
var DTOExporterMembershipRole = z204.enum(["Owner", "OwnerArchived", "User"]);
|
|
5694
|
+
var DTOExporter = z204.object({
|
|
5695
|
+
id: z204.string(),
|
|
5696
|
+
name: z204.string(),
|
|
5697
|
+
isPrivate: z204.boolean(),
|
|
5573
5698
|
exporterType: DTOExporterType,
|
|
5574
|
-
isDefaultDocumentationExporter:
|
|
5575
|
-
iconURL:
|
|
5699
|
+
isDefaultDocumentationExporter: z204.boolean(),
|
|
5700
|
+
iconURL: z204.string().optional(),
|
|
5576
5701
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5577
5702
|
customBlocks: PulsarCustomBlock.array(),
|
|
5578
|
-
blockVariants:
|
|
5579
|
-
usesBrands:
|
|
5580
|
-
usesThemes:
|
|
5703
|
+
blockVariants: z204.record(z204.string(), PulsarContributionVariant.array()),
|
|
5704
|
+
usesBrands: z204.boolean(),
|
|
5705
|
+
usesThemes: z204.boolean(),
|
|
5581
5706
|
source: DTOExporterSource,
|
|
5582
|
-
gitUrl:
|
|
5583
|
-
gitBranch:
|
|
5584
|
-
gitDirectory:
|
|
5707
|
+
gitUrl: z204.string().optional(),
|
|
5708
|
+
gitBranch: z204.string().optional(),
|
|
5709
|
+
gitDirectory: z204.string().optional()
|
|
5585
5710
|
});
|
|
5586
|
-
var DTOExporterMembership =
|
|
5587
|
-
workspaceId:
|
|
5588
|
-
exporterId:
|
|
5711
|
+
var DTOExporterMembership = z204.object({
|
|
5712
|
+
workspaceId: z204.string(),
|
|
5713
|
+
exporterId: z204.string(),
|
|
5589
5714
|
role: DTOExporterMembershipRole
|
|
5590
5715
|
});
|
|
5591
|
-
var DTOExporterCreateOutput =
|
|
5716
|
+
var DTOExporterCreateOutput = z204.object({
|
|
5592
5717
|
exporter: DTOExporter,
|
|
5593
5718
|
membership: DTOExporterMembership
|
|
5594
5719
|
});
|
|
5595
|
-
var DTOExporterGitProviderEnum =
|
|
5596
|
-
var DTOExporterCreateInput =
|
|
5597
|
-
url:
|
|
5720
|
+
var DTOExporterGitProviderEnum = z204.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5721
|
+
var DTOExporterCreateInput = z204.object({
|
|
5722
|
+
url: z204.string(),
|
|
5598
5723
|
provider: DTOExporterGitProviderEnum
|
|
5599
5724
|
});
|
|
5600
|
-
var DTOExporterUpdateInput =
|
|
5601
|
-
url:
|
|
5725
|
+
var DTOExporterUpdateInput = z204.object({
|
|
5726
|
+
url: z204.string().optional()
|
|
5602
5727
|
});
|
|
5603
5728
|
|
|
5604
5729
|
// src/api/dto/export/filter.ts
|
|
5605
5730
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
5606
5731
|
|
|
5607
5732
|
// src/api/dto/export/job.ts
|
|
5608
|
-
import { z as
|
|
5609
|
-
var DTOExportJobCreatedBy =
|
|
5610
|
-
userId:
|
|
5611
|
-
userName:
|
|
5733
|
+
import { z as z205 } from "zod";
|
|
5734
|
+
var DTOExportJobCreatedBy = z205.object({
|
|
5735
|
+
userId: z205.string(),
|
|
5736
|
+
userName: z205.string()
|
|
5612
5737
|
});
|
|
5613
|
-
var DTOExportJobDesignSystemPreview =
|
|
5614
|
-
id:
|
|
5738
|
+
var DTOExportJobDesignSystemPreview = z205.object({
|
|
5739
|
+
id: z205.string(),
|
|
5615
5740
|
meta: ObjectMeta
|
|
5616
5741
|
});
|
|
5617
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5618
|
-
id:
|
|
5742
|
+
var DTOExportJobDesignSystemVersionPreview = z205.object({
|
|
5743
|
+
id: z205.string(),
|
|
5619
5744
|
meta: ObjectMeta,
|
|
5620
|
-
version:
|
|
5621
|
-
isReadonly:
|
|
5745
|
+
version: z205.string(),
|
|
5746
|
+
isReadonly: z205.boolean()
|
|
5622
5747
|
});
|
|
5623
|
-
var DTOExportJobDestinations =
|
|
5748
|
+
var DTOExportJobDestinations = z205.object({
|
|
5624
5749
|
s3: ExporterDestinationS3.optional(),
|
|
5625
5750
|
azure: ExporterDestinationAzure.optional(),
|
|
5626
5751
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5627
5752
|
github: ExporterDestinationGithub.optional(),
|
|
5628
5753
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5629
5754
|
documentation: ExporterDestinationDocs.optional(),
|
|
5630
|
-
webhookUrl:
|
|
5755
|
+
webhookUrl: z205.string().optional()
|
|
5631
5756
|
});
|
|
5632
5757
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
5633
5758
|
sndocs: true
|
|
5634
5759
|
}).extend({
|
|
5635
5760
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
5636
5761
|
});
|
|
5637
|
-
var DTOExportJob =
|
|
5638
|
-
id:
|
|
5639
|
-
createdAt:
|
|
5640
|
-
finishedAt:
|
|
5641
|
-
index:
|
|
5762
|
+
var DTOExportJob = z205.object({
|
|
5763
|
+
id: z205.string(),
|
|
5764
|
+
createdAt: z205.coerce.date(),
|
|
5765
|
+
finishedAt: z205.coerce.date().optional(),
|
|
5766
|
+
index: z205.number().optional(),
|
|
5642
5767
|
status: ExportJobStatus,
|
|
5643
|
-
estimatedExecutionTime:
|
|
5768
|
+
estimatedExecutionTime: z205.number().optional(),
|
|
5644
5769
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5645
5770
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5646
5771
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5647
5772
|
destinations: DTOExportJobDestinations,
|
|
5648
|
-
exporterId:
|
|
5649
|
-
scheduleId:
|
|
5773
|
+
exporterId: z205.string(),
|
|
5774
|
+
scheduleId: z205.string().optional(),
|
|
5650
5775
|
result: DTOExportJobResult.optional(),
|
|
5651
|
-
brandPersistentId:
|
|
5652
|
-
themePersistentId:
|
|
5653
|
-
themePersistentIds:
|
|
5776
|
+
brandPersistentId: z205.string().optional(),
|
|
5777
|
+
themePersistentId: z205.string().optional(),
|
|
5778
|
+
themePersistentIds: z205.string().array().optional()
|
|
5654
5779
|
});
|
|
5655
|
-
var DTOExportJobResponse =
|
|
5780
|
+
var DTOExportJobResponse = z205.object({
|
|
5656
5781
|
job: DTOExportJob
|
|
5657
5782
|
});
|
|
5658
5783
|
|
|
5659
5784
|
// src/api/dto/export/pipeline.ts
|
|
5660
|
-
import { z as
|
|
5661
|
-
var DTOPipeline =
|
|
5662
|
-
id:
|
|
5663
|
-
name:
|
|
5785
|
+
import { z as z206 } from "zod";
|
|
5786
|
+
var DTOPipeline = z206.object({
|
|
5787
|
+
id: z206.string(),
|
|
5788
|
+
name: z206.string(),
|
|
5664
5789
|
eventType: PipelineEventType,
|
|
5665
|
-
isEnabled:
|
|
5666
|
-
workspaceId:
|
|
5667
|
-
designSystemId:
|
|
5668
|
-
exporterId:
|
|
5669
|
-
brandPersistentId:
|
|
5670
|
-
themePersistentId:
|
|
5671
|
-
themePersistentIds:
|
|
5790
|
+
isEnabled: z206.boolean(),
|
|
5791
|
+
workspaceId: z206.string(),
|
|
5792
|
+
designSystemId: z206.string(),
|
|
5793
|
+
exporterId: z206.string(),
|
|
5794
|
+
brandPersistentId: z206.string().optional(),
|
|
5795
|
+
themePersistentId: z206.string().optional(),
|
|
5796
|
+
themePersistentIds: z206.string().array().optional(),
|
|
5672
5797
|
...ExportDestinationsMap.shape,
|
|
5673
5798
|
latestJobs: DTOExportJob.array()
|
|
5674
5799
|
});
|
|
5675
5800
|
|
|
5676
5801
|
// src/api/dto/documentation/publish.ts
|
|
5677
5802
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
5678
|
-
var DTOPublishDocumentationRequest =
|
|
5803
|
+
var DTOPublishDocumentationRequest = z207.object({
|
|
5679
5804
|
environment: PublishedDocEnvironment,
|
|
5680
5805
|
/**
|
|
5681
5806
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -5683,42 +5808,42 @@ var DTOPublishDocumentationRequest = z201.object({
|
|
|
5683
5808
|
*/
|
|
5684
5809
|
changes: DTOPublishDocumentationChanges.optional()
|
|
5685
5810
|
});
|
|
5686
|
-
var DTOPublishDocumentationResponse =
|
|
5811
|
+
var DTOPublishDocumentationResponse = z207.object({
|
|
5687
5812
|
job: DTOExportJob
|
|
5688
5813
|
});
|
|
5689
5814
|
|
|
5690
5815
|
// src/api/dto/elements/components/figma-component.ts
|
|
5691
|
-
import { z as
|
|
5816
|
+
import { z as z208 } from "zod";
|
|
5692
5817
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
5693
|
-
var DTOFigmaComponentPropertyMap =
|
|
5694
|
-
var DTOFigmaComponent =
|
|
5695
|
-
id:
|
|
5696
|
-
persistentId:
|
|
5697
|
-
designSystemVersionId:
|
|
5698
|
-
brandId:
|
|
5699
|
-
thumbnailUrl:
|
|
5700
|
-
svgUrl:
|
|
5701
|
-
exportProperties:
|
|
5702
|
-
isAsset:
|
|
5818
|
+
var DTOFigmaComponentPropertyMap = z208.record(DTOFigmaComponentProperty);
|
|
5819
|
+
var DTOFigmaComponent = z208.object({
|
|
5820
|
+
id: z208.string(),
|
|
5821
|
+
persistentId: z208.string(),
|
|
5822
|
+
designSystemVersionId: z208.string(),
|
|
5823
|
+
brandId: z208.string(),
|
|
5824
|
+
thumbnailUrl: z208.string().optional(),
|
|
5825
|
+
svgUrl: z208.string().optional(),
|
|
5826
|
+
exportProperties: z208.object({
|
|
5827
|
+
isAsset: z208.boolean()
|
|
5703
5828
|
}),
|
|
5704
|
-
createdAt:
|
|
5705
|
-
updatedAt:
|
|
5829
|
+
createdAt: z208.coerce.date(),
|
|
5830
|
+
updatedAt: z208.coerce.date(),
|
|
5706
5831
|
meta: ObjectMeta,
|
|
5707
5832
|
originComponent: FigmaComponentOrigin.optional(),
|
|
5708
|
-
parentComponentPersistentId:
|
|
5709
|
-
childrenPersistentIds:
|
|
5833
|
+
parentComponentPersistentId: z208.string().optional(),
|
|
5834
|
+
childrenPersistentIds: z208.string().array().optional(),
|
|
5710
5835
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
5711
|
-
variantPropertyValues:
|
|
5836
|
+
variantPropertyValues: z208.record(z208.string()).optional()
|
|
5712
5837
|
});
|
|
5713
|
-
var DTOFigmaComponentListResponse =
|
|
5838
|
+
var DTOFigmaComponentListResponse = z208.object({
|
|
5714
5839
|
components: DTOFigmaComponent.array()
|
|
5715
5840
|
});
|
|
5716
5841
|
|
|
5717
5842
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5718
|
-
import { z as
|
|
5843
|
+
import { z as z210 } from "zod";
|
|
5719
5844
|
|
|
5720
5845
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
5721
|
-
import { z as
|
|
5846
|
+
import { z as z209 } from "zod";
|
|
5722
5847
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
5723
5848
|
sortOrder: true,
|
|
5724
5849
|
parentPersistentId: true,
|
|
@@ -5728,13 +5853,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
5728
5853
|
data: true,
|
|
5729
5854
|
shortPersistentId: true
|
|
5730
5855
|
}).extend({
|
|
5731
|
-
title:
|
|
5732
|
-
isRoot:
|
|
5733
|
-
childrenIds:
|
|
5856
|
+
title: z209.string(),
|
|
5857
|
+
isRoot: z209.boolean(),
|
|
5858
|
+
childrenIds: z209.array(z209.string()),
|
|
5734
5859
|
groupBehavior: DocumentationGroupBehavior,
|
|
5735
|
-
shortPersistentId:
|
|
5860
|
+
shortPersistentId: z209.string(),
|
|
5736
5861
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5737
|
-
type:
|
|
5862
|
+
type: z209.literal("Group"),
|
|
5738
5863
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
5739
5864
|
draftState: DTODocumentationDraftState.optional(),
|
|
5740
5865
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -5742,127 +5867,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
5742
5867
|
//** An approval state for frontend to utilize. */
|
|
5743
5868
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
5744
5869
|
});
|
|
5745
|
-
var DTOCreateDocumentationGroupInput =
|
|
5870
|
+
var DTOCreateDocumentationGroupInput = z209.object({
|
|
5746
5871
|
// Identifier
|
|
5747
|
-
persistentId:
|
|
5872
|
+
persistentId: z209.string().uuid(),
|
|
5748
5873
|
// Group properties
|
|
5749
|
-
title:
|
|
5874
|
+
title: z209.string(),
|
|
5750
5875
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5751
5876
|
// Group placement properties
|
|
5752
|
-
afterPersistentId:
|
|
5753
|
-
parentPersistentId:
|
|
5877
|
+
afterPersistentId: z209.string().uuid().nullish(),
|
|
5878
|
+
parentPersistentId: z209.string().uuid()
|
|
5754
5879
|
});
|
|
5755
|
-
var DTOUpdateDocumentationGroupInput =
|
|
5880
|
+
var DTOUpdateDocumentationGroupInput = z209.object({
|
|
5756
5881
|
// Identifier of the group to update
|
|
5757
|
-
id:
|
|
5882
|
+
id: z209.string(),
|
|
5758
5883
|
// Group properties
|
|
5759
|
-
title:
|
|
5884
|
+
title: z209.string().optional(),
|
|
5760
5885
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5761
5886
|
});
|
|
5762
|
-
var DTOMoveDocumentationGroupInput =
|
|
5887
|
+
var DTOMoveDocumentationGroupInput = z209.object({
|
|
5763
5888
|
// Identifier of the group to update
|
|
5764
|
-
id:
|
|
5889
|
+
id: z209.string(),
|
|
5765
5890
|
// Group placement properties
|
|
5766
|
-
parentPersistentId:
|
|
5767
|
-
afterPersistentId:
|
|
5891
|
+
parentPersistentId: z209.string().uuid(),
|
|
5892
|
+
afterPersistentId: z209.string().uuid().nullish()
|
|
5768
5893
|
});
|
|
5769
|
-
var DTODuplicateDocumentationGroupInput =
|
|
5894
|
+
var DTODuplicateDocumentationGroupInput = z209.object({
|
|
5770
5895
|
// Identifier of the group to duplicate from
|
|
5771
|
-
id:
|
|
5896
|
+
id: z209.string(),
|
|
5772
5897
|
// New group persistent id
|
|
5773
|
-
persistentId:
|
|
5898
|
+
persistentId: z209.string().uuid(),
|
|
5774
5899
|
// Group placement properties
|
|
5775
|
-
afterPersistentId:
|
|
5776
|
-
parentPersistentId:
|
|
5900
|
+
afterPersistentId: z209.string().uuid().nullish(),
|
|
5901
|
+
parentPersistentId: z209.string().uuid()
|
|
5777
5902
|
});
|
|
5778
|
-
var DTOCreateDocumentationTabInput =
|
|
5903
|
+
var DTOCreateDocumentationTabInput = z209.object({
|
|
5779
5904
|
// New group persistent id
|
|
5780
|
-
persistentId:
|
|
5905
|
+
persistentId: z209.string().uuid(),
|
|
5781
5906
|
// If this is page, we will attempt to convert it to tab
|
|
5782
5907
|
// If this is tab group, we will add a new tab to it
|
|
5783
|
-
fromItemPersistentId:
|
|
5784
|
-
tabName:
|
|
5908
|
+
fromItemPersistentId: z209.string(),
|
|
5909
|
+
tabName: z209.string()
|
|
5785
5910
|
});
|
|
5786
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
5911
|
+
var DTODeleteDocumentationTabGroupInput = z209.object({
|
|
5787
5912
|
// Deleted group id
|
|
5788
|
-
id:
|
|
5913
|
+
id: z209.string()
|
|
5789
5914
|
});
|
|
5790
|
-
var DTODeleteDocumentationGroupInput =
|
|
5915
|
+
var DTODeleteDocumentationGroupInput = z209.object({
|
|
5791
5916
|
// Identifier
|
|
5792
|
-
id:
|
|
5917
|
+
id: z209.string(),
|
|
5793
5918
|
// Deletion options
|
|
5794
|
-
deleteSubtree:
|
|
5919
|
+
deleteSubtree: z209.boolean().default(false)
|
|
5795
5920
|
});
|
|
5796
5921
|
|
|
5797
5922
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5798
|
-
var SuccessPayload =
|
|
5799
|
-
success:
|
|
5923
|
+
var SuccessPayload = z210.object({
|
|
5924
|
+
success: z210.literal(true)
|
|
5800
5925
|
});
|
|
5801
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
5802
|
-
type:
|
|
5926
|
+
var DTODocumentationGroupCreateActionOutputV2 = z210.object({
|
|
5927
|
+
type: z210.literal("DocumentationGroupCreate"),
|
|
5803
5928
|
output: SuccessPayload
|
|
5804
5929
|
});
|
|
5805
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
5806
|
-
type:
|
|
5930
|
+
var DTODocumentationTabCreateActionOutputV2 = z210.object({
|
|
5931
|
+
type: z210.literal("DocumentationTabCreate"),
|
|
5807
5932
|
output: SuccessPayload
|
|
5808
5933
|
});
|
|
5809
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
5810
|
-
type:
|
|
5934
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z210.object({
|
|
5935
|
+
type: z210.literal("DocumentationGroupUpdate"),
|
|
5811
5936
|
output: SuccessPayload
|
|
5812
5937
|
});
|
|
5813
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
5814
|
-
type:
|
|
5938
|
+
var DTODocumentationGroupMoveActionOutputV2 = z210.object({
|
|
5939
|
+
type: z210.literal("DocumentationGroupMove"),
|
|
5815
5940
|
output: SuccessPayload
|
|
5816
5941
|
});
|
|
5817
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
5818
|
-
type:
|
|
5942
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z210.object({
|
|
5943
|
+
type: z210.literal("DocumentationGroupDuplicate"),
|
|
5819
5944
|
output: SuccessPayload
|
|
5820
5945
|
});
|
|
5821
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
5822
|
-
type:
|
|
5946
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z210.object({
|
|
5947
|
+
type: z210.literal("DocumentationGroupDelete"),
|
|
5823
5948
|
output: SuccessPayload
|
|
5824
5949
|
});
|
|
5825
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
5826
|
-
type:
|
|
5950
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z210.object({
|
|
5951
|
+
type: z210.literal("DocumentationTabGroupDelete"),
|
|
5827
5952
|
output: SuccessPayload
|
|
5828
5953
|
});
|
|
5829
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
5830
|
-
type:
|
|
5954
|
+
var DTODocumentationGroupCreateActionInputV2 = z210.object({
|
|
5955
|
+
type: z210.literal("DocumentationGroupCreate"),
|
|
5831
5956
|
input: DTOCreateDocumentationGroupInput
|
|
5832
5957
|
});
|
|
5833
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
5834
|
-
type:
|
|
5958
|
+
var DTODocumentationTabCreateActionInputV2 = z210.object({
|
|
5959
|
+
type: z210.literal("DocumentationTabCreate"),
|
|
5835
5960
|
input: DTOCreateDocumentationTabInput
|
|
5836
5961
|
});
|
|
5837
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
5838
|
-
type:
|
|
5962
|
+
var DTODocumentationGroupUpdateActionInputV2 = z210.object({
|
|
5963
|
+
type: z210.literal("DocumentationGroupUpdate"),
|
|
5839
5964
|
input: DTOUpdateDocumentationGroupInput
|
|
5840
5965
|
});
|
|
5841
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
5842
|
-
type:
|
|
5966
|
+
var DTODocumentationGroupMoveActionInputV2 = z210.object({
|
|
5967
|
+
type: z210.literal("DocumentationGroupMove"),
|
|
5843
5968
|
input: DTOMoveDocumentationGroupInput
|
|
5844
5969
|
});
|
|
5845
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
5846
|
-
type:
|
|
5970
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z210.object({
|
|
5971
|
+
type: z210.literal("DocumentationGroupDuplicate"),
|
|
5847
5972
|
input: DTODuplicateDocumentationGroupInput
|
|
5848
5973
|
});
|
|
5849
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
5850
|
-
type:
|
|
5974
|
+
var DTODocumentationGroupDeleteActionInputV2 = z210.object({
|
|
5975
|
+
type: z210.literal("DocumentationGroupDelete"),
|
|
5851
5976
|
input: DTODeleteDocumentationGroupInput
|
|
5852
5977
|
});
|
|
5853
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
5854
|
-
type:
|
|
5978
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z210.object({
|
|
5979
|
+
type: z210.literal("DocumentationTabGroupDelete"),
|
|
5855
5980
|
input: DTODeleteDocumentationTabGroupInput
|
|
5856
5981
|
});
|
|
5857
5982
|
|
|
5858
5983
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
5859
|
-
import { z as
|
|
5984
|
+
import { z as z212 } from "zod";
|
|
5860
5985
|
|
|
5861
5986
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
5862
|
-
import { z as
|
|
5863
|
-
var DocumentationColorV1 =
|
|
5864
|
-
aliasTo:
|
|
5865
|
-
value:
|
|
5987
|
+
import { z as z211 } from "zod";
|
|
5988
|
+
var DocumentationColorV1 = z211.object({
|
|
5989
|
+
aliasTo: z211.string().optional(),
|
|
5990
|
+
value: z211.string().optional()
|
|
5866
5991
|
});
|
|
5867
5992
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
5868
5993
|
foregroundColor: true,
|
|
@@ -5871,10 +5996,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
5871
5996
|
foregroundColor: DocumentationColorV1.optional(),
|
|
5872
5997
|
backgroundColor: DocumentationColorV1.optional()
|
|
5873
5998
|
});
|
|
5874
|
-
var DTODocumentationItemConfigurationV1 =
|
|
5875
|
-
showSidebar:
|
|
5876
|
-
isPrivate:
|
|
5877
|
-
isHidden:
|
|
5999
|
+
var DTODocumentationItemConfigurationV1 = z211.object({
|
|
6000
|
+
showSidebar: z211.boolean(),
|
|
6001
|
+
isPrivate: z211.boolean(),
|
|
6002
|
+
isHidden: z211.boolean(),
|
|
5878
6003
|
header: DTODocumentationItemHeaderV1
|
|
5879
6004
|
});
|
|
5880
6005
|
|
|
@@ -5888,27 +6013,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
5888
6013
|
data: true,
|
|
5889
6014
|
shortPersistentId: true
|
|
5890
6015
|
}).extend({
|
|
5891
|
-
title:
|
|
5892
|
-
isRoot:
|
|
5893
|
-
childrenIds:
|
|
6016
|
+
title: z212.string(),
|
|
6017
|
+
isRoot: z212.boolean(),
|
|
6018
|
+
childrenIds: z212.array(z212.string()),
|
|
5894
6019
|
groupBehavior: DocumentationGroupBehavior,
|
|
5895
|
-
shortPersistentId:
|
|
5896
|
-
type:
|
|
6020
|
+
shortPersistentId: z212.string(),
|
|
6021
|
+
type: z212.literal("Group")
|
|
5897
6022
|
});
|
|
5898
6023
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
5899
6024
|
configuration: DTODocumentationItemConfigurationV1
|
|
5900
6025
|
});
|
|
5901
6026
|
|
|
5902
6027
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
5903
|
-
import { z as
|
|
5904
|
-
var DTODocumentationHierarchyV2 =
|
|
5905
|
-
pages:
|
|
6028
|
+
import { z as z213 } from "zod";
|
|
6029
|
+
var DTODocumentationHierarchyV2 = z213.object({
|
|
6030
|
+
pages: z213.array(
|
|
5906
6031
|
DTODocumentationPageV2.extend({
|
|
5907
6032
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5908
6033
|
draftState: DTODocumentationDraftState.optional()
|
|
5909
6034
|
})
|
|
5910
6035
|
),
|
|
5911
|
-
groups:
|
|
6036
|
+
groups: z213.array(
|
|
5912
6037
|
DTODocumentationGroupV2.extend({
|
|
5913
6038
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5914
6039
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -5917,84 +6042,84 @@ var DTODocumentationHierarchyV2 = z207.object({
|
|
|
5917
6042
|
});
|
|
5918
6043
|
|
|
5919
6044
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
5920
|
-
import { z as
|
|
5921
|
-
var SuccessPayload2 =
|
|
5922
|
-
success:
|
|
6045
|
+
import { z as z214 } from "zod";
|
|
6046
|
+
var SuccessPayload2 = z214.object({
|
|
6047
|
+
success: z214.literal(true)
|
|
5923
6048
|
});
|
|
5924
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
5925
|
-
type:
|
|
6049
|
+
var DTODocumentationPageCreateActionOutputV2 = z214.object({
|
|
6050
|
+
type: z214.literal("DocumentationPageCreate"),
|
|
5926
6051
|
output: SuccessPayload2
|
|
5927
6052
|
});
|
|
5928
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
5929
|
-
type:
|
|
6053
|
+
var DTODocumentationPageUpdateActionOutputV2 = z214.object({
|
|
6054
|
+
type: z214.literal("DocumentationPageUpdate"),
|
|
5930
6055
|
output: SuccessPayload2
|
|
5931
6056
|
});
|
|
5932
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
5933
|
-
type:
|
|
6057
|
+
var DTODocumentationPageMoveActionOutputV2 = z214.object({
|
|
6058
|
+
type: z214.literal("DocumentationPageMove"),
|
|
5934
6059
|
output: SuccessPayload2
|
|
5935
6060
|
});
|
|
5936
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
5937
|
-
type:
|
|
6061
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z214.object({
|
|
6062
|
+
type: z214.literal("DocumentationPageDuplicate"),
|
|
5938
6063
|
output: SuccessPayload2
|
|
5939
6064
|
});
|
|
5940
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
5941
|
-
type:
|
|
6065
|
+
var DTODocumentationPageDeleteActionOutputV2 = z214.object({
|
|
6066
|
+
type: z214.literal("DocumentationPageDelete"),
|
|
5942
6067
|
output: SuccessPayload2
|
|
5943
6068
|
});
|
|
5944
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
5945
|
-
type:
|
|
6069
|
+
var DTODocumentationPageRestoreActionOutput = z214.object({
|
|
6070
|
+
type: z214.literal("DocumentationPageRestore"),
|
|
5946
6071
|
output: SuccessPayload2
|
|
5947
6072
|
});
|
|
5948
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
5949
|
-
type:
|
|
6073
|
+
var DTODocumentationGroupRestoreActionOutput = z214.object({
|
|
6074
|
+
type: z214.literal("DocumentationGroupRestore"),
|
|
5950
6075
|
output: SuccessPayload2
|
|
5951
6076
|
});
|
|
5952
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
5953
|
-
type:
|
|
6077
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z214.object({
|
|
6078
|
+
type: z214.literal("DocumentationPageApprovalStateChange"),
|
|
5954
6079
|
output: SuccessPayload2
|
|
5955
6080
|
});
|
|
5956
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
5957
|
-
type:
|
|
6081
|
+
var DTODocumentationPageCreateActionInputV2 = z214.object({
|
|
6082
|
+
type: z214.literal("DocumentationPageCreate"),
|
|
5958
6083
|
input: DTOCreateDocumentationPageInputV2
|
|
5959
6084
|
});
|
|
5960
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
5961
|
-
type:
|
|
6085
|
+
var DTODocumentationPageUpdateActionInputV2 = z214.object({
|
|
6086
|
+
type: z214.literal("DocumentationPageUpdate"),
|
|
5962
6087
|
input: DTOUpdateDocumentationPageInputV2
|
|
5963
6088
|
});
|
|
5964
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
5965
|
-
type:
|
|
6089
|
+
var DTODocumentationPageMoveActionInputV2 = z214.object({
|
|
6090
|
+
type: z214.literal("DocumentationPageMove"),
|
|
5966
6091
|
input: DTOMoveDocumentationPageInputV2
|
|
5967
6092
|
});
|
|
5968
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
5969
|
-
type:
|
|
6093
|
+
var DTODocumentationPageDuplicateActionInputV2 = z214.object({
|
|
6094
|
+
type: z214.literal("DocumentationPageDuplicate"),
|
|
5970
6095
|
input: DTODuplicateDocumentationPageInputV2
|
|
5971
6096
|
});
|
|
5972
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
5973
|
-
type:
|
|
6097
|
+
var DTODocumentationPageDeleteActionInputV2 = z214.object({
|
|
6098
|
+
type: z214.literal("DocumentationPageDelete"),
|
|
5974
6099
|
input: DTODeleteDocumentationPageInputV2
|
|
5975
6100
|
});
|
|
5976
|
-
var DTODocumentationPageRestoreActionInput =
|
|
5977
|
-
type:
|
|
6101
|
+
var DTODocumentationPageRestoreActionInput = z214.object({
|
|
6102
|
+
type: z214.literal("DocumentationPageRestore"),
|
|
5978
6103
|
input: DTORestoreDocumentationPageInput
|
|
5979
6104
|
});
|
|
5980
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
5981
|
-
type:
|
|
6105
|
+
var DTODocumentationGroupRestoreActionInput = z214.object({
|
|
6106
|
+
type: z214.literal("DocumentationGroupRestore"),
|
|
5982
6107
|
input: DTORestoreDocumentationGroupInput
|
|
5983
6108
|
});
|
|
5984
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
5985
|
-
type:
|
|
6109
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z214.object({
|
|
6110
|
+
type: z214.literal("DocumentationPageApprovalStateChange"),
|
|
5986
6111
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
5987
6112
|
});
|
|
5988
6113
|
|
|
5989
6114
|
// src/api/dto/elements/documentation/page-content.ts
|
|
5990
|
-
import { z as
|
|
6115
|
+
import { z as z215 } from "zod";
|
|
5991
6116
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
5992
|
-
var DTODocumentationPageContentGetResponse =
|
|
6117
|
+
var DTODocumentationPageContentGetResponse = z215.object({
|
|
5993
6118
|
pageContent: DTODocumentationPageContent
|
|
5994
6119
|
});
|
|
5995
6120
|
|
|
5996
6121
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
5997
|
-
import { z as
|
|
6122
|
+
import { z as z216 } from "zod";
|
|
5998
6123
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
5999
6124
|
data: true,
|
|
6000
6125
|
meta: true,
|
|
@@ -6002,32 +6127,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6002
6127
|
sortOrder: true
|
|
6003
6128
|
}).extend({
|
|
6004
6129
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6005
|
-
blocks:
|
|
6006
|
-
title:
|
|
6007
|
-
path:
|
|
6130
|
+
blocks: z216.array(PageBlockV1),
|
|
6131
|
+
title: z216.string(),
|
|
6132
|
+
path: z216.string()
|
|
6008
6133
|
});
|
|
6009
6134
|
|
|
6010
6135
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6011
|
-
import { z as
|
|
6136
|
+
import { z as z217 } from "zod";
|
|
6012
6137
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6013
|
-
var DTOFigmaNodeOrigin =
|
|
6014
|
-
sourceId:
|
|
6015
|
-
fileId:
|
|
6016
|
-
parentName:
|
|
6138
|
+
var DTOFigmaNodeOrigin = z217.object({
|
|
6139
|
+
sourceId: z217.string(),
|
|
6140
|
+
fileId: z217.string().optional(),
|
|
6141
|
+
parentName: z217.string().optional()
|
|
6017
6142
|
});
|
|
6018
|
-
var DTOFigmaNodeData =
|
|
6143
|
+
var DTOFigmaNodeData = z217.object({
|
|
6019
6144
|
// Id of the node in the Figma file
|
|
6020
|
-
figmaNodeId:
|
|
6145
|
+
figmaNodeId: z217.string(),
|
|
6021
6146
|
// Validity
|
|
6022
|
-
isValid:
|
|
6147
|
+
isValid: z217.boolean(),
|
|
6023
6148
|
// Asset data
|
|
6024
|
-
assetId:
|
|
6025
|
-
assetUrl:
|
|
6149
|
+
assetId: z217.string(),
|
|
6150
|
+
assetUrl: z217.string(),
|
|
6026
6151
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6027
6152
|
// Asset metadata
|
|
6028
|
-
assetScale:
|
|
6029
|
-
assetWidth:
|
|
6030
|
-
assetHeight:
|
|
6153
|
+
assetScale: z217.number(),
|
|
6154
|
+
assetWidth: z217.number().optional(),
|
|
6155
|
+
assetHeight: z217.number().optional()
|
|
6031
6156
|
});
|
|
6032
6157
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6033
6158
|
data: true,
|
|
@@ -6036,15 +6161,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6036
6161
|
data: DTOFigmaNodeData,
|
|
6037
6162
|
origin: DTOFigmaNodeOrigin
|
|
6038
6163
|
});
|
|
6039
|
-
var DTOFigmaNodeRenderInput =
|
|
6164
|
+
var DTOFigmaNodeRenderInput = z217.object({
|
|
6040
6165
|
/**
|
|
6041
6166
|
* Id of a design system's data source representing a linked Figma file
|
|
6042
6167
|
*/
|
|
6043
|
-
sourceId:
|
|
6168
|
+
sourceId: z217.string(),
|
|
6044
6169
|
/**
|
|
6045
6170
|
* Id of a node within the Figma file
|
|
6046
6171
|
*/
|
|
6047
|
-
figmaFileNodeId:
|
|
6172
|
+
figmaFileNodeId: z217.string(),
|
|
6048
6173
|
/**
|
|
6049
6174
|
* Format in which the node must be rendered, png by default.
|
|
6050
6175
|
*/
|
|
@@ -6052,97 +6177,97 @@ var DTOFigmaNodeRenderInput = z211.object({
|
|
|
6052
6177
|
});
|
|
6053
6178
|
|
|
6054
6179
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6055
|
-
import { z as
|
|
6056
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6057
|
-
type:
|
|
6058
|
-
figmaNodes:
|
|
6180
|
+
import { z as z218 } from "zod";
|
|
6181
|
+
var DTOFigmaNodeRenderActionOutput = z218.object({
|
|
6182
|
+
type: z218.literal("FigmaNodeRender"),
|
|
6183
|
+
figmaNodes: z218.array(DTOFigmaNode)
|
|
6059
6184
|
});
|
|
6060
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6061
|
-
type:
|
|
6185
|
+
var DTOFigmaNodeRenderActionInput = z218.object({
|
|
6186
|
+
type: z218.literal("FigmaNodeRender"),
|
|
6062
6187
|
input: DTOFigmaNodeRenderInput.array()
|
|
6063
6188
|
});
|
|
6064
6189
|
|
|
6065
6190
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6066
|
-
import { z as
|
|
6191
|
+
import { z as z220 } from "zod";
|
|
6067
6192
|
|
|
6068
6193
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6069
|
-
import { z as
|
|
6194
|
+
import { z as z219 } from "zod";
|
|
6070
6195
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6071
|
-
var DTOElementPropertyDefinition =
|
|
6072
|
-
id:
|
|
6073
|
-
designSystemVersionId:
|
|
6196
|
+
var DTOElementPropertyDefinition = z219.object({
|
|
6197
|
+
id: z219.string(),
|
|
6198
|
+
designSystemVersionId: z219.string(),
|
|
6074
6199
|
meta: ObjectMeta,
|
|
6075
|
-
persistentId:
|
|
6200
|
+
persistentId: z219.string(),
|
|
6076
6201
|
type: ElementPropertyTypeSchema,
|
|
6077
6202
|
targetElementType: ElementPropertyTargetType,
|
|
6078
|
-
codeName:
|
|
6079
|
-
options:
|
|
6203
|
+
codeName: z219.string().regex(CODE_NAME_REGEX2),
|
|
6204
|
+
options: z219.array(ElementPropertyDefinitionOption).optional(),
|
|
6080
6205
|
linkElementType: ElementPropertyLinkType.optional()
|
|
6081
6206
|
});
|
|
6082
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
6083
|
-
definitions:
|
|
6207
|
+
var DTOElementPropertyDefinitionsGetResponse = z219.object({
|
|
6208
|
+
definitions: z219.array(DTOElementPropertyDefinition)
|
|
6084
6209
|
});
|
|
6085
6210
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
6086
6211
|
id: true,
|
|
6087
6212
|
designSystemVersionId: true
|
|
6088
6213
|
});
|
|
6089
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
6090
|
-
id:
|
|
6091
|
-
name:
|
|
6092
|
-
description:
|
|
6093
|
-
codeName:
|
|
6094
|
-
options:
|
|
6214
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z219.object({
|
|
6215
|
+
id: z219.string(),
|
|
6216
|
+
name: z219.string().optional(),
|
|
6217
|
+
description: z219.string().optional(),
|
|
6218
|
+
codeName: z219.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6219
|
+
options: z219.array(ElementPropertyDefinitionOption).optional()
|
|
6095
6220
|
});
|
|
6096
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
6097
|
-
id:
|
|
6221
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z219.object({
|
|
6222
|
+
id: z219.string()
|
|
6098
6223
|
});
|
|
6099
6224
|
|
|
6100
6225
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6101
|
-
var SuccessPayload3 =
|
|
6102
|
-
success:
|
|
6226
|
+
var SuccessPayload3 = z220.object({
|
|
6227
|
+
success: z220.literal(true)
|
|
6103
6228
|
});
|
|
6104
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
6105
|
-
type:
|
|
6229
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z220.object({
|
|
6230
|
+
type: z220.literal("PropertyDefinitionCreate"),
|
|
6106
6231
|
definition: DTOElementPropertyDefinition
|
|
6107
6232
|
});
|
|
6108
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
6109
|
-
type:
|
|
6233
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z220.object({
|
|
6234
|
+
type: z220.literal("PropertyDefinitionUpdate"),
|
|
6110
6235
|
definition: DTOElementPropertyDefinition
|
|
6111
6236
|
});
|
|
6112
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
6113
|
-
type:
|
|
6237
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z220.object({
|
|
6238
|
+
type: z220.literal("PropertyDefinitionDelete"),
|
|
6114
6239
|
output: SuccessPayload3
|
|
6115
6240
|
});
|
|
6116
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
6117
|
-
type:
|
|
6241
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z220.object({
|
|
6242
|
+
type: z220.literal("PropertyDefinitionCreate"),
|
|
6118
6243
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
6119
6244
|
});
|
|
6120
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
6121
|
-
type:
|
|
6245
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z220.object({
|
|
6246
|
+
type: z220.literal("PropertyDefinitionUpdate"),
|
|
6122
6247
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
6123
6248
|
});
|
|
6124
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
6125
|
-
type:
|
|
6249
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z220.object({
|
|
6250
|
+
type: z220.literal("PropertyDefinitionDelete"),
|
|
6126
6251
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
6127
6252
|
});
|
|
6128
6253
|
|
|
6129
6254
|
// src/api/dto/elements/properties/property-values.ts
|
|
6130
|
-
import { z as
|
|
6131
|
-
var DTOElementPropertyValue =
|
|
6132
|
-
id:
|
|
6133
|
-
designSystemVersionId:
|
|
6134
|
-
definitionId:
|
|
6135
|
-
targetElementId:
|
|
6136
|
-
value:
|
|
6137
|
-
valuePreview:
|
|
6255
|
+
import { z as z221 } from "zod";
|
|
6256
|
+
var DTOElementPropertyValue = z221.object({
|
|
6257
|
+
id: z221.string(),
|
|
6258
|
+
designSystemVersionId: z221.string(),
|
|
6259
|
+
definitionId: z221.string(),
|
|
6260
|
+
targetElementId: z221.string(),
|
|
6261
|
+
value: z221.union([z221.string(), z221.number(), z221.boolean()]).optional(),
|
|
6262
|
+
valuePreview: z221.string().optional()
|
|
6138
6263
|
});
|
|
6139
|
-
var DTOElementPropertyValuesGetResponse =
|
|
6140
|
-
values:
|
|
6264
|
+
var DTOElementPropertyValuesGetResponse = z221.object({
|
|
6265
|
+
values: z221.array(DTOElementPropertyValue)
|
|
6141
6266
|
});
|
|
6142
6267
|
|
|
6143
6268
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6144
|
-
import { z as
|
|
6145
|
-
var DTOElementActionOutput =
|
|
6269
|
+
import { z as z222 } from "zod";
|
|
6270
|
+
var DTOElementActionOutput = z222.discriminatedUnion("type", [
|
|
6146
6271
|
// Documentation pages
|
|
6147
6272
|
DTODocumentationPageCreateActionOutputV2,
|
|
6148
6273
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6169,7 +6294,7 @@ var DTOElementActionOutput = z216.discriminatedUnion("type", [
|
|
|
6169
6294
|
// Approvals
|
|
6170
6295
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6171
6296
|
]);
|
|
6172
|
-
var DTOElementActionInput =
|
|
6297
|
+
var DTOElementActionInput = z222.discriminatedUnion("type", [
|
|
6173
6298
|
// Documentation pages
|
|
6174
6299
|
DTODocumentationPageCreateActionInputV2,
|
|
6175
6300
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6198,167 +6323,63 @@ var DTOElementActionInput = z216.discriminatedUnion("type", [
|
|
|
6198
6323
|
]);
|
|
6199
6324
|
|
|
6200
6325
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6201
|
-
import { z as
|
|
6202
|
-
var DTOElementsGetTypeFilter =
|
|
6203
|
-
var DTOElementsGetQuerySchema =
|
|
6204
|
-
types:
|
|
6326
|
+
import { z as z223 } from "zod";
|
|
6327
|
+
var DTOElementsGetTypeFilter = z223.enum(["FigmaNode"]);
|
|
6328
|
+
var DTOElementsGetQuerySchema = z223.object({
|
|
6329
|
+
types: z223.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6205
6330
|
});
|
|
6206
|
-
var DTOElementsGetOutput =
|
|
6207
|
-
figmaNodes:
|
|
6331
|
+
var DTOElementsGetOutput = z223.object({
|
|
6332
|
+
figmaNodes: z223.array(DTOFigmaNode).optional()
|
|
6208
6333
|
});
|
|
6209
6334
|
|
|
6210
6335
|
// src/api/dto/figma-components/assets/download.ts
|
|
6211
|
-
import { z as
|
|
6212
|
-
var DTOAssetRenderConfiguration =
|
|
6213
|
-
prefix:
|
|
6214
|
-
suffix:
|
|
6215
|
-
scale:
|
|
6216
|
-
format:
|
|
6217
|
-
});
|
|
6218
|
-
var DTORenderedAssetFile =
|
|
6219
|
-
assetId:
|
|
6220
|
-
fileName:
|
|
6221
|
-
sourceUrl:
|
|
6336
|
+
import { z as z224 } from "zod";
|
|
6337
|
+
var DTOAssetRenderConfiguration = z224.object({
|
|
6338
|
+
prefix: z224.string().optional(),
|
|
6339
|
+
suffix: z224.string().optional(),
|
|
6340
|
+
scale: z224.enum(["x1", "x2", "x3", "x4"]),
|
|
6341
|
+
format: z224.enum(["png", "pdf", "svg"])
|
|
6342
|
+
});
|
|
6343
|
+
var DTORenderedAssetFile = z224.object({
|
|
6344
|
+
assetId: z224.string(),
|
|
6345
|
+
fileName: z224.string(),
|
|
6346
|
+
sourceUrl: z224.string(),
|
|
6222
6347
|
settings: DTOAssetRenderConfiguration,
|
|
6223
|
-
originalName:
|
|
6348
|
+
originalName: z224.string()
|
|
6224
6349
|
});
|
|
6225
|
-
var DTODownloadAssetsRequest =
|
|
6226
|
-
persistentIds:
|
|
6350
|
+
var DTODownloadAssetsRequest = z224.object({
|
|
6351
|
+
persistentIds: z224.array(z224.string().uuid()).optional(),
|
|
6227
6352
|
settings: DTOAssetRenderConfiguration.array()
|
|
6228
6353
|
});
|
|
6229
|
-
var DTODownloadAssetsResponse =
|
|
6354
|
+
var DTODownloadAssetsResponse = z224.object({
|
|
6230
6355
|
items: DTORenderedAssetFile.array()
|
|
6231
6356
|
});
|
|
6232
6357
|
|
|
6233
6358
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6234
|
-
import { z as
|
|
6235
|
-
var DTOLiveblocksAuthResponse =
|
|
6236
|
-
token:
|
|
6359
|
+
import { z as z225 } from "zod";
|
|
6360
|
+
var DTOLiveblocksAuthResponse = z225.object({
|
|
6361
|
+
token: z225.string()
|
|
6237
6362
|
});
|
|
6238
6363
|
|
|
6239
6364
|
// src/api/dto/users/update.ts
|
|
6240
|
-
import { z as
|
|
6241
|
-
var DTOUserProfileUpdateResponse =
|
|
6365
|
+
import { z as z226 } from "zod";
|
|
6366
|
+
var DTOUserProfileUpdateResponse = z226.object({
|
|
6242
6367
|
user: User
|
|
6243
6368
|
});
|
|
6244
6369
|
|
|
6245
6370
|
// src/api/dto/users/user.ts
|
|
6246
|
-
import { z as
|
|
6247
|
-
var DTOUserProfile =
|
|
6248
|
-
name:
|
|
6249
|
-
nickname:
|
|
6250
|
-
avatar:
|
|
6251
|
-
});
|
|
6252
|
-
var DTOUser =
|
|
6253
|
-
id:
|
|
6254
|
-
email:
|
|
6371
|
+
import { z as z227 } from "zod";
|
|
6372
|
+
var DTOUserProfile = z227.object({
|
|
6373
|
+
name: z227.string(),
|
|
6374
|
+
nickname: z227.string().optional(),
|
|
6375
|
+
avatar: z227.string().optional()
|
|
6376
|
+
});
|
|
6377
|
+
var DTOUser = z227.object({
|
|
6378
|
+
id: z227.string(),
|
|
6379
|
+
email: z227.string(),
|
|
6255
6380
|
profile: DTOUserProfile
|
|
6256
6381
|
});
|
|
6257
6382
|
|
|
6258
|
-
// src/api/dto/workspaces/git.ts
|
|
6259
|
-
import { z as z222 } from "zod";
|
|
6260
|
-
var DTOGitOrganization = z222.object({
|
|
6261
|
-
id: z222.string(),
|
|
6262
|
-
name: z222.string(),
|
|
6263
|
-
url: z222.string(),
|
|
6264
|
-
slug: z222.string()
|
|
6265
|
-
});
|
|
6266
|
-
var DTOGitProject = z222.object({
|
|
6267
|
-
id: z222.string(),
|
|
6268
|
-
name: z222.string(),
|
|
6269
|
-
url: z222.string(),
|
|
6270
|
-
slug: z222.string()
|
|
6271
|
-
});
|
|
6272
|
-
var DTOGitRepository = z222.object({
|
|
6273
|
-
id: z222.string(),
|
|
6274
|
-
name: z222.string(),
|
|
6275
|
-
url: z222.string(),
|
|
6276
|
-
slug: z222.string(),
|
|
6277
|
-
defaultBranch: z222.string().optional()
|
|
6278
|
-
});
|
|
6279
|
-
var DTOGitBranch = z222.object({
|
|
6280
|
-
name: z222.string(),
|
|
6281
|
-
lastCommitId: z222.string()
|
|
6282
|
-
});
|
|
6283
|
-
|
|
6284
|
-
// src/api/dto/workspaces/integrations.ts
|
|
6285
|
-
import { z as z223 } from "zod";
|
|
6286
|
-
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6287
|
-
accessToken: true,
|
|
6288
|
-
refreshToken: true
|
|
6289
|
-
});
|
|
6290
|
-
var DTOIntegration = z223.object({
|
|
6291
|
-
id: z223.string(),
|
|
6292
|
-
workspaceId: z223.string(),
|
|
6293
|
-
type: ExtendedIntegrationType,
|
|
6294
|
-
createdAt: z223.coerce.date(),
|
|
6295
|
-
integrationCredentials: z223.array(DTOIntegrationCredentials).optional(),
|
|
6296
|
-
integrationDesignSystems: z223.array(IntegrationDesignSystem).optional()
|
|
6297
|
-
});
|
|
6298
|
-
var DTOIntegrationOAuthGetResponse = z223.object({
|
|
6299
|
-
url: z223.string()
|
|
6300
|
-
});
|
|
6301
|
-
var DTOIntegrationPostResponse = z223.object({
|
|
6302
|
-
integration: DTOIntegration
|
|
6303
|
-
});
|
|
6304
|
-
var DTOIntegrationsGetListResponse = z223.object({
|
|
6305
|
-
integrations: DTOIntegration.array()
|
|
6306
|
-
});
|
|
6307
|
-
|
|
6308
|
-
// src/api/dto/workspaces/membership.ts
|
|
6309
|
-
import { z as z226 } from "zod";
|
|
6310
|
-
|
|
6311
|
-
// src/api/dto/workspaces/workspace.ts
|
|
6312
|
-
import { z as z225 } from "zod";
|
|
6313
|
-
|
|
6314
|
-
// src/api/dto/workspaces/npm-registry.ts
|
|
6315
|
-
import { z as z224 } from "zod";
|
|
6316
|
-
var DTONpmRegistryConfigConstants = {
|
|
6317
|
-
passwordPlaceholder: "redacted"
|
|
6318
|
-
};
|
|
6319
|
-
var DTONpmRegistryConfig = z224.object({
|
|
6320
|
-
// Registry basic configuration
|
|
6321
|
-
registryType: NpmRegistryType,
|
|
6322
|
-
registryUrl: z224.string(),
|
|
6323
|
-
customRegistryUrl: z224.string().optional(),
|
|
6324
|
-
// URL of Supernova NPM packages proxy
|
|
6325
|
-
proxyUrl: z224.string(),
|
|
6326
|
-
// Auth configuration
|
|
6327
|
-
authType: NpmRegistryAuthType,
|
|
6328
|
-
accessToken: z224.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6329
|
-
username: z224.string().optional(),
|
|
6330
|
-
password: z224.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6331
|
-
// NPM package scopes for whih the proxy should be enabled
|
|
6332
|
-
enabledScopes: z224.array(z224.string()),
|
|
6333
|
-
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6334
|
-
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6335
|
-
bypassProxy: z224.boolean()
|
|
6336
|
-
});
|
|
6337
|
-
|
|
6338
|
-
// src/api/dto/workspaces/workspace.ts
|
|
6339
|
-
var DTOWorkspace = z225.object({
|
|
6340
|
-
id: z225.string(),
|
|
6341
|
-
profile: WorkspaceProfile,
|
|
6342
|
-
subscription: Subscription,
|
|
6343
|
-
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6344
|
-
});
|
|
6345
|
-
|
|
6346
|
-
// src/api/dto/workspaces/membership.ts
|
|
6347
|
-
var DTOWorkspaceRole = z226.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6348
|
-
var DTOUserWorkspaceMembership = z226.object({
|
|
6349
|
-
// Workspace the user is a member of
|
|
6350
|
-
workspace: DTOWorkspace,
|
|
6351
|
-
// Assigned role the user has in the workspace
|
|
6352
|
-
role: DTOWorkspaceRole,
|
|
6353
|
-
// Role that determines actual permissions the user has in the workspace
|
|
6354
|
-
// E.g. this is different from the default role when editors are downgraded to viewers
|
|
6355
|
-
// when a workspace's subscription is downgraded to free tier
|
|
6356
|
-
effectiveRole: DTOWorkspaceRole
|
|
6357
|
-
});
|
|
6358
|
-
var DTOUserWorkspaceMembershipsResponse = z226.object({
|
|
6359
|
-
membership: z226.array(DTOUserWorkspaceMembership)
|
|
6360
|
-
});
|
|
6361
|
-
|
|
6362
6383
|
// src/utils/hash.ts
|
|
6363
6384
|
function hash(input) {
|
|
6364
6385
|
return farmhash(input).toString(16);
|
|
@@ -6418,7 +6439,7 @@ function generateHash(input, debug = false) {
|
|
|
6418
6439
|
}
|
|
6419
6440
|
|
|
6420
6441
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
6421
|
-
import { z as
|
|
6442
|
+
import { z as z228 } from "zod";
|
|
6422
6443
|
|
|
6423
6444
|
// src/yjs/version-room/base.ts
|
|
6424
6445
|
var VersionRoomBaseYDoc = class {
|
|
@@ -6947,24 +6968,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6947
6968
|
};
|
|
6948
6969
|
|
|
6949
6970
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
6950
|
-
var DocumentationHierarchySettings =
|
|
6951
|
-
routingVersion:
|
|
6952
|
-
isDraftFeatureAdopted:
|
|
6953
|
-
isApprovalFeatureEnabled:
|
|
6954
|
-
approvalRequiredForPublishing:
|
|
6971
|
+
var DocumentationHierarchySettings = z228.object({
|
|
6972
|
+
routingVersion: z228.string(),
|
|
6973
|
+
isDraftFeatureAdopted: z228.boolean(),
|
|
6974
|
+
isApprovalFeatureEnabled: z228.boolean(),
|
|
6975
|
+
approvalRequiredForPublishing: z228.boolean()
|
|
6955
6976
|
});
|
|
6956
6977
|
function yjsToDocumentationHierarchy(doc) {
|
|
6957
6978
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
6958
6979
|
}
|
|
6959
6980
|
|
|
6960
6981
|
// src/yjs/design-system-content/item-configuration.ts
|
|
6961
|
-
import { z as
|
|
6962
|
-
var DTODocumentationPageRoomHeaderData =
|
|
6963
|
-
title:
|
|
6982
|
+
import { z as z229 } from "zod";
|
|
6983
|
+
var DTODocumentationPageRoomHeaderData = z229.object({
|
|
6984
|
+
title: z229.string(),
|
|
6964
6985
|
configuration: DTODocumentationItemConfigurationV2
|
|
6965
6986
|
});
|
|
6966
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
6967
|
-
title:
|
|
6987
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z229.object({
|
|
6988
|
+
title: z229.string().optional(),
|
|
6968
6989
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
6969
6990
|
});
|
|
6970
6991
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -7015,7 +7036,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
7015
7036
|
header: rawHeader
|
|
7016
7037
|
};
|
|
7017
7038
|
return {
|
|
7018
|
-
title:
|
|
7039
|
+
title: z229.string().parse(title),
|
|
7019
7040
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
7020
7041
|
};
|
|
7021
7042
|
}
|
|
@@ -7025,9 +7046,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
7025
7046
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
7026
7047
|
|
|
7027
7048
|
// src/yjs/docs-editor/model/page.ts
|
|
7028
|
-
import { z as
|
|
7029
|
-
var DocumentationPageEditorModel =
|
|
7030
|
-
blocks:
|
|
7049
|
+
import { z as z230 } from "zod";
|
|
7050
|
+
var DocumentationPageEditorModel = z230.object({
|
|
7051
|
+
blocks: z230.array(DocumentationPageContentItem)
|
|
7031
7052
|
});
|
|
7032
7053
|
|
|
7033
7054
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -10891,7 +10912,7 @@ var blocks = [
|
|
|
10891
10912
|
|
|
10892
10913
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
10893
10914
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
10894
|
-
import { z as
|
|
10915
|
+
import { z as z231 } from "zod";
|
|
10895
10916
|
function yDocToPage(yDoc, definitions) {
|
|
10896
10917
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
10897
10918
|
}
|
|
@@ -10971,7 +10992,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
10971
10992
|
return null;
|
|
10972
10993
|
return {
|
|
10973
10994
|
id,
|
|
10974
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
10995
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z231.string()) ?? "",
|
|
10975
10996
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
10976
10997
|
};
|
|
10977
10998
|
}
|
|
@@ -11006,7 +11027,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
11006
11027
|
});
|
|
11007
11028
|
}
|
|
11008
11029
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
11009
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
11030
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z231.string());
|
|
11010
11031
|
if (!definitionId) {
|
|
11011
11032
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
11012
11033
|
return [];
|
|
@@ -11048,7 +11069,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
11048
11069
|
if (!id)
|
|
11049
11070
|
return null;
|
|
11050
11071
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11051
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
11072
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z231.string().optional()));
|
|
11052
11073
|
return {
|
|
11053
11074
|
id,
|
|
11054
11075
|
type: "Block",
|
|
@@ -11176,10 +11197,10 @@ function parseRichTextAttribute(mark) {
|
|
|
11176
11197
|
return null;
|
|
11177
11198
|
}
|
|
11178
11199
|
function parseProsemirrorLink(mark) {
|
|
11179
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
11200
|
+
const href = getProsemirrorAttribute(mark, "href", z231.string().optional());
|
|
11180
11201
|
if (!href)
|
|
11181
11202
|
return null;
|
|
11182
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
11203
|
+
const target = getProsemirrorAttribute(mark, "target", z231.string().optional());
|
|
11183
11204
|
const openInNewTab = target === "_blank";
|
|
11184
11205
|
if (href.startsWith("@")) {
|
|
11185
11206
|
return {
|
|
@@ -11198,10 +11219,10 @@ function parseProsemirrorLink(mark) {
|
|
|
11198
11219
|
}
|
|
11199
11220
|
}
|
|
11200
11221
|
function parseProsemirrorCommentHighlight(mark) {
|
|
11201
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
11222
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z231.string().optional());
|
|
11202
11223
|
if (!highlightId)
|
|
11203
11224
|
return null;
|
|
11204
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
11225
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z231.boolean().optional()) ?? false;
|
|
11205
11226
|
return {
|
|
11206
11227
|
type: "Comment",
|
|
11207
11228
|
commentHighlightId: highlightId,
|
|
@@ -11213,7 +11234,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
11213
11234
|
if (!id)
|
|
11214
11235
|
return null;
|
|
11215
11236
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11216
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
11237
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z231.boolean().optional()) !== false;
|
|
11217
11238
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
11218
11239
|
if (!tableChild) {
|
|
11219
11240
|
return emptyTable(id, variantId, 0);
|
|
@@ -11260,9 +11281,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
11260
11281
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
11261
11282
|
if (!id)
|
|
11262
11283
|
return null;
|
|
11263
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
11284
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z231.string().optional());
|
|
11264
11285
|
let columnWidth;
|
|
11265
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
11286
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z231.array(z231.number()).optional());
|
|
11266
11287
|
if (columnWidthArray) {
|
|
11267
11288
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
11268
11289
|
}
|
|
@@ -11300,7 +11321,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
11300
11321
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
11301
11322
|
};
|
|
11302
11323
|
case "image":
|
|
11303
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11324
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z231.string());
|
|
11304
11325
|
if (!items)
|
|
11305
11326
|
return null;
|
|
11306
11327
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -11420,7 +11441,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
11420
11441
|
);
|
|
11421
11442
|
}
|
|
11422
11443
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
11423
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11444
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z231.string());
|
|
11424
11445
|
if (!itemsString)
|
|
11425
11446
|
return null;
|
|
11426
11447
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -11432,18 +11453,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
11432
11453
|
}
|
|
11433
11454
|
function parseAppearance(prosemirrorNode) {
|
|
11434
11455
|
let appearance = {};
|
|
11435
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
11456
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z231.string().optional());
|
|
11436
11457
|
if (rawAppearanceString) {
|
|
11437
11458
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
11438
11459
|
if (parsedAppearance.success) {
|
|
11439
11460
|
appearance = parsedAppearance.data;
|
|
11440
11461
|
}
|
|
11441
11462
|
}
|
|
11442
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
11463
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z231.number().optional());
|
|
11443
11464
|
if (columns) {
|
|
11444
11465
|
appearance.numberOfColumns = columns;
|
|
11445
11466
|
}
|
|
11446
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
11467
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z231.string().optional());
|
|
11447
11468
|
if (backgroundColor) {
|
|
11448
11469
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
11449
11470
|
if (parsedColor.success) {
|
|
@@ -11538,13 +11559,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
11538
11559
|
}
|
|
11539
11560
|
}
|
|
11540
11561
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
11541
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
11562
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z231.string());
|
|
11542
11563
|
if (!id)
|
|
11543
11564
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
11544
11565
|
return id;
|
|
11545
11566
|
}
|
|
11546
11567
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
11547
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
11568
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z231.string()));
|
|
11548
11569
|
}
|
|
11549
11570
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
11550
11571
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -11598,6 +11619,8 @@ export {
|
|
|
11598
11619
|
BackendVersionRoomYDoc,
|
|
11599
11620
|
BlockDefinitionUtils,
|
|
11600
11621
|
BlockParsingUtils,
|
|
11622
|
+
DTOAppBootstrapDataQuery,
|
|
11623
|
+
DTOAppBootstrapDataResponse,
|
|
11601
11624
|
DTOAssetRenderConfiguration,
|
|
11602
11625
|
DTOBrand,
|
|
11603
11626
|
DTOBrandCreateResponse,
|
|
@@ -11635,6 +11658,7 @@ export {
|
|
|
11635
11658
|
DTODesignSystemVersionJobStatusResponse,
|
|
11636
11659
|
DTODesignSystemVersionJobsResponse,
|
|
11637
11660
|
DTODesignSystemVersionsListResponse,
|
|
11661
|
+
DTODesignSystemsListResponse,
|
|
11638
11662
|
DTODiffCountBase,
|
|
11639
11663
|
DTODocumentationDraftChangeType,
|
|
11640
11664
|
DTODocumentationDraftState,
|