@supernova-studio/client 0.48.13 → 0.48.15
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 +363 -2895
- package/dist/index.d.ts +363 -2895
- package/dist/index.js +912 -789
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2155 -2032
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/elements/documentation/draft-state.ts +2 -0
- package/src/api/dto/elements/documentation/group-v2.ts +4 -0
- package/src/api/dto/elements/documentation/hierarchy.ts +0 -14
- package/src/api/dto/elements/documentation/index.ts +1 -0
- package/src/api/dto/elements/documentation/metadata.ts +8 -0
- package/src/api/dto/elements/documentation/page-v2.ts +4 -0
- package/src/yjs/version-room/frontend.ts +163 -56
package/dist/index.js
CHANGED
|
@@ -116,13 +116,15 @@ var _zod = require('zod');
|
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
|
|
119
|
+
var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequireDefault(_slugify);
|
|
119
120
|
|
|
120
121
|
|
|
121
122
|
|
|
122
123
|
|
|
123
|
-
var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr);
|
|
124
124
|
|
|
125
125
|
|
|
126
|
+
var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr);
|
|
127
|
+
|
|
126
128
|
|
|
127
129
|
|
|
128
130
|
|
|
@@ -149,7 +151,6 @@ var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr)
|
|
|
149
151
|
|
|
150
152
|
|
|
151
153
|
|
|
152
|
-
var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequireDefault(_slugify);
|
|
153
154
|
|
|
154
155
|
|
|
155
156
|
|
|
@@ -1569,6 +1570,43 @@ var ZIndexValue = _zod.z.object({
|
|
|
1569
1570
|
measure: _zod.z.number()
|
|
1570
1571
|
});
|
|
1571
1572
|
var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
|
|
1573
|
+
var FigmaComponentPropertyType = _zod.z.enum(["Boolean", "InstanceSwap", "Variant", "Text"]);
|
|
1574
|
+
var FigmaComponentBooleanProperty = _zod.z.object({
|
|
1575
|
+
type: _zod.z.literal(FigmaComponentPropertyType.enum.Boolean),
|
|
1576
|
+
value: _zod.z.boolean(),
|
|
1577
|
+
defaultValue: _zod.z.boolean()
|
|
1578
|
+
});
|
|
1579
|
+
var FigmaComponentInstanceSwapProperty = _zod.z.object({
|
|
1580
|
+
type: _zod.z.literal(FigmaComponentPropertyType.enum.InstanceSwap),
|
|
1581
|
+
value: _zod.z.string()
|
|
1582
|
+
// Persistent ID of a Component to swap?
|
|
1583
|
+
});
|
|
1584
|
+
var FigmaComponentVariantProperty = _zod.z.object({
|
|
1585
|
+
type: _zod.z.literal(FigmaComponentPropertyType.enum.Variant),
|
|
1586
|
+
value: _zod.z.string(),
|
|
1587
|
+
options: _zod.z.array(_zod.z.string())
|
|
1588
|
+
});
|
|
1589
|
+
var FigmaComponentTextProperty = _zod.z.object({
|
|
1590
|
+
type: _zod.z.literal(FigmaComponentPropertyType.enum.Text),
|
|
1591
|
+
value: _zod.z.string()
|
|
1592
|
+
});
|
|
1593
|
+
var FigmaComponentProperties = _zod.z.record(
|
|
1594
|
+
_zod.z.string(),
|
|
1595
|
+
_zod.z.discriminatedUnion("type", [
|
|
1596
|
+
FigmaComponentBooleanProperty,
|
|
1597
|
+
FigmaComponentInstanceSwapProperty,
|
|
1598
|
+
FigmaComponentTextProperty
|
|
1599
|
+
])
|
|
1600
|
+
);
|
|
1601
|
+
var FigmaComponentSetProperties = _zod.z.record(
|
|
1602
|
+
_zod.z.string(),
|
|
1603
|
+
_zod.z.discriminatedUnion("type", [
|
|
1604
|
+
FigmaComponentBooleanProperty,
|
|
1605
|
+
FigmaComponentInstanceSwapProperty,
|
|
1606
|
+
FigmaComponentTextProperty,
|
|
1607
|
+
FigmaComponentVariantProperty
|
|
1608
|
+
])
|
|
1609
|
+
);
|
|
1572
1610
|
var ComponentOriginPart = _zod.z.object({
|
|
1573
1611
|
nodeId: _zod.z.string().optional(),
|
|
1574
1612
|
width: _zod.z.number().optional(),
|
|
@@ -1579,11 +1617,15 @@ var ComponentAsset = _zod.z.object({
|
|
|
1579
1617
|
assetPath: _zod.z.string()
|
|
1580
1618
|
});
|
|
1581
1619
|
var ComponentOrigin = DesignElementOrigin.extend(ComponentOriginPart.shape);
|
|
1582
|
-
var
|
|
1620
|
+
var BaseComponent = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
1583
1621
|
origin: ComponentOrigin.optional(),
|
|
1584
|
-
thumbnail: ComponentAsset
|
|
1622
|
+
thumbnail: ComponentAsset
|
|
1623
|
+
});
|
|
1624
|
+
var Component = BaseComponent.extend({
|
|
1585
1625
|
svg: ComponentAsset.optional(),
|
|
1586
|
-
isAsset: _zod.z.boolean()
|
|
1626
|
+
isAsset: _zod.z.boolean(),
|
|
1627
|
+
componentSetId: _zod.z.string().optional(),
|
|
1628
|
+
properties: FigmaComponentProperties.optional()
|
|
1587
1629
|
});
|
|
1588
1630
|
var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
|
|
1589
1631
|
shortPersistentId: _zod.z.string().optional(),
|
|
@@ -2475,690 +2517,118 @@ var DocumentationCommentThread = _zod.z.object({
|
|
|
2475
2517
|
createdAt: _zod.z.coerce.date(),
|
|
2476
2518
|
updatedAt: _zod.z.coerce.date()
|
|
2477
2519
|
});
|
|
2478
|
-
var
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
}
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
});
|
|
2553
|
-
var NpmRegistryNoAuthConfig = _zod.z.object({
|
|
2554
|
-
authType: _zod.z.literal(NpmRegistryAuthType.Enum.None)
|
|
2555
|
-
});
|
|
2556
|
-
var NpmRegistrCustomAuthConfig = _zod.z.object({
|
|
2557
|
-
authType: _zod.z.literal(NpmRegistryAuthType.Enum.Custom),
|
|
2558
|
-
authHeaderName: _zod.z.string(),
|
|
2559
|
-
authHeaderValue: _zod.z.string()
|
|
2560
|
-
});
|
|
2561
|
-
var NpmRegistryAuthConfig = _zod.z.discriminatedUnion("authType", [
|
|
2562
|
-
NpmRegistryBasicAuthConfig,
|
|
2563
|
-
NpmRegistryBearerAuthConfig,
|
|
2564
|
-
NpmRegistryNoAuthConfig,
|
|
2565
|
-
NpmRegistrCustomAuthConfig
|
|
2566
|
-
]);
|
|
2567
|
-
var NpmRegistryConfigBase = _zod.z.object({
|
|
2568
|
-
registryType: NpmRegistryType,
|
|
2569
|
-
enabledScopes: _zod.z.array(_zod.z.string()),
|
|
2570
|
-
customRegistryUrl: _zod.z.string().optional(),
|
|
2571
|
-
bypassProxy: _zod.z.boolean().default(false),
|
|
2572
|
-
npmProxyRegistryConfigId: _zod.z.string().optional(),
|
|
2573
|
-
npmProxyVersion: _zod.z.number().optional()
|
|
2574
|
-
});
|
|
2575
|
-
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
2576
|
-
var SsoProvider = _zod.z.object({
|
|
2577
|
-
providerId: _zod.z.string(),
|
|
2578
|
-
defaultAutoInviteValue: _zod.z.boolean(),
|
|
2579
|
-
autoInviteDomains: _zod.z.record(_zod.z.string(), _zod.z.boolean()),
|
|
2580
|
-
skipDocsSupernovaLogin: _zod.z.boolean(),
|
|
2581
|
-
areInvitesDisabled: _zod.z.boolean(),
|
|
2582
|
-
isTestMode: _zod.z.boolean(),
|
|
2583
|
-
emailDomains: _zod.z.array(_zod.z.string()),
|
|
2584
|
-
metadataXml: _zod.z.string().nullish()
|
|
2585
|
-
});
|
|
2586
|
-
var isValidCIDR = (value) => {
|
|
2587
|
-
return _ipcidr2.default.isValidAddress(value);
|
|
2520
|
+
var SupernovaException = class _SupernovaException extends Error {
|
|
2521
|
+
//
|
|
2522
|
+
// Properties
|
|
2523
|
+
//
|
|
2524
|
+
constructor(type, message) {
|
|
2525
|
+
super(`${type}: ${message}`);
|
|
2526
|
+
this.type = type;
|
|
2527
|
+
}
|
|
2528
|
+
static wrongFormat(message) {
|
|
2529
|
+
return new _SupernovaException("WrongFormat", message);
|
|
2530
|
+
}
|
|
2531
|
+
static validationError(message) {
|
|
2532
|
+
return new _SupernovaException("ValidationError", message);
|
|
2533
|
+
}
|
|
2534
|
+
static accessDenied(message) {
|
|
2535
|
+
return new _SupernovaException("AccessDenied", message);
|
|
2536
|
+
}
|
|
2537
|
+
static tooMuchWork(message) {
|
|
2538
|
+
return new _SupernovaException("TooMuchWork", message);
|
|
2539
|
+
}
|
|
2540
|
+
static notFound(message) {
|
|
2541
|
+
return new _SupernovaException("ResourceNotFound", message);
|
|
2542
|
+
}
|
|
2543
|
+
static timeout(message) {
|
|
2544
|
+
return new _SupernovaException("Timeout", message);
|
|
2545
|
+
}
|
|
2546
|
+
static conflict(message) {
|
|
2547
|
+
return new _SupernovaException("Conflict", message);
|
|
2548
|
+
}
|
|
2549
|
+
static notImplemented(message) {
|
|
2550
|
+
return new _SupernovaException("NotImplemented", message);
|
|
2551
|
+
}
|
|
2552
|
+
static wrongActionOrder(message) {
|
|
2553
|
+
return new _SupernovaException("WrongActionOrder", message);
|
|
2554
|
+
}
|
|
2555
|
+
static invalidOperation(message) {
|
|
2556
|
+
return new _SupernovaException("InvalidOperation", message);
|
|
2557
|
+
}
|
|
2558
|
+
static shouldNotHappen(message) {
|
|
2559
|
+
return new _SupernovaException("UnexpectedError", message);
|
|
2560
|
+
}
|
|
2561
|
+
static ipRestricted(message) {
|
|
2562
|
+
return new _SupernovaException("IPRestricted", message);
|
|
2563
|
+
}
|
|
2564
|
+
static planRestricted(message) {
|
|
2565
|
+
return new _SupernovaException("PlanRestricted", message);
|
|
2566
|
+
}
|
|
2567
|
+
static missingWorkspacePermission(message) {
|
|
2568
|
+
return new _SupernovaException("MissingWorkspacePermission", message);
|
|
2569
|
+
}
|
|
2570
|
+
static missingExporterPermission(message) {
|
|
2571
|
+
return new _SupernovaException("MissingExporterPermission", message);
|
|
2572
|
+
}
|
|
2573
|
+
static missingIntegration(message) {
|
|
2574
|
+
return new _SupernovaException("MissingIntegration", message);
|
|
2575
|
+
}
|
|
2576
|
+
static missingIntegrationAccess(message) {
|
|
2577
|
+
return new _SupernovaException("MissingIntegrationAccess", message);
|
|
2578
|
+
}
|
|
2579
|
+
static noAccess(message) {
|
|
2580
|
+
return new _SupernovaException("NoAccess", message);
|
|
2581
|
+
}
|
|
2582
|
+
static missingCredentials(message) {
|
|
2583
|
+
return new _SupernovaException("MissingCredentials", message);
|
|
2584
|
+
}
|
|
2585
|
+
static thirdPartyError(message) {
|
|
2586
|
+
return new _SupernovaException("ThirdPartyError", message);
|
|
2587
|
+
}
|
|
2588
|
+
//
|
|
2589
|
+
// To refactor
|
|
2590
|
+
//
|
|
2591
|
+
static badRequest(message) {
|
|
2592
|
+
return new _SupernovaException("BadRequest", message);
|
|
2593
|
+
}
|
|
2588
2594
|
};
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
}
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
}
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
}
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
});
|
|
2627
|
-
var DesignSystem = _zod.z.object({
|
|
2628
|
-
id: _zod.z.string(),
|
|
2629
|
-
workspaceId: _zod.z.string(),
|
|
2630
|
-
name: _zod.z.string(),
|
|
2631
|
-
description: _zod.z.string(),
|
|
2632
|
-
docExporterId: nullishToOptional(_zod.z.string()),
|
|
2633
|
-
docSlug: _zod.z.string(),
|
|
2634
|
-
docUserSlug: nullishToOptional(_zod.z.string()),
|
|
2635
|
-
docSlugDeprecated: _zod.z.string(),
|
|
2636
|
-
isPublic: _zod.z.boolean(),
|
|
2637
|
-
isMultibrand: _zod.z.boolean(),
|
|
2638
|
-
docViewUrl: nullishToOptional(_zod.z.string()),
|
|
2639
|
-
basePrefixes: _zod.z.array(_zod.z.string()),
|
|
2640
|
-
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
2641
|
-
createdAt: _zod.z.coerce.date(),
|
|
2642
|
-
updatedAt: _zod.z.coerce.date()
|
|
2643
|
-
});
|
|
2644
|
-
var DesignSystemWithWorkspace = _zod.z.object({
|
|
2645
|
-
designSystem: DesignSystem,
|
|
2646
|
-
workspace: Workspace
|
|
2647
|
-
});
|
|
2648
|
-
var DS_NAME_MIN_LENGTH = 2;
|
|
2649
|
-
var DS_NAME_MAX_LENGTH = 64;
|
|
2650
|
-
var DS_DESC_MAX_LENGTH = 64;
|
|
2651
|
-
var DesignSystemUpdateInputMetadata = _zod.z.object({
|
|
2652
|
-
name: _zod.z.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
|
|
2653
|
-
description: _zod.z.string().max(DS_DESC_MAX_LENGTH).trim().optional()
|
|
2654
|
-
});
|
|
2655
|
-
var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
2656
|
-
id: true,
|
|
2657
|
-
createdAt: true,
|
|
2658
|
-
updatedAt: true,
|
|
2659
|
-
docSlug: true,
|
|
2660
|
-
docViewUrl: true,
|
|
2661
|
-
designSystemSwitcher: true
|
|
2662
|
-
}).extend({
|
|
2663
|
-
meta: DesignSystemUpdateInputMetadata.optional()
|
|
2664
|
-
});
|
|
2665
|
-
var DS_NAME_MIN_LENGTH2 = 2;
|
|
2666
|
-
var DS_NAME_MAX_LENGTH2 = 64;
|
|
2667
|
-
var DS_DESC_MAX_LENGTH2 = 64;
|
|
2668
|
-
var DesignSystemCreateInputMetadata = _zod.z.object({
|
|
2669
|
-
name: _zod.z.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
|
|
2670
|
-
description: _zod.z.string().max(DS_DESC_MAX_LENGTH2).trim()
|
|
2671
|
-
});
|
|
2672
|
-
var DesignSystemCreateInput = _zod.z.object({
|
|
2673
|
-
meta: DesignSystemCreateInputMetadata,
|
|
2674
|
-
workspaceId: _zod.z.string(),
|
|
2675
|
-
isPublic: _zod.z.boolean().optional(),
|
|
2676
|
-
basePrefixes: _zod.z.array(_zod.z.string()).optional(),
|
|
2677
|
-
docUserSlug: _zod.z.string().nullish().optional(),
|
|
2678
|
-
source: _zod.z.array(_zod.z.string()).optional()
|
|
2679
|
-
});
|
|
2680
|
-
var ExporterPropertyImageValue = _zod.z.object({
|
|
2681
|
-
asset: PageBlockAsset.optional(),
|
|
2682
|
-
assetId: _zod.z.string().optional(),
|
|
2683
|
-
assetUrl: _zod.z.string().optional()
|
|
2684
|
-
});
|
|
2685
|
-
var ExporterPropertyValue = _zod.z.object({
|
|
2686
|
-
key: _zod.z.string(),
|
|
2687
|
-
value: _zod.z.union([
|
|
2688
|
-
_zod.z.number(),
|
|
2689
|
-
_zod.z.string(),
|
|
2690
|
-
_zod.z.boolean(),
|
|
2691
|
-
ExporterPropertyImageValue,
|
|
2692
|
-
ColorTokenData,
|
|
2693
|
-
TypographyTokenData
|
|
2694
|
-
])
|
|
2695
|
-
});
|
|
2696
|
-
var ExporterPropertyValuesCollection = _zod.z.object({
|
|
2697
|
-
id: _zod.z.string(),
|
|
2698
|
-
designSystemId: _zod.z.string(),
|
|
2699
|
-
exporterId: _zod.z.string(),
|
|
2700
|
-
values: _zod.z.array(ExporterPropertyValue)
|
|
2701
|
-
});
|
|
2702
|
-
var PublishedDocPage = _zod.z.object({
|
|
2703
|
-
id: _zod.z.string(),
|
|
2704
|
-
publishedDocId: _zod.z.string(),
|
|
2705
|
-
pageShortPersistentId: _zod.z.string(),
|
|
2706
|
-
pathV1: _zod.z.string(),
|
|
2707
|
-
pathV2: _zod.z.string(),
|
|
2708
|
-
storagePath: _zod.z.string(),
|
|
2709
|
-
locale: _zod.z.string().optional(),
|
|
2710
|
-
isPrivate: _zod.z.boolean(),
|
|
2711
|
-
isHidden: _zod.z.boolean(),
|
|
2712
|
-
createdAt: _zod.z.coerce.date(),
|
|
2713
|
-
updatedAt: _zod.z.coerce.date()
|
|
2714
|
-
});
|
|
2715
|
-
var publishedDocEnvironments = ["Live", "Preview"];
|
|
2716
|
-
var PublishedDocEnvironment = _zod.z.enum(publishedDocEnvironments);
|
|
2717
|
-
var PublishedDocsChecksums = _zod.z.record(_zod.z.string());
|
|
2718
|
-
var PublishedDocRoutingVersion = _zod.z.enum(["1", "2"]);
|
|
2719
|
-
var PublishedDoc = _zod.z.object({
|
|
2720
|
-
id: _zod.z.string(),
|
|
2721
|
-
designSystemVersionId: _zod.z.string(),
|
|
2722
|
-
createdAt: _zod.z.coerce.date(),
|
|
2723
|
-
updatedAt: _zod.z.coerce.date(),
|
|
2724
|
-
lastPublishedAt: _zod.z.coerce.date(),
|
|
2725
|
-
isDefault: _zod.z.boolean(),
|
|
2726
|
-
isPublic: _zod.z.boolean(),
|
|
2727
|
-
environment: PublishedDocEnvironment,
|
|
2728
|
-
checksums: PublishedDocsChecksums,
|
|
2729
|
-
storagePath: _zod.z.string(),
|
|
2730
|
-
wasMigrated: _zod.z.boolean(),
|
|
2731
|
-
routingVersion: PublishedDocRoutingVersion,
|
|
2732
|
-
usesLocalizations: _zod.z.boolean(),
|
|
2733
|
-
wasPublishedWithLocalizations: _zod.z.boolean(),
|
|
2734
|
-
tokenCount: _zod.z.number(),
|
|
2735
|
-
assetCount: _zod.z.number()
|
|
2736
|
-
});
|
|
2737
|
-
var DesignSystemVersion = _zod.z.object({
|
|
2738
|
-
id: _zod.z.string(),
|
|
2739
|
-
version: _zod.z.string(),
|
|
2740
|
-
createdAt: _zod.z.date(),
|
|
2741
|
-
designSystemId: _zod.z.string(),
|
|
2742
|
-
name: _zod.z.string(),
|
|
2743
|
-
comment: _zod.z.string(),
|
|
2744
|
-
isReadonly: _zod.z.boolean(),
|
|
2745
|
-
changeLog: _zod.z.string(),
|
|
2746
|
-
parentId: _zod.z.string().optional(),
|
|
2747
|
-
isDraftsFeatureAdopted: _zod.z.boolean()
|
|
2748
|
-
});
|
|
2749
|
-
var VersionCreationJobStatus = _zod.z.enum(["Success", "InProgress", "Error"]);
|
|
2750
|
-
var VersionCreationJob = _zod.z.object({
|
|
2751
|
-
id: _zod.z.string(),
|
|
2752
|
-
version: _zod.z.string(),
|
|
2753
|
-
designSystemId: _zod.z.string(),
|
|
2754
|
-
designSystemVersionId: nullishToOptional(_zod.z.string()),
|
|
2755
|
-
status: VersionCreationJobStatus,
|
|
2756
|
-
errorMessage: nullishToOptional(_zod.z.string())
|
|
2757
|
-
});
|
|
2758
|
-
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
2759
|
-
var BITBUCKET_MAX_LENGTH = 64;
|
|
2760
|
-
var ExportJobDocumentationChanges = _zod.z.object({
|
|
2761
|
-
pagePersistentIds: _zod.z.string().array(),
|
|
2762
|
-
groupPersistentIds: _zod.z.string().array()
|
|
2763
|
-
});
|
|
2764
|
-
var ExporterDestinationDocs = _zod.z.object({
|
|
2765
|
-
environment: PublishedDocEnvironment,
|
|
2766
|
-
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
2767
|
-
});
|
|
2768
|
-
var ExporterDestinationS3 = _zod.z.object({});
|
|
2769
|
-
var ExporterDestinationGithub = _zod.z.object({
|
|
2770
|
-
credentialId: _zod.z.string().optional(),
|
|
2771
|
-
// Repository
|
|
2772
|
-
url: _zod.z.string(),
|
|
2773
|
-
// Location
|
|
2774
|
-
branch: _zod.z.string(),
|
|
2775
|
-
relativePath: nullishToOptional(_zod.z.string()),
|
|
2776
|
-
// Legacy deprecated fields. Use `credentialId` instead
|
|
2777
|
-
connectionId: nullishToOptional(_zod.z.string()),
|
|
2778
|
-
userId: nullishToOptional(_zod.z.number())
|
|
2779
|
-
});
|
|
2780
|
-
var ExporterDestinationAzure = _zod.z.object({
|
|
2781
|
-
credentialId: _zod.z.string().optional(),
|
|
2782
|
-
// Repository
|
|
2783
|
-
organizationId: _zod.z.string(),
|
|
2784
|
-
projectId: _zod.z.string(),
|
|
2785
|
-
repositoryId: _zod.z.string(),
|
|
2786
|
-
// Location
|
|
2787
|
-
branch: _zod.z.string(),
|
|
2788
|
-
relativePath: nullishToOptional(_zod.z.string()),
|
|
2789
|
-
// Maybe not needed
|
|
2790
|
-
url: nullishToOptional(_zod.z.string()),
|
|
2791
|
-
// Legacy deprecated fields. Use `credentialId` instead
|
|
2792
|
-
connectionId: nullishToOptional(_zod.z.string()),
|
|
2793
|
-
userId: nullishToOptional(_zod.z.number())
|
|
2794
|
-
});
|
|
2795
|
-
var ExporterDestinationGitlab = _zod.z.object({
|
|
2796
|
-
credentialId: _zod.z.string().optional(),
|
|
2797
|
-
// Repository
|
|
2798
|
-
projectId: _zod.z.string(),
|
|
2799
|
-
// Location
|
|
2800
|
-
branch: _zod.z.string(),
|
|
2801
|
-
relativePath: nullishToOptional(_zod.z.string()),
|
|
2802
|
-
// Maybe not needed
|
|
2803
|
-
url: nullishToOptional(_zod.z.string()),
|
|
2804
|
-
// Legacy deprecated fields. Use `credentialId` instead
|
|
2805
|
-
connectionId: nullishToOptional(_zod.z.string()),
|
|
2806
|
-
userId: nullishToOptional(_zod.z.number())
|
|
2807
|
-
});
|
|
2808
|
-
var ExporterDestinationBitbucket = _zod.z.object({
|
|
2809
|
-
credentialId: _zod.z.string().optional(),
|
|
2810
|
-
// Repository
|
|
2811
|
-
workspaceSlug: _zod.z.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2812
|
-
projectKey: _zod.z.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2813
|
-
repoSlug: _zod.z.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2814
|
-
// Location
|
|
2815
|
-
branch: _zod.z.string(),
|
|
2816
|
-
relativePath: nullishToOptional(_zod.z.string()),
|
|
2817
|
-
// Legacy deprecated fields. Use `credentialId` instead
|
|
2818
|
-
connectionId: nullishToOptional(_zod.z.string()),
|
|
2819
|
-
userId: nullishToOptional(_zod.z.number())
|
|
2820
|
-
});
|
|
2821
|
-
var ExportDestinationsMap = _zod.z.object({
|
|
2822
|
-
webhookUrl: _zod.z.string().optional(),
|
|
2823
|
-
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
2824
|
-
destinationS3: ExporterDestinationS3.optional(),
|
|
2825
|
-
destinationGithub: ExporterDestinationGithub.optional(),
|
|
2826
|
-
destinationAzure: ExporterDestinationAzure.optional(),
|
|
2827
|
-
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
2828
|
-
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
2829
|
-
});
|
|
2830
|
-
var PipelineEventType = _zod.z.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
2831
|
-
var PipelineDestinationGitType = _zod.z.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
2832
|
-
var PipelineDestinationExtraType = _zod.z.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
2833
|
-
var PipelineDestinationType = _zod.z.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
2834
|
-
var Pipeline = _zod.z.object({
|
|
2835
|
-
id: _zod.z.string(),
|
|
2836
|
-
name: _zod.z.string(),
|
|
2837
|
-
eventType: PipelineEventType,
|
|
2838
|
-
isEnabled: _zod.z.boolean(),
|
|
2839
|
-
workspaceId: _zod.z.string(),
|
|
2840
|
-
designSystemId: _zod.z.string(),
|
|
2841
|
-
exporterId: _zod.z.string(),
|
|
2842
|
-
brandPersistentId: _zod.z.string().optional(),
|
|
2843
|
-
themePersistentId: _zod.z.string().optional(),
|
|
2844
|
-
// Destinations
|
|
2845
|
-
...ExportDestinationsMap.shape
|
|
2846
|
-
});
|
|
2847
|
-
var ExportJobDump = _zod.z.object({
|
|
2848
|
-
id: _zod.z.string(),
|
|
2849
|
-
createdAt: _zod.z.coerce.date(),
|
|
2850
|
-
finishedAt: _zod.z.coerce.date(),
|
|
2851
|
-
exportArtefacts: _zod.z.string()
|
|
2852
|
-
});
|
|
2853
|
-
var CodeIntegrationDump = _zod.z.object({
|
|
2854
|
-
exporters: Exporter.array(),
|
|
2855
|
-
pipelines: Pipeline.array(),
|
|
2856
|
-
exportJobs: ExportJobDump.array()
|
|
2857
|
-
});
|
|
2858
|
-
var DesignSystemVersionRoom = Entity.extend({
|
|
2859
|
-
designSystemVersionId: _zod.z.string(),
|
|
2860
|
-
liveblocksId: _zod.z.string()
|
|
2861
|
-
});
|
|
2862
|
-
var DesignSystemVersionRoomInternalSettings = _zod.z.object({
|
|
2863
|
-
routingVersion: _zod.z.string(),
|
|
2864
|
-
isDraftFeatureAdopted: _zod.z.boolean()
|
|
2865
|
-
});
|
|
2866
|
-
var DesignSystemVersionRoomInitialState = _zod.z.object({
|
|
2867
|
-
pages: _zod.z.array(DocumentationPageV2),
|
|
2868
|
-
groups: _zod.z.array(ElementGroup),
|
|
2869
|
-
pageSnapshots: _zod.z.array(DocumentationPageSnapshot),
|
|
2870
|
-
groupSnapshots: _zod.z.array(ElementGroupSnapshot),
|
|
2871
|
-
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
2872
|
-
});
|
|
2873
|
-
var DesignSystemVersionRoomUpdate = _zod.z.object({
|
|
2874
|
-
pages: _zod.z.array(DocumentationPageV2),
|
|
2875
|
-
groups: _zod.z.array(ElementGroup),
|
|
2876
|
-
pageIdsToDelete: _zod.z.array(_zod.z.string()),
|
|
2877
|
-
groupIdsToDelete: _zod.z.array(_zod.z.string()),
|
|
2878
|
-
pageSnapshots: _zod.z.array(DocumentationPageSnapshot),
|
|
2879
|
-
groupSnapshots: _zod.z.array(ElementGroupSnapshot),
|
|
2880
|
-
pageSnapshotIdsToDelete: _zod.z.array(_zod.z.string()),
|
|
2881
|
-
groupSnapshotIdsToDelete: _zod.z.array(_zod.z.string()),
|
|
2882
|
-
pageHashesToUpdate: _zod.z.record(_zod.z.string(), _zod.z.string())
|
|
2883
|
-
});
|
|
2884
|
-
var DocumentationPageRoom = Entity.extend({
|
|
2885
|
-
designSystemVersionId: _zod.z.string(),
|
|
2886
|
-
documentationPageId: _zod.z.string(),
|
|
2887
|
-
liveblocksId: _zod.z.string(),
|
|
2888
|
-
isDirty: _zod.z.boolean()
|
|
2889
|
-
});
|
|
2890
|
-
var DocumentationPageRoomState = _zod.z.object({
|
|
2891
|
-
pageItems: _zod.z.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
2892
|
-
itemConfiguration: DocumentationItemConfigurationV2
|
|
2893
|
-
});
|
|
2894
|
-
var DocumentationPageRoomRoomUpdate = _zod.z.object({
|
|
2895
|
-
page: DocumentationPageV2,
|
|
2896
|
-
pageParent: ElementGroup
|
|
2897
|
-
});
|
|
2898
|
-
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
2899
|
-
pageItems: _zod.z.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
2900
|
-
blockDefinitions: _zod.z.array(PageBlockDefinition)
|
|
2901
|
-
});
|
|
2902
|
-
var RestoredDocumentationPage = _zod.z.object({
|
|
2903
|
-
page: DocumentationPageV2,
|
|
2904
|
-
pageParent: ElementGroup,
|
|
2905
|
-
pageContent: DocumentationPageContentData,
|
|
2906
|
-
contentHash: _zod.z.string(),
|
|
2907
|
-
roomId: _zod.z.string().optional()
|
|
2908
|
-
});
|
|
2909
|
-
var RestoredDocumentationGroup = _zod.z.object({
|
|
2910
|
-
group: ElementGroup,
|
|
2911
|
-
parent: ElementGroup
|
|
2912
|
-
});
|
|
2913
|
-
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
2914
|
-
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
2915
|
-
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
2916
|
-
RoomTypeEnum2["Workspace"] = "workspace";
|
|
2917
|
-
return RoomTypeEnum2;
|
|
2918
|
-
})(RoomTypeEnum || {});
|
|
2919
|
-
var RoomTypeSchema = _zod.z.nativeEnum(RoomTypeEnum);
|
|
2920
|
-
var RoomType = RoomTypeSchema.enum;
|
|
2921
|
-
var WorkspaceRoom = Entity.extend({
|
|
2922
|
-
workspaceId: _zod.z.string(),
|
|
2923
|
-
liveblocksId: _zod.z.string()
|
|
2924
|
-
});
|
|
2925
|
-
var PublishedDocsDump = _zod.z.object({
|
|
2926
|
-
documentation: PublishedDoc,
|
|
2927
|
-
pages: PublishedDocPage.array()
|
|
2928
|
-
});
|
|
2929
|
-
var DocumentationThreadDump = _zod.z.object({
|
|
2930
|
-
thread: DocumentationCommentThread,
|
|
2931
|
-
comments: DocumentationComment.array()
|
|
2932
|
-
});
|
|
2933
|
-
var DocumentationPageRoomDump = _zod.z.object({
|
|
2934
|
-
room: DocumentationPageRoom,
|
|
2935
|
-
threads: DocumentationThreadDump.array()
|
|
2936
|
-
});
|
|
2937
|
-
var DesignSystemVersionMultiplayerDump = _zod.z.object({
|
|
2938
|
-
documentationPages: DocumentationPageRoomDump.array()
|
|
2939
|
-
});
|
|
2940
|
-
var DesignSystemVersionDump = _zod.z.object({
|
|
2941
|
-
version: DesignSystemVersion,
|
|
2942
|
-
brands: Brand.array(),
|
|
2943
|
-
elements: DesignElement.array(),
|
|
2944
|
-
elementPropertyDefinitions: ElementPropertyDefinition.array(),
|
|
2945
|
-
elementPropertyValues: ElementPropertyValue.array(),
|
|
2946
|
-
elementViews: ElementView.array(),
|
|
2947
|
-
elementColumns: ElementViewColumn.array(),
|
|
2948
|
-
documentationPageContents: DocumentationPageContent.array(),
|
|
2949
|
-
documentationPageRooms: DocumentationPageRoomDump.array(),
|
|
2950
|
-
publishedDocumentations: PublishedDocsDump.array(),
|
|
2951
|
-
assetReferences: AssetReference.array()
|
|
2952
|
-
});
|
|
2953
|
-
var DesignSystemDump = _zod.z.object({
|
|
2954
|
-
designSystem: DesignSystem,
|
|
2955
|
-
dataSources: DataSource.array(),
|
|
2956
|
-
versions: DesignSystemVersionDump.array(),
|
|
2957
|
-
customDomain: CustomDomain.optional(),
|
|
2958
|
-
files: Asset.array()
|
|
2959
|
-
});
|
|
2960
|
-
var IntegrationAuthType = _zod.z.union([_zod.z.literal("OAuth2"), _zod.z.literal("PAT")]);
|
|
2961
|
-
var ExternalServiceType = _zod.z.union([
|
|
2962
|
-
_zod.z.literal("figma"),
|
|
2963
|
-
_zod.z.literal("github"),
|
|
2964
|
-
_zod.z.literal("azure"),
|
|
2965
|
-
_zod.z.literal("gitlab"),
|
|
2966
|
-
_zod.z.literal("bitbucket")
|
|
2967
|
-
]);
|
|
2968
|
-
var IntegrationUserInfo = _zod.z.object({
|
|
2969
|
-
id: _zod.z.string(),
|
|
2970
|
-
handle: _zod.z.string().optional(),
|
|
2971
|
-
avatarUrl: _zod.z.string().optional(),
|
|
2972
|
-
email: _zod.z.string().optional(),
|
|
2973
|
-
authType: IntegrationAuthType.optional(),
|
|
2974
|
-
customUrl: _zod.z.string().optional()
|
|
2975
|
-
});
|
|
2976
|
-
var UserLinkedIntegrations = _zod.z.object({
|
|
2977
|
-
figma: IntegrationUserInfo.optional(),
|
|
2978
|
-
github: IntegrationUserInfo.array().optional(),
|
|
2979
|
-
azure: IntegrationUserInfo.array().optional(),
|
|
2980
|
-
gitlab: IntegrationUserInfo.array().optional(),
|
|
2981
|
-
bitbucket: IntegrationUserInfo.array().optional()
|
|
2982
|
-
});
|
|
2983
|
-
var UserAnalyticsCleanupSchedule = _zod.z.object({
|
|
2984
|
-
userId: _zod.z.string(),
|
|
2985
|
-
createdAt: _zod.z.coerce.date(),
|
|
2986
|
-
deleteAt: _zod.z.coerce.date()
|
|
2987
|
-
});
|
|
2988
|
-
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
2989
|
-
createdAt: true
|
|
2990
|
-
});
|
|
2991
|
-
var CreateUserInput = _zod.z.object({
|
|
2992
|
-
email: _zod.z.string(),
|
|
2993
|
-
name: _zod.z.string(),
|
|
2994
|
-
username: _zod.z.string()
|
|
2995
|
-
});
|
|
2996
|
-
var UserIdentity = _zod.z.object({
|
|
2997
|
-
id: _zod.z.string(),
|
|
2998
|
-
userId: _zod.z.string()
|
|
2999
|
-
});
|
|
3000
|
-
var UserMinified = _zod.z.object({
|
|
3001
|
-
id: _zod.z.string(),
|
|
3002
|
-
name: _zod.z.string(),
|
|
3003
|
-
email: _zod.z.string(),
|
|
3004
|
-
avatar: _zod.z.string().optional()
|
|
3005
|
-
});
|
|
3006
|
-
var LiveblocksNotificationSettings = _zod.z.object({
|
|
3007
|
-
sendCommentNotificationEmails: _zod.z.boolean()
|
|
3008
|
-
});
|
|
3009
|
-
var UserNotificationSettings = _zod.z.object({
|
|
3010
|
-
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
3011
|
-
});
|
|
3012
|
-
var UserOnboardingDepartment = _zod.z.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3013
|
-
var UserOnboardingJobLevel = _zod.z.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
3014
|
-
var UserOnboarding = _zod.z.object({
|
|
3015
|
-
companyName: _zod.z.string().optional(),
|
|
3016
|
-
numberOfPeopleInOrg: _zod.z.string().optional(),
|
|
3017
|
-
numberOfPeopleInDesignTeam: _zod.z.string().optional(),
|
|
3018
|
-
department: UserOnboardingDepartment.optional(),
|
|
3019
|
-
jobTitle: _zod.z.string().optional(),
|
|
3020
|
-
phase: _zod.z.string().optional(),
|
|
3021
|
-
jobLevel: UserOnboardingJobLevel.optional(),
|
|
3022
|
-
designSystemName: _zod.z.string().optional(),
|
|
3023
|
-
defaultDestination: _zod.z.string().optional(),
|
|
3024
|
-
figmaUrl: _zod.z.string().optional()
|
|
3025
|
-
});
|
|
3026
|
-
var UserProfile = _zod.z.object({
|
|
3027
|
-
name: _zod.z.string(),
|
|
3028
|
-
avatar: _zod.z.string().optional(),
|
|
3029
|
-
nickname: _zod.z.string().optional(),
|
|
3030
|
-
onboarding: UserOnboarding.optional()
|
|
3031
|
-
});
|
|
3032
|
-
var UserProfileUpdate = UserProfile.partial().omit({
|
|
3033
|
-
avatar: true
|
|
3034
|
-
});
|
|
3035
|
-
var UserTest = _zod.z.object({
|
|
3036
|
-
id: _zod.z.string(),
|
|
3037
|
-
email: _zod.z.string()
|
|
3038
|
-
});
|
|
3039
|
-
var User = _zod.z.object({
|
|
3040
|
-
id: _zod.z.string(),
|
|
3041
|
-
email: _zod.z.string(),
|
|
3042
|
-
emailVerified: _zod.z.boolean(),
|
|
3043
|
-
createdAt: _zod.z.coerce.date(),
|
|
3044
|
-
trialExpiresAt: _zod.z.coerce.date().optional(),
|
|
3045
|
-
profile: UserProfile,
|
|
3046
|
-
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
3047
|
-
loggedOutAt: _zod.z.coerce.date().optional(),
|
|
3048
|
-
isProtected: _zod.z.boolean()
|
|
3049
|
-
});
|
|
3050
|
-
var SupernovaException = class _SupernovaException extends Error {
|
|
3051
|
-
//
|
|
3052
|
-
// Properties
|
|
3053
|
-
//
|
|
3054
|
-
constructor(type, message) {
|
|
3055
|
-
super(`${type}: ${message}`);
|
|
3056
|
-
this.type = type;
|
|
3057
|
-
}
|
|
3058
|
-
static wrongFormat(message) {
|
|
3059
|
-
return new _SupernovaException("WrongFormat", message);
|
|
3060
|
-
}
|
|
3061
|
-
static validationError(message) {
|
|
3062
|
-
return new _SupernovaException("ValidationError", message);
|
|
3063
|
-
}
|
|
3064
|
-
static accessDenied(message) {
|
|
3065
|
-
return new _SupernovaException("AccessDenied", message);
|
|
3066
|
-
}
|
|
3067
|
-
static tooMuchWork(message) {
|
|
3068
|
-
return new _SupernovaException("TooMuchWork", message);
|
|
3069
|
-
}
|
|
3070
|
-
static notFound(message) {
|
|
3071
|
-
return new _SupernovaException("ResourceNotFound", message);
|
|
3072
|
-
}
|
|
3073
|
-
static timeout(message) {
|
|
3074
|
-
return new _SupernovaException("Timeout", message);
|
|
3075
|
-
}
|
|
3076
|
-
static conflict(message) {
|
|
3077
|
-
return new _SupernovaException("Conflict", message);
|
|
3078
|
-
}
|
|
3079
|
-
static notImplemented(message) {
|
|
3080
|
-
return new _SupernovaException("NotImplemented", message);
|
|
3081
|
-
}
|
|
3082
|
-
static wrongActionOrder(message) {
|
|
3083
|
-
return new _SupernovaException("WrongActionOrder", message);
|
|
3084
|
-
}
|
|
3085
|
-
static invalidOperation(message) {
|
|
3086
|
-
return new _SupernovaException("InvalidOperation", message);
|
|
3087
|
-
}
|
|
3088
|
-
static shouldNotHappen(message) {
|
|
3089
|
-
return new _SupernovaException("UnexpectedError", message);
|
|
3090
|
-
}
|
|
3091
|
-
static ipRestricted(message) {
|
|
3092
|
-
return new _SupernovaException("IPRestricted", message);
|
|
3093
|
-
}
|
|
3094
|
-
static planRestricted(message) {
|
|
3095
|
-
return new _SupernovaException("PlanRestricted", message);
|
|
3096
|
-
}
|
|
3097
|
-
static missingWorkspacePermission(message) {
|
|
3098
|
-
return new _SupernovaException("MissingWorkspacePermission", message);
|
|
3099
|
-
}
|
|
3100
|
-
static missingExporterPermission(message) {
|
|
3101
|
-
return new _SupernovaException("MissingExporterPermission", message);
|
|
3102
|
-
}
|
|
3103
|
-
static missingIntegration(message) {
|
|
3104
|
-
return new _SupernovaException("MissingIntegration", message);
|
|
3105
|
-
}
|
|
3106
|
-
static missingIntegrationAccess(message) {
|
|
3107
|
-
return new _SupernovaException("MissingIntegrationAccess", message);
|
|
3108
|
-
}
|
|
3109
|
-
static noAccess(message) {
|
|
3110
|
-
return new _SupernovaException("NoAccess", message);
|
|
3111
|
-
}
|
|
3112
|
-
static missingCredentials(message) {
|
|
3113
|
-
return new _SupernovaException("MissingCredentials", message);
|
|
3114
|
-
}
|
|
3115
|
-
static thirdPartyError(message) {
|
|
3116
|
-
return new _SupernovaException("ThirdPartyError", message);
|
|
3117
|
-
}
|
|
3118
|
-
//
|
|
3119
|
-
// To refactor
|
|
3120
|
-
//
|
|
3121
|
-
static badRequest(message) {
|
|
3122
|
-
return new _SupernovaException("BadRequest", message);
|
|
3123
|
-
}
|
|
3124
|
-
};
|
|
3125
|
-
function tryParseUrl(url) {
|
|
3126
|
-
try {
|
|
3127
|
-
return parseUrl(url);
|
|
3128
|
-
} catch (e) {
|
|
3129
|
-
console.error(`Error parsing URL ${url}`);
|
|
3130
|
-
console.error(e);
|
|
3131
|
-
return null;
|
|
3132
|
-
}
|
|
3133
|
-
}
|
|
3134
|
-
function parseUrl(url) {
|
|
3135
|
-
return new URL(url.startsWith("https://") || url.startsWith("http://") ? url : `https://${url}`);
|
|
3136
|
-
}
|
|
3137
|
-
function mapByUnique(items, keyFn) {
|
|
3138
|
-
const result = /* @__PURE__ */ new Map();
|
|
3139
|
-
for (const item of items) {
|
|
3140
|
-
result.set(keyFn(item), item);
|
|
3141
|
-
}
|
|
3142
|
-
return result;
|
|
3143
|
-
}
|
|
3144
|
-
function groupBy(items, keyFn) {
|
|
3145
|
-
const result = /* @__PURE__ */ new Map();
|
|
3146
|
-
for (const item of items) {
|
|
3147
|
-
const key = keyFn(item);
|
|
3148
|
-
const array = result.get(key);
|
|
3149
|
-
if (array) {
|
|
3150
|
-
array.push(item);
|
|
3151
|
-
} else {
|
|
3152
|
-
result.set(key, [item]);
|
|
3153
|
-
}
|
|
3154
|
-
}
|
|
3155
|
-
return result;
|
|
3156
|
-
}
|
|
3157
|
-
var ContentLoadInstruction = _zod.z.object({
|
|
3158
|
-
from: _zod.z.string(),
|
|
3159
|
-
to: _zod.z.string(),
|
|
3160
|
-
authorizationHeaderKvsId: _zod.z.string().optional(),
|
|
3161
|
-
timeout: _zod.z.number().optional()
|
|
2595
|
+
function tryParseUrl(url) {
|
|
2596
|
+
try {
|
|
2597
|
+
return parseUrl(url);
|
|
2598
|
+
} catch (e) {
|
|
2599
|
+
console.error(`Error parsing URL ${url}`);
|
|
2600
|
+
console.error(e);
|
|
2601
|
+
return null;
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
function parseUrl(url) {
|
|
2605
|
+
return new URL(url.startsWith("https://") || url.startsWith("http://") ? url : `https://${url}`);
|
|
2606
|
+
}
|
|
2607
|
+
function mapByUnique(items, keyFn) {
|
|
2608
|
+
const result = /* @__PURE__ */ new Map();
|
|
2609
|
+
for (const item of items) {
|
|
2610
|
+
result.set(keyFn(item), item);
|
|
2611
|
+
}
|
|
2612
|
+
return result;
|
|
2613
|
+
}
|
|
2614
|
+
function groupBy(items, keyFn) {
|
|
2615
|
+
const result = /* @__PURE__ */ new Map();
|
|
2616
|
+
for (const item of items) {
|
|
2617
|
+
const key = keyFn(item);
|
|
2618
|
+
const array = result.get(key);
|
|
2619
|
+
if (array) {
|
|
2620
|
+
array.push(item);
|
|
2621
|
+
} else {
|
|
2622
|
+
result.set(key, [item]);
|
|
2623
|
+
}
|
|
2624
|
+
}
|
|
2625
|
+
return result;
|
|
2626
|
+
}
|
|
2627
|
+
var ContentLoadInstruction = _zod.z.object({
|
|
2628
|
+
from: _zod.z.string(),
|
|
2629
|
+
to: _zod.z.string(),
|
|
2630
|
+
authorizationHeaderKvsId: _zod.z.string().optional(),
|
|
2631
|
+
timeout: _zod.z.number().optional()
|
|
3162
2632
|
});
|
|
3163
2633
|
var ContentLoaderPayload = _zod.z.object({
|
|
3164
2634
|
type: _zod.z.literal("Single"),
|
|
@@ -3177,7 +2647,7 @@ var ContentLoaderPayload = _zod.z.object({
|
|
|
3177
2647
|
);
|
|
3178
2648
|
function slugify(str, options) {
|
|
3179
2649
|
const slug = _slugify2.default.call(void 0, _nullishCoalesce(str, () => ( "")), options);
|
|
3180
|
-
return _optionalChain([slug, 'optionalAccess',
|
|
2650
|
+
return _optionalChain([slug, 'optionalAccess', _2 => _2.length]) > 0 ? slug : "item";
|
|
3181
2651
|
}
|
|
3182
2652
|
var RESERVED_SLUGS = [
|
|
3183
2653
|
"workspaces",
|
|
@@ -3800,6 +3270,591 @@ var RESERVED_SLUGS = [
|
|
|
3800
3270
|
];
|
|
3801
3271
|
var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
|
|
3802
3272
|
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
3273
|
+
var DesignElementSnapshotReason = _zod.z.enum(["Publish", "Deletion"]);
|
|
3274
|
+
var DesignElementSnapshotBase = _zod.z.object({
|
|
3275
|
+
id: _zod.z.string(),
|
|
3276
|
+
persistentId: _zod.z.string(),
|
|
3277
|
+
designSystemVersionId: _zod.z.string(),
|
|
3278
|
+
createdAt: _zod.z.coerce.date(),
|
|
3279
|
+
updatedAt: _zod.z.coerce.date(),
|
|
3280
|
+
reason: DesignElementSnapshotReason,
|
|
3281
|
+
createdByUserId: _zod.z.string()
|
|
3282
|
+
});
|
|
3283
|
+
function pickLatestSnapshots(snapshots, getSnapshotElementId) {
|
|
3284
|
+
const groupedSnapshots = groupBy(snapshots, getSnapshotElementId);
|
|
3285
|
+
return Array.from(groupedSnapshots.entries()).map(([_, snapshots2]) => {
|
|
3286
|
+
const sorted = snapshots2.sort((lhs, rhs) => rhs.createdAt.getTime() - lhs.createdAt.getTime());
|
|
3287
|
+
return sorted[0];
|
|
3288
|
+
});
|
|
3289
|
+
}
|
|
3290
|
+
var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
|
|
3291
|
+
page: DocumentationPageV2,
|
|
3292
|
+
pageContentHash: _zod.z.string(),
|
|
3293
|
+
pageContentStorageKey: _zod.z.string()
|
|
3294
|
+
});
|
|
3295
|
+
function pickLatestPageSnapshots(snapshots) {
|
|
3296
|
+
return pickLatestSnapshots(snapshots, (s) => s.page.id);
|
|
3297
|
+
}
|
|
3298
|
+
var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
|
|
3299
|
+
group: ElementGroup
|
|
3300
|
+
});
|
|
3301
|
+
function pickLatestGroupSnapshots(snapshots) {
|
|
3302
|
+
return pickLatestSnapshots(snapshots, (s) => s.group.id);
|
|
3303
|
+
}
|
|
3304
|
+
var ElementViewBaseColumnType = _zod.z.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
3305
|
+
var ElementViewColumnType = _zod.z.union([
|
|
3306
|
+
_zod.z.literal("BaseProperty"),
|
|
3307
|
+
_zod.z.literal("PropertyDefinition"),
|
|
3308
|
+
_zod.z.literal("Theme")
|
|
3309
|
+
]);
|
|
3310
|
+
var ElementViewColumnSharedAttributes = _zod.z.object({
|
|
3311
|
+
id: _zod.z.string(),
|
|
3312
|
+
persistentId: _zod.z.string(),
|
|
3313
|
+
elementDataViewId: _zod.z.string(),
|
|
3314
|
+
sortPosition: _zod.z.number(),
|
|
3315
|
+
width: _zod.z.number()
|
|
3316
|
+
});
|
|
3317
|
+
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
3318
|
+
type: _zod.z.literal("BaseProperty"),
|
|
3319
|
+
basePropertyType: ElementViewBaseColumnType
|
|
3320
|
+
});
|
|
3321
|
+
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
3322
|
+
type: _zod.z.literal("PropertyDefinition"),
|
|
3323
|
+
propertyDefinitionId: _zod.z.string()
|
|
3324
|
+
});
|
|
3325
|
+
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
3326
|
+
type: _zod.z.literal("Theme"),
|
|
3327
|
+
themeId: _zod.z.string()
|
|
3328
|
+
});
|
|
3329
|
+
var ElementViewColumn = _zod.z.discriminatedUnion("type", [
|
|
3330
|
+
ElementViewBasePropertyColumn,
|
|
3331
|
+
ElementViewPropertyDefinitionColumn,
|
|
3332
|
+
ElementViewThemeColumn
|
|
3333
|
+
]);
|
|
3334
|
+
var ElementView = _zod.z.object({
|
|
3335
|
+
id: _zod.z.string(),
|
|
3336
|
+
persistentId: _zod.z.string(),
|
|
3337
|
+
designSystemVersionId: _zod.z.string(),
|
|
3338
|
+
name: _zod.z.string(),
|
|
3339
|
+
description: _zod.z.string(),
|
|
3340
|
+
targetElementType: ElementPropertyTargetType,
|
|
3341
|
+
isDefault: _zod.z.boolean()
|
|
3342
|
+
});
|
|
3343
|
+
var Brand = _zod.z.object({
|
|
3344
|
+
id: _zod.z.string(),
|
|
3345
|
+
designSystemVersionId: _zod.z.string(),
|
|
3346
|
+
persistentId: _zod.z.string(),
|
|
3347
|
+
name: _zod.z.string(),
|
|
3348
|
+
description: _zod.z.string()
|
|
3349
|
+
});
|
|
3350
|
+
var NpmRegistryAuthType = _zod.z.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
3351
|
+
var NpmRegistryType = _zod.z.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
3352
|
+
var NpmRegistryBasicAuthConfig = _zod.z.object({
|
|
3353
|
+
authType: _zod.z.literal(NpmRegistryAuthType.Enum.Basic),
|
|
3354
|
+
username: _zod.z.string(),
|
|
3355
|
+
password: _zod.z.string()
|
|
3356
|
+
});
|
|
3357
|
+
var NpmRegistryBearerAuthConfig = _zod.z.object({
|
|
3358
|
+
authType: _zod.z.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
3359
|
+
accessToken: _zod.z.string()
|
|
3360
|
+
});
|
|
3361
|
+
var NpmRegistryNoAuthConfig = _zod.z.object({
|
|
3362
|
+
authType: _zod.z.literal(NpmRegistryAuthType.Enum.None)
|
|
3363
|
+
});
|
|
3364
|
+
var NpmRegistrCustomAuthConfig = _zod.z.object({
|
|
3365
|
+
authType: _zod.z.literal(NpmRegistryAuthType.Enum.Custom),
|
|
3366
|
+
authHeaderName: _zod.z.string(),
|
|
3367
|
+
authHeaderValue: _zod.z.string()
|
|
3368
|
+
});
|
|
3369
|
+
var NpmRegistryAuthConfig = _zod.z.discriminatedUnion("authType", [
|
|
3370
|
+
NpmRegistryBasicAuthConfig,
|
|
3371
|
+
NpmRegistryBearerAuthConfig,
|
|
3372
|
+
NpmRegistryNoAuthConfig,
|
|
3373
|
+
NpmRegistrCustomAuthConfig
|
|
3374
|
+
]);
|
|
3375
|
+
var NpmRegistryConfigBase = _zod.z.object({
|
|
3376
|
+
registryType: NpmRegistryType,
|
|
3377
|
+
enabledScopes: _zod.z.array(_zod.z.string()),
|
|
3378
|
+
customRegistryUrl: _zod.z.string().optional(),
|
|
3379
|
+
bypassProxy: _zod.z.boolean().default(false),
|
|
3380
|
+
npmProxyRegistryConfigId: _zod.z.string().optional(),
|
|
3381
|
+
npmProxyVersion: _zod.z.number().optional()
|
|
3382
|
+
});
|
|
3383
|
+
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
3384
|
+
var SsoProvider = _zod.z.object({
|
|
3385
|
+
providerId: _zod.z.string(),
|
|
3386
|
+
defaultAutoInviteValue: _zod.z.boolean(),
|
|
3387
|
+
autoInviteDomains: _zod.z.record(_zod.z.string(), _zod.z.boolean()),
|
|
3388
|
+
skipDocsSupernovaLogin: _zod.z.boolean(),
|
|
3389
|
+
areInvitesDisabled: _zod.z.boolean(),
|
|
3390
|
+
isTestMode: _zod.z.boolean(),
|
|
3391
|
+
emailDomains: _zod.z.array(_zod.z.string()),
|
|
3392
|
+
metadataXml: _zod.z.string().nullish()
|
|
3393
|
+
});
|
|
3394
|
+
var isValidCIDR = (value) => {
|
|
3395
|
+
return _ipcidr2.default.isValidAddress(value);
|
|
3396
|
+
};
|
|
3397
|
+
var WorkspaceIpWhitelistEntry = _zod.z.object({
|
|
3398
|
+
isEnabled: _zod.z.boolean(),
|
|
3399
|
+
name: _zod.z.string(),
|
|
3400
|
+
range: _zod.z.string().refine(isValidCIDR, {
|
|
3401
|
+
message: "Invalid IP CIDR"
|
|
3402
|
+
})
|
|
3403
|
+
});
|
|
3404
|
+
var WorkspaceIpSettings = _zod.z.object({
|
|
3405
|
+
isEnabledForCloud: _zod.z.boolean(),
|
|
3406
|
+
isEnabledForDocs: _zod.z.boolean(),
|
|
3407
|
+
entries: _zod.z.array(WorkspaceIpWhitelistEntry)
|
|
3408
|
+
});
|
|
3409
|
+
var WorkspaceProfile = _zod.z.object({
|
|
3410
|
+
name: _zod.z.string(),
|
|
3411
|
+
handle: _zod.z.string(),
|
|
3412
|
+
color: _zod.z.string(),
|
|
3413
|
+
avatar: nullishToOptional(_zod.z.string()),
|
|
3414
|
+
billingDetails: nullishToOptional(BillingDetails)
|
|
3415
|
+
});
|
|
3416
|
+
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
3417
|
+
avatar: true
|
|
3418
|
+
});
|
|
3419
|
+
var Workspace = _zod.z.object({
|
|
3420
|
+
id: _zod.z.string(),
|
|
3421
|
+
profile: WorkspaceProfile,
|
|
3422
|
+
subscription: Subscription,
|
|
3423
|
+
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
3424
|
+
sso: nullishToOptional(SsoProvider),
|
|
3425
|
+
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
3426
|
+
});
|
|
3427
|
+
var WorkspaceWithDesignSystems = _zod.z.object({
|
|
3428
|
+
workspace: Workspace,
|
|
3429
|
+
designSystems: _zod.z.array(DesignSystem)
|
|
3430
|
+
});
|
|
3431
|
+
var DesignSystemSwitcher = _zod.z.object({
|
|
3432
|
+
isEnabled: _zod.z.boolean(),
|
|
3433
|
+
designSystemIds: _zod.z.array(_zod.z.string())
|
|
3434
|
+
});
|
|
3435
|
+
var DesignSystem = _zod.z.object({
|
|
3436
|
+
id: _zod.z.string(),
|
|
3437
|
+
workspaceId: _zod.z.string(),
|
|
3438
|
+
name: _zod.z.string(),
|
|
3439
|
+
description: _zod.z.string(),
|
|
3440
|
+
docExporterId: nullishToOptional(_zod.z.string()),
|
|
3441
|
+
docSlug: _zod.z.string(),
|
|
3442
|
+
docUserSlug: nullishToOptional(_zod.z.string()),
|
|
3443
|
+
docSlugDeprecated: _zod.z.string(),
|
|
3444
|
+
isPublic: _zod.z.boolean(),
|
|
3445
|
+
isMultibrand: _zod.z.boolean(),
|
|
3446
|
+
docViewUrl: nullishToOptional(_zod.z.string()),
|
|
3447
|
+
basePrefixes: _zod.z.array(_zod.z.string()),
|
|
3448
|
+
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
3449
|
+
createdAt: _zod.z.coerce.date(),
|
|
3450
|
+
updatedAt: _zod.z.coerce.date()
|
|
3451
|
+
});
|
|
3452
|
+
var DesignSystemWithWorkspace = _zod.z.object({
|
|
3453
|
+
designSystem: DesignSystem,
|
|
3454
|
+
workspace: Workspace
|
|
3455
|
+
});
|
|
3456
|
+
var DS_NAME_MIN_LENGTH = 2;
|
|
3457
|
+
var DS_NAME_MAX_LENGTH = 64;
|
|
3458
|
+
var DS_DESC_MAX_LENGTH = 64;
|
|
3459
|
+
var DesignSystemUpdateInputMetadata = _zod.z.object({
|
|
3460
|
+
name: _zod.z.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
|
|
3461
|
+
description: _zod.z.string().max(DS_DESC_MAX_LENGTH).trim().optional()
|
|
3462
|
+
});
|
|
3463
|
+
var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
3464
|
+
id: true,
|
|
3465
|
+
createdAt: true,
|
|
3466
|
+
updatedAt: true,
|
|
3467
|
+
docSlug: true,
|
|
3468
|
+
docViewUrl: true,
|
|
3469
|
+
designSystemSwitcher: true
|
|
3470
|
+
}).extend({
|
|
3471
|
+
meta: DesignSystemUpdateInputMetadata.optional()
|
|
3472
|
+
});
|
|
3473
|
+
var DS_NAME_MIN_LENGTH2 = 2;
|
|
3474
|
+
var DS_NAME_MAX_LENGTH2 = 64;
|
|
3475
|
+
var DS_DESC_MAX_LENGTH2 = 64;
|
|
3476
|
+
var DesignSystemCreateInputMetadata = _zod.z.object({
|
|
3477
|
+
name: _zod.z.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
|
|
3478
|
+
description: _zod.z.string().max(DS_DESC_MAX_LENGTH2).trim()
|
|
3479
|
+
});
|
|
3480
|
+
var DesignSystemCreateInput = _zod.z.object({
|
|
3481
|
+
meta: DesignSystemCreateInputMetadata,
|
|
3482
|
+
workspaceId: _zod.z.string(),
|
|
3483
|
+
isPublic: _zod.z.boolean().optional(),
|
|
3484
|
+
basePrefixes: _zod.z.array(_zod.z.string()).optional(),
|
|
3485
|
+
docUserSlug: _zod.z.string().nullish().optional(),
|
|
3486
|
+
source: _zod.z.array(_zod.z.string()).optional()
|
|
3487
|
+
});
|
|
3488
|
+
var ExporterPropertyImageValue = _zod.z.object({
|
|
3489
|
+
asset: PageBlockAsset.optional(),
|
|
3490
|
+
assetId: _zod.z.string().optional(),
|
|
3491
|
+
assetUrl: _zod.z.string().optional()
|
|
3492
|
+
});
|
|
3493
|
+
var ExporterPropertyValue = _zod.z.object({
|
|
3494
|
+
key: _zod.z.string(),
|
|
3495
|
+
value: _zod.z.union([
|
|
3496
|
+
_zod.z.number(),
|
|
3497
|
+
_zod.z.string(),
|
|
3498
|
+
_zod.z.boolean(),
|
|
3499
|
+
ExporterPropertyImageValue,
|
|
3500
|
+
ColorTokenData,
|
|
3501
|
+
TypographyTokenData
|
|
3502
|
+
])
|
|
3503
|
+
});
|
|
3504
|
+
var ExporterPropertyValuesCollection = _zod.z.object({
|
|
3505
|
+
id: _zod.z.string(),
|
|
3506
|
+
designSystemId: _zod.z.string(),
|
|
3507
|
+
exporterId: _zod.z.string(),
|
|
3508
|
+
values: _zod.z.array(ExporterPropertyValue)
|
|
3509
|
+
});
|
|
3510
|
+
var PublishedDocPage = _zod.z.object({
|
|
3511
|
+
id: _zod.z.string(),
|
|
3512
|
+
publishedDocId: _zod.z.string(),
|
|
3513
|
+
pageShortPersistentId: _zod.z.string(),
|
|
3514
|
+
pathV1: _zod.z.string(),
|
|
3515
|
+
pathV2: _zod.z.string(),
|
|
3516
|
+
storagePath: _zod.z.string(),
|
|
3517
|
+
locale: _zod.z.string().optional(),
|
|
3518
|
+
isPrivate: _zod.z.boolean(),
|
|
3519
|
+
isHidden: _zod.z.boolean(),
|
|
3520
|
+
createdAt: _zod.z.coerce.date(),
|
|
3521
|
+
updatedAt: _zod.z.coerce.date()
|
|
3522
|
+
});
|
|
3523
|
+
var publishedDocEnvironments = ["Live", "Preview"];
|
|
3524
|
+
var PublishedDocEnvironment = _zod.z.enum(publishedDocEnvironments);
|
|
3525
|
+
var PublishedDocsChecksums = _zod.z.record(_zod.z.string());
|
|
3526
|
+
var PublishedDocRoutingVersion = _zod.z.enum(["1", "2"]);
|
|
3527
|
+
var PublishedDoc = _zod.z.object({
|
|
3528
|
+
id: _zod.z.string(),
|
|
3529
|
+
designSystemVersionId: _zod.z.string(),
|
|
3530
|
+
createdAt: _zod.z.coerce.date(),
|
|
3531
|
+
updatedAt: _zod.z.coerce.date(),
|
|
3532
|
+
lastPublishedAt: _zod.z.coerce.date(),
|
|
3533
|
+
isDefault: _zod.z.boolean(),
|
|
3534
|
+
isPublic: _zod.z.boolean(),
|
|
3535
|
+
environment: PublishedDocEnvironment,
|
|
3536
|
+
checksums: PublishedDocsChecksums,
|
|
3537
|
+
storagePath: _zod.z.string(),
|
|
3538
|
+
wasMigrated: _zod.z.boolean(),
|
|
3539
|
+
routingVersion: PublishedDocRoutingVersion,
|
|
3540
|
+
usesLocalizations: _zod.z.boolean(),
|
|
3541
|
+
wasPublishedWithLocalizations: _zod.z.boolean(),
|
|
3542
|
+
tokenCount: _zod.z.number(),
|
|
3543
|
+
assetCount: _zod.z.number()
|
|
3544
|
+
});
|
|
3545
|
+
var DesignSystemVersion = _zod.z.object({
|
|
3546
|
+
id: _zod.z.string(),
|
|
3547
|
+
version: _zod.z.string(),
|
|
3548
|
+
createdAt: _zod.z.date(),
|
|
3549
|
+
designSystemId: _zod.z.string(),
|
|
3550
|
+
name: _zod.z.string(),
|
|
3551
|
+
comment: _zod.z.string(),
|
|
3552
|
+
isReadonly: _zod.z.boolean(),
|
|
3553
|
+
changeLog: _zod.z.string(),
|
|
3554
|
+
parentId: _zod.z.string().optional(),
|
|
3555
|
+
isDraftsFeatureAdopted: _zod.z.boolean()
|
|
3556
|
+
});
|
|
3557
|
+
var VersionCreationJobStatus = _zod.z.enum(["Success", "InProgress", "Error"]);
|
|
3558
|
+
var VersionCreationJob = _zod.z.object({
|
|
3559
|
+
id: _zod.z.string(),
|
|
3560
|
+
version: _zod.z.string(),
|
|
3561
|
+
designSystemId: _zod.z.string(),
|
|
3562
|
+
designSystemVersionId: nullishToOptional(_zod.z.string()),
|
|
3563
|
+
status: VersionCreationJobStatus,
|
|
3564
|
+
errorMessage: nullishToOptional(_zod.z.string())
|
|
3565
|
+
});
|
|
3566
|
+
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
3567
|
+
var BITBUCKET_MAX_LENGTH = 64;
|
|
3568
|
+
var ExportJobDocumentationChanges = _zod.z.object({
|
|
3569
|
+
pagePersistentIds: _zod.z.string().array(),
|
|
3570
|
+
groupPersistentIds: _zod.z.string().array()
|
|
3571
|
+
});
|
|
3572
|
+
var ExporterDestinationDocs = _zod.z.object({
|
|
3573
|
+
environment: PublishedDocEnvironment,
|
|
3574
|
+
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
3575
|
+
});
|
|
3576
|
+
var ExporterDestinationS3 = _zod.z.object({});
|
|
3577
|
+
var ExporterDestinationGithub = _zod.z.object({
|
|
3578
|
+
credentialId: _zod.z.string().optional(),
|
|
3579
|
+
// Repository
|
|
3580
|
+
url: _zod.z.string(),
|
|
3581
|
+
// Location
|
|
3582
|
+
branch: _zod.z.string(),
|
|
3583
|
+
relativePath: nullishToOptional(_zod.z.string()),
|
|
3584
|
+
// Legacy deprecated fields. Use `credentialId` instead
|
|
3585
|
+
connectionId: nullishToOptional(_zod.z.string()),
|
|
3586
|
+
userId: nullishToOptional(_zod.z.number())
|
|
3587
|
+
});
|
|
3588
|
+
var ExporterDestinationAzure = _zod.z.object({
|
|
3589
|
+
credentialId: _zod.z.string().optional(),
|
|
3590
|
+
// Repository
|
|
3591
|
+
organizationId: _zod.z.string(),
|
|
3592
|
+
projectId: _zod.z.string(),
|
|
3593
|
+
repositoryId: _zod.z.string(),
|
|
3594
|
+
// Location
|
|
3595
|
+
branch: _zod.z.string(),
|
|
3596
|
+
relativePath: nullishToOptional(_zod.z.string()),
|
|
3597
|
+
// Maybe not needed
|
|
3598
|
+
url: nullishToOptional(_zod.z.string()),
|
|
3599
|
+
// Legacy deprecated fields. Use `credentialId` instead
|
|
3600
|
+
connectionId: nullishToOptional(_zod.z.string()),
|
|
3601
|
+
userId: nullishToOptional(_zod.z.number())
|
|
3602
|
+
});
|
|
3603
|
+
var ExporterDestinationGitlab = _zod.z.object({
|
|
3604
|
+
credentialId: _zod.z.string().optional(),
|
|
3605
|
+
// Repository
|
|
3606
|
+
projectId: _zod.z.string(),
|
|
3607
|
+
// Location
|
|
3608
|
+
branch: _zod.z.string(),
|
|
3609
|
+
relativePath: nullishToOptional(_zod.z.string()),
|
|
3610
|
+
// Maybe not needed
|
|
3611
|
+
url: nullishToOptional(_zod.z.string()),
|
|
3612
|
+
// Legacy deprecated fields. Use `credentialId` instead
|
|
3613
|
+
connectionId: nullishToOptional(_zod.z.string()),
|
|
3614
|
+
userId: nullishToOptional(_zod.z.number())
|
|
3615
|
+
});
|
|
3616
|
+
var ExporterDestinationBitbucket = _zod.z.object({
|
|
3617
|
+
credentialId: _zod.z.string().optional(),
|
|
3618
|
+
// Repository
|
|
3619
|
+
workspaceSlug: _zod.z.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3620
|
+
projectKey: _zod.z.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3621
|
+
repoSlug: _zod.z.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3622
|
+
// Location
|
|
3623
|
+
branch: _zod.z.string(),
|
|
3624
|
+
relativePath: nullishToOptional(_zod.z.string()),
|
|
3625
|
+
// Legacy deprecated fields. Use `credentialId` instead
|
|
3626
|
+
connectionId: nullishToOptional(_zod.z.string()),
|
|
3627
|
+
userId: nullishToOptional(_zod.z.number())
|
|
3628
|
+
});
|
|
3629
|
+
var ExportDestinationsMap = _zod.z.object({
|
|
3630
|
+
webhookUrl: _zod.z.string().optional(),
|
|
3631
|
+
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
3632
|
+
destinationS3: ExporterDestinationS3.optional(),
|
|
3633
|
+
destinationGithub: ExporterDestinationGithub.optional(),
|
|
3634
|
+
destinationAzure: ExporterDestinationAzure.optional(),
|
|
3635
|
+
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
3636
|
+
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
3637
|
+
});
|
|
3638
|
+
var PipelineEventType = _zod.z.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
3639
|
+
var PipelineDestinationGitType = _zod.z.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
3640
|
+
var PipelineDestinationExtraType = _zod.z.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
3641
|
+
var PipelineDestinationType = _zod.z.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
3642
|
+
var Pipeline = _zod.z.object({
|
|
3643
|
+
id: _zod.z.string(),
|
|
3644
|
+
name: _zod.z.string(),
|
|
3645
|
+
eventType: PipelineEventType,
|
|
3646
|
+
isEnabled: _zod.z.boolean(),
|
|
3647
|
+
workspaceId: _zod.z.string(),
|
|
3648
|
+
designSystemId: _zod.z.string(),
|
|
3649
|
+
exporterId: _zod.z.string(),
|
|
3650
|
+
brandPersistentId: _zod.z.string().optional(),
|
|
3651
|
+
themePersistentId: _zod.z.string().optional(),
|
|
3652
|
+
// Destinations
|
|
3653
|
+
...ExportDestinationsMap.shape
|
|
3654
|
+
});
|
|
3655
|
+
var ExportJobDump = _zod.z.object({
|
|
3656
|
+
id: _zod.z.string(),
|
|
3657
|
+
createdAt: _zod.z.coerce.date(),
|
|
3658
|
+
finishedAt: _zod.z.coerce.date(),
|
|
3659
|
+
exportArtefacts: _zod.z.string()
|
|
3660
|
+
});
|
|
3661
|
+
var CodeIntegrationDump = _zod.z.object({
|
|
3662
|
+
exporters: Exporter.array(),
|
|
3663
|
+
pipelines: Pipeline.array(),
|
|
3664
|
+
exportJobs: ExportJobDump.array()
|
|
3665
|
+
});
|
|
3666
|
+
var DesignSystemVersionRoom = Entity.extend({
|
|
3667
|
+
designSystemVersionId: _zod.z.string(),
|
|
3668
|
+
liveblocksId: _zod.z.string()
|
|
3669
|
+
});
|
|
3670
|
+
var DesignSystemVersionRoomInternalSettings = _zod.z.object({
|
|
3671
|
+
routingVersion: _zod.z.string(),
|
|
3672
|
+
isDraftFeatureAdopted: _zod.z.boolean()
|
|
3673
|
+
});
|
|
3674
|
+
var DesignSystemVersionRoomInitialState = _zod.z.object({
|
|
3675
|
+
pages: _zod.z.array(DocumentationPageV2),
|
|
3676
|
+
groups: _zod.z.array(ElementGroup),
|
|
3677
|
+
pageSnapshots: _zod.z.array(DocumentationPageSnapshot),
|
|
3678
|
+
groupSnapshots: _zod.z.array(ElementGroupSnapshot),
|
|
3679
|
+
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
3680
|
+
});
|
|
3681
|
+
var DesignSystemVersionRoomUpdate = _zod.z.object({
|
|
3682
|
+
pages: _zod.z.array(DocumentationPageV2),
|
|
3683
|
+
groups: _zod.z.array(ElementGroup),
|
|
3684
|
+
pageIdsToDelete: _zod.z.array(_zod.z.string()),
|
|
3685
|
+
groupIdsToDelete: _zod.z.array(_zod.z.string()),
|
|
3686
|
+
pageSnapshots: _zod.z.array(DocumentationPageSnapshot),
|
|
3687
|
+
groupSnapshots: _zod.z.array(ElementGroupSnapshot),
|
|
3688
|
+
pageSnapshotIdsToDelete: _zod.z.array(_zod.z.string()),
|
|
3689
|
+
groupSnapshotIdsToDelete: _zod.z.array(_zod.z.string()),
|
|
3690
|
+
pageHashesToUpdate: _zod.z.record(_zod.z.string(), _zod.z.string())
|
|
3691
|
+
});
|
|
3692
|
+
var DocumentationPageRoom = Entity.extend({
|
|
3693
|
+
designSystemVersionId: _zod.z.string(),
|
|
3694
|
+
documentationPageId: _zod.z.string(),
|
|
3695
|
+
liveblocksId: _zod.z.string(),
|
|
3696
|
+
isDirty: _zod.z.boolean()
|
|
3697
|
+
});
|
|
3698
|
+
var DocumentationPageRoomState = _zod.z.object({
|
|
3699
|
+
pageItems: _zod.z.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3700
|
+
itemConfiguration: DocumentationItemConfigurationV2
|
|
3701
|
+
});
|
|
3702
|
+
var DocumentationPageRoomRoomUpdate = _zod.z.object({
|
|
3703
|
+
page: DocumentationPageV2,
|
|
3704
|
+
pageParent: ElementGroup
|
|
3705
|
+
});
|
|
3706
|
+
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
3707
|
+
pageItems: _zod.z.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3708
|
+
blockDefinitions: _zod.z.array(PageBlockDefinition)
|
|
3709
|
+
});
|
|
3710
|
+
var RestoredDocumentationPage = _zod.z.object({
|
|
3711
|
+
page: DocumentationPageV2,
|
|
3712
|
+
pageParent: ElementGroup,
|
|
3713
|
+
pageContent: DocumentationPageContentData,
|
|
3714
|
+
contentHash: _zod.z.string(),
|
|
3715
|
+
roomId: _zod.z.string().optional()
|
|
3716
|
+
});
|
|
3717
|
+
var RestoredDocumentationGroup = _zod.z.object({
|
|
3718
|
+
group: ElementGroup,
|
|
3719
|
+
parent: ElementGroup
|
|
3720
|
+
});
|
|
3721
|
+
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
3722
|
+
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
3723
|
+
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
3724
|
+
RoomTypeEnum2["Workspace"] = "workspace";
|
|
3725
|
+
return RoomTypeEnum2;
|
|
3726
|
+
})(RoomTypeEnum || {});
|
|
3727
|
+
var RoomTypeSchema = _zod.z.nativeEnum(RoomTypeEnum);
|
|
3728
|
+
var RoomType = RoomTypeSchema.enum;
|
|
3729
|
+
var WorkspaceRoom = Entity.extend({
|
|
3730
|
+
workspaceId: _zod.z.string(),
|
|
3731
|
+
liveblocksId: _zod.z.string()
|
|
3732
|
+
});
|
|
3733
|
+
var PublishedDocsDump = _zod.z.object({
|
|
3734
|
+
documentation: PublishedDoc,
|
|
3735
|
+
pages: PublishedDocPage.array()
|
|
3736
|
+
});
|
|
3737
|
+
var DocumentationThreadDump = _zod.z.object({
|
|
3738
|
+
thread: DocumentationCommentThread,
|
|
3739
|
+
comments: DocumentationComment.array()
|
|
3740
|
+
});
|
|
3741
|
+
var DocumentationPageRoomDump = _zod.z.object({
|
|
3742
|
+
room: DocumentationPageRoom,
|
|
3743
|
+
threads: DocumentationThreadDump.array()
|
|
3744
|
+
});
|
|
3745
|
+
var DesignSystemVersionMultiplayerDump = _zod.z.object({
|
|
3746
|
+
documentationPages: DocumentationPageRoomDump.array()
|
|
3747
|
+
});
|
|
3748
|
+
var DesignSystemVersionDump = _zod.z.object({
|
|
3749
|
+
version: DesignSystemVersion,
|
|
3750
|
+
brands: Brand.array(),
|
|
3751
|
+
elements: DesignElement.array(),
|
|
3752
|
+
elementPropertyDefinitions: ElementPropertyDefinition.array(),
|
|
3753
|
+
elementPropertyValues: ElementPropertyValue.array(),
|
|
3754
|
+
elementViews: ElementView.array(),
|
|
3755
|
+
elementColumns: ElementViewColumn.array(),
|
|
3756
|
+
documentationPageContents: DocumentationPageContent.array(),
|
|
3757
|
+
documentationPageRooms: DocumentationPageRoomDump.array(),
|
|
3758
|
+
publishedDocumentations: PublishedDocsDump.array(),
|
|
3759
|
+
assetReferences: AssetReference.array()
|
|
3760
|
+
});
|
|
3761
|
+
var DesignSystemDump = _zod.z.object({
|
|
3762
|
+
designSystem: DesignSystem,
|
|
3763
|
+
dataSources: DataSource.array(),
|
|
3764
|
+
versions: DesignSystemVersionDump.array(),
|
|
3765
|
+
customDomain: CustomDomain.optional(),
|
|
3766
|
+
files: Asset.array()
|
|
3767
|
+
});
|
|
3768
|
+
var IntegrationAuthType = _zod.z.union([_zod.z.literal("OAuth2"), _zod.z.literal("PAT")]);
|
|
3769
|
+
var ExternalServiceType = _zod.z.union([
|
|
3770
|
+
_zod.z.literal("figma"),
|
|
3771
|
+
_zod.z.literal("github"),
|
|
3772
|
+
_zod.z.literal("azure"),
|
|
3773
|
+
_zod.z.literal("gitlab"),
|
|
3774
|
+
_zod.z.literal("bitbucket")
|
|
3775
|
+
]);
|
|
3776
|
+
var IntegrationUserInfo = _zod.z.object({
|
|
3777
|
+
id: _zod.z.string(),
|
|
3778
|
+
handle: _zod.z.string().optional(),
|
|
3779
|
+
avatarUrl: _zod.z.string().optional(),
|
|
3780
|
+
email: _zod.z.string().optional(),
|
|
3781
|
+
authType: IntegrationAuthType.optional(),
|
|
3782
|
+
customUrl: _zod.z.string().optional()
|
|
3783
|
+
});
|
|
3784
|
+
var UserLinkedIntegrations = _zod.z.object({
|
|
3785
|
+
figma: IntegrationUserInfo.optional(),
|
|
3786
|
+
github: IntegrationUserInfo.array().optional(),
|
|
3787
|
+
azure: IntegrationUserInfo.array().optional(),
|
|
3788
|
+
gitlab: IntegrationUserInfo.array().optional(),
|
|
3789
|
+
bitbucket: IntegrationUserInfo.array().optional()
|
|
3790
|
+
});
|
|
3791
|
+
var UserAnalyticsCleanupSchedule = _zod.z.object({
|
|
3792
|
+
userId: _zod.z.string(),
|
|
3793
|
+
createdAt: _zod.z.coerce.date(),
|
|
3794
|
+
deleteAt: _zod.z.coerce.date()
|
|
3795
|
+
});
|
|
3796
|
+
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
3797
|
+
createdAt: true
|
|
3798
|
+
});
|
|
3799
|
+
var CreateUserInput = _zod.z.object({
|
|
3800
|
+
email: _zod.z.string(),
|
|
3801
|
+
name: _zod.z.string(),
|
|
3802
|
+
username: _zod.z.string()
|
|
3803
|
+
});
|
|
3804
|
+
var UserIdentity = _zod.z.object({
|
|
3805
|
+
id: _zod.z.string(),
|
|
3806
|
+
userId: _zod.z.string()
|
|
3807
|
+
});
|
|
3808
|
+
var UserMinified = _zod.z.object({
|
|
3809
|
+
id: _zod.z.string(),
|
|
3810
|
+
name: _zod.z.string(),
|
|
3811
|
+
email: _zod.z.string(),
|
|
3812
|
+
avatar: _zod.z.string().optional()
|
|
3813
|
+
});
|
|
3814
|
+
var LiveblocksNotificationSettings = _zod.z.object({
|
|
3815
|
+
sendCommentNotificationEmails: _zod.z.boolean()
|
|
3816
|
+
});
|
|
3817
|
+
var UserNotificationSettings = _zod.z.object({
|
|
3818
|
+
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
3819
|
+
});
|
|
3820
|
+
var UserOnboardingDepartment = _zod.z.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3821
|
+
var UserOnboardingJobLevel = _zod.z.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
3822
|
+
var UserOnboarding = _zod.z.object({
|
|
3823
|
+
companyName: _zod.z.string().optional(),
|
|
3824
|
+
numberOfPeopleInOrg: _zod.z.string().optional(),
|
|
3825
|
+
numberOfPeopleInDesignTeam: _zod.z.string().optional(),
|
|
3826
|
+
department: UserOnboardingDepartment.optional(),
|
|
3827
|
+
jobTitle: _zod.z.string().optional(),
|
|
3828
|
+
phase: _zod.z.string().optional(),
|
|
3829
|
+
jobLevel: UserOnboardingJobLevel.optional(),
|
|
3830
|
+
designSystemName: _zod.z.string().optional(),
|
|
3831
|
+
defaultDestination: _zod.z.string().optional(),
|
|
3832
|
+
figmaUrl: _zod.z.string().optional()
|
|
3833
|
+
});
|
|
3834
|
+
var UserProfile = _zod.z.object({
|
|
3835
|
+
name: _zod.z.string(),
|
|
3836
|
+
avatar: _zod.z.string().optional(),
|
|
3837
|
+
nickname: _zod.z.string().optional(),
|
|
3838
|
+
onboarding: UserOnboarding.optional()
|
|
3839
|
+
});
|
|
3840
|
+
var UserProfileUpdate = UserProfile.partial().omit({
|
|
3841
|
+
avatar: true
|
|
3842
|
+
});
|
|
3843
|
+
var UserTest = _zod.z.object({
|
|
3844
|
+
id: _zod.z.string(),
|
|
3845
|
+
email: _zod.z.string()
|
|
3846
|
+
});
|
|
3847
|
+
var User = _zod.z.object({
|
|
3848
|
+
id: _zod.z.string(),
|
|
3849
|
+
email: _zod.z.string(),
|
|
3850
|
+
emailVerified: _zod.z.boolean(),
|
|
3851
|
+
createdAt: _zod.z.coerce.date(),
|
|
3852
|
+
trialExpiresAt: _zod.z.coerce.date().optional(),
|
|
3853
|
+
profile: UserProfile,
|
|
3854
|
+
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
3855
|
+
loggedOutAt: _zod.z.coerce.date().optional(),
|
|
3856
|
+
isProtected: _zod.z.boolean()
|
|
3857
|
+
});
|
|
3803
3858
|
var IntegrationDesignSystem = _zod.z.object({
|
|
3804
3859
|
designSystemId: _zod.z.string(),
|
|
3805
3860
|
brandId: _zod.z.string(),
|
|
@@ -3867,7 +3922,7 @@ var IntegrationToken = _zod.z.object({
|
|
|
3867
3922
|
token_bitbucket_username: _zod.z.string().optional(),
|
|
3868
3923
|
// Bitbucket only
|
|
3869
3924
|
custom_url: _zod.z.string().optional().transform((value) => {
|
|
3870
|
-
if (!_optionalChain([value, 'optionalAccess',
|
|
3925
|
+
if (!_optionalChain([value, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]))
|
|
3871
3926
|
return void 0;
|
|
3872
3927
|
return formatCustomUrl(value);
|
|
3873
3928
|
})
|
|
@@ -4175,7 +4230,7 @@ var CreateWorkspaceInput = _zod.z.object({
|
|
|
4175
4230
|
product: ProductCodeSchema,
|
|
4176
4231
|
priceId: _zod.z.string(),
|
|
4177
4232
|
billingEmail: _zod.z.string().email().optional(),
|
|
4178
|
-
handle: _zod.z.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => _optionalChain([value, 'optionalAccess',
|
|
4233
|
+
handle: _zod.z.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => _optionalChain([value, 'optionalAccess', _5 => _5.length]) > 0).optional(),
|
|
4179
4234
|
invites: UserInvites.optional(),
|
|
4180
4235
|
promoCode: _zod.z.string().optional(),
|
|
4181
4236
|
status: InternalStatusSchema.optional(),
|
|
@@ -4298,7 +4353,7 @@ function calculateElementParentChain(elementParentPersistentId, groupPersistentI
|
|
|
4298
4353
|
const parent = groupPersistentIdToGroupMap.get(parentId);
|
|
4299
4354
|
if (parent)
|
|
4300
4355
|
result.push(parent);
|
|
4301
|
-
parentId = _optionalChain([parent, 'optionalAccess',
|
|
4356
|
+
parentId = _optionalChain([parent, 'optionalAccess', _6 => _6.parentPersistentId]);
|
|
4302
4357
|
}
|
|
4303
4358
|
return result;
|
|
4304
4359
|
}
|
|
@@ -4307,7 +4362,7 @@ function applyPrivacyConfigurationToNestedItems(pages, groups, getDefaultItemCon
|
|
|
4307
4362
|
...group,
|
|
4308
4363
|
data: {
|
|
4309
4364
|
...group.data,
|
|
4310
|
-
configuration: _nullishCoalesce(_optionalChain([group, 'access',
|
|
4365
|
+
configuration: _nullishCoalesce(_optionalChain([group, 'access', _7 => _7.data, 'optionalAccess', _8 => _8.configuration]), () => ( getDefaultItemConfiguration()))
|
|
4311
4366
|
}
|
|
4312
4367
|
}));
|
|
4313
4368
|
const groupPersistentIdToGroupMap = mapByUnique(fixedGroups, (group) => group.persistentId);
|
|
@@ -4319,8 +4374,8 @@ function applyPrivacyConfigurationToNestedItems(pages, groups, getDefaultItemCon
|
|
|
4319
4374
|
const parent = groupPersistentIdToGroupMap.get(nextParentId);
|
|
4320
4375
|
if (!parent)
|
|
4321
4376
|
break;
|
|
4322
|
-
isHidden = isHidden || _optionalChain([parent, 'access',
|
|
4323
|
-
isPrivate = isPrivate || _optionalChain([parent, 'access',
|
|
4377
|
+
isHidden = isHidden || _optionalChain([parent, 'access', _9 => _9.data, 'optionalAccess', _10 => _10.configuration, 'optionalAccess', _11 => _11.isHidden]) || false;
|
|
4378
|
+
isPrivate = isPrivate || _optionalChain([parent, 'access', _12 => _12.data, 'optionalAccess', _13 => _13.configuration, 'optionalAccess', _14 => _14.isPrivate]) || false;
|
|
4324
4379
|
nextParentId = parent.parentPersistentId;
|
|
4325
4380
|
}
|
|
4326
4381
|
groupToFix.data.configuration.isHidden = isHidden;
|
|
@@ -4328,7 +4383,7 @@ function applyPrivacyConfigurationToNestedItems(pages, groups, getDefaultItemCon
|
|
|
4328
4383
|
}
|
|
4329
4384
|
const fixedPages = [];
|
|
4330
4385
|
for (const page of pages) {
|
|
4331
|
-
const configuration = _nullishCoalesce(_optionalChain([page, 'access',
|
|
4386
|
+
const configuration = _nullishCoalesce(_optionalChain([page, 'access', _15 => _15.data, 'optionalAccess', _16 => _16.configuration]), () => ( getDefaultItemConfiguration()));
|
|
4332
4387
|
const parent = groupPersistentIdToGroupMap.get(page.parentPersistentId);
|
|
4333
4388
|
fixedPages.push({
|
|
4334
4389
|
...page,
|
|
@@ -4336,8 +4391,8 @@ function applyPrivacyConfigurationToNestedItems(pages, groups, getDefaultItemCon
|
|
|
4336
4391
|
...page.data,
|
|
4337
4392
|
configuration: {
|
|
4338
4393
|
...configuration,
|
|
4339
|
-
isHidden: configuration.isHidden || _optionalChain([parent, 'optionalAccess',
|
|
4340
|
-
isPrivate: configuration.isPrivate || _optionalChain([parent, 'optionalAccess',
|
|
4394
|
+
isHidden: configuration.isHidden || _optionalChain([parent, 'optionalAccess', _17 => _17.data, 'optionalAccess', _18 => _18.configuration, 'optionalAccess', _19 => _19.isHidden]) || false,
|
|
4395
|
+
isPrivate: configuration.isPrivate || _optionalChain([parent, 'optionalAccess', _20 => _20.data, 'optionalAccess', _21 => _21.configuration, 'optionalAccess', _22 => _22.isPrivate]) || false
|
|
4341
4396
|
}
|
|
4342
4397
|
}
|
|
4343
4398
|
});
|
|
@@ -4355,7 +4410,7 @@ function elementGroupsToDocumentationGroupDTOV1(groups, pages) {
|
|
|
4355
4410
|
return groups.map((group) => {
|
|
4356
4411
|
return {
|
|
4357
4412
|
...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
|
|
4358
|
-
configuration: documentationItemConfigurationToDTOV1(_optionalChain([group, 'access',
|
|
4413
|
+
configuration: documentationItemConfigurationToDTOV1(_optionalChain([group, 'access', _23 => _23.data, 'optionalAccess', _24 => _24.configuration]))
|
|
4359
4414
|
};
|
|
4360
4415
|
});
|
|
4361
4416
|
}
|
|
@@ -4363,7 +4418,7 @@ function elementGroupsToDocumentationGroupFixedConfigurationDTOV1(groups, pages)
|
|
|
4363
4418
|
const childrenIdsMap = calculateChildrenIdsMapV1(pages, groups);
|
|
4364
4419
|
const { groups: fixedGroups } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV1);
|
|
4365
4420
|
return fixedGroups.map((group) => {
|
|
4366
|
-
const configuration = documentationItemConfigurationToDTOV1(_optionalChain([group, 'access',
|
|
4421
|
+
const configuration = documentationItemConfigurationToDTOV1(_optionalChain([group, 'access', _25 => _25.data, 'optionalAccess', _26 => _26.configuration]));
|
|
4367
4422
|
return {
|
|
4368
4423
|
...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
|
|
4369
4424
|
// backward compatibility with custom doc exporters, anyway these groups will not be shown, so we can adjust title
|
|
@@ -4388,7 +4443,7 @@ function elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap) {
|
|
|
4388
4443
|
title: group.meta.name,
|
|
4389
4444
|
childrenIds,
|
|
4390
4445
|
isRoot: !group.parentPersistentId,
|
|
4391
|
-
groupBehavior: _nullishCoalesce(_optionalChain([group, 'access',
|
|
4446
|
+
groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _27 => _27.data, 'optionalAccess', _28 => _28.behavior]), () => ( "Group")),
|
|
4392
4447
|
shortPersistentId: group.shortPersistentId,
|
|
4393
4448
|
type: "Group"
|
|
4394
4449
|
};
|
|
@@ -4457,10 +4512,10 @@ function elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap) {
|
|
|
4457
4512
|
createdAt: group.createdAt,
|
|
4458
4513
|
updatedAt: group.updatedAt,
|
|
4459
4514
|
title: group.meta.name,
|
|
4460
|
-
configuration: documentationItemConfigurationToDTOV2(_optionalChain([group, 'optionalAccess',
|
|
4515
|
+
configuration: documentationItemConfigurationToDTOV2(_optionalChain([group, 'optionalAccess', _29 => _29.data, 'optionalAccess', _30 => _30.configuration])),
|
|
4461
4516
|
childrenIds,
|
|
4462
4517
|
isRoot: !group.parentPersistentId,
|
|
4463
|
-
groupBehavior: _nullishCoalesce(_optionalChain([group, 'access',
|
|
4518
|
+
groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _31 => _31.data, 'optionalAccess', _32 => _32.behavior]), () => ( "Group")),
|
|
4464
4519
|
shortPersistentId: group.shortPersistentId,
|
|
4465
4520
|
type: "Group"
|
|
4466
4521
|
};
|
|
@@ -4613,7 +4668,7 @@ function integrationToDto(integration) {
|
|
|
4613
4668
|
workspaceId: integration.workspaceId,
|
|
4614
4669
|
type: integration.type,
|
|
4615
4670
|
createdAt: integration.createdAt,
|
|
4616
|
-
integrationCredentials: _optionalChain([integration, 'access',
|
|
4671
|
+
integrationCredentials: _optionalChain([integration, 'access', _33 => _33.integrationCredentials, 'optionalAccess', _34 => _34.map, 'call', _35 => _35(integrationCredentialToDto)]),
|
|
4617
4672
|
integrationDesignSystems: _nullishCoalesce(integration.integrationDesignSystems, () => ( void 0))
|
|
4618
4673
|
};
|
|
4619
4674
|
}
|
|
@@ -5072,7 +5127,9 @@ var DTODocumentationDraftStateUpdated = _zod.z.object({
|
|
|
5072
5127
|
})
|
|
5073
5128
|
});
|
|
5074
5129
|
var DTODocumentationDraftStateDeleted = _zod.z.object({
|
|
5075
|
-
changeType: _zod.z.literal(DTODocumentationDraftChangeType.enum.Deleted)
|
|
5130
|
+
changeType: _zod.z.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
5131
|
+
deletedAt: _zod.z.coerce.date(),
|
|
5132
|
+
deletedByUserId: _zod.z.string()
|
|
5076
5133
|
});
|
|
5077
5134
|
var DTODocumentationDraftState = _zod.z.discriminatedUnion("changeType", [
|
|
5078
5135
|
DTODocumentationDraftStateCreated,
|
|
@@ -5080,6 +5137,13 @@ var DTODocumentationDraftState = _zod.z.discriminatedUnion("changeType", [
|
|
|
5080
5137
|
DTODocumentationDraftStateDeleted
|
|
5081
5138
|
]);
|
|
5082
5139
|
|
|
5140
|
+
// src/api/dto/elements/documentation/metadata.ts
|
|
5141
|
+
|
|
5142
|
+
var DTODocumentationPublishMetadata = _zod.z.object({
|
|
5143
|
+
lastPublishedByUserId: _zod.z.string(),
|
|
5144
|
+
lastPublishedAt: _zod.z.coerce.date()
|
|
5145
|
+
});
|
|
5146
|
+
|
|
5083
5147
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5084
5148
|
var DTODocumentationPageV2 = _zod.z.object({
|
|
5085
5149
|
id: _zod.z.string(),
|
|
@@ -5095,6 +5159,8 @@ var DTODocumentationPageV2 = _zod.z.object({
|
|
|
5095
5159
|
path: _zod.z.string(),
|
|
5096
5160
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5097
5161
|
draftState: DTODocumentationDraftState.optional(),
|
|
5162
|
+
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
5163
|
+
publishMetadata: DTODocumentationPublishMetadata.optional(),
|
|
5098
5164
|
// Backward compatibility
|
|
5099
5165
|
type: _zod.z.literal("Page")
|
|
5100
5166
|
});
|
|
@@ -5306,7 +5372,9 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
5306
5372
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5307
5373
|
type: _zod.z.literal("Group"),
|
|
5308
5374
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
5309
|
-
draftState: DTODocumentationDraftState.optional()
|
|
5375
|
+
draftState: DTODocumentationDraftState.optional(),
|
|
5376
|
+
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
5377
|
+
publishMetadata: DTODocumentationPublishMetadata.optional()
|
|
5310
5378
|
});
|
|
5311
5379
|
var DTOCreateDocumentationGroupInput = _zod.z.object({
|
|
5312
5380
|
// Identifier
|
|
@@ -5479,18 +5547,6 @@ var DTODocumentationHierarchyV2 = _zod.z.object({
|
|
|
5479
5547
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5480
5548
|
draftState: DTODocumentationDraftState.optional()
|
|
5481
5549
|
})
|
|
5482
|
-
),
|
|
5483
|
-
deletedPages: _zod.z.array(
|
|
5484
|
-
DTODocumentationPageV2.extend({
|
|
5485
|
-
/** Deleted page is always a draft change */
|
|
5486
|
-
draftState: DTODocumentationDraftState
|
|
5487
|
-
})
|
|
5488
|
-
),
|
|
5489
|
-
deletedGroups: _zod.z.array(
|
|
5490
|
-
DTODocumentationGroupV2.extend({
|
|
5491
|
-
/** Deleted page is always a draft change */
|
|
5492
|
-
draftState: DTODocumentationDraftState
|
|
5493
|
-
})
|
|
5494
5550
|
)
|
|
5495
5551
|
});
|
|
5496
5552
|
|
|
@@ -6131,83 +6187,83 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6131
6187
|
//
|
|
6132
6188
|
// Hierarchy
|
|
6133
6189
|
//
|
|
6134
|
-
getDocumentationHierarchy() {
|
|
6190
|
+
getDocumentationHierarchy(options = {}) {
|
|
6191
|
+
const includeDeletedContent = _nullishCoalesce(options.includeDeletedContent, () => ( false));
|
|
6135
6192
|
const doc = new VersionRoomBaseYDoc(this.yDoc);
|
|
6136
6193
|
const pages = doc.getPages();
|
|
6137
6194
|
const groups = doc.getGroups();
|
|
6138
6195
|
const pageSnapshots = doc.getPageSnapshots();
|
|
6139
6196
|
const groupSnapshots = doc.getGroupSnapshots();
|
|
6197
|
+
if (includeDeletedContent) {
|
|
6198
|
+
pages.push(...this.getDeletedPages(pages, pageSnapshots));
|
|
6199
|
+
groups.push(...this.getDeletedGroups(groups, groupSnapshots));
|
|
6200
|
+
}
|
|
6140
6201
|
const settings = doc.getDocumentationInternalSettings();
|
|
6141
6202
|
const pageDTOs = documentationPagesToDTOV2(pages, groups, settings.routingVersion);
|
|
6142
6203
|
const groupDTOs = elementGroupsToDocumentationGroupDTOV2(groups, pages);
|
|
6143
6204
|
if (!settings.isDraftFeatureAdopted) {
|
|
6144
6205
|
return {
|
|
6145
6206
|
pages: pageDTOs,
|
|
6146
|
-
groups: groupDTOs
|
|
6147
|
-
deletedGroups: [],
|
|
6148
|
-
deletedPages: []
|
|
6207
|
+
groups: groupDTOs
|
|
6149
6208
|
};
|
|
6150
6209
|
}
|
|
6151
|
-
const pageDraftStates = this.
|
|
6210
|
+
const pageDraftStates = this.buildPageDraftCreatedAndUpdatedStates(pages, pageSnapshots);
|
|
6211
|
+
const pageDraftDeletedStates = this.buildPageDraftDeletedStates(pages, pageSnapshots);
|
|
6212
|
+
const pagePublishedMetadata = this.buildPagePublishedMetadata(pages, pageSnapshots);
|
|
6152
6213
|
pageDTOs.forEach((p) => {
|
|
6153
|
-
const draftState = pageDraftStates.get(p.id);
|
|
6214
|
+
const draftState = _nullishCoalesce(pageDraftDeletedStates.get(p.id), () => ( pageDraftStates.get(p.id)));
|
|
6154
6215
|
draftState && (p.draftState = draftState);
|
|
6216
|
+
const publishMetadata = pagePublishedMetadata.get(p.id);
|
|
6217
|
+
publishMetadata && (p.publishMetadata = publishMetadata);
|
|
6155
6218
|
});
|
|
6156
|
-
const groupDraftStates = this.
|
|
6219
|
+
const groupDraftStates = this.buildGroupDraftCreatedAndUpdatedStates(groups, groupSnapshots);
|
|
6220
|
+
const groupDraftDeletedStates = this.buildGroupDraftDeletedStates(groups, groupSnapshots);
|
|
6221
|
+
const groupPublishedMetadata = this.buildGroupPublishedMetadata(groups, groupSnapshots);
|
|
6157
6222
|
groupDTOs.forEach((g) => {
|
|
6158
|
-
const draftState = groupDraftStates.get(g.id);
|
|
6223
|
+
const draftState = _nullishCoalesce(groupDraftDeletedStates.get(g.id), () => ( groupDraftStates.get(g.id)));
|
|
6159
6224
|
draftState && (g.draftState = draftState);
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
const deletedPagesMap = mapByUnique(
|
|
6163
|
-
pageSnapshots.filter((s) => !pageIds.has(s.page.id)).map((s) => s.page),
|
|
6164
|
-
(p) => p.id
|
|
6165
|
-
);
|
|
6166
|
-
const deletedPages = Array.from(deletedPagesMap.values());
|
|
6167
|
-
const groupIds = new Set(groups.map((p) => p.id));
|
|
6168
|
-
const deletedGroupsMap = mapByUnique(
|
|
6169
|
-
groupSnapshots.filter((s) => !groupIds.has(s.group.id)).map((s) => s.group),
|
|
6170
|
-
(g) => g.id
|
|
6171
|
-
);
|
|
6172
|
-
const deletedGroups = Array.from(deletedGroupsMap.values());
|
|
6173
|
-
const deletedPageDTOs = documentationPagesToDTOV2(
|
|
6174
|
-
deletedPages,
|
|
6175
|
-
[...groups, ...deletedGroups],
|
|
6176
|
-
settings.routingVersion
|
|
6177
|
-
).map((p) => {
|
|
6178
|
-
return { ...p, draftState: { changeType: "Deleted" } };
|
|
6179
|
-
});
|
|
6180
|
-
const deletedGroupDTOs = elementGroupsToDocumentationGroupDTOV2(deletedGroups, deletedPages).map((g) => {
|
|
6181
|
-
return { ...g, draftState: { changeType: "Deleted" } };
|
|
6225
|
+
const publishMetadata = groupPublishedMetadata.get(g.id);
|
|
6226
|
+
publishMetadata && (g.publishMetadata = publishMetadata);
|
|
6182
6227
|
});
|
|
6183
6228
|
return {
|
|
6184
6229
|
pages: pageDTOs,
|
|
6185
|
-
groups: groupDTOs
|
|
6186
|
-
deletedPages: deletedPageDTOs,
|
|
6187
|
-
deletedGroups: deletedGroupDTOs
|
|
6230
|
+
groups: groupDTOs
|
|
6188
6231
|
};
|
|
6189
6232
|
}
|
|
6190
6233
|
//
|
|
6191
6234
|
// Drafts - Pages
|
|
6192
6235
|
//
|
|
6193
|
-
|
|
6236
|
+
buildPageDraftDeletedStates(pages, pageSnapshots) {
|
|
6237
|
+
const deletedSnapshotsByPageId = mapByUnique(
|
|
6238
|
+
pickLatestPageSnapshots(pageSnapshots.filter((s) => s.reason === "Deletion")),
|
|
6239
|
+
(s) => s.page.id
|
|
6240
|
+
);
|
|
6241
|
+
const result = /* @__PURE__ */ new Map();
|
|
6242
|
+
pages.forEach((page) => {
|
|
6243
|
+
const deletedSnapshot = deletedSnapshotsByPageId.get(page.id);
|
|
6244
|
+
if (!deletedSnapshot)
|
|
6245
|
+
return;
|
|
6246
|
+
result.set(page.id, {
|
|
6247
|
+
changeType: "Deleted",
|
|
6248
|
+
deletedAt: deletedSnapshot.createdAt,
|
|
6249
|
+
deletedByUserId: deletedSnapshot.createdByUserId
|
|
6250
|
+
});
|
|
6251
|
+
});
|
|
6252
|
+
return result;
|
|
6253
|
+
}
|
|
6254
|
+
buildPageDraftCreatedAndUpdatedStates(pages, pageSnapshots) {
|
|
6194
6255
|
const doc = new VersionRoomBaseYDoc(this.yDoc);
|
|
6195
6256
|
const pageHashes = doc.getDocumentationPageContentHashes();
|
|
6196
|
-
const publishedSnapshots = pageSnapshots.filter((s) => s.reason === "Publish");
|
|
6257
|
+
const publishedSnapshots = pickLatestPageSnapshots(pageSnapshots.filter((s) => s.reason === "Publish"));
|
|
6197
6258
|
const publishedSnapshotsByPageId = mapByUnique(publishedSnapshots, (s) => s.page.id);
|
|
6198
|
-
const publishedPagesById = mapByUnique(
|
|
6199
|
-
publishedSnapshots.map((s) => s.page),
|
|
6200
|
-
(p) => p.id
|
|
6201
|
-
);
|
|
6202
6259
|
const result = /* @__PURE__ */ new Map();
|
|
6203
6260
|
pages.forEach((page) => {
|
|
6204
6261
|
const snapshot = publishedSnapshotsByPageId.get(page.id);
|
|
6205
6262
|
let publishedState;
|
|
6206
6263
|
if (snapshot) {
|
|
6207
|
-
|
|
6208
|
-
publishedState = this.itemStateFromPage(publishedPage, snapshot.pageContentHash);
|
|
6264
|
+
publishedState = this.itemStateFromPage(snapshot.page, snapshot.pageContentHash);
|
|
6209
6265
|
}
|
|
6210
|
-
const currentPageContentHash = _nullishCoalesce(_nullishCoalesce(pageHashes[page.persistentId], () => ( _optionalChain([snapshot, 'optionalAccess',
|
|
6266
|
+
const currentPageContentHash = _nullishCoalesce(_nullishCoalesce(pageHashes[page.persistentId], () => ( _optionalChain([snapshot, 'optionalAccess', _36 => _36.pageContentHash]))), () => ( ""));
|
|
6211
6267
|
const currentState = this.itemStateFromPage(page, currentPageContentHash);
|
|
6212
6268
|
const draftState = this.createDraftState(page.persistentId, currentState, publishedState);
|
|
6213
6269
|
if (draftState)
|
|
@@ -6222,25 +6278,63 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6222
6278
|
contentHash: pageContentHash
|
|
6223
6279
|
};
|
|
6224
6280
|
}
|
|
6281
|
+
getDeletedPages(pages, pageSnapshots) {
|
|
6282
|
+
const existingPageIds = new Set(pages.map((p) => p.id));
|
|
6283
|
+
const latestSnapshots = pickLatestPageSnapshots(pageSnapshots);
|
|
6284
|
+
return latestSnapshots.filter((s) => !existingPageIds.has(s.page.id)).map((s) => s.page);
|
|
6285
|
+
}
|
|
6286
|
+
buildPagePublishedMetadata(pages, pageSnapshots) {
|
|
6287
|
+
const publishedPageSnapshotsById = mapByUnique(
|
|
6288
|
+
pickLatestPageSnapshots(pageSnapshots.filter((s) => s.reason === "Publish")),
|
|
6289
|
+
(s) => s.page.id
|
|
6290
|
+
);
|
|
6291
|
+
const result = /* @__PURE__ */ new Map();
|
|
6292
|
+
pages.forEach((p) => {
|
|
6293
|
+
const publishedSnapshot = publishedPageSnapshotsById.get(p.id);
|
|
6294
|
+
if (!publishedSnapshot)
|
|
6295
|
+
return;
|
|
6296
|
+
result.set(p.id, {
|
|
6297
|
+
lastPublishedAt: publishedSnapshot.createdAt,
|
|
6298
|
+
lastPublishedByUserId: publishedSnapshot.createdByUserId
|
|
6299
|
+
});
|
|
6300
|
+
});
|
|
6301
|
+
return result;
|
|
6302
|
+
}
|
|
6225
6303
|
//
|
|
6226
6304
|
// Drafts - Groups
|
|
6227
6305
|
//
|
|
6228
|
-
|
|
6229
|
-
const
|
|
6230
|
-
|
|
6231
|
-
|
|
6232
|
-
const publishedGroupsById = mapByUnique(
|
|
6233
|
-
publishedSnapshots.map((s) => s.group),
|
|
6234
|
-
(g) => g.id
|
|
6306
|
+
buildGroupDraftDeletedStates(groups, groupSnapshots) {
|
|
6307
|
+
const deletedSnapshotsByGroupId = mapByUnique(
|
|
6308
|
+
pickLatestGroupSnapshots(groupSnapshots.filter((s) => s.reason === "Deletion")),
|
|
6309
|
+
(s) => s.group.id
|
|
6235
6310
|
);
|
|
6236
6311
|
const result = /* @__PURE__ */ new Map();
|
|
6237
6312
|
groups.forEach((group) => {
|
|
6313
|
+
if (!group.parentPersistentId)
|
|
6314
|
+
return;
|
|
6315
|
+
const deletedSnapshot = deletedSnapshotsByGroupId.get(group.id);
|
|
6316
|
+
if (!deletedSnapshot)
|
|
6317
|
+
return;
|
|
6318
|
+
result.set(group.id, {
|
|
6319
|
+
changeType: "Deleted",
|
|
6320
|
+
deletedAt: deletedSnapshot.createdAt,
|
|
6321
|
+
deletedByUserId: deletedSnapshot.createdByUserId
|
|
6322
|
+
});
|
|
6323
|
+
});
|
|
6324
|
+
return result;
|
|
6325
|
+
}
|
|
6326
|
+
buildGroupDraftCreatedAndUpdatedStates(groups, groupSnapshots) {
|
|
6327
|
+
const publishedSnapshots = pickLatestGroupSnapshots(groupSnapshots.filter((s) => s.reason === "Publish"));
|
|
6328
|
+
const publishedSnapshotsByGroupId = mapByUnique(publishedSnapshots, (s) => s.group.id);
|
|
6329
|
+
const result = /* @__PURE__ */ new Map();
|
|
6330
|
+
groups.forEach((group) => {
|
|
6331
|
+
if (!group.parentPersistentId)
|
|
6332
|
+
return;
|
|
6238
6333
|
const currentState = this.itemStateFromGroup(group);
|
|
6239
6334
|
const snapshot = publishedSnapshotsByGroupId.get(group.id);
|
|
6240
6335
|
let publishedState;
|
|
6241
6336
|
if (snapshot) {
|
|
6242
|
-
|
|
6243
|
-
publishedState = this.itemStateFromGroup(publishedGroup);
|
|
6337
|
+
publishedState = this.itemStateFromGroup(snapshot.group);
|
|
6244
6338
|
}
|
|
6245
6339
|
const draftState = this.createDraftState(group.persistentId, currentState, publishedState);
|
|
6246
6340
|
if (draftState)
|
|
@@ -6251,10 +6345,34 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6251
6345
|
itemStateFromGroup(group) {
|
|
6252
6346
|
return {
|
|
6253
6347
|
title: group.meta.name,
|
|
6254
|
-
configuration: _nullishCoalesce(_optionalChain([group, 'access',
|
|
6348
|
+
configuration: _nullishCoalesce(_optionalChain([group, 'access', _37 => _37.data, 'optionalAccess', _38 => _38.configuration]), () => ( defaultDocumentationItemConfigurationV2)),
|
|
6255
6349
|
contentHash: "-"
|
|
6256
6350
|
};
|
|
6257
6351
|
}
|
|
6352
|
+
getDeletedGroups(groups, groupSnapshots) {
|
|
6353
|
+
const existingGroupIds = new Set(groups.map((p) => p.id));
|
|
6354
|
+
const latestSnapshots = pickLatestGroupSnapshots(groupSnapshots);
|
|
6355
|
+
return latestSnapshots.filter((s) => !existingGroupIds.has(s.group.id)).map((s) => s.group);
|
|
6356
|
+
}
|
|
6357
|
+
buildGroupPublishedMetadata(groups, groupSnapshots) {
|
|
6358
|
+
const publishedGroupSnapshotsById = mapByUnique(
|
|
6359
|
+
pickLatestGroupSnapshots(groupSnapshots.filter((s) => s.reason === "Publish")),
|
|
6360
|
+
(s) => s.group.id
|
|
6361
|
+
);
|
|
6362
|
+
const result = /* @__PURE__ */ new Map();
|
|
6363
|
+
groups.forEach((g) => {
|
|
6364
|
+
if (!g.parentPersistentId)
|
|
6365
|
+
return;
|
|
6366
|
+
const publishedSnapshot = publishedGroupSnapshotsById.get(g.id);
|
|
6367
|
+
if (!publishedSnapshot)
|
|
6368
|
+
return;
|
|
6369
|
+
result.set(g.id, {
|
|
6370
|
+
lastPublishedAt: publishedSnapshot.createdAt,
|
|
6371
|
+
lastPublishedByUserId: publishedSnapshot.createdByUserId
|
|
6372
|
+
});
|
|
6373
|
+
});
|
|
6374
|
+
return result;
|
|
6375
|
+
}
|
|
6258
6376
|
//
|
|
6259
6377
|
// Drafts - Shared
|
|
6260
6378
|
//
|
|
@@ -6312,6 +6430,10 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6312
6430
|
const settings = doc.getDocumentationInternalSettings();
|
|
6313
6431
|
return settings.isDraftFeatureAdopted;
|
|
6314
6432
|
}
|
|
6433
|
+
hasPublishedDocumentationContent() {
|
|
6434
|
+
const doc = new VersionRoomBaseYDoc(this.yDoc);
|
|
6435
|
+
return doc.getPageSnapshots().filter((s) => s.reason === "Publish").length > 0 || doc.getGroupSnapshots().filter((s) => s.reason === "Publish").length > 0;
|
|
6436
|
+
}
|
|
6315
6437
|
};
|
|
6316
6438
|
|
|
6317
6439
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
@@ -6336,7 +6458,7 @@ var DTODocumentationPageRoomHeaderDataUpdate = _zod.z.object({
|
|
|
6336
6458
|
function itemConfigurationToYjs(yDoc, item) {
|
|
6337
6459
|
yDoc.transact((trx) => {
|
|
6338
6460
|
const { title, configuration } = item;
|
|
6339
|
-
const header = _optionalChain([configuration, 'optionalAccess',
|
|
6461
|
+
const header = _optionalChain([configuration, 'optionalAccess', _39 => _39.header]);
|
|
6340
6462
|
if (title !== void 0) {
|
|
6341
6463
|
const headerYMap = trx.doc.getMap("itemTitle");
|
|
6342
6464
|
headerYMap.set("title", title);
|
|
@@ -6354,9 +6476,9 @@ function itemConfigurationToYjs(yDoc, item) {
|
|
|
6354
6476
|
header.minHeight !== void 0 && headerYMap.set("minHeight", header.minHeight);
|
|
6355
6477
|
}
|
|
6356
6478
|
const configYMap = trx.doc.getMap("itemConfiguration");
|
|
6357
|
-
_optionalChain([configuration, 'optionalAccess',
|
|
6358
|
-
_optionalChain([configuration, 'optionalAccess',
|
|
6359
|
-
_optionalChain([configuration, 'optionalAccess',
|
|
6479
|
+
_optionalChain([configuration, 'optionalAccess', _40 => _40.showSidebar]) !== void 0 && configYMap.set("showSidebar", configuration.showSidebar);
|
|
6480
|
+
_optionalChain([configuration, 'optionalAccess', _41 => _41.isHidden]) !== void 0 && configYMap.set("isHidden", configuration.isHidden);
|
|
6481
|
+
_optionalChain([configuration, 'optionalAccess', _42 => _42.isPrivate]) !== void 0 && configYMap.set("isPrivate", configuration.isPrivate);
|
|
6360
6482
|
});
|
|
6361
6483
|
}
|
|
6362
6484
|
function yjsToItemConfiguration(yDoc) {
|
|
@@ -7148,7 +7270,7 @@ var ListTreeBuilder = class {
|
|
|
7148
7270
|
}
|
|
7149
7271
|
addWithProperty(block, multiRichTextProperty) {
|
|
7150
7272
|
const parsedOptions = PageBlockDefinitionMutiRichTextOptions.optional().parse(multiRichTextProperty.options);
|
|
7151
|
-
return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess',
|
|
7273
|
+
return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess', _43 => _43.multiRichTextStyle]) || "OL");
|
|
7152
7274
|
}
|
|
7153
7275
|
add(block, multiRichTextPropertyId, multiRichTextPropertyStyle) {
|
|
7154
7276
|
const list = this.createList(block, multiRichTextPropertyId, multiRichTextPropertyStyle);
|
|
@@ -7168,7 +7290,7 @@ var ListTreeBuilder = class {
|
|
|
7168
7290
|
}
|
|
7169
7291
|
const listParent = this.getParentOfDepth(block.data.indentLevel);
|
|
7170
7292
|
const lastChild = listParent.children[listParent.children.length - 1];
|
|
7171
|
-
if (_optionalChain([lastChild, 'optionalAccess',
|
|
7293
|
+
if (_optionalChain([lastChild, 'optionalAccess', _44 => _44.type]) === "List") {
|
|
7172
7294
|
lastChild.children.push(...list.leadingChildren);
|
|
7173
7295
|
return;
|
|
7174
7296
|
} else {
|
|
@@ -7355,7 +7477,7 @@ function serializeAsRichTextBlock(input) {
|
|
|
7355
7477
|
const textPropertyValue = BlockParsingUtils.richTextPropertyValue(blockItem, richTextProperty.id);
|
|
7356
7478
|
const enrichedInput = { ...input, richTextPropertyValue: textPropertyValue };
|
|
7357
7479
|
const parsedOptions = PageBlockDefinitionRichTextOptions.optional().parse(richTextProperty.options);
|
|
7358
|
-
const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess',
|
|
7480
|
+
const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _45 => _45.richTextStyle]), () => ( "Default"));
|
|
7359
7481
|
switch (style) {
|
|
7360
7482
|
case "Callout":
|
|
7361
7483
|
return serializeAsCallout(enrichedInput);
|
|
@@ -7577,7 +7699,7 @@ function serializeBlockNodeAttributes(block) {
|
|
|
7577
7699
|
};
|
|
7578
7700
|
}
|
|
7579
7701
|
function richTextHeadingLevel(property) {
|
|
7580
|
-
const style = _optionalChain([property, 'access',
|
|
7702
|
+
const style = _optionalChain([property, 'access', _46 => _46.options, 'optionalAccess', _47 => _47.richTextStyle]);
|
|
7581
7703
|
if (!style)
|
|
7582
7704
|
return void 0;
|
|
7583
7705
|
switch (style) {
|
|
@@ -7690,7 +7812,7 @@ function serializeAsCustomBlock(block, definition) {
|
|
|
7690
7812
|
linksTo: i.linksTo
|
|
7691
7813
|
};
|
|
7692
7814
|
});
|
|
7693
|
-
const columns = _optionalChain([block, 'access',
|
|
7815
|
+
const columns = _optionalChain([block, 'access', _48 => _48.data, 'access', _49 => _49.appearance, 'optionalAccess', _50 => _50.numberOfColumns]);
|
|
7694
7816
|
return {
|
|
7695
7817
|
type: serializeCustomBlockNodeType(block, definition),
|
|
7696
7818
|
attrs: {
|
|
@@ -10310,10 +10432,10 @@ function parseAsMultiRichText(prosemirrorNode, definition, property, definitions
|
|
|
10310
10432
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
10311
10433
|
const result = [];
|
|
10312
10434
|
const listItems = [];
|
|
10313
|
-
_optionalChain([prosemirrorNode, 'access',
|
|
10435
|
+
_optionalChain([prosemirrorNode, 'access', _51 => _51.content, 'optionalAccess', _52 => _52.forEach, 'call', _53 => _53((c) => {
|
|
10314
10436
|
if (c.type !== "listItem")
|
|
10315
10437
|
return;
|
|
10316
|
-
_optionalChain([c, 'access',
|
|
10438
|
+
_optionalChain([c, 'access', _54 => _54.content, 'optionalAccess', _55 => _55.forEach, 'call', _56 => _56((cc) => {
|
|
10317
10439
|
listItems.push(cc);
|
|
10318
10440
|
})]);
|
|
10319
10441
|
})]);
|
|
@@ -10416,17 +10538,17 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
10416
10538
|
return null;
|
|
10417
10539
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
10418
10540
|
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", _zod.z.boolean().optional()) !== false;
|
|
10419
|
-
const tableChild = _optionalChain([prosemirrorNode, 'access',
|
|
10541
|
+
const tableChild = _optionalChain([prosemirrorNode, 'access', _57 => _57.content, 'optionalAccess', _58 => _58.find, 'call', _59 => _59((c) => c.type === "table")]);
|
|
10420
10542
|
if (!tableChild) {
|
|
10421
10543
|
return emptyTable(id, variantId, 0);
|
|
10422
10544
|
}
|
|
10423
|
-
const rows = _nullishCoalesce(_optionalChain([tableChild, 'access',
|
|
10545
|
+
const rows = _nullishCoalesce(_optionalChain([tableChild, 'access', _60 => _60.content, 'optionalAccess', _61 => _61.filter, 'call', _62 => _62((c) => c.type === "tableRow" && !!_optionalChain([c, 'access', _63 => _63.content, 'optionalAccess', _64 => _64.length]))]), () => ( []));
|
|
10424
10546
|
if (!rows.length) {
|
|
10425
10547
|
return emptyTable(id, variantId, 0);
|
|
10426
10548
|
}
|
|
10427
|
-
const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access',
|
|
10428
|
-
const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access',
|
|
10429
|
-
const hasHeaderRow = _optionalChain([rows, 'access',
|
|
10549
|
+
const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access', _65 => _65[0], 'access', _66 => _66.content, 'optionalAccess', _67 => _67.filter, 'call', _68 => _68((c) => c.type === "tableHeader"), 'access', _69 => _69.length]), () => ( 0));
|
|
10550
|
+
const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _70 => _70.content, 'optionalAccess', _71 => _71[0], 'optionalAccess', _72 => _72.type]) === "tableHeader").length;
|
|
10551
|
+
const hasHeaderRow = _optionalChain([rows, 'access', _73 => _73[0], 'access', _74 => _74.content, 'optionalAccess', _75 => _75.length]) === rowHeaderCells;
|
|
10430
10552
|
const hasHeaderColumn = rows.length === columnHeaderCells;
|
|
10431
10553
|
const tableValue = {
|
|
10432
10554
|
showBorder: hasBorder,
|
|
@@ -10508,7 +10630,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
10508
10630
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
10509
10631
|
if (!parsedItems.success)
|
|
10510
10632
|
return null;
|
|
10511
|
-
const rawImagePropertyValue = _optionalChain([parsedItems, 'access',
|
|
10633
|
+
const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _76 => _76.data, 'access', _77 => _77[0], 'optionalAccess', _78 => _78.props, 'access', _79 => _79.image]);
|
|
10512
10634
|
if (!rawImagePropertyValue)
|
|
10513
10635
|
return null;
|
|
10514
10636
|
const imagePropertyValueParseResult = PageBlockItemImageValue.safeParse(rawImagePropertyValue);
|
|
@@ -10744,7 +10866,7 @@ function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
|
10744
10866
|
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(_zod.z.string()));
|
|
10745
10867
|
}
|
|
10746
10868
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
10747
|
-
const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access',
|
|
10869
|
+
const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _80 => _80.attrs, 'optionalAccess', _81 => _81[attributeName]]));
|
|
10748
10870
|
if (parsedAttr.success) {
|
|
10749
10871
|
return parsedAttr.data;
|
|
10750
10872
|
} else {
|
|
@@ -11030,5 +11152,6 @@ var BackendVersionRoomYDoc = class {
|
|
|
11030
11152
|
|
|
11031
11153
|
|
|
11032
11154
|
|
|
11033
|
-
exports.BackendVersionRoomYDoc = BackendVersionRoomYDoc; exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.DTOAssetRenderConfiguration = DTOAssetRenderConfiguration; exports.DTOBrand = DTOBrand; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOCreateBrandInput = DTOCreateBrandInput; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateElementPropertyDefinitionInputV2 = DTOCreateElementPropertyDefinitionInputV2; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODataSource = DTODataSource; exports.DTODataSourceCreationResponse = DTODataSourceCreationResponse; exports.DTODataSourceFigma = DTODataSourceFigma; exports.DTODataSourceFigmaCloud = DTODataSourceFigmaCloud; exports.DTODataSourceFigmaVariablesPlugin = DTODataSourceFigmaVariablesPlugin; exports.DTODataSourceTokenStudio = DTODataSourceTokenStudio; exports.DTODataSourcesListResponse = DTODataSourcesListResponse; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODeleteElementPropertyDefinitionInputV2 = DTODeleteElementPropertyDefinitionInputV2; exports.DTODesignElementsDataDiffResponse = DTODesignElementsDataDiffResponse; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemUpdateInput = DTODesignSystemUpdateInput; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionCreationResponse = DTODesignSystemVersionCreationResponse; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionJobStatusResponse = DTODesignSystemVersionJobStatusResponse; exports.DTODesignSystemVersionJobsResponse = DTODesignSystemVersionJobsResponse; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODiffCountBase = DTODiffCountBase; exports.DTODocumentationDraftChangeType = DTODocumentationDraftChangeType; exports.DTODocumentationDraftState = DTODocumentationDraftState; exports.DTODocumentationDraftStateCreated = DTODocumentationDraftStateCreated; exports.DTODocumentationDraftStateDeleted = DTODocumentationDraftStateDeleted; exports.DTODocumentationDraftStateUpdated = DTODocumentationDraftStateUpdated; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupRestoreActionInput = DTODocumentationGroupRestoreActionInput; exports.DTODocumentationGroupRestoreActionOutput = DTODocumentationGroupRestoreActionOutput; exports.DTODocumentationGroupStructureV1 = DTODocumentationGroupStructureV1; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV1 = DTODocumentationGroupV1; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationItemConfigurationV1 = DTODocumentationItemConfigurationV1; exports.DTODocumentationItemConfigurationV2 = DTODocumentationItemConfigurationV2; exports.DTODocumentationItemHeaderV2 = DTODocumentationItemHeaderV2; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageAnchor = DTODocumentationPageAnchor; exports.DTODocumentationPageContent = DTODocumentationPageContent; exports.DTODocumentationPageContentGetResponse = DTODocumentationPageContentGetResponse; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRestoreActionInput = DTODocumentationPageRestoreActionInput; exports.DTODocumentationPageRestoreActionOutput = DTODocumentationPageRestoreActionOutput; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageSnapshot = DTODocumentationPageSnapshot; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationPublishTypeQueryParams = DTODocumentationPublishTypeQueryParams; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODownloadAssetsRequest = DTODownloadAssetsRequest; exports.DTODownloadAssetsResponse = DTODownloadAssetsResponse; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionsGetResponse = DTOElementPropertyDefinitionsGetResponse; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValuesGetResponse = DTOElementPropertyValuesGetResponse; exports.DTOElementView = DTOElementView; exports.DTOElementViewBasePropertyColumn = DTOElementViewBasePropertyColumn; exports.DTOElementViewColumn = DTOElementViewColumn; exports.DTOElementViewColumnSharedAttributes = DTOElementViewColumnSharedAttributes; exports.DTOElementViewPropertyDefinitionColumn = DTOElementViewPropertyDefinitionColumn; exports.DTOElementViewThemeColumn = DTOElementViewThemeColumn; exports.DTOElementViewsListResponse = DTOElementViewsListResponse; exports.DTOElementsGetOutput = DTOElementsGetOutput; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOExportJob = DTOExportJob; exports.DTOExportJobCreatedBy = DTOExportJobCreatedBy; exports.DTOExportJobDesignSystemPreview = DTOExportJobDesignSystemPreview; exports.DTOExportJobDesignSystemVersionPreview = DTOExportJobDesignSystemVersionPreview; exports.DTOExportJobDestinations = DTOExportJobDestinations; exports.DTOExportJobResponse = DTOExportJobResponse; exports.DTOExporter = DTOExporter; exports.DTOExporterCreateInput = DTOExporterCreateInput; exports.DTOExporterCreateOutput = DTOExporterCreateOutput; exports.DTOExporterGitProviderEnum = DTOExporterGitProviderEnum; exports.DTOExporterMembership = DTOExporterMembership; exports.DTOExporterMembershipRole = DTOExporterMembershipRole; exports.DTOExporterProperty = DTOExporterProperty; exports.DTOExporterPropertyListResponse = DTOExporterPropertyListResponse; exports.DTOExporterSource = DTOExporterSource; exports.DTOExporterType = DTOExporterType; exports.DTOExporterUpdateInput = DTOExporterUpdateInput; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeOrigin = DTOFigmaNodeOrigin; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOGitBranch = DTOGitBranch; exports.DTOGitOrganization = DTOGitOrganization; exports.DTOGitProject = DTOGitProject; exports.DTOGitRepository = DTOGitRepository; exports.DTOIntegration = DTOIntegration; exports.DTOIntegrationCredentials = DTOIntegrationCredentials; exports.DTOIntegrationOAuthGetResponse = DTOIntegrationOAuthGetResponse; exports.DTOIntegrationPostResponse = DTOIntegrationPostResponse; exports.DTOIntegrationsGetListResponse = DTOIntegrationsGetListResponse; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOLiveblocksAuthResponse = DTOLiveblocksAuthResponse; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTONpmRegistryConfigConstants = DTONpmRegistryConfigConstants; exports.DTOPageBlockColorV2 = DTOPageBlockColorV2; exports.DTOPageBlockDefinition = DTOPageBlockDefinition; exports.DTOPageBlockDefinitionBehavior = DTOPageBlockDefinitionBehavior; exports.DTOPageBlockDefinitionItem = DTOPageBlockDefinitionItem; exports.DTOPageBlockDefinitionLayout = DTOPageBlockDefinitionLayout; exports.DTOPageBlockDefinitionProperty = DTOPageBlockDefinitionProperty; exports.DTOPageBlockDefinitionVariant = DTOPageBlockDefinitionVariant; exports.DTOPageBlockItemV2 = DTOPageBlockItemV2; exports.DTOPipeline = DTOPipeline; exports.DTOPipelineCreateBody = DTOPipelineCreateBody; exports.DTOPipelineTriggerBody = DTOPipelineTriggerBody; exports.DTOPipelineUpdateBody = DTOPipelineUpdateBody; exports.DTOPropertyDefinitionCreateActionInputV2 = DTOPropertyDefinitionCreateActionInputV2; exports.DTOPropertyDefinitionCreateActionOutputV2 = DTOPropertyDefinitionCreateActionOutputV2; exports.DTOPropertyDefinitionDeleteActionInputV2 = DTOPropertyDefinitionDeleteActionInputV2; exports.DTOPropertyDefinitionDeleteActionOutputV2 = DTOPropertyDefinitionDeleteActionOutputV2; exports.DTOPropertyDefinitionUpdateActionInputV2 = DTOPropertyDefinitionUpdateActionInputV2; exports.DTOPropertyDefinitionUpdateActionOutputV2 = DTOPropertyDefinitionUpdateActionOutputV2; exports.DTOPublishDocumentationChanges = DTOPublishDocumentationChanges; exports.DTOPublishDocumentationRequest = DTOPublishDocumentationRequest; exports.DTOPublishDocumentationResponse = DTOPublishDocumentationResponse; exports.DTORenderedAssetFile = DTORenderedAssetFile; exports.DTORestoreDocumentationGroupInput = DTORestoreDocumentationGroupInput; exports.DTORestoreDocumentationPageInput = DTORestoreDocumentationPageInput; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUpdateElementPropertyDefinitionInputV2 = DTOUpdateElementPropertyDefinitionInputV2; exports.DTOUpdateUserNotificationSettingsPayload = DTOUpdateUserNotificationSettingsPayload; exports.DTOUpdateVersionInput = DTOUpdateVersionInput; exports.DTOUserNotificationSettingsResponse = DTOUserNotificationSettingsResponse; exports.DTOUserProfileUpdatePayload = DTOUserProfileUpdatePayload; exports.DTOUserProfileUpdateResponse = DTOUserProfileUpdateResponse; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceIntegrationGetGitObjectsInput = DTOWorkspaceIntegrationGetGitObjectsInput; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceIntegrationPATInput = DTOWorkspaceIntegrationPATInput; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.FrontendVersionRoomYDoc = FrontendVersionRoomYDoc; exports.ListTreeBuilder = ListTreeBuilder; exports.NpmRegistryInput = NpmRegistryInput; exports.ObjectMeta = ObjectMeta2; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.VersionRoomBaseYDoc = VersionRoomBaseYDoc; exports.VersionSQSPayload = VersionSQSPayload; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.applyPrivacyConfigurationToNestedItems = applyPrivacyConfigurationToNestedItems; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; exports.documentationPageToDTOV2 = documentationPageToDTOV2; exports.documentationPagesFixedConfigurationToDTOV1 = documentationPagesFixedConfigurationToDTOV1; exports.documentationPagesFixedConfigurationToDTOV2 = documentationPagesFixedConfigurationToDTOV2; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV1 = elementGroupsToDocumentationGroupFixedConfigurationDTOV1; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV2 = elementGroupsToDocumentationGroupFixedConfigurationDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.generateHash = generateHash; exports.generatePageContentHash = generatePageContentHash; exports.getDtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1; exports.getDtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.gitBranchToDto = gitBranchToDto; exports.gitOrganizationToDto = gitOrganizationToDto; exports.gitProjectToDto = gitProjectToDto; exports.gitRepositoryToDto = gitRepositoryToDto; exports.integrationCredentialToDto = integrationCredentialToDto; exports.integrationToDto = integrationToDto; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYDoc = pageToYDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pipelineToDto = pipelineToDto; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateDesignSystemVersion = validateDesignSystemVersion; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
|
|
11155
|
+
|
|
11156
|
+
exports.BackendVersionRoomYDoc = BackendVersionRoomYDoc; exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.DTOAssetRenderConfiguration = DTOAssetRenderConfiguration; exports.DTOBrand = DTOBrand; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOCreateBrandInput = DTOCreateBrandInput; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateElementPropertyDefinitionInputV2 = DTOCreateElementPropertyDefinitionInputV2; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODataSource = DTODataSource; exports.DTODataSourceCreationResponse = DTODataSourceCreationResponse; exports.DTODataSourceFigma = DTODataSourceFigma; exports.DTODataSourceFigmaCloud = DTODataSourceFigmaCloud; exports.DTODataSourceFigmaVariablesPlugin = DTODataSourceFigmaVariablesPlugin; exports.DTODataSourceTokenStudio = DTODataSourceTokenStudio; exports.DTODataSourcesListResponse = DTODataSourcesListResponse; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODeleteElementPropertyDefinitionInputV2 = DTODeleteElementPropertyDefinitionInputV2; exports.DTODesignElementsDataDiffResponse = DTODesignElementsDataDiffResponse; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemUpdateInput = DTODesignSystemUpdateInput; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionCreationResponse = DTODesignSystemVersionCreationResponse; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionJobStatusResponse = DTODesignSystemVersionJobStatusResponse; exports.DTODesignSystemVersionJobsResponse = DTODesignSystemVersionJobsResponse; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODiffCountBase = DTODiffCountBase; exports.DTODocumentationDraftChangeType = DTODocumentationDraftChangeType; exports.DTODocumentationDraftState = DTODocumentationDraftState; exports.DTODocumentationDraftStateCreated = DTODocumentationDraftStateCreated; exports.DTODocumentationDraftStateDeleted = DTODocumentationDraftStateDeleted; exports.DTODocumentationDraftStateUpdated = DTODocumentationDraftStateUpdated; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupRestoreActionInput = DTODocumentationGroupRestoreActionInput; exports.DTODocumentationGroupRestoreActionOutput = DTODocumentationGroupRestoreActionOutput; exports.DTODocumentationGroupStructureV1 = DTODocumentationGroupStructureV1; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV1 = DTODocumentationGroupV1; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationItemConfigurationV1 = DTODocumentationItemConfigurationV1; exports.DTODocumentationItemConfigurationV2 = DTODocumentationItemConfigurationV2; exports.DTODocumentationItemHeaderV2 = DTODocumentationItemHeaderV2; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageAnchor = DTODocumentationPageAnchor; exports.DTODocumentationPageContent = DTODocumentationPageContent; exports.DTODocumentationPageContentGetResponse = DTODocumentationPageContentGetResponse; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRestoreActionInput = DTODocumentationPageRestoreActionInput; exports.DTODocumentationPageRestoreActionOutput = DTODocumentationPageRestoreActionOutput; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageSnapshot = DTODocumentationPageSnapshot; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationPublishMetadata = DTODocumentationPublishMetadata; exports.DTODocumentationPublishTypeQueryParams = DTODocumentationPublishTypeQueryParams; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODownloadAssetsRequest = DTODownloadAssetsRequest; exports.DTODownloadAssetsResponse = DTODownloadAssetsResponse; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionsGetResponse = DTOElementPropertyDefinitionsGetResponse; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValuesGetResponse = DTOElementPropertyValuesGetResponse; exports.DTOElementView = DTOElementView; exports.DTOElementViewBasePropertyColumn = DTOElementViewBasePropertyColumn; exports.DTOElementViewColumn = DTOElementViewColumn; exports.DTOElementViewColumnSharedAttributes = DTOElementViewColumnSharedAttributes; exports.DTOElementViewPropertyDefinitionColumn = DTOElementViewPropertyDefinitionColumn; exports.DTOElementViewThemeColumn = DTOElementViewThemeColumn; exports.DTOElementViewsListResponse = DTOElementViewsListResponse; exports.DTOElementsGetOutput = DTOElementsGetOutput; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOExportJob = DTOExportJob; exports.DTOExportJobCreatedBy = DTOExportJobCreatedBy; exports.DTOExportJobDesignSystemPreview = DTOExportJobDesignSystemPreview; exports.DTOExportJobDesignSystemVersionPreview = DTOExportJobDesignSystemVersionPreview; exports.DTOExportJobDestinations = DTOExportJobDestinations; exports.DTOExportJobResponse = DTOExportJobResponse; exports.DTOExporter = DTOExporter; exports.DTOExporterCreateInput = DTOExporterCreateInput; exports.DTOExporterCreateOutput = DTOExporterCreateOutput; exports.DTOExporterGitProviderEnum = DTOExporterGitProviderEnum; exports.DTOExporterMembership = DTOExporterMembership; exports.DTOExporterMembershipRole = DTOExporterMembershipRole; exports.DTOExporterProperty = DTOExporterProperty; exports.DTOExporterPropertyListResponse = DTOExporterPropertyListResponse; exports.DTOExporterSource = DTOExporterSource; exports.DTOExporterType = DTOExporterType; exports.DTOExporterUpdateInput = DTOExporterUpdateInput; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeOrigin = DTOFigmaNodeOrigin; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOGitBranch = DTOGitBranch; exports.DTOGitOrganization = DTOGitOrganization; exports.DTOGitProject = DTOGitProject; exports.DTOGitRepository = DTOGitRepository; exports.DTOIntegration = DTOIntegration; exports.DTOIntegrationCredentials = DTOIntegrationCredentials; exports.DTOIntegrationOAuthGetResponse = DTOIntegrationOAuthGetResponse; exports.DTOIntegrationPostResponse = DTOIntegrationPostResponse; exports.DTOIntegrationsGetListResponse = DTOIntegrationsGetListResponse; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOLiveblocksAuthResponse = DTOLiveblocksAuthResponse; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTONpmRegistryConfigConstants = DTONpmRegistryConfigConstants; exports.DTOPageBlockColorV2 = DTOPageBlockColorV2; exports.DTOPageBlockDefinition = DTOPageBlockDefinition; exports.DTOPageBlockDefinitionBehavior = DTOPageBlockDefinitionBehavior; exports.DTOPageBlockDefinitionItem = DTOPageBlockDefinitionItem; exports.DTOPageBlockDefinitionLayout = DTOPageBlockDefinitionLayout; exports.DTOPageBlockDefinitionProperty = DTOPageBlockDefinitionProperty; exports.DTOPageBlockDefinitionVariant = DTOPageBlockDefinitionVariant; exports.DTOPageBlockItemV2 = DTOPageBlockItemV2; exports.DTOPipeline = DTOPipeline; exports.DTOPipelineCreateBody = DTOPipelineCreateBody; exports.DTOPipelineTriggerBody = DTOPipelineTriggerBody; exports.DTOPipelineUpdateBody = DTOPipelineUpdateBody; exports.DTOPropertyDefinitionCreateActionInputV2 = DTOPropertyDefinitionCreateActionInputV2; exports.DTOPropertyDefinitionCreateActionOutputV2 = DTOPropertyDefinitionCreateActionOutputV2; exports.DTOPropertyDefinitionDeleteActionInputV2 = DTOPropertyDefinitionDeleteActionInputV2; exports.DTOPropertyDefinitionDeleteActionOutputV2 = DTOPropertyDefinitionDeleteActionOutputV2; exports.DTOPropertyDefinitionUpdateActionInputV2 = DTOPropertyDefinitionUpdateActionInputV2; exports.DTOPropertyDefinitionUpdateActionOutputV2 = DTOPropertyDefinitionUpdateActionOutputV2; exports.DTOPublishDocumentationChanges = DTOPublishDocumentationChanges; exports.DTOPublishDocumentationRequest = DTOPublishDocumentationRequest; exports.DTOPublishDocumentationResponse = DTOPublishDocumentationResponse; exports.DTORenderedAssetFile = DTORenderedAssetFile; exports.DTORestoreDocumentationGroupInput = DTORestoreDocumentationGroupInput; exports.DTORestoreDocumentationPageInput = DTORestoreDocumentationPageInput; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUpdateElementPropertyDefinitionInputV2 = DTOUpdateElementPropertyDefinitionInputV2; exports.DTOUpdateUserNotificationSettingsPayload = DTOUpdateUserNotificationSettingsPayload; exports.DTOUpdateVersionInput = DTOUpdateVersionInput; exports.DTOUserNotificationSettingsResponse = DTOUserNotificationSettingsResponse; exports.DTOUserProfileUpdatePayload = DTOUserProfileUpdatePayload; exports.DTOUserProfileUpdateResponse = DTOUserProfileUpdateResponse; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceIntegrationGetGitObjectsInput = DTOWorkspaceIntegrationGetGitObjectsInput; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceIntegrationPATInput = DTOWorkspaceIntegrationPATInput; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.FrontendVersionRoomYDoc = FrontendVersionRoomYDoc; exports.ListTreeBuilder = ListTreeBuilder; exports.NpmRegistryInput = NpmRegistryInput; exports.ObjectMeta = ObjectMeta2; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.VersionRoomBaseYDoc = VersionRoomBaseYDoc; exports.VersionSQSPayload = VersionSQSPayload; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.applyPrivacyConfigurationToNestedItems = applyPrivacyConfigurationToNestedItems; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; exports.documentationPageToDTOV2 = documentationPageToDTOV2; exports.documentationPagesFixedConfigurationToDTOV1 = documentationPagesFixedConfigurationToDTOV1; exports.documentationPagesFixedConfigurationToDTOV2 = documentationPagesFixedConfigurationToDTOV2; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV1 = elementGroupsToDocumentationGroupFixedConfigurationDTOV1; exports.elementGroupsToDocumentationGroupFixedConfigurationDTOV2 = elementGroupsToDocumentationGroupFixedConfigurationDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.generateHash = generateHash; exports.generatePageContentHash = generatePageContentHash; exports.getDtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1; exports.getDtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.gitBranchToDto = gitBranchToDto; exports.gitOrganizationToDto = gitOrganizationToDto; exports.gitProjectToDto = gitProjectToDto; exports.gitRepositoryToDto = gitRepositoryToDto; exports.integrationCredentialToDto = integrationCredentialToDto; exports.integrationToDto = integrationToDto; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYDoc = pageToYDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pipelineToDto = pipelineToDto; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateDesignSystemVersion = validateDesignSystemVersion; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
|
|
11034
11157
|
//# sourceMappingURL=index.js.map
|