@supernova-studio/client 1.6.1 → 1.6.3
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 +4307 -1040
- package/dist/index.d.ts +4307 -1040
- package/dist/index.js +439 -223
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1302 -1086
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -683,13 +683,33 @@ var CodeComponent = z23.object({
|
|
|
683
683
|
componentPath: z23.string(),
|
|
684
684
|
description: z23.string(),
|
|
685
685
|
properties: z23.record(z23.string(), CodeComponentProperty),
|
|
686
|
-
tags: z23.record(z23.string(), z23.string()).
|
|
686
|
+
tags: z23.record(z23.string(), z23.string()).nullable()
|
|
687
687
|
});
|
|
688
688
|
var CodeComponentUpsertResponse = z23.object({
|
|
689
689
|
created: z23.number().nonnegative(),
|
|
690
690
|
updated: z23.number().nonnegative(),
|
|
691
691
|
deleted: z23.number().nonnegative()
|
|
692
692
|
});
|
|
693
|
+
var RegistryType = z23.enum(["Npm", "Github", "Artifactory", "Azure", "Custom"]);
|
|
694
|
+
var Registry = z23.object({
|
|
695
|
+
type: RegistryType,
|
|
696
|
+
url: z23.string().optional(),
|
|
697
|
+
accessToken: z23.string().optional(),
|
|
698
|
+
scope: z23.string(),
|
|
699
|
+
authConfig: z23.record(z23.string()).optional()
|
|
700
|
+
});
|
|
701
|
+
var DependencyDefinition = z23.object({
|
|
702
|
+
name: z23.string(),
|
|
703
|
+
version: z23.string().optional()
|
|
704
|
+
});
|
|
705
|
+
var AnalyzeCodeComponentsInPackage = z23.object({
|
|
706
|
+
designSystemId: z23.string(),
|
|
707
|
+
versionId: z23.string(),
|
|
708
|
+
mainPackage: DependencyDefinition,
|
|
709
|
+
dependencies: z23.array(DependencyDefinition).optional(),
|
|
710
|
+
registries: Registry.array(),
|
|
711
|
+
userAccessToken: z23.string()
|
|
712
|
+
});
|
|
693
713
|
var FigmaFileDownloadScope = z24.object({
|
|
694
714
|
styles: z24.boolean(),
|
|
695
715
|
components: z24.boolean(),
|
|
@@ -945,8 +965,8 @@ function groupBy(items, keyFn) {
|
|
|
945
965
|
}
|
|
946
966
|
return result;
|
|
947
967
|
}
|
|
948
|
-
function
|
|
949
|
-
return item
|
|
968
|
+
function nonNullishFilter(item) {
|
|
969
|
+
return !!item;
|
|
950
970
|
}
|
|
951
971
|
function areShallowObjectsEqual(lhs, rhs) {
|
|
952
972
|
if (lhs === void 0 !== (rhs === void 0)) return false;
|
|
@@ -3327,6 +3347,11 @@ var SourceImportComponentSummary = z90.object({
|
|
|
3327
3347
|
componentAssetsUpdated: zeroNumberByDefault(),
|
|
3328
3348
|
componentAssetsDeleted: zeroNumberByDefault()
|
|
3329
3349
|
});
|
|
3350
|
+
var SourceImportStorybookSummary = z90.object({
|
|
3351
|
+
created: zeroNumberByDefault(),
|
|
3352
|
+
updated: zeroNumberByDefault(),
|
|
3353
|
+
deleted: zeroNumberByDefault()
|
|
3354
|
+
});
|
|
3330
3355
|
var SourceImportFrameSummary = z90.object({
|
|
3331
3356
|
assetsInFile: nullishToOptional(FileStructureStats.optional()),
|
|
3332
3357
|
invalidReferencesCount: nullishToOptional(z90.number().optional())
|
|
@@ -3412,9 +3437,12 @@ var DataSourceStorybookRemote = z91.object({
|
|
|
3412
3437
|
ownerId: z91.string().optional(),
|
|
3413
3438
|
lastImportedAt: z91.coerce.date().optional(),
|
|
3414
3439
|
lastImportedSuccessfully: z91.coerce.date().optional(),
|
|
3440
|
+
lastImportedResult: SourceImportStorybookSummary.optional(),
|
|
3415
3441
|
isFailed: z91.boolean(),
|
|
3416
3442
|
storiesCount: z91.number(),
|
|
3417
|
-
docsCount: z91.number()
|
|
3443
|
+
docsCount: z91.number(),
|
|
3444
|
+
description: z91.string().optional(),
|
|
3445
|
+
isUsingVpn: z91.boolean().optional()
|
|
3418
3446
|
});
|
|
3419
3447
|
var DataSourceRemote = z91.discriminatedUnion("type", [
|
|
3420
3448
|
DataSourceFigmaRemote,
|
|
@@ -3846,7 +3874,8 @@ var DocumentationPageDependencies = z114.object({
|
|
|
3846
3874
|
groupPersistentIds: z114.set(z114.string()),
|
|
3847
3875
|
propertyPersistentIds: z114.set(z114.string()),
|
|
3848
3876
|
themePersistentIds: z114.set(z114.string()),
|
|
3849
|
-
documentationPagePersistentIds: z114.set(z114.string())
|
|
3877
|
+
documentationPagePersistentIds: z114.set(z114.string()),
|
|
3878
|
+
storybookEntriesStoryIds: z114.set(z114.string())
|
|
3850
3879
|
});
|
|
3851
3880
|
var DocumentationPage = z115.object({
|
|
3852
3881
|
type: z115.literal("DocumentationPage"),
|
|
@@ -4621,8 +4650,7 @@ var DocumentationPageRoom = Entity.extend({
|
|
|
4621
4650
|
isDirty: z161.boolean()
|
|
4622
4651
|
});
|
|
4623
4652
|
var DocumentationPageRoomState = z161.object({
|
|
4624
|
-
pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
|
|
4625
|
-
itemConfiguration: DocumentationItemConfigurationV2
|
|
4653
|
+
pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
|
|
4626
4654
|
});
|
|
4627
4655
|
var DocumentationPageRoomRoomUpdate = z161.object({
|
|
4628
4656
|
page: DocumentationPageV2,
|
|
@@ -5124,14 +5152,14 @@ function squashAndConvertToDto(entries) {
|
|
|
5124
5152
|
);
|
|
5125
5153
|
return Array.from(byDay.entries()).map(([startOfDay, dayEntries]) => {
|
|
5126
5154
|
const firstEntry = dayEntries[0];
|
|
5127
|
-
const uniqueSessions = new Set(dayEntries.map((e) => e.anonymousId).filter(
|
|
5155
|
+
const uniqueSessions = new Set(dayEntries.map((e) => e.anonymousId).filter(nonNullishFilter)).size;
|
|
5128
5156
|
const visitsSum = dayEntries.reduce((prev, curr) => prev + curr.visits, 0);
|
|
5129
5157
|
return {
|
|
5130
5158
|
versionId: firstEntry.versionId,
|
|
5131
|
-
locale: firstEntry.locale,
|
|
5132
5159
|
timestamp: new Date(startOfDay),
|
|
5133
5160
|
sessions: uniqueSessions,
|
|
5134
|
-
visits: visitsSum
|
|
5161
|
+
visits: visitsSum,
|
|
5162
|
+
...firstEntry.locale && { locale: firstEntry.locale }
|
|
5135
5163
|
};
|
|
5136
5164
|
});
|
|
5137
5165
|
}
|
|
@@ -5143,6 +5171,20 @@ function getStartOfUTCDay(date) {
|
|
|
5143
5171
|
}
|
|
5144
5172
|
|
|
5145
5173
|
// src/api/conversion/analytics/page-visits-to-comparison-dto.ts
|
|
5174
|
+
function documentationAnalyticsToPageComparisonDto(input) {
|
|
5175
|
+
const { pagePersistentId } = input;
|
|
5176
|
+
function validateDataPoint(dataPoint) {
|
|
5177
|
+
if (dataPoint.pagePersistentId !== pagePersistentId) {
|
|
5178
|
+
throw SupernovaException.shouldNotHappen(`Tried to include invalid analytics data point!`);
|
|
5179
|
+
}
|
|
5180
|
+
}
|
|
5181
|
+
input.priorDataPoints.forEach(validateDataPoint);
|
|
5182
|
+
input.currentDataPoints.forEach(validateDataPoint);
|
|
5183
|
+
return {
|
|
5184
|
+
...documentationAnalyticsToComparisonDto(input),
|
|
5185
|
+
pagePersistentId
|
|
5186
|
+
};
|
|
5187
|
+
}
|
|
5146
5188
|
function documentationAnalyticsToComparisonDto(input) {
|
|
5147
5189
|
const { timeFrame } = input;
|
|
5148
5190
|
const priorDataPoints = documentationAnalyticsToGlobalDto(input.priorDataPoints);
|
|
@@ -5629,7 +5671,7 @@ var DTOPagination = z193.object({
|
|
|
5629
5671
|
});
|
|
5630
5672
|
|
|
5631
5673
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5632
|
-
import { z as
|
|
5674
|
+
import { z as z234 } from "zod";
|
|
5633
5675
|
|
|
5634
5676
|
// src/api/dto/design-systems/brand.ts
|
|
5635
5677
|
import { z as z194 } from "zod";
|
|
@@ -5672,12 +5714,23 @@ var DTOCodeComponentCreateInput = z195.object({
|
|
|
5672
5714
|
componentPath: z195.string(),
|
|
5673
5715
|
description: z195.string(),
|
|
5674
5716
|
properties: z195.record(z195.string(), DTOCodeComponentProperty),
|
|
5675
|
-
tags: z195.record(z195.string(), z195.string()).
|
|
5717
|
+
tags: z195.record(z195.string(), z195.string()).nullable()
|
|
5676
5718
|
});
|
|
5677
5719
|
var DTOCodeComponentsCreateInput = z195.object({
|
|
5678
5720
|
codeComponents: DTOCodeComponentCreateInput.array()
|
|
5679
5721
|
});
|
|
5680
5722
|
var DTOCodeComponentUpsertResponse = CodeComponentUpsertResponse;
|
|
5723
|
+
var DTOAnalyzeCodeComponentsInPackage = AnalyzeCodeComponentsInPackage;
|
|
5724
|
+
var DTODependencyDefinition = DependencyDefinition;
|
|
5725
|
+
var DTORegistry = Registry;
|
|
5726
|
+
var DTOAnalyzeCodeComponentsInPackageResponse = z195.object({
|
|
5727
|
+
ok: z195.literal(true)
|
|
5728
|
+
});
|
|
5729
|
+
var DTOAnalyzeCodeComponentsInPackageInput = AnalyzeCodeComponentsInPackage.omit({
|
|
5730
|
+
designSystemId: true,
|
|
5731
|
+
versionId: true,
|
|
5732
|
+
userAccessToken: true
|
|
5733
|
+
});
|
|
5681
5734
|
|
|
5682
5735
|
// src/api/dto/design-systems/component.ts
|
|
5683
5736
|
import { z as z196 } from "zod";
|
|
@@ -5865,10 +5918,13 @@ var DTODataSourceStorybook = z201.object({
|
|
|
5865
5918
|
indexUrl: z201.string(),
|
|
5866
5919
|
userUrl: z201.string(),
|
|
5867
5920
|
lastImportedAt: z201.coerce.date().optional(),
|
|
5921
|
+
lastImportedResult: SourceImportStorybookSummary.optional(),
|
|
5868
5922
|
lastImportedSuccessfully: z201.coerce.date().optional(),
|
|
5869
5923
|
isFailed: z201.boolean(),
|
|
5870
5924
|
storiesCount: z201.number(),
|
|
5871
|
-
docsCount: z201.number()
|
|
5925
|
+
docsCount: z201.number(),
|
|
5926
|
+
description: z201.string().optional(),
|
|
5927
|
+
isUsingVpn: z201.boolean().optional()
|
|
5872
5928
|
})
|
|
5873
5929
|
});
|
|
5874
5930
|
var DTODataSourcesStorybookResponse = z201.object({
|
|
@@ -5902,15 +5958,23 @@ var DTODataSourceFigmaImportPayload = z201.object({
|
|
|
5902
5958
|
});
|
|
5903
5959
|
var DTODataSourceStorybookCreatePayload = z201.object({
|
|
5904
5960
|
brandPersistentId: z201.string(),
|
|
5961
|
+
fileName: z201.string().optional(),
|
|
5905
5962
|
userUrl: z201.string(),
|
|
5906
5963
|
indexUrl: z201.string(),
|
|
5907
5964
|
payload: z201.unknown(),
|
|
5908
|
-
type: z201.literal(DataSourceRemoteType.Enum.Storybook)
|
|
5965
|
+
type: z201.literal(DataSourceRemoteType.Enum.Storybook),
|
|
5966
|
+
description: z201.string().optional(),
|
|
5967
|
+
isUsingVpn: z201.boolean().optional()
|
|
5909
5968
|
});
|
|
5910
5969
|
var DTOStorybookImportPayload = z201.object({
|
|
5911
5970
|
sourceId: z201.string(),
|
|
5912
5971
|
payload: z201.unknown()
|
|
5913
5972
|
});
|
|
5973
|
+
var DTOStorybookSourceUpdatePayload = z201.object({
|
|
5974
|
+
description: z201.string().nullish().optional(),
|
|
5975
|
+
isUsingVpn: z201.boolean().optional(),
|
|
5976
|
+
fileName: z201.string().optional()
|
|
5977
|
+
});
|
|
5914
5978
|
|
|
5915
5979
|
// src/api/dto/design-systems/design-system.ts
|
|
5916
5980
|
import { z as z204 } from "zod";
|
|
@@ -6163,6 +6227,24 @@ var DTODesignSystemVersionStatsQuery = z209.object({
|
|
|
6163
6227
|
|
|
6164
6228
|
// src/api/dto/design-systems/storybook.ts
|
|
6165
6229
|
import { z as z210 } from "zod";
|
|
6230
|
+
var DTOStorybookUploadUrlRequest = z210.object({
|
|
6231
|
+
name: z210.string()
|
|
6232
|
+
});
|
|
6233
|
+
var DTOStorybookUploadUrlResponse = z210.object({
|
|
6234
|
+
signedUrl: z210.string(),
|
|
6235
|
+
storybookUploadId: z210.string()
|
|
6236
|
+
});
|
|
6237
|
+
var DTOStorybookAccessTokenResponse = z210.object({
|
|
6238
|
+
accessToken: z210.string()
|
|
6239
|
+
});
|
|
6240
|
+
var DTOStorybookAccessTokenPayload = z210.object({
|
|
6241
|
+
designSystemId: z210.string(),
|
|
6242
|
+
storybookUploadId: z210.string()
|
|
6243
|
+
});
|
|
6244
|
+
var DTOStorybookUploadStatus = z210.object({
|
|
6245
|
+
status: z210.enum(["Failed", "InProgress", "Completed", "Unknown"]),
|
|
6246
|
+
timestamp: z210.number().optional()
|
|
6247
|
+
});
|
|
6166
6248
|
var DTOStorybookEntryOrigin = z210.object({
|
|
6167
6249
|
id: z210.string(),
|
|
6168
6250
|
type: z210.enum(["story", "docs"]),
|
|
@@ -6187,20 +6269,205 @@ var DTOStorybookEntryReplaceAction = z210.object({
|
|
|
6187
6269
|
var DTOStorybookEntryListResponse = z210.object({ entries: z210.array(DTOStorybookEntry) });
|
|
6188
6270
|
var DTOStorybookEntryResponse = z210.object({ entry: DTOStorybookEntry });
|
|
6189
6271
|
|
|
6190
|
-
// src/api/dto/design-systems/
|
|
6272
|
+
// src/api/dto/design-systems/user-design-systems.ts
|
|
6273
|
+
import { z as z218 } from "zod";
|
|
6274
|
+
|
|
6275
|
+
// src/api/dto/workspaces/git.ts
|
|
6191
6276
|
import { z as z211 } from "zod";
|
|
6192
|
-
var
|
|
6193
|
-
id: z211.string()
|
|
6277
|
+
var DTOGitOrganization = z211.object({
|
|
6278
|
+
id: z211.string(),
|
|
6279
|
+
name: z211.string(),
|
|
6280
|
+
url: z211.string(),
|
|
6281
|
+
slug: z211.string()
|
|
6282
|
+
});
|
|
6283
|
+
var DTOGitProject = z211.object({
|
|
6284
|
+
id: z211.string(),
|
|
6285
|
+
name: z211.string(),
|
|
6286
|
+
url: z211.string(),
|
|
6287
|
+
slug: z211.string()
|
|
6288
|
+
});
|
|
6289
|
+
var DTOGitRepository = z211.object({
|
|
6290
|
+
id: z211.string(),
|
|
6291
|
+
name: z211.string(),
|
|
6292
|
+
url: z211.string(),
|
|
6293
|
+
slug: z211.string(),
|
|
6294
|
+
defaultBranch: z211.string().optional()
|
|
6295
|
+
});
|
|
6296
|
+
var DTOGitBranch = z211.object({
|
|
6297
|
+
name: z211.string(),
|
|
6298
|
+
lastCommitId: z211.string()
|
|
6299
|
+
});
|
|
6300
|
+
|
|
6301
|
+
// src/api/dto/workspaces/integrations.ts
|
|
6302
|
+
import { z as z212 } from "zod";
|
|
6303
|
+
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6304
|
+
accessToken: true,
|
|
6305
|
+
refreshToken: true
|
|
6306
|
+
});
|
|
6307
|
+
var DTOIntegration = z212.object({
|
|
6308
|
+
id: z212.string(),
|
|
6309
|
+
workspaceId: z212.string(),
|
|
6310
|
+
type: ExtendedIntegrationType,
|
|
6311
|
+
createdAt: z212.coerce.date(),
|
|
6312
|
+
integrationCredentials: z212.array(DTOIntegrationCredentials).optional(),
|
|
6313
|
+
integrationDesignSystems: z212.array(IntegrationDesignSystem).optional()
|
|
6314
|
+
});
|
|
6315
|
+
var DTOIntegrationOAuthGetResponse = z212.object({
|
|
6316
|
+
url: z212.string()
|
|
6317
|
+
});
|
|
6318
|
+
var DTOIntegrationPostResponse = z212.object({
|
|
6319
|
+
integration: DTOIntegration
|
|
6320
|
+
});
|
|
6321
|
+
var DTOIntegrationsGetListResponse = z212.object({
|
|
6322
|
+
integrations: DTOIntegration.array()
|
|
6323
|
+
});
|
|
6324
|
+
|
|
6325
|
+
// src/api/dto/workspaces/invitations.ts
|
|
6326
|
+
import { z as z213 } from "zod";
|
|
6327
|
+
var DTOWorkspaceInvitationInput = z213.object({
|
|
6328
|
+
email: z213.string().email(),
|
|
6329
|
+
role: WorkspaceRoleSchema
|
|
6330
|
+
});
|
|
6331
|
+
var DTOWorkspaceInvitationsListInput = z213.object({
|
|
6332
|
+
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
6333
|
+
designSystemId: z213.string().optional()
|
|
6334
|
+
});
|
|
6335
|
+
var DTOWorkspaceInvitationsResponse = z213.object({
|
|
6336
|
+
invitations: WorkspaceInvitation.array()
|
|
6337
|
+
});
|
|
6338
|
+
var DTOWorkspaceInviteUpdate = z213.object({
|
|
6339
|
+
role: WorkspaceRoleSchema
|
|
6340
|
+
});
|
|
6341
|
+
var DTOWorkspaceInvitationUpdateResponse = z213.object({
|
|
6342
|
+
invitation: WorkspaceInvitation
|
|
6343
|
+
});
|
|
6344
|
+
|
|
6345
|
+
// src/api/dto/workspaces/membership.ts
|
|
6346
|
+
import { z as z216 } from "zod";
|
|
6347
|
+
|
|
6348
|
+
// src/api/dto/workspaces/workspace.ts
|
|
6349
|
+
import { z as z215 } from "zod";
|
|
6350
|
+
|
|
6351
|
+
// src/api/dto/workspaces/npm-registry.ts
|
|
6352
|
+
import { z as z214 } from "zod";
|
|
6353
|
+
var DTONpmRegistryConfigConstants = {
|
|
6354
|
+
passwordPlaceholder: "redacted"
|
|
6355
|
+
};
|
|
6356
|
+
var DTONpmRegistryConfig = z214.object({
|
|
6357
|
+
// Registry basic configuration
|
|
6358
|
+
registryType: NpmRegistryType,
|
|
6359
|
+
registryUrl: z214.string(),
|
|
6360
|
+
customRegistryUrl: z214.string().optional(),
|
|
6361
|
+
// URL of Supernova NPM packages proxy
|
|
6362
|
+
proxyUrl: z214.string(),
|
|
6363
|
+
// Auth configuration
|
|
6364
|
+
authType: NpmRegistryAuthType,
|
|
6365
|
+
accessToken: z214.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6366
|
+
username: z214.string().optional(),
|
|
6367
|
+
password: z214.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6368
|
+
// NPM package scopes for whih the proxy should be enabled
|
|
6369
|
+
enabledScopes: z214.array(z214.string()),
|
|
6370
|
+
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6371
|
+
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6372
|
+
bypassProxy: z214.boolean()
|
|
6373
|
+
});
|
|
6374
|
+
var DTONpmRegistryAccessTokenResponse = z214.object({
|
|
6375
|
+
version: z214.number(),
|
|
6376
|
+
accessToken: z214.string().optional(),
|
|
6377
|
+
registryUrl: z214.string()
|
|
6378
|
+
});
|
|
6379
|
+
var DTOUpdateRegistryInput = z214.object({
|
|
6380
|
+
registryType: nullishToOptional(NpmRegistryType),
|
|
6381
|
+
authType: nullishToOptional(NpmRegistryAuthType),
|
|
6382
|
+
enabledScopes: nullishToOptional(z214.array(z214.string())),
|
|
6383
|
+
customRegistryUrl: nullishToOptional(z214.string()),
|
|
6384
|
+
bypassProxy: nullishToOptional(z214.boolean()),
|
|
6385
|
+
npmProxyVersion: nullishToOptional(z214.number()),
|
|
6386
|
+
authHeaderName: nullishToOptional(z214.string()),
|
|
6387
|
+
authHeaderValue: nullishToOptional(z214.string()),
|
|
6388
|
+
accessToken: nullishToOptional(z214.string()),
|
|
6389
|
+
username: nullishToOptional(z214.string()),
|
|
6390
|
+
password: nullishToOptional(z214.string())
|
|
6391
|
+
});
|
|
6392
|
+
var DTOUpdateRegistryOutput = z214.object({
|
|
6393
|
+
npmRegistrySettings: DTONpmRegistryConfig
|
|
6394
|
+
});
|
|
6395
|
+
|
|
6396
|
+
// src/api/dto/workspaces/workspace.ts
|
|
6397
|
+
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
6398
|
+
var DTOWorkspace = z215.object({
|
|
6399
|
+
id: z215.string(),
|
|
6400
|
+
profile: DTOWorkspaceProfile,
|
|
6401
|
+
subscription: Subscription,
|
|
6402
|
+
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6403
|
+
});
|
|
6404
|
+
var DTOWorkspaceCreateInput = z215.object({
|
|
6405
|
+
name: z215.string()
|
|
6406
|
+
});
|
|
6407
|
+
var DTOWorkspaceResponse = z215.object({
|
|
6408
|
+
workspace: DTOWorkspace
|
|
6409
|
+
});
|
|
6410
|
+
|
|
6411
|
+
// src/api/dto/workspaces/membership.ts
|
|
6412
|
+
var DTOWorkspaceRole = z216.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6413
|
+
var DTOUserWorkspaceMembership = z216.object({
|
|
6414
|
+
// Workspace the user is a member of
|
|
6415
|
+
workspace: DTOWorkspace,
|
|
6416
|
+
// Assigned role the user has in the workspace
|
|
6417
|
+
role: DTOWorkspaceRole,
|
|
6418
|
+
// Role that determines actual permissions the user has in the workspace
|
|
6419
|
+
// E.g. this is different from the default role when editors are downgraded to viewers
|
|
6420
|
+
// when a workspace's subscription is downgraded to free tier
|
|
6421
|
+
effectiveRole: DTOWorkspaceRole
|
|
6422
|
+
});
|
|
6423
|
+
var DTOWorkspaceMember = z216.object({
|
|
6424
|
+
user: User,
|
|
6425
|
+
role: WorkspaceRoleSchema,
|
|
6426
|
+
effectiveRole: WorkspaceRoleSchema
|
|
6427
|
+
});
|
|
6428
|
+
var DTOUserWorkspaceMembershipsResponse = z216.object({
|
|
6429
|
+
membership: z216.array(DTOUserWorkspaceMembership)
|
|
6430
|
+
});
|
|
6431
|
+
var DTOWorkspaceMembersListResponse = z216.object({
|
|
6432
|
+
members: z216.array(DTOWorkspaceMember)
|
|
6433
|
+
});
|
|
6434
|
+
|
|
6435
|
+
// src/api/dto/workspaces/untyped-data.ts
|
|
6436
|
+
import { z as z217 } from "zod";
|
|
6437
|
+
var DTOWorkspaceUntypedData = WorkspaceUntypedData;
|
|
6438
|
+
var DTOWorkspaceUntypedDataListResponse = z217.object({
|
|
6439
|
+
data: DTOWorkspaceUntypedData.array()
|
|
6194
6440
|
});
|
|
6195
|
-
var
|
|
6441
|
+
var DTOWorkspaceUntypedDataResponse = z217.object({
|
|
6442
|
+
data: DTOWorkspaceUntypedData
|
|
6443
|
+
});
|
|
6444
|
+
var DTOWorkspaceUntypedDataCreatePayload = z217.object({
|
|
6445
|
+
value: z217.unknown()
|
|
6446
|
+
});
|
|
6447
|
+
var DTOWorkspaceUntypedDataUpdatePayload = z217.object({
|
|
6448
|
+
value: z217.unknown()
|
|
6449
|
+
});
|
|
6450
|
+
|
|
6451
|
+
// src/api/dto/design-systems/user-design-systems.ts
|
|
6452
|
+
var DTOUserDesignSystemsResponse = z218.object({
|
|
6453
|
+
designSystems: DTODesignSystem.array(),
|
|
6454
|
+
workspaces: DTOWorkspace.array()
|
|
6455
|
+
});
|
|
6456
|
+
|
|
6457
|
+
// src/api/dto/design-systems/version-room.ts
|
|
6458
|
+
import { z as z219 } from "zod";
|
|
6459
|
+
var DTODesignSystemVersionRoom = z219.object({
|
|
6460
|
+
id: z219.string()
|
|
6461
|
+
});
|
|
6462
|
+
var DTODesignSystemVersionRoomResponse = z219.object({
|
|
6196
6463
|
room: DTODesignSystemVersionRoom
|
|
6197
6464
|
});
|
|
6198
6465
|
|
|
6199
6466
|
// src/api/dto/design-systems/version.ts
|
|
6200
|
-
import { z as
|
|
6467
|
+
import { z as z232 } from "zod";
|
|
6201
6468
|
|
|
6202
6469
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
6203
|
-
import { z as
|
|
6470
|
+
import { z as z220 } from "zod";
|
|
6204
6471
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
6205
6472
|
id: true,
|
|
6206
6473
|
workspaceId: true,
|
|
@@ -6212,56 +6479,56 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
6212
6479
|
}).extend({
|
|
6213
6480
|
meta: ObjectMeta.partial().optional()
|
|
6214
6481
|
});
|
|
6215
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
6482
|
+
var DTODesignSystemUpdateAccessModeInput = z220.object({
|
|
6216
6483
|
accessMode: DesignSystemAccessMode,
|
|
6217
|
-
retain:
|
|
6218
|
-
userIds:
|
|
6219
|
-
inviteIds:
|
|
6484
|
+
retain: z220.object({
|
|
6485
|
+
userIds: z220.string().array(),
|
|
6486
|
+
inviteIds: z220.string().array()
|
|
6220
6487
|
}).optional()
|
|
6221
6488
|
});
|
|
6222
6489
|
|
|
6223
6490
|
// src/api/payloads/design-systems/version.ts
|
|
6224
|
-
import { z as
|
|
6225
|
-
var ObjectMeta2 =
|
|
6226
|
-
name:
|
|
6227
|
-
description:
|
|
6491
|
+
import { z as z221 } from "zod";
|
|
6492
|
+
var ObjectMeta2 = z221.object({
|
|
6493
|
+
name: z221.string().max(150).optional(),
|
|
6494
|
+
description: z221.string().max(2e3).optional()
|
|
6228
6495
|
});
|
|
6229
6496
|
function validateDesignSystemVersion(version) {
|
|
6230
6497
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
6231
6498
|
return urlCompliantRegex.test(version);
|
|
6232
6499
|
}
|
|
6233
|
-
var DTOCreateVersionInput =
|
|
6500
|
+
var DTOCreateVersionInput = z221.object({
|
|
6234
6501
|
meta: ObjectMeta2,
|
|
6235
|
-
version:
|
|
6502
|
+
version: z221.string().refine(validateDesignSystemVersion, {
|
|
6236
6503
|
message: "Invalid semantic versioning format"
|
|
6237
6504
|
}),
|
|
6238
|
-
changeLog:
|
|
6505
|
+
changeLog: z221.string().optional()
|
|
6239
6506
|
});
|
|
6240
|
-
var DTOUpdateVersionInput =
|
|
6507
|
+
var DTOUpdateVersionInput = z221.object({
|
|
6241
6508
|
meta: ObjectMeta2,
|
|
6242
|
-
version:
|
|
6509
|
+
version: z221.string(),
|
|
6243
6510
|
// required for PUT, but not editable
|
|
6244
|
-
changeLog:
|
|
6511
|
+
changeLog: z221.string()
|
|
6245
6512
|
});
|
|
6246
6513
|
|
|
6247
6514
|
// src/api/payloads/documentation/analytics.ts
|
|
6248
|
-
import { z as
|
|
6249
|
-
var DTODocumentationAnalyticsTimeFrameComparison =
|
|
6250
|
-
referencePeriod:
|
|
6251
|
-
start:
|
|
6252
|
-
end:
|
|
6515
|
+
import { z as z222 } from "zod";
|
|
6516
|
+
var DTODocumentationAnalyticsTimeFrameComparison = z222.object({
|
|
6517
|
+
referencePeriod: z222.object({
|
|
6518
|
+
start: z222.coerce.date(),
|
|
6519
|
+
end: z222.coerce.date().optional()
|
|
6253
6520
|
}),
|
|
6254
|
-
baselinePeriod:
|
|
6255
|
-
start:
|
|
6256
|
-
end:
|
|
6521
|
+
baselinePeriod: z222.object({
|
|
6522
|
+
start: z222.coerce.date(),
|
|
6523
|
+
end: z222.coerce.date().optional()
|
|
6257
6524
|
})
|
|
6258
6525
|
});
|
|
6259
|
-
var DTODocumentationAnalyticsDiffPayload =
|
|
6260
|
-
timeFrames:
|
|
6526
|
+
var DTODocumentationAnalyticsDiffPayload = z222.object({
|
|
6527
|
+
timeFrames: z222.array(DTODocumentationAnalyticsTimeFrameComparison)
|
|
6261
6528
|
});
|
|
6262
6529
|
|
|
6263
6530
|
// src/api/payloads/documentation/block-definitions.ts
|
|
6264
|
-
import { z as
|
|
6531
|
+
import { z as z223 } from "zod";
|
|
6265
6532
|
|
|
6266
6533
|
// src/api/dto/documentation/block-definition.ts
|
|
6267
6534
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -6273,76 +6540,76 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
6273
6540
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
6274
6541
|
|
|
6275
6542
|
// src/api/payloads/documentation/block-definitions.ts
|
|
6276
|
-
var DTOGetBlockDefinitionsOutput =
|
|
6277
|
-
definitions:
|
|
6543
|
+
var DTOGetBlockDefinitionsOutput = z223.object({
|
|
6544
|
+
definitions: z223.array(DTOPageBlockDefinition)
|
|
6278
6545
|
});
|
|
6279
6546
|
|
|
6280
6547
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
6281
|
-
import { z as
|
|
6282
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
6283
|
-
environment:
|
|
6548
|
+
import { z as z224 } from "zod";
|
|
6549
|
+
var DTODocumentationPublishTypeQueryParams = z224.object({
|
|
6550
|
+
environment: z224.enum(["Live", "Preview"])
|
|
6284
6551
|
});
|
|
6285
6552
|
|
|
6286
6553
|
// src/api/payloads/export/pipeline.ts
|
|
6287
|
-
import { z as
|
|
6554
|
+
import { z as z226 } from "zod";
|
|
6288
6555
|
|
|
6289
6556
|
// src/api/dto/export/exporter-property.ts
|
|
6290
|
-
import { z as
|
|
6291
|
-
var PrimitiveValue2 =
|
|
6292
|
-
var ArrayValue2 =
|
|
6293
|
-
var ObjectValue2 =
|
|
6557
|
+
import { z as z225 } from "zod";
|
|
6558
|
+
var PrimitiveValue2 = z225.number().or(z225.boolean()).or(z225.string());
|
|
6559
|
+
var ArrayValue2 = z225.array(z225.string());
|
|
6560
|
+
var ObjectValue2 = z225.record(z225.string());
|
|
6294
6561
|
var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
6295
|
-
var DTOExporterPropertyType =
|
|
6296
|
-
var PropertyDefinitionBase2 =
|
|
6297
|
-
key:
|
|
6298
|
-
title:
|
|
6299
|
-
description:
|
|
6300
|
-
category:
|
|
6301
|
-
dependsOn:
|
|
6302
|
-
});
|
|
6303
|
-
var DTOExporterPropertyDefinitionEnumOption =
|
|
6304
|
-
label:
|
|
6305
|
-
description:
|
|
6562
|
+
var DTOExporterPropertyType = z225.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
|
|
6563
|
+
var PropertyDefinitionBase2 = z225.object({
|
|
6564
|
+
key: z225.string(),
|
|
6565
|
+
title: z225.string(),
|
|
6566
|
+
description: z225.string(),
|
|
6567
|
+
category: z225.string().optional(),
|
|
6568
|
+
dependsOn: z225.record(z225.boolean()).optional()
|
|
6569
|
+
});
|
|
6570
|
+
var DTOExporterPropertyDefinitionEnumOption = z225.object({
|
|
6571
|
+
label: z225.string(),
|
|
6572
|
+
description: z225.string()
|
|
6306
6573
|
});
|
|
6307
6574
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
6308
|
-
type:
|
|
6309
|
-
options:
|
|
6310
|
-
default:
|
|
6575
|
+
type: z225.literal(DTOExporterPropertyType.Enum.Enum),
|
|
6576
|
+
options: z225.record(DTOExporterPropertyDefinitionEnumOption),
|
|
6577
|
+
default: z225.string()
|
|
6311
6578
|
});
|
|
6312
6579
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
6313
|
-
type:
|
|
6314
|
-
default:
|
|
6580
|
+
type: z225.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
6581
|
+
default: z225.boolean()
|
|
6315
6582
|
});
|
|
6316
6583
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
6317
|
-
type:
|
|
6318
|
-
default:
|
|
6319
|
-
isMultiline:
|
|
6584
|
+
type: z225.literal(DTOExporterPropertyType.Enum.String),
|
|
6585
|
+
default: z225.string(),
|
|
6586
|
+
isMultiline: z225.boolean().optional()
|
|
6320
6587
|
});
|
|
6321
6588
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
6322
|
-
type:
|
|
6323
|
-
default:
|
|
6589
|
+
type: z225.literal(DTOExporterPropertyType.Enum.Number),
|
|
6590
|
+
default: z225.number()
|
|
6324
6591
|
});
|
|
6325
6592
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
6326
|
-
type:
|
|
6593
|
+
type: z225.literal(DTOExporterPropertyType.Enum.Array),
|
|
6327
6594
|
default: ArrayValue2
|
|
6328
6595
|
});
|
|
6329
6596
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
6330
|
-
type:
|
|
6597
|
+
type: z225.literal(DTOExporterPropertyType.Enum.Object),
|
|
6331
6598
|
default: ObjectValue2,
|
|
6332
|
-
allowedKeys:
|
|
6333
|
-
options:
|
|
6334
|
-
type:
|
|
6599
|
+
allowedKeys: z225.object({
|
|
6600
|
+
options: z225.string().array(),
|
|
6601
|
+
type: z225.string()
|
|
6335
6602
|
}).optional(),
|
|
6336
|
-
allowedValues:
|
|
6337
|
-
type:
|
|
6603
|
+
allowedValues: z225.object({
|
|
6604
|
+
type: z225.string()
|
|
6338
6605
|
}).optional()
|
|
6339
6606
|
});
|
|
6340
6607
|
var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
|
|
6341
|
-
type:
|
|
6342
|
-
language:
|
|
6343
|
-
default:
|
|
6608
|
+
type: z225.literal(DTOExporterPropertyType.Enum.Code),
|
|
6609
|
+
language: z225.string(),
|
|
6610
|
+
default: z225.string()
|
|
6344
6611
|
});
|
|
6345
|
-
var DTOExporterPropertyDefinition =
|
|
6612
|
+
var DTOExporterPropertyDefinition = z225.discriminatedUnion("type", [
|
|
6346
6613
|
DTOExporterPropertyDefinitionEnum,
|
|
6347
6614
|
DTOExporterPropertyDefinitionBoolean,
|
|
6348
6615
|
DTOExporterPropertyDefinitionString,
|
|
@@ -6351,84 +6618,84 @@ var DTOExporterPropertyDefinition = z217.discriminatedUnion("type", [
|
|
|
6351
6618
|
DTOExporterPropertyDefinitionObject,
|
|
6352
6619
|
DTOExporterPropertyDefinitionCode
|
|
6353
6620
|
]);
|
|
6354
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
6621
|
+
var DTOExporterPropertyDefinitionsResponse = z225.object({
|
|
6355
6622
|
properties: DTOExporterPropertyDefinition.array()
|
|
6356
6623
|
});
|
|
6357
|
-
var DTOExporterPropertyValueMap =
|
|
6624
|
+
var DTOExporterPropertyValueMap = z225.record(DTOExporterPropertyValue);
|
|
6358
6625
|
|
|
6359
6626
|
// src/api/payloads/export/pipeline.ts
|
|
6360
|
-
var GitDestinationOptions =
|
|
6361
|
-
branch:
|
|
6362
|
-
commitMessage:
|
|
6363
|
-
commitAuthorName:
|
|
6364
|
-
commitAuthorEmail:
|
|
6365
|
-
pullRequestTitle:
|
|
6366
|
-
pullRequestDescription:
|
|
6367
|
-
relativePath:
|
|
6368
|
-
purgeDirectory:
|
|
6369
|
-
});
|
|
6370
|
-
var DTOPipelineCreateBody =
|
|
6371
|
-
name:
|
|
6372
|
-
exporterId:
|
|
6373
|
-
designSystemId:
|
|
6374
|
-
isEnabled:
|
|
6627
|
+
var GitDestinationOptions = z226.object({
|
|
6628
|
+
branch: z226.string().min(1).optional(),
|
|
6629
|
+
commitMessage: z226.string().min(1).optional(),
|
|
6630
|
+
commitAuthorName: z226.string().min(1).optional(),
|
|
6631
|
+
commitAuthorEmail: z226.string().email().optional(),
|
|
6632
|
+
pullRequestTitle: z226.string().min(1).optional(),
|
|
6633
|
+
pullRequestDescription: z226.string().min(1).optional(),
|
|
6634
|
+
relativePath: z226.string().optional(),
|
|
6635
|
+
purgeDirectory: z226.boolean().optional()
|
|
6636
|
+
});
|
|
6637
|
+
var DTOPipelineCreateBody = z226.object({
|
|
6638
|
+
name: z226.string(),
|
|
6639
|
+
exporterId: z226.string(),
|
|
6640
|
+
designSystemId: z226.string(),
|
|
6641
|
+
isEnabled: z226.boolean(),
|
|
6375
6642
|
eventType: PipelineEventType,
|
|
6376
|
-
brandPersistentId:
|
|
6377
|
-
themePersistentId:
|
|
6378
|
-
themePersistentIds:
|
|
6643
|
+
brandPersistentId: z226.string().optional(),
|
|
6644
|
+
themePersistentId: z226.string().optional(),
|
|
6645
|
+
themePersistentIds: z226.string().array().optional(),
|
|
6379
6646
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6380
6647
|
destination: PipelineDestinationType.optional(),
|
|
6381
6648
|
gitQuery: GitObjectsQuery,
|
|
6382
|
-
destinations:
|
|
6649
|
+
destinations: z226.object({
|
|
6383
6650
|
s3: ExporterDestinationS3.nullish(),
|
|
6384
6651
|
azure: ExporterDestinationAzure.nullish(),
|
|
6385
6652
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
6386
6653
|
github: ExporterDestinationGithub.nullish(),
|
|
6387
6654
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
6388
6655
|
documentation: ExporterDestinationDocs.nullish(),
|
|
6389
|
-
webhookUrl:
|
|
6656
|
+
webhookUrl: z226.string().nullish()
|
|
6390
6657
|
})
|
|
6391
6658
|
});
|
|
6392
|
-
var DTOPipelineUpdateBody =
|
|
6393
|
-
exporterId:
|
|
6394
|
-
name:
|
|
6395
|
-
isEnabled:
|
|
6659
|
+
var DTOPipelineUpdateBody = z226.object({
|
|
6660
|
+
exporterId: z226.string().optional(),
|
|
6661
|
+
name: z226.string().optional(),
|
|
6662
|
+
isEnabled: z226.boolean().optional(),
|
|
6396
6663
|
eventType: PipelineEventType.optional(),
|
|
6397
|
-
brandPersistentId:
|
|
6398
|
-
themePersistentId:
|
|
6399
|
-
themePersistentIds:
|
|
6664
|
+
brandPersistentId: z226.string().optional(),
|
|
6665
|
+
themePersistentId: z226.string().optional(),
|
|
6666
|
+
themePersistentIds: z226.string().array().optional(),
|
|
6400
6667
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6401
6668
|
destination: PipelineDestinationType.optional(),
|
|
6402
6669
|
gitQuery: GitObjectsQuery.optional(),
|
|
6403
|
-
destinations:
|
|
6670
|
+
destinations: z226.object({
|
|
6404
6671
|
s3: ExporterDestinationS3.nullish(),
|
|
6405
6672
|
azure: ExporterDestinationAzure.nullish(),
|
|
6406
6673
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
6407
6674
|
github: ExporterDestinationGithub.nullish(),
|
|
6408
6675
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
6409
6676
|
documentation: ExporterDestinationDocs.nullish(),
|
|
6410
|
-
webhookUrl:
|
|
6677
|
+
webhookUrl: z226.string().nullish()
|
|
6411
6678
|
}).optional(),
|
|
6412
6679
|
gitDestinationOptions: GitDestinationOptions.partial().optional()
|
|
6413
6680
|
});
|
|
6414
|
-
var DTOPipelineTriggerBody =
|
|
6415
|
-
designSystemVersionId:
|
|
6681
|
+
var DTOPipelineTriggerBody = z226.object({
|
|
6682
|
+
designSystemVersionId: z226.string()
|
|
6416
6683
|
});
|
|
6417
6684
|
|
|
6418
6685
|
// src/api/payloads/liveblocks/auth.ts
|
|
6419
|
-
import { z as
|
|
6420
|
-
var DTOLiveblocksAuthRequest =
|
|
6421
|
-
room:
|
|
6686
|
+
import { z as z227 } from "zod";
|
|
6687
|
+
var DTOLiveblocksAuthRequest = z227.object({
|
|
6688
|
+
room: z227.string().optional()
|
|
6422
6689
|
});
|
|
6423
6690
|
|
|
6424
6691
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
6425
|
-
import { z as
|
|
6426
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
6692
|
+
import { z as z228 } from "zod";
|
|
6693
|
+
var DTOUpdateUserNotificationSettingsPayload = z228.object({
|
|
6427
6694
|
notificationSettings: UserNotificationSettings
|
|
6428
6695
|
});
|
|
6429
|
-
var DTOUserNotificationSettingsResponse =
|
|
6430
|
-
userId:
|
|
6431
|
-
workspaceId:
|
|
6696
|
+
var DTOUserNotificationSettingsResponse = z228.object({
|
|
6697
|
+
userId: z228.string(),
|
|
6698
|
+
workspaceId: z228.string(),
|
|
6432
6699
|
notificationSettings: UserNotificationSettings
|
|
6433
6700
|
});
|
|
6434
6701
|
|
|
@@ -6436,13 +6703,13 @@ var DTOUserNotificationSettingsResponse = z220.object({
|
|
|
6436
6703
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
6437
6704
|
|
|
6438
6705
|
// src/api/payloads/workspaces/transfer-ownership.ts
|
|
6439
|
-
import { z as
|
|
6440
|
-
var DTOTransferOwnershipPayload =
|
|
6441
|
-
newOwnerId:
|
|
6706
|
+
import { z as z229 } from "zod";
|
|
6707
|
+
var DTOTransferOwnershipPayload = z229.object({
|
|
6708
|
+
newOwnerId: z229.string()
|
|
6442
6709
|
});
|
|
6443
6710
|
|
|
6444
6711
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
6445
|
-
import { z as
|
|
6712
|
+
import { z as z230 } from "zod";
|
|
6446
6713
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
6447
6714
|
function validateSsoPayload(ssoPayload) {
|
|
6448
6715
|
const keys = [];
|
|
@@ -6465,21 +6732,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
6465
6732
|
keys
|
|
6466
6733
|
};
|
|
6467
6734
|
}
|
|
6468
|
-
var NpmRegistryInput =
|
|
6469
|
-
enabledScopes:
|
|
6470
|
-
customRegistryUrl:
|
|
6471
|
-
bypassProxy:
|
|
6472
|
-
npmProxyRegistryConfigId:
|
|
6473
|
-
npmProxyVersion:
|
|
6474
|
-
registryType:
|
|
6475
|
-
authType:
|
|
6476
|
-
authHeaderName:
|
|
6477
|
-
authHeaderValue:
|
|
6478
|
-
accessToken:
|
|
6479
|
-
username:
|
|
6480
|
-
password:
|
|
6481
|
-
});
|
|
6482
|
-
var WorkspaceConfigurationPayload =
|
|
6735
|
+
var NpmRegistryInput = z230.object({
|
|
6736
|
+
enabledScopes: z230.array(z230.string()),
|
|
6737
|
+
customRegistryUrl: z230.string().optional(),
|
|
6738
|
+
bypassProxy: z230.boolean().optional(),
|
|
6739
|
+
npmProxyRegistryConfigId: z230.string().optional(),
|
|
6740
|
+
npmProxyVersion: z230.number().optional(),
|
|
6741
|
+
registryType: z230.string(),
|
|
6742
|
+
authType: z230.string(),
|
|
6743
|
+
authHeaderName: z230.string(),
|
|
6744
|
+
authHeaderValue: z230.string(),
|
|
6745
|
+
accessToken: z230.string(),
|
|
6746
|
+
username: z230.string(),
|
|
6747
|
+
password: z230.string()
|
|
6748
|
+
});
|
|
6749
|
+
var WorkspaceConfigurationPayload = z230.object({
|
|
6483
6750
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
6484
6751
|
sso: SsoProvider.partial().optional(),
|
|
6485
6752
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -6487,262 +6754,107 @@ var WorkspaceConfigurationPayload = z222.object({
|
|
|
6487
6754
|
});
|
|
6488
6755
|
|
|
6489
6756
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
6490
|
-
import { z as
|
|
6491
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
6757
|
+
import { z as z231 } from "zod";
|
|
6758
|
+
var DTOWorkspaceIntegrationOauthInput = z231.object({
|
|
6492
6759
|
type: IntegrationType
|
|
6493
6760
|
});
|
|
6494
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
6761
|
+
var DTOWorkspaceIntegrationPATInput = z231.object({
|
|
6495
6762
|
type: IntegrationType,
|
|
6496
6763
|
token: IntegrationToken
|
|
6497
6764
|
});
|
|
6498
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
6499
|
-
organization:
|
|
6765
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z231.object({
|
|
6766
|
+
organization: z231.string().optional(),
|
|
6500
6767
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
6501
|
-
project:
|
|
6768
|
+
project: z231.string().optional(),
|
|
6502
6769
|
// Only for Bitbucket and Azure
|
|
6503
|
-
repository:
|
|
6770
|
+
repository: z231.string().optional(),
|
|
6504
6771
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
6505
|
-
branch:
|
|
6772
|
+
branch: z231.string().optional(),
|
|
6506
6773
|
// For all providers, useful for PR creations.
|
|
6507
|
-
user:
|
|
6774
|
+
user: z231.string().optional()
|
|
6508
6775
|
// Only for Gitlab User Repositories
|
|
6509
6776
|
});
|
|
6510
6777
|
|
|
6511
6778
|
// src/api/dto/design-systems/version.ts
|
|
6512
|
-
var DTODesignSystemVersion =
|
|
6513
|
-
id:
|
|
6514
|
-
createdAt:
|
|
6779
|
+
var DTODesignSystemVersion = z232.object({
|
|
6780
|
+
id: z232.string(),
|
|
6781
|
+
createdAt: z232.coerce.date(),
|
|
6515
6782
|
meta: ObjectMeta,
|
|
6516
|
-
version:
|
|
6517
|
-
isReadonly:
|
|
6518
|
-
changeLog:
|
|
6519
|
-
designSystemId:
|
|
6783
|
+
version: z232.string(),
|
|
6784
|
+
isReadonly: z232.boolean(),
|
|
6785
|
+
changeLog: z232.string(),
|
|
6786
|
+
designSystemId: z232.string()
|
|
6520
6787
|
});
|
|
6521
|
-
var DTODesignSystemVersionsListResponse =
|
|
6522
|
-
designSystemVersions:
|
|
6788
|
+
var DTODesignSystemVersionsListResponse = z232.object({
|
|
6789
|
+
designSystemVersions: z232.array(DTODesignSystemVersion)
|
|
6523
6790
|
});
|
|
6524
|
-
var DTODesignSystemVersionGetResponse =
|
|
6791
|
+
var DTODesignSystemVersionGetResponse = z232.object({
|
|
6525
6792
|
designSystemVersion: DTODesignSystemVersion
|
|
6526
6793
|
});
|
|
6527
|
-
var DTODesignSystemVersionCreationResponse =
|
|
6794
|
+
var DTODesignSystemVersionCreationResponse = z232.object({
|
|
6528
6795
|
meta: ObjectMeta,
|
|
6529
|
-
version:
|
|
6530
|
-
changeLog:
|
|
6531
|
-
isReadOnly:
|
|
6532
|
-
designSystemId:
|
|
6533
|
-
jobId:
|
|
6534
|
-
});
|
|
6535
|
-
var VersionSQSPayload =
|
|
6536
|
-
jobId:
|
|
6537
|
-
designSystemId:
|
|
6796
|
+
version: z232.string(),
|
|
6797
|
+
changeLog: z232.string(),
|
|
6798
|
+
isReadOnly: z232.boolean(),
|
|
6799
|
+
designSystemId: z232.string(),
|
|
6800
|
+
jobId: z232.string()
|
|
6801
|
+
});
|
|
6802
|
+
var VersionSQSPayload = z232.object({
|
|
6803
|
+
jobId: z232.string(),
|
|
6804
|
+
designSystemId: z232.string(),
|
|
6538
6805
|
input: DTOCreateVersionInput
|
|
6539
6806
|
});
|
|
6540
|
-
var DTODesignSystemVersionJobsResponse =
|
|
6541
|
-
jobs:
|
|
6807
|
+
var DTODesignSystemVersionJobsResponse = z232.object({
|
|
6808
|
+
jobs: z232.array(VersionCreationJob)
|
|
6542
6809
|
});
|
|
6543
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
6810
|
+
var DTODesignSystemVersionJobStatusResponse = z232.object({
|
|
6544
6811
|
job: VersionCreationJob
|
|
6545
6812
|
});
|
|
6546
6813
|
|
|
6547
6814
|
// src/api/dto/design-systems/view.ts
|
|
6548
|
-
import { z as
|
|
6549
|
-
var DTOElementViewColumnSharedAttributes =
|
|
6550
|
-
id:
|
|
6551
|
-
persistentId:
|
|
6552
|
-
width:
|
|
6815
|
+
import { z as z233 } from "zod";
|
|
6816
|
+
var DTOElementViewColumnSharedAttributes = z233.object({
|
|
6817
|
+
id: z233.string(),
|
|
6818
|
+
persistentId: z233.string(),
|
|
6819
|
+
width: z233.number()
|
|
6553
6820
|
});
|
|
6554
6821
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6555
|
-
type:
|
|
6822
|
+
type: z233.literal("BaseProperty"),
|
|
6556
6823
|
basePropertyType: ElementViewBaseColumnType
|
|
6557
6824
|
});
|
|
6558
6825
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6559
|
-
type:
|
|
6560
|
-
propertyDefinitionId:
|
|
6826
|
+
type: z233.literal("PropertyDefinition"),
|
|
6827
|
+
propertyDefinitionId: z233.string()
|
|
6561
6828
|
});
|
|
6562
6829
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6563
|
-
type:
|
|
6564
|
-
themeId:
|
|
6830
|
+
type: z233.literal("Theme"),
|
|
6831
|
+
themeId: z233.string()
|
|
6565
6832
|
});
|
|
6566
|
-
var DTOElementViewColumn =
|
|
6833
|
+
var DTOElementViewColumn = z233.discriminatedUnion("type", [
|
|
6567
6834
|
DTOElementViewBasePropertyColumn,
|
|
6568
6835
|
DTOElementViewPropertyDefinitionColumn,
|
|
6569
6836
|
DTOElementViewThemeColumn
|
|
6570
6837
|
]);
|
|
6571
|
-
var DTOElementView =
|
|
6838
|
+
var DTOElementView = z233.object({
|
|
6572
6839
|
meta: ObjectMeta,
|
|
6573
|
-
persistentId:
|
|
6840
|
+
persistentId: z233.string(),
|
|
6574
6841
|
targetElementType: ElementPropertyTargetType,
|
|
6575
|
-
id:
|
|
6576
|
-
isDefault:
|
|
6577
|
-
columns:
|
|
6578
|
-
});
|
|
6579
|
-
var DTOElementViewsListResponse = z225.object({
|
|
6580
|
-
elementDataViews: z225.array(DTOElementView)
|
|
6581
|
-
});
|
|
6582
|
-
|
|
6583
|
-
// src/api/dto/workspaces/git.ts
|
|
6584
|
-
import { z as z226 } from "zod";
|
|
6585
|
-
var DTOGitOrganization = z226.object({
|
|
6586
|
-
id: z226.string(),
|
|
6587
|
-
name: z226.string(),
|
|
6588
|
-
url: z226.string(),
|
|
6589
|
-
slug: z226.string()
|
|
6590
|
-
});
|
|
6591
|
-
var DTOGitProject = z226.object({
|
|
6592
|
-
id: z226.string(),
|
|
6593
|
-
name: z226.string(),
|
|
6594
|
-
url: z226.string(),
|
|
6595
|
-
slug: z226.string()
|
|
6596
|
-
});
|
|
6597
|
-
var DTOGitRepository = z226.object({
|
|
6598
|
-
id: z226.string(),
|
|
6599
|
-
name: z226.string(),
|
|
6600
|
-
url: z226.string(),
|
|
6601
|
-
slug: z226.string(),
|
|
6602
|
-
defaultBranch: z226.string().optional()
|
|
6603
|
-
});
|
|
6604
|
-
var DTOGitBranch = z226.object({
|
|
6605
|
-
name: z226.string(),
|
|
6606
|
-
lastCommitId: z226.string()
|
|
6607
|
-
});
|
|
6608
|
-
|
|
6609
|
-
// src/api/dto/workspaces/integrations.ts
|
|
6610
|
-
import { z as z227 } from "zod";
|
|
6611
|
-
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6612
|
-
accessToken: true,
|
|
6613
|
-
refreshToken: true
|
|
6614
|
-
});
|
|
6615
|
-
var DTOIntegration = z227.object({
|
|
6616
|
-
id: z227.string(),
|
|
6617
|
-
workspaceId: z227.string(),
|
|
6618
|
-
type: ExtendedIntegrationType,
|
|
6619
|
-
createdAt: z227.coerce.date(),
|
|
6620
|
-
integrationCredentials: z227.array(DTOIntegrationCredentials).optional(),
|
|
6621
|
-
integrationDesignSystems: z227.array(IntegrationDesignSystem).optional()
|
|
6622
|
-
});
|
|
6623
|
-
var DTOIntegrationOAuthGetResponse = z227.object({
|
|
6624
|
-
url: z227.string()
|
|
6625
|
-
});
|
|
6626
|
-
var DTOIntegrationPostResponse = z227.object({
|
|
6627
|
-
integration: DTOIntegration
|
|
6628
|
-
});
|
|
6629
|
-
var DTOIntegrationsGetListResponse = z227.object({
|
|
6630
|
-
integrations: DTOIntegration.array()
|
|
6631
|
-
});
|
|
6632
|
-
|
|
6633
|
-
// src/api/dto/workspaces/invitations.ts
|
|
6634
|
-
import { z as z228 } from "zod";
|
|
6635
|
-
var DTOWorkspaceInvitationInput = z228.object({
|
|
6636
|
-
email: z228.string().email(),
|
|
6637
|
-
role: WorkspaceRoleSchema
|
|
6638
|
-
});
|
|
6639
|
-
var DTOWorkspaceInvitationsListInput = z228.object({
|
|
6640
|
-
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
6641
|
-
designSystemId: z228.string().optional()
|
|
6842
|
+
id: z233.string(),
|
|
6843
|
+
isDefault: z233.boolean(),
|
|
6844
|
+
columns: z233.array(DTOElementViewColumn)
|
|
6642
6845
|
});
|
|
6643
|
-
var
|
|
6644
|
-
|
|
6645
|
-
});
|
|
6646
|
-
var DTOWorkspaceInviteUpdate = z228.object({
|
|
6647
|
-
role: WorkspaceRoleSchema
|
|
6648
|
-
});
|
|
6649
|
-
var DTOWorkspaceInvitationUpdateResponse = z228.object({
|
|
6650
|
-
invitation: WorkspaceInvitation
|
|
6651
|
-
});
|
|
6652
|
-
|
|
6653
|
-
// src/api/dto/workspaces/membership.ts
|
|
6654
|
-
import { z as z231 } from "zod";
|
|
6655
|
-
|
|
6656
|
-
// src/api/dto/workspaces/workspace.ts
|
|
6657
|
-
import { z as z230 } from "zod";
|
|
6658
|
-
|
|
6659
|
-
// src/api/dto/workspaces/npm-registry.ts
|
|
6660
|
-
import { z as z229 } from "zod";
|
|
6661
|
-
var DTONpmRegistryConfigConstants = {
|
|
6662
|
-
passwordPlaceholder: "redacted"
|
|
6663
|
-
};
|
|
6664
|
-
var DTONpmRegistryConfig = z229.object({
|
|
6665
|
-
// Registry basic configuration
|
|
6666
|
-
registryType: NpmRegistryType,
|
|
6667
|
-
registryUrl: z229.string(),
|
|
6668
|
-
customRegistryUrl: z229.string().optional(),
|
|
6669
|
-
// URL of Supernova NPM packages proxy
|
|
6670
|
-
proxyUrl: z229.string(),
|
|
6671
|
-
// Auth configuration
|
|
6672
|
-
authType: NpmRegistryAuthType,
|
|
6673
|
-
accessToken: z229.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6674
|
-
username: z229.string().optional(),
|
|
6675
|
-
password: z229.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6676
|
-
// NPM package scopes for whih the proxy should be enabled
|
|
6677
|
-
enabledScopes: z229.array(z229.string()),
|
|
6678
|
-
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6679
|
-
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6680
|
-
bypassProxy: z229.boolean()
|
|
6681
|
-
});
|
|
6682
|
-
|
|
6683
|
-
// src/api/dto/workspaces/workspace.ts
|
|
6684
|
-
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
6685
|
-
var DTOWorkspace = z230.object({
|
|
6686
|
-
id: z230.string(),
|
|
6687
|
-
profile: DTOWorkspaceProfile,
|
|
6688
|
-
subscription: Subscription,
|
|
6689
|
-
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6690
|
-
});
|
|
6691
|
-
var DTOWorkspaceCreateInput = z230.object({
|
|
6692
|
-
name: z230.string()
|
|
6693
|
-
});
|
|
6694
|
-
var DTOWorkspaceResponse = z230.object({
|
|
6695
|
-
workspace: DTOWorkspace
|
|
6696
|
-
});
|
|
6697
|
-
|
|
6698
|
-
// src/api/dto/workspaces/membership.ts
|
|
6699
|
-
var DTOWorkspaceRole = z231.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6700
|
-
var DTOUserWorkspaceMembership = z231.object({
|
|
6701
|
-
// Workspace the user is a member of
|
|
6702
|
-
workspace: DTOWorkspace,
|
|
6703
|
-
// Assigned role the user has in the workspace
|
|
6704
|
-
role: DTOWorkspaceRole,
|
|
6705
|
-
// Role that determines actual permissions the user has in the workspace
|
|
6706
|
-
// E.g. this is different from the default role when editors are downgraded to viewers
|
|
6707
|
-
// when a workspace's subscription is downgraded to free tier
|
|
6708
|
-
effectiveRole: DTOWorkspaceRole
|
|
6709
|
-
});
|
|
6710
|
-
var DTOWorkspaceMember = z231.object({
|
|
6711
|
-
user: User,
|
|
6712
|
-
role: WorkspaceRoleSchema,
|
|
6713
|
-
effectiveRole: WorkspaceRoleSchema
|
|
6714
|
-
});
|
|
6715
|
-
var DTOUserWorkspaceMembershipsResponse = z231.object({
|
|
6716
|
-
membership: z231.array(DTOUserWorkspaceMembership)
|
|
6717
|
-
});
|
|
6718
|
-
var DTOWorkspaceMembersListResponse = z231.object({
|
|
6719
|
-
members: z231.array(DTOWorkspaceMember)
|
|
6720
|
-
});
|
|
6721
|
-
|
|
6722
|
-
// src/api/dto/workspaces/untyped-data.ts
|
|
6723
|
-
import { z as z232 } from "zod";
|
|
6724
|
-
var DTOWorkspaceUntypedData = WorkspaceUntypedData;
|
|
6725
|
-
var DTOWorkspaceUntypedDataListResponse = z232.object({
|
|
6726
|
-
data: DTOWorkspaceUntypedData.array()
|
|
6727
|
-
});
|
|
6728
|
-
var DTOWorkspaceUntypedDataResponse = z232.object({
|
|
6729
|
-
data: DTOWorkspaceUntypedData
|
|
6730
|
-
});
|
|
6731
|
-
var DTOWorkspaceUntypedDataCreatePayload = z232.object({
|
|
6732
|
-
value: z232.unknown()
|
|
6733
|
-
});
|
|
6734
|
-
var DTOWorkspaceUntypedDataUpdatePayload = z232.object({
|
|
6735
|
-
value: z232.unknown()
|
|
6846
|
+
var DTOElementViewsListResponse = z233.object({
|
|
6847
|
+
elementDataViews: z233.array(DTOElementView)
|
|
6736
6848
|
});
|
|
6737
6849
|
|
|
6738
6850
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
6739
|
-
var DTOAppBootstrapDataQuery =
|
|
6740
|
-
preferredWorkspaceId:
|
|
6741
|
-
preferredDesignSystemId:
|
|
6742
|
-
preferredVersionId:
|
|
6743
|
-
preferredBrandId:
|
|
6851
|
+
var DTOAppBootstrapDataQuery = z234.object({
|
|
6852
|
+
preferredWorkspaceId: z234.string().optional(),
|
|
6853
|
+
preferredDesignSystemId: z234.string().optional(),
|
|
6854
|
+
preferredVersionId: z234.string().optional(),
|
|
6855
|
+
preferredBrandId: z234.string().optional()
|
|
6744
6856
|
});
|
|
6745
|
-
var DTOAppBootstrapDataResponse =
|
|
6857
|
+
var DTOAppBootstrapDataResponse = z234.object({
|
|
6746
6858
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
6747
6859
|
designSystem: DTODesignSystem.optional(),
|
|
6748
6860
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -6750,92 +6862,92 @@ var DTOAppBootstrapDataResponse = z233.object({
|
|
|
6750
6862
|
});
|
|
6751
6863
|
|
|
6752
6864
|
// src/api/dto/collections/token-collection.ts
|
|
6753
|
-
import { z as
|
|
6754
|
-
var DTOTokenCollection =
|
|
6755
|
-
id:
|
|
6756
|
-
persistentId:
|
|
6757
|
-
designSystemVersionId:
|
|
6865
|
+
import { z as z235 } from "zod";
|
|
6866
|
+
var DTOTokenCollection = z235.object({
|
|
6867
|
+
id: z235.string(),
|
|
6868
|
+
persistentId: z235.string(),
|
|
6869
|
+
designSystemVersionId: z235.string(),
|
|
6758
6870
|
meta: ObjectMeta,
|
|
6759
6871
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
6760
|
-
elementPropertyOptionId:
|
|
6761
|
-
createdAt:
|
|
6762
|
-
updatedAt:
|
|
6872
|
+
elementPropertyOptionId: z235.string(),
|
|
6873
|
+
createdAt: z235.coerce.date(),
|
|
6874
|
+
updatedAt: z235.coerce.date(),
|
|
6763
6875
|
origin: CollectionOrigin.optional()
|
|
6764
6876
|
});
|
|
6765
|
-
var DTOTokenCollectionsListReponse =
|
|
6877
|
+
var DTOTokenCollectionsListReponse = z235.object({
|
|
6766
6878
|
collections: DTOTokenCollection.array()
|
|
6767
6879
|
});
|
|
6768
6880
|
|
|
6769
6881
|
// src/api/dto/design-tokens/design-token.ts
|
|
6770
|
-
import { z as
|
|
6882
|
+
import { z as z236 } from "zod";
|
|
6771
6883
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
6772
|
-
|
|
6773
|
-
id:
|
|
6774
|
-
persistentId:
|
|
6775
|
-
designSystemVersionId:
|
|
6884
|
+
z236.object({
|
|
6885
|
+
id: z236.string(),
|
|
6886
|
+
persistentId: z236.string(),
|
|
6887
|
+
designSystemVersionId: z236.string(),
|
|
6776
6888
|
meta: ObjectMeta,
|
|
6777
6889
|
originStyle: DesignTokenOrigin.optional(),
|
|
6778
|
-
brandId:
|
|
6779
|
-
collectionId:
|
|
6780
|
-
updatedAt:
|
|
6890
|
+
brandId: z236.string(),
|
|
6891
|
+
collectionId: z236.string().optional(),
|
|
6892
|
+
updatedAt: z236.coerce.date()
|
|
6781
6893
|
})
|
|
6782
6894
|
);
|
|
6783
|
-
var DTODesignTokenListResponse =
|
|
6895
|
+
var DTODesignTokenListResponse = z236.object({
|
|
6784
6896
|
tokens: DTODesignToken.array()
|
|
6785
6897
|
});
|
|
6786
|
-
var DTODesignTokenResponse =
|
|
6898
|
+
var DTODesignTokenResponse = z236.object({
|
|
6787
6899
|
token: DTODesignToken
|
|
6788
6900
|
});
|
|
6789
|
-
var DTODesignTokenGroup =
|
|
6790
|
-
id:
|
|
6901
|
+
var DTODesignTokenGroup = z236.object({
|
|
6902
|
+
id: z236.string(),
|
|
6791
6903
|
tokenType: DesignTokenType,
|
|
6792
|
-
persistentId:
|
|
6793
|
-
isRoot:
|
|
6794
|
-
brandId:
|
|
6904
|
+
persistentId: z236.string(),
|
|
6905
|
+
isRoot: z236.boolean(),
|
|
6906
|
+
brandId: z236.string(),
|
|
6795
6907
|
meta: ObjectMeta,
|
|
6796
|
-
childrenIds:
|
|
6908
|
+
childrenIds: z236.string().array()
|
|
6797
6909
|
});
|
|
6798
|
-
var DTODesignTokenGroupListResponse =
|
|
6910
|
+
var DTODesignTokenGroupListResponse = z236.object({
|
|
6799
6911
|
groups: DTODesignTokenGroup.array()
|
|
6800
6912
|
});
|
|
6801
|
-
var DTODesignTokenGroupResponse =
|
|
6913
|
+
var DTODesignTokenGroupResponse = z236.object({
|
|
6802
6914
|
group: DTODesignTokenGroup
|
|
6803
6915
|
});
|
|
6804
6916
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
6805
|
-
|
|
6806
|
-
persistentId:
|
|
6917
|
+
z236.object({
|
|
6918
|
+
persistentId: z236.string(),
|
|
6807
6919
|
meta: ObjectMeta,
|
|
6808
|
-
brandId:
|
|
6809
|
-
groupPersistentId:
|
|
6920
|
+
brandId: z236.string(),
|
|
6921
|
+
groupPersistentId: z236.string().optional()
|
|
6810
6922
|
})
|
|
6811
6923
|
);
|
|
6812
|
-
var DTODesignTokenGroupCreatePayload =
|
|
6813
|
-
persistentId:
|
|
6924
|
+
var DTODesignTokenGroupCreatePayload = z236.object({
|
|
6925
|
+
persistentId: z236.string(),
|
|
6814
6926
|
meta: ObjectMeta,
|
|
6815
|
-
brandId:
|
|
6816
|
-
parentId:
|
|
6927
|
+
brandId: z236.string(),
|
|
6928
|
+
parentId: z236.string().optional(),
|
|
6817
6929
|
tokenType: DesignTokenType,
|
|
6818
|
-
childrenIds:
|
|
6930
|
+
childrenIds: z236.string().array()
|
|
6819
6931
|
});
|
|
6820
6932
|
|
|
6821
6933
|
// src/api/dto/documentation/analytics-v2.ts
|
|
6822
|
-
import { z as
|
|
6823
|
-
var DTODocumentationAnalyticsTimeFrame =
|
|
6824
|
-
start:
|
|
6825
|
-
end:
|
|
6934
|
+
import { z as z237 } from "zod";
|
|
6935
|
+
var DTODocumentationAnalyticsTimeFrame = z237.object({
|
|
6936
|
+
start: z237.coerce.date(),
|
|
6937
|
+
end: z237.coerce.date().optional()
|
|
6826
6938
|
});
|
|
6827
|
-
var DTOPublishedDocVisitData =
|
|
6828
|
-
timestamp:
|
|
6829
|
-
versionId:
|
|
6830
|
-
locale:
|
|
6831
|
-
visits:
|
|
6832
|
-
sessions:
|
|
6939
|
+
var DTOPublishedDocVisitData = z237.object({
|
|
6940
|
+
timestamp: z237.coerce.date(),
|
|
6941
|
+
versionId: z237.string(),
|
|
6942
|
+
locale: z237.string().optional(),
|
|
6943
|
+
visits: z237.number(),
|
|
6944
|
+
sessions: z237.number()
|
|
6833
6945
|
});
|
|
6834
6946
|
var DTOPublishedDocPageVisitData = DTOPublishedDocVisitData.extend({
|
|
6835
|
-
pagePersistentId:
|
|
6947
|
+
pagePersistentId: z237.string()
|
|
6836
6948
|
});
|
|
6837
|
-
var DTOPublishedDocVisitHeatMapDay =
|
|
6838
|
-
var DTOPublishedDocVisitHeatMapWeek =
|
|
6949
|
+
var DTOPublishedDocVisitHeatMapDay = z237.number().array().length(12);
|
|
6950
|
+
var DTOPublishedDocVisitHeatMapWeek = z237.object({
|
|
6839
6951
|
/**
|
|
6840
6952
|
* For which timeframe it was calculated
|
|
6841
6953
|
*/
|
|
@@ -6848,71 +6960,65 @@ var DTOPublishedDocVisitHeatMapWeek = z236.object({
|
|
|
6848
6960
|
sat: DTOPublishedDocVisitHeatMapDay,
|
|
6849
6961
|
sun: DTOPublishedDocVisitHeatMapDay
|
|
6850
6962
|
});
|
|
6851
|
-
var
|
|
6963
|
+
var DTOPublishedDocAnalyticsComparisonData = z237.object({
|
|
6852
6964
|
/**
|
|
6853
6965
|
* For which timeframe it was calculated
|
|
6854
6966
|
*/
|
|
6855
6967
|
timeFrame: DTODocumentationAnalyticsTimeFrame,
|
|
6856
|
-
priorVisitCount:
|
|
6857
|
-
priorSessionCount:
|
|
6858
|
-
currentVisitCount:
|
|
6859
|
-
currentSessionCount:
|
|
6968
|
+
priorVisitCount: z237.number(),
|
|
6969
|
+
priorSessionCount: z237.number(),
|
|
6970
|
+
currentVisitCount: z237.number(),
|
|
6971
|
+
currentSessionCount: z237.number()
|
|
6860
6972
|
});
|
|
6861
|
-
var
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
*/
|
|
6866
|
-
analytics: z236.array(DTOPublishedDocPageVisitData),
|
|
6867
|
-
/**
|
|
6868
|
-
* @deprecated
|
|
6869
|
-
*/
|
|
6870
|
-
perPageAnalytics: DTOPublishedDocPageVisitData.array(),
|
|
6871
|
-
// New
|
|
6973
|
+
var DTOPublishedDocPageAnalyticsComparisonData = DTOPublishedDocAnalyticsComparisonData.extend({
|
|
6974
|
+
pagePersistentId: z237.string()
|
|
6975
|
+
});
|
|
6976
|
+
var DTODocumentationPageAnalyticsResponse = z237.object({
|
|
6872
6977
|
globalAnalytics: DTOPublishedDocVisitData.array(),
|
|
6873
6978
|
pageAnalytics: DTOPublishedDocPageVisitData.array(),
|
|
6874
6979
|
heatMapData: DTOPublishedDocVisitHeatMapWeek.array(),
|
|
6875
|
-
comparisonData:
|
|
6980
|
+
comparisonData: DTOPublishedDocAnalyticsComparisonData.array(),
|
|
6981
|
+
pageComparisonData: DTOPublishedDocPageAnalyticsComparisonData.array()
|
|
6876
6982
|
});
|
|
6877
|
-
var DTODocumentationAnalyticsRequest =
|
|
6878
|
-
timeFrames:
|
|
6983
|
+
var DTODocumentationAnalyticsRequest = z237.object({
|
|
6984
|
+
timeFrames: z237.array(DTODocumentationAnalyticsTimeFrame)
|
|
6879
6985
|
});
|
|
6880
6986
|
|
|
6881
6987
|
// src/api/dto/documentation/analytics.ts
|
|
6882
|
-
import { z as
|
|
6883
|
-
var DTODocumentationPageAnalyticsDifference =
|
|
6884
|
-
startDate:
|
|
6885
|
-
endDate:
|
|
6886
|
-
currentVisitCount:
|
|
6887
|
-
currentSessionCount:
|
|
6888
|
-
priorVisitCount:
|
|
6889
|
-
priorSessionCount:
|
|
6988
|
+
import { z as z238 } from "zod";
|
|
6989
|
+
var DTODocumentationPageAnalyticsDifference = z238.object({
|
|
6990
|
+
startDate: z238.coerce.date(),
|
|
6991
|
+
endDate: z238.coerce.date().optional(),
|
|
6992
|
+
currentVisitCount: z238.number(),
|
|
6993
|
+
currentSessionCount: z238.number(),
|
|
6994
|
+
priorVisitCount: z238.number(),
|
|
6995
|
+
priorSessionCount: z238.number()
|
|
6890
6996
|
});
|
|
6891
|
-
var DTODocumentationPageIntervalDifferenceResponse =
|
|
6892
|
-
differences:
|
|
6997
|
+
var DTODocumentationPageIntervalDifferenceResponse = z238.object({
|
|
6998
|
+
differences: z238.array(DTODocumentationPageAnalyticsDifference)
|
|
6893
6999
|
});
|
|
6894
7000
|
|
|
6895
7001
|
// src/api/dto/documentation/anchor.ts
|
|
6896
|
-
import { z as
|
|
7002
|
+
import { z as z239 } from "zod";
|
|
6897
7003
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
6898
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
6899
|
-
anchors:
|
|
7004
|
+
var DTOGetDocumentationPageAnchorsResponse = z239.object({
|
|
7005
|
+
anchors: z239.array(DTODocumentationPageAnchor)
|
|
6900
7006
|
});
|
|
6901
7007
|
|
|
6902
7008
|
// src/api/dto/documentation/approvals.ts
|
|
6903
|
-
import { z as
|
|
6904
|
-
var DTODocumentationPageApprovalState =
|
|
7009
|
+
import { z as z240 } from "zod";
|
|
7010
|
+
var DTODocumentationPageApprovalState = z240.object({
|
|
6905
7011
|
approvalState: DocumentationPageApprovalState,
|
|
6906
|
-
pagePersistentId:
|
|
6907
|
-
updatedByUserId:
|
|
6908
|
-
designSystemVersionId:
|
|
6909
|
-
updatedAt:
|
|
6910
|
-
createdAt:
|
|
6911
|
-
});
|
|
6912
|
-
var DTODocumentationGroupApprovalState =
|
|
6913
|
-
persistentId:
|
|
6914
|
-
groupPersistentId:
|
|
6915
|
-
designSystemVersionId:
|
|
7012
|
+
pagePersistentId: z240.string(),
|
|
7013
|
+
updatedByUserId: z240.string(),
|
|
7014
|
+
designSystemVersionId: z240.string(),
|
|
7015
|
+
updatedAt: z240.coerce.date(),
|
|
7016
|
+
createdAt: z240.coerce.date()
|
|
7017
|
+
});
|
|
7018
|
+
var DTODocumentationGroupApprovalState = z240.object({
|
|
7019
|
+
persistentId: z240.string(),
|
|
7020
|
+
groupPersistentId: z240.string(),
|
|
7021
|
+
designSystemVersionId: z240.string(),
|
|
6916
7022
|
approvalState: DocumentationPageApprovalState
|
|
6917
7023
|
});
|
|
6918
7024
|
|
|
@@ -6920,68 +7026,68 @@ var DTODocumentationGroupApprovalState = z239.object({
|
|
|
6920
7026
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
6921
7027
|
|
|
6922
7028
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6923
|
-
import { z as
|
|
7029
|
+
import { z as z245 } from "zod";
|
|
6924
7030
|
|
|
6925
7031
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6926
|
-
import { z as
|
|
7032
|
+
import { z as z244 } from "zod";
|
|
6927
7033
|
|
|
6928
7034
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6929
|
-
import { z as
|
|
7035
|
+
import { z as z242 } from "zod";
|
|
6930
7036
|
|
|
6931
7037
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
6932
|
-
import { z as
|
|
7038
|
+
import { z as z241 } from "zod";
|
|
6933
7039
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
6934
|
-
var DTODocumentationItemConfigurationV2 =
|
|
6935
|
-
showSidebar:
|
|
6936
|
-
isPrivate:
|
|
6937
|
-
isHidden:
|
|
7040
|
+
var DTODocumentationItemConfigurationV2 = z241.object({
|
|
7041
|
+
showSidebar: z241.boolean(),
|
|
7042
|
+
isPrivate: z241.boolean(),
|
|
7043
|
+
isHidden: z241.boolean(),
|
|
6938
7044
|
header: DTODocumentationItemHeaderV2
|
|
6939
7045
|
});
|
|
6940
7046
|
|
|
6941
7047
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6942
|
-
var DTODocumentationDraftChangeType =
|
|
6943
|
-
var DTODocumentationDraftStateCreated =
|
|
6944
|
-
changeType:
|
|
6945
|
-
});
|
|
6946
|
-
var DTODocumentationDraftStateUpdated =
|
|
6947
|
-
changeType:
|
|
6948
|
-
changes:
|
|
6949
|
-
previousTitle:
|
|
7048
|
+
var DTODocumentationDraftChangeType = z242.enum(["Created", "Updated", "Deleted"]);
|
|
7049
|
+
var DTODocumentationDraftStateCreated = z242.object({
|
|
7050
|
+
changeType: z242.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
7051
|
+
});
|
|
7052
|
+
var DTODocumentationDraftStateUpdated = z242.object({
|
|
7053
|
+
changeType: z242.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
7054
|
+
changes: z242.object({
|
|
7055
|
+
previousTitle: z242.string().optional(),
|
|
6950
7056
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
6951
|
-
previousContentHash:
|
|
7057
|
+
previousContentHash: z242.string().optional()
|
|
6952
7058
|
})
|
|
6953
7059
|
});
|
|
6954
|
-
var DTODocumentationDraftStateDeleted =
|
|
6955
|
-
changeType:
|
|
6956
|
-
deletedAt:
|
|
6957
|
-
deletedByUserId:
|
|
7060
|
+
var DTODocumentationDraftStateDeleted = z242.object({
|
|
7061
|
+
changeType: z242.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
7062
|
+
deletedAt: z242.coerce.date(),
|
|
7063
|
+
deletedByUserId: z242.string()
|
|
6958
7064
|
});
|
|
6959
|
-
var DTODocumentationDraftState =
|
|
7065
|
+
var DTODocumentationDraftState = z242.discriminatedUnion("changeType", [
|
|
6960
7066
|
DTODocumentationDraftStateCreated,
|
|
6961
7067
|
DTODocumentationDraftStateUpdated,
|
|
6962
7068
|
DTODocumentationDraftStateDeleted
|
|
6963
7069
|
]);
|
|
6964
7070
|
|
|
6965
7071
|
// src/api/dto/elements/documentation/metadata.ts
|
|
6966
|
-
import { z as
|
|
6967
|
-
var DTODocumentationPublishMetadata =
|
|
6968
|
-
lastPublishedByUserId:
|
|
6969
|
-
lastPublishedAt:
|
|
7072
|
+
import { z as z243 } from "zod";
|
|
7073
|
+
var DTODocumentationPublishMetadata = z243.object({
|
|
7074
|
+
lastPublishedByUserId: z243.string(),
|
|
7075
|
+
lastPublishedAt: z243.coerce.date()
|
|
6970
7076
|
});
|
|
6971
7077
|
|
|
6972
7078
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6973
|
-
var DTODocumentationPageV2 =
|
|
6974
|
-
id:
|
|
6975
|
-
persistentId:
|
|
6976
|
-
designSystemVersionId:
|
|
6977
|
-
title:
|
|
7079
|
+
var DTODocumentationPageV2 = z244.object({
|
|
7080
|
+
id: z244.string(),
|
|
7081
|
+
persistentId: z244.string(),
|
|
7082
|
+
designSystemVersionId: z244.string(),
|
|
7083
|
+
title: z244.string(),
|
|
6978
7084
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6979
|
-
shortPersistentId:
|
|
6980
|
-
slug:
|
|
6981
|
-
userSlug:
|
|
6982
|
-
createdAt:
|
|
6983
|
-
updatedAt:
|
|
6984
|
-
path:
|
|
7085
|
+
shortPersistentId: z244.string(),
|
|
7086
|
+
slug: z244.string().optional(),
|
|
7087
|
+
userSlug: z244.string().optional(),
|
|
7088
|
+
createdAt: z244.coerce.date(),
|
|
7089
|
+
updatedAt: z244.coerce.date(),
|
|
7090
|
+
path: z244.string(),
|
|
6985
7091
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6986
7092
|
draftState: DTODocumentationDraftState.optional(),
|
|
6987
7093
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -6989,267 +7095,267 @@ var DTODocumentationPageV2 = z243.object({
|
|
|
6989
7095
|
/** Defines the approval state of the documentation page */
|
|
6990
7096
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
6991
7097
|
/** Id of the page document room */
|
|
6992
|
-
liveblocksRoomId:
|
|
7098
|
+
liveblocksRoomId: z244.string().optional(),
|
|
6993
7099
|
// Backward compatibility
|
|
6994
|
-
type:
|
|
7100
|
+
type: z244.literal("Page")
|
|
6995
7101
|
});
|
|
6996
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
7102
|
+
var DTOCreateDocumentationPageInputV2 = z244.object({
|
|
6997
7103
|
// Identifier
|
|
6998
|
-
persistentId:
|
|
7104
|
+
persistentId: z244.string(),
|
|
6999
7105
|
// Page properties
|
|
7000
|
-
title:
|
|
7106
|
+
title: z244.string(),
|
|
7001
7107
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
7002
7108
|
// Page placement properties
|
|
7003
|
-
parentPersistentId:
|
|
7004
|
-
afterPersistentId:
|
|
7109
|
+
parentPersistentId: z244.string(),
|
|
7110
|
+
afterPersistentId: z244.string().nullish()
|
|
7005
7111
|
});
|
|
7006
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
7112
|
+
var DTOUpdateDocumentationPageInputV2 = z244.object({
|
|
7007
7113
|
// Identifier of the page to update
|
|
7008
|
-
id:
|
|
7114
|
+
id: z244.string(),
|
|
7009
7115
|
// Page properties
|
|
7010
|
-
title:
|
|
7116
|
+
title: z244.string().optional(),
|
|
7011
7117
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
7012
7118
|
});
|
|
7013
|
-
var DTOUpdateDocumentationPageDocumentInputV2 =
|
|
7119
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = z244.object({
|
|
7014
7120
|
// Identifier of the page to update
|
|
7015
|
-
id:
|
|
7121
|
+
id: z244.string(),
|
|
7016
7122
|
// Page properties
|
|
7017
|
-
documentItems:
|
|
7123
|
+
documentItems: z244.array(DocumentationPageContentItem)
|
|
7018
7124
|
});
|
|
7019
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
7125
|
+
var DTOMoveDocumentationPageInputV2 = z244.object({
|
|
7020
7126
|
// Identifier of the group to update
|
|
7021
|
-
id:
|
|
7127
|
+
id: z244.string(),
|
|
7022
7128
|
// Page placement properties
|
|
7023
|
-
parentPersistentId:
|
|
7024
|
-
afterPersistentId:
|
|
7129
|
+
parentPersistentId: z244.string(),
|
|
7130
|
+
afterPersistentId: z244.string().nullish()
|
|
7025
7131
|
});
|
|
7026
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
7132
|
+
var DTODuplicateDocumentationPageInputV2 = z244.object({
|
|
7027
7133
|
// Identifier of the page to duplicate from
|
|
7028
|
-
id:
|
|
7134
|
+
id: z244.string(),
|
|
7029
7135
|
// New page persistent id
|
|
7030
|
-
persistentId:
|
|
7136
|
+
persistentId: z244.string(),
|
|
7031
7137
|
// Page placement properties
|
|
7032
|
-
parentPersistentId:
|
|
7033
|
-
afterPersistentId:
|
|
7138
|
+
parentPersistentId: z244.string(),
|
|
7139
|
+
afterPersistentId: z244.string().nullish()
|
|
7034
7140
|
});
|
|
7035
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
7141
|
+
var DTODeleteDocumentationPageInputV2 = z244.object({
|
|
7036
7142
|
// Identifier
|
|
7037
|
-
id:
|
|
7143
|
+
id: z244.string()
|
|
7038
7144
|
});
|
|
7039
|
-
var DTORestoreDocumentationPageInput =
|
|
7040
|
-
persistentId:
|
|
7041
|
-
snapshotId:
|
|
7145
|
+
var DTORestoreDocumentationPageInput = z244.object({
|
|
7146
|
+
persistentId: z244.string(),
|
|
7147
|
+
snapshotId: z244.string().optional()
|
|
7042
7148
|
});
|
|
7043
|
-
var DTORestoreDocumentationGroupInput =
|
|
7044
|
-
persistentId:
|
|
7045
|
-
snapshotId:
|
|
7149
|
+
var DTORestoreDocumentationGroupInput = z244.object({
|
|
7150
|
+
persistentId: z244.string(),
|
|
7151
|
+
snapshotId: z244.string().optional()
|
|
7046
7152
|
});
|
|
7047
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
7048
|
-
persistentId:
|
|
7153
|
+
var DTODocumentationPageApprovalStateChangeInput = z244.object({
|
|
7154
|
+
persistentId: z244.string(),
|
|
7049
7155
|
approvalState: DocumentationPageApprovalState.optional()
|
|
7050
7156
|
});
|
|
7051
7157
|
|
|
7052
7158
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
7053
|
-
var DTODocumentationPageSnapshot =
|
|
7054
|
-
id:
|
|
7055
|
-
designSystemVersionId:
|
|
7056
|
-
createdAt:
|
|
7057
|
-
updatedAt:
|
|
7159
|
+
var DTODocumentationPageSnapshot = z245.object({
|
|
7160
|
+
id: z245.string(),
|
|
7161
|
+
designSystemVersionId: z245.string(),
|
|
7162
|
+
createdAt: z245.string(),
|
|
7163
|
+
updatedAt: z245.string(),
|
|
7058
7164
|
documentationPage: DTODocumentationPageV2,
|
|
7059
|
-
pageContentHash:
|
|
7165
|
+
pageContentHash: z245.string(),
|
|
7060
7166
|
reason: DesignElementSnapshotReason
|
|
7061
7167
|
});
|
|
7062
7168
|
|
|
7063
7169
|
// src/api/dto/documentation/link-preview.ts
|
|
7064
|
-
import { z as
|
|
7065
|
-
var DTODocumentationLinkPreviewResponse =
|
|
7170
|
+
import { z as z246 } from "zod";
|
|
7171
|
+
var DTODocumentationLinkPreviewResponse = z246.object({
|
|
7066
7172
|
linkPreview: DocumentationLinkPreview
|
|
7067
7173
|
});
|
|
7068
|
-
var DTODocumentationLinkPreviewRequest =
|
|
7069
|
-
url:
|
|
7070
|
-
documentationItemPersistentId:
|
|
7174
|
+
var DTODocumentationLinkPreviewRequest = z246.object({
|
|
7175
|
+
url: z246.string().optional(),
|
|
7176
|
+
documentationItemPersistentId: z246.string().optional()
|
|
7071
7177
|
});
|
|
7072
7178
|
|
|
7073
7179
|
// src/api/dto/documentation/publish.ts
|
|
7074
|
-
import { z as
|
|
7180
|
+
import { z as z250 } from "zod";
|
|
7075
7181
|
|
|
7076
7182
|
// src/api/dto/export/exporter.ts
|
|
7077
|
-
import { z as
|
|
7078
|
-
var DTOExporterType =
|
|
7079
|
-
var DTOExporterSource =
|
|
7080
|
-
var DTOExporterMembershipRole =
|
|
7081
|
-
var DTOExporterListQuery =
|
|
7082
|
-
limit:
|
|
7083
|
-
offset:
|
|
7183
|
+
import { z as z247 } from "zod";
|
|
7184
|
+
var DTOExporterType = z247.enum(["documentation", "code"]);
|
|
7185
|
+
var DTOExporterSource = z247.enum(["git", "upload"]);
|
|
7186
|
+
var DTOExporterMembershipRole = z247.enum(["Owner", "OwnerArchived", "User"]);
|
|
7187
|
+
var DTOExporterListQuery = z247.object({
|
|
7188
|
+
limit: z247.coerce.number().optional(),
|
|
7189
|
+
offset: z247.coerce.number().optional(),
|
|
7084
7190
|
type: DTOExporterType.optional(),
|
|
7085
|
-
search:
|
|
7191
|
+
search: z247.string().optional()
|
|
7086
7192
|
});
|
|
7087
|
-
var DTOExporter =
|
|
7088
|
-
id:
|
|
7089
|
-
name:
|
|
7090
|
-
isPrivate:
|
|
7193
|
+
var DTOExporter = z247.object({
|
|
7194
|
+
id: z247.string(),
|
|
7195
|
+
name: z247.string(),
|
|
7196
|
+
isPrivate: z247.boolean(),
|
|
7091
7197
|
exporterType: DTOExporterType,
|
|
7092
|
-
isDefaultDocumentationExporter:
|
|
7093
|
-
iconURL:
|
|
7198
|
+
isDefaultDocumentationExporter: z247.boolean(),
|
|
7199
|
+
iconURL: z247.string().optional(),
|
|
7094
7200
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
7095
7201
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
7096
7202
|
customBlocks: PulsarCustomBlock.array(),
|
|
7097
|
-
blockVariants:
|
|
7098
|
-
homepage:
|
|
7099
|
-
organization:
|
|
7100
|
-
packageId:
|
|
7101
|
-
tags:
|
|
7102
|
-
author:
|
|
7103
|
-
version:
|
|
7104
|
-
description:
|
|
7105
|
-
usesLocale:
|
|
7106
|
-
usesBrands:
|
|
7107
|
-
usesThemes:
|
|
7108
|
-
readme:
|
|
7109
|
-
routingVersion:
|
|
7203
|
+
blockVariants: z247.record(z247.string(), PulsarContributionVariant.array()),
|
|
7204
|
+
homepage: z247.string().optional(),
|
|
7205
|
+
organization: z247.string().optional(),
|
|
7206
|
+
packageId: z247.string().optional(),
|
|
7207
|
+
tags: z247.array(z247.string()),
|
|
7208
|
+
author: z247.string().optional(),
|
|
7209
|
+
version: z247.string(),
|
|
7210
|
+
description: z247.string(),
|
|
7211
|
+
usesLocale: z247.boolean(),
|
|
7212
|
+
usesBrands: z247.boolean(),
|
|
7213
|
+
usesThemes: z247.boolean(),
|
|
7214
|
+
readme: z247.string().optional(),
|
|
7215
|
+
routingVersion: z247.string().optional(),
|
|
7110
7216
|
source: DTOExporterSource,
|
|
7111
|
-
gitProvider:
|
|
7112
|
-
gitUrl: nullishToOptional(
|
|
7113
|
-
gitBranch: nullishToOptional(
|
|
7114
|
-
gitDirectory: nullishToOptional(
|
|
7115
|
-
isDeprecated:
|
|
7116
|
-
deprecationNote:
|
|
7117
|
-
replacementExporterId:
|
|
7118
|
-
});
|
|
7119
|
-
var DTOExporterMembership =
|
|
7120
|
-
workspaceId:
|
|
7121
|
-
exporterId:
|
|
7217
|
+
gitProvider: z247.string().optional(),
|
|
7218
|
+
gitUrl: nullishToOptional(z247.string()),
|
|
7219
|
+
gitBranch: nullishToOptional(z247.string()),
|
|
7220
|
+
gitDirectory: nullishToOptional(z247.string()),
|
|
7221
|
+
isDeprecated: z247.boolean(),
|
|
7222
|
+
deprecationNote: z247.string().optional(),
|
|
7223
|
+
replacementExporterId: z247.string().optional()
|
|
7224
|
+
});
|
|
7225
|
+
var DTOExporterMembership = z247.object({
|
|
7226
|
+
workspaceId: z247.string(),
|
|
7227
|
+
exporterId: z247.string(),
|
|
7122
7228
|
role: DTOExporterMembershipRole
|
|
7123
7229
|
});
|
|
7124
|
-
var DTOExporterResponse =
|
|
7230
|
+
var DTOExporterResponse = z247.object({
|
|
7125
7231
|
exporter: DTOExporter,
|
|
7126
7232
|
membership: DTOExporterMembership
|
|
7127
7233
|
});
|
|
7128
|
-
var DTOExporterListResponse =
|
|
7234
|
+
var DTOExporterListResponse = z247.object({
|
|
7129
7235
|
exporters: DTOExporter.array(),
|
|
7130
7236
|
membership: DTOExporterMembership.array(),
|
|
7131
|
-
total:
|
|
7237
|
+
total: z247.number()
|
|
7132
7238
|
});
|
|
7133
|
-
var DTOExporterGitProviderEnum =
|
|
7134
|
-
var DTOExporterCreateInput =
|
|
7135
|
-
url:
|
|
7239
|
+
var DTOExporterGitProviderEnum = z247.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
7240
|
+
var DTOExporterCreateInput = z247.object({
|
|
7241
|
+
url: z247.string(),
|
|
7136
7242
|
provider: DTOExporterGitProviderEnum
|
|
7137
7243
|
});
|
|
7138
|
-
var DTOExporterUpdateInput =
|
|
7139
|
-
url:
|
|
7244
|
+
var DTOExporterUpdateInput = z247.object({
|
|
7245
|
+
url: z247.string().optional()
|
|
7140
7246
|
});
|
|
7141
|
-
var DTOExporterDeprecationInput =
|
|
7142
|
-
isDeprecated:
|
|
7143
|
-
deprecationNote:
|
|
7144
|
-
replacementExporterId:
|
|
7247
|
+
var DTOExporterDeprecationInput = z247.object({
|
|
7248
|
+
isDeprecated: z247.boolean(),
|
|
7249
|
+
deprecationNote: z247.string().optional(),
|
|
7250
|
+
replacementExporterId: z247.string().optional()
|
|
7145
7251
|
});
|
|
7146
7252
|
|
|
7147
7253
|
// src/api/dto/export/filter.ts
|
|
7148
7254
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
7149
7255
|
|
|
7150
7256
|
// src/api/dto/export/job.ts
|
|
7151
|
-
import { z as
|
|
7152
|
-
var DTOExportJobCreatedBy =
|
|
7153
|
-
userId:
|
|
7154
|
-
userName:
|
|
7257
|
+
import { z as z248 } from "zod";
|
|
7258
|
+
var DTOExportJobCreatedBy = z248.object({
|
|
7259
|
+
userId: z248.string(),
|
|
7260
|
+
userName: z248.string()
|
|
7155
7261
|
});
|
|
7156
|
-
var DTOExportJobDesignSystemPreview =
|
|
7157
|
-
id:
|
|
7262
|
+
var DTOExportJobDesignSystemPreview = z248.object({
|
|
7263
|
+
id: z248.string(),
|
|
7158
7264
|
meta: ObjectMeta
|
|
7159
7265
|
});
|
|
7160
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
7161
|
-
id:
|
|
7266
|
+
var DTOExportJobDesignSystemVersionPreview = z248.object({
|
|
7267
|
+
id: z248.string(),
|
|
7162
7268
|
meta: ObjectMeta,
|
|
7163
|
-
version:
|
|
7164
|
-
isReadonly:
|
|
7269
|
+
version: z248.string(),
|
|
7270
|
+
isReadonly: z248.boolean()
|
|
7165
7271
|
});
|
|
7166
|
-
var DTOExportJobDestinations =
|
|
7272
|
+
var DTOExportJobDestinations = z248.object({
|
|
7167
7273
|
s3: ExporterDestinationS3.optional(),
|
|
7168
7274
|
azure: ExporterDestinationAzure.optional(),
|
|
7169
7275
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
7170
7276
|
github: ExporterDestinationGithub.optional(),
|
|
7171
7277
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
7172
7278
|
documentation: ExporterDestinationDocs.optional(),
|
|
7173
|
-
webhookUrl:
|
|
7279
|
+
webhookUrl: z248.string().optional()
|
|
7174
7280
|
});
|
|
7175
7281
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
7176
7282
|
sndocs: true
|
|
7177
7283
|
}).extend({
|
|
7178
7284
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
7179
7285
|
});
|
|
7180
|
-
var DTOExportJob =
|
|
7181
|
-
id:
|
|
7182
|
-
createdAt:
|
|
7183
|
-
finishedAt:
|
|
7184
|
-
index:
|
|
7286
|
+
var DTOExportJob = z248.object({
|
|
7287
|
+
id: z248.string(),
|
|
7288
|
+
createdAt: z248.coerce.date(),
|
|
7289
|
+
finishedAt: z248.coerce.date().optional(),
|
|
7290
|
+
index: z248.number().optional(),
|
|
7185
7291
|
status: ExportJobStatus,
|
|
7186
|
-
estimatedExecutionTime:
|
|
7292
|
+
estimatedExecutionTime: z248.number().optional(),
|
|
7187
7293
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
7188
7294
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
7189
7295
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
7190
7296
|
destinations: DTOExportJobDestinations,
|
|
7191
|
-
exporterId:
|
|
7192
|
-
scheduleId:
|
|
7297
|
+
exporterId: z248.string(),
|
|
7298
|
+
scheduleId: z248.string().optional(),
|
|
7193
7299
|
result: DTOExportJobResult.optional(),
|
|
7194
|
-
brandPersistentId:
|
|
7195
|
-
themePersistentId:
|
|
7196
|
-
themePersistentIds:
|
|
7300
|
+
brandPersistentId: z248.string().optional(),
|
|
7301
|
+
themePersistentId: z248.string().optional(),
|
|
7302
|
+
themePersistentIds: z248.string().array().optional(),
|
|
7197
7303
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
7198
7304
|
});
|
|
7199
|
-
var DTOExportJobResponse =
|
|
7305
|
+
var DTOExportJobResponse = z248.object({
|
|
7200
7306
|
job: DTOExportJob
|
|
7201
7307
|
});
|
|
7202
|
-
var DTOExportJobResponseLegacy =
|
|
7203
|
-
job:
|
|
7204
|
-
id:
|
|
7308
|
+
var DTOExportJobResponseLegacy = z248.object({
|
|
7309
|
+
job: z248.object({
|
|
7310
|
+
id: z248.string(),
|
|
7205
7311
|
status: ExportJobStatus
|
|
7206
7312
|
})
|
|
7207
7313
|
});
|
|
7208
|
-
var DTOExportJobCreateInput =
|
|
7209
|
-
designSystemId:
|
|
7210
|
-
designSystemVersionId:
|
|
7211
|
-
exporterId:
|
|
7212
|
-
brandId:
|
|
7213
|
-
themeId:
|
|
7214
|
-
themePersistentIds:
|
|
7314
|
+
var DTOExportJobCreateInput = z248.object({
|
|
7315
|
+
designSystemId: z248.string(),
|
|
7316
|
+
designSystemVersionId: z248.string(),
|
|
7317
|
+
exporterId: z248.string(),
|
|
7318
|
+
brandId: z248.string().optional(),
|
|
7319
|
+
themeId: z248.string().optional(),
|
|
7320
|
+
themePersistentIds: z248.string().array().optional(),
|
|
7215
7321
|
destinations: DTOExportJobDestinations,
|
|
7216
7322
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7217
|
-
previewMode:
|
|
7323
|
+
previewMode: z248.boolean().optional()
|
|
7218
7324
|
});
|
|
7219
7325
|
|
|
7220
7326
|
// src/api/dto/export/pipeline.ts
|
|
7221
|
-
import { z as
|
|
7222
|
-
var DTOPipelineListQuery =
|
|
7223
|
-
designSystemId:
|
|
7224
|
-
exporterId:
|
|
7225
|
-
latestJobsLimit:
|
|
7226
|
-
});
|
|
7227
|
-
var DTOPipeline =
|
|
7228
|
-
id:
|
|
7229
|
-
name:
|
|
7327
|
+
import { z as z249 } from "zod";
|
|
7328
|
+
var DTOPipelineListQuery = z249.object({
|
|
7329
|
+
designSystemId: z249.string().optional(),
|
|
7330
|
+
exporterId: z249.string().optional(),
|
|
7331
|
+
latestJobsLimit: z249.coerce.number().optional()
|
|
7332
|
+
});
|
|
7333
|
+
var DTOPipeline = z249.object({
|
|
7334
|
+
id: z249.string(),
|
|
7335
|
+
name: z249.string(),
|
|
7230
7336
|
eventType: PipelineEventType,
|
|
7231
|
-
isEnabled:
|
|
7232
|
-
workspaceId:
|
|
7233
|
-
designSystemId:
|
|
7234
|
-
exporterId:
|
|
7235
|
-
brandPersistentId:
|
|
7236
|
-
themePersistentId:
|
|
7237
|
-
themePersistentIds:
|
|
7337
|
+
isEnabled: z249.boolean(),
|
|
7338
|
+
workspaceId: z249.string(),
|
|
7339
|
+
designSystemId: z249.string(),
|
|
7340
|
+
exporterId: z249.string(),
|
|
7341
|
+
brandPersistentId: z249.string().optional(),
|
|
7342
|
+
themePersistentId: z249.string().optional(),
|
|
7343
|
+
themePersistentIds: z249.string().array().optional(),
|
|
7238
7344
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7239
7345
|
...ExportDestinationsMap.shape,
|
|
7240
7346
|
latestJobs: DTOExportJob.array(),
|
|
7241
|
-
isExporterDeprecated:
|
|
7347
|
+
isExporterDeprecated: z249.boolean()
|
|
7242
7348
|
});
|
|
7243
|
-
var DTOPipelineListResponse =
|
|
7349
|
+
var DTOPipelineListResponse = z249.object({
|
|
7244
7350
|
pipelines: DTOPipeline.array()
|
|
7245
7351
|
});
|
|
7246
|
-
var DTOPipelineResponse =
|
|
7352
|
+
var DTOPipelineResponse = z249.object({
|
|
7247
7353
|
pipeline: DTOPipeline
|
|
7248
7354
|
});
|
|
7249
7355
|
|
|
7250
7356
|
// src/api/dto/documentation/publish.ts
|
|
7251
7357
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
7252
|
-
var DTOPublishDocumentationRequest =
|
|
7358
|
+
var DTOPublishDocumentationRequest = z250.object({
|
|
7253
7359
|
environment: PublishedDocEnvironment,
|
|
7254
7360
|
/**
|
|
7255
7361
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -7257,66 +7363,66 @@ var DTOPublishDocumentationRequest = z249.object({
|
|
|
7257
7363
|
*/
|
|
7258
7364
|
changes: DTOPublishDocumentationChanges.optional()
|
|
7259
7365
|
});
|
|
7260
|
-
var DTOPublishDocumentationResponse =
|
|
7366
|
+
var DTOPublishDocumentationResponse = z250.object({
|
|
7261
7367
|
job: DTOExportJob
|
|
7262
7368
|
});
|
|
7263
7369
|
|
|
7264
7370
|
// src/api/dto/documentation/room.ts
|
|
7265
|
-
import { z as
|
|
7266
|
-
var DTODocumentationPageRoom =
|
|
7267
|
-
id:
|
|
7371
|
+
import { z as z251 } from "zod";
|
|
7372
|
+
var DTODocumentationPageRoom = z251.object({
|
|
7373
|
+
id: z251.string()
|
|
7268
7374
|
});
|
|
7269
|
-
var DTODocumentationPageRoomResponse =
|
|
7375
|
+
var DTODocumentationPageRoomResponse = z251.object({
|
|
7270
7376
|
room: DTODocumentationPageRoom
|
|
7271
7377
|
});
|
|
7272
7378
|
|
|
7273
7379
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
7274
|
-
import
|
|
7275
|
-
var DTOFigmaComponentGroup =
|
|
7276
|
-
id:
|
|
7277
|
-
designSystemVersionId:
|
|
7278
|
-
persistentId:
|
|
7279
|
-
isRoot:
|
|
7280
|
-
brandId:
|
|
7380
|
+
import z252 from "zod";
|
|
7381
|
+
var DTOFigmaComponentGroup = z252.object({
|
|
7382
|
+
id: z252.string(),
|
|
7383
|
+
designSystemVersionId: z252.string(),
|
|
7384
|
+
persistentId: z252.string(),
|
|
7385
|
+
isRoot: z252.boolean(),
|
|
7386
|
+
brandId: z252.string(),
|
|
7281
7387
|
meta: DTOObjectMeta,
|
|
7282
|
-
childrenIds:
|
|
7388
|
+
childrenIds: z252.string().array()
|
|
7283
7389
|
});
|
|
7284
|
-
var DTOFigmaComponentGroupListResponse =
|
|
7390
|
+
var DTOFigmaComponentGroupListResponse = z252.object({
|
|
7285
7391
|
groups: DTOFigmaComponentGroup.array()
|
|
7286
7392
|
});
|
|
7287
7393
|
|
|
7288
7394
|
// src/api/dto/elements/components/figma-component.ts
|
|
7289
|
-
import { z as
|
|
7395
|
+
import { z as z253 } from "zod";
|
|
7290
7396
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
7291
|
-
var DTOFigmaComponentPropertyMap =
|
|
7292
|
-
var DTOFigmaComponent =
|
|
7293
|
-
id:
|
|
7294
|
-
persistentId:
|
|
7295
|
-
designSystemVersionId:
|
|
7296
|
-
brandId:
|
|
7297
|
-
thumbnailUrl:
|
|
7298
|
-
svgUrl:
|
|
7299
|
-
exportProperties:
|
|
7300
|
-
isAsset:
|
|
7397
|
+
var DTOFigmaComponentPropertyMap = z253.record(DTOFigmaComponentProperty);
|
|
7398
|
+
var DTOFigmaComponent = z253.object({
|
|
7399
|
+
id: z253.string(),
|
|
7400
|
+
persistentId: z253.string(),
|
|
7401
|
+
designSystemVersionId: z253.string(),
|
|
7402
|
+
brandId: z253.string(),
|
|
7403
|
+
thumbnailUrl: z253.string().optional(),
|
|
7404
|
+
svgUrl: z253.string().optional(),
|
|
7405
|
+
exportProperties: z253.object({
|
|
7406
|
+
isAsset: z253.boolean()
|
|
7301
7407
|
}),
|
|
7302
|
-
createdAt:
|
|
7303
|
-
updatedAt:
|
|
7408
|
+
createdAt: z253.coerce.date(),
|
|
7409
|
+
updatedAt: z253.coerce.date(),
|
|
7304
7410
|
meta: ObjectMeta,
|
|
7305
7411
|
originComponent: FigmaComponentOrigin.optional(),
|
|
7306
|
-
parentComponentPersistentId:
|
|
7307
|
-
childrenPersistentIds:
|
|
7412
|
+
parentComponentPersistentId: z253.string().optional(),
|
|
7413
|
+
childrenPersistentIds: z253.string().array().optional(),
|
|
7308
7414
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
7309
|
-
variantPropertyValues:
|
|
7415
|
+
variantPropertyValues: z253.record(z253.string()).optional()
|
|
7310
7416
|
});
|
|
7311
|
-
var DTOFigmaComponentListResponse =
|
|
7417
|
+
var DTOFigmaComponentListResponse = z253.object({
|
|
7312
7418
|
components: DTOFigmaComponent.array()
|
|
7313
7419
|
});
|
|
7314
7420
|
|
|
7315
7421
|
// src/api/dto/elements/documentation/group-action.ts
|
|
7316
|
-
import { z as
|
|
7422
|
+
import { z as z255 } from "zod";
|
|
7317
7423
|
|
|
7318
7424
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
7319
|
-
import { z as
|
|
7425
|
+
import { z as z254 } from "zod";
|
|
7320
7426
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
7321
7427
|
sortOrder: true,
|
|
7322
7428
|
parentPersistentId: true,
|
|
@@ -7326,13 +7432,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
7326
7432
|
data: true,
|
|
7327
7433
|
shortPersistentId: true
|
|
7328
7434
|
}).extend({
|
|
7329
|
-
title:
|
|
7330
|
-
isRoot:
|
|
7331
|
-
childrenIds:
|
|
7435
|
+
title: z254.string(),
|
|
7436
|
+
isRoot: z254.boolean(),
|
|
7437
|
+
childrenIds: z254.array(z254.string()),
|
|
7332
7438
|
groupBehavior: DocumentationGroupBehavior,
|
|
7333
|
-
shortPersistentId:
|
|
7439
|
+
shortPersistentId: z254.string(),
|
|
7334
7440
|
configuration: DTODocumentationItemConfigurationV2,
|
|
7335
|
-
type:
|
|
7441
|
+
type: z254.literal("Group"),
|
|
7336
7442
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
7337
7443
|
draftState: DTODocumentationDraftState.optional(),
|
|
7338
7444
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -7340,127 +7446,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
7340
7446
|
//** An approval state for frontend to utilize. */
|
|
7341
7447
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
7342
7448
|
});
|
|
7343
|
-
var DTOCreateDocumentationGroupInput =
|
|
7449
|
+
var DTOCreateDocumentationGroupInput = z254.object({
|
|
7344
7450
|
// Identifier
|
|
7345
|
-
persistentId:
|
|
7451
|
+
persistentId: z254.string(),
|
|
7346
7452
|
// Group properties
|
|
7347
|
-
title:
|
|
7453
|
+
title: z254.string(),
|
|
7348
7454
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
7349
7455
|
// Group placement properties
|
|
7350
|
-
afterPersistentId:
|
|
7351
|
-
parentPersistentId:
|
|
7456
|
+
afterPersistentId: z254.string().nullish(),
|
|
7457
|
+
parentPersistentId: z254.string()
|
|
7352
7458
|
});
|
|
7353
|
-
var DTOUpdateDocumentationGroupInput =
|
|
7459
|
+
var DTOUpdateDocumentationGroupInput = z254.object({
|
|
7354
7460
|
// Identifier of the group to update
|
|
7355
|
-
id:
|
|
7461
|
+
id: z254.string(),
|
|
7356
7462
|
// Group properties
|
|
7357
|
-
title:
|
|
7463
|
+
title: z254.string().optional(),
|
|
7358
7464
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
7359
7465
|
});
|
|
7360
|
-
var DTOMoveDocumentationGroupInput =
|
|
7466
|
+
var DTOMoveDocumentationGroupInput = z254.object({
|
|
7361
7467
|
// Identifier of the group to update
|
|
7362
|
-
id:
|
|
7468
|
+
id: z254.string(),
|
|
7363
7469
|
// Group placement properties
|
|
7364
|
-
parentPersistentId:
|
|
7365
|
-
afterPersistentId:
|
|
7470
|
+
parentPersistentId: z254.string(),
|
|
7471
|
+
afterPersistentId: z254.string().nullish()
|
|
7366
7472
|
});
|
|
7367
|
-
var DTODuplicateDocumentationGroupInput =
|
|
7473
|
+
var DTODuplicateDocumentationGroupInput = z254.object({
|
|
7368
7474
|
// Identifier of the group to duplicate from
|
|
7369
|
-
id:
|
|
7475
|
+
id: z254.string(),
|
|
7370
7476
|
// New group persistent id
|
|
7371
|
-
persistentId:
|
|
7477
|
+
persistentId: z254.string(),
|
|
7372
7478
|
// Group placement properties
|
|
7373
|
-
afterPersistentId:
|
|
7374
|
-
parentPersistentId:
|
|
7479
|
+
afterPersistentId: z254.string().nullish(),
|
|
7480
|
+
parentPersistentId: z254.string()
|
|
7375
7481
|
});
|
|
7376
|
-
var DTOCreateDocumentationTabInput =
|
|
7482
|
+
var DTOCreateDocumentationTabInput = z254.object({
|
|
7377
7483
|
// New group persistent id
|
|
7378
|
-
persistentId:
|
|
7484
|
+
persistentId: z254.string(),
|
|
7379
7485
|
// If this is page, we will attempt to convert it to tab
|
|
7380
7486
|
// If this is tab group, we will add a new tab to it
|
|
7381
|
-
fromItemPersistentId:
|
|
7382
|
-
tabName:
|
|
7487
|
+
fromItemPersistentId: z254.string(),
|
|
7488
|
+
tabName: z254.string()
|
|
7383
7489
|
});
|
|
7384
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
7490
|
+
var DTODeleteDocumentationTabGroupInput = z254.object({
|
|
7385
7491
|
// Deleted group id
|
|
7386
|
-
id:
|
|
7492
|
+
id: z254.string()
|
|
7387
7493
|
});
|
|
7388
|
-
var DTODeleteDocumentationGroupInput =
|
|
7494
|
+
var DTODeleteDocumentationGroupInput = z254.object({
|
|
7389
7495
|
// Identifier
|
|
7390
|
-
id:
|
|
7496
|
+
id: z254.string(),
|
|
7391
7497
|
// Deletion options
|
|
7392
|
-
deleteSubtree:
|
|
7498
|
+
deleteSubtree: z254.boolean().default(false)
|
|
7393
7499
|
});
|
|
7394
7500
|
|
|
7395
7501
|
// src/api/dto/elements/documentation/group-action.ts
|
|
7396
|
-
var SuccessPayload =
|
|
7397
|
-
success:
|
|
7502
|
+
var SuccessPayload = z255.object({
|
|
7503
|
+
success: z255.literal(true)
|
|
7398
7504
|
});
|
|
7399
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
7400
|
-
type:
|
|
7505
|
+
var DTODocumentationGroupCreateActionOutputV2 = z255.object({
|
|
7506
|
+
type: z255.literal("DocumentationGroupCreate"),
|
|
7401
7507
|
output: SuccessPayload
|
|
7402
7508
|
});
|
|
7403
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
7404
|
-
type:
|
|
7509
|
+
var DTODocumentationTabCreateActionOutputV2 = z255.object({
|
|
7510
|
+
type: z255.literal("DocumentationTabCreate"),
|
|
7405
7511
|
output: SuccessPayload
|
|
7406
7512
|
});
|
|
7407
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
7408
|
-
type:
|
|
7513
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z255.object({
|
|
7514
|
+
type: z255.literal("DocumentationGroupUpdate"),
|
|
7409
7515
|
output: SuccessPayload
|
|
7410
7516
|
});
|
|
7411
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
7412
|
-
type:
|
|
7517
|
+
var DTODocumentationGroupMoveActionOutputV2 = z255.object({
|
|
7518
|
+
type: z255.literal("DocumentationGroupMove"),
|
|
7413
7519
|
output: SuccessPayload
|
|
7414
7520
|
});
|
|
7415
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
7416
|
-
type:
|
|
7521
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z255.object({
|
|
7522
|
+
type: z255.literal("DocumentationGroupDuplicate"),
|
|
7417
7523
|
output: SuccessPayload
|
|
7418
7524
|
});
|
|
7419
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
7420
|
-
type:
|
|
7525
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z255.object({
|
|
7526
|
+
type: z255.literal("DocumentationGroupDelete"),
|
|
7421
7527
|
output: SuccessPayload
|
|
7422
7528
|
});
|
|
7423
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
7424
|
-
type:
|
|
7529
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z255.object({
|
|
7530
|
+
type: z255.literal("DocumentationTabGroupDelete"),
|
|
7425
7531
|
output: SuccessPayload
|
|
7426
7532
|
});
|
|
7427
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
7428
|
-
type:
|
|
7533
|
+
var DTODocumentationGroupCreateActionInputV2 = z255.object({
|
|
7534
|
+
type: z255.literal("DocumentationGroupCreate"),
|
|
7429
7535
|
input: DTOCreateDocumentationGroupInput
|
|
7430
7536
|
});
|
|
7431
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
7432
|
-
type:
|
|
7537
|
+
var DTODocumentationTabCreateActionInputV2 = z255.object({
|
|
7538
|
+
type: z255.literal("DocumentationTabCreate"),
|
|
7433
7539
|
input: DTOCreateDocumentationTabInput
|
|
7434
7540
|
});
|
|
7435
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
7436
|
-
type:
|
|
7541
|
+
var DTODocumentationGroupUpdateActionInputV2 = z255.object({
|
|
7542
|
+
type: z255.literal("DocumentationGroupUpdate"),
|
|
7437
7543
|
input: DTOUpdateDocumentationGroupInput
|
|
7438
7544
|
});
|
|
7439
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
7440
|
-
type:
|
|
7545
|
+
var DTODocumentationGroupMoveActionInputV2 = z255.object({
|
|
7546
|
+
type: z255.literal("DocumentationGroupMove"),
|
|
7441
7547
|
input: DTOMoveDocumentationGroupInput
|
|
7442
7548
|
});
|
|
7443
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
7444
|
-
type:
|
|
7549
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z255.object({
|
|
7550
|
+
type: z255.literal("DocumentationGroupDuplicate"),
|
|
7445
7551
|
input: DTODuplicateDocumentationGroupInput
|
|
7446
7552
|
});
|
|
7447
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
7448
|
-
type:
|
|
7553
|
+
var DTODocumentationGroupDeleteActionInputV2 = z255.object({
|
|
7554
|
+
type: z255.literal("DocumentationGroupDelete"),
|
|
7449
7555
|
input: DTODeleteDocumentationGroupInput
|
|
7450
7556
|
});
|
|
7451
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
7452
|
-
type:
|
|
7557
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z255.object({
|
|
7558
|
+
type: z255.literal("DocumentationTabGroupDelete"),
|
|
7453
7559
|
input: DTODeleteDocumentationTabGroupInput
|
|
7454
7560
|
});
|
|
7455
7561
|
|
|
7456
7562
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
7457
|
-
import { z as
|
|
7563
|
+
import { z as z257 } from "zod";
|
|
7458
7564
|
|
|
7459
7565
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
7460
|
-
import { z as
|
|
7461
|
-
var DocumentationColorV1 =
|
|
7462
|
-
aliasTo:
|
|
7463
|
-
value:
|
|
7566
|
+
import { z as z256 } from "zod";
|
|
7567
|
+
var DocumentationColorV1 = z256.object({
|
|
7568
|
+
aliasTo: z256.string().optional(),
|
|
7569
|
+
value: z256.string().optional()
|
|
7464
7570
|
});
|
|
7465
7571
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
7466
7572
|
foregroundColor: true,
|
|
@@ -7469,10 +7575,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
7469
7575
|
foregroundColor: DocumentationColorV1.optional(),
|
|
7470
7576
|
backgroundColor: DocumentationColorV1.optional()
|
|
7471
7577
|
});
|
|
7472
|
-
var DTODocumentationItemConfigurationV1 =
|
|
7473
|
-
showSidebar:
|
|
7474
|
-
isPrivate:
|
|
7475
|
-
isHidden:
|
|
7578
|
+
var DTODocumentationItemConfigurationV1 = z256.object({
|
|
7579
|
+
showSidebar: z256.boolean(),
|
|
7580
|
+
isPrivate: z256.boolean(),
|
|
7581
|
+
isHidden: z256.boolean(),
|
|
7476
7582
|
header: DTODocumentationItemHeaderV1
|
|
7477
7583
|
});
|
|
7478
7584
|
|
|
@@ -7486,123 +7592,145 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
7486
7592
|
data: true,
|
|
7487
7593
|
shortPersistentId: true
|
|
7488
7594
|
}).extend({
|
|
7489
|
-
title:
|
|
7490
|
-
isRoot:
|
|
7491
|
-
childrenIds:
|
|
7595
|
+
title: z257.string(),
|
|
7596
|
+
isRoot: z257.boolean(),
|
|
7597
|
+
childrenIds: z257.array(z257.string()),
|
|
7492
7598
|
groupBehavior: DocumentationGroupBehavior,
|
|
7493
|
-
shortPersistentId:
|
|
7494
|
-
type:
|
|
7599
|
+
shortPersistentId: z257.string(),
|
|
7600
|
+
type: z257.literal("Group")
|
|
7495
7601
|
});
|
|
7496
7602
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
7497
7603
|
configuration: DTODocumentationItemConfigurationV1
|
|
7498
7604
|
});
|
|
7499
7605
|
|
|
7500
7606
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
7501
|
-
import { z as
|
|
7502
|
-
var DTODocumentationHierarchyV2 =
|
|
7503
|
-
pages:
|
|
7607
|
+
import { z as z258 } from "zod";
|
|
7608
|
+
var DTODocumentationHierarchyV2 = z258.object({
|
|
7609
|
+
pages: z258.array(
|
|
7504
7610
|
DTODocumentationPageV2.extend({
|
|
7505
7611
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7506
7612
|
draftState: DTODocumentationDraftState.optional()
|
|
7507
7613
|
})
|
|
7508
7614
|
),
|
|
7509
|
-
groups:
|
|
7615
|
+
groups: z258.array(
|
|
7510
7616
|
DTODocumentationGroupV2.extend({
|
|
7511
7617
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7512
7618
|
draftState: DTODocumentationDraftState.optional()
|
|
7513
7619
|
})
|
|
7514
7620
|
),
|
|
7515
7621
|
/** True if the documentation was already published, false otherwise. */
|
|
7516
|
-
hasPublishedDocumentationContent:
|
|
7622
|
+
hasPublishedDocumentationContent: z258.boolean()
|
|
7517
7623
|
});
|
|
7518
7624
|
|
|
7519
7625
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
7520
|
-
import { z as
|
|
7521
|
-
var SuccessPayload2 =
|
|
7522
|
-
success:
|
|
7626
|
+
import { z as z259 } from "zod";
|
|
7627
|
+
var SuccessPayload2 = z259.object({
|
|
7628
|
+
success: z259.literal(true)
|
|
7523
7629
|
});
|
|
7524
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
7525
|
-
type:
|
|
7630
|
+
var DTODocumentationPageCreateActionOutputV2 = z259.object({
|
|
7631
|
+
type: z259.literal("DocumentationPageCreate"),
|
|
7526
7632
|
output: SuccessPayload2
|
|
7527
7633
|
});
|
|
7528
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
7529
|
-
type:
|
|
7634
|
+
var DTODocumentationPageUpdateActionOutputV2 = z259.object({
|
|
7635
|
+
type: z259.literal("DocumentationPageUpdate"),
|
|
7530
7636
|
output: SuccessPayload2
|
|
7531
7637
|
});
|
|
7532
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
7533
|
-
type:
|
|
7638
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z259.object({
|
|
7639
|
+
type: z259.literal("DocumentationPageUpdateDocument"),
|
|
7534
7640
|
output: SuccessPayload2
|
|
7535
7641
|
});
|
|
7536
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
7537
|
-
type:
|
|
7642
|
+
var DTODocumentationPageMoveActionOutputV2 = z259.object({
|
|
7643
|
+
type: z259.literal("DocumentationPageMove"),
|
|
7538
7644
|
output: SuccessPayload2
|
|
7539
7645
|
});
|
|
7540
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
7541
|
-
type:
|
|
7646
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z259.object({
|
|
7647
|
+
type: z259.literal("DocumentationPageDuplicate"),
|
|
7542
7648
|
output: SuccessPayload2
|
|
7543
7649
|
});
|
|
7544
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
7545
|
-
type:
|
|
7650
|
+
var DTODocumentationPageDeleteActionOutputV2 = z259.object({
|
|
7651
|
+
type: z259.literal("DocumentationPageDelete"),
|
|
7546
7652
|
output: SuccessPayload2
|
|
7547
7653
|
});
|
|
7548
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
7549
|
-
type:
|
|
7654
|
+
var DTODocumentationPageRestoreActionOutput = z259.object({
|
|
7655
|
+
type: z259.literal("DocumentationPageRestore"),
|
|
7550
7656
|
output: SuccessPayload2
|
|
7551
7657
|
});
|
|
7552
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
7553
|
-
type:
|
|
7658
|
+
var DTODocumentationGroupRestoreActionOutput = z259.object({
|
|
7659
|
+
type: z259.literal("DocumentationGroupRestore"),
|
|
7554
7660
|
output: SuccessPayload2
|
|
7555
7661
|
});
|
|
7556
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
7557
|
-
type:
|
|
7662
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z259.object({
|
|
7663
|
+
type: z259.literal("DocumentationPageApprovalStateChange"),
|
|
7558
7664
|
output: SuccessPayload2
|
|
7559
7665
|
});
|
|
7560
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
7561
|
-
type:
|
|
7666
|
+
var DTODocumentationPageCreateActionInputV2 = z259.object({
|
|
7667
|
+
type: z259.literal("DocumentationPageCreate"),
|
|
7562
7668
|
input: DTOCreateDocumentationPageInputV2
|
|
7563
7669
|
});
|
|
7564
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
7565
|
-
type:
|
|
7670
|
+
var DTODocumentationPageUpdateActionInputV2 = z259.object({
|
|
7671
|
+
type: z259.literal("DocumentationPageUpdate"),
|
|
7566
7672
|
input: DTOUpdateDocumentationPageInputV2
|
|
7567
7673
|
});
|
|
7568
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
7569
|
-
type:
|
|
7674
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z259.object({
|
|
7675
|
+
type: z259.literal("DocumentationPageUpdateDocument"),
|
|
7570
7676
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
7571
7677
|
});
|
|
7572
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
7573
|
-
type:
|
|
7678
|
+
var DTODocumentationPageMoveActionInputV2 = z259.object({
|
|
7679
|
+
type: z259.literal("DocumentationPageMove"),
|
|
7574
7680
|
input: DTOMoveDocumentationPageInputV2
|
|
7575
7681
|
});
|
|
7576
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
7577
|
-
type:
|
|
7682
|
+
var DTODocumentationPageDuplicateActionInputV2 = z259.object({
|
|
7683
|
+
type: z259.literal("DocumentationPageDuplicate"),
|
|
7578
7684
|
input: DTODuplicateDocumentationPageInputV2
|
|
7579
7685
|
});
|
|
7580
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
7581
|
-
type:
|
|
7686
|
+
var DTODocumentationPageDeleteActionInputV2 = z259.object({
|
|
7687
|
+
type: z259.literal("DocumentationPageDelete"),
|
|
7582
7688
|
input: DTODeleteDocumentationPageInputV2
|
|
7583
7689
|
});
|
|
7584
|
-
var DTODocumentationPageRestoreActionInput =
|
|
7585
|
-
type:
|
|
7690
|
+
var DTODocumentationPageRestoreActionInput = z259.object({
|
|
7691
|
+
type: z259.literal("DocumentationPageRestore"),
|
|
7586
7692
|
input: DTORestoreDocumentationPageInput
|
|
7587
7693
|
});
|
|
7588
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
7589
|
-
type:
|
|
7694
|
+
var DTODocumentationGroupRestoreActionInput = z259.object({
|
|
7695
|
+
type: z259.literal("DocumentationGroupRestore"),
|
|
7590
7696
|
input: DTORestoreDocumentationGroupInput
|
|
7591
7697
|
});
|
|
7592
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
7593
|
-
type:
|
|
7698
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z259.object({
|
|
7699
|
+
type: z259.literal("DocumentationPageApprovalStateChange"),
|
|
7594
7700
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
7595
7701
|
});
|
|
7596
7702
|
|
|
7597
7703
|
// src/api/dto/elements/documentation/page-content.ts
|
|
7598
|
-
import { z as
|
|
7704
|
+
import { z as z260 } from "zod";
|
|
7599
7705
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
7600
|
-
var DTODocumentationPageContentGetResponse =
|
|
7706
|
+
var DTODocumentationPageContentGetResponse = z260.object({
|
|
7601
7707
|
pageContent: DTODocumentationPageContent
|
|
7602
7708
|
});
|
|
7603
7709
|
|
|
7710
|
+
// src/api/dto/elements/documentation/page-dependencies.ts
|
|
7711
|
+
import { z as z261 } from "zod";
|
|
7712
|
+
var DTODocumentationPageDependencies = z261.object({
|
|
7713
|
+
id: z261.string(),
|
|
7714
|
+
designSystemVersionId: z261.string(),
|
|
7715
|
+
createdAt: z261.coerce.date(),
|
|
7716
|
+
updatedAt: z261.coerce.date(),
|
|
7717
|
+
documentationPageId: z261.string(),
|
|
7718
|
+
tokenPersistentIds: z261.array(z261.string()),
|
|
7719
|
+
figmaComponentPersistentIds: z261.array(z261.string()),
|
|
7720
|
+
componentPersistentIds: z261.array(z261.string()),
|
|
7721
|
+
figmaNodePersistentIds: z261.array(z261.string()),
|
|
7722
|
+
groupPersistentIds: z261.array(z261.string()),
|
|
7723
|
+
propertyPersistentIds: z261.array(z261.string()),
|
|
7724
|
+
themePersistentIds: z261.array(z261.string()),
|
|
7725
|
+
documentationPagePersistentIds: z261.array(z261.string()),
|
|
7726
|
+
storybookEntriesStoryIds: z261.array(z261.string())
|
|
7727
|
+
});
|
|
7728
|
+
var DTODocumentationPageDependenciesGetResponse = z261.object({
|
|
7729
|
+
dependencies: z261.array(DTODocumentationPageDependencies)
|
|
7730
|
+
});
|
|
7731
|
+
|
|
7604
7732
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
7605
|
-
import { z as
|
|
7733
|
+
import { z as z262 } from "zod";
|
|
7606
7734
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
7607
7735
|
data: true,
|
|
7608
7736
|
meta: true,
|
|
@@ -7610,81 +7738,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
7610
7738
|
sortOrder: true
|
|
7611
7739
|
}).extend({
|
|
7612
7740
|
configuration: DTODocumentationItemConfigurationV1,
|
|
7613
|
-
blocks:
|
|
7614
|
-
title:
|
|
7615
|
-
path:
|
|
7741
|
+
blocks: z262.array(PageBlockV1),
|
|
7742
|
+
title: z262.string(),
|
|
7743
|
+
path: z262.string()
|
|
7616
7744
|
});
|
|
7617
7745
|
|
|
7618
7746
|
// src/api/dto/elements/documentation/settings.ts
|
|
7619
|
-
import { z as
|
|
7620
|
-
var DTODocumentationSettings =
|
|
7621
|
-
isDraftFeatureAdopted:
|
|
7622
|
-
isApprovalsFeatureEnabled:
|
|
7623
|
-
isApprovalRequiredForPublishing:
|
|
7747
|
+
import { z as z263 } from "zod";
|
|
7748
|
+
var DTODocumentationSettings = z263.object({
|
|
7749
|
+
isDraftFeatureAdopted: z263.boolean(),
|
|
7750
|
+
isApprovalsFeatureEnabled: z263.boolean(),
|
|
7751
|
+
isApprovalRequiredForPublishing: z263.boolean()
|
|
7624
7752
|
});
|
|
7625
7753
|
|
|
7626
7754
|
// src/api/dto/elements/documentation/structure.ts
|
|
7627
|
-
import { z as
|
|
7628
|
-
var DTODocumentationStructureItemType =
|
|
7629
|
-
var DTODocumentationStructureItemBase =
|
|
7755
|
+
import { z as z264 } from "zod";
|
|
7756
|
+
var DTODocumentationStructureItemType = z264.enum(["Group", "Page"]);
|
|
7757
|
+
var DTODocumentationStructureItemBase = z264.object({
|
|
7630
7758
|
type: DTODocumentationStructureItemType,
|
|
7631
|
-
id:
|
|
7632
|
-
designSystemVersionId:
|
|
7633
|
-
shortPersistentId:
|
|
7634
|
-
persistentId:
|
|
7635
|
-
title:
|
|
7636
|
-
createdAt:
|
|
7637
|
-
updatedAt:
|
|
7759
|
+
id: z264.string(),
|
|
7760
|
+
designSystemVersionId: z264.string(),
|
|
7761
|
+
shortPersistentId: z264.string(),
|
|
7762
|
+
persistentId: z264.string(),
|
|
7763
|
+
title: z264.string(),
|
|
7764
|
+
createdAt: z264.coerce.date(),
|
|
7765
|
+
updatedAt: z264.coerce.date()
|
|
7638
7766
|
});
|
|
7639
7767
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
7640
|
-
type:
|
|
7641
|
-
groupBehavior:
|
|
7642
|
-
childrenIds:
|
|
7643
|
-
isRoot:
|
|
7768
|
+
type: z264.literal(DTODocumentationStructureItemType.enum.Group),
|
|
7769
|
+
groupBehavior: z264.string(),
|
|
7770
|
+
childrenIds: z264.string().array(),
|
|
7771
|
+
isRoot: z264.boolean()
|
|
7644
7772
|
});
|
|
7645
7773
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
7646
|
-
type:
|
|
7647
|
-
path:
|
|
7774
|
+
type: z264.literal(DTODocumentationStructureItemType.enum.Page),
|
|
7775
|
+
path: z264.string()
|
|
7648
7776
|
});
|
|
7649
|
-
var DTODocumentationStructureItem =
|
|
7777
|
+
var DTODocumentationStructureItem = z264.discriminatedUnion("type", [
|
|
7650
7778
|
DTODocumentationStructureGroupItem,
|
|
7651
7779
|
DTODocumentationStructurePageItem
|
|
7652
7780
|
]);
|
|
7653
|
-
var DTODocumentationStructure =
|
|
7654
|
-
items:
|
|
7781
|
+
var DTODocumentationStructure = z264.object({
|
|
7782
|
+
items: z264.array(DTODocumentationStructureItem)
|
|
7655
7783
|
});
|
|
7656
7784
|
|
|
7657
7785
|
// src/api/dto/elements/figma-nodes/figma-node-structure.ts
|
|
7658
|
-
import { z as
|
|
7659
|
-
var DTOFigmaNodeStructure =
|
|
7660
|
-
id:
|
|
7661
|
-
sourceId:
|
|
7786
|
+
import { z as z265 } from "zod";
|
|
7787
|
+
var DTOFigmaNodeStructure = z265.object({
|
|
7788
|
+
id: z265.string(),
|
|
7789
|
+
sourceId: z265.string(),
|
|
7662
7790
|
importState: FigmaNodeStructureStateV2,
|
|
7663
|
-
createdAt:
|
|
7664
|
-
updatedAt:
|
|
7791
|
+
createdAt: z265.coerce.date(),
|
|
7792
|
+
updatedAt: z265.coerce.date()
|
|
7665
7793
|
});
|
|
7666
7794
|
var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
|
|
7667
7795
|
rootNode: FigmaFileStructureNode
|
|
7668
7796
|
});
|
|
7669
|
-
var DTOFigmaNodeStructureListResponse =
|
|
7797
|
+
var DTOFigmaNodeStructureListResponse = z265.object({
|
|
7670
7798
|
structures: DTOFigmaNodeStructure.array()
|
|
7671
7799
|
});
|
|
7672
|
-
var DTOFigmaNodeStructureDetailResponse =
|
|
7800
|
+
var DTOFigmaNodeStructureDetailResponse = z265.object({
|
|
7673
7801
|
structure: DTOFigmaNodeStructureDetail
|
|
7674
7802
|
});
|
|
7675
7803
|
|
|
7676
7804
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7677
|
-
import { z as
|
|
7805
|
+
import { z as z267 } from "zod";
|
|
7678
7806
|
|
|
7679
7807
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
7680
|
-
import { z as
|
|
7808
|
+
import { z as z266 } from "zod";
|
|
7681
7809
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
7682
|
-
var DTOFigmaNodeOrigin =
|
|
7683
|
-
sourceId:
|
|
7684
|
-
fileId:
|
|
7685
|
-
parentName:
|
|
7810
|
+
var DTOFigmaNodeOrigin = z266.object({
|
|
7811
|
+
sourceId: z266.string(),
|
|
7812
|
+
fileId: z266.string().optional(),
|
|
7813
|
+
parentName: z266.string().optional()
|
|
7686
7814
|
});
|
|
7687
|
-
var DTOFigmaNodeRenderInputBase =
|
|
7815
|
+
var DTOFigmaNodeRenderInputBase = z266.object({
|
|
7688
7816
|
/**
|
|
7689
7817
|
* Format in which the node must be rendered, png by default.
|
|
7690
7818
|
*/
|
|
@@ -7692,57 +7820,57 @@ var DTOFigmaNodeRenderInputBase = z264.object({
|
|
|
7692
7820
|
/**
|
|
7693
7821
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
7694
7822
|
*/
|
|
7695
|
-
scale:
|
|
7823
|
+
scale: z266.number().optional()
|
|
7696
7824
|
});
|
|
7697
7825
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7698
|
-
inputType:
|
|
7826
|
+
inputType: z266.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
7699
7827
|
/**
|
|
7700
7828
|
* Id of a design system's data source representing a linked Figma file
|
|
7701
7829
|
*/
|
|
7702
|
-
sourceId:
|
|
7830
|
+
sourceId: z266.string(),
|
|
7703
7831
|
/**
|
|
7704
7832
|
* Id of a node within the Figma file
|
|
7705
7833
|
*/
|
|
7706
|
-
figmaFileNodeId:
|
|
7834
|
+
figmaFileNodeId: z266.string()
|
|
7707
7835
|
});
|
|
7708
7836
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7709
|
-
inputType:
|
|
7837
|
+
inputType: z266.literal("URL"),
|
|
7710
7838
|
/**
|
|
7711
7839
|
* Id of a design system's data source representing a linked Figma file
|
|
7712
7840
|
*/
|
|
7713
|
-
figmaNodeUrl:
|
|
7841
|
+
figmaNodeUrl: z266.string(),
|
|
7714
7842
|
/**
|
|
7715
7843
|
* Brand persistent id to use in case a source has to be created for this render
|
|
7716
7844
|
*/
|
|
7717
|
-
brandPersistentId:
|
|
7845
|
+
brandPersistentId: z266.string()
|
|
7718
7846
|
});
|
|
7719
|
-
var DTOFigmaNodeRerenderInput =
|
|
7720
|
-
inputType:
|
|
7847
|
+
var DTOFigmaNodeRerenderInput = z266.object({
|
|
7848
|
+
inputType: z266.literal("Rerender"),
|
|
7721
7849
|
/**
|
|
7722
7850
|
* Persistent ID of an existing Figma node
|
|
7723
7851
|
*/
|
|
7724
|
-
figmaNodePersistentId:
|
|
7852
|
+
figmaNodePersistentId: z266.string()
|
|
7725
7853
|
});
|
|
7726
|
-
var DTOFigmaNodeRenderInput =
|
|
7854
|
+
var DTOFigmaNodeRenderInput = z266.discriminatedUnion("inputType", [
|
|
7727
7855
|
DTOFigmaNodeRenderIdInput,
|
|
7728
7856
|
DTOFigmaNodeRenderUrlInput,
|
|
7729
7857
|
DTOFigmaNodeRerenderInput
|
|
7730
7858
|
]);
|
|
7731
7859
|
|
|
7732
7860
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7733
|
-
var DTOFigmaNodeData =
|
|
7861
|
+
var DTOFigmaNodeData = z267.object({
|
|
7734
7862
|
// Id of the node in the Figma file
|
|
7735
|
-
figmaNodeId:
|
|
7863
|
+
figmaNodeId: z267.string(),
|
|
7736
7864
|
// Validity
|
|
7737
|
-
isValid:
|
|
7865
|
+
isValid: z267.boolean(),
|
|
7738
7866
|
// Asset data
|
|
7739
|
-
assetId:
|
|
7740
|
-
assetUrl:
|
|
7867
|
+
assetId: z267.string(),
|
|
7868
|
+
assetUrl: z267.string(),
|
|
7741
7869
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
7742
7870
|
// Asset metadata
|
|
7743
|
-
assetScale:
|
|
7744
|
-
assetWidth:
|
|
7745
|
-
assetHeight:
|
|
7871
|
+
assetScale: z267.number(),
|
|
7872
|
+
assetWidth: z267.number().optional(),
|
|
7873
|
+
assetHeight: z267.number().optional()
|
|
7746
7874
|
});
|
|
7747
7875
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
7748
7876
|
data: true,
|
|
@@ -7753,15 +7881,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
7753
7881
|
});
|
|
7754
7882
|
|
|
7755
7883
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
7756
|
-
import { z as
|
|
7757
|
-
var DTOFigmaNodeDataV2 =
|
|
7758
|
-
sceneNodeId:
|
|
7884
|
+
import { z as z268 } from "zod";
|
|
7885
|
+
var DTOFigmaNodeDataV2 = z268.object({
|
|
7886
|
+
sceneNodeId: z268.string(),
|
|
7759
7887
|
format: FigmaNodeRenderFormat,
|
|
7760
|
-
scale:
|
|
7888
|
+
scale: z268.number().optional(),
|
|
7761
7889
|
renderState: FigmaNodeRenderState,
|
|
7762
7890
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
7763
7891
|
renderError: FigmaNodeRenderError.optional(),
|
|
7764
|
-
hasSource:
|
|
7892
|
+
hasSource: z268.boolean()
|
|
7765
7893
|
});
|
|
7766
7894
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
7767
7895
|
data: true,
|
|
@@ -7772,113 +7900,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
7772
7900
|
});
|
|
7773
7901
|
|
|
7774
7902
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
7775
|
-
import { z as
|
|
7776
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
7777
|
-
type:
|
|
7778
|
-
figmaNodes:
|
|
7903
|
+
import { z as z269 } from "zod";
|
|
7904
|
+
var DTOFigmaNodeRenderActionOutput = z269.object({
|
|
7905
|
+
type: z269.literal("FigmaNodeRender"),
|
|
7906
|
+
figmaNodes: z269.array(DTOFigmaNode)
|
|
7779
7907
|
});
|
|
7780
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
7781
|
-
type:
|
|
7782
|
-
figmaNodes:
|
|
7908
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z269.object({
|
|
7909
|
+
type: z269.literal("FigmaNodeRenderAsync"),
|
|
7910
|
+
figmaNodes: z269.array(DTOFigmaNodeV2)
|
|
7783
7911
|
});
|
|
7784
|
-
var DTOFigmaNodeRenderActionInput =
|
|
7785
|
-
type:
|
|
7912
|
+
var DTOFigmaNodeRenderActionInput = z269.object({
|
|
7913
|
+
type: z269.literal("FigmaNodeRender"),
|
|
7786
7914
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
7787
7915
|
});
|
|
7788
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
7789
|
-
type:
|
|
7916
|
+
var DTOFigmaNodeRenderAsyncActionInput = z269.object({
|
|
7917
|
+
type: z269.literal("FigmaNodeRenderAsync"),
|
|
7790
7918
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
7791
7919
|
});
|
|
7792
7920
|
|
|
7793
7921
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
7794
|
-
import { z as
|
|
7795
|
-
var DTOFrameNodeStructure =
|
|
7796
|
-
id:
|
|
7797
|
-
persistentId:
|
|
7798
|
-
designSystemVersionId:
|
|
7922
|
+
import { z as z270 } from "zod";
|
|
7923
|
+
var DTOFrameNodeStructure = z270.object({
|
|
7924
|
+
id: z270.string(),
|
|
7925
|
+
persistentId: z270.string(),
|
|
7926
|
+
designSystemVersionId: z270.string(),
|
|
7799
7927
|
origin: FigmaFileStructureOrigin,
|
|
7800
7928
|
assetsInFile: FigmaFileStructureStatistics
|
|
7801
7929
|
});
|
|
7802
|
-
var DTOFrameNodeStructureListResponse =
|
|
7930
|
+
var DTOFrameNodeStructureListResponse = z270.object({
|
|
7803
7931
|
structures: DTOFrameNodeStructure.array()
|
|
7804
7932
|
});
|
|
7805
7933
|
|
|
7806
7934
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
7807
|
-
import { z as
|
|
7935
|
+
import { z as z271 } from "zod";
|
|
7808
7936
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
|
|
7809
|
-
var DTOElementPropertyDefinitionOption =
|
|
7810
|
-
id:
|
|
7811
|
-
name:
|
|
7937
|
+
var DTOElementPropertyDefinitionOption = z271.object({
|
|
7938
|
+
id: z271.string(),
|
|
7939
|
+
name: z271.string(),
|
|
7812
7940
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
7813
7941
|
});
|
|
7814
|
-
var DTOElementPropertyDefinition =
|
|
7815
|
-
id:
|
|
7816
|
-
designSystemVersionId:
|
|
7942
|
+
var DTOElementPropertyDefinition = z271.object({
|
|
7943
|
+
id: z271.string(),
|
|
7944
|
+
designSystemVersionId: z271.string(),
|
|
7817
7945
|
meta: DTOObjectMeta,
|
|
7818
|
-
persistentId:
|
|
7946
|
+
persistentId: z271.string(),
|
|
7819
7947
|
type: ElementPropertyTypeSchema,
|
|
7820
7948
|
targetElementType: ElementPropertyTargetType,
|
|
7821
|
-
codeName:
|
|
7822
|
-
options: nullishToOptional(
|
|
7949
|
+
codeName: z271.string().regex(CODE_NAME_REGEX2),
|
|
7950
|
+
options: nullishToOptional(z271.array(DTOElementPropertyDefinitionOption)),
|
|
7823
7951
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7824
|
-
isImmutable:
|
|
7952
|
+
isImmutable: z271.boolean(),
|
|
7825
7953
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
7826
7954
|
});
|
|
7827
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
7828
|
-
definitions:
|
|
7955
|
+
var DTOElementPropertyDefinitionListResponse = z271.object({
|
|
7956
|
+
definitions: z271.array(DTOElementPropertyDefinition)
|
|
7829
7957
|
});
|
|
7830
|
-
var DTOElementPropertyDefinitionResponse =
|
|
7958
|
+
var DTOElementPropertyDefinitionResponse = z271.object({
|
|
7831
7959
|
definition: DTOElementPropertyDefinition
|
|
7832
7960
|
});
|
|
7833
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
7961
|
+
var DTOElementPropertyDefinitionCreatePayload = z271.object({
|
|
7834
7962
|
meta: DTOObjectMeta,
|
|
7835
|
-
persistentId:
|
|
7963
|
+
persistentId: z271.string(),
|
|
7836
7964
|
type: ElementPropertyTypeSchema,
|
|
7837
7965
|
targetElementType: ElementPropertyTargetType,
|
|
7838
|
-
codeName:
|
|
7839
|
-
options: nullishToOptional(
|
|
7966
|
+
codeName: z271.string().regex(CODE_NAME_REGEX2),
|
|
7967
|
+
options: nullishToOptional(z271.array(DTOElementPropertyDefinitionOption)),
|
|
7840
7968
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7841
|
-
columnWidth:
|
|
7969
|
+
columnWidth: z271.number().max(1024).optional()
|
|
7842
7970
|
});
|
|
7843
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
7971
|
+
var DTOElementPropertyDefinitionUpdatePayload = z271.object({
|
|
7844
7972
|
meta: DTOObjectMeta.optional(),
|
|
7845
|
-
codeName:
|
|
7846
|
-
options:
|
|
7973
|
+
codeName: z271.string().regex(CODE_NAME_REGEX2).optional(),
|
|
7974
|
+
options: z271.array(DTOElementPropertyDefinitionOption).optional()
|
|
7847
7975
|
});
|
|
7848
7976
|
|
|
7849
7977
|
// src/api/dto/elements/properties/property-values.ts
|
|
7850
|
-
import { z as
|
|
7851
|
-
var DTOElementPropertyValue =
|
|
7852
|
-
id:
|
|
7853
|
-
designSystemVersionId:
|
|
7854
|
-
definitionId:
|
|
7855
|
-
targetElementId:
|
|
7856
|
-
value:
|
|
7857
|
-
valuePreview:
|
|
7858
|
-
});
|
|
7859
|
-
var DTOElementPropertyValueListResponse =
|
|
7860
|
-
values:
|
|
7861
|
-
});
|
|
7862
|
-
var DTOElementPropertyValueResponse =
|
|
7978
|
+
import { z as z272 } from "zod";
|
|
7979
|
+
var DTOElementPropertyValue = z272.object({
|
|
7980
|
+
id: z272.string(),
|
|
7981
|
+
designSystemVersionId: z272.string(),
|
|
7982
|
+
definitionId: z272.string(),
|
|
7983
|
+
targetElementId: z272.string(),
|
|
7984
|
+
value: z272.union([z272.string(), z272.number(), z272.boolean()]).optional(),
|
|
7985
|
+
valuePreview: z272.string().optional()
|
|
7986
|
+
});
|
|
7987
|
+
var DTOElementPropertyValueListResponse = z272.object({
|
|
7988
|
+
values: z272.array(DTOElementPropertyValue)
|
|
7989
|
+
});
|
|
7990
|
+
var DTOElementPropertyValueResponse = z272.object({
|
|
7863
7991
|
value: DTOElementPropertyValue
|
|
7864
7992
|
});
|
|
7865
|
-
var DTOElementPropertyValuesEditActionOutput =
|
|
7866
|
-
type:
|
|
7867
|
-
output:
|
|
7993
|
+
var DTOElementPropertyValuesEditActionOutput = z272.object({
|
|
7994
|
+
type: z272.literal("ElementPropertyValuesEdit"),
|
|
7995
|
+
output: z272.object({ success: z272.literal(true) })
|
|
7868
7996
|
});
|
|
7869
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
7870
|
-
definitionId:
|
|
7871
|
-
targetElementId:
|
|
7872
|
-
value:
|
|
7997
|
+
var DTOElementPropertyValueUpsertPaylod = z272.object({
|
|
7998
|
+
definitionId: z272.string(),
|
|
7999
|
+
targetElementId: z272.string(),
|
|
8000
|
+
value: z272.string().or(z272.number()).or(z272.boolean()).nullable()
|
|
7873
8001
|
});
|
|
7874
|
-
var DTOElementPropertyValuesEditActionInput =
|
|
7875
|
-
type:
|
|
8002
|
+
var DTOElementPropertyValuesEditActionInput = z272.object({
|
|
8003
|
+
type: z272.literal("ElementPropertyValuesEdit"),
|
|
7876
8004
|
values: DTOElementPropertyValueUpsertPaylod.array()
|
|
7877
8005
|
});
|
|
7878
8006
|
|
|
7879
8007
|
// src/api/dto/elements/elements-action-v2.ts
|
|
7880
|
-
import { z as
|
|
7881
|
-
var DTOElementActionOutput =
|
|
8008
|
+
import { z as z273 } from "zod";
|
|
8009
|
+
var DTOElementActionOutput = z273.discriminatedUnion("type", [
|
|
7882
8010
|
// Documentation pages
|
|
7883
8011
|
DTODocumentationPageCreateActionOutputV2,
|
|
7884
8012
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -7905,7 +8033,7 @@ var DTOElementActionOutput = z271.discriminatedUnion("type", [
|
|
|
7905
8033
|
// Element properties
|
|
7906
8034
|
DTOElementPropertyValuesEditActionOutput
|
|
7907
8035
|
]);
|
|
7908
|
-
var DTOElementActionInput =
|
|
8036
|
+
var DTOElementActionInput = z273.discriminatedUnion("type", [
|
|
7909
8037
|
// Documentation pages
|
|
7910
8038
|
DTODocumentationPageCreateActionInputV2,
|
|
7911
8039
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -7932,90 +8060,90 @@ var DTOElementActionInput = z271.discriminatedUnion("type", [
|
|
|
7932
8060
|
// Element properties
|
|
7933
8061
|
DTOElementPropertyValuesEditActionInput
|
|
7934
8062
|
]).and(
|
|
7935
|
-
|
|
7936
|
-
tId:
|
|
8063
|
+
z273.object({
|
|
8064
|
+
tId: z273.string().optional()
|
|
7937
8065
|
})
|
|
7938
8066
|
);
|
|
7939
8067
|
|
|
7940
8068
|
// src/api/dto/elements/get-elements-v2.ts
|
|
7941
|
-
import { z as
|
|
7942
|
-
var DTOElementsGetTypeFilter =
|
|
7943
|
-
var DTOElementsGetQuerySchema =
|
|
7944
|
-
types:
|
|
7945
|
-
responseVersion:
|
|
8069
|
+
import { z as z274 } from "zod";
|
|
8070
|
+
var DTOElementsGetTypeFilter = z274.enum(["FigmaNode"]);
|
|
8071
|
+
var DTOElementsGetQuerySchema = z274.object({
|
|
8072
|
+
types: z274.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
8073
|
+
responseVersion: z274.coerce.number().default(1)
|
|
7946
8074
|
});
|
|
7947
|
-
var DTOElementsGetOutput =
|
|
7948
|
-
figmaNodes:
|
|
8075
|
+
var DTOElementsGetOutput = z274.object({
|
|
8076
|
+
figmaNodes: z274.array(DTOFigmaNode).optional()
|
|
7949
8077
|
});
|
|
7950
|
-
var DTOElementsGetOutputV2 =
|
|
7951
|
-
figmaNodes:
|
|
8078
|
+
var DTOElementsGetOutputV2 = z274.object({
|
|
8079
|
+
figmaNodes: z274.array(DTOFigmaNodeV2).optional()
|
|
7952
8080
|
});
|
|
7953
8081
|
|
|
7954
8082
|
// src/api/dto/figma-components/assets/download.ts
|
|
7955
|
-
import { z as
|
|
7956
|
-
var DTOAssetRenderConfiguration =
|
|
7957
|
-
prefix:
|
|
7958
|
-
suffix:
|
|
7959
|
-
scale:
|
|
7960
|
-
format:
|
|
7961
|
-
});
|
|
7962
|
-
var DTORenderedAssetFile =
|
|
7963
|
-
assetId:
|
|
7964
|
-
fileName:
|
|
7965
|
-
sourceUrl:
|
|
8083
|
+
import { z as z275 } from "zod";
|
|
8084
|
+
var DTOAssetRenderConfiguration = z275.object({
|
|
8085
|
+
prefix: z275.string().optional(),
|
|
8086
|
+
suffix: z275.string().optional(),
|
|
8087
|
+
scale: z275.enum(["x1", "x2", "x3", "x4"]),
|
|
8088
|
+
format: z275.enum(["png", "pdf", "svg"])
|
|
8089
|
+
});
|
|
8090
|
+
var DTORenderedAssetFile = z275.object({
|
|
8091
|
+
assetId: z275.string(),
|
|
8092
|
+
fileName: z275.string(),
|
|
8093
|
+
sourceUrl: z275.string(),
|
|
7966
8094
|
settings: DTOAssetRenderConfiguration,
|
|
7967
|
-
originalName:
|
|
8095
|
+
originalName: z275.string()
|
|
7968
8096
|
});
|
|
7969
|
-
var DTODownloadAssetsRequest =
|
|
7970
|
-
persistentIds:
|
|
8097
|
+
var DTODownloadAssetsRequest = z275.object({
|
|
8098
|
+
persistentIds: z275.array(z275.string().uuid()).optional(),
|
|
7971
8099
|
settings: DTOAssetRenderConfiguration.array()
|
|
7972
8100
|
});
|
|
7973
|
-
var DTODownloadAssetsResponse =
|
|
8101
|
+
var DTODownloadAssetsResponse = z275.object({
|
|
7974
8102
|
items: DTORenderedAssetFile.array()
|
|
7975
8103
|
});
|
|
7976
8104
|
|
|
7977
8105
|
// src/api/dto/liveblocks/auth-response.ts
|
|
7978
|
-
import { z as
|
|
7979
|
-
var DTOLiveblocksAuthResponse =
|
|
7980
|
-
token:
|
|
8106
|
+
import { z as z276 } from "zod";
|
|
8107
|
+
var DTOLiveblocksAuthResponse = z276.object({
|
|
8108
|
+
token: z276.string()
|
|
7981
8109
|
});
|
|
7982
8110
|
|
|
7983
8111
|
// src/api/dto/themes/override.ts
|
|
7984
|
-
import { z as
|
|
8112
|
+
import { z as z277 } from "zod";
|
|
7985
8113
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
7986
|
-
|
|
7987
|
-
tokenPersistentId:
|
|
8114
|
+
z277.object({
|
|
8115
|
+
tokenPersistentId: z277.string(),
|
|
7988
8116
|
origin: ThemeOverrideOrigin.optional()
|
|
7989
8117
|
})
|
|
7990
8118
|
);
|
|
7991
8119
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
7992
|
-
|
|
7993
|
-
tokenPersistentId:
|
|
8120
|
+
z277.object({
|
|
8121
|
+
tokenPersistentId: z277.string()
|
|
7994
8122
|
})
|
|
7995
8123
|
);
|
|
7996
8124
|
|
|
7997
8125
|
// src/api/dto/themes/theme.ts
|
|
7998
|
-
import { z as
|
|
7999
|
-
var DTOTheme =
|
|
8000
|
-
id:
|
|
8001
|
-
persistentId:
|
|
8002
|
-
designSystemVersionId:
|
|
8003
|
-
brandId:
|
|
8126
|
+
import { z as z278 } from "zod";
|
|
8127
|
+
var DTOTheme = z278.object({
|
|
8128
|
+
id: z278.string(),
|
|
8129
|
+
persistentId: z278.string(),
|
|
8130
|
+
designSystemVersionId: z278.string(),
|
|
8131
|
+
brandId: z278.string(),
|
|
8004
8132
|
meta: ObjectMeta,
|
|
8005
|
-
codeName:
|
|
8133
|
+
codeName: z278.string(),
|
|
8006
8134
|
overrides: DTOThemeOverride.array()
|
|
8007
8135
|
});
|
|
8008
|
-
var DTOThemeResponse =
|
|
8136
|
+
var DTOThemeResponse = z278.object({
|
|
8009
8137
|
theme: DTOTheme
|
|
8010
8138
|
});
|
|
8011
|
-
var DTOThemeListResponse =
|
|
8139
|
+
var DTOThemeListResponse = z278.object({
|
|
8012
8140
|
themes: DTOTheme.array()
|
|
8013
8141
|
});
|
|
8014
|
-
var DTOThemeCreatePayload =
|
|
8142
|
+
var DTOThemeCreatePayload = z278.object({
|
|
8015
8143
|
meta: ObjectMeta,
|
|
8016
|
-
persistentId:
|
|
8017
|
-
brandId:
|
|
8018
|
-
codeName:
|
|
8144
|
+
persistentId: z278.string(),
|
|
8145
|
+
brandId: z278.string(),
|
|
8146
|
+
codeName: z278.string(),
|
|
8019
8147
|
overrides: DTOThemeOverride.array()
|
|
8020
8148
|
});
|
|
8021
8149
|
|
|
@@ -8251,13 +8379,13 @@ var ExportersEndpoint = class {
|
|
|
8251
8379
|
};
|
|
8252
8380
|
|
|
8253
8381
|
// src/api/endpoints/codegen/jobs.ts
|
|
8254
|
-
import { z as
|
|
8382
|
+
import { z as z279 } from "zod";
|
|
8255
8383
|
var ExporterJobsEndpoint = class {
|
|
8256
8384
|
constructor(requestExecutor) {
|
|
8257
8385
|
this.requestExecutor = requestExecutor;
|
|
8258
8386
|
}
|
|
8259
8387
|
list(workspaceId) {
|
|
8260
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
8388
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z279.any());
|
|
8261
8389
|
}
|
|
8262
8390
|
get(workspaceId, jobId) {
|
|
8263
8391
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -8315,7 +8443,7 @@ var CodegenEndpoint = class {
|
|
|
8315
8443
|
};
|
|
8316
8444
|
|
|
8317
8445
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
8318
|
-
import { z as
|
|
8446
|
+
import { z as z280 } from "zod";
|
|
8319
8447
|
var BrandsEndpoint = class {
|
|
8320
8448
|
constructor(requestExecutor) {
|
|
8321
8449
|
this.requestExecutor = requestExecutor;
|
|
@@ -8349,7 +8477,7 @@ var BrandsEndpoint = class {
|
|
|
8349
8477
|
});
|
|
8350
8478
|
}
|
|
8351
8479
|
delete(dsId, vId, brandId) {
|
|
8352
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
8480
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z280.any(), {
|
|
8353
8481
|
method: "DELETE"
|
|
8354
8482
|
});
|
|
8355
8483
|
}
|
|
@@ -8385,6 +8513,16 @@ var CodeComponentsEndpoint = class {
|
|
|
8385
8513
|
}
|
|
8386
8514
|
);
|
|
8387
8515
|
}
|
|
8516
|
+
async analyzePackage(dsId, vId, body) {
|
|
8517
|
+
return this.requestExecutor.json(
|
|
8518
|
+
`/design-systems/${dsId}/versions/${vId}/code-components/analyze-package`,
|
|
8519
|
+
DTOAnalyzeCodeComponentsInPackageResponse,
|
|
8520
|
+
{
|
|
8521
|
+
body,
|
|
8522
|
+
method: "POST"
|
|
8523
|
+
}
|
|
8524
|
+
);
|
|
8525
|
+
}
|
|
8388
8526
|
};
|
|
8389
8527
|
|
|
8390
8528
|
// src/api/endpoints/design-system/versions/documentation.ts
|
|
@@ -8562,7 +8700,7 @@ var ImportJobsEndpoint = class {
|
|
|
8562
8700
|
};
|
|
8563
8701
|
|
|
8564
8702
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
8565
|
-
import { z as
|
|
8703
|
+
import { z as z281 } from "zod";
|
|
8566
8704
|
var OverridesEndpoint = class {
|
|
8567
8705
|
constructor(requestExecutor) {
|
|
8568
8706
|
this.requestExecutor = requestExecutor;
|
|
@@ -8570,7 +8708,7 @@ var OverridesEndpoint = class {
|
|
|
8570
8708
|
create(dsId, versionId, themeId, body) {
|
|
8571
8709
|
return this.requestExecutor.json(
|
|
8572
8710
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
8573
|
-
|
|
8711
|
+
z281.any(),
|
|
8574
8712
|
{
|
|
8575
8713
|
method: "POST",
|
|
8576
8714
|
body
|
|
@@ -8580,7 +8718,7 @@ var OverridesEndpoint = class {
|
|
|
8580
8718
|
};
|
|
8581
8719
|
|
|
8582
8720
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
8583
|
-
import { z as
|
|
8721
|
+
import { z as z282 } from "zod";
|
|
8584
8722
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
8585
8723
|
constructor(requestExecutor) {
|
|
8586
8724
|
this.requestExecutor = requestExecutor;
|
|
@@ -8608,7 +8746,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
8608
8746
|
delete(designSystemId, versionId, defId) {
|
|
8609
8747
|
return this.requestExecutor.json(
|
|
8610
8748
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
8611
|
-
|
|
8749
|
+
z282.any(),
|
|
8612
8750
|
{ method: "DELETE" }
|
|
8613
8751
|
);
|
|
8614
8752
|
}
|
|
@@ -8647,7 +8785,7 @@ var VersionStatsEndpoint = class {
|
|
|
8647
8785
|
};
|
|
8648
8786
|
|
|
8649
8787
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
8650
|
-
import { z as
|
|
8788
|
+
import { z as z283 } from "zod";
|
|
8651
8789
|
var ThemesEndpoint = class {
|
|
8652
8790
|
constructor(requestExecutor) {
|
|
8653
8791
|
this.requestExecutor = requestExecutor;
|
|
@@ -8670,7 +8808,7 @@ var ThemesEndpoint = class {
|
|
|
8670
8808
|
});
|
|
8671
8809
|
}
|
|
8672
8810
|
delete(dsId, versionId, themeId) {
|
|
8673
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
8811
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z283.any(), {
|
|
8674
8812
|
method: "DELETE"
|
|
8675
8813
|
});
|
|
8676
8814
|
}
|
|
@@ -8839,7 +8977,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
8839
8977
|
};
|
|
8840
8978
|
|
|
8841
8979
|
// src/api/endpoints/design-system/design-systems.ts
|
|
8842
|
-
import { z as
|
|
8980
|
+
import { z as z287 } from "zod";
|
|
8843
8981
|
|
|
8844
8982
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
8845
8983
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -8916,7 +9054,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
8916
9054
|
};
|
|
8917
9055
|
|
|
8918
9056
|
// src/api/endpoints/design-system/sources.ts
|
|
8919
|
-
import { z as
|
|
9057
|
+
import { z as z284 } from "zod";
|
|
8920
9058
|
var DesignSystemSourcesEndpoint = class {
|
|
8921
9059
|
constructor(requestExecutor) {
|
|
8922
9060
|
this.requestExecutor = requestExecutor;
|
|
@@ -8934,7 +9072,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8934
9072
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
8935
9073
|
}
|
|
8936
9074
|
delete(dsId, sourceId) {
|
|
8937
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
9075
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z284.any(), { method: "DELETE" });
|
|
8938
9076
|
}
|
|
8939
9077
|
figmaImport(dsId, payload) {
|
|
8940
9078
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
@@ -8943,15 +9081,29 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8943
9081
|
});
|
|
8944
9082
|
}
|
|
8945
9083
|
storybookImport(dsId, payload) {
|
|
8946
|
-
return this.requestExecutor.json(
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
9084
|
+
return this.requestExecutor.json(
|
|
9085
|
+
`/design-systems/${dsId}/versions/head/storybook-import`,
|
|
9086
|
+
DTODataSourcesStorybookResponse,
|
|
9087
|
+
{
|
|
9088
|
+
method: "POST",
|
|
9089
|
+
body: payload
|
|
9090
|
+
}
|
|
9091
|
+
);
|
|
9092
|
+
}
|
|
9093
|
+
updateStorybookImport(dsId, versionId, payload) {
|
|
9094
|
+
return this.requestExecutor.json(
|
|
9095
|
+
`/design-systems/${dsId}/versions/${versionId}/storybook-import`,
|
|
9096
|
+
DTODataSourcesStorybookResponse,
|
|
9097
|
+
{
|
|
9098
|
+
method: "POST",
|
|
9099
|
+
body: payload
|
|
9100
|
+
}
|
|
9101
|
+
);
|
|
8950
9102
|
}
|
|
8951
9103
|
};
|
|
8952
9104
|
|
|
8953
9105
|
// src/api/endpoints/design-system/storybook.ts
|
|
8954
|
-
import { z as
|
|
9106
|
+
import { z as z285 } from "zod";
|
|
8955
9107
|
var StorybookEntriesEndpoint = class {
|
|
8956
9108
|
constructor(requestExecutor) {
|
|
8957
9109
|
this.requestExecutor = requestExecutor;
|
|
@@ -8960,10 +9112,51 @@ var StorybookEntriesEndpoint = class {
|
|
|
8960
9112
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook`, DTOStorybookEntryListResponse);
|
|
8961
9113
|
}
|
|
8962
9114
|
replace(dsId, entryId) {
|
|
8963
|
-
return this.requestExecutor.json(
|
|
9115
|
+
return this.requestExecutor.json(
|
|
9116
|
+
`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
9117
|
+
DTOStorybookEntryReplaceAction,
|
|
9118
|
+
{ method: "PUT" }
|
|
9119
|
+
);
|
|
8964
9120
|
}
|
|
8965
9121
|
delete(dsId, entryId) {
|
|
8966
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
9122
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z285.any(), {
|
|
9123
|
+
method: "DELETE"
|
|
9124
|
+
});
|
|
9125
|
+
}
|
|
9126
|
+
};
|
|
9127
|
+
|
|
9128
|
+
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
9129
|
+
import { z as z286 } from "zod";
|
|
9130
|
+
var StorybookHostingEndpoint = class {
|
|
9131
|
+
constructor(requestExecutor) {
|
|
9132
|
+
this.requestExecutor = requestExecutor;
|
|
9133
|
+
}
|
|
9134
|
+
getSignedUploadUrl(dsId, body) {
|
|
9135
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/storybook/upload`, DTOStorybookUploadUrlResponse, {
|
|
9136
|
+
body,
|
|
9137
|
+
method: "POST"
|
|
9138
|
+
});
|
|
9139
|
+
}
|
|
9140
|
+
delete(dsId, storybookUploadId) {
|
|
9141
|
+
return this.requestExecutor.json(
|
|
9142
|
+
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
9143
|
+
z286.object({ ok: z286.boolean() }),
|
|
9144
|
+
{
|
|
9145
|
+
method: "DELETE"
|
|
9146
|
+
}
|
|
9147
|
+
);
|
|
9148
|
+
}
|
|
9149
|
+
getUploadStatus(dsId, storybookUploadId) {
|
|
9150
|
+
return this.requestExecutor.json(
|
|
9151
|
+
`/design-systems/${dsId}/storybook/${storybookUploadId}/status`,
|
|
9152
|
+
DTOStorybookUploadStatus
|
|
9153
|
+
);
|
|
9154
|
+
}
|
|
9155
|
+
getAccessToken(dsId, name) {
|
|
9156
|
+
return this.requestExecutor.json(
|
|
9157
|
+
`/design-systems/${dsId}/storybook/alias/${name}/access-token`,
|
|
9158
|
+
DTOStorybookAccessTokenResponse
|
|
9159
|
+
);
|
|
8967
9160
|
}
|
|
8968
9161
|
};
|
|
8969
9162
|
|
|
@@ -8976,6 +9169,7 @@ var DesignSystemsEndpoint = class {
|
|
|
8976
9169
|
__publicField(this, "bff");
|
|
8977
9170
|
__publicField(this, "sources");
|
|
8978
9171
|
__publicField(this, "storybook");
|
|
9172
|
+
__publicField(this, "storybookHosting");
|
|
8979
9173
|
__publicField(this, "contacts");
|
|
8980
9174
|
__publicField(this, "redirects");
|
|
8981
9175
|
__publicField(this, "figmaNodeStructures");
|
|
@@ -8985,6 +9179,7 @@ var DesignSystemsEndpoint = class {
|
|
|
8985
9179
|
this.bff = new DesignSystemBffEndpoint(requestExecutor);
|
|
8986
9180
|
this.sources = new DesignSystemSourcesEndpoint(requestExecutor);
|
|
8987
9181
|
this.storybook = new StorybookEntriesEndpoint(requestExecutor);
|
|
9182
|
+
this.storybookHosting = new StorybookHostingEndpoint(requestExecutor);
|
|
8988
9183
|
this.contacts = new DesignSystemContactsEndpoint(requestExecutor);
|
|
8989
9184
|
this.redirects = new DesignSystemPageRedirectsEndpoint(requestExecutor);
|
|
8990
9185
|
this.figmaNodeStructures = new FigmaNodeStructuresEndpoint(requestExecutor);
|
|
@@ -8996,11 +9191,14 @@ var DesignSystemsEndpoint = class {
|
|
|
8996
9191
|
list(wsId) {
|
|
8997
9192
|
return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
|
|
8998
9193
|
}
|
|
9194
|
+
listUserDesignSystems() {
|
|
9195
|
+
return this.requestExecutor.json("/design-systems", DTOUserDesignSystemsResponse);
|
|
9196
|
+
}
|
|
8999
9197
|
get(dsId) {
|
|
9000
9198
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
9001
9199
|
}
|
|
9002
9200
|
delete(dsId) {
|
|
9003
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
9201
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z287.any(), { method: "DELETE" });
|
|
9004
9202
|
}
|
|
9005
9203
|
update(dsId, body) {
|
|
9006
9204
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -9017,7 +9215,7 @@ var DesignSystemsEndpoint = class {
|
|
|
9017
9215
|
};
|
|
9018
9216
|
|
|
9019
9217
|
// src/api/endpoints/workspaces/integrations.ts
|
|
9020
|
-
import { z as
|
|
9218
|
+
import { z as z288 } from "zod";
|
|
9021
9219
|
var WorkspaceIntegrationsEndpoint = class {
|
|
9022
9220
|
constructor(requestExecutor) {
|
|
9023
9221
|
this.requestExecutor = requestExecutor;
|
|
@@ -9026,7 +9224,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
9026
9224
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
9027
9225
|
}
|
|
9028
9226
|
delete(wsId, iId) {
|
|
9029
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
9227
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z288.unknown(), { method: "DELETE" });
|
|
9030
9228
|
}
|
|
9031
9229
|
};
|
|
9032
9230
|
|
|
@@ -9058,7 +9256,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
9058
9256
|
};
|
|
9059
9257
|
|
|
9060
9258
|
// src/api/endpoints/workspaces/members.ts
|
|
9061
|
-
import { z as
|
|
9259
|
+
import { z as z289 } from "zod";
|
|
9062
9260
|
var WorkspaceMembersEndpoint = class {
|
|
9063
9261
|
constructor(requestExecutor) {
|
|
9064
9262
|
this.requestExecutor = requestExecutor;
|
|
@@ -9075,7 +9273,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
9075
9273
|
});
|
|
9076
9274
|
}
|
|
9077
9275
|
invite(workspaceId, body) {
|
|
9078
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
9276
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z289.any(), { method: "POST", body });
|
|
9079
9277
|
}
|
|
9080
9278
|
delete(workspaceId, userId) {
|
|
9081
9279
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -9084,17 +9282,38 @@ var WorkspaceMembersEndpoint = class {
|
|
|
9084
9282
|
}
|
|
9085
9283
|
};
|
|
9086
9284
|
|
|
9285
|
+
// src/api/endpoints/workspaces/npm-register.ts
|
|
9286
|
+
var WorkspaceNpmRegistryEndpoint = class {
|
|
9287
|
+
constructor(requestExecutor) {
|
|
9288
|
+
this.requestExecutor = requestExecutor;
|
|
9289
|
+
}
|
|
9290
|
+
getAccessToken(wsId) {
|
|
9291
|
+
return this.requestExecutor.json(
|
|
9292
|
+
`/workspaces/${wsId}/npm-registry/access-token`,
|
|
9293
|
+
DTONpmRegistryAccessTokenResponse
|
|
9294
|
+
);
|
|
9295
|
+
}
|
|
9296
|
+
update(wsId, body) {
|
|
9297
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/npm-registry`, DTOUpdateRegistryOutput, {
|
|
9298
|
+
method: "PUT",
|
|
9299
|
+
body
|
|
9300
|
+
});
|
|
9301
|
+
}
|
|
9302
|
+
};
|
|
9303
|
+
|
|
9087
9304
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
9088
|
-
import { z as
|
|
9305
|
+
import { z as z290 } from "zod";
|
|
9089
9306
|
var WorkspacesEndpoint = class {
|
|
9090
9307
|
constructor(requestExecutor) {
|
|
9091
9308
|
this.requestExecutor = requestExecutor;
|
|
9092
9309
|
__publicField(this, "members");
|
|
9093
9310
|
__publicField(this, "invitations");
|
|
9311
|
+
__publicField(this, "npmRegistry");
|
|
9094
9312
|
__publicField(this, "integrations");
|
|
9095
9313
|
this.members = new WorkspaceMembersEndpoint(requestExecutor);
|
|
9096
9314
|
this.invitations = new WorkspaceInvitationsEndpoint(requestExecutor);
|
|
9097
9315
|
this.integrations = new WorkspaceIntegrationsEndpoint(requestExecutor);
|
|
9316
|
+
this.npmRegistry = new WorkspaceNpmRegistryEndpoint(requestExecutor);
|
|
9098
9317
|
}
|
|
9099
9318
|
create(body) {
|
|
9100
9319
|
return this.requestExecutor.json("/workspaces", DTOWorkspaceResponse, {
|
|
@@ -9106,14 +9325,17 @@ var WorkspacesEndpoint = class {
|
|
|
9106
9325
|
}
|
|
9107
9326
|
});
|
|
9108
9327
|
}
|
|
9328
|
+
list() {
|
|
9329
|
+
return this.requestExecutor.json(`/workspaces`, DTOUserWorkspaceMembershipsResponse, { method: "GET" });
|
|
9330
|
+
}
|
|
9109
9331
|
get(workspaceId) {
|
|
9110
9332
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
9111
9333
|
}
|
|
9112
9334
|
delete(workspaceId) {
|
|
9113
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
9335
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z290.any(), { method: "DELETE" });
|
|
9114
9336
|
}
|
|
9115
9337
|
subscription(workspaceId) {
|
|
9116
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
9338
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z290.any(), { method: "GET" });
|
|
9117
9339
|
}
|
|
9118
9340
|
transferOwnership(workspaceId, body) {
|
|
9119
9341
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
@@ -9213,9 +9435,9 @@ ${bodyText}`,
|
|
|
9213
9435
|
|
|
9214
9436
|
// src/api/transport/request-executor.ts
|
|
9215
9437
|
import fetch from "node-fetch";
|
|
9216
|
-
import { z as
|
|
9217
|
-
var ResponseWrapper =
|
|
9218
|
-
result:
|
|
9438
|
+
import { z as z291 } from "zod";
|
|
9439
|
+
var ResponseWrapper = z291.object({
|
|
9440
|
+
result: z291.record(z291.any())
|
|
9219
9441
|
});
|
|
9220
9442
|
var RequestExecutor = class {
|
|
9221
9443
|
constructor(testServerConfig) {
|
|
@@ -9289,31 +9511,31 @@ var SupernovaApiClient = class {
|
|
|
9289
9511
|
};
|
|
9290
9512
|
|
|
9291
9513
|
// src/events/design-system.ts
|
|
9292
|
-
import { z as
|
|
9293
|
-
var DTOEventFigmaNodesRendered =
|
|
9294
|
-
type:
|
|
9295
|
-
designSystemId:
|
|
9296
|
-
versionId:
|
|
9297
|
-
figmaNodePersistentIds:
|
|
9298
|
-
});
|
|
9299
|
-
var DTOEventDataSourcesImported =
|
|
9300
|
-
type:
|
|
9301
|
-
designSystemId:
|
|
9302
|
-
versionId:
|
|
9303
|
-
importJobId:
|
|
9514
|
+
import { z as z292 } from "zod";
|
|
9515
|
+
var DTOEventFigmaNodesRendered = z292.object({
|
|
9516
|
+
type: z292.literal("DesignSystem.FigmaNodesRendered"),
|
|
9517
|
+
designSystemId: z292.string(),
|
|
9518
|
+
versionId: z292.string(),
|
|
9519
|
+
figmaNodePersistentIds: z292.string().array()
|
|
9520
|
+
});
|
|
9521
|
+
var DTOEventDataSourcesImported = z292.object({
|
|
9522
|
+
type: z292.literal("DesignSystem.ImportJobFinished"),
|
|
9523
|
+
designSystemId: z292.string(),
|
|
9524
|
+
versionId: z292.string(),
|
|
9525
|
+
importJobId: z292.string(),
|
|
9304
9526
|
dataSourceType: DataSourceRemoteType,
|
|
9305
|
-
dataSourceIds:
|
|
9527
|
+
dataSourceIds: z292.string().array()
|
|
9306
9528
|
});
|
|
9307
9529
|
|
|
9308
9530
|
// src/events/event.ts
|
|
9309
|
-
import { z as
|
|
9310
|
-
var DTOEvent =
|
|
9531
|
+
import { z as z293 } from "zod";
|
|
9532
|
+
var DTOEvent = z293.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
9311
9533
|
|
|
9312
9534
|
// src/sync/docs-structure-repo.ts
|
|
9313
9535
|
import PQueue from "p-queue";
|
|
9314
9536
|
|
|
9315
9537
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
9316
|
-
import { z as
|
|
9538
|
+
import { z as z294 } from "zod";
|
|
9317
9539
|
|
|
9318
9540
|
// src/yjs/version-room/base.ts
|
|
9319
9541
|
var VersionRoomBaseYDoc = class {
|
|
@@ -9863,24 +10085,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
9863
10085
|
};
|
|
9864
10086
|
|
|
9865
10087
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
9866
|
-
var DocumentationHierarchySettings =
|
|
9867
|
-
routingVersion:
|
|
9868
|
-
isDraftFeatureAdopted:
|
|
9869
|
-
isApprovalFeatureEnabled:
|
|
9870
|
-
approvalRequiredForPublishing:
|
|
10088
|
+
var DocumentationHierarchySettings = z294.object({
|
|
10089
|
+
routingVersion: z294.string(),
|
|
10090
|
+
isDraftFeatureAdopted: z294.boolean(),
|
|
10091
|
+
isApprovalFeatureEnabled: z294.boolean(),
|
|
10092
|
+
approvalRequiredForPublishing: z294.boolean()
|
|
9871
10093
|
});
|
|
9872
10094
|
function yjsToDocumentationHierarchy(doc) {
|
|
9873
10095
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
9874
10096
|
}
|
|
9875
10097
|
|
|
9876
10098
|
// src/yjs/design-system-content/item-configuration.ts
|
|
9877
|
-
import { z as
|
|
9878
|
-
var DTODocumentationPageRoomHeaderData =
|
|
9879
|
-
title:
|
|
10099
|
+
import { z as z295 } from "zod";
|
|
10100
|
+
var DTODocumentationPageRoomHeaderData = z295.object({
|
|
10101
|
+
title: z295.string(),
|
|
9880
10102
|
configuration: DTODocumentationItemConfigurationV2
|
|
9881
10103
|
});
|
|
9882
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
9883
|
-
title:
|
|
10104
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z295.object({
|
|
10105
|
+
title: z295.string().optional(),
|
|
9884
10106
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
9885
10107
|
});
|
|
9886
10108
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -9909,41 +10131,15 @@ function itemConfigurationToYjs(yDoc, item) {
|
|
|
9909
10131
|
configuration?.isPrivate !== void 0 && configYMap.set("isPrivate", configuration.isPrivate);
|
|
9910
10132
|
});
|
|
9911
10133
|
}
|
|
9912
|
-
function yjsToItemConfiguration(yDoc) {
|
|
9913
|
-
const title = yDoc.getMap("itemTitle").get("title");
|
|
9914
|
-
const headerYMap = yDoc.getMap("itemHeader");
|
|
9915
|
-
const rawHeader = {
|
|
9916
|
-
description: headerYMap.get("description"),
|
|
9917
|
-
alignment: headerYMap.get("alignment"),
|
|
9918
|
-
foregroundColor: headerYMap.get("foregroundColor"),
|
|
9919
|
-
backgroundColor: headerYMap.get("backgroundColor"),
|
|
9920
|
-
backgroundImageAsset: headerYMap.get("backgroundImageAsset"),
|
|
9921
|
-
backgroundImageScaleType: headerYMap.get("backgroundImageScaleType"),
|
|
9922
|
-
showBackgroundOverlay: headerYMap.get("showBackgroundOverlay"),
|
|
9923
|
-
showCoverText: headerYMap.get("showCoverText"),
|
|
9924
|
-
minHeight: headerYMap.get("minHeight")
|
|
9925
|
-
};
|
|
9926
|
-
const configYMap = yDoc.getMap("itemConfiguration");
|
|
9927
|
-
const rawConfig = {
|
|
9928
|
-
showSidebar: configYMap.get("showSidebar"),
|
|
9929
|
-
isHidden: configYMap.get("isHidden") ?? false,
|
|
9930
|
-
isPrivate: configYMap.get("isPrivate") ?? false,
|
|
9931
|
-
header: rawHeader
|
|
9932
|
-
};
|
|
9933
|
-
return {
|
|
9934
|
-
title: z292.string().parse(title),
|
|
9935
|
-
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
9936
|
-
};
|
|
9937
|
-
}
|
|
9938
10134
|
|
|
9939
10135
|
// src/yjs/docs-editor/model/block.ts
|
|
9940
10136
|
var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
9941
10137
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
9942
10138
|
|
|
9943
10139
|
// src/yjs/docs-editor/model/page.ts
|
|
9944
|
-
import { z as
|
|
9945
|
-
var DocumentationPageEditorModel =
|
|
9946
|
-
blocks:
|
|
10140
|
+
import { z as z296 } from "zod";
|
|
10141
|
+
var DocumentationPageEditorModel = z296.object({
|
|
10142
|
+
blocks: z296.array(DocumentationPageContentItem)
|
|
9947
10143
|
});
|
|
9948
10144
|
|
|
9949
10145
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -13536,7 +13732,7 @@ var blocks = [
|
|
|
13536
13732
|
|
|
13537
13733
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
13538
13734
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
13539
|
-
import { z as
|
|
13735
|
+
import { z as z297 } from "zod";
|
|
13540
13736
|
function yDocToPage(yDoc, definitions) {
|
|
13541
13737
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
13542
13738
|
}
|
|
@@ -13555,7 +13751,7 @@ function shallowProsemirrorNodeToBlock(prosemirrorNode, definition) {
|
|
|
13555
13751
|
}
|
|
13556
13752
|
function prosemirrorDocToRichTextPropertyValue(prosemirrorNode) {
|
|
13557
13753
|
return {
|
|
13558
|
-
value: (prosemirrorNode.content ?? []).map((n) => prosemirrorNodeToRichTextEditorPropertyNode(n)).filter(
|
|
13754
|
+
value: (prosemirrorNode.content ?? []).map((n) => prosemirrorNodeToRichTextEditorPropertyNode(n)).filter(nonNullFilter)
|
|
13559
13755
|
};
|
|
13560
13756
|
}
|
|
13561
13757
|
function prosemirrorNodeToRichTextEditorPropertyNode(prosemirrorNode) {
|
|
@@ -13579,7 +13775,7 @@ function parseAsListNode(prosemirrorNode) {
|
|
|
13579
13775
|
return {
|
|
13580
13776
|
type: "List",
|
|
13581
13777
|
listType: prosemirrorNode.type === "orderedList" ? "OL" : "UL",
|
|
13582
|
-
value: (prosemirrorNode.content ?? []).map(parseAsListNodeItem).filter(
|
|
13778
|
+
value: (prosemirrorNode.content ?? []).map(parseAsListNodeItem).filter(nonNullFilter)
|
|
13583
13779
|
};
|
|
13584
13780
|
}
|
|
13585
13781
|
function parseAsListNodeItem(prosemirrorNode) {
|
|
@@ -13604,7 +13800,7 @@ function internalProsemirrorNodeToSection(prosemirrorNode, definitionsMap) {
|
|
|
13604
13800
|
contentExpandToEdges: true,
|
|
13605
13801
|
expandToEdges: true
|
|
13606
13802
|
},
|
|
13607
|
-
items: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItem").map((c) => prosemirrorNodeToSectionItem(c, definitionsMap)).filter(
|
|
13803
|
+
items: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItem").map((c) => prosemirrorNodeToSectionItem(c, definitionsMap)).filter(nonNullFilter)
|
|
13608
13804
|
};
|
|
13609
13805
|
}
|
|
13610
13806
|
function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
@@ -13612,8 +13808,8 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
13612
13808
|
if (!id) return null;
|
|
13613
13809
|
return {
|
|
13614
13810
|
id,
|
|
13615
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
13616
|
-
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(
|
|
13811
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z297.string()) ?? "",
|
|
13812
|
+
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
13617
13813
|
};
|
|
13618
13814
|
}
|
|
13619
13815
|
function prosemirrorNodeToSectionColumns(prosemirrorNode, definitionsMap) {
|
|
@@ -13646,7 +13842,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
13646
13842
|
});
|
|
13647
13843
|
}
|
|
13648
13844
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
13649
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
13845
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z297.string());
|
|
13650
13846
|
if (!definitionId) {
|
|
13651
13847
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
13652
13848
|
return [];
|
|
@@ -13687,7 +13883,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
13687
13883
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13688
13884
|
if (!id) return null;
|
|
13689
13885
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13690
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
13886
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z297.string().optional()));
|
|
13691
13887
|
return {
|
|
13692
13888
|
id,
|
|
13693
13889
|
type: "Block",
|
|
@@ -13778,7 +13974,7 @@ function parseAsMultiRichText(prosemirrorNode, definition, property, definitions
|
|
|
13778
13974
|
}
|
|
13779
13975
|
function parseRichText(spans) {
|
|
13780
13976
|
return {
|
|
13781
|
-
spans: spans.map(parseRichTextSpan).filter(
|
|
13977
|
+
spans: spans.map(parseRichTextSpan).filter(nonNullFilter)
|
|
13782
13978
|
};
|
|
13783
13979
|
}
|
|
13784
13980
|
function parseRichTextSpan(span) {
|
|
@@ -13789,7 +13985,7 @@ function parseRichTextSpan(span) {
|
|
|
13789
13985
|
const marks = span.marks ?? [];
|
|
13790
13986
|
return {
|
|
13791
13987
|
text: span.text,
|
|
13792
|
-
attributes: marks.map(parseRichTextAttribute).filter(
|
|
13988
|
+
attributes: marks.map(parseRichTextAttribute).filter(nonNullFilter)
|
|
13793
13989
|
};
|
|
13794
13990
|
}
|
|
13795
13991
|
function parseRichTextAttribute(mark) {
|
|
@@ -13810,9 +14006,9 @@ function parseRichTextAttribute(mark) {
|
|
|
13810
14006
|
return null;
|
|
13811
14007
|
}
|
|
13812
14008
|
function parseProsemirrorLink(mark) {
|
|
13813
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
14009
|
+
const href = getProsemirrorAttribute(mark, "href", z297.string().optional());
|
|
13814
14010
|
if (!href) return null;
|
|
13815
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
14011
|
+
const target = getProsemirrorAttribute(mark, "target", z297.string().optional());
|
|
13816
14012
|
const openInNewTab = target === "_blank";
|
|
13817
14013
|
if (href.startsWith("@")) {
|
|
13818
14014
|
return {
|
|
@@ -13831,9 +14027,9 @@ function parseProsemirrorLink(mark) {
|
|
|
13831
14027
|
}
|
|
13832
14028
|
}
|
|
13833
14029
|
function parseProsemirrorCommentHighlight(mark) {
|
|
13834
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
14030
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z297.string().optional());
|
|
13835
14031
|
if (!highlightId) return null;
|
|
13836
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
14032
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z297.boolean().optional()) ?? false;
|
|
13837
14033
|
return {
|
|
13838
14034
|
type: "Comment",
|
|
13839
14035
|
commentHighlightId: highlightId,
|
|
@@ -13844,7 +14040,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
13844
14040
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13845
14041
|
if (!id) return null;
|
|
13846
14042
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13847
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
14043
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z297.boolean().optional()) !== false;
|
|
13848
14044
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
13849
14045
|
if (!tableChild) {
|
|
13850
14046
|
return emptyTable(id, variantId, 0);
|
|
@@ -13865,7 +14061,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
13865
14061
|
};
|
|
13866
14062
|
tableValue.value = rows.map((row) => {
|
|
13867
14063
|
return {
|
|
13868
|
-
cells: (row.content ?? []).map(parseAsTableCell).filter(
|
|
14064
|
+
cells: (row.content ?? []).map(parseAsTableCell).filter(nonNullFilter)
|
|
13869
14065
|
};
|
|
13870
14066
|
});
|
|
13871
14067
|
return {
|
|
@@ -13890,13 +14086,13 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
13890
14086
|
function parseAsTableCell(prosemirrorNode) {
|
|
13891
14087
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13892
14088
|
if (!id) return null;
|
|
13893
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
14089
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z297.string().optional());
|
|
13894
14090
|
let columnWidth;
|
|
13895
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
14091
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z297.array(z297.number()).nullish());
|
|
13896
14092
|
if (columnWidthArray) {
|
|
13897
14093
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
13898
14094
|
}
|
|
13899
|
-
const tableNodes = (prosemirrorNode.content ?? []).map(parseAsTableNode).filter(
|
|
14095
|
+
const tableNodes = (prosemirrorNode.content ?? []).map(parseAsTableNode).filter(nonNullFilter);
|
|
13900
14096
|
return {
|
|
13901
14097
|
id,
|
|
13902
14098
|
alignment: parseTableCellAlignment(textAlign),
|
|
@@ -13928,7 +14124,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
13928
14124
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
13929
14125
|
};
|
|
13930
14126
|
case "image":
|
|
13931
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
14127
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z297.string());
|
|
13932
14128
|
if (!items) return null;
|
|
13933
14129
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
13934
14130
|
if (!parsedItems.success) return null;
|
|
@@ -14042,29 +14238,29 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
14042
14238
|
);
|
|
14043
14239
|
}
|
|
14044
14240
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
14045
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
14241
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z297.string());
|
|
14046
14242
|
if (!itemsString) return null;
|
|
14047
14243
|
const itemsJson = JSON.parse(itemsString);
|
|
14048
14244
|
if (!Array.isArray(itemsJson)) {
|
|
14049
14245
|
console.error("Block `items` property must be a json array");
|
|
14050
14246
|
return null;
|
|
14051
14247
|
}
|
|
14052
|
-
return itemsJson.map((i) => parseItem(i, definition)).filter(
|
|
14248
|
+
return itemsJson.map((i) => parseItem(i, definition)).filter(nonNullFilter);
|
|
14053
14249
|
}
|
|
14054
14250
|
function parseAppearance(prosemirrorNode) {
|
|
14055
14251
|
let appearance = {};
|
|
14056
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
14252
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z297.string().optional());
|
|
14057
14253
|
if (rawAppearanceString) {
|
|
14058
14254
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
14059
14255
|
if (parsedAppearance.success) {
|
|
14060
14256
|
appearance = parsedAppearance.data;
|
|
14061
14257
|
}
|
|
14062
14258
|
}
|
|
14063
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
14259
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z297.number().optional());
|
|
14064
14260
|
if (columns) {
|
|
14065
14261
|
appearance.numberOfColumns = columns;
|
|
14066
14262
|
}
|
|
14067
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
14263
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z297.string().optional());
|
|
14068
14264
|
if (backgroundColor) {
|
|
14069
14265
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
14070
14266
|
if (parsedColor.success) {
|
|
@@ -14163,12 +14359,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
14163
14359
|
}
|
|
14164
14360
|
}
|
|
14165
14361
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
14166
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
14362
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z297.string());
|
|
14167
14363
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
14168
14364
|
return id;
|
|
14169
14365
|
}
|
|
14170
14366
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
14171
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
14367
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z297.string()));
|
|
14172
14368
|
}
|
|
14173
14369
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
14174
14370
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -14180,7 +14376,7 @@ function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchem
|
|
|
14180
14376
|
return void 0;
|
|
14181
14377
|
}
|
|
14182
14378
|
}
|
|
14183
|
-
function
|
|
14379
|
+
function nonNullFilter(item) {
|
|
14184
14380
|
return item !== null;
|
|
14185
14381
|
}
|
|
14186
14382
|
function mapByUnique2(items, keyFn) {
|
|
@@ -14709,6 +14905,9 @@ export {
|
|
|
14709
14905
|
CodeComponentsEndpoint,
|
|
14710
14906
|
CodegenEndpoint,
|
|
14711
14907
|
Collection2 as Collection,
|
|
14908
|
+
DTOAnalyzeCodeComponentsInPackage,
|
|
14909
|
+
DTOAnalyzeCodeComponentsInPackageInput,
|
|
14910
|
+
DTOAnalyzeCodeComponentsInPackageResponse,
|
|
14712
14911
|
DTOAppBootstrapDataQuery,
|
|
14713
14912
|
DTOAppBootstrapDataResponse,
|
|
14714
14913
|
DTOAssetRenderConfiguration,
|
|
@@ -14755,6 +14954,7 @@ export {
|
|
|
14755
14954
|
DTODeleteDocumentationGroupInput,
|
|
14756
14955
|
DTODeleteDocumentationPageInputV2,
|
|
14757
14956
|
DTODeleteDocumentationTabGroupInput,
|
|
14957
|
+
DTODependencyDefinition,
|
|
14758
14958
|
DTODesignElementsDataDiffResponse,
|
|
14759
14959
|
DTODesignSystem,
|
|
14760
14960
|
DTODesignSystemComponent,
|
|
@@ -14836,6 +15036,8 @@ export {
|
|
|
14836
15036
|
DTODocumentationPageCreateActionOutputV2,
|
|
14837
15037
|
DTODocumentationPageDeleteActionInputV2,
|
|
14838
15038
|
DTODocumentationPageDeleteActionOutputV2,
|
|
15039
|
+
DTODocumentationPageDependencies,
|
|
15040
|
+
DTODocumentationPageDependenciesGetResponse,
|
|
14839
15041
|
DTODocumentationPageDuplicateActionInputV2,
|
|
14840
15042
|
DTODocumentationPageDuplicateActionOutputV2,
|
|
14841
15043
|
DTODocumentationPageIntervalDifferenceResponse,
|
|
@@ -14972,6 +15174,7 @@ export {
|
|
|
14972
15174
|
DTOLiveblocksAuthResponse,
|
|
14973
15175
|
DTOMoveDocumentationGroupInput,
|
|
14974
15176
|
DTOMoveDocumentationPageInputV2,
|
|
15177
|
+
DTONpmRegistryAccessTokenResponse,
|
|
14975
15178
|
DTONpmRegistryConfig,
|
|
14976
15179
|
DTONpmRegistryConfigConstants,
|
|
14977
15180
|
DTOObjectMeta,
|
|
@@ -14997,22 +15200,30 @@ export {
|
|
|
14997
15200
|
DTOPipelineResponse,
|
|
14998
15201
|
DTOPipelineTriggerBody,
|
|
14999
15202
|
DTOPipelineUpdateBody,
|
|
15000
|
-
DTOPubishedDocAnalyticsComparisonData,
|
|
15001
15203
|
DTOPublishDocumentationChanges,
|
|
15002
15204
|
DTOPublishDocumentationRequest,
|
|
15003
15205
|
DTOPublishDocumentationResponse,
|
|
15206
|
+
DTOPublishedDocAnalyticsComparisonData,
|
|
15207
|
+
DTOPublishedDocPageAnalyticsComparisonData,
|
|
15004
15208
|
DTOPublishedDocPageVisitData,
|
|
15005
15209
|
DTOPublishedDocVisitData,
|
|
15006
15210
|
DTOPublishedDocVisitHeatMapWeek,
|
|
15211
|
+
DTORegistry,
|
|
15007
15212
|
DTORenderedAssetFile,
|
|
15008
15213
|
DTORestoreDocumentationGroupInput,
|
|
15009
15214
|
DTORestoreDocumentationPageInput,
|
|
15215
|
+
DTOStorybookAccessTokenPayload,
|
|
15216
|
+
DTOStorybookAccessTokenResponse,
|
|
15010
15217
|
DTOStorybookEntry,
|
|
15011
15218
|
DTOStorybookEntryListResponse,
|
|
15012
15219
|
DTOStorybookEntryOrigin,
|
|
15013
15220
|
DTOStorybookEntryReplaceAction,
|
|
15014
15221
|
DTOStorybookEntryResponse,
|
|
15015
15222
|
DTOStorybookImportPayload,
|
|
15223
|
+
DTOStorybookSourceUpdatePayload,
|
|
15224
|
+
DTOStorybookUploadStatus,
|
|
15225
|
+
DTOStorybookUploadUrlRequest,
|
|
15226
|
+
DTOStorybookUploadUrlResponse,
|
|
15016
15227
|
DTOTheme,
|
|
15017
15228
|
DTOThemeCreatePayload,
|
|
15018
15229
|
DTOThemeListResponse,
|
|
@@ -15025,9 +15236,12 @@ export {
|
|
|
15025
15236
|
DTOUpdateDocumentationGroupInput,
|
|
15026
15237
|
DTOUpdateDocumentationPageDocumentInputV2,
|
|
15027
15238
|
DTOUpdateDocumentationPageInputV2,
|
|
15239
|
+
DTOUpdateRegistryInput,
|
|
15240
|
+
DTOUpdateRegistryOutput,
|
|
15028
15241
|
DTOUpdateUserNotificationSettingsPayload,
|
|
15029
15242
|
DTOUpdateVersionInput,
|
|
15030
15243
|
DTOUser,
|
|
15244
|
+
DTOUserDesignSystemsResponse,
|
|
15031
15245
|
DTOUserGetResponse,
|
|
15032
15246
|
DTOUserNotificationSettingsResponse,
|
|
15033
15247
|
DTOUserOnboarding,
|
|
@@ -15107,6 +15321,7 @@ export {
|
|
|
15107
15321
|
RequestExecutorError,
|
|
15108
15322
|
ResolvedVariableType,
|
|
15109
15323
|
StorybookEntriesEndpoint,
|
|
15324
|
+
StorybookHostingEndpoint,
|
|
15110
15325
|
StringVariableScopeType,
|
|
15111
15326
|
SupernovaApiClient,
|
|
15112
15327
|
ThemesEndpoint,
|
|
@@ -15126,6 +15341,7 @@ export {
|
|
|
15126
15341
|
WorkspaceIntegrationsEndpoint,
|
|
15127
15342
|
WorkspaceInvitationsEndpoint,
|
|
15128
15343
|
WorkspaceMembersEndpoint,
|
|
15344
|
+
WorkspaceNpmRegistryEndpoint,
|
|
15129
15345
|
WorkspacesEndpoint,
|
|
15130
15346
|
applyActionsLocally,
|
|
15131
15347
|
applyPrivacyConfigurationToNestedItems,
|
|
@@ -15136,6 +15352,7 @@ export {
|
|
|
15136
15352
|
documentationAnalyticsToComparisonDto,
|
|
15137
15353
|
documentationAnalyticsToGlobalDto,
|
|
15138
15354
|
documentationAnalyticsToHeatMapDto,
|
|
15355
|
+
documentationAnalyticsToPageComparisonDto,
|
|
15139
15356
|
documentationAnalyticsToPageDto,
|
|
15140
15357
|
documentationItemConfigurationToDTOV1,
|
|
15141
15358
|
documentationItemConfigurationToDTOV2,
|
|
@@ -15181,7 +15398,6 @@ export {
|
|
|
15181
15398
|
validateSsoPayload,
|
|
15182
15399
|
yDocToPage,
|
|
15183
15400
|
yXmlFragmentToPage,
|
|
15184
|
-
yjsToDocumentationHierarchy
|
|
15185
|
-
yjsToItemConfiguration
|
|
15401
|
+
yjsToDocumentationHierarchy
|
|
15186
15402
|
};
|
|
15187
15403
|
//# sourceMappingURL=index.mjs.map
|