@supernova-studio/client 0.47.16 → 0.47.18
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 +2412 -198
- package/dist/index.d.ts +2412 -198
- package/dist/index.js +200 -42
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +651 -493
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/conversion/export/index.ts +1 -0
- package/src/api/conversion/export/pipeline.ts +23 -0
- package/src/api/conversion/index.ts +1 -0
- package/src/api/dto/export/exporter.ts +68 -0
- package/src/api/dto/export/index.ts +2 -0
- package/src/api/dto/export/job.ts +7 -2
- package/src/api/dto/export/pipeline.ts +17 -0
- package/src/api/payloads/export/index.ts +1 -0
- package/src/api/payloads/export/pipeline.ts +46 -0
- package/src/api/payloads/index.ts +1 -0
- package/src/api/payloads/workspaces/workspace-integrations.ts +3 -3
package/dist/index.mjs
CHANGED
|
@@ -143,10 +143,10 @@ import { z as z133 } from "zod";
|
|
|
143
143
|
import { z as z134 } from "zod";
|
|
144
144
|
import { z as z135 } from "zod";
|
|
145
145
|
import { z as z136 } from "zod";
|
|
146
|
+
import { z as z139 } from "zod";
|
|
146
147
|
import { z as z137 } from "zod";
|
|
147
|
-
import { z as z140 } from "zod";
|
|
148
148
|
import { z as z138 } from "zod";
|
|
149
|
-
import { z as
|
|
149
|
+
import { z as z140 } from "zod";
|
|
150
150
|
import { z as z141 } from "zod";
|
|
151
151
|
import { z as z143 } from "zod";
|
|
152
152
|
import { z as z142 } from "zod";
|
|
@@ -2766,42 +2766,44 @@ var ExporterDestinationDocs = z133.object({
|
|
|
2766
2766
|
});
|
|
2767
2767
|
var ExporterDestinationS3 = z133.object({});
|
|
2768
2768
|
var ExporterDestinationGithub = z133.object({
|
|
2769
|
+
credentialId: z133.string().optional(),
|
|
2770
|
+
// Repository
|
|
2769
2771
|
url: z133.string(),
|
|
2772
|
+
// Location
|
|
2770
2773
|
branch: z133.string(),
|
|
2771
|
-
|
|
2772
|
-
connectionId: z133.string(),
|
|
2773
|
-
relativePath: z133.string()
|
|
2774
|
+
relativePath: nullishToOptional(z133.string())
|
|
2774
2775
|
});
|
|
2775
2776
|
var ExporterDestinationAzure = z133.object({
|
|
2776
|
-
|
|
2777
|
+
credentialId: z133.string().optional(),
|
|
2778
|
+
// Repository
|
|
2777
2779
|
organizationId: z133.string(),
|
|
2778
2780
|
projectId: z133.string(),
|
|
2779
2781
|
repositoryId: z133.string(),
|
|
2782
|
+
// Location
|
|
2780
2783
|
branch: z133.string(),
|
|
2781
|
-
relativePath: z133.string()
|
|
2782
|
-
//
|
|
2783
|
-
|
|
2784
|
-
// url: z.string(),
|
|
2784
|
+
relativePath: nullishToOptional(z133.string()),
|
|
2785
|
+
// Maybe not needed
|
|
2786
|
+
url: nullishToOptional(z133.string())
|
|
2785
2787
|
});
|
|
2786
2788
|
var ExporterDestinationGitlab = z133.object({
|
|
2787
|
-
|
|
2789
|
+
credentialId: z133.string().optional(),
|
|
2790
|
+
// Repository
|
|
2788
2791
|
projectId: z133.string(),
|
|
2792
|
+
// Location
|
|
2789
2793
|
branch: z133.string(),
|
|
2790
|
-
relativePath: z133.string()
|
|
2791
|
-
//
|
|
2792
|
-
|
|
2793
|
-
// url: z.string(),
|
|
2794
|
+
relativePath: nullishToOptional(z133.string()),
|
|
2795
|
+
// Maybe not needed
|
|
2796
|
+
url: nullishToOptional(z133.string())
|
|
2794
2797
|
});
|
|
2795
2798
|
var ExporterDestinationBitbucket = z133.object({
|
|
2796
|
-
|
|
2799
|
+
credentialId: z133.string().optional(),
|
|
2800
|
+
// Repository
|
|
2797
2801
|
workspaceSlug: z133.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2798
2802
|
projectKey: z133.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2799
2803
|
repoSlug: z133.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2804
|
+
// Location
|
|
2800
2805
|
branch: z133.string(),
|
|
2801
|
-
relativePath: z133.string()
|
|
2802
|
-
// // +
|
|
2803
|
-
// userId: z.string(),
|
|
2804
|
-
// url: z.string(),
|
|
2806
|
+
relativePath: nullishToOptional(z133.string())
|
|
2805
2807
|
});
|
|
2806
2808
|
var ExportDestinationsMap = z133.object({
|
|
2807
2809
|
webhookUrl: z133.string().optional(),
|
|
@@ -2812,7 +2814,15 @@ var ExportDestinationsMap = z133.object({
|
|
|
2812
2814
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
2813
2815
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
2814
2816
|
});
|
|
2815
|
-
var ExportJobDestinationType = z134.enum([
|
|
2817
|
+
var ExportJobDestinationType = z134.enum([
|
|
2818
|
+
"s3",
|
|
2819
|
+
"webhookUrl",
|
|
2820
|
+
"github",
|
|
2821
|
+
"documentation",
|
|
2822
|
+
"azure",
|
|
2823
|
+
"gitlab",
|
|
2824
|
+
"bitbucket"
|
|
2825
|
+
]);
|
|
2816
2826
|
var ExportJobStatus = z134.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
2817
2827
|
var ExportJobLogEntryType = z134.enum(["success", "info", "warning", "error", "user"]);
|
|
2818
2828
|
var ExportJobLogEntry = z134.object({
|
|
@@ -2873,25 +2883,11 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
2873
2883
|
destinations: z134.array(ExportJobDestinationType),
|
|
2874
2884
|
docsEnvironment: PublishedDocEnvironment
|
|
2875
2885
|
}).partial();
|
|
2876
|
-
var
|
|
2877
|
-
var
|
|
2878
|
-
id:
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
isEnabled: z135.boolean(),
|
|
2882
|
-
workspaceId: z135.string(),
|
|
2883
|
-
designSystemId: z135.string(),
|
|
2884
|
-
exporterId: z135.string(),
|
|
2885
|
-
brandId: z135.string().optional(),
|
|
2886
|
-
themeId: z135.string().optional(),
|
|
2887
|
-
// Destinations
|
|
2888
|
-
...ExportDestinationsMap.shape
|
|
2889
|
-
});
|
|
2890
|
-
var ExporterWorkspaceMembershipRole = z136.enum(["Owner", "OwnerArchived", "User"]);
|
|
2891
|
-
var ExporterWorkspaceMembership = z137.object({
|
|
2892
|
-
id: z137.string(),
|
|
2893
|
-
workspaceId: z137.string(),
|
|
2894
|
-
exporterId: z137.string(),
|
|
2886
|
+
var ExporterWorkspaceMembershipRole = z135.enum(["Owner", "OwnerArchived", "User"]);
|
|
2887
|
+
var ExporterWorkspaceMembership = z136.object({
|
|
2888
|
+
id: z136.string(),
|
|
2889
|
+
workspaceId: z136.string(),
|
|
2890
|
+
exporterId: z136.string(),
|
|
2895
2891
|
role: ExporterWorkspaceMembershipRole
|
|
2896
2892
|
});
|
|
2897
2893
|
var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
@@ -2901,8 +2897,8 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
|
2901
2897
|
GitProviderNames2["Bitbucket"] = "bitbucket";
|
|
2902
2898
|
return GitProviderNames2;
|
|
2903
2899
|
})(GitProviderNames || {});
|
|
2904
|
-
var GitProvider =
|
|
2905
|
-
var PulsarPropertyType =
|
|
2900
|
+
var GitProvider = z137.nativeEnum(GitProviderNames);
|
|
2901
|
+
var PulsarPropertyType = z138.enum([
|
|
2906
2902
|
"string",
|
|
2907
2903
|
"number",
|
|
2908
2904
|
"boolean",
|
|
@@ -2915,70 +2911,89 @@ var PulsarPropertyType = z139.enum([
|
|
|
2915
2911
|
"tokenProperties",
|
|
2916
2912
|
"tokenType"
|
|
2917
2913
|
]);
|
|
2918
|
-
var PulsarBaseProperty =
|
|
2919
|
-
label:
|
|
2920
|
-
key:
|
|
2921
|
-
description:
|
|
2914
|
+
var PulsarBaseProperty = z138.object({
|
|
2915
|
+
label: z138.string(),
|
|
2916
|
+
key: z138.string(),
|
|
2917
|
+
description: z138.string().nullish(),
|
|
2922
2918
|
type: PulsarPropertyType,
|
|
2923
|
-
values:
|
|
2924
|
-
default:
|
|
2919
|
+
values: z138.array(z138.string()).nullish(),
|
|
2920
|
+
default: z138.union([z138.string(), z138.boolean(), z138.number()]).nullish(),
|
|
2925
2921
|
// PulsarPropertyValueType //is optional?
|
|
2926
|
-
inputType:
|
|
2922
|
+
inputType: z138.enum(["code", "plain"]).optional(),
|
|
2927
2923
|
//is optional?
|
|
2928
|
-
isMultiline:
|
|
2924
|
+
isMultiline: z138.boolean().nullish()
|
|
2929
2925
|
});
|
|
2930
2926
|
var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
|
|
2931
|
-
category:
|
|
2932
|
-
});
|
|
2933
|
-
var PulsarContributionVariant =
|
|
2934
|
-
key:
|
|
2935
|
-
name:
|
|
2936
|
-
isDefault: nullishToOptional(
|
|
2937
|
-
description: nullishToOptional(
|
|
2938
|
-
thumbnailURL: nullishToOptional(
|
|
2939
|
-
});
|
|
2940
|
-
var PulsarCustomBlock =
|
|
2941
|
-
title: nullishToOptional(
|
|
2942
|
-
key:
|
|
2943
|
-
category: nullishToOptional(
|
|
2944
|
-
description: nullishToOptional(
|
|
2927
|
+
category: z138.string()
|
|
2928
|
+
});
|
|
2929
|
+
var PulsarContributionVariant = z138.object({
|
|
2930
|
+
key: z138.string(),
|
|
2931
|
+
name: z138.string(),
|
|
2932
|
+
isDefault: nullishToOptional(z138.boolean()),
|
|
2933
|
+
description: nullishToOptional(z138.string()),
|
|
2934
|
+
thumbnailURL: nullishToOptional(z138.string())
|
|
2935
|
+
});
|
|
2936
|
+
var PulsarCustomBlock = z138.object({
|
|
2937
|
+
title: nullishToOptional(z138.string()),
|
|
2938
|
+
key: z138.string(),
|
|
2939
|
+
category: nullishToOptional(z138.string()),
|
|
2940
|
+
description: nullishToOptional(z138.string()),
|
|
2941
|
+
iconURL: nullishToOptional(z138.string()),
|
|
2942
|
+
mode: nullishToOptional(z138.enum(["array", "block"])),
|
|
2943
|
+
properties: nullishToOptional(z138.array(PulsarBaseProperty)).transform((v) => v ?? [])
|
|
2944
|
+
});
|
|
2945
|
+
var ExporterType = z139.enum(["code", "documentation"]);
|
|
2946
|
+
var ExporterSource = z139.enum(["git", "upload"]);
|
|
2947
|
+
var ExporterTag = z139.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
|
|
2948
|
+
var ExporterPulsarDetails = z139.object({
|
|
2949
|
+
description: z139.string(),
|
|
2950
|
+
version: z139.string(),
|
|
2951
|
+
routingVersion: nullishToOptional(z139.string()),
|
|
2952
|
+
author: nullishToOptional(z139.string()),
|
|
2953
|
+
organization: nullishToOptional(z139.string()),
|
|
2954
|
+
homepage: nullishToOptional(z139.string()),
|
|
2955
|
+
readme: nullishToOptional(z139.string()),
|
|
2956
|
+
tags: nullishToOptional(z139.array(ExporterTag)).default([]),
|
|
2957
|
+
packageId: nullishToOptional(z139.string().max(255)),
|
|
2945
2958
|
iconURL: nullishToOptional(z139.string()),
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
})
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
var ExporterDetails =
|
|
2953
|
-
description: z140.string(),
|
|
2954
|
-
version: z140.string(),
|
|
2955
|
-
routingVersion: nullishToOptional(z140.string()),
|
|
2956
|
-
author: nullishToOptional(z140.string()),
|
|
2957
|
-
organization: nullishToOptional(z140.string()),
|
|
2958
|
-
homepage: nullishToOptional(z140.string()),
|
|
2959
|
-
readme: nullishToOptional(z140.string()),
|
|
2960
|
-
tags: nullishToOptional(z140.array(ExporterTag)).default([]),
|
|
2961
|
-
packageId: nullishToOptional(z140.string().max(255)),
|
|
2962
|
-
iconURL: nullishToOptional(z140.string()),
|
|
2963
|
-
configurationProperties: nullishToOptional(z140.array(PulsarContributionConfigurationProperty)).default([]),
|
|
2964
|
-
customBlocks: nullishToOptional(z140.array(PulsarCustomBlock)).default([]),
|
|
2965
|
-
blockVariants: nullishToOptional(z140.record(z140.string(), z140.array(PulsarContributionVariant))).default({}),
|
|
2966
|
-
usesBrands: nullishToOptional(z140.boolean()).default(false),
|
|
2967
|
-
usesThemes: nullishToOptional(z140.boolean()).default(false),
|
|
2959
|
+
configurationProperties: nullishToOptional(z139.array(PulsarContributionConfigurationProperty)).default([]),
|
|
2960
|
+
customBlocks: nullishToOptional(z139.array(PulsarCustomBlock)).default([]),
|
|
2961
|
+
blockVariants: nullishToOptional(z139.record(z139.string(), z139.array(PulsarContributionVariant))).default({}),
|
|
2962
|
+
usesBrands: nullishToOptional(z139.boolean()).default(false),
|
|
2963
|
+
usesThemes: nullishToOptional(z139.boolean()).default(false)
|
|
2964
|
+
});
|
|
2965
|
+
var ExporterDetails = ExporterPulsarDetails.extend({
|
|
2968
2966
|
source: ExporterSource,
|
|
2969
2967
|
gitProvider: nullishToOptional(GitProvider),
|
|
2970
|
-
gitUrl: nullishToOptional(
|
|
2971
|
-
gitBranch: nullishToOptional(
|
|
2972
|
-
gitDirectory: nullishToOptional(
|
|
2968
|
+
gitUrl: nullishToOptional(z139.string()),
|
|
2969
|
+
gitBranch: nullishToOptional(z139.string()),
|
|
2970
|
+
gitDirectory: nullishToOptional(z139.string())
|
|
2973
2971
|
});
|
|
2974
|
-
var Exporter =
|
|
2975
|
-
id:
|
|
2976
|
-
createdAt:
|
|
2977
|
-
name:
|
|
2978
|
-
isPrivate:
|
|
2972
|
+
var Exporter = z139.object({
|
|
2973
|
+
id: z139.string(),
|
|
2974
|
+
createdAt: z139.coerce.date(),
|
|
2975
|
+
name: z139.string(),
|
|
2976
|
+
isPrivate: z139.boolean(),
|
|
2979
2977
|
details: ExporterDetails,
|
|
2980
2978
|
exporterType: nullishToOptional(ExporterType).default("code"),
|
|
2981
|
-
storagePath: nullishToOptional(
|
|
2979
|
+
storagePath: nullishToOptional(z139.string()).default("")
|
|
2980
|
+
});
|
|
2981
|
+
var PipelineEventType = z140.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
2982
|
+
var PipelineDestinationGitType = z140.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
2983
|
+
var PipelineDestinationExtraType = z140.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
2984
|
+
var PipelineDestinationType = z140.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
2985
|
+
var Pipeline = z140.object({
|
|
2986
|
+
id: z140.string(),
|
|
2987
|
+
name: z140.string(),
|
|
2988
|
+
eventType: PipelineEventType,
|
|
2989
|
+
isEnabled: z140.boolean(),
|
|
2990
|
+
workspaceId: z140.string(),
|
|
2991
|
+
designSystemId: z140.string(),
|
|
2992
|
+
exporterId: z140.string(),
|
|
2993
|
+
brandPersistentId: z140.string().optional(),
|
|
2994
|
+
themePersistentId: z140.string().optional(),
|
|
2995
|
+
// Destinations
|
|
2996
|
+
...ExportDestinationsMap.shape
|
|
2982
2997
|
});
|
|
2983
2998
|
var FlaggedFeature = z141.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
|
|
2984
2999
|
var FeatureFlagMap = z141.record(FlaggedFeature, z141.boolean());
|
|
@@ -3006,6 +3021,18 @@ var ExternalOAuthRequest = z143.object({
|
|
|
3006
3021
|
state: z143.string(),
|
|
3007
3022
|
createdAt: z143.coerce.date()
|
|
3008
3023
|
});
|
|
3024
|
+
var GitObjectsQuery = z144.object({
|
|
3025
|
+
organization: z144.string().optional(),
|
|
3026
|
+
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
3027
|
+
project: z144.string().optional(),
|
|
3028
|
+
// Only for Bitbucket and Azure
|
|
3029
|
+
repository: z144.string().optional(),
|
|
3030
|
+
// For all providers. For Gitlab, it's called "project".
|
|
3031
|
+
branch: z144.string().optional(),
|
|
3032
|
+
// For all providers.
|
|
3033
|
+
user: z144.string().optional()
|
|
3034
|
+
// Gitlab user
|
|
3035
|
+
});
|
|
3009
3036
|
var GitOrganization = z144.object({
|
|
3010
3037
|
id: z144.string(),
|
|
3011
3038
|
name: z144.string(),
|
|
@@ -3068,6 +3095,7 @@ var ExtendedIntegrationType = z145.enum([
|
|
|
3068
3095
|
"FigmaVariablesPlugin"
|
|
3069
3096
|
]);
|
|
3070
3097
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
3098
|
+
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
3071
3099
|
var Integration = z145.object({
|
|
3072
3100
|
id: z145.string(),
|
|
3073
3101
|
workspaceId: z145.string(),
|
|
@@ -3107,8 +3135,18 @@ var IntegrationToken = z145.object({
|
|
|
3107
3135
|
tokenName: data.token_name,
|
|
3108
3136
|
tokenBitbucketUsername: data.token_bitbucket_username,
|
|
3109
3137
|
tokenAzureOrganizationName: data.token_azure_organization_name,
|
|
3110
|
-
customUrl: data.custom_url
|
|
3138
|
+
customUrl: data.custom_url ? formatCustomUrl(data.custom_url) : void 0
|
|
3111
3139
|
};
|
|
3140
|
+
function formatCustomUrl(url) {
|
|
3141
|
+
let formattedUrl = url.trim();
|
|
3142
|
+
if (!formattedUrl.startsWith("http://") && !formattedUrl.startsWith("https://")) {
|
|
3143
|
+
formattedUrl = "http://" + formattedUrl;
|
|
3144
|
+
}
|
|
3145
|
+
if (formattedUrl.endsWith("/")) {
|
|
3146
|
+
formattedUrl = formattedUrl.slice(0, -1);
|
|
3147
|
+
}
|
|
3148
|
+
return formattedUrl;
|
|
3149
|
+
}
|
|
3112
3150
|
});
|
|
3113
3151
|
var IntegrationTokenSchemaOld = z146.object({
|
|
3114
3152
|
id: z146.string(),
|
|
@@ -4279,6 +4317,28 @@ function documentationPageToDTOV1(page, pagePathMap) {
|
|
|
4279
4317
|
};
|
|
4280
4318
|
}
|
|
4281
4319
|
|
|
4320
|
+
// src/api/conversion/export/pipeline.ts
|
|
4321
|
+
function pipelineToDto(pipeline) {
|
|
4322
|
+
return {
|
|
4323
|
+
id: pipeline.id,
|
|
4324
|
+
name: pipeline.name,
|
|
4325
|
+
eventType: pipeline.eventType,
|
|
4326
|
+
isEnabled: pipeline.isEnabled,
|
|
4327
|
+
workspaceId: pipeline.workspaceId,
|
|
4328
|
+
designSystemId: pipeline.designSystemId,
|
|
4329
|
+
exporterId: pipeline.exporterId,
|
|
4330
|
+
brandPersistentId: pipeline.brandPersistentId,
|
|
4331
|
+
themePersistentId: pipeline.themePersistentId,
|
|
4332
|
+
destinationAzure: pipeline.destinationAzure,
|
|
4333
|
+
destinationBitbucket: pipeline.destinationBitbucket,
|
|
4334
|
+
destinationSnDocs: pipeline.destinationSnDocs,
|
|
4335
|
+
destinationGithub: pipeline.destinationGithub,
|
|
4336
|
+
destinationGitlab: pipeline.destinationGitlab,
|
|
4337
|
+
destinationS3: pipeline.destinationS3,
|
|
4338
|
+
webhookUrl: pipeline.webhookUrl
|
|
4339
|
+
};
|
|
4340
|
+
}
|
|
4341
|
+
|
|
4282
4342
|
// src/api/conversion/integrations/git.ts
|
|
4283
4343
|
function gitOrganizationToDto(org) {
|
|
4284
4344
|
return {
|
|
@@ -4456,7 +4516,7 @@ var DTOExporterProperty = z159.any({});
|
|
|
4456
4516
|
var DTOExporterPropertyListResponse = z159.object({ items: z159.array(DTOExporterProperty) });
|
|
4457
4517
|
|
|
4458
4518
|
// src/api/dto/design-systems/version.ts
|
|
4459
|
-
import { z as
|
|
4519
|
+
import { z as z168 } from "zod";
|
|
4460
4520
|
|
|
4461
4521
|
// src/api/payloads/design-systems/brand.ts
|
|
4462
4522
|
import { z as z160 } from "zod";
|
|
@@ -4498,20 +4558,49 @@ var DTOGetBlockDefinitionsOutput = z162.object({
|
|
|
4498
4558
|
definitions: z162.array(PageBlockDefinition)
|
|
4499
4559
|
});
|
|
4500
4560
|
|
|
4501
|
-
// src/api/payloads/
|
|
4561
|
+
// src/api/payloads/export/pipeline.ts
|
|
4502
4562
|
import { z as z163 } from "zod";
|
|
4503
|
-
var
|
|
4504
|
-
|
|
4563
|
+
var DTOPipelineCreateBody = z163.object({
|
|
4564
|
+
name: z163.string(),
|
|
4565
|
+
exporterId: z163.string(),
|
|
4566
|
+
designSystemId: z163.string(),
|
|
4567
|
+
isEnabled: z163.boolean(),
|
|
4568
|
+
eventType: PipelineEventType,
|
|
4569
|
+
brandPersistentId: z163.string().optional(),
|
|
4570
|
+
themePersistentId: z163.string().optional(),
|
|
4571
|
+
destination: PipelineDestinationType,
|
|
4572
|
+
gitQuery: GitObjectsQuery,
|
|
4573
|
+
destinations: z163.object({
|
|
4574
|
+
s3: ExporterDestinationS3.nullish(),
|
|
4575
|
+
azure: ExporterDestinationAzure.nullish(),
|
|
4576
|
+
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
4577
|
+
github: ExporterDestinationGithub.nullish(),
|
|
4578
|
+
gitlab: ExporterDestinationGitlab.nullish(),
|
|
4579
|
+
documentation: ExporterDestinationDocs.nullish(),
|
|
4580
|
+
webhookUrl: z163.string().nullish()
|
|
4581
|
+
})
|
|
4582
|
+
});
|
|
4583
|
+
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
4584
|
+
id: z163.string()
|
|
4585
|
+
});
|
|
4586
|
+
var DTOPipelineTriggerBody = z163.object({
|
|
4587
|
+
designSystemVersionId: z163.string()
|
|
4505
4588
|
});
|
|
4506
4589
|
|
|
4507
|
-
// src/api/payloads/
|
|
4590
|
+
// src/api/payloads/liveblocks/auth.ts
|
|
4508
4591
|
import { z as z164 } from "zod";
|
|
4509
|
-
var
|
|
4592
|
+
var DTOLiveblocksAuthRequest = z164.object({
|
|
4593
|
+
room: z164.string().optional()
|
|
4594
|
+
});
|
|
4595
|
+
|
|
4596
|
+
// src/api/payloads/users/notifications/notification-settings.ts
|
|
4597
|
+
import { z as z165 } from "zod";
|
|
4598
|
+
var DTOUpdateUserNotificationSettingsPayload = z165.object({
|
|
4510
4599
|
notificationSettings: UserNotificationSettings
|
|
4511
4600
|
});
|
|
4512
|
-
var DTOUserNotificationSettingsResponse =
|
|
4513
|
-
userId:
|
|
4514
|
-
workspaceId:
|
|
4601
|
+
var DTOUserNotificationSettingsResponse = z165.object({
|
|
4602
|
+
userId: z165.string(),
|
|
4603
|
+
workspaceId: z165.string(),
|
|
4515
4604
|
notificationSettings: UserNotificationSettings
|
|
4516
4605
|
});
|
|
4517
4606
|
|
|
@@ -4519,7 +4608,7 @@ var DTOUserNotificationSettingsResponse = z164.object({
|
|
|
4519
4608
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
4520
4609
|
|
|
4521
4610
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
4522
|
-
import { z as
|
|
4611
|
+
import { z as z166 } from "zod";
|
|
4523
4612
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
4524
4613
|
function validateSsoPayload(ssoPayload) {
|
|
4525
4614
|
const keys = [];
|
|
@@ -4542,21 +4631,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
4542
4631
|
keys
|
|
4543
4632
|
};
|
|
4544
4633
|
}
|
|
4545
|
-
var NpmRegistryInput =
|
|
4546
|
-
enabledScopes:
|
|
4547
|
-
customRegistryUrl:
|
|
4548
|
-
bypassProxy:
|
|
4549
|
-
npmProxyRegistryConfigId:
|
|
4550
|
-
npmProxyVersion:
|
|
4551
|
-
registryType:
|
|
4552
|
-
authType:
|
|
4553
|
-
authHeaderName:
|
|
4554
|
-
authHeaderValue:
|
|
4555
|
-
accessToken:
|
|
4556
|
-
username:
|
|
4557
|
-
password:
|
|
4558
|
-
});
|
|
4559
|
-
var WorkspaceConfigurationPayload =
|
|
4634
|
+
var NpmRegistryInput = z166.object({
|
|
4635
|
+
enabledScopes: z166.array(z166.string()),
|
|
4636
|
+
customRegistryUrl: z166.string().optional(),
|
|
4637
|
+
bypassProxy: z166.boolean().optional(),
|
|
4638
|
+
npmProxyRegistryConfigId: z166.string().optional(),
|
|
4639
|
+
npmProxyVersion: z166.number().optional(),
|
|
4640
|
+
registryType: z166.string(),
|
|
4641
|
+
authType: z166.string(),
|
|
4642
|
+
authHeaderName: z166.string(),
|
|
4643
|
+
authHeaderValue: z166.string(),
|
|
4644
|
+
accessToken: z166.string(),
|
|
4645
|
+
username: z166.string(),
|
|
4646
|
+
password: z166.string()
|
|
4647
|
+
});
|
|
4648
|
+
var WorkspaceConfigurationPayload = z166.object({
|
|
4560
4649
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
4561
4650
|
sso: SsoProvider.partial().optional(),
|
|
4562
4651
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -4564,130 +4653,130 @@ var WorkspaceConfigurationPayload = z165.object({
|
|
|
4564
4653
|
});
|
|
4565
4654
|
|
|
4566
4655
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
4567
|
-
import { z as
|
|
4568
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
4656
|
+
import { z as z167 } from "zod";
|
|
4657
|
+
var DTOWorkspaceIntegrationOauthInput = z167.object({
|
|
4569
4658
|
type: IntegrationType
|
|
4570
4659
|
});
|
|
4571
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
4572
|
-
userId:
|
|
4660
|
+
var DTOWorkspaceIntegrationPATInput = z167.object({
|
|
4661
|
+
userId: z167.string(),
|
|
4573
4662
|
type: IntegrationType,
|
|
4574
4663
|
token: IntegrationToken
|
|
4575
4664
|
});
|
|
4576
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
4577
|
-
organization:
|
|
4578
|
-
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
4579
|
-
project:
|
|
4665
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z167.object({
|
|
4666
|
+
organization: z167.string().optional(),
|
|
4667
|
+
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
4668
|
+
project: z167.string().optional(),
|
|
4580
4669
|
// Only for Bitbucket and Azure
|
|
4581
|
-
repository:
|
|
4670
|
+
repository: z167.string().optional(),
|
|
4582
4671
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
4583
|
-
branch:
|
|
4584
|
-
// For all providers.
|
|
4585
|
-
user:
|
|
4586
|
-
// Only for Gitlab
|
|
4672
|
+
branch: z167.string().optional(),
|
|
4673
|
+
// For all providers, useful for PR creations.
|
|
4674
|
+
user: z167.string().optional()
|
|
4675
|
+
// Only for Gitlab User Repositories
|
|
4587
4676
|
});
|
|
4588
4677
|
|
|
4589
4678
|
// src/api/dto/design-systems/version.ts
|
|
4590
|
-
var DTODesignSystemVersion =
|
|
4591
|
-
id:
|
|
4592
|
-
createdAt:
|
|
4679
|
+
var DTODesignSystemVersion = z168.object({
|
|
4680
|
+
id: z168.string(),
|
|
4681
|
+
createdAt: z168.date(),
|
|
4593
4682
|
meta: ObjectMeta,
|
|
4594
|
-
version:
|
|
4595
|
-
isReadonly:
|
|
4596
|
-
changeLog:
|
|
4597
|
-
designSystemId:
|
|
4683
|
+
version: z168.string(),
|
|
4684
|
+
isReadonly: z168.boolean(),
|
|
4685
|
+
changeLog: z168.string(),
|
|
4686
|
+
designSystemId: z168.string()
|
|
4598
4687
|
});
|
|
4599
|
-
var DTODesignSystemVersionsListResponse =
|
|
4600
|
-
designSystemVersions:
|
|
4688
|
+
var DTODesignSystemVersionsListResponse = z168.object({
|
|
4689
|
+
designSystemVersions: z168.array(DTODesignSystemVersion)
|
|
4601
4690
|
});
|
|
4602
|
-
var DTODesignSystemVersionGetResponse =
|
|
4691
|
+
var DTODesignSystemVersionGetResponse = z168.object({
|
|
4603
4692
|
designSystemVersion: DTODesignSystemVersion
|
|
4604
4693
|
});
|
|
4605
|
-
var DTODesignSystemVersionCreationResponse =
|
|
4694
|
+
var DTODesignSystemVersionCreationResponse = z168.object({
|
|
4606
4695
|
meta: ObjectMeta,
|
|
4607
|
-
version:
|
|
4608
|
-
changeLog:
|
|
4609
|
-
isReadOnly:
|
|
4610
|
-
designSystemId:
|
|
4611
|
-
jobId:
|
|
4612
|
-
});
|
|
4613
|
-
var VersionSQSPayload =
|
|
4614
|
-
jobId:
|
|
4615
|
-
designSystemId:
|
|
4696
|
+
version: z168.string(),
|
|
4697
|
+
changeLog: z168.string(),
|
|
4698
|
+
isReadOnly: z168.boolean(),
|
|
4699
|
+
designSystemId: z168.string(),
|
|
4700
|
+
jobId: z168.string()
|
|
4701
|
+
});
|
|
4702
|
+
var VersionSQSPayload = z168.object({
|
|
4703
|
+
jobId: z168.string(),
|
|
4704
|
+
designSystemId: z168.string(),
|
|
4616
4705
|
input: DTOCreateVersionInput
|
|
4617
4706
|
});
|
|
4618
|
-
var DTODesignSystemVersionJobsResponse =
|
|
4619
|
-
jobs:
|
|
4707
|
+
var DTODesignSystemVersionJobsResponse = z168.object({
|
|
4708
|
+
jobs: z168.array(VersionCreationJob)
|
|
4620
4709
|
});
|
|
4621
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
4710
|
+
var DTODesignSystemVersionJobStatusResponse = z168.object({
|
|
4622
4711
|
job: VersionCreationJob
|
|
4623
4712
|
});
|
|
4624
4713
|
|
|
4625
4714
|
// src/api/dto/design-systems/view.ts
|
|
4626
|
-
import { z as
|
|
4627
|
-
var DTOElementViewColumnSharedAttributes =
|
|
4628
|
-
id:
|
|
4629
|
-
persistentId:
|
|
4630
|
-
width:
|
|
4715
|
+
import { z as z169 } from "zod";
|
|
4716
|
+
var DTOElementViewColumnSharedAttributes = z169.object({
|
|
4717
|
+
id: z169.string(),
|
|
4718
|
+
persistentId: z169.string(),
|
|
4719
|
+
width: z169.number()
|
|
4631
4720
|
});
|
|
4632
4721
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4633
|
-
type:
|
|
4722
|
+
type: z169.literal("BaseProperty"),
|
|
4634
4723
|
basePropertyType: ElementViewBaseColumnType
|
|
4635
4724
|
});
|
|
4636
4725
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4637
|
-
type:
|
|
4638
|
-
propertyDefinitionId:
|
|
4726
|
+
type: z169.literal("PropertyDefinition"),
|
|
4727
|
+
propertyDefinitionId: z169.string()
|
|
4639
4728
|
});
|
|
4640
4729
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4641
|
-
type:
|
|
4642
|
-
themeId:
|
|
4730
|
+
type: z169.literal("Theme"),
|
|
4731
|
+
themeId: z169.string()
|
|
4643
4732
|
});
|
|
4644
|
-
var DTOElementViewColumn =
|
|
4733
|
+
var DTOElementViewColumn = z169.discriminatedUnion("type", [
|
|
4645
4734
|
DTOElementViewBasePropertyColumn,
|
|
4646
4735
|
DTOElementViewPropertyDefinitionColumn,
|
|
4647
4736
|
DTOElementViewThemeColumn
|
|
4648
4737
|
]);
|
|
4649
|
-
var DTOElementView =
|
|
4738
|
+
var DTOElementView = z169.object({
|
|
4650
4739
|
meta: ObjectMeta,
|
|
4651
|
-
persistentId:
|
|
4740
|
+
persistentId: z169.string(),
|
|
4652
4741
|
targetElementType: ElementPropertyTargetType,
|
|
4653
|
-
id:
|
|
4654
|
-
isDefault:
|
|
4655
|
-
columns:
|
|
4742
|
+
id: z169.string(),
|
|
4743
|
+
isDefault: z169.boolean(),
|
|
4744
|
+
columns: z169.array(DTOElementViewColumn)
|
|
4656
4745
|
});
|
|
4657
|
-
var DTOElementViewsListResponse =
|
|
4658
|
-
elementDataViews:
|
|
4746
|
+
var DTOElementViewsListResponse = z169.object({
|
|
4747
|
+
elementDataViews: z169.array(DTOElementView)
|
|
4659
4748
|
});
|
|
4660
4749
|
|
|
4661
4750
|
// src/api/dto/documentation/anchor.ts
|
|
4662
|
-
import { z as
|
|
4751
|
+
import { z as z170 } from "zod";
|
|
4663
4752
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
4664
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
4665
|
-
anchors:
|
|
4753
|
+
var DTOGetDocumentationPageAnchorsResponse = z170.object({
|
|
4754
|
+
anchors: z170.array(DTODocumentationPageAnchor)
|
|
4666
4755
|
});
|
|
4667
4756
|
|
|
4668
4757
|
// src/api/dto/documentation/link-preview.ts
|
|
4669
|
-
import { z as
|
|
4670
|
-
var DTODocumentationLinkPreviewResponse =
|
|
4758
|
+
import { z as z171 } from "zod";
|
|
4759
|
+
var DTODocumentationLinkPreviewResponse = z171.object({
|
|
4671
4760
|
linkPreview: DocumentationLinkPreview
|
|
4672
4761
|
});
|
|
4673
|
-
var DTODocumentationLinkPreviewRequest =
|
|
4674
|
-
url:
|
|
4675
|
-
documentationItemPersistentId:
|
|
4762
|
+
var DTODocumentationLinkPreviewRequest = z171.object({
|
|
4763
|
+
url: z171.string().optional(),
|
|
4764
|
+
documentationItemPersistentId: z171.string().optional()
|
|
4676
4765
|
});
|
|
4677
4766
|
|
|
4678
4767
|
// src/api/dto/elements/documentation/group-action.ts
|
|
4679
|
-
import { z as
|
|
4768
|
+
import { z as z174 } from "zod";
|
|
4680
4769
|
|
|
4681
4770
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
4682
|
-
import { z as
|
|
4771
|
+
import { z as z173 } from "zod";
|
|
4683
4772
|
|
|
4684
4773
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
4685
|
-
import { z as
|
|
4774
|
+
import { z as z172 } from "zod";
|
|
4686
4775
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
4687
|
-
var DTODocumentationItemConfigurationV2 =
|
|
4688
|
-
showSidebar:
|
|
4689
|
-
isPrivate:
|
|
4690
|
-
isHidden:
|
|
4776
|
+
var DTODocumentationItemConfigurationV2 = z172.object({
|
|
4777
|
+
showSidebar: z172.boolean(),
|
|
4778
|
+
isPrivate: z172.boolean(),
|
|
4779
|
+
isHidden: z172.boolean(),
|
|
4691
4780
|
header: DTODocumentationItemHeaderV2
|
|
4692
4781
|
});
|
|
4693
4782
|
|
|
@@ -4701,136 +4790,136 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
4701
4790
|
data: true,
|
|
4702
4791
|
shortPersistentId: true
|
|
4703
4792
|
}).extend({
|
|
4704
|
-
title:
|
|
4705
|
-
isRoot:
|
|
4706
|
-
childrenIds:
|
|
4793
|
+
title: z173.string(),
|
|
4794
|
+
isRoot: z173.boolean(),
|
|
4795
|
+
childrenIds: z173.array(z173.string()),
|
|
4707
4796
|
groupBehavior: DocumentationGroupBehavior,
|
|
4708
|
-
shortPersistentId:
|
|
4797
|
+
shortPersistentId: z173.string(),
|
|
4709
4798
|
configuration: DTODocumentationItemConfigurationV2,
|
|
4710
|
-
type:
|
|
4799
|
+
type: z173.literal("Group")
|
|
4711
4800
|
});
|
|
4712
4801
|
var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
|
|
4713
|
-
var DTOCreateDocumentationGroupInput =
|
|
4802
|
+
var DTOCreateDocumentationGroupInput = z173.object({
|
|
4714
4803
|
// Identifier
|
|
4715
|
-
persistentId:
|
|
4804
|
+
persistentId: z173.string().uuid(),
|
|
4716
4805
|
// Group properties
|
|
4717
|
-
title:
|
|
4806
|
+
title: z173.string(),
|
|
4718
4807
|
configuration: DTODocumentationItemConfigurationV2.optional(),
|
|
4719
4808
|
// Group placement properties
|
|
4720
|
-
afterPersistentId:
|
|
4721
|
-
parentPersistentId:
|
|
4809
|
+
afterPersistentId: z173.string().uuid().nullish(),
|
|
4810
|
+
parentPersistentId: z173.string().uuid()
|
|
4722
4811
|
});
|
|
4723
|
-
var DTOUpdateDocumentationGroupInput =
|
|
4812
|
+
var DTOUpdateDocumentationGroupInput = z173.object({
|
|
4724
4813
|
// Identifier of the group to update
|
|
4725
|
-
id:
|
|
4814
|
+
id: z173.string(),
|
|
4726
4815
|
// Group properties
|
|
4727
|
-
title:
|
|
4816
|
+
title: z173.string().optional(),
|
|
4728
4817
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
4729
4818
|
});
|
|
4730
|
-
var DTOMoveDocumentationGroupInput =
|
|
4819
|
+
var DTOMoveDocumentationGroupInput = z173.object({
|
|
4731
4820
|
// Identifier of the group to update
|
|
4732
|
-
id:
|
|
4821
|
+
id: z173.string(),
|
|
4733
4822
|
// Group placement properties
|
|
4734
|
-
parentPersistentId:
|
|
4735
|
-
afterPersistentId:
|
|
4823
|
+
parentPersistentId: z173.string().uuid(),
|
|
4824
|
+
afterPersistentId: z173.string().uuid().nullish()
|
|
4736
4825
|
});
|
|
4737
|
-
var DTODuplicateDocumentationGroupInput =
|
|
4826
|
+
var DTODuplicateDocumentationGroupInput = z173.object({
|
|
4738
4827
|
// Identifier of the group to duplicate from
|
|
4739
|
-
id:
|
|
4828
|
+
id: z173.string(),
|
|
4740
4829
|
// New group persistent id
|
|
4741
|
-
persistentId:
|
|
4830
|
+
persistentId: z173.string().uuid(),
|
|
4742
4831
|
// Group placement properties
|
|
4743
|
-
afterPersistentId:
|
|
4744
|
-
parentPersistentId:
|
|
4832
|
+
afterPersistentId: z173.string().uuid().nullish(),
|
|
4833
|
+
parentPersistentId: z173.string().uuid()
|
|
4745
4834
|
});
|
|
4746
|
-
var DTOCreateDocumentationTabInput =
|
|
4835
|
+
var DTOCreateDocumentationTabInput = z173.object({
|
|
4747
4836
|
// New group persistent id
|
|
4748
|
-
persistentId:
|
|
4837
|
+
persistentId: z173.string().uuid(),
|
|
4749
4838
|
// If this is page, we will attempt to convert it to tab
|
|
4750
4839
|
// If this is tab group, we will add a new tab to it
|
|
4751
|
-
fromItemPersistentId:
|
|
4752
|
-
tabName:
|
|
4840
|
+
fromItemPersistentId: z173.string(),
|
|
4841
|
+
tabName: z173.string()
|
|
4753
4842
|
});
|
|
4754
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
4843
|
+
var DTODeleteDocumentationTabGroupInput = z173.object({
|
|
4755
4844
|
// Deleted group id
|
|
4756
|
-
id:
|
|
4845
|
+
id: z173.string()
|
|
4757
4846
|
});
|
|
4758
|
-
var DTODeleteDocumentationGroupInput =
|
|
4847
|
+
var DTODeleteDocumentationGroupInput = z173.object({
|
|
4759
4848
|
// Identifier
|
|
4760
|
-
id:
|
|
4849
|
+
id: z173.string(),
|
|
4761
4850
|
// Deletion options
|
|
4762
|
-
deleteSubtree:
|
|
4851
|
+
deleteSubtree: z173.boolean().default(false)
|
|
4763
4852
|
});
|
|
4764
4853
|
|
|
4765
4854
|
// src/api/dto/elements/documentation/group-action.ts
|
|
4766
|
-
var SuccessPayload =
|
|
4767
|
-
success:
|
|
4855
|
+
var SuccessPayload = z174.object({
|
|
4856
|
+
success: z174.literal(true)
|
|
4768
4857
|
});
|
|
4769
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
4770
|
-
type:
|
|
4858
|
+
var DTODocumentationGroupCreateActionOutputV2 = z174.object({
|
|
4859
|
+
type: z174.literal("DocumentationGroupCreate"),
|
|
4771
4860
|
output: SuccessPayload
|
|
4772
4861
|
});
|
|
4773
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
4774
|
-
type:
|
|
4862
|
+
var DTODocumentationTabCreateActionOutputV2 = z174.object({
|
|
4863
|
+
type: z174.literal("DocumentationTabCreate"),
|
|
4775
4864
|
output: SuccessPayload
|
|
4776
4865
|
});
|
|
4777
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
4778
|
-
type:
|
|
4866
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z174.object({
|
|
4867
|
+
type: z174.literal("DocumentationGroupUpdate"),
|
|
4779
4868
|
output: SuccessPayload
|
|
4780
4869
|
});
|
|
4781
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
4782
|
-
type:
|
|
4870
|
+
var DTODocumentationGroupMoveActionOutputV2 = z174.object({
|
|
4871
|
+
type: z174.literal("DocumentationGroupMove"),
|
|
4783
4872
|
output: SuccessPayload
|
|
4784
4873
|
});
|
|
4785
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
4786
|
-
type:
|
|
4874
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z174.object({
|
|
4875
|
+
type: z174.literal("DocumentationGroupDuplicate"),
|
|
4787
4876
|
output: SuccessPayload
|
|
4788
4877
|
});
|
|
4789
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
4790
|
-
type:
|
|
4878
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z174.object({
|
|
4879
|
+
type: z174.literal("DocumentationGroupDelete"),
|
|
4791
4880
|
output: SuccessPayload
|
|
4792
4881
|
});
|
|
4793
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
4794
|
-
type:
|
|
4882
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z174.object({
|
|
4883
|
+
type: z174.literal("DocumentationTabGroupDelete"),
|
|
4795
4884
|
output: SuccessPayload
|
|
4796
4885
|
});
|
|
4797
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
4798
|
-
type:
|
|
4886
|
+
var DTODocumentationGroupCreateActionInputV2 = z174.object({
|
|
4887
|
+
type: z174.literal("DocumentationGroupCreate"),
|
|
4799
4888
|
input: DTOCreateDocumentationGroupInput
|
|
4800
4889
|
});
|
|
4801
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
4802
|
-
type:
|
|
4890
|
+
var DTODocumentationTabCreateActionInputV2 = z174.object({
|
|
4891
|
+
type: z174.literal("DocumentationTabCreate"),
|
|
4803
4892
|
input: DTOCreateDocumentationTabInput
|
|
4804
4893
|
});
|
|
4805
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
4806
|
-
type:
|
|
4894
|
+
var DTODocumentationGroupUpdateActionInputV2 = z174.object({
|
|
4895
|
+
type: z174.literal("DocumentationGroupUpdate"),
|
|
4807
4896
|
input: DTOUpdateDocumentationGroupInput
|
|
4808
4897
|
});
|
|
4809
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
4810
|
-
type:
|
|
4898
|
+
var DTODocumentationGroupMoveActionInputV2 = z174.object({
|
|
4899
|
+
type: z174.literal("DocumentationGroupMove"),
|
|
4811
4900
|
input: DTOMoveDocumentationGroupInput
|
|
4812
4901
|
});
|
|
4813
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
4814
|
-
type:
|
|
4902
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z174.object({
|
|
4903
|
+
type: z174.literal("DocumentationGroupDuplicate"),
|
|
4815
4904
|
input: DTODuplicateDocumentationGroupInput
|
|
4816
4905
|
});
|
|
4817
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
4818
|
-
type:
|
|
4906
|
+
var DTODocumentationGroupDeleteActionInputV2 = z174.object({
|
|
4907
|
+
type: z174.literal("DocumentationGroupDelete"),
|
|
4819
4908
|
input: DTODeleteDocumentationGroupInput
|
|
4820
4909
|
});
|
|
4821
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
4822
|
-
type:
|
|
4910
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z174.object({
|
|
4911
|
+
type: z174.literal("DocumentationTabGroupDelete"),
|
|
4823
4912
|
input: DTODeleteDocumentationTabGroupInput
|
|
4824
4913
|
});
|
|
4825
4914
|
|
|
4826
4915
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
4827
|
-
import { z as
|
|
4916
|
+
import { z as z176 } from "zod";
|
|
4828
4917
|
|
|
4829
4918
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
4830
|
-
import { z as
|
|
4831
|
-
var DocumentationColorV1 =
|
|
4832
|
-
aliasTo:
|
|
4833
|
-
value:
|
|
4919
|
+
import { z as z175 } from "zod";
|
|
4920
|
+
var DocumentationColorV1 = z175.object({
|
|
4921
|
+
aliasTo: z175.string().optional(),
|
|
4922
|
+
value: z175.string().optional()
|
|
4834
4923
|
});
|
|
4835
4924
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
4836
4925
|
foregroundColor: true,
|
|
@@ -4839,10 +4928,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
4839
4928
|
foregroundColor: DocumentationColorV1.optional(),
|
|
4840
4929
|
backgroundColor: DocumentationColorV1.optional()
|
|
4841
4930
|
});
|
|
4842
|
-
var DTODocumentationItemConfigurationV1 =
|
|
4843
|
-
showSidebar:
|
|
4844
|
-
isPrivate:
|
|
4845
|
-
isHidden:
|
|
4931
|
+
var DTODocumentationItemConfigurationV1 = z175.object({
|
|
4932
|
+
showSidebar: z175.boolean(),
|
|
4933
|
+
isPrivate: z175.boolean(),
|
|
4934
|
+
isHidden: z175.boolean(),
|
|
4846
4935
|
header: DTODocumentationItemHeaderV1
|
|
4847
4936
|
});
|
|
4848
4937
|
|
|
@@ -4856,130 +4945,130 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
4856
4945
|
data: true,
|
|
4857
4946
|
shortPersistentId: true
|
|
4858
4947
|
}).extend({
|
|
4859
|
-
title:
|
|
4860
|
-
isRoot:
|
|
4861
|
-
childrenIds:
|
|
4948
|
+
title: z176.string(),
|
|
4949
|
+
isRoot: z176.boolean(),
|
|
4950
|
+
childrenIds: z176.array(z176.string()),
|
|
4862
4951
|
groupBehavior: DocumentationGroupBehavior,
|
|
4863
|
-
shortPersistentId:
|
|
4864
|
-
type:
|
|
4952
|
+
shortPersistentId: z176.string(),
|
|
4953
|
+
type: z176.literal("Group")
|
|
4865
4954
|
});
|
|
4866
4955
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
4867
4956
|
configuration: DTODocumentationItemConfigurationV1
|
|
4868
4957
|
});
|
|
4869
4958
|
|
|
4870
4959
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
4871
|
-
import { z as
|
|
4960
|
+
import { z as z178 } from "zod";
|
|
4872
4961
|
|
|
4873
4962
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
4874
|
-
import { z as
|
|
4963
|
+
import { z as z177 } from "zod";
|
|
4875
4964
|
var DTODocumentationPageV2 = DocumentationPageV2.omit({
|
|
4876
4965
|
data: true,
|
|
4877
4966
|
meta: true,
|
|
4878
4967
|
parentPersistentId: true,
|
|
4879
4968
|
sortOrder: true
|
|
4880
4969
|
}).extend({
|
|
4881
|
-
title:
|
|
4882
|
-
path:
|
|
4883
|
-
type:
|
|
4970
|
+
title: z177.string(),
|
|
4971
|
+
path: z177.string(),
|
|
4972
|
+
type: z177.literal("Page"),
|
|
4884
4973
|
configuration: DTODocumentationItemConfigurationV2
|
|
4885
4974
|
});
|
|
4886
4975
|
var DTODocumentationPageStructureV2 = DTODocumentationPageV2;
|
|
4887
|
-
var DTODocumentationHierarchyV2 =
|
|
4888
|
-
pages:
|
|
4889
|
-
groups:
|
|
4976
|
+
var DTODocumentationHierarchyV2 = z177.object({
|
|
4977
|
+
pages: z177.array(DTODocumentationPageStructureV2),
|
|
4978
|
+
groups: z177.array(DTODocumentationGroupStructureV2)
|
|
4890
4979
|
});
|
|
4891
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
4980
|
+
var DTOCreateDocumentationPageInputV2 = z177.object({
|
|
4892
4981
|
// Identifier
|
|
4893
|
-
persistentId:
|
|
4982
|
+
persistentId: z177.string().uuid(),
|
|
4894
4983
|
// Page properties
|
|
4895
|
-
title:
|
|
4984
|
+
title: z177.string(),
|
|
4896
4985
|
configuration: DTODocumentationItemConfigurationV2.optional(),
|
|
4897
4986
|
// Page placement properties
|
|
4898
|
-
parentPersistentId:
|
|
4899
|
-
afterPersistentId:
|
|
4987
|
+
parentPersistentId: z177.string().uuid(),
|
|
4988
|
+
afterPersistentId: z177.string().uuid().nullish()
|
|
4900
4989
|
});
|
|
4901
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
4990
|
+
var DTOUpdateDocumentationPageInputV2 = z177.object({
|
|
4902
4991
|
// Identifier of the group to update
|
|
4903
|
-
id:
|
|
4992
|
+
id: z177.string(),
|
|
4904
4993
|
// Page properties
|
|
4905
|
-
title:
|
|
4994
|
+
title: z177.string().optional(),
|
|
4906
4995
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
4907
4996
|
});
|
|
4908
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
4997
|
+
var DTOMoveDocumentationPageInputV2 = z177.object({
|
|
4909
4998
|
// Identifier of the group to update
|
|
4910
|
-
id:
|
|
4999
|
+
id: z177.string(),
|
|
4911
5000
|
// Page placement properties
|
|
4912
|
-
parentPersistentId:
|
|
4913
|
-
afterPersistentId:
|
|
5001
|
+
parentPersistentId: z177.string().uuid(),
|
|
5002
|
+
afterPersistentId: z177.string().uuid().nullish()
|
|
4914
5003
|
});
|
|
4915
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5004
|
+
var DTODuplicateDocumentationPageInputV2 = z177.object({
|
|
4916
5005
|
// Identifier of the page to duplicate from
|
|
4917
|
-
id:
|
|
5006
|
+
id: z177.string(),
|
|
4918
5007
|
// New page persistent id
|
|
4919
|
-
persistentId:
|
|
5008
|
+
persistentId: z177.string().uuid(),
|
|
4920
5009
|
// Page placement properties
|
|
4921
|
-
parentPersistentId:
|
|
4922
|
-
afterPersistentId:
|
|
5010
|
+
parentPersistentId: z177.string().uuid(),
|
|
5011
|
+
afterPersistentId: z177.string().uuid().nullish()
|
|
4923
5012
|
});
|
|
4924
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5013
|
+
var DTODeleteDocumentationPageInputV2 = z177.object({
|
|
4925
5014
|
// Identifier
|
|
4926
|
-
id:
|
|
5015
|
+
id: z177.string()
|
|
4927
5016
|
});
|
|
4928
5017
|
|
|
4929
5018
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
4930
|
-
var SuccessPayload2 =
|
|
4931
|
-
success:
|
|
5019
|
+
var SuccessPayload2 = z178.object({
|
|
5020
|
+
success: z178.literal(true)
|
|
4932
5021
|
});
|
|
4933
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
4934
|
-
type:
|
|
5022
|
+
var DTODocumentationPageCreateActionOutputV2 = z178.object({
|
|
5023
|
+
type: z178.literal("DocumentationPageCreate"),
|
|
4935
5024
|
output: SuccessPayload2
|
|
4936
5025
|
});
|
|
4937
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
4938
|
-
type:
|
|
5026
|
+
var DTODocumentationPageUpdateActionOutputV2 = z178.object({
|
|
5027
|
+
type: z178.literal("DocumentationPageUpdate"),
|
|
4939
5028
|
output: SuccessPayload2
|
|
4940
5029
|
});
|
|
4941
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
4942
|
-
type:
|
|
5030
|
+
var DTODocumentationPageMoveActionOutputV2 = z178.object({
|
|
5031
|
+
type: z178.literal("DocumentationPageMove"),
|
|
4943
5032
|
output: SuccessPayload2
|
|
4944
5033
|
});
|
|
4945
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
4946
|
-
type:
|
|
5034
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z178.object({
|
|
5035
|
+
type: z178.literal("DocumentationPageDuplicate"),
|
|
4947
5036
|
output: SuccessPayload2
|
|
4948
5037
|
});
|
|
4949
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
4950
|
-
type:
|
|
5038
|
+
var DTODocumentationPageDeleteActionOutputV2 = z178.object({
|
|
5039
|
+
type: z178.literal("DocumentationPageDelete"),
|
|
4951
5040
|
output: SuccessPayload2
|
|
4952
5041
|
});
|
|
4953
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
4954
|
-
type:
|
|
5042
|
+
var DTODocumentationPageCreateActionInputV2 = z178.object({
|
|
5043
|
+
type: z178.literal("DocumentationPageCreate"),
|
|
4955
5044
|
input: DTOCreateDocumentationPageInputV2
|
|
4956
5045
|
});
|
|
4957
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
4958
|
-
type:
|
|
5046
|
+
var DTODocumentationPageUpdateActionInputV2 = z178.object({
|
|
5047
|
+
type: z178.literal("DocumentationPageUpdate"),
|
|
4959
5048
|
input: DTOUpdateDocumentationPageInputV2
|
|
4960
5049
|
});
|
|
4961
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
4962
|
-
type:
|
|
5050
|
+
var DTODocumentationPageMoveActionInputV2 = z178.object({
|
|
5051
|
+
type: z178.literal("DocumentationPageMove"),
|
|
4963
5052
|
input: DTOMoveDocumentationPageInputV2
|
|
4964
5053
|
});
|
|
4965
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
4966
|
-
type:
|
|
5054
|
+
var DTODocumentationPageDuplicateActionInputV2 = z178.object({
|
|
5055
|
+
type: z178.literal("DocumentationPageDuplicate"),
|
|
4967
5056
|
input: DTODuplicateDocumentationPageInputV2
|
|
4968
5057
|
});
|
|
4969
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
4970
|
-
type:
|
|
5058
|
+
var DTODocumentationPageDeleteActionInputV2 = z178.object({
|
|
5059
|
+
type: z178.literal("DocumentationPageDelete"),
|
|
4971
5060
|
input: DTODeleteDocumentationPageInputV2
|
|
4972
5061
|
});
|
|
4973
5062
|
|
|
4974
5063
|
// src/api/dto/elements/documentation/page-content.ts
|
|
4975
|
-
import { z as
|
|
5064
|
+
import { z as z179 } from "zod";
|
|
4976
5065
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
4977
|
-
var DTODocumentationPageContentGetResponse =
|
|
5066
|
+
var DTODocumentationPageContentGetResponse = z179.object({
|
|
4978
5067
|
pageContent: DTODocumentationPageContent
|
|
4979
5068
|
});
|
|
4980
5069
|
|
|
4981
5070
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
4982
|
-
import { z as
|
|
5071
|
+
import { z as z180 } from "zod";
|
|
4983
5072
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
4984
5073
|
data: true,
|
|
4985
5074
|
meta: true,
|
|
@@ -4987,30 +5076,30 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
4987
5076
|
sortOrder: true
|
|
4988
5077
|
}).extend({
|
|
4989
5078
|
configuration: DTODocumentationItemConfigurationV1,
|
|
4990
|
-
blocks:
|
|
4991
|
-
title:
|
|
4992
|
-
path:
|
|
5079
|
+
blocks: z180.array(PageBlockV1),
|
|
5080
|
+
title: z180.string(),
|
|
5081
|
+
path: z180.string()
|
|
4993
5082
|
});
|
|
4994
5083
|
|
|
4995
5084
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
4996
|
-
import { z as
|
|
4997
|
-
var DTOFigmaNodeOrigin =
|
|
4998
|
-
sourceId:
|
|
4999
|
-
fileId:
|
|
5000
|
-
parentName:
|
|
5085
|
+
import { z as z181 } from "zod";
|
|
5086
|
+
var DTOFigmaNodeOrigin = z181.object({
|
|
5087
|
+
sourceId: z181.string(),
|
|
5088
|
+
fileId: z181.string().optional(),
|
|
5089
|
+
parentName: z181.string().optional()
|
|
5001
5090
|
});
|
|
5002
|
-
var DTOFigmaNodeData =
|
|
5091
|
+
var DTOFigmaNodeData = z181.object({
|
|
5003
5092
|
// Id of the node in the Figma file
|
|
5004
|
-
figmaNodeId:
|
|
5093
|
+
figmaNodeId: z181.string(),
|
|
5005
5094
|
// Validity
|
|
5006
|
-
isValid:
|
|
5095
|
+
isValid: z181.boolean(),
|
|
5007
5096
|
// Asset data
|
|
5008
|
-
assetId:
|
|
5009
|
-
assetUrl:
|
|
5097
|
+
assetId: z181.string(),
|
|
5098
|
+
assetUrl: z181.string(),
|
|
5010
5099
|
// Asset metadata
|
|
5011
|
-
assetScale:
|
|
5012
|
-
assetWidth:
|
|
5013
|
-
assetHeight:
|
|
5100
|
+
assetScale: z181.number(),
|
|
5101
|
+
assetWidth: z181.number().optional(),
|
|
5102
|
+
assetHeight: z181.number().optional()
|
|
5014
5103
|
});
|
|
5015
5104
|
var DTOFigmaNode = FigmaFileStructure.omit({
|
|
5016
5105
|
data: true,
|
|
@@ -5019,105 +5108,105 @@ var DTOFigmaNode = FigmaFileStructure.omit({
|
|
|
5019
5108
|
data: DTOFigmaNodeData,
|
|
5020
5109
|
origin: DTOFigmaNodeOrigin
|
|
5021
5110
|
});
|
|
5022
|
-
var DTOFigmaNodeRenderInput =
|
|
5111
|
+
var DTOFigmaNodeRenderInput = z181.object({
|
|
5023
5112
|
// Id of a design system's data source representing a linked Figma file
|
|
5024
|
-
sourceId:
|
|
5113
|
+
sourceId: z181.string(),
|
|
5025
5114
|
// Id of a node within the Figma file
|
|
5026
|
-
figmaFileNodeId:
|
|
5115
|
+
figmaFileNodeId: z181.string()
|
|
5027
5116
|
});
|
|
5028
5117
|
|
|
5029
5118
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
5030
|
-
import { z as
|
|
5031
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
5032
|
-
type:
|
|
5033
|
-
figmaNodes:
|
|
5119
|
+
import { z as z182 } from "zod";
|
|
5120
|
+
var DTOFigmaNodeRenderActionOutput = z182.object({
|
|
5121
|
+
type: z182.literal("FigmaNodeRender"),
|
|
5122
|
+
figmaNodes: z182.array(DTOFigmaNode)
|
|
5034
5123
|
});
|
|
5035
|
-
var DTOFigmaNodeRenderActionInput =
|
|
5036
|
-
type:
|
|
5124
|
+
var DTOFigmaNodeRenderActionInput = z182.object({
|
|
5125
|
+
type: z182.literal("FigmaNodeRender"),
|
|
5037
5126
|
input: DTOFigmaNodeRenderInput.array()
|
|
5038
5127
|
});
|
|
5039
5128
|
|
|
5040
5129
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
5041
|
-
import { z as
|
|
5130
|
+
import { z as z184 } from "zod";
|
|
5042
5131
|
|
|
5043
5132
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
5044
|
-
import { z as
|
|
5133
|
+
import { z as z183 } from "zod";
|
|
5045
5134
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
5046
|
-
var DTOElementPropertyDefinition =
|
|
5047
|
-
id:
|
|
5048
|
-
designSystemVersionId:
|
|
5135
|
+
var DTOElementPropertyDefinition = z183.object({
|
|
5136
|
+
id: z183.string(),
|
|
5137
|
+
designSystemVersionId: z183.string(),
|
|
5049
5138
|
meta: ObjectMeta,
|
|
5050
|
-
persistentId:
|
|
5139
|
+
persistentId: z183.string(),
|
|
5051
5140
|
type: ElementPropertyTypeSchema,
|
|
5052
5141
|
targetElementType: ElementPropertyTargetType,
|
|
5053
|
-
codeName:
|
|
5054
|
-
options:
|
|
5142
|
+
codeName: z183.string().regex(CODE_NAME_REGEX2),
|
|
5143
|
+
options: z183.array(ElementPropertyDefinitionOption).optional(),
|
|
5055
5144
|
linkElementType: ElementPropertyLinkType.optional()
|
|
5056
5145
|
});
|
|
5057
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
5058
|
-
definitions:
|
|
5146
|
+
var DTOElementPropertyDefinitionsGetResponse = z183.object({
|
|
5147
|
+
definitions: z183.array(DTOElementPropertyDefinition)
|
|
5059
5148
|
});
|
|
5060
5149
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
5061
5150
|
id: true,
|
|
5062
5151
|
designSystemVersionId: true
|
|
5063
5152
|
});
|
|
5064
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
5065
|
-
id:
|
|
5066
|
-
name:
|
|
5067
|
-
description:
|
|
5068
|
-
codeName:
|
|
5069
|
-
options:
|
|
5153
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z183.object({
|
|
5154
|
+
id: z183.string(),
|
|
5155
|
+
name: z183.string().optional(),
|
|
5156
|
+
description: z183.string().optional(),
|
|
5157
|
+
codeName: z183.string().regex(CODE_NAME_REGEX2).optional(),
|
|
5158
|
+
options: z183.array(ElementPropertyDefinitionOption).optional()
|
|
5070
5159
|
});
|
|
5071
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
5072
|
-
id:
|
|
5160
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z183.object({
|
|
5161
|
+
id: z183.string()
|
|
5073
5162
|
});
|
|
5074
5163
|
|
|
5075
5164
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
5076
|
-
var SuccessPayload3 =
|
|
5077
|
-
success:
|
|
5165
|
+
var SuccessPayload3 = z184.object({
|
|
5166
|
+
success: z184.literal(true)
|
|
5078
5167
|
});
|
|
5079
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
5080
|
-
type:
|
|
5168
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z184.object({
|
|
5169
|
+
type: z184.literal("PropertyDefinitionCreate"),
|
|
5081
5170
|
definition: DTOElementPropertyDefinition
|
|
5082
5171
|
});
|
|
5083
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
5084
|
-
type:
|
|
5172
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z184.object({
|
|
5173
|
+
type: z184.literal("PropertyDefinitionUpdate"),
|
|
5085
5174
|
definition: DTOElementPropertyDefinition
|
|
5086
5175
|
});
|
|
5087
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
5088
|
-
type:
|
|
5176
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z184.object({
|
|
5177
|
+
type: z184.literal("PropertyDefinitionDelete"),
|
|
5089
5178
|
output: SuccessPayload3
|
|
5090
5179
|
});
|
|
5091
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
5092
|
-
type:
|
|
5180
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z184.object({
|
|
5181
|
+
type: z184.literal("PropertyDefinitionCreate"),
|
|
5093
5182
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
5094
5183
|
});
|
|
5095
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
5096
|
-
type:
|
|
5184
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z184.object({
|
|
5185
|
+
type: z184.literal("PropertyDefinitionUpdate"),
|
|
5097
5186
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
5098
5187
|
});
|
|
5099
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
5100
|
-
type:
|
|
5188
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z184.object({
|
|
5189
|
+
type: z184.literal("PropertyDefinitionDelete"),
|
|
5101
5190
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
5102
5191
|
});
|
|
5103
5192
|
|
|
5104
5193
|
// src/api/dto/elements/properties/property-values.ts
|
|
5105
|
-
import { z as
|
|
5106
|
-
var DTOElementPropertyValue =
|
|
5107
|
-
id:
|
|
5108
|
-
designSystemVersionId:
|
|
5109
|
-
definitionId:
|
|
5110
|
-
targetElementId:
|
|
5111
|
-
value:
|
|
5112
|
-
valuePreview:
|
|
5194
|
+
import { z as z185 } from "zod";
|
|
5195
|
+
var DTOElementPropertyValue = z185.object({
|
|
5196
|
+
id: z185.string(),
|
|
5197
|
+
designSystemVersionId: z185.string(),
|
|
5198
|
+
definitionId: z185.string(),
|
|
5199
|
+
targetElementId: z185.string(),
|
|
5200
|
+
value: z185.union([z185.string(), z185.number(), z185.boolean()]).optional(),
|
|
5201
|
+
valuePreview: z185.string().optional()
|
|
5113
5202
|
});
|
|
5114
|
-
var DTOElementPropertyValuesGetResponse =
|
|
5115
|
-
values:
|
|
5203
|
+
var DTOElementPropertyValuesGetResponse = z185.object({
|
|
5204
|
+
values: z185.array(DTOElementPropertyValue)
|
|
5116
5205
|
});
|
|
5117
5206
|
|
|
5118
5207
|
// src/api/dto/elements/elements-action-v2.ts
|
|
5119
|
-
import { z as
|
|
5120
|
-
var DTOElementActionOutput =
|
|
5208
|
+
import { z as z186 } from "zod";
|
|
5209
|
+
var DTOElementActionOutput = z186.discriminatedUnion("type", [
|
|
5121
5210
|
// Documentation pages
|
|
5122
5211
|
DTODocumentationPageCreateActionOutputV2,
|
|
5123
5212
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -5139,7 +5228,7 @@ var DTOElementActionOutput = z185.discriminatedUnion("type", [
|
|
|
5139
5228
|
DTOPropertyDefinitionUpdateActionOutputV2,
|
|
5140
5229
|
DTOPropertyDefinitionDeleteActionOutputV2
|
|
5141
5230
|
]);
|
|
5142
|
-
var DTOElementActionInput =
|
|
5231
|
+
var DTOElementActionInput = z186.discriminatedUnion("type", [
|
|
5143
5232
|
// Documentation pages
|
|
5144
5233
|
DTODocumentationPageCreateActionInputV2,
|
|
5145
5234
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -5163,152 +5252,207 @@ var DTOElementActionInput = z185.discriminatedUnion("type", [
|
|
|
5163
5252
|
]);
|
|
5164
5253
|
|
|
5165
5254
|
// src/api/dto/elements/get-elements-v2.ts
|
|
5166
|
-
import { z as
|
|
5167
|
-
var DTOElementsGetTypeFilter =
|
|
5168
|
-
var DTOElementsGetQuerySchema =
|
|
5169
|
-
types:
|
|
5255
|
+
import { z as z187 } from "zod";
|
|
5256
|
+
var DTOElementsGetTypeFilter = z187.enum(["FigmaNode"]);
|
|
5257
|
+
var DTOElementsGetQuerySchema = z187.object({
|
|
5258
|
+
types: z187.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
5170
5259
|
});
|
|
5171
|
-
var DTOElementsGetOutput =
|
|
5172
|
-
figmaNodes:
|
|
5260
|
+
var DTOElementsGetOutput = z187.object({
|
|
5261
|
+
figmaNodes: z187.array(DTOFigmaNode).optional()
|
|
5262
|
+
});
|
|
5263
|
+
|
|
5264
|
+
// src/api/dto/export/exporter.ts
|
|
5265
|
+
import { z as z188 } from "zod";
|
|
5266
|
+
var DTOExporterType = z188.enum(["documentation", "code"]);
|
|
5267
|
+
var DTOExporterSource = z188.enum(["git", "upload"]);
|
|
5268
|
+
var DTOExporterMembershipRole = z188.enum(["Owner", "OwnerArchived", "User"]);
|
|
5269
|
+
var DTOExporter = z188.object({
|
|
5270
|
+
id: z188.string(),
|
|
5271
|
+
name: z188.string(),
|
|
5272
|
+
isPrivate: z188.boolean(),
|
|
5273
|
+
exporterType: DTOExporterType,
|
|
5274
|
+
isDefaultDocumentationExporter: z188.boolean(),
|
|
5275
|
+
iconURL: z188.string().optional(),
|
|
5276
|
+
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5277
|
+
customBlocks: PulsarCustomBlock.array(),
|
|
5278
|
+
blockVariants: PulsarContributionVariant.array(),
|
|
5279
|
+
usesBrands: z188.boolean(),
|
|
5280
|
+
usesThemes: z188.boolean(),
|
|
5281
|
+
source: DTOExporterSource,
|
|
5282
|
+
gitUrl: z188.string().optional(),
|
|
5283
|
+
gitBranch: z188.string().optional(),
|
|
5284
|
+
gitDirectory: z188.string().optional()
|
|
5285
|
+
});
|
|
5286
|
+
var DTOExporterMembership = z188.object({
|
|
5287
|
+
workspaceId: z188.string(),
|
|
5288
|
+
exporterId: z188.string(),
|
|
5289
|
+
role: DTOExporterMembershipRole
|
|
5290
|
+
});
|
|
5291
|
+
var DTOExporterCreateOutput = z188.object({
|
|
5292
|
+
exporter: DTOExporter,
|
|
5293
|
+
membership: DTOExporterMembership
|
|
5294
|
+
});
|
|
5295
|
+
var DTOExporterGitProviderEnum = z188.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5296
|
+
var DTOExporterCreateInput = z188.object({
|
|
5297
|
+
url: z188.string(),
|
|
5298
|
+
provider: DTOExporterGitProviderEnum.optional()
|
|
5173
5299
|
});
|
|
5174
5300
|
|
|
5175
5301
|
// src/api/dto/export/job.ts
|
|
5176
|
-
import { z as
|
|
5177
|
-
var DTOExportJobCreatedBy =
|
|
5178
|
-
userId:
|
|
5179
|
-
userName:
|
|
5302
|
+
import { z as z189 } from "zod";
|
|
5303
|
+
var DTOExportJobCreatedBy = z189.object({
|
|
5304
|
+
userId: z189.string(),
|
|
5305
|
+
userName: z189.string()
|
|
5180
5306
|
});
|
|
5181
|
-
var DTOExportJobDesignSystemPreview =
|
|
5182
|
-
id:
|
|
5307
|
+
var DTOExportJobDesignSystemPreview = z189.object({
|
|
5308
|
+
id: z189.string(),
|
|
5183
5309
|
meta: ObjectMeta
|
|
5184
5310
|
});
|
|
5185
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5186
|
-
id:
|
|
5311
|
+
var DTOExportJobDesignSystemVersionPreview = z189.object({
|
|
5312
|
+
id: z189.string(),
|
|
5187
5313
|
meta: ObjectMeta,
|
|
5188
|
-
version:
|
|
5189
|
-
isReadonly:
|
|
5314
|
+
version: z189.string(),
|
|
5315
|
+
isReadonly: z189.boolean()
|
|
5190
5316
|
});
|
|
5191
|
-
var DTOExportJobDestinations =
|
|
5317
|
+
var DTOExportJobDestinations = z189.object({
|
|
5192
5318
|
s3: ExporterDestinationS3.optional(),
|
|
5193
5319
|
azure: ExporterDestinationAzure.optional(),
|
|
5194
5320
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5195
5321
|
github: ExporterDestinationGithub.optional(),
|
|
5196
5322
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5197
5323
|
documentation: ExporterDestinationDocs.optional(),
|
|
5198
|
-
webhookUrl:
|
|
5324
|
+
webhookUrl: z189.string().optional()
|
|
5199
5325
|
});
|
|
5200
|
-
var DTOExportJob =
|
|
5201
|
-
id:
|
|
5202
|
-
createdAt:
|
|
5203
|
-
finishedAt:
|
|
5204
|
-
index:
|
|
5326
|
+
var DTOExportJob = z189.object({
|
|
5327
|
+
id: z189.string(),
|
|
5328
|
+
createdAt: z189.date(),
|
|
5329
|
+
finishedAt: z189.date().optional(),
|
|
5330
|
+
index: z189.number().optional(),
|
|
5205
5331
|
status: ExportJobStatus,
|
|
5206
|
-
estimatedExecutionTime:
|
|
5207
|
-
createdBy: DTOExportJobCreatedBy,
|
|
5332
|
+
estimatedExecutionTime: z189.number().optional(),
|
|
5333
|
+
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5208
5334
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5209
5335
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5210
5336
|
destinations: DTOExportJobDestinations,
|
|
5211
|
-
exporterId:
|
|
5212
|
-
scheduleId:
|
|
5337
|
+
exporterId: z189.string(),
|
|
5338
|
+
scheduleId: z189.string().optional(),
|
|
5213
5339
|
result: ExportJobResult.optional()
|
|
5214
5340
|
});
|
|
5341
|
+
var DTOExportJobResponse = z189.object({
|
|
5342
|
+
job: DTOExportJob
|
|
5343
|
+
});
|
|
5344
|
+
|
|
5345
|
+
// src/api/dto/export/pipeline.ts
|
|
5346
|
+
import { z as z190 } from "zod";
|
|
5347
|
+
var DTOPipeline = z190.object({
|
|
5348
|
+
id: z190.string(),
|
|
5349
|
+
name: z190.string(),
|
|
5350
|
+
eventType: PipelineEventType,
|
|
5351
|
+
isEnabled: z190.boolean(),
|
|
5352
|
+
workspaceId: z190.string(),
|
|
5353
|
+
designSystemId: z190.string(),
|
|
5354
|
+
exporterId: z190.string(),
|
|
5355
|
+
brandPersistentId: z190.string().optional(),
|
|
5356
|
+
themePersistentId: z190.string().optional(),
|
|
5357
|
+
...ExportDestinationsMap.shape
|
|
5358
|
+
});
|
|
5215
5359
|
|
|
5216
5360
|
// src/api/dto/liveblocks/auth-response.ts
|
|
5217
|
-
import { z as
|
|
5218
|
-
var DTOLiveblocksAuthResponse =
|
|
5219
|
-
token:
|
|
5361
|
+
import { z as z191 } from "zod";
|
|
5362
|
+
var DTOLiveblocksAuthResponse = z191.object({
|
|
5363
|
+
token: z191.string()
|
|
5220
5364
|
});
|
|
5221
5365
|
|
|
5222
5366
|
// src/api/dto/users/profile/update.ts
|
|
5223
|
-
import { z as
|
|
5224
|
-
var DTOUserProfileUpdateResponse =
|
|
5367
|
+
import { z as z192 } from "zod";
|
|
5368
|
+
var DTOUserProfileUpdateResponse = z192.object({
|
|
5225
5369
|
user: User
|
|
5226
5370
|
});
|
|
5227
5371
|
|
|
5228
5372
|
// src/api/dto/workspaces/git.ts
|
|
5229
|
-
import { z as
|
|
5230
|
-
var DTOGitOrganization =
|
|
5231
|
-
id:
|
|
5232
|
-
name:
|
|
5233
|
-
url:
|
|
5373
|
+
import { z as z193 } from "zod";
|
|
5374
|
+
var DTOGitOrganization = z193.object({
|
|
5375
|
+
id: z193.string(),
|
|
5376
|
+
name: z193.string(),
|
|
5377
|
+
url: z193.string()
|
|
5234
5378
|
});
|
|
5235
|
-
var DTOGitProject =
|
|
5236
|
-
id:
|
|
5237
|
-
name:
|
|
5238
|
-
url:
|
|
5379
|
+
var DTOGitProject = z193.object({
|
|
5380
|
+
id: z193.string(),
|
|
5381
|
+
name: z193.string(),
|
|
5382
|
+
url: z193.string()
|
|
5239
5383
|
});
|
|
5240
|
-
var DTOGitRepository =
|
|
5241
|
-
id:
|
|
5242
|
-
name:
|
|
5243
|
-
url:
|
|
5244
|
-
defaultBranch:
|
|
5384
|
+
var DTOGitRepository = z193.object({
|
|
5385
|
+
id: z193.string(),
|
|
5386
|
+
name: z193.string(),
|
|
5387
|
+
url: z193.string(),
|
|
5388
|
+
defaultBranch: z193.string()
|
|
5245
5389
|
});
|
|
5246
|
-
var DTOGitBranch =
|
|
5247
|
-
name:
|
|
5248
|
-
lastCommitId:
|
|
5390
|
+
var DTOGitBranch = z193.object({
|
|
5391
|
+
name: z193.string(),
|
|
5392
|
+
lastCommitId: z193.string()
|
|
5249
5393
|
});
|
|
5250
5394
|
|
|
5251
5395
|
// src/api/dto/workspaces/integrations.ts
|
|
5252
|
-
import { z as
|
|
5253
|
-
var DTOIntegration =
|
|
5254
|
-
id:
|
|
5255
|
-
workspaceId:
|
|
5396
|
+
import { z as z194 } from "zod";
|
|
5397
|
+
var DTOIntegration = z194.object({
|
|
5398
|
+
id: z194.string(),
|
|
5399
|
+
workspaceId: z194.string(),
|
|
5256
5400
|
type: ExtendedIntegrationType,
|
|
5257
|
-
createdAt:
|
|
5258
|
-
integrationCredentials:
|
|
5259
|
-
integrationDesignSystems:
|
|
5401
|
+
createdAt: z194.coerce.date(),
|
|
5402
|
+
integrationCredentials: z194.array(IntegrationCredentials).optional(),
|
|
5403
|
+
integrationDesignSystems: z194.array(IntegrationDesignSystem).optional()
|
|
5260
5404
|
});
|
|
5261
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5262
|
-
url:
|
|
5405
|
+
var DTOIntegrationOAuthGetResponse = z194.object({
|
|
5406
|
+
url: z194.string()
|
|
5263
5407
|
});
|
|
5264
|
-
var DTOIntegrationPostResponse =
|
|
5408
|
+
var DTOIntegrationPostResponse = z194.object({
|
|
5265
5409
|
integration: DTOIntegration
|
|
5266
5410
|
});
|
|
5267
|
-
var DTOIntegrationsGetListResponse =
|
|
5411
|
+
var DTOIntegrationsGetListResponse = z194.object({
|
|
5268
5412
|
integrations: DTOIntegration.array()
|
|
5269
5413
|
});
|
|
5270
5414
|
|
|
5271
5415
|
// src/api/dto/workspaces/membership.ts
|
|
5272
|
-
import { z as
|
|
5416
|
+
import { z as z197 } from "zod";
|
|
5273
5417
|
|
|
5274
5418
|
// src/api/dto/workspaces/workspace.ts
|
|
5275
|
-
import { z as
|
|
5419
|
+
import { z as z196 } from "zod";
|
|
5276
5420
|
|
|
5277
5421
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5278
|
-
import { z as
|
|
5422
|
+
import { z as z195 } from "zod";
|
|
5279
5423
|
var DTONpmRegistryConfigConstants = {
|
|
5280
5424
|
passwordPlaceholder: "redacted"
|
|
5281
5425
|
};
|
|
5282
|
-
var DTONpmRegistryConfig =
|
|
5426
|
+
var DTONpmRegistryConfig = z195.object({
|
|
5283
5427
|
// Registry basic configuration
|
|
5284
5428
|
registryType: NpmRegistryType,
|
|
5285
|
-
registryUrl:
|
|
5286
|
-
customRegistryUrl:
|
|
5429
|
+
registryUrl: z195.string(),
|
|
5430
|
+
customRegistryUrl: z195.string().optional(),
|
|
5287
5431
|
// URL of Supernova NPM packages proxy
|
|
5288
|
-
proxyUrl:
|
|
5432
|
+
proxyUrl: z195.string(),
|
|
5289
5433
|
// Auth configuration
|
|
5290
5434
|
authType: NpmRegistryAuthType,
|
|
5291
|
-
accessToken:
|
|
5292
|
-
username:
|
|
5293
|
-
password:
|
|
5435
|
+
accessToken: z195.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5436
|
+
username: z195.string().optional(),
|
|
5437
|
+
password: z195.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5294
5438
|
// NPM package scopes for whih the proxy should be enabled
|
|
5295
|
-
enabledScopes:
|
|
5439
|
+
enabledScopes: z195.array(z195.string()),
|
|
5296
5440
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5297
5441
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5298
|
-
bypassProxy:
|
|
5442
|
+
bypassProxy: z195.boolean()
|
|
5299
5443
|
});
|
|
5300
5444
|
|
|
5301
5445
|
// src/api/dto/workspaces/workspace.ts
|
|
5302
|
-
var DTOWorkspace =
|
|
5303
|
-
id:
|
|
5446
|
+
var DTOWorkspace = z196.object({
|
|
5447
|
+
id: z196.string(),
|
|
5304
5448
|
profile: WorkspaceProfile,
|
|
5305
5449
|
subscription: Subscription,
|
|
5306
5450
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5307
5451
|
});
|
|
5308
5452
|
|
|
5309
5453
|
// src/api/dto/workspaces/membership.ts
|
|
5310
|
-
var DTOWorkspaceRole =
|
|
5311
|
-
var DTOUserWorkspaceMembership =
|
|
5454
|
+
var DTOWorkspaceRole = z197.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
|
|
5455
|
+
var DTOUserWorkspaceMembership = z197.object({
|
|
5312
5456
|
// Workspace the user is a member of
|
|
5313
5457
|
workspace: DTOWorkspace,
|
|
5314
5458
|
// Assigned role the user has in the workspace
|
|
@@ -5318,14 +5462,14 @@ var DTOUserWorkspaceMembership = z194.object({
|
|
|
5318
5462
|
// when a workspace's subscription is downgraded to free tier
|
|
5319
5463
|
effectiveRole: DTOWorkspaceRole
|
|
5320
5464
|
});
|
|
5321
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5322
|
-
membership:
|
|
5465
|
+
var DTOUserWorkspaceMembershipsResponse = z197.object({
|
|
5466
|
+
membership: z197.array(DTOUserWorkspaceMembership)
|
|
5323
5467
|
});
|
|
5324
5468
|
|
|
5325
5469
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
5326
|
-
import { z as
|
|
5327
|
-
var DocumentationHierarchySettings =
|
|
5328
|
-
routingVersion:
|
|
5470
|
+
import { z as z198 } from "zod";
|
|
5471
|
+
var DocumentationHierarchySettings = z198.object({
|
|
5472
|
+
routingVersion: z198.string()
|
|
5329
5473
|
});
|
|
5330
5474
|
function documentationHierarchyToYjs(doc, transaction) {
|
|
5331
5475
|
doc.transact((trx) => {
|
|
@@ -5396,13 +5540,13 @@ function getInternalSettingsYMap(doc) {
|
|
|
5396
5540
|
}
|
|
5397
5541
|
|
|
5398
5542
|
// src/yjs/design-system-content/item-configuration.ts
|
|
5399
|
-
import { z as
|
|
5400
|
-
var DTODocumentationPageRoomHeaderData =
|
|
5401
|
-
title:
|
|
5543
|
+
import { z as z199 } from "zod";
|
|
5544
|
+
var DTODocumentationPageRoomHeaderData = z199.object({
|
|
5545
|
+
title: z199.string(),
|
|
5402
5546
|
configuration: DTODocumentationItemConfigurationV2
|
|
5403
5547
|
});
|
|
5404
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
5405
|
-
title:
|
|
5548
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z199.object({
|
|
5549
|
+
title: z199.string().optional(),
|
|
5406
5550
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
5407
5551
|
});
|
|
5408
5552
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -5453,7 +5597,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
5453
5597
|
header: rawHeader
|
|
5454
5598
|
};
|
|
5455
5599
|
return {
|
|
5456
|
-
title:
|
|
5600
|
+
title: z199.string().parse(title),
|
|
5457
5601
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
5458
5602
|
};
|
|
5459
5603
|
}
|
|
@@ -5463,9 +5607,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
5463
5607
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
5464
5608
|
|
|
5465
5609
|
// src/yjs/docs-editor/model/page.ts
|
|
5466
|
-
import { z as
|
|
5467
|
-
var DocumentationPageEditorModel =
|
|
5468
|
-
blocks:
|
|
5610
|
+
import { z as z200 } from "zod";
|
|
5611
|
+
var DocumentationPageEditorModel = z200.object({
|
|
5612
|
+
blocks: z200.array(PageBlockEditorModel.or(PageSectionEditorModel))
|
|
5469
5613
|
});
|
|
5470
5614
|
|
|
5471
5615
|
// src/yjs/docs-editor/prosemirror/schema.ts
|
|
@@ -8437,7 +8581,7 @@ var blocks = [
|
|
|
8437
8581
|
|
|
8438
8582
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
8439
8583
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
8440
|
-
import { z as
|
|
8584
|
+
import { z as z201 } from "zod";
|
|
8441
8585
|
function yDocToPage(yDoc, definitions) {
|
|
8442
8586
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
8443
8587
|
}
|
|
@@ -8480,7 +8624,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
8480
8624
|
return null;
|
|
8481
8625
|
return {
|
|
8482
8626
|
id,
|
|
8483
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
8627
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z201.string()) ?? "",
|
|
8484
8628
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
8485
8629
|
};
|
|
8486
8630
|
}
|
|
@@ -8515,7 +8659,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
8515
8659
|
});
|
|
8516
8660
|
}
|
|
8517
8661
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
8518
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
8662
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z201.string());
|
|
8519
8663
|
if (!definitionId) {
|
|
8520
8664
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
8521
8665
|
return [];
|
|
@@ -8557,7 +8701,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
8557
8701
|
if (!id)
|
|
8558
8702
|
return null;
|
|
8559
8703
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
8560
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
8704
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z201.string().optional()));
|
|
8561
8705
|
return {
|
|
8562
8706
|
// TODO Artem: indent
|
|
8563
8707
|
id,
|
|
@@ -8684,10 +8828,10 @@ function parseRichTextAttribute(mark) {
|
|
|
8684
8828
|
return null;
|
|
8685
8829
|
}
|
|
8686
8830
|
function parseProsemirrorLink(mark) {
|
|
8687
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
8831
|
+
const href = getProsemirrorAttribute(mark, "href", z201.string().optional());
|
|
8688
8832
|
if (!href)
|
|
8689
8833
|
return null;
|
|
8690
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
8834
|
+
const target = getProsemirrorAttribute(mark, "target", z201.string().optional());
|
|
8691
8835
|
const openInNewTab = target === "_blank";
|
|
8692
8836
|
if (href.startsWith("@")) {
|
|
8693
8837
|
return {
|
|
@@ -8710,7 +8854,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
8710
8854
|
if (!id)
|
|
8711
8855
|
return null;
|
|
8712
8856
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
8713
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
8857
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z201.boolean().optional()) !== false;
|
|
8714
8858
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
8715
8859
|
if (!tableChild) {
|
|
8716
8860
|
return emptyTable(id, variantId, 0);
|
|
@@ -8757,9 +8901,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
8757
8901
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
8758
8902
|
if (!id)
|
|
8759
8903
|
return null;
|
|
8760
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
8904
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z201.string().optional());
|
|
8761
8905
|
let columnWidth;
|
|
8762
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
8906
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z201.array(z201.number()).optional());
|
|
8763
8907
|
if (columnWidthArray) {
|
|
8764
8908
|
columnWidth = columnWidthArray[0];
|
|
8765
8909
|
}
|
|
@@ -8797,7 +8941,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
8797
8941
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
8798
8942
|
};
|
|
8799
8943
|
case "image":
|
|
8800
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
8944
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z201.string());
|
|
8801
8945
|
if (!items)
|
|
8802
8946
|
return null;
|
|
8803
8947
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -8902,7 +9046,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
|
|
|
8902
9046
|
};
|
|
8903
9047
|
}
|
|
8904
9048
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
8905
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
9049
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z201.string());
|
|
8906
9050
|
if (!itemsString)
|
|
8907
9051
|
return null;
|
|
8908
9052
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -8914,18 +9058,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
8914
9058
|
}
|
|
8915
9059
|
function parseAppearance(prosemirrorNode) {
|
|
8916
9060
|
let appearance = {};
|
|
8917
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
9061
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z201.string().optional());
|
|
8918
9062
|
if (rawAppearanceString) {
|
|
8919
9063
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
8920
9064
|
if (parsedAppearance.success) {
|
|
8921
9065
|
appearance = parsedAppearance.data;
|
|
8922
9066
|
}
|
|
8923
9067
|
}
|
|
8924
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
9068
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z201.number().optional());
|
|
8925
9069
|
if (columns) {
|
|
8926
9070
|
appearance.numberOfColumns = columns;
|
|
8927
9071
|
}
|
|
8928
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
9072
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z201.string().optional());
|
|
8929
9073
|
if (backgroundColor) {
|
|
8930
9074
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
8931
9075
|
if (parsedColor.success) {
|
|
@@ -9016,13 +9160,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
9016
9160
|
}
|
|
9017
9161
|
}
|
|
9018
9162
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
9019
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
9163
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z201.string());
|
|
9020
9164
|
if (!id)
|
|
9021
9165
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
9022
9166
|
return id;
|
|
9023
9167
|
}
|
|
9024
9168
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
9025
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
9169
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z201.string()));
|
|
9026
9170
|
}
|
|
9027
9171
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
9028
9172
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -9139,8 +9283,17 @@ export {
|
|
|
9139
9283
|
DTOExportJobDesignSystemPreview,
|
|
9140
9284
|
DTOExportJobDesignSystemVersionPreview,
|
|
9141
9285
|
DTOExportJobDestinations,
|
|
9286
|
+
DTOExportJobResponse,
|
|
9287
|
+
DTOExporter,
|
|
9288
|
+
DTOExporterCreateInput,
|
|
9289
|
+
DTOExporterCreateOutput,
|
|
9290
|
+
DTOExporterGitProviderEnum,
|
|
9291
|
+
DTOExporterMembership,
|
|
9292
|
+
DTOExporterMembershipRole,
|
|
9142
9293
|
DTOExporterProperty,
|
|
9143
9294
|
DTOExporterPropertyListResponse,
|
|
9295
|
+
DTOExporterSource,
|
|
9296
|
+
DTOExporterType,
|
|
9144
9297
|
DTOFigmaNode,
|
|
9145
9298
|
DTOFigmaNodeData,
|
|
9146
9299
|
DTOFigmaNodeOrigin,
|
|
@@ -9163,6 +9316,10 @@ export {
|
|
|
9163
9316
|
DTOMoveDocumentationPageInputV2,
|
|
9164
9317
|
DTONpmRegistryConfig,
|
|
9165
9318
|
DTONpmRegistryConfigConstants,
|
|
9319
|
+
DTOPipeline,
|
|
9320
|
+
DTOPipelineCreateBody,
|
|
9321
|
+
DTOPipelineTriggerBody,
|
|
9322
|
+
DTOPipelineUpdateBody,
|
|
9166
9323
|
DTOPropertyDefinitionCreateActionInputV2,
|
|
9167
9324
|
DTOPropertyDefinitionCreateActionOutputV2,
|
|
9168
9325
|
DTOPropertyDefinitionDeleteActionInputV2,
|
|
@@ -9224,6 +9381,7 @@ export {
|
|
|
9224
9381
|
itemConfigurationToYjs,
|
|
9225
9382
|
pageToProsemirrorDoc,
|
|
9226
9383
|
pageToYXmlFragment,
|
|
9384
|
+
pipelineToDto,
|
|
9227
9385
|
pmSchema,
|
|
9228
9386
|
prosemirrorDocToPage,
|
|
9229
9387
|
prosemirrorNodeToSection,
|