@supernova-studio/client 0.55.34 → 0.56.0
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 +6628 -360
- package/dist/index.d.ts +6628 -360
- package/dist/index.js +140 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +826 -704
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/data-source.ts +11 -18
- package/src/api/dto/design-systems/figma-variables.ts +108 -0
- package/src/api/dto/design-systems/import-job.ts +1 -0
- package/src/api/dto/design-systems/index.ts +1 -0
- package/src/api/dto/design-tokens/design-token.ts +21 -0
- package/src/api/dto/design-tokens/index.ts +1 -0
- package/src/api/dto/index.ts +1 -0
- package/src/api/endpoints/design-system/design-systems.ts +3 -0
- package/src/api/endpoints/design-system/index.ts +1 -0
- package/src/api/endpoints/design-system/sources.ts +10 -0
- package/src/api/endpoints/design-system/versions/tokens.ts +8 -0
package/dist/index.mjs
CHANGED
|
@@ -5059,7 +5059,7 @@ var DTOPagination = z175.object({
|
|
|
5059
5059
|
});
|
|
5060
5060
|
|
|
5061
5061
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5062
|
-
import { z as
|
|
5062
|
+
import { z as z205 } from "zod";
|
|
5063
5063
|
|
|
5064
5064
|
// src/api/dto/design-systems/brand.ts
|
|
5065
5065
|
import { z as z176 } from "zod";
|
|
@@ -5089,7 +5089,7 @@ var DTODataSourceFigmaCloud = z177.object({
|
|
|
5089
5089
|
autoImportMode: DataSourceAutoImportMode,
|
|
5090
5090
|
fileThumbnailUrl: z177.string().optional(),
|
|
5091
5091
|
lastImportResult: SourceImportSummary.nullish(),
|
|
5092
|
-
lastImportedAt: z177.date().nullish(),
|
|
5092
|
+
lastImportedAt: z177.coerce.date().nullish(),
|
|
5093
5093
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
5094
5094
|
lastUpdatesCheckedAt: z177.date().nullish(),
|
|
5095
5095
|
ownerId: z177.string(),
|
|
@@ -5104,10 +5104,7 @@ var DTODataSourceFigma = z177.object({
|
|
|
5104
5104
|
scope: DataSourceFigmaScope,
|
|
5105
5105
|
brandId: z177.string(),
|
|
5106
5106
|
themeId: z177.string().nullish(),
|
|
5107
|
-
cloud: DTODataSourceFigmaCloud.nullish()
|
|
5108
|
-
tokenStudio: z177.literal(null),
|
|
5109
|
-
upload: z177.literal(null),
|
|
5110
|
-
figmaVariablesPlugin: z177.literal(null)
|
|
5107
|
+
cloud: DTODataSourceFigmaCloud.nullish()
|
|
5111
5108
|
});
|
|
5112
5109
|
var DTODataSourceTokenStudio = z177.object({
|
|
5113
5110
|
id: z177.string(),
|
|
@@ -5115,7 +5112,6 @@ var DTODataSourceTokenStudio = z177.object({
|
|
|
5115
5112
|
fileName: z177.string(),
|
|
5116
5113
|
brandId: z177.string(),
|
|
5117
5114
|
themeId: z177.string().nullish(),
|
|
5118
|
-
cloud: z177.literal(null),
|
|
5119
5115
|
tokenStudio: z177.object({
|
|
5120
5116
|
settings: z177.object({
|
|
5121
5117
|
dryRun: z177.boolean(),
|
|
@@ -5123,7 +5119,7 @@ var DTODataSourceTokenStudio = z177.object({
|
|
|
5123
5119
|
preciseCopy: z177.boolean()
|
|
5124
5120
|
}),
|
|
5125
5121
|
connectionName: z177.string(),
|
|
5126
|
-
lastImportedAt: z177.date(),
|
|
5122
|
+
lastImportedAt: z177.coerce.date(),
|
|
5127
5123
|
lastImportedResults: z177.array(
|
|
5128
5124
|
z177.object({
|
|
5129
5125
|
mapping: z177.object({
|
|
@@ -5137,28 +5133,25 @@ var DTODataSourceTokenStudio = z177.object({
|
|
|
5137
5133
|
tokensUpdated: z177.number()
|
|
5138
5134
|
})
|
|
5139
5135
|
)
|
|
5140
|
-
})
|
|
5141
|
-
upload: z177.literal(null),
|
|
5142
|
-
figmaVariablesPlugin: z177.literal(null)
|
|
5136
|
+
})
|
|
5143
5137
|
});
|
|
5144
5138
|
var DTODataSourceFigmaVariablesPlugin = z177.object({
|
|
5145
5139
|
id: z177.string(),
|
|
5146
5140
|
type: z177.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5147
5141
|
fileName: z177.string(),
|
|
5148
5142
|
brandId: z177.string(),
|
|
5149
|
-
themeId: z177.literal(null),
|
|
5150
|
-
cloud: z177.literal(null),
|
|
5151
|
-
tokenStudio: z177.literal(null),
|
|
5152
5143
|
upload: z177.object({
|
|
5153
5144
|
remoteId: z177.string(),
|
|
5154
5145
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
5155
|
-
lastImportedAt: z177.date().optional(),
|
|
5156
|
-
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
5146
|
+
lastImportedAt: z177.coerce.date().optional(),
|
|
5147
|
+
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5148
|
+
isTokenTypeSplitEnabled: z177.boolean()
|
|
5157
5149
|
}),
|
|
5158
5150
|
figmaVariablesPlugin: z177.object({
|
|
5159
5151
|
fileId: z177.string(),
|
|
5160
|
-
lastImportedAt: z177.date().optional(),
|
|
5161
|
-
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
5152
|
+
lastImportedAt: z177.coerce.date().optional(),
|
|
5153
|
+
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5154
|
+
isTokenTypeSplitEnabled: z177.boolean()
|
|
5162
5155
|
})
|
|
5163
5156
|
});
|
|
5164
5157
|
var DTODataSource = z177.discriminatedUnion("type", [
|
|
@@ -5276,80 +5269,159 @@ import { z as z182 } from "zod";
|
|
|
5276
5269
|
var DTOExporterProperty = z182.any({});
|
|
5277
5270
|
var DTOExporterPropertyListResponse = z182.object({ items: z182.array(DTOExporterProperty) });
|
|
5278
5271
|
|
|
5279
|
-
// src/api/dto/design-systems/
|
|
5272
|
+
// src/api/dto/design-systems/figma-variables.ts
|
|
5280
5273
|
import { z as z183 } from "zod";
|
|
5281
|
-
var
|
|
5274
|
+
var DimensionsVariableScopeSchema = z183.enum([
|
|
5275
|
+
"CORNER_RADIUS",
|
|
5276
|
+
"WIDTH_HEIGHT",
|
|
5277
|
+
"GAP",
|
|
5278
|
+
"STROKE_FLOAT",
|
|
5279
|
+
"EFFECT_FLOAT",
|
|
5280
|
+
"OPACITY",
|
|
5281
|
+
"FONT_SIZE",
|
|
5282
|
+
"LINE_HEIGHT",
|
|
5283
|
+
"LETTER_SPACING",
|
|
5284
|
+
"PARAGRAPH_SPACING",
|
|
5285
|
+
"PARAGRAPH_INDENT",
|
|
5286
|
+
"FONT_WEIGHT"
|
|
5287
|
+
]);
|
|
5288
|
+
var StringVariableScopeSchema = z183.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
|
|
5289
|
+
var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
|
|
5290
|
+
var StringVariableScopeType = StringVariableScopeSchema.enum;
|
|
5291
|
+
var VariableScope = z183.string();
|
|
5292
|
+
var ReferencedVariableOrigin = z183.object({
|
|
5293
|
+
name: z183.string(),
|
|
5294
|
+
remote: z183.boolean()
|
|
5295
|
+
});
|
|
5296
|
+
var RGB = z183.object({
|
|
5297
|
+
r: z183.number(),
|
|
5298
|
+
g: z183.number(),
|
|
5299
|
+
b: z183.number()
|
|
5300
|
+
});
|
|
5301
|
+
var RGBA = RGB.extend({
|
|
5302
|
+
a: z183.number()
|
|
5303
|
+
});
|
|
5304
|
+
var VariableAlias = z183.object({
|
|
5305
|
+
type: z183.literal("VARIABLE_ALIAS"),
|
|
5282
5306
|
id: z183.string(),
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5307
|
+
resolvedValue: z183.boolean().or(z183.number()).or(z183.string()).or(RGBA).or(RGB).optional(),
|
|
5308
|
+
referenceOrigin: ReferencedVariableOrigin.optional().or(z183.null())
|
|
5309
|
+
});
|
|
5310
|
+
var VariableValue = z183.boolean().or(z183.number()).or(z183.string()).or(RGBA).or(RGB).or(VariableAlias);
|
|
5311
|
+
var ResolvedVariableType = z183.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
|
|
5312
|
+
var Variable = z183.object({
|
|
5313
|
+
id: z183.string(),
|
|
5314
|
+
name: z183.string(),
|
|
5315
|
+
key: z183.string(),
|
|
5316
|
+
variableCollectionId: z183.string(),
|
|
5317
|
+
resolvedType: ResolvedVariableType,
|
|
5318
|
+
valuesByMode: z183.record(VariableValue),
|
|
5319
|
+
remote: z183.boolean(),
|
|
5320
|
+
description: z183.string(),
|
|
5321
|
+
hiddenFromPublishing: z183.boolean(),
|
|
5322
|
+
scopes: z183.array(VariableScope),
|
|
5323
|
+
codeSyntax: z183.record(z183.any()).optional()
|
|
5324
|
+
});
|
|
5325
|
+
var VariableMode = z183.object({
|
|
5326
|
+
modeId: z183.string(),
|
|
5327
|
+
name: z183.string()
|
|
5328
|
+
});
|
|
5329
|
+
var Collection = z183.object({
|
|
5330
|
+
id: z183.string(),
|
|
5331
|
+
name: z183.string(),
|
|
5332
|
+
modes: z183.array(VariableMode),
|
|
5333
|
+
defaultModeId: z183.string(),
|
|
5334
|
+
remote: z183.boolean(),
|
|
5335
|
+
hiddenFromPublishing: z183.boolean()
|
|
5336
|
+
});
|
|
5337
|
+
var VariablesMapping = z183.object({
|
|
5338
|
+
variableCollections: z183.array(z183.string()).min(1),
|
|
5339
|
+
variableMode: z183.string().min(1),
|
|
5340
|
+
supernovaBrand: z183.string().min(1),
|
|
5341
|
+
supernovaTheme: z183.string().min(1).optional().or(z183.null())
|
|
5342
|
+
});
|
|
5343
|
+
var FormattedCollections = z183.object({
|
|
5344
|
+
variables: z183.record(z183.string(), Variable),
|
|
5345
|
+
variableCollections: z183.record(z183.string(), Collection),
|
|
5346
|
+
mappings: z183.array(VariablesMapping).optional(),
|
|
5347
|
+
variablesOrder: z183.string().array().optional()
|
|
5348
|
+
});
|
|
5349
|
+
|
|
5350
|
+
// src/api/dto/design-systems/import-job.ts
|
|
5351
|
+
import { z as z184 } from "zod";
|
|
5352
|
+
var DTOImportJob = z184.object({
|
|
5353
|
+
id: z184.string(),
|
|
5354
|
+
designSystemId: z184.string(),
|
|
5355
|
+
designSystemVersionId: z184.string(),
|
|
5356
|
+
operation: z184.literal("Import"),
|
|
5357
|
+
createdAt: z184.coerce.date(),
|
|
5358
|
+
stateChangedAt: z184.coerce.date(),
|
|
5288
5359
|
state: ImportJobState,
|
|
5289
|
-
sourceIds:
|
|
5360
|
+
sourceIds: z184.string().array()
|
|
5290
5361
|
});
|
|
5291
|
-
var DTOImportJobResponse =
|
|
5362
|
+
var DTOImportJobResponse = z184.object({
|
|
5292
5363
|
job: DTOImportJob
|
|
5293
5364
|
});
|
|
5294
|
-
var DTOBffFigmaImportRequestBody =
|
|
5295
|
-
type:
|
|
5296
|
-
brandPersistentId:
|
|
5297
|
-
fileId:
|
|
5365
|
+
var DTOBffFigmaImportRequestBody = z184.object({
|
|
5366
|
+
type: z184.literal(DataSourceRemoteType.Enum.Figma),
|
|
5367
|
+
brandPersistentId: z184.string().optional(),
|
|
5368
|
+
fileId: z184.string(),
|
|
5298
5369
|
scope: DataSourceFigmaScope,
|
|
5299
5370
|
autoImportMode: DataSourceAutoImportMode
|
|
5300
5371
|
});
|
|
5301
|
-
var DTOBffUploadImportRequestBody =
|
|
5302
|
-
type:
|
|
5303
|
-
brandPersistentId:
|
|
5304
|
-
sourceName:
|
|
5305
|
-
remoteId:
|
|
5306
|
-
|
|
5372
|
+
var DTOBffUploadImportRequestBody = z184.object({
|
|
5373
|
+
type: z184.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5374
|
+
brandPersistentId: z184.string().optional(),
|
|
5375
|
+
sourceName: z184.string().optional(),
|
|
5376
|
+
remoteId: z184.string(),
|
|
5377
|
+
isTokenTypeSplitEnabled: z184.boolean().optional(),
|
|
5378
|
+
payload: z184.any()
|
|
5307
5379
|
});
|
|
5308
|
-
var DTOBffImportRequestBody =
|
|
5380
|
+
var DTOBffImportRequestBody = z184.discriminatedUnion("type", [
|
|
5309
5381
|
DTOBffFigmaImportRequestBody,
|
|
5310
5382
|
DTOBffUploadImportRequestBody
|
|
5311
5383
|
]);
|
|
5312
5384
|
|
|
5313
5385
|
// src/api/dto/design-systems/stats.ts
|
|
5314
|
-
import { z as
|
|
5315
|
-
var DTODesignSystemVersionStats =
|
|
5316
|
-
tokens:
|
|
5317
|
-
designSystemComponents:
|
|
5318
|
-
assets:
|
|
5319
|
-
documentationPages:
|
|
5386
|
+
import { z as z185 } from "zod";
|
|
5387
|
+
var DTODesignSystemVersionStats = z185.object({
|
|
5388
|
+
tokens: z185.number(),
|
|
5389
|
+
designSystemComponents: z185.number(),
|
|
5390
|
+
assets: z185.number(),
|
|
5391
|
+
documentationPages: z185.number()
|
|
5320
5392
|
});
|
|
5321
|
-
var DTODesignSystemVersionStatsQuery =
|
|
5322
|
-
brandId:
|
|
5393
|
+
var DTODesignSystemVersionStatsQuery = z185.object({
|
|
5394
|
+
brandId: z185.string().optional()
|
|
5323
5395
|
});
|
|
5324
5396
|
|
|
5325
5397
|
// src/api/dto/design-systems/version.ts
|
|
5326
|
-
import { z as
|
|
5398
|
+
import { z as z197 } from "zod";
|
|
5327
5399
|
|
|
5328
5400
|
// src/api/payloads/design-systems/brand.ts
|
|
5329
|
-
import { z as
|
|
5330
|
-
var DTOCreateBrandInput =
|
|
5331
|
-
persistentId:
|
|
5332
|
-
meta:
|
|
5333
|
-
name:
|
|
5334
|
-
description:
|
|
5401
|
+
import { z as z186 } from "zod";
|
|
5402
|
+
var DTOCreateBrandInput = z186.object({
|
|
5403
|
+
persistentId: z186.string().uuid(),
|
|
5404
|
+
meta: z186.object({
|
|
5405
|
+
name: z186.string(),
|
|
5406
|
+
description: z186.string()
|
|
5335
5407
|
})
|
|
5336
5408
|
});
|
|
5337
5409
|
|
|
5338
5410
|
// src/api/payloads/design-systems/theme.ts
|
|
5339
|
-
import { z as
|
|
5340
|
-
var DTOCreateThemeInput =
|
|
5411
|
+
import { z as z187 } from "zod";
|
|
5412
|
+
var DTOCreateThemeInput = z187.object({
|
|
5341
5413
|
meta: ObjectMeta,
|
|
5342
|
-
persistentId:
|
|
5343
|
-
designSystemVersionId:
|
|
5344
|
-
brandId:
|
|
5345
|
-
codeName:
|
|
5346
|
-
version:
|
|
5347
|
-
overrides:
|
|
5414
|
+
persistentId: z187.string(),
|
|
5415
|
+
designSystemVersionId: z187.string(),
|
|
5416
|
+
brandId: z187.string(),
|
|
5417
|
+
codeName: z187.string(),
|
|
5418
|
+
version: z187.string().optional(),
|
|
5419
|
+
overrides: z187.array(z187.any())
|
|
5348
5420
|
// TODO Add actual overrides.
|
|
5349
5421
|
});
|
|
5350
5422
|
|
|
5351
5423
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5352
|
-
import { z as
|
|
5424
|
+
import { z as z188 } from "zod";
|
|
5353
5425
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5354
5426
|
id: true,
|
|
5355
5427
|
workspaceId: true,
|
|
@@ -5361,40 +5433,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5361
5433
|
}).extend({
|
|
5362
5434
|
meta: ObjectMeta.partial().optional()
|
|
5363
5435
|
});
|
|
5364
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5436
|
+
var DTODesignSystemUpdateAccessModeInput = z188.object({
|
|
5365
5437
|
accessMode: DesignSystemAccessMode,
|
|
5366
|
-
retain:
|
|
5367
|
-
userIds:
|
|
5368
|
-
inviteIds:
|
|
5438
|
+
retain: z188.object({
|
|
5439
|
+
userIds: z188.string().array(),
|
|
5440
|
+
inviteIds: z188.string().array()
|
|
5369
5441
|
}).optional()
|
|
5370
5442
|
});
|
|
5371
5443
|
|
|
5372
5444
|
// src/api/payloads/design-systems/version.ts
|
|
5373
|
-
import { z as
|
|
5374
|
-
var ObjectMeta2 =
|
|
5375
|
-
name:
|
|
5376
|
-
description:
|
|
5445
|
+
import { z as z189 } from "zod";
|
|
5446
|
+
var ObjectMeta2 = z189.object({
|
|
5447
|
+
name: z189.string().max(150).optional(),
|
|
5448
|
+
description: z189.string().max(2e3).optional()
|
|
5377
5449
|
});
|
|
5378
5450
|
function validateDesignSystemVersion(version) {
|
|
5379
5451
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5380
5452
|
return urlCompliantRegex.test(version);
|
|
5381
5453
|
}
|
|
5382
|
-
var DTOCreateVersionInput =
|
|
5454
|
+
var DTOCreateVersionInput = z189.object({
|
|
5383
5455
|
meta: ObjectMeta2,
|
|
5384
|
-
version:
|
|
5456
|
+
version: z189.string().refine(validateDesignSystemVersion, {
|
|
5385
5457
|
message: "Invalid semantic versioning format"
|
|
5386
5458
|
}),
|
|
5387
|
-
changeLog:
|
|
5459
|
+
changeLog: z189.string().optional()
|
|
5388
5460
|
});
|
|
5389
|
-
var DTOUpdateVersionInput =
|
|
5461
|
+
var DTOUpdateVersionInput = z189.object({
|
|
5390
5462
|
meta: ObjectMeta2,
|
|
5391
|
-
version:
|
|
5463
|
+
version: z189.string(),
|
|
5392
5464
|
// required for PUT, but not editable
|
|
5393
|
-
changeLog:
|
|
5465
|
+
changeLog: z189.string()
|
|
5394
5466
|
});
|
|
5395
5467
|
|
|
5396
5468
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5397
|
-
import { z as
|
|
5469
|
+
import { z as z190 } from "zod";
|
|
5398
5470
|
|
|
5399
5471
|
// src/api/dto/documentation/block-definition.ts
|
|
5400
5472
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5406,60 +5478,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5406
5478
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5407
5479
|
|
|
5408
5480
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5409
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5410
|
-
definitions:
|
|
5481
|
+
var DTOGetBlockDefinitionsOutput = z190.object({
|
|
5482
|
+
definitions: z190.array(DTOPageBlockDefinition)
|
|
5411
5483
|
});
|
|
5412
5484
|
|
|
5413
5485
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5414
|
-
import { z as
|
|
5415
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5416
|
-
environment:
|
|
5486
|
+
import { z as z191 } from "zod";
|
|
5487
|
+
var DTODocumentationPublishTypeQueryParams = z191.object({
|
|
5488
|
+
environment: z191.enum(["Live", "Preview"])
|
|
5417
5489
|
});
|
|
5418
5490
|
|
|
5419
5491
|
// src/api/payloads/export/pipeline.ts
|
|
5420
|
-
import { z as
|
|
5421
|
-
var DTOPipelineCreateBody =
|
|
5422
|
-
name:
|
|
5423
|
-
exporterId:
|
|
5424
|
-
designSystemId:
|
|
5425
|
-
isEnabled:
|
|
5492
|
+
import { z as z192 } from "zod";
|
|
5493
|
+
var DTOPipelineCreateBody = z192.object({
|
|
5494
|
+
name: z192.string(),
|
|
5495
|
+
exporterId: z192.string(),
|
|
5496
|
+
designSystemId: z192.string(),
|
|
5497
|
+
isEnabled: z192.boolean(),
|
|
5426
5498
|
eventType: PipelineEventType,
|
|
5427
|
-
brandPersistentId:
|
|
5428
|
-
themePersistentId:
|
|
5429
|
-
themePersistentIds:
|
|
5499
|
+
brandPersistentId: z192.string().optional(),
|
|
5500
|
+
themePersistentId: z192.string().optional(),
|
|
5501
|
+
themePersistentIds: z192.string().array().optional(),
|
|
5430
5502
|
destination: PipelineDestinationType.optional(),
|
|
5431
5503
|
gitQuery: GitObjectsQuery,
|
|
5432
|
-
destinations:
|
|
5504
|
+
destinations: z192.object({
|
|
5433
5505
|
s3: ExporterDestinationS3.nullish(),
|
|
5434
5506
|
azure: ExporterDestinationAzure.nullish(),
|
|
5435
5507
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5436
5508
|
github: ExporterDestinationGithub.nullish(),
|
|
5437
5509
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5438
5510
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5439
|
-
webhookUrl:
|
|
5511
|
+
webhookUrl: z192.string().nullish()
|
|
5440
5512
|
})
|
|
5441
5513
|
});
|
|
5442
5514
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5443
|
-
id:
|
|
5515
|
+
id: z192.string()
|
|
5444
5516
|
});
|
|
5445
|
-
var DTOPipelineTriggerBody =
|
|
5446
|
-
designSystemVersionId:
|
|
5517
|
+
var DTOPipelineTriggerBody = z192.object({
|
|
5518
|
+
designSystemVersionId: z192.string()
|
|
5447
5519
|
});
|
|
5448
5520
|
|
|
5449
5521
|
// src/api/payloads/liveblocks/auth.ts
|
|
5450
|
-
import { z as
|
|
5451
|
-
var DTOLiveblocksAuthRequest =
|
|
5452
|
-
room:
|
|
5522
|
+
import { z as z193 } from "zod";
|
|
5523
|
+
var DTOLiveblocksAuthRequest = z193.object({
|
|
5524
|
+
room: z193.string().optional()
|
|
5453
5525
|
});
|
|
5454
5526
|
|
|
5455
5527
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5456
|
-
import { z as
|
|
5457
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5528
|
+
import { z as z194 } from "zod";
|
|
5529
|
+
var DTOUpdateUserNotificationSettingsPayload = z194.object({
|
|
5458
5530
|
notificationSettings: UserNotificationSettings
|
|
5459
5531
|
});
|
|
5460
|
-
var DTOUserNotificationSettingsResponse =
|
|
5461
|
-
userId:
|
|
5462
|
-
workspaceId:
|
|
5532
|
+
var DTOUserNotificationSettingsResponse = z194.object({
|
|
5533
|
+
userId: z194.string(),
|
|
5534
|
+
workspaceId: z194.string(),
|
|
5463
5535
|
notificationSettings: UserNotificationSettings
|
|
5464
5536
|
});
|
|
5465
5537
|
|
|
@@ -5467,7 +5539,7 @@ var DTOUserNotificationSettingsResponse = z193.object({
|
|
|
5467
5539
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5468
5540
|
|
|
5469
5541
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5470
|
-
import { z as
|
|
5542
|
+
import { z as z195 } from "zod";
|
|
5471
5543
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5472
5544
|
function validateSsoPayload(ssoPayload) {
|
|
5473
5545
|
const keys = [];
|
|
@@ -5490,21 +5562,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5490
5562
|
keys
|
|
5491
5563
|
};
|
|
5492
5564
|
}
|
|
5493
|
-
var NpmRegistryInput =
|
|
5494
|
-
enabledScopes:
|
|
5495
|
-
customRegistryUrl:
|
|
5496
|
-
bypassProxy:
|
|
5497
|
-
npmProxyRegistryConfigId:
|
|
5498
|
-
npmProxyVersion:
|
|
5499
|
-
registryType:
|
|
5500
|
-
authType:
|
|
5501
|
-
authHeaderName:
|
|
5502
|
-
authHeaderValue:
|
|
5503
|
-
accessToken:
|
|
5504
|
-
username:
|
|
5505
|
-
password:
|
|
5506
|
-
});
|
|
5507
|
-
var WorkspaceConfigurationPayload =
|
|
5565
|
+
var NpmRegistryInput = z195.object({
|
|
5566
|
+
enabledScopes: z195.array(z195.string()),
|
|
5567
|
+
customRegistryUrl: z195.string().optional(),
|
|
5568
|
+
bypassProxy: z195.boolean().optional(),
|
|
5569
|
+
npmProxyRegistryConfigId: z195.string().optional(),
|
|
5570
|
+
npmProxyVersion: z195.number().optional(),
|
|
5571
|
+
registryType: z195.string(),
|
|
5572
|
+
authType: z195.string(),
|
|
5573
|
+
authHeaderName: z195.string(),
|
|
5574
|
+
authHeaderValue: z195.string(),
|
|
5575
|
+
accessToken: z195.string(),
|
|
5576
|
+
username: z195.string(),
|
|
5577
|
+
password: z195.string()
|
|
5578
|
+
});
|
|
5579
|
+
var WorkspaceConfigurationPayload = z195.object({
|
|
5508
5580
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5509
5581
|
sso: SsoProvider.partial().optional(),
|
|
5510
5582
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5512,217 +5584,217 @@ var WorkspaceConfigurationPayload = z194.object({
|
|
|
5512
5584
|
});
|
|
5513
5585
|
|
|
5514
5586
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5515
|
-
import { z as
|
|
5516
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5587
|
+
import { z as z196 } from "zod";
|
|
5588
|
+
var DTOWorkspaceIntegrationOauthInput = z196.object({
|
|
5517
5589
|
type: IntegrationType
|
|
5518
5590
|
});
|
|
5519
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5520
|
-
userId:
|
|
5591
|
+
var DTOWorkspaceIntegrationPATInput = z196.object({
|
|
5592
|
+
userId: z196.string(),
|
|
5521
5593
|
type: IntegrationType,
|
|
5522
5594
|
token: IntegrationToken
|
|
5523
5595
|
});
|
|
5524
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5525
|
-
organization:
|
|
5596
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z196.object({
|
|
5597
|
+
organization: z196.string().optional(),
|
|
5526
5598
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5527
|
-
project:
|
|
5599
|
+
project: z196.string().optional(),
|
|
5528
5600
|
// Only for Bitbucket and Azure
|
|
5529
|
-
repository:
|
|
5601
|
+
repository: z196.string().optional(),
|
|
5530
5602
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5531
|
-
branch:
|
|
5603
|
+
branch: z196.string().optional(),
|
|
5532
5604
|
// For all providers, useful for PR creations.
|
|
5533
|
-
user:
|
|
5605
|
+
user: z196.string().optional()
|
|
5534
5606
|
// Only for Gitlab User Repositories
|
|
5535
5607
|
});
|
|
5536
5608
|
|
|
5537
5609
|
// src/api/dto/design-systems/version.ts
|
|
5538
|
-
var DTODesignSystemVersion =
|
|
5539
|
-
id:
|
|
5540
|
-
createdAt:
|
|
5610
|
+
var DTODesignSystemVersion = z197.object({
|
|
5611
|
+
id: z197.string(),
|
|
5612
|
+
createdAt: z197.coerce.date(),
|
|
5541
5613
|
meta: ObjectMeta,
|
|
5542
|
-
version:
|
|
5543
|
-
isReadonly:
|
|
5544
|
-
changeLog:
|
|
5545
|
-
designSystemId:
|
|
5614
|
+
version: z197.string(),
|
|
5615
|
+
isReadonly: z197.boolean(),
|
|
5616
|
+
changeLog: z197.string(),
|
|
5617
|
+
designSystemId: z197.string()
|
|
5546
5618
|
});
|
|
5547
|
-
var DTODesignSystemVersionsListResponse =
|
|
5548
|
-
designSystemVersions:
|
|
5619
|
+
var DTODesignSystemVersionsListResponse = z197.object({
|
|
5620
|
+
designSystemVersions: z197.array(DTODesignSystemVersion)
|
|
5549
5621
|
});
|
|
5550
|
-
var DTODesignSystemVersionGetResponse =
|
|
5622
|
+
var DTODesignSystemVersionGetResponse = z197.object({
|
|
5551
5623
|
designSystemVersion: DTODesignSystemVersion
|
|
5552
5624
|
});
|
|
5553
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5625
|
+
var DTODesignSystemVersionCreationResponse = z197.object({
|
|
5554
5626
|
meta: ObjectMeta,
|
|
5555
|
-
version:
|
|
5556
|
-
changeLog:
|
|
5557
|
-
isReadOnly:
|
|
5558
|
-
designSystemId:
|
|
5559
|
-
jobId:
|
|
5560
|
-
});
|
|
5561
|
-
var VersionSQSPayload =
|
|
5562
|
-
jobId:
|
|
5563
|
-
designSystemId:
|
|
5627
|
+
version: z197.string(),
|
|
5628
|
+
changeLog: z197.string(),
|
|
5629
|
+
isReadOnly: z197.boolean(),
|
|
5630
|
+
designSystemId: z197.string(),
|
|
5631
|
+
jobId: z197.string()
|
|
5632
|
+
});
|
|
5633
|
+
var VersionSQSPayload = z197.object({
|
|
5634
|
+
jobId: z197.string(),
|
|
5635
|
+
designSystemId: z197.string(),
|
|
5564
5636
|
input: DTOCreateVersionInput
|
|
5565
5637
|
});
|
|
5566
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5567
|
-
jobs:
|
|
5638
|
+
var DTODesignSystemVersionJobsResponse = z197.object({
|
|
5639
|
+
jobs: z197.array(VersionCreationJob)
|
|
5568
5640
|
});
|
|
5569
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5641
|
+
var DTODesignSystemVersionJobStatusResponse = z197.object({
|
|
5570
5642
|
job: VersionCreationJob
|
|
5571
5643
|
});
|
|
5572
5644
|
|
|
5573
5645
|
// src/api/dto/design-systems/view.ts
|
|
5574
|
-
import { z as
|
|
5575
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5576
|
-
id:
|
|
5577
|
-
persistentId:
|
|
5578
|
-
width:
|
|
5646
|
+
import { z as z198 } from "zod";
|
|
5647
|
+
var DTOElementViewColumnSharedAttributes = z198.object({
|
|
5648
|
+
id: z198.string(),
|
|
5649
|
+
persistentId: z198.string(),
|
|
5650
|
+
width: z198.number()
|
|
5579
5651
|
});
|
|
5580
5652
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5581
|
-
type:
|
|
5653
|
+
type: z198.literal("BaseProperty"),
|
|
5582
5654
|
basePropertyType: ElementViewBaseColumnType
|
|
5583
5655
|
});
|
|
5584
5656
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5585
|
-
type:
|
|
5586
|
-
propertyDefinitionId:
|
|
5657
|
+
type: z198.literal("PropertyDefinition"),
|
|
5658
|
+
propertyDefinitionId: z198.string()
|
|
5587
5659
|
});
|
|
5588
5660
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5589
|
-
type:
|
|
5590
|
-
themeId:
|
|
5661
|
+
type: z198.literal("Theme"),
|
|
5662
|
+
themeId: z198.string()
|
|
5591
5663
|
});
|
|
5592
|
-
var DTOElementViewColumn =
|
|
5664
|
+
var DTOElementViewColumn = z198.discriminatedUnion("type", [
|
|
5593
5665
|
DTOElementViewBasePropertyColumn,
|
|
5594
5666
|
DTOElementViewPropertyDefinitionColumn,
|
|
5595
5667
|
DTOElementViewThemeColumn
|
|
5596
5668
|
]);
|
|
5597
|
-
var DTOElementView =
|
|
5669
|
+
var DTOElementView = z198.object({
|
|
5598
5670
|
meta: ObjectMeta,
|
|
5599
|
-
persistentId:
|
|
5671
|
+
persistentId: z198.string(),
|
|
5600
5672
|
targetElementType: ElementPropertyTargetType,
|
|
5601
|
-
id:
|
|
5602
|
-
isDefault:
|
|
5603
|
-
columns:
|
|
5673
|
+
id: z198.string(),
|
|
5674
|
+
isDefault: z198.boolean(),
|
|
5675
|
+
columns: z198.array(DTOElementViewColumn)
|
|
5604
5676
|
});
|
|
5605
|
-
var DTOElementViewsListResponse =
|
|
5606
|
-
elementDataViews:
|
|
5677
|
+
var DTOElementViewsListResponse = z198.object({
|
|
5678
|
+
elementDataViews: z198.array(DTOElementView)
|
|
5607
5679
|
});
|
|
5608
5680
|
|
|
5609
5681
|
// src/api/dto/workspaces/git.ts
|
|
5610
|
-
import { z as
|
|
5611
|
-
var DTOGitOrganization =
|
|
5612
|
-
id:
|
|
5613
|
-
name:
|
|
5614
|
-
url:
|
|
5615
|
-
slug:
|
|
5682
|
+
import { z as z199 } from "zod";
|
|
5683
|
+
var DTOGitOrganization = z199.object({
|
|
5684
|
+
id: z199.string(),
|
|
5685
|
+
name: z199.string(),
|
|
5686
|
+
url: z199.string(),
|
|
5687
|
+
slug: z199.string()
|
|
5616
5688
|
});
|
|
5617
|
-
var DTOGitProject =
|
|
5618
|
-
id:
|
|
5619
|
-
name:
|
|
5620
|
-
url:
|
|
5621
|
-
slug:
|
|
5689
|
+
var DTOGitProject = z199.object({
|
|
5690
|
+
id: z199.string(),
|
|
5691
|
+
name: z199.string(),
|
|
5692
|
+
url: z199.string(),
|
|
5693
|
+
slug: z199.string()
|
|
5622
5694
|
});
|
|
5623
|
-
var DTOGitRepository =
|
|
5624
|
-
id:
|
|
5625
|
-
name:
|
|
5626
|
-
url:
|
|
5627
|
-
slug:
|
|
5628
|
-
defaultBranch:
|
|
5695
|
+
var DTOGitRepository = z199.object({
|
|
5696
|
+
id: z199.string(),
|
|
5697
|
+
name: z199.string(),
|
|
5698
|
+
url: z199.string(),
|
|
5699
|
+
slug: z199.string(),
|
|
5700
|
+
defaultBranch: z199.string().optional()
|
|
5629
5701
|
});
|
|
5630
|
-
var DTOGitBranch =
|
|
5631
|
-
name:
|
|
5632
|
-
lastCommitId:
|
|
5702
|
+
var DTOGitBranch = z199.object({
|
|
5703
|
+
name: z199.string(),
|
|
5704
|
+
lastCommitId: z199.string()
|
|
5633
5705
|
});
|
|
5634
5706
|
|
|
5635
5707
|
// src/api/dto/workspaces/integrations.ts
|
|
5636
|
-
import { z as
|
|
5708
|
+
import { z as z200 } from "zod";
|
|
5637
5709
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5638
5710
|
accessToken: true,
|
|
5639
5711
|
refreshToken: true
|
|
5640
5712
|
});
|
|
5641
|
-
var DTOIntegration =
|
|
5642
|
-
id:
|
|
5643
|
-
workspaceId:
|
|
5713
|
+
var DTOIntegration = z200.object({
|
|
5714
|
+
id: z200.string(),
|
|
5715
|
+
workspaceId: z200.string(),
|
|
5644
5716
|
type: ExtendedIntegrationType,
|
|
5645
|
-
createdAt:
|
|
5646
|
-
integrationCredentials:
|
|
5647
|
-
integrationDesignSystems:
|
|
5717
|
+
createdAt: z200.coerce.date(),
|
|
5718
|
+
integrationCredentials: z200.array(DTOIntegrationCredentials).optional(),
|
|
5719
|
+
integrationDesignSystems: z200.array(IntegrationDesignSystem).optional()
|
|
5648
5720
|
});
|
|
5649
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5650
|
-
url:
|
|
5721
|
+
var DTOIntegrationOAuthGetResponse = z200.object({
|
|
5722
|
+
url: z200.string()
|
|
5651
5723
|
});
|
|
5652
|
-
var DTOIntegrationPostResponse =
|
|
5724
|
+
var DTOIntegrationPostResponse = z200.object({
|
|
5653
5725
|
integration: DTOIntegration
|
|
5654
5726
|
});
|
|
5655
|
-
var DTOIntegrationsGetListResponse =
|
|
5727
|
+
var DTOIntegrationsGetListResponse = z200.object({
|
|
5656
5728
|
integrations: DTOIntegration.array()
|
|
5657
5729
|
});
|
|
5658
5730
|
|
|
5659
5731
|
// src/api/dto/workspaces/invitations.ts
|
|
5660
|
-
import { z as
|
|
5661
|
-
var DTOWorkspaceInvitationInput =
|
|
5662
|
-
email:
|
|
5732
|
+
import { z as z201 } from "zod";
|
|
5733
|
+
var DTOWorkspaceInvitationInput = z201.object({
|
|
5734
|
+
email: z201.string().email(),
|
|
5663
5735
|
role: WorkspaceRoleSchema
|
|
5664
5736
|
});
|
|
5665
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5737
|
+
var DTOWorkspaceInvitationsListInput = z201.object({
|
|
5666
5738
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5667
|
-
designSystemId:
|
|
5739
|
+
designSystemId: z201.string().optional()
|
|
5668
5740
|
});
|
|
5669
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5741
|
+
var DTOWorkspaceInvitationsResponse = z201.object({
|
|
5670
5742
|
invitations: WorkspaceInvitation.array()
|
|
5671
5743
|
});
|
|
5672
|
-
var DTOWorkspaceInviteUpdate =
|
|
5744
|
+
var DTOWorkspaceInviteUpdate = z201.object({
|
|
5673
5745
|
role: WorkspaceRoleSchema
|
|
5674
5746
|
});
|
|
5675
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
5747
|
+
var DTOWorkspaceInvitationUpdateResponse = z201.object({
|
|
5676
5748
|
invitation: WorkspaceInvitation
|
|
5677
5749
|
});
|
|
5678
5750
|
|
|
5679
5751
|
// src/api/dto/workspaces/membership.ts
|
|
5680
|
-
import { z as
|
|
5752
|
+
import { z as z204 } from "zod";
|
|
5681
5753
|
|
|
5682
5754
|
// src/api/dto/workspaces/workspace.ts
|
|
5683
|
-
import { z as
|
|
5755
|
+
import { z as z203 } from "zod";
|
|
5684
5756
|
|
|
5685
5757
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5686
|
-
import { z as
|
|
5758
|
+
import { z as z202 } from "zod";
|
|
5687
5759
|
var DTONpmRegistryConfigConstants = {
|
|
5688
5760
|
passwordPlaceholder: "redacted"
|
|
5689
5761
|
};
|
|
5690
|
-
var DTONpmRegistryConfig =
|
|
5762
|
+
var DTONpmRegistryConfig = z202.object({
|
|
5691
5763
|
// Registry basic configuration
|
|
5692
5764
|
registryType: NpmRegistryType,
|
|
5693
|
-
registryUrl:
|
|
5694
|
-
customRegistryUrl:
|
|
5765
|
+
registryUrl: z202.string(),
|
|
5766
|
+
customRegistryUrl: z202.string().optional(),
|
|
5695
5767
|
// URL of Supernova NPM packages proxy
|
|
5696
|
-
proxyUrl:
|
|
5768
|
+
proxyUrl: z202.string(),
|
|
5697
5769
|
// Auth configuration
|
|
5698
5770
|
authType: NpmRegistryAuthType,
|
|
5699
|
-
accessToken:
|
|
5700
|
-
username:
|
|
5701
|
-
password:
|
|
5771
|
+
accessToken: z202.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5772
|
+
username: z202.string().optional(),
|
|
5773
|
+
password: z202.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5702
5774
|
// NPM package scopes for whih the proxy should be enabled
|
|
5703
|
-
enabledScopes:
|
|
5775
|
+
enabledScopes: z202.array(z202.string()),
|
|
5704
5776
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5705
5777
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5706
|
-
bypassProxy:
|
|
5778
|
+
bypassProxy: z202.boolean()
|
|
5707
5779
|
});
|
|
5708
5780
|
|
|
5709
5781
|
// src/api/dto/workspaces/workspace.ts
|
|
5710
|
-
var DTOWorkspace =
|
|
5711
|
-
id:
|
|
5782
|
+
var DTOWorkspace = z203.object({
|
|
5783
|
+
id: z203.string(),
|
|
5712
5784
|
profile: WorkspaceProfile,
|
|
5713
5785
|
subscription: Subscription,
|
|
5714
5786
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5715
5787
|
});
|
|
5716
|
-
var DTOWorkspaceCreateInput =
|
|
5717
|
-
name:
|
|
5788
|
+
var DTOWorkspaceCreateInput = z203.object({
|
|
5789
|
+
name: z203.string()
|
|
5718
5790
|
});
|
|
5719
|
-
var DTOWorkspaceResponse =
|
|
5791
|
+
var DTOWorkspaceResponse = z203.object({
|
|
5720
5792
|
workspace: DTOWorkspace
|
|
5721
5793
|
});
|
|
5722
5794
|
|
|
5723
5795
|
// src/api/dto/workspaces/membership.ts
|
|
5724
|
-
var DTOWorkspaceRole =
|
|
5725
|
-
var DTOUserWorkspaceMembership =
|
|
5796
|
+
var DTOWorkspaceRole = z204.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
5797
|
+
var DTOUserWorkspaceMembership = z204.object({
|
|
5726
5798
|
// Workspace the user is a member of
|
|
5727
5799
|
workspace: DTOWorkspace,
|
|
5728
5800
|
// Assigned role the user has in the workspace
|
|
@@ -5732,26 +5804,26 @@ var DTOUserWorkspaceMembership = z203.object({
|
|
|
5732
5804
|
// when a workspace's subscription is downgraded to free tier
|
|
5733
5805
|
effectiveRole: DTOWorkspaceRole
|
|
5734
5806
|
});
|
|
5735
|
-
var DTOWorkspaceMember =
|
|
5807
|
+
var DTOWorkspaceMember = z204.object({
|
|
5736
5808
|
user: User,
|
|
5737
5809
|
role: WorkspaceRoleSchema,
|
|
5738
5810
|
effectiveRole: WorkspaceRoleSchema
|
|
5739
5811
|
});
|
|
5740
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5741
|
-
membership:
|
|
5812
|
+
var DTOUserWorkspaceMembershipsResponse = z204.object({
|
|
5813
|
+
membership: z204.array(DTOUserWorkspaceMembership)
|
|
5742
5814
|
});
|
|
5743
|
-
var DTOWorkspaceMembersListResponse =
|
|
5744
|
-
members:
|
|
5815
|
+
var DTOWorkspaceMembersListResponse = z204.object({
|
|
5816
|
+
members: z204.array(DTOWorkspaceMember)
|
|
5745
5817
|
});
|
|
5746
5818
|
|
|
5747
5819
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5748
|
-
var DTOAppBootstrapDataQuery =
|
|
5749
|
-
preferredWorkspaceId:
|
|
5750
|
-
preferredDesignSystemId:
|
|
5751
|
-
preferredVersionId:
|
|
5752
|
-
preferredBrandId:
|
|
5820
|
+
var DTOAppBootstrapDataQuery = z205.object({
|
|
5821
|
+
preferredWorkspaceId: z205.string().optional(),
|
|
5822
|
+
preferredDesignSystemId: z205.string().optional(),
|
|
5823
|
+
preferredVersionId: z205.string().optional(),
|
|
5824
|
+
preferredBrandId: z205.string().optional()
|
|
5753
5825
|
});
|
|
5754
|
-
var DTOAppBootstrapDataResponse =
|
|
5826
|
+
var DTOAppBootstrapDataResponse = z205.object({
|
|
5755
5827
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
5756
5828
|
designSystem: DTODesignSystem.optional(),
|
|
5757
5829
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -5759,37 +5831,54 @@ var DTOAppBootstrapDataResponse = z204.object({
|
|
|
5759
5831
|
});
|
|
5760
5832
|
|
|
5761
5833
|
// src/api/dto/collections/collection.ts
|
|
5762
|
-
import { z as
|
|
5763
|
-
var DTOTokenCollection =
|
|
5764
|
-
id:
|
|
5765
|
-
persistentId:
|
|
5766
|
-
designSystemVersionId:
|
|
5834
|
+
import { z as z206 } from "zod";
|
|
5835
|
+
var DTOTokenCollection = z206.object({
|
|
5836
|
+
id: z206.string(),
|
|
5837
|
+
persistentId: z206.string(),
|
|
5838
|
+
designSystemVersionId: z206.string(),
|
|
5767
5839
|
meta: ObjectMeta,
|
|
5768
|
-
createdAt:
|
|
5769
|
-
updatedAt:
|
|
5770
|
-
origin:
|
|
5771
|
-
id:
|
|
5772
|
-
sourceId:
|
|
5840
|
+
createdAt: z206.coerce.date(),
|
|
5841
|
+
updatedAt: z206.coerce.date(),
|
|
5842
|
+
origin: z206.object({
|
|
5843
|
+
id: z206.string(),
|
|
5844
|
+
sourceId: z206.string()
|
|
5773
5845
|
})
|
|
5774
5846
|
});
|
|
5775
|
-
var DTOTokenCollectionsListReponse =
|
|
5847
|
+
var DTOTokenCollectionsListReponse = z206.object({
|
|
5776
5848
|
collections: DTOTokenCollection.array()
|
|
5777
5849
|
});
|
|
5778
5850
|
|
|
5851
|
+
// src/api/dto/design-tokens/design-token.ts
|
|
5852
|
+
import { z as z207 } from "zod";
|
|
5853
|
+
var DTODesignToken = DesignTokenTypedData.and(
|
|
5854
|
+
z207.object({
|
|
5855
|
+
id: z207.string(),
|
|
5856
|
+
persistentId: z207.string(),
|
|
5857
|
+
designSystemVersionId: z207.string(),
|
|
5858
|
+
meta: ObjectMeta,
|
|
5859
|
+
origin: DesignTokenOrigin.optional(),
|
|
5860
|
+
brandId: z207.string(),
|
|
5861
|
+
updatedAt: z207.coerce.date()
|
|
5862
|
+
})
|
|
5863
|
+
);
|
|
5864
|
+
var DTODesignTokenListResponse = z207.object({
|
|
5865
|
+
tokens: DTODesignToken.array()
|
|
5866
|
+
});
|
|
5867
|
+
|
|
5779
5868
|
// src/api/dto/documentation/anchor.ts
|
|
5780
|
-
import { z as
|
|
5869
|
+
import { z as z208 } from "zod";
|
|
5781
5870
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
5782
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
5783
|
-
anchors:
|
|
5871
|
+
var DTOGetDocumentationPageAnchorsResponse = z208.object({
|
|
5872
|
+
anchors: z208.array(DTODocumentationPageAnchor)
|
|
5784
5873
|
});
|
|
5785
5874
|
|
|
5786
5875
|
// src/api/dto/documentation/approvals.ts
|
|
5787
|
-
import { z as
|
|
5876
|
+
import { z as z209 } from "zod";
|
|
5788
5877
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
5789
|
-
var DTODocumentationGroupApprovalState =
|
|
5790
|
-
persistentId:
|
|
5791
|
-
groupId:
|
|
5792
|
-
designSystemVersionId:
|
|
5878
|
+
var DTODocumentationGroupApprovalState = z209.object({
|
|
5879
|
+
persistentId: z209.string(),
|
|
5880
|
+
groupId: z209.string(),
|
|
5881
|
+
designSystemVersionId: z209.string(),
|
|
5793
5882
|
approvalState: DocumentationPageApprovalState
|
|
5794
5883
|
});
|
|
5795
5884
|
|
|
@@ -5797,68 +5886,68 @@ var DTODocumentationGroupApprovalState = z207.object({
|
|
|
5797
5886
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
5798
5887
|
|
|
5799
5888
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5800
|
-
import { z as
|
|
5889
|
+
import { z as z214 } from "zod";
|
|
5801
5890
|
|
|
5802
5891
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5803
|
-
import { z as
|
|
5892
|
+
import { z as z213 } from "zod";
|
|
5804
5893
|
|
|
5805
5894
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5806
|
-
import { z as
|
|
5895
|
+
import { z as z211 } from "zod";
|
|
5807
5896
|
|
|
5808
5897
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
5809
|
-
import { z as
|
|
5898
|
+
import { z as z210 } from "zod";
|
|
5810
5899
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5811
|
-
var DTODocumentationItemConfigurationV2 =
|
|
5812
|
-
showSidebar:
|
|
5813
|
-
isPrivate:
|
|
5814
|
-
isHidden:
|
|
5900
|
+
var DTODocumentationItemConfigurationV2 = z210.object({
|
|
5901
|
+
showSidebar: z210.boolean(),
|
|
5902
|
+
isPrivate: z210.boolean(),
|
|
5903
|
+
isHidden: z210.boolean(),
|
|
5815
5904
|
header: DTODocumentationItemHeaderV2
|
|
5816
5905
|
});
|
|
5817
5906
|
|
|
5818
5907
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5819
|
-
var DTODocumentationDraftChangeType =
|
|
5820
|
-
var DTODocumentationDraftStateCreated =
|
|
5821
|
-
changeType:
|
|
5822
|
-
});
|
|
5823
|
-
var DTODocumentationDraftStateUpdated =
|
|
5824
|
-
changeType:
|
|
5825
|
-
changes:
|
|
5826
|
-
previousTitle:
|
|
5908
|
+
var DTODocumentationDraftChangeType = z211.enum(["Created", "Updated", "Deleted"]);
|
|
5909
|
+
var DTODocumentationDraftStateCreated = z211.object({
|
|
5910
|
+
changeType: z211.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
5911
|
+
});
|
|
5912
|
+
var DTODocumentationDraftStateUpdated = z211.object({
|
|
5913
|
+
changeType: z211.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
5914
|
+
changes: z211.object({
|
|
5915
|
+
previousTitle: z211.string().optional(),
|
|
5827
5916
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
5828
|
-
previousContentHash:
|
|
5917
|
+
previousContentHash: z211.string().optional()
|
|
5829
5918
|
})
|
|
5830
5919
|
});
|
|
5831
|
-
var DTODocumentationDraftStateDeleted =
|
|
5832
|
-
changeType:
|
|
5833
|
-
deletedAt:
|
|
5834
|
-
deletedByUserId:
|
|
5920
|
+
var DTODocumentationDraftStateDeleted = z211.object({
|
|
5921
|
+
changeType: z211.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
5922
|
+
deletedAt: z211.coerce.date(),
|
|
5923
|
+
deletedByUserId: z211.string()
|
|
5835
5924
|
});
|
|
5836
|
-
var DTODocumentationDraftState =
|
|
5925
|
+
var DTODocumentationDraftState = z211.discriminatedUnion("changeType", [
|
|
5837
5926
|
DTODocumentationDraftStateCreated,
|
|
5838
5927
|
DTODocumentationDraftStateUpdated,
|
|
5839
5928
|
DTODocumentationDraftStateDeleted
|
|
5840
5929
|
]);
|
|
5841
5930
|
|
|
5842
5931
|
// src/api/dto/elements/documentation/metadata.ts
|
|
5843
|
-
import { z as
|
|
5844
|
-
var DTODocumentationPublishMetadata =
|
|
5845
|
-
lastPublishedByUserId:
|
|
5846
|
-
lastPublishedAt:
|
|
5932
|
+
import { z as z212 } from "zod";
|
|
5933
|
+
var DTODocumentationPublishMetadata = z212.object({
|
|
5934
|
+
lastPublishedByUserId: z212.string(),
|
|
5935
|
+
lastPublishedAt: z212.coerce.date()
|
|
5847
5936
|
});
|
|
5848
5937
|
|
|
5849
5938
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5850
|
-
var DTODocumentationPageV2 =
|
|
5851
|
-
id:
|
|
5852
|
-
persistentId:
|
|
5853
|
-
designSystemVersionId:
|
|
5854
|
-
title:
|
|
5939
|
+
var DTODocumentationPageV2 = z213.object({
|
|
5940
|
+
id: z213.string(),
|
|
5941
|
+
persistentId: z213.string(),
|
|
5942
|
+
designSystemVersionId: z213.string(),
|
|
5943
|
+
title: z213.string(),
|
|
5855
5944
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5856
|
-
shortPersistentId:
|
|
5857
|
-
slug:
|
|
5858
|
-
userSlug:
|
|
5859
|
-
createdAt:
|
|
5860
|
-
updatedAt:
|
|
5861
|
-
path:
|
|
5945
|
+
shortPersistentId: z213.string(),
|
|
5946
|
+
slug: z213.string().optional(),
|
|
5947
|
+
userSlug: z213.string().optional(),
|
|
5948
|
+
createdAt: z213.coerce.date(),
|
|
5949
|
+
updatedAt: z213.coerce.date(),
|
|
5950
|
+
path: z213.string(),
|
|
5862
5951
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5863
5952
|
draftState: DTODocumentationDraftState.optional(),
|
|
5864
5953
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -5866,197 +5955,197 @@ var DTODocumentationPageV2 = z211.object({
|
|
|
5866
5955
|
/** Defines the approval state of the documentation page */
|
|
5867
5956
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
5868
5957
|
// Backward compatibility
|
|
5869
|
-
type:
|
|
5958
|
+
type: z213.literal("Page")
|
|
5870
5959
|
});
|
|
5871
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5960
|
+
var DTOCreateDocumentationPageInputV2 = z213.object({
|
|
5872
5961
|
// Identifier
|
|
5873
|
-
persistentId:
|
|
5962
|
+
persistentId: z213.string(),
|
|
5874
5963
|
// Page properties
|
|
5875
|
-
title:
|
|
5964
|
+
title: z213.string(),
|
|
5876
5965
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5877
5966
|
// Page placement properties
|
|
5878
|
-
parentPersistentId:
|
|
5879
|
-
afterPersistentId:
|
|
5967
|
+
parentPersistentId: z213.string(),
|
|
5968
|
+
afterPersistentId: z213.string().nullish()
|
|
5880
5969
|
});
|
|
5881
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5970
|
+
var DTOUpdateDocumentationPageInputV2 = z213.object({
|
|
5882
5971
|
// Identifier of the group to update
|
|
5883
|
-
id:
|
|
5972
|
+
id: z213.string(),
|
|
5884
5973
|
// Page properties
|
|
5885
|
-
title:
|
|
5974
|
+
title: z213.string().optional(),
|
|
5886
5975
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5887
5976
|
});
|
|
5888
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5977
|
+
var DTOMoveDocumentationPageInputV2 = z213.object({
|
|
5889
5978
|
// Identifier of the group to update
|
|
5890
|
-
id:
|
|
5979
|
+
id: z213.string(),
|
|
5891
5980
|
// Page placement properties
|
|
5892
|
-
parentPersistentId:
|
|
5893
|
-
afterPersistentId:
|
|
5981
|
+
parentPersistentId: z213.string(),
|
|
5982
|
+
afterPersistentId: z213.string().nullish()
|
|
5894
5983
|
});
|
|
5895
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5984
|
+
var DTODuplicateDocumentationPageInputV2 = z213.object({
|
|
5896
5985
|
// Identifier of the page to duplicate from
|
|
5897
|
-
id:
|
|
5986
|
+
id: z213.string(),
|
|
5898
5987
|
// New page persistent id
|
|
5899
|
-
persistentId:
|
|
5988
|
+
persistentId: z213.string(),
|
|
5900
5989
|
// Page placement properties
|
|
5901
|
-
parentPersistentId:
|
|
5902
|
-
afterPersistentId:
|
|
5990
|
+
parentPersistentId: z213.string(),
|
|
5991
|
+
afterPersistentId: z213.string().nullish()
|
|
5903
5992
|
});
|
|
5904
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5993
|
+
var DTODeleteDocumentationPageInputV2 = z213.object({
|
|
5905
5994
|
// Identifier
|
|
5906
|
-
id:
|
|
5995
|
+
id: z213.string()
|
|
5907
5996
|
});
|
|
5908
|
-
var DTORestoreDocumentationPageInput =
|
|
5909
|
-
persistentId:
|
|
5910
|
-
snapshotId:
|
|
5997
|
+
var DTORestoreDocumentationPageInput = z213.object({
|
|
5998
|
+
persistentId: z213.string(),
|
|
5999
|
+
snapshotId: z213.string().optional()
|
|
5911
6000
|
});
|
|
5912
|
-
var DTORestoreDocumentationGroupInput =
|
|
5913
|
-
persistentId:
|
|
5914
|
-
snapshotId:
|
|
6001
|
+
var DTORestoreDocumentationGroupInput = z213.object({
|
|
6002
|
+
persistentId: z213.string(),
|
|
6003
|
+
snapshotId: z213.string().optional()
|
|
5915
6004
|
});
|
|
5916
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
5917
|
-
persistentId:
|
|
6005
|
+
var DTODocumentationPageApprovalStateChangeInput = z213.object({
|
|
6006
|
+
persistentId: z213.string(),
|
|
5918
6007
|
approvalState: DocumentationPageApprovalState.optional()
|
|
5919
6008
|
});
|
|
5920
6009
|
|
|
5921
6010
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5922
|
-
var DTODocumentationPageSnapshot =
|
|
5923
|
-
id:
|
|
5924
|
-
designSystemVersionId:
|
|
5925
|
-
createdAt:
|
|
5926
|
-
updatedAt:
|
|
6011
|
+
var DTODocumentationPageSnapshot = z214.object({
|
|
6012
|
+
id: z214.string(),
|
|
6013
|
+
designSystemVersionId: z214.string(),
|
|
6014
|
+
createdAt: z214.string(),
|
|
6015
|
+
updatedAt: z214.string(),
|
|
5927
6016
|
documentationPage: DTODocumentationPageV2,
|
|
5928
|
-
pageContentHash:
|
|
6017
|
+
pageContentHash: z214.string(),
|
|
5929
6018
|
reason: DesignElementSnapshotReason
|
|
5930
6019
|
});
|
|
5931
6020
|
|
|
5932
6021
|
// src/api/dto/documentation/link-preview.ts
|
|
5933
|
-
import { z as
|
|
5934
|
-
var DTODocumentationLinkPreviewResponse =
|
|
6022
|
+
import { z as z215 } from "zod";
|
|
6023
|
+
var DTODocumentationLinkPreviewResponse = z215.object({
|
|
5935
6024
|
linkPreview: DocumentationLinkPreview
|
|
5936
6025
|
});
|
|
5937
|
-
var DTODocumentationLinkPreviewRequest =
|
|
5938
|
-
url:
|
|
5939
|
-
documentationItemPersistentId:
|
|
6026
|
+
var DTODocumentationLinkPreviewRequest = z215.object({
|
|
6027
|
+
url: z215.string().optional(),
|
|
6028
|
+
documentationItemPersistentId: z215.string().optional()
|
|
5940
6029
|
});
|
|
5941
6030
|
|
|
5942
6031
|
// src/api/dto/documentation/publish.ts
|
|
5943
|
-
import { z as
|
|
6032
|
+
import { z as z219 } from "zod";
|
|
5944
6033
|
|
|
5945
6034
|
// src/api/dto/export/exporter.ts
|
|
5946
|
-
import { z as
|
|
5947
|
-
var DTOExporterType =
|
|
5948
|
-
var DTOExporterSource =
|
|
5949
|
-
var DTOExporterMembershipRole =
|
|
5950
|
-
var DTOExporter =
|
|
5951
|
-
id:
|
|
5952
|
-
name:
|
|
5953
|
-
isPrivate:
|
|
6035
|
+
import { z as z216 } from "zod";
|
|
6036
|
+
var DTOExporterType = z216.enum(["documentation", "code"]);
|
|
6037
|
+
var DTOExporterSource = z216.enum(["git", "upload"]);
|
|
6038
|
+
var DTOExporterMembershipRole = z216.enum(["Owner", "OwnerArchived", "User"]);
|
|
6039
|
+
var DTOExporter = z216.object({
|
|
6040
|
+
id: z216.string(),
|
|
6041
|
+
name: z216.string(),
|
|
6042
|
+
isPrivate: z216.boolean(),
|
|
5954
6043
|
exporterType: DTOExporterType,
|
|
5955
|
-
isDefaultDocumentationExporter:
|
|
5956
|
-
iconURL:
|
|
6044
|
+
isDefaultDocumentationExporter: z216.boolean(),
|
|
6045
|
+
iconURL: z216.string().optional(),
|
|
5957
6046
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5958
6047
|
customBlocks: PulsarCustomBlock.array(),
|
|
5959
|
-
blockVariants:
|
|
5960
|
-
usesBrands:
|
|
5961
|
-
usesThemes:
|
|
6048
|
+
blockVariants: z216.record(z216.string(), PulsarContributionVariant.array()),
|
|
6049
|
+
usesBrands: z216.boolean(),
|
|
6050
|
+
usesThemes: z216.boolean(),
|
|
5962
6051
|
source: DTOExporterSource,
|
|
5963
|
-
gitUrl:
|
|
5964
|
-
gitBranch:
|
|
5965
|
-
gitDirectory:
|
|
6052
|
+
gitUrl: z216.string().optional(),
|
|
6053
|
+
gitBranch: z216.string().optional(),
|
|
6054
|
+
gitDirectory: z216.string().optional()
|
|
5966
6055
|
});
|
|
5967
|
-
var DTOExporterMembership =
|
|
5968
|
-
workspaceId:
|
|
5969
|
-
exporterId:
|
|
6056
|
+
var DTOExporterMembership = z216.object({
|
|
6057
|
+
workspaceId: z216.string(),
|
|
6058
|
+
exporterId: z216.string(),
|
|
5970
6059
|
role: DTOExporterMembershipRole
|
|
5971
6060
|
});
|
|
5972
|
-
var DTOExporterCreateOutput =
|
|
6061
|
+
var DTOExporterCreateOutput = z216.object({
|
|
5973
6062
|
exporter: DTOExporter,
|
|
5974
6063
|
membership: DTOExporterMembership
|
|
5975
6064
|
});
|
|
5976
|
-
var DTOExporterGitProviderEnum =
|
|
5977
|
-
var DTOExporterCreateInput =
|
|
5978
|
-
url:
|
|
6065
|
+
var DTOExporterGitProviderEnum = z216.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
6066
|
+
var DTOExporterCreateInput = z216.object({
|
|
6067
|
+
url: z216.string(),
|
|
5979
6068
|
provider: DTOExporterGitProviderEnum
|
|
5980
6069
|
});
|
|
5981
|
-
var DTOExporterUpdateInput =
|
|
5982
|
-
url:
|
|
6070
|
+
var DTOExporterUpdateInput = z216.object({
|
|
6071
|
+
url: z216.string().optional()
|
|
5983
6072
|
});
|
|
5984
6073
|
|
|
5985
6074
|
// src/api/dto/export/filter.ts
|
|
5986
6075
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
5987
6076
|
|
|
5988
6077
|
// src/api/dto/export/job.ts
|
|
5989
|
-
import { z as
|
|
5990
|
-
var DTOExportJobCreatedBy =
|
|
5991
|
-
userId:
|
|
5992
|
-
userName:
|
|
6078
|
+
import { z as z217 } from "zod";
|
|
6079
|
+
var DTOExportJobCreatedBy = z217.object({
|
|
6080
|
+
userId: z217.string(),
|
|
6081
|
+
userName: z217.string()
|
|
5993
6082
|
});
|
|
5994
|
-
var DTOExportJobDesignSystemPreview =
|
|
5995
|
-
id:
|
|
6083
|
+
var DTOExportJobDesignSystemPreview = z217.object({
|
|
6084
|
+
id: z217.string(),
|
|
5996
6085
|
meta: ObjectMeta
|
|
5997
6086
|
});
|
|
5998
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5999
|
-
id:
|
|
6087
|
+
var DTOExportJobDesignSystemVersionPreview = z217.object({
|
|
6088
|
+
id: z217.string(),
|
|
6000
6089
|
meta: ObjectMeta,
|
|
6001
|
-
version:
|
|
6002
|
-
isReadonly:
|
|
6090
|
+
version: z217.string(),
|
|
6091
|
+
isReadonly: z217.boolean()
|
|
6003
6092
|
});
|
|
6004
|
-
var DTOExportJobDestinations =
|
|
6093
|
+
var DTOExportJobDestinations = z217.object({
|
|
6005
6094
|
s3: ExporterDestinationS3.optional(),
|
|
6006
6095
|
azure: ExporterDestinationAzure.optional(),
|
|
6007
6096
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
6008
6097
|
github: ExporterDestinationGithub.optional(),
|
|
6009
6098
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
6010
6099
|
documentation: ExporterDestinationDocs.optional(),
|
|
6011
|
-
webhookUrl:
|
|
6100
|
+
webhookUrl: z217.string().optional()
|
|
6012
6101
|
});
|
|
6013
6102
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
6014
6103
|
sndocs: true
|
|
6015
6104
|
}).extend({
|
|
6016
6105
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
6017
6106
|
});
|
|
6018
|
-
var DTOExportJob =
|
|
6019
|
-
id:
|
|
6020
|
-
createdAt:
|
|
6021
|
-
finishedAt:
|
|
6022
|
-
index:
|
|
6107
|
+
var DTOExportJob = z217.object({
|
|
6108
|
+
id: z217.string(),
|
|
6109
|
+
createdAt: z217.coerce.date(),
|
|
6110
|
+
finishedAt: z217.coerce.date().optional(),
|
|
6111
|
+
index: z217.number().optional(),
|
|
6023
6112
|
status: ExportJobStatus,
|
|
6024
|
-
estimatedExecutionTime:
|
|
6113
|
+
estimatedExecutionTime: z217.number().optional(),
|
|
6025
6114
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
6026
6115
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
6027
6116
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
6028
6117
|
destinations: DTOExportJobDestinations,
|
|
6029
|
-
exporterId:
|
|
6030
|
-
scheduleId:
|
|
6118
|
+
exporterId: z217.string(),
|
|
6119
|
+
scheduleId: z217.string().optional(),
|
|
6031
6120
|
result: DTOExportJobResult.optional(),
|
|
6032
|
-
brandPersistentId:
|
|
6033
|
-
themePersistentId:
|
|
6034
|
-
themePersistentIds:
|
|
6121
|
+
brandPersistentId: z217.string().optional(),
|
|
6122
|
+
themePersistentId: z217.string().optional(),
|
|
6123
|
+
themePersistentIds: z217.string().array().optional()
|
|
6035
6124
|
});
|
|
6036
|
-
var DTOExportJobResponse =
|
|
6125
|
+
var DTOExportJobResponse = z217.object({
|
|
6037
6126
|
job: DTOExportJob
|
|
6038
6127
|
});
|
|
6039
6128
|
|
|
6040
6129
|
// src/api/dto/export/pipeline.ts
|
|
6041
|
-
import { z as
|
|
6042
|
-
var DTOPipeline =
|
|
6043
|
-
id:
|
|
6044
|
-
name:
|
|
6130
|
+
import { z as z218 } from "zod";
|
|
6131
|
+
var DTOPipeline = z218.object({
|
|
6132
|
+
id: z218.string(),
|
|
6133
|
+
name: z218.string(),
|
|
6045
6134
|
eventType: PipelineEventType,
|
|
6046
|
-
isEnabled:
|
|
6047
|
-
workspaceId:
|
|
6048
|
-
designSystemId:
|
|
6049
|
-
exporterId:
|
|
6050
|
-
brandPersistentId:
|
|
6051
|
-
themePersistentId:
|
|
6052
|
-
themePersistentIds:
|
|
6135
|
+
isEnabled: z218.boolean(),
|
|
6136
|
+
workspaceId: z218.string(),
|
|
6137
|
+
designSystemId: z218.string(),
|
|
6138
|
+
exporterId: z218.string(),
|
|
6139
|
+
brandPersistentId: z218.string().optional(),
|
|
6140
|
+
themePersistentId: z218.string().optional(),
|
|
6141
|
+
themePersistentIds: z218.string().array().optional(),
|
|
6053
6142
|
...ExportDestinationsMap.shape,
|
|
6054
6143
|
latestJobs: DTOExportJob.array()
|
|
6055
6144
|
});
|
|
6056
6145
|
|
|
6057
6146
|
// src/api/dto/documentation/publish.ts
|
|
6058
6147
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6059
|
-
var DTOPublishDocumentationRequest =
|
|
6148
|
+
var DTOPublishDocumentationRequest = z219.object({
|
|
6060
6149
|
environment: PublishedDocEnvironment,
|
|
6061
6150
|
/**
|
|
6062
6151
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6064,42 +6153,42 @@ var DTOPublishDocumentationRequest = z217.object({
|
|
|
6064
6153
|
*/
|
|
6065
6154
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6066
6155
|
});
|
|
6067
|
-
var DTOPublishDocumentationResponse =
|
|
6156
|
+
var DTOPublishDocumentationResponse = z219.object({
|
|
6068
6157
|
job: DTOExportJob
|
|
6069
6158
|
});
|
|
6070
6159
|
|
|
6071
6160
|
// src/api/dto/elements/components/figma-component.ts
|
|
6072
|
-
import { z as
|
|
6161
|
+
import { z as z220 } from "zod";
|
|
6073
6162
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6074
|
-
var DTOFigmaComponentPropertyMap =
|
|
6075
|
-
var DTOFigmaComponent =
|
|
6076
|
-
id:
|
|
6077
|
-
persistentId:
|
|
6078
|
-
designSystemVersionId:
|
|
6079
|
-
brandId:
|
|
6080
|
-
thumbnailUrl:
|
|
6081
|
-
svgUrl:
|
|
6082
|
-
exportProperties:
|
|
6083
|
-
isAsset:
|
|
6163
|
+
var DTOFigmaComponentPropertyMap = z220.record(DTOFigmaComponentProperty);
|
|
6164
|
+
var DTOFigmaComponent = z220.object({
|
|
6165
|
+
id: z220.string(),
|
|
6166
|
+
persistentId: z220.string(),
|
|
6167
|
+
designSystemVersionId: z220.string(),
|
|
6168
|
+
brandId: z220.string(),
|
|
6169
|
+
thumbnailUrl: z220.string().optional(),
|
|
6170
|
+
svgUrl: z220.string().optional(),
|
|
6171
|
+
exportProperties: z220.object({
|
|
6172
|
+
isAsset: z220.boolean()
|
|
6084
6173
|
}),
|
|
6085
|
-
createdAt:
|
|
6086
|
-
updatedAt:
|
|
6174
|
+
createdAt: z220.coerce.date(),
|
|
6175
|
+
updatedAt: z220.coerce.date(),
|
|
6087
6176
|
meta: ObjectMeta,
|
|
6088
6177
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6089
|
-
parentComponentPersistentId:
|
|
6090
|
-
childrenPersistentIds:
|
|
6178
|
+
parentComponentPersistentId: z220.string().optional(),
|
|
6179
|
+
childrenPersistentIds: z220.string().array().optional(),
|
|
6091
6180
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6092
|
-
variantPropertyValues:
|
|
6181
|
+
variantPropertyValues: z220.record(z220.string()).optional()
|
|
6093
6182
|
});
|
|
6094
|
-
var DTOFigmaComponentListResponse =
|
|
6183
|
+
var DTOFigmaComponentListResponse = z220.object({
|
|
6095
6184
|
components: DTOFigmaComponent.array()
|
|
6096
6185
|
});
|
|
6097
6186
|
|
|
6098
6187
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6099
|
-
import { z as
|
|
6188
|
+
import { z as z222 } from "zod";
|
|
6100
6189
|
|
|
6101
6190
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6102
|
-
import { z as
|
|
6191
|
+
import { z as z221 } from "zod";
|
|
6103
6192
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6104
6193
|
sortOrder: true,
|
|
6105
6194
|
parentPersistentId: true,
|
|
@@ -6109,13 +6198,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6109
6198
|
data: true,
|
|
6110
6199
|
shortPersistentId: true
|
|
6111
6200
|
}).extend({
|
|
6112
|
-
title:
|
|
6113
|
-
isRoot:
|
|
6114
|
-
childrenIds:
|
|
6201
|
+
title: z221.string(),
|
|
6202
|
+
isRoot: z221.boolean(),
|
|
6203
|
+
childrenIds: z221.array(z221.string()),
|
|
6115
6204
|
groupBehavior: DocumentationGroupBehavior,
|
|
6116
|
-
shortPersistentId:
|
|
6205
|
+
shortPersistentId: z221.string(),
|
|
6117
6206
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6118
|
-
type:
|
|
6207
|
+
type: z221.literal("Group"),
|
|
6119
6208
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6120
6209
|
draftState: DTODocumentationDraftState.optional(),
|
|
6121
6210
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6123,127 +6212,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6123
6212
|
//** An approval state for frontend to utilize. */
|
|
6124
6213
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6125
6214
|
});
|
|
6126
|
-
var DTOCreateDocumentationGroupInput =
|
|
6215
|
+
var DTOCreateDocumentationGroupInput = z221.object({
|
|
6127
6216
|
// Identifier
|
|
6128
|
-
persistentId:
|
|
6217
|
+
persistentId: z221.string(),
|
|
6129
6218
|
// Group properties
|
|
6130
|
-
title:
|
|
6219
|
+
title: z221.string(),
|
|
6131
6220
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6132
6221
|
// Group placement properties
|
|
6133
|
-
afterPersistentId:
|
|
6134
|
-
parentPersistentId:
|
|
6222
|
+
afterPersistentId: z221.string().nullish(),
|
|
6223
|
+
parentPersistentId: z221.string()
|
|
6135
6224
|
});
|
|
6136
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6225
|
+
var DTOUpdateDocumentationGroupInput = z221.object({
|
|
6137
6226
|
// Identifier of the group to update
|
|
6138
|
-
id:
|
|
6227
|
+
id: z221.string(),
|
|
6139
6228
|
// Group properties
|
|
6140
|
-
title:
|
|
6229
|
+
title: z221.string().optional(),
|
|
6141
6230
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6142
6231
|
});
|
|
6143
|
-
var DTOMoveDocumentationGroupInput =
|
|
6232
|
+
var DTOMoveDocumentationGroupInput = z221.object({
|
|
6144
6233
|
// Identifier of the group to update
|
|
6145
|
-
id:
|
|
6234
|
+
id: z221.string(),
|
|
6146
6235
|
// Group placement properties
|
|
6147
|
-
parentPersistentId:
|
|
6148
|
-
afterPersistentId:
|
|
6236
|
+
parentPersistentId: z221.string(),
|
|
6237
|
+
afterPersistentId: z221.string().nullish()
|
|
6149
6238
|
});
|
|
6150
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6239
|
+
var DTODuplicateDocumentationGroupInput = z221.object({
|
|
6151
6240
|
// Identifier of the group to duplicate from
|
|
6152
|
-
id:
|
|
6241
|
+
id: z221.string(),
|
|
6153
6242
|
// New group persistent id
|
|
6154
|
-
persistentId:
|
|
6243
|
+
persistentId: z221.string(),
|
|
6155
6244
|
// Group placement properties
|
|
6156
|
-
afterPersistentId:
|
|
6157
|
-
parentPersistentId:
|
|
6245
|
+
afterPersistentId: z221.string().nullish(),
|
|
6246
|
+
parentPersistentId: z221.string()
|
|
6158
6247
|
});
|
|
6159
|
-
var DTOCreateDocumentationTabInput =
|
|
6248
|
+
var DTOCreateDocumentationTabInput = z221.object({
|
|
6160
6249
|
// New group persistent id
|
|
6161
|
-
persistentId:
|
|
6250
|
+
persistentId: z221.string(),
|
|
6162
6251
|
// If this is page, we will attempt to convert it to tab
|
|
6163
6252
|
// If this is tab group, we will add a new tab to it
|
|
6164
|
-
fromItemPersistentId:
|
|
6165
|
-
tabName:
|
|
6253
|
+
fromItemPersistentId: z221.string(),
|
|
6254
|
+
tabName: z221.string()
|
|
6166
6255
|
});
|
|
6167
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6256
|
+
var DTODeleteDocumentationTabGroupInput = z221.object({
|
|
6168
6257
|
// Deleted group id
|
|
6169
|
-
id:
|
|
6258
|
+
id: z221.string()
|
|
6170
6259
|
});
|
|
6171
|
-
var DTODeleteDocumentationGroupInput =
|
|
6260
|
+
var DTODeleteDocumentationGroupInput = z221.object({
|
|
6172
6261
|
// Identifier
|
|
6173
|
-
id:
|
|
6262
|
+
id: z221.string(),
|
|
6174
6263
|
// Deletion options
|
|
6175
|
-
deleteSubtree:
|
|
6264
|
+
deleteSubtree: z221.boolean().default(false)
|
|
6176
6265
|
});
|
|
6177
6266
|
|
|
6178
6267
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6179
|
-
var SuccessPayload =
|
|
6180
|
-
success:
|
|
6268
|
+
var SuccessPayload = z222.object({
|
|
6269
|
+
success: z222.literal(true)
|
|
6181
6270
|
});
|
|
6182
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6183
|
-
type:
|
|
6271
|
+
var DTODocumentationGroupCreateActionOutputV2 = z222.object({
|
|
6272
|
+
type: z222.literal("DocumentationGroupCreate"),
|
|
6184
6273
|
output: SuccessPayload
|
|
6185
6274
|
});
|
|
6186
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6187
|
-
type:
|
|
6275
|
+
var DTODocumentationTabCreateActionOutputV2 = z222.object({
|
|
6276
|
+
type: z222.literal("DocumentationTabCreate"),
|
|
6188
6277
|
output: SuccessPayload
|
|
6189
6278
|
});
|
|
6190
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6191
|
-
type:
|
|
6279
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z222.object({
|
|
6280
|
+
type: z222.literal("DocumentationGroupUpdate"),
|
|
6192
6281
|
output: SuccessPayload
|
|
6193
6282
|
});
|
|
6194
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6195
|
-
type:
|
|
6283
|
+
var DTODocumentationGroupMoveActionOutputV2 = z222.object({
|
|
6284
|
+
type: z222.literal("DocumentationGroupMove"),
|
|
6196
6285
|
output: SuccessPayload
|
|
6197
6286
|
});
|
|
6198
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6199
|
-
type:
|
|
6287
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z222.object({
|
|
6288
|
+
type: z222.literal("DocumentationGroupDuplicate"),
|
|
6200
6289
|
output: SuccessPayload
|
|
6201
6290
|
});
|
|
6202
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6203
|
-
type:
|
|
6291
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z222.object({
|
|
6292
|
+
type: z222.literal("DocumentationGroupDelete"),
|
|
6204
6293
|
output: SuccessPayload
|
|
6205
6294
|
});
|
|
6206
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6207
|
-
type:
|
|
6295
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z222.object({
|
|
6296
|
+
type: z222.literal("DocumentationTabGroupDelete"),
|
|
6208
6297
|
output: SuccessPayload
|
|
6209
6298
|
});
|
|
6210
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6211
|
-
type:
|
|
6299
|
+
var DTODocumentationGroupCreateActionInputV2 = z222.object({
|
|
6300
|
+
type: z222.literal("DocumentationGroupCreate"),
|
|
6212
6301
|
input: DTOCreateDocumentationGroupInput
|
|
6213
6302
|
});
|
|
6214
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6215
|
-
type:
|
|
6303
|
+
var DTODocumentationTabCreateActionInputV2 = z222.object({
|
|
6304
|
+
type: z222.literal("DocumentationTabCreate"),
|
|
6216
6305
|
input: DTOCreateDocumentationTabInput
|
|
6217
6306
|
});
|
|
6218
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6219
|
-
type:
|
|
6307
|
+
var DTODocumentationGroupUpdateActionInputV2 = z222.object({
|
|
6308
|
+
type: z222.literal("DocumentationGroupUpdate"),
|
|
6220
6309
|
input: DTOUpdateDocumentationGroupInput
|
|
6221
6310
|
});
|
|
6222
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6223
|
-
type:
|
|
6311
|
+
var DTODocumentationGroupMoveActionInputV2 = z222.object({
|
|
6312
|
+
type: z222.literal("DocumentationGroupMove"),
|
|
6224
6313
|
input: DTOMoveDocumentationGroupInput
|
|
6225
6314
|
});
|
|
6226
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6227
|
-
type:
|
|
6315
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z222.object({
|
|
6316
|
+
type: z222.literal("DocumentationGroupDuplicate"),
|
|
6228
6317
|
input: DTODuplicateDocumentationGroupInput
|
|
6229
6318
|
});
|
|
6230
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6231
|
-
type:
|
|
6319
|
+
var DTODocumentationGroupDeleteActionInputV2 = z222.object({
|
|
6320
|
+
type: z222.literal("DocumentationGroupDelete"),
|
|
6232
6321
|
input: DTODeleteDocumentationGroupInput
|
|
6233
6322
|
});
|
|
6234
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6235
|
-
type:
|
|
6323
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z222.object({
|
|
6324
|
+
type: z222.literal("DocumentationTabGroupDelete"),
|
|
6236
6325
|
input: DTODeleteDocumentationTabGroupInput
|
|
6237
6326
|
});
|
|
6238
6327
|
|
|
6239
6328
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6240
|
-
import { z as
|
|
6329
|
+
import { z as z224 } from "zod";
|
|
6241
6330
|
|
|
6242
6331
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6243
|
-
import { z as
|
|
6244
|
-
var DocumentationColorV1 =
|
|
6245
|
-
aliasTo:
|
|
6246
|
-
value:
|
|
6332
|
+
import { z as z223 } from "zod";
|
|
6333
|
+
var DocumentationColorV1 = z223.object({
|
|
6334
|
+
aliasTo: z223.string().optional(),
|
|
6335
|
+
value: z223.string().optional()
|
|
6247
6336
|
});
|
|
6248
6337
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6249
6338
|
foregroundColor: true,
|
|
@@ -6252,10 +6341,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6252
6341
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6253
6342
|
backgroundColor: DocumentationColorV1.optional()
|
|
6254
6343
|
});
|
|
6255
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6256
|
-
showSidebar:
|
|
6257
|
-
isPrivate:
|
|
6258
|
-
isHidden:
|
|
6344
|
+
var DTODocumentationItemConfigurationV1 = z223.object({
|
|
6345
|
+
showSidebar: z223.boolean(),
|
|
6346
|
+
isPrivate: z223.boolean(),
|
|
6347
|
+
isHidden: z223.boolean(),
|
|
6259
6348
|
header: DTODocumentationItemHeaderV1
|
|
6260
6349
|
});
|
|
6261
6350
|
|
|
@@ -6269,27 +6358,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6269
6358
|
data: true,
|
|
6270
6359
|
shortPersistentId: true
|
|
6271
6360
|
}).extend({
|
|
6272
|
-
title:
|
|
6273
|
-
isRoot:
|
|
6274
|
-
childrenIds:
|
|
6361
|
+
title: z224.string(),
|
|
6362
|
+
isRoot: z224.boolean(),
|
|
6363
|
+
childrenIds: z224.array(z224.string()),
|
|
6275
6364
|
groupBehavior: DocumentationGroupBehavior,
|
|
6276
|
-
shortPersistentId:
|
|
6277
|
-
type:
|
|
6365
|
+
shortPersistentId: z224.string(),
|
|
6366
|
+
type: z224.literal("Group")
|
|
6278
6367
|
});
|
|
6279
6368
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6280
6369
|
configuration: DTODocumentationItemConfigurationV1
|
|
6281
6370
|
});
|
|
6282
6371
|
|
|
6283
6372
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6284
|
-
import { z as
|
|
6285
|
-
var DTODocumentationHierarchyV2 =
|
|
6286
|
-
pages:
|
|
6373
|
+
import { z as z225 } from "zod";
|
|
6374
|
+
var DTODocumentationHierarchyV2 = z225.object({
|
|
6375
|
+
pages: z225.array(
|
|
6287
6376
|
DTODocumentationPageV2.extend({
|
|
6288
6377
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6289
6378
|
draftState: DTODocumentationDraftState.optional()
|
|
6290
6379
|
})
|
|
6291
6380
|
),
|
|
6292
|
-
groups:
|
|
6381
|
+
groups: z225.array(
|
|
6293
6382
|
DTODocumentationGroupV2.extend({
|
|
6294
6383
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6295
6384
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6298,84 +6387,84 @@ var DTODocumentationHierarchyV2 = z223.object({
|
|
|
6298
6387
|
});
|
|
6299
6388
|
|
|
6300
6389
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6301
|
-
import { z as
|
|
6302
|
-
var SuccessPayload2 =
|
|
6303
|
-
success:
|
|
6390
|
+
import { z as z226 } from "zod";
|
|
6391
|
+
var SuccessPayload2 = z226.object({
|
|
6392
|
+
success: z226.literal(true)
|
|
6304
6393
|
});
|
|
6305
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6306
|
-
type:
|
|
6394
|
+
var DTODocumentationPageCreateActionOutputV2 = z226.object({
|
|
6395
|
+
type: z226.literal("DocumentationPageCreate"),
|
|
6307
6396
|
output: SuccessPayload2
|
|
6308
6397
|
});
|
|
6309
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6310
|
-
type:
|
|
6398
|
+
var DTODocumentationPageUpdateActionOutputV2 = z226.object({
|
|
6399
|
+
type: z226.literal("DocumentationPageUpdate"),
|
|
6311
6400
|
output: SuccessPayload2
|
|
6312
6401
|
});
|
|
6313
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6314
|
-
type:
|
|
6402
|
+
var DTODocumentationPageMoveActionOutputV2 = z226.object({
|
|
6403
|
+
type: z226.literal("DocumentationPageMove"),
|
|
6315
6404
|
output: SuccessPayload2
|
|
6316
6405
|
});
|
|
6317
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6318
|
-
type:
|
|
6406
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z226.object({
|
|
6407
|
+
type: z226.literal("DocumentationPageDuplicate"),
|
|
6319
6408
|
output: SuccessPayload2
|
|
6320
6409
|
});
|
|
6321
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6322
|
-
type:
|
|
6410
|
+
var DTODocumentationPageDeleteActionOutputV2 = z226.object({
|
|
6411
|
+
type: z226.literal("DocumentationPageDelete"),
|
|
6323
6412
|
output: SuccessPayload2
|
|
6324
6413
|
});
|
|
6325
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6326
|
-
type:
|
|
6414
|
+
var DTODocumentationPageRestoreActionOutput = z226.object({
|
|
6415
|
+
type: z226.literal("DocumentationPageRestore"),
|
|
6327
6416
|
output: SuccessPayload2
|
|
6328
6417
|
});
|
|
6329
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6330
|
-
type:
|
|
6418
|
+
var DTODocumentationGroupRestoreActionOutput = z226.object({
|
|
6419
|
+
type: z226.literal("DocumentationGroupRestore"),
|
|
6331
6420
|
output: SuccessPayload2
|
|
6332
6421
|
});
|
|
6333
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6334
|
-
type:
|
|
6422
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z226.object({
|
|
6423
|
+
type: z226.literal("DocumentationPageApprovalStateChange"),
|
|
6335
6424
|
output: SuccessPayload2
|
|
6336
6425
|
});
|
|
6337
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6338
|
-
type:
|
|
6426
|
+
var DTODocumentationPageCreateActionInputV2 = z226.object({
|
|
6427
|
+
type: z226.literal("DocumentationPageCreate"),
|
|
6339
6428
|
input: DTOCreateDocumentationPageInputV2
|
|
6340
6429
|
});
|
|
6341
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6342
|
-
type:
|
|
6430
|
+
var DTODocumentationPageUpdateActionInputV2 = z226.object({
|
|
6431
|
+
type: z226.literal("DocumentationPageUpdate"),
|
|
6343
6432
|
input: DTOUpdateDocumentationPageInputV2
|
|
6344
6433
|
});
|
|
6345
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6346
|
-
type:
|
|
6434
|
+
var DTODocumentationPageMoveActionInputV2 = z226.object({
|
|
6435
|
+
type: z226.literal("DocumentationPageMove"),
|
|
6347
6436
|
input: DTOMoveDocumentationPageInputV2
|
|
6348
6437
|
});
|
|
6349
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6350
|
-
type:
|
|
6438
|
+
var DTODocumentationPageDuplicateActionInputV2 = z226.object({
|
|
6439
|
+
type: z226.literal("DocumentationPageDuplicate"),
|
|
6351
6440
|
input: DTODuplicateDocumentationPageInputV2
|
|
6352
6441
|
});
|
|
6353
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6354
|
-
type:
|
|
6442
|
+
var DTODocumentationPageDeleteActionInputV2 = z226.object({
|
|
6443
|
+
type: z226.literal("DocumentationPageDelete"),
|
|
6355
6444
|
input: DTODeleteDocumentationPageInputV2
|
|
6356
6445
|
});
|
|
6357
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6358
|
-
type:
|
|
6446
|
+
var DTODocumentationPageRestoreActionInput = z226.object({
|
|
6447
|
+
type: z226.literal("DocumentationPageRestore"),
|
|
6359
6448
|
input: DTORestoreDocumentationPageInput
|
|
6360
6449
|
});
|
|
6361
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6362
|
-
type:
|
|
6450
|
+
var DTODocumentationGroupRestoreActionInput = z226.object({
|
|
6451
|
+
type: z226.literal("DocumentationGroupRestore"),
|
|
6363
6452
|
input: DTORestoreDocumentationGroupInput
|
|
6364
6453
|
});
|
|
6365
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6366
|
-
type:
|
|
6454
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z226.object({
|
|
6455
|
+
type: z226.literal("DocumentationPageApprovalStateChange"),
|
|
6367
6456
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6368
6457
|
});
|
|
6369
6458
|
|
|
6370
6459
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6371
|
-
import { z as
|
|
6460
|
+
import { z as z227 } from "zod";
|
|
6372
6461
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6373
|
-
var DTODocumentationPageContentGetResponse =
|
|
6462
|
+
var DTODocumentationPageContentGetResponse = z227.object({
|
|
6374
6463
|
pageContent: DTODocumentationPageContent
|
|
6375
6464
|
});
|
|
6376
6465
|
|
|
6377
6466
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6378
|
-
import { z as
|
|
6467
|
+
import { z as z228 } from "zod";
|
|
6379
6468
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6380
6469
|
data: true,
|
|
6381
6470
|
meta: true,
|
|
@@ -6383,32 +6472,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6383
6472
|
sortOrder: true
|
|
6384
6473
|
}).extend({
|
|
6385
6474
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6386
|
-
blocks:
|
|
6387
|
-
title:
|
|
6388
|
-
path:
|
|
6475
|
+
blocks: z228.array(PageBlockV1),
|
|
6476
|
+
title: z228.string(),
|
|
6477
|
+
path: z228.string()
|
|
6389
6478
|
});
|
|
6390
6479
|
|
|
6391
6480
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6392
|
-
import { z as
|
|
6481
|
+
import { z as z229 } from "zod";
|
|
6393
6482
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6394
|
-
var DTOFigmaNodeOrigin =
|
|
6395
|
-
sourceId:
|
|
6396
|
-
fileId:
|
|
6397
|
-
parentName:
|
|
6483
|
+
var DTOFigmaNodeOrigin = z229.object({
|
|
6484
|
+
sourceId: z229.string(),
|
|
6485
|
+
fileId: z229.string().optional(),
|
|
6486
|
+
parentName: z229.string().optional()
|
|
6398
6487
|
});
|
|
6399
|
-
var DTOFigmaNodeData =
|
|
6488
|
+
var DTOFigmaNodeData = z229.object({
|
|
6400
6489
|
// Id of the node in the Figma file
|
|
6401
|
-
figmaNodeId:
|
|
6490
|
+
figmaNodeId: z229.string(),
|
|
6402
6491
|
// Validity
|
|
6403
|
-
isValid:
|
|
6492
|
+
isValid: z229.boolean(),
|
|
6404
6493
|
// Asset data
|
|
6405
|
-
assetId:
|
|
6406
|
-
assetUrl:
|
|
6494
|
+
assetId: z229.string(),
|
|
6495
|
+
assetUrl: z229.string(),
|
|
6407
6496
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6408
6497
|
// Asset metadata
|
|
6409
|
-
assetScale:
|
|
6410
|
-
assetWidth:
|
|
6411
|
-
assetHeight:
|
|
6498
|
+
assetScale: z229.number(),
|
|
6499
|
+
assetWidth: z229.number().optional(),
|
|
6500
|
+
assetHeight: z229.number().optional()
|
|
6412
6501
|
});
|
|
6413
6502
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6414
6503
|
data: true,
|
|
@@ -6417,15 +6506,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6417
6506
|
data: DTOFigmaNodeData,
|
|
6418
6507
|
origin: DTOFigmaNodeOrigin
|
|
6419
6508
|
});
|
|
6420
|
-
var DTOFigmaNodeRenderInput =
|
|
6509
|
+
var DTOFigmaNodeRenderInput = z229.object({
|
|
6421
6510
|
/**
|
|
6422
6511
|
* Id of a design system's data source representing a linked Figma file
|
|
6423
6512
|
*/
|
|
6424
|
-
sourceId:
|
|
6513
|
+
sourceId: z229.string(),
|
|
6425
6514
|
/**
|
|
6426
6515
|
* Id of a node within the Figma file
|
|
6427
6516
|
*/
|
|
6428
|
-
figmaFileNodeId:
|
|
6517
|
+
figmaFileNodeId: z229.string(),
|
|
6429
6518
|
/**
|
|
6430
6519
|
* Format in which the node must be rendered, png by default.
|
|
6431
6520
|
*/
|
|
@@ -6433,97 +6522,97 @@ var DTOFigmaNodeRenderInput = z227.object({
|
|
|
6433
6522
|
});
|
|
6434
6523
|
|
|
6435
6524
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6436
|
-
import { z as
|
|
6437
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6438
|
-
type:
|
|
6439
|
-
figmaNodes:
|
|
6525
|
+
import { z as z230 } from "zod";
|
|
6526
|
+
var DTOFigmaNodeRenderActionOutput = z230.object({
|
|
6527
|
+
type: z230.literal("FigmaNodeRender"),
|
|
6528
|
+
figmaNodes: z230.array(DTOFigmaNode)
|
|
6440
6529
|
});
|
|
6441
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6442
|
-
type:
|
|
6530
|
+
var DTOFigmaNodeRenderActionInput = z230.object({
|
|
6531
|
+
type: z230.literal("FigmaNodeRender"),
|
|
6443
6532
|
input: DTOFigmaNodeRenderInput.array()
|
|
6444
6533
|
});
|
|
6445
6534
|
|
|
6446
6535
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6447
|
-
import { z as
|
|
6536
|
+
import { z as z232 } from "zod";
|
|
6448
6537
|
|
|
6449
6538
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6450
|
-
import { z as
|
|
6539
|
+
import { z as z231 } from "zod";
|
|
6451
6540
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6452
|
-
var DTOElementPropertyDefinition =
|
|
6453
|
-
id:
|
|
6454
|
-
designSystemVersionId:
|
|
6541
|
+
var DTOElementPropertyDefinition = z231.object({
|
|
6542
|
+
id: z231.string(),
|
|
6543
|
+
designSystemVersionId: z231.string(),
|
|
6455
6544
|
meta: ObjectMeta,
|
|
6456
|
-
persistentId:
|
|
6545
|
+
persistentId: z231.string(),
|
|
6457
6546
|
type: ElementPropertyTypeSchema,
|
|
6458
6547
|
targetElementType: ElementPropertyTargetType,
|
|
6459
|
-
codeName:
|
|
6460
|
-
options:
|
|
6548
|
+
codeName: z231.string().regex(CODE_NAME_REGEX2),
|
|
6549
|
+
options: z231.array(ElementPropertyDefinitionOption).optional(),
|
|
6461
6550
|
linkElementType: ElementPropertyLinkType.optional()
|
|
6462
6551
|
});
|
|
6463
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
6464
|
-
definitions:
|
|
6552
|
+
var DTOElementPropertyDefinitionsGetResponse = z231.object({
|
|
6553
|
+
definitions: z231.array(DTOElementPropertyDefinition)
|
|
6465
6554
|
});
|
|
6466
6555
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
6467
6556
|
id: true,
|
|
6468
6557
|
designSystemVersionId: true
|
|
6469
6558
|
});
|
|
6470
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
6471
|
-
id:
|
|
6472
|
-
name:
|
|
6473
|
-
description:
|
|
6474
|
-
codeName:
|
|
6475
|
-
options:
|
|
6559
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z231.object({
|
|
6560
|
+
id: z231.string(),
|
|
6561
|
+
name: z231.string().optional(),
|
|
6562
|
+
description: z231.string().optional(),
|
|
6563
|
+
codeName: z231.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6564
|
+
options: z231.array(ElementPropertyDefinitionOption).optional()
|
|
6476
6565
|
});
|
|
6477
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
6478
|
-
id:
|
|
6566
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z231.object({
|
|
6567
|
+
id: z231.string()
|
|
6479
6568
|
});
|
|
6480
6569
|
|
|
6481
6570
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6482
|
-
var SuccessPayload3 =
|
|
6483
|
-
success:
|
|
6571
|
+
var SuccessPayload3 = z232.object({
|
|
6572
|
+
success: z232.literal(true)
|
|
6484
6573
|
});
|
|
6485
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
6486
|
-
type:
|
|
6574
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z232.object({
|
|
6575
|
+
type: z232.literal("PropertyDefinitionCreate"),
|
|
6487
6576
|
definition: DTOElementPropertyDefinition
|
|
6488
6577
|
});
|
|
6489
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
6490
|
-
type:
|
|
6578
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z232.object({
|
|
6579
|
+
type: z232.literal("PropertyDefinitionUpdate"),
|
|
6491
6580
|
definition: DTOElementPropertyDefinition
|
|
6492
6581
|
});
|
|
6493
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
6494
|
-
type:
|
|
6582
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z232.object({
|
|
6583
|
+
type: z232.literal("PropertyDefinitionDelete"),
|
|
6495
6584
|
output: SuccessPayload3
|
|
6496
6585
|
});
|
|
6497
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
6498
|
-
type:
|
|
6586
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z232.object({
|
|
6587
|
+
type: z232.literal("PropertyDefinitionCreate"),
|
|
6499
6588
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
6500
6589
|
});
|
|
6501
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
6502
|
-
type:
|
|
6590
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z232.object({
|
|
6591
|
+
type: z232.literal("PropertyDefinitionUpdate"),
|
|
6503
6592
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
6504
6593
|
});
|
|
6505
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
6506
|
-
type:
|
|
6594
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z232.object({
|
|
6595
|
+
type: z232.literal("PropertyDefinitionDelete"),
|
|
6507
6596
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
6508
6597
|
});
|
|
6509
6598
|
|
|
6510
6599
|
// src/api/dto/elements/properties/property-values.ts
|
|
6511
|
-
import { z as
|
|
6512
|
-
var DTOElementPropertyValue =
|
|
6513
|
-
id:
|
|
6514
|
-
designSystemVersionId:
|
|
6515
|
-
definitionId:
|
|
6516
|
-
targetElementId:
|
|
6517
|
-
value:
|
|
6518
|
-
valuePreview:
|
|
6600
|
+
import { z as z233 } from "zod";
|
|
6601
|
+
var DTOElementPropertyValue = z233.object({
|
|
6602
|
+
id: z233.string(),
|
|
6603
|
+
designSystemVersionId: z233.string(),
|
|
6604
|
+
definitionId: z233.string(),
|
|
6605
|
+
targetElementId: z233.string(),
|
|
6606
|
+
value: z233.union([z233.string(), z233.number(), z233.boolean()]).optional(),
|
|
6607
|
+
valuePreview: z233.string().optional()
|
|
6519
6608
|
});
|
|
6520
|
-
var DTOElementPropertyValuesGetResponse =
|
|
6521
|
-
values:
|
|
6609
|
+
var DTOElementPropertyValuesGetResponse = z233.object({
|
|
6610
|
+
values: z233.array(DTOElementPropertyValue)
|
|
6522
6611
|
});
|
|
6523
6612
|
|
|
6524
6613
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6525
|
-
import { z as
|
|
6526
|
-
var DTOElementActionOutput =
|
|
6614
|
+
import { z as z234 } from "zod";
|
|
6615
|
+
var DTOElementActionOutput = z234.discriminatedUnion("type", [
|
|
6527
6616
|
// Documentation pages
|
|
6528
6617
|
DTODocumentationPageCreateActionOutputV2,
|
|
6529
6618
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6550,7 +6639,7 @@ var DTOElementActionOutput = z232.discriminatedUnion("type", [
|
|
|
6550
6639
|
// Approvals
|
|
6551
6640
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6552
6641
|
]);
|
|
6553
|
-
var DTOElementActionInput =
|
|
6642
|
+
var DTOElementActionInput = z234.discriminatedUnion("type", [
|
|
6554
6643
|
// Documentation pages
|
|
6555
6644
|
DTODocumentationPageCreateActionInputV2,
|
|
6556
6645
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6579,60 +6668,60 @@ var DTOElementActionInput = z232.discriminatedUnion("type", [
|
|
|
6579
6668
|
]);
|
|
6580
6669
|
|
|
6581
6670
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6582
|
-
import { z as
|
|
6583
|
-
var DTOElementsGetTypeFilter =
|
|
6584
|
-
var DTOElementsGetQuerySchema =
|
|
6585
|
-
types:
|
|
6671
|
+
import { z as z235 } from "zod";
|
|
6672
|
+
var DTOElementsGetTypeFilter = z235.enum(["FigmaNode"]);
|
|
6673
|
+
var DTOElementsGetQuerySchema = z235.object({
|
|
6674
|
+
types: z235.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6586
6675
|
});
|
|
6587
|
-
var DTOElementsGetOutput =
|
|
6588
|
-
figmaNodes:
|
|
6676
|
+
var DTOElementsGetOutput = z235.object({
|
|
6677
|
+
figmaNodes: z235.array(DTOFigmaNode).optional()
|
|
6589
6678
|
});
|
|
6590
6679
|
|
|
6591
6680
|
// src/api/dto/figma-components/assets/download.ts
|
|
6592
|
-
import { z as
|
|
6593
|
-
var DTOAssetRenderConfiguration =
|
|
6594
|
-
prefix:
|
|
6595
|
-
suffix:
|
|
6596
|
-
scale:
|
|
6597
|
-
format:
|
|
6598
|
-
});
|
|
6599
|
-
var DTORenderedAssetFile =
|
|
6600
|
-
assetId:
|
|
6601
|
-
fileName:
|
|
6602
|
-
sourceUrl:
|
|
6681
|
+
import { z as z236 } from "zod";
|
|
6682
|
+
var DTOAssetRenderConfiguration = z236.object({
|
|
6683
|
+
prefix: z236.string().optional(),
|
|
6684
|
+
suffix: z236.string().optional(),
|
|
6685
|
+
scale: z236.enum(["x1", "x2", "x3", "x4"]),
|
|
6686
|
+
format: z236.enum(["png", "pdf", "svg"])
|
|
6687
|
+
});
|
|
6688
|
+
var DTORenderedAssetFile = z236.object({
|
|
6689
|
+
assetId: z236.string(),
|
|
6690
|
+
fileName: z236.string(),
|
|
6691
|
+
sourceUrl: z236.string(),
|
|
6603
6692
|
settings: DTOAssetRenderConfiguration,
|
|
6604
|
-
originalName:
|
|
6693
|
+
originalName: z236.string()
|
|
6605
6694
|
});
|
|
6606
|
-
var DTODownloadAssetsRequest =
|
|
6607
|
-
persistentIds:
|
|
6695
|
+
var DTODownloadAssetsRequest = z236.object({
|
|
6696
|
+
persistentIds: z236.array(z236.string().uuid()).optional(),
|
|
6608
6697
|
settings: DTOAssetRenderConfiguration.array()
|
|
6609
6698
|
});
|
|
6610
|
-
var DTODownloadAssetsResponse =
|
|
6699
|
+
var DTODownloadAssetsResponse = z236.object({
|
|
6611
6700
|
items: DTORenderedAssetFile.array()
|
|
6612
6701
|
});
|
|
6613
6702
|
|
|
6614
6703
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6615
|
-
import { z as
|
|
6616
|
-
var DTOLiveblocksAuthResponse =
|
|
6617
|
-
token:
|
|
6704
|
+
import { z as z237 } from "zod";
|
|
6705
|
+
var DTOLiveblocksAuthResponse = z237.object({
|
|
6706
|
+
token: z237.string()
|
|
6618
6707
|
});
|
|
6619
6708
|
|
|
6620
6709
|
// src/api/dto/users/authenticated-user.ts
|
|
6621
|
-
import { z as
|
|
6710
|
+
import { z as z239 } from "zod";
|
|
6622
6711
|
|
|
6623
6712
|
// src/api/dto/users/user.ts
|
|
6624
|
-
import { z as
|
|
6625
|
-
var DTOUserProfile =
|
|
6626
|
-
name:
|
|
6627
|
-
nickname:
|
|
6628
|
-
avatar:
|
|
6629
|
-
});
|
|
6630
|
-
var DTOUser =
|
|
6631
|
-
id:
|
|
6632
|
-
email:
|
|
6713
|
+
import { z as z238 } from "zod";
|
|
6714
|
+
var DTOUserProfile = z238.object({
|
|
6715
|
+
name: z238.string(),
|
|
6716
|
+
nickname: z238.string().optional(),
|
|
6717
|
+
avatar: z238.string().optional()
|
|
6718
|
+
});
|
|
6719
|
+
var DTOUser = z238.object({
|
|
6720
|
+
id: z238.string(),
|
|
6721
|
+
email: z238.string(),
|
|
6633
6722
|
profile: DTOUserProfile
|
|
6634
6723
|
});
|
|
6635
|
-
var DTOUserGetResponse =
|
|
6724
|
+
var DTOUserGetResponse = z238.object({
|
|
6636
6725
|
user: DTOUser
|
|
6637
6726
|
});
|
|
6638
6727
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -6641,34 +6730,34 @@ var DTOUserProfileUpdate = UserProfileUpdate;
|
|
|
6641
6730
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
6642
6731
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
6643
6732
|
var DTOUserSource = UserSource;
|
|
6644
|
-
var DTOUserOnboarding =
|
|
6645
|
-
companyName:
|
|
6646
|
-
numberOfPeopleInOrg:
|
|
6647
|
-
numberOfPeopleInDesignTeam:
|
|
6733
|
+
var DTOUserOnboarding = z239.object({
|
|
6734
|
+
companyName: z239.string().optional(),
|
|
6735
|
+
numberOfPeopleInOrg: z239.string().optional(),
|
|
6736
|
+
numberOfPeopleInDesignTeam: z239.string().optional(),
|
|
6648
6737
|
department: DTOUserOnboardingDepartment.optional(),
|
|
6649
|
-
jobTitle:
|
|
6650
|
-
phase:
|
|
6738
|
+
jobTitle: z239.string().optional(),
|
|
6739
|
+
phase: z239.string().optional(),
|
|
6651
6740
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
6652
|
-
designSystemName:
|
|
6653
|
-
defaultDestination:
|
|
6654
|
-
isPageDraftOnboardingFinished:
|
|
6741
|
+
designSystemName: z239.string().optional(),
|
|
6742
|
+
defaultDestination: z239.string().optional(),
|
|
6743
|
+
isPageDraftOnboardingFinished: z239.boolean().optional()
|
|
6655
6744
|
});
|
|
6656
6745
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
6657
6746
|
onboarding: DTOUserOnboarding.optional()
|
|
6658
6747
|
});
|
|
6659
6748
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
6660
6749
|
profile: DTOAuthenticatedUserProfile,
|
|
6661
|
-
createdAt:
|
|
6662
|
-
loggedOutAt:
|
|
6750
|
+
createdAt: z239.coerce.date(),
|
|
6751
|
+
loggedOutAt: z239.coerce.date().optional(),
|
|
6663
6752
|
source: DTOUserSource.optional()
|
|
6664
6753
|
});
|
|
6665
|
-
var DTOAuthenticatedUserResponse =
|
|
6754
|
+
var DTOAuthenticatedUserResponse = z239.object({
|
|
6666
6755
|
user: DTOAuthenticatedUser
|
|
6667
6756
|
});
|
|
6668
6757
|
|
|
6669
6758
|
// src/api/dto/users/update.ts
|
|
6670
|
-
import { z as
|
|
6671
|
-
var DTOUserProfileUpdateResponse =
|
|
6759
|
+
import { z as z240 } from "zod";
|
|
6760
|
+
var DTOUserProfileUpdateResponse = z240.object({
|
|
6672
6761
|
user: User
|
|
6673
6762
|
});
|
|
6674
6763
|
|
|
@@ -6717,10 +6806,10 @@ var VersionStatsEndpoint = class {
|
|
|
6717
6806
|
};
|
|
6718
6807
|
|
|
6719
6808
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
6720
|
-
import { z as
|
|
6809
|
+
import { z as z242 } from "zod";
|
|
6721
6810
|
|
|
6722
6811
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
6723
|
-
import { z as
|
|
6812
|
+
import { z as z241 } from "zod";
|
|
6724
6813
|
var OverridesEndpoint = class {
|
|
6725
6814
|
constructor(requestExecutor) {
|
|
6726
6815
|
this.requestExecutor = requestExecutor;
|
|
@@ -6728,7 +6817,7 @@ var OverridesEndpoint = class {
|
|
|
6728
6817
|
create(dsId, versionId, themeId, body) {
|
|
6729
6818
|
return this.requestExecutor.json(
|
|
6730
6819
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
6731
|
-
|
|
6820
|
+
z241.any(),
|
|
6732
6821
|
{
|
|
6733
6822
|
method: "POST",
|
|
6734
6823
|
body
|
|
@@ -6745,30 +6834,36 @@ var ThemesEndpoint = class {
|
|
|
6745
6834
|
this.overrides = new OverridesEndpoint(requestExecutor);
|
|
6746
6835
|
}
|
|
6747
6836
|
create(dsId, versionId, body) {
|
|
6748
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes`,
|
|
6837
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes`, z242.any(), {
|
|
6749
6838
|
method: "POST",
|
|
6750
6839
|
body
|
|
6751
6840
|
});
|
|
6752
6841
|
}
|
|
6753
6842
|
delete(dsId, versionId, themeId) {
|
|
6754
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
6843
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z242.any(), {
|
|
6755
6844
|
method: "DELETE"
|
|
6756
6845
|
});
|
|
6757
6846
|
}
|
|
6758
6847
|
};
|
|
6759
6848
|
|
|
6760
6849
|
// src/api/endpoints/design-system/versions/tokens.ts
|
|
6761
|
-
import { z as
|
|
6850
|
+
import { z as z243 } from "zod";
|
|
6762
6851
|
var TokensEndpoint = class {
|
|
6763
6852
|
constructor(requestExecutor) {
|
|
6764
6853
|
this.requestExecutor = requestExecutor;
|
|
6765
6854
|
}
|
|
6766
6855
|
create(dsId, versionId, body) {
|
|
6767
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/tokens`,
|
|
6856
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/tokens`, z243.any(), {
|
|
6768
6857
|
method: "POST",
|
|
6769
6858
|
body
|
|
6770
6859
|
});
|
|
6771
6860
|
}
|
|
6861
|
+
list(dsId, versionId) {
|
|
6862
|
+
return this.requestExecutor.json(
|
|
6863
|
+
`/design-systems/${dsId}/versions/${versionId}/tokens`,
|
|
6864
|
+
DTODesignTokenListResponse
|
|
6865
|
+
);
|
|
6866
|
+
}
|
|
6772
6867
|
};
|
|
6773
6868
|
|
|
6774
6869
|
// src/api/endpoints/design-system/versions.ts
|
|
@@ -6805,7 +6900,7 @@ var DesignSystemBffEndpoint = class {
|
|
|
6805
6900
|
};
|
|
6806
6901
|
|
|
6807
6902
|
// src/api/endpoints/design-system/design-systems.ts
|
|
6808
|
-
import { z as
|
|
6903
|
+
import { z as z244 } from "zod";
|
|
6809
6904
|
|
|
6810
6905
|
// src/api/endpoints/design-system/members.ts
|
|
6811
6906
|
var DesignSystemMembersEndpoint = class {
|
|
@@ -6825,6 +6920,16 @@ var DesignSystemMembersEndpoint = class {
|
|
|
6825
6920
|
}
|
|
6826
6921
|
};
|
|
6827
6922
|
|
|
6923
|
+
// src/api/endpoints/design-system/sources.ts
|
|
6924
|
+
var DesignSystemSourcesEndpoint = class {
|
|
6925
|
+
constructor(requestExecutor) {
|
|
6926
|
+
this.requestExecutor = requestExecutor;
|
|
6927
|
+
}
|
|
6928
|
+
list(dsId) {
|
|
6929
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
6930
|
+
}
|
|
6931
|
+
};
|
|
6932
|
+
|
|
6828
6933
|
// src/api/endpoints/design-system/design-systems.ts
|
|
6829
6934
|
var DesignSystemsEndpoint = class {
|
|
6830
6935
|
constructor(requestExecutor) {
|
|
@@ -6832,9 +6937,11 @@ var DesignSystemsEndpoint = class {
|
|
|
6832
6937
|
__publicField(this, "members");
|
|
6833
6938
|
__publicField(this, "versions");
|
|
6834
6939
|
__publicField(this, "bff");
|
|
6940
|
+
__publicField(this, "sources");
|
|
6835
6941
|
this.members = new DesignSystemMembersEndpoint(requestExecutor);
|
|
6836
6942
|
this.versions = new DesignSystemVersionsEndpoint(requestExecutor);
|
|
6837
6943
|
this.bff = new DesignSystemBffEndpoint(requestExecutor);
|
|
6944
|
+
this.sources = new DesignSystemSourcesEndpoint(requestExecutor);
|
|
6838
6945
|
}
|
|
6839
6946
|
create(body) {
|
|
6840
6947
|
return this.requestExecutor.json("/design-systems", DTODesignSystemResponse, { method: "POST", body });
|
|
@@ -6843,10 +6950,10 @@ var DesignSystemsEndpoint = class {
|
|
|
6843
6950
|
return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
|
|
6844
6951
|
}
|
|
6845
6952
|
get(dsId) {
|
|
6846
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6953
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z244.any());
|
|
6847
6954
|
}
|
|
6848
6955
|
delete(dsId) {
|
|
6849
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6956
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z244.any(), { method: "DELETE" });
|
|
6850
6957
|
}
|
|
6851
6958
|
update(dsId, body) {
|
|
6852
6959
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -6890,7 +6997,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
6890
6997
|
};
|
|
6891
6998
|
|
|
6892
6999
|
// src/api/endpoints/workspaces/workspace-members.ts
|
|
6893
|
-
import { z as
|
|
7000
|
+
import { z as z245 } from "zod";
|
|
6894
7001
|
var WorkspaceMembersEndpoint = class {
|
|
6895
7002
|
constructor(requestExecutor) {
|
|
6896
7003
|
this.requestExecutor = requestExecutor;
|
|
@@ -6907,7 +7014,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6907
7014
|
});
|
|
6908
7015
|
}
|
|
6909
7016
|
invite(workspaceId, body) {
|
|
6910
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
7017
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z245.any(), { method: "POST", body });
|
|
6911
7018
|
}
|
|
6912
7019
|
delete(workspaceId, userId) {
|
|
6913
7020
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -6917,7 +7024,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6917
7024
|
};
|
|
6918
7025
|
|
|
6919
7026
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
6920
|
-
import { z as
|
|
7027
|
+
import { z as z246 } from "zod";
|
|
6921
7028
|
var WorkspacesEndpoint = class {
|
|
6922
7029
|
constructor(requestExecutor) {
|
|
6923
7030
|
this.requestExecutor = requestExecutor;
|
|
@@ -6940,10 +7047,10 @@ var WorkspacesEndpoint = class {
|
|
|
6940
7047
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
6941
7048
|
}
|
|
6942
7049
|
delete(workspaceId) {
|
|
6943
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
7050
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z246.any(), { method: "DELETE" });
|
|
6944
7051
|
}
|
|
6945
7052
|
subscription(workspaceId) {
|
|
6946
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
7053
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z246.any(), { method: "GET" });
|
|
6947
7054
|
}
|
|
6948
7055
|
};
|
|
6949
7056
|
|
|
@@ -7037,9 +7144,9 @@ ${bodyText}`,
|
|
|
7037
7144
|
|
|
7038
7145
|
// src/api/transport/request-executor.ts
|
|
7039
7146
|
import fetch from "node-fetch";
|
|
7040
|
-
import { z as
|
|
7041
|
-
var ResponseWrapper =
|
|
7042
|
-
result:
|
|
7147
|
+
import { z as z247 } from "zod";
|
|
7148
|
+
var ResponseWrapper = z247.object({
|
|
7149
|
+
result: z247.record(z247.any())
|
|
7043
7150
|
});
|
|
7044
7151
|
var RequestExecutor = class {
|
|
7045
7152
|
constructor(testServerConfig) {
|
|
@@ -7165,7 +7272,7 @@ function generateHash(input, debug = false) {
|
|
|
7165
7272
|
}
|
|
7166
7273
|
|
|
7167
7274
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7168
|
-
import { z as
|
|
7275
|
+
import { z as z248 } from "zod";
|
|
7169
7276
|
|
|
7170
7277
|
// src/yjs/version-room/base.ts
|
|
7171
7278
|
var VersionRoomBaseYDoc = class {
|
|
@@ -7695,24 +7802,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
7695
7802
|
};
|
|
7696
7803
|
|
|
7697
7804
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7698
|
-
var DocumentationHierarchySettings =
|
|
7699
|
-
routingVersion:
|
|
7700
|
-
isDraftFeatureAdopted:
|
|
7701
|
-
isApprovalFeatureEnabled:
|
|
7702
|
-
approvalRequiredForPublishing:
|
|
7805
|
+
var DocumentationHierarchySettings = z248.object({
|
|
7806
|
+
routingVersion: z248.string(),
|
|
7807
|
+
isDraftFeatureAdopted: z248.boolean(),
|
|
7808
|
+
isApprovalFeatureEnabled: z248.boolean(),
|
|
7809
|
+
approvalRequiredForPublishing: z248.boolean()
|
|
7703
7810
|
});
|
|
7704
7811
|
function yjsToDocumentationHierarchy(doc) {
|
|
7705
7812
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
7706
7813
|
}
|
|
7707
7814
|
|
|
7708
7815
|
// src/yjs/design-system-content/item-configuration.ts
|
|
7709
|
-
import { z as
|
|
7710
|
-
var DTODocumentationPageRoomHeaderData =
|
|
7711
|
-
title:
|
|
7816
|
+
import { z as z249 } from "zod";
|
|
7817
|
+
var DTODocumentationPageRoomHeaderData = z249.object({
|
|
7818
|
+
title: z249.string(),
|
|
7712
7819
|
configuration: DTODocumentationItemConfigurationV2
|
|
7713
7820
|
});
|
|
7714
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
7715
|
-
title:
|
|
7821
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z249.object({
|
|
7822
|
+
title: z249.string().optional(),
|
|
7716
7823
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
7717
7824
|
});
|
|
7718
7825
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -7763,7 +7870,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
7763
7870
|
header: rawHeader
|
|
7764
7871
|
};
|
|
7765
7872
|
return {
|
|
7766
|
-
title:
|
|
7873
|
+
title: z249.string().parse(title),
|
|
7767
7874
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
7768
7875
|
};
|
|
7769
7876
|
}
|
|
@@ -7773,9 +7880,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
7773
7880
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
7774
7881
|
|
|
7775
7882
|
// src/yjs/docs-editor/model/page.ts
|
|
7776
|
-
import { z as
|
|
7777
|
-
var DocumentationPageEditorModel =
|
|
7778
|
-
blocks:
|
|
7883
|
+
import { z as z250 } from "zod";
|
|
7884
|
+
var DocumentationPageEditorModel = z250.object({
|
|
7885
|
+
blocks: z250.array(DocumentationPageContentItem)
|
|
7779
7886
|
});
|
|
7780
7887
|
|
|
7781
7888
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -11295,7 +11402,7 @@ var blocks = [
|
|
|
11295
11402
|
|
|
11296
11403
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
11297
11404
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
11298
|
-
import { z as
|
|
11405
|
+
import { z as z251 } from "zod";
|
|
11299
11406
|
function yDocToPage(yDoc, definitions) {
|
|
11300
11407
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
11301
11408
|
}
|
|
@@ -11375,7 +11482,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
11375
11482
|
return null;
|
|
11376
11483
|
return {
|
|
11377
11484
|
id,
|
|
11378
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
11485
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z251.string()) ?? "",
|
|
11379
11486
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
11380
11487
|
};
|
|
11381
11488
|
}
|
|
@@ -11410,7 +11517,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
11410
11517
|
});
|
|
11411
11518
|
}
|
|
11412
11519
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
11413
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
11520
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z251.string());
|
|
11414
11521
|
if (!definitionId) {
|
|
11415
11522
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
11416
11523
|
return [];
|
|
@@ -11452,7 +11559,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
11452
11559
|
if (!id)
|
|
11453
11560
|
return null;
|
|
11454
11561
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11455
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
11562
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z251.string().optional()));
|
|
11456
11563
|
return {
|
|
11457
11564
|
id,
|
|
11458
11565
|
type: "Block",
|
|
@@ -11580,10 +11687,10 @@ function parseRichTextAttribute(mark) {
|
|
|
11580
11687
|
return null;
|
|
11581
11688
|
}
|
|
11582
11689
|
function parseProsemirrorLink(mark) {
|
|
11583
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
11690
|
+
const href = getProsemirrorAttribute(mark, "href", z251.string().optional());
|
|
11584
11691
|
if (!href)
|
|
11585
11692
|
return null;
|
|
11586
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
11693
|
+
const target = getProsemirrorAttribute(mark, "target", z251.string().optional());
|
|
11587
11694
|
const openInNewTab = target === "_blank";
|
|
11588
11695
|
if (href.startsWith("@")) {
|
|
11589
11696
|
return {
|
|
@@ -11602,10 +11709,10 @@ function parseProsemirrorLink(mark) {
|
|
|
11602
11709
|
}
|
|
11603
11710
|
}
|
|
11604
11711
|
function parseProsemirrorCommentHighlight(mark) {
|
|
11605
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
11712
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z251.string().optional());
|
|
11606
11713
|
if (!highlightId)
|
|
11607
11714
|
return null;
|
|
11608
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
11715
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z251.boolean().optional()) ?? false;
|
|
11609
11716
|
return {
|
|
11610
11717
|
type: "Comment",
|
|
11611
11718
|
commentHighlightId: highlightId,
|
|
@@ -11617,7 +11724,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
11617
11724
|
if (!id)
|
|
11618
11725
|
return null;
|
|
11619
11726
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11620
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
11727
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z251.boolean().optional()) !== false;
|
|
11621
11728
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
11622
11729
|
if (!tableChild) {
|
|
11623
11730
|
return emptyTable(id, variantId, 0);
|
|
@@ -11664,9 +11771,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
11664
11771
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
11665
11772
|
if (!id)
|
|
11666
11773
|
return null;
|
|
11667
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
11774
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z251.string().optional());
|
|
11668
11775
|
let columnWidth;
|
|
11669
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
11776
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z251.array(z251.number()).nullish());
|
|
11670
11777
|
if (columnWidthArray) {
|
|
11671
11778
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
11672
11779
|
}
|
|
@@ -11704,7 +11811,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
11704
11811
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
11705
11812
|
};
|
|
11706
11813
|
case "image":
|
|
11707
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11814
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z251.string());
|
|
11708
11815
|
if (!items)
|
|
11709
11816
|
return null;
|
|
11710
11817
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -11824,7 +11931,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
11824
11931
|
);
|
|
11825
11932
|
}
|
|
11826
11933
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
11827
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11934
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z251.string());
|
|
11828
11935
|
if (!itemsString)
|
|
11829
11936
|
return null;
|
|
11830
11937
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -11836,18 +11943,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
11836
11943
|
}
|
|
11837
11944
|
function parseAppearance(prosemirrorNode) {
|
|
11838
11945
|
let appearance = {};
|
|
11839
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
11946
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z251.string().optional());
|
|
11840
11947
|
if (rawAppearanceString) {
|
|
11841
11948
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
11842
11949
|
if (parsedAppearance.success) {
|
|
11843
11950
|
appearance = parsedAppearance.data;
|
|
11844
11951
|
}
|
|
11845
11952
|
}
|
|
11846
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
11953
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z251.number().optional());
|
|
11847
11954
|
if (columns) {
|
|
11848
11955
|
appearance.numberOfColumns = columns;
|
|
11849
11956
|
}
|
|
11850
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
11957
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z251.string().optional());
|
|
11851
11958
|
if (backgroundColor) {
|
|
11852
11959
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
11853
11960
|
if (parsedColor.success) {
|
|
@@ -11942,13 +12049,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
11942
12049
|
}
|
|
11943
12050
|
}
|
|
11944
12051
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
11945
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
12052
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z251.string());
|
|
11946
12053
|
if (!id)
|
|
11947
12054
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
11948
12055
|
return id;
|
|
11949
12056
|
}
|
|
11950
12057
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
11951
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
12058
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z251.string()));
|
|
11952
12059
|
}
|
|
11953
12060
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
11954
12061
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -12009,6 +12116,7 @@ export {
|
|
|
12009
12116
|
BackendVersionRoomYDoc,
|
|
12010
12117
|
BlockDefinitionUtils,
|
|
12011
12118
|
BlockParsingUtils,
|
|
12119
|
+
Collection,
|
|
12012
12120
|
DTOAppBootstrapDataQuery,
|
|
12013
12121
|
DTOAppBootstrapDataResponse,
|
|
12014
12122
|
DTOAssetRenderConfiguration,
|
|
@@ -12061,6 +12169,8 @@ export {
|
|
|
12061
12169
|
DTODesignSystemVersionStatsQuery,
|
|
12062
12170
|
DTODesignSystemVersionsListResponse,
|
|
12063
12171
|
DTODesignSystemsListResponse,
|
|
12172
|
+
DTODesignToken,
|
|
12173
|
+
DTODesignTokenListResponse,
|
|
12064
12174
|
DTODiffCountBase,
|
|
12065
12175
|
DTODocumentationDraftChangeType,
|
|
12066
12176
|
DTODocumentationDraftState,
|
|
@@ -12246,22 +12356,34 @@ export {
|
|
|
12246
12356
|
DTOWorkspaceRole,
|
|
12247
12357
|
DesignSystemBffEndpoint,
|
|
12248
12358
|
DesignSystemMembersEndpoint,
|
|
12359
|
+
DesignSystemSourcesEndpoint,
|
|
12249
12360
|
DesignSystemVersionsEndpoint,
|
|
12250
12361
|
DesignSystemsEndpoint,
|
|
12362
|
+
DimensionsVariableScopeType,
|
|
12251
12363
|
DocumentationHierarchySettings,
|
|
12252
12364
|
DocumentationPageEditorModel,
|
|
12253
12365
|
DocumentationPageV1DTO,
|
|
12366
|
+
FormattedCollections,
|
|
12254
12367
|
FrontendVersionRoomYDoc,
|
|
12255
12368
|
ListTreeBuilder,
|
|
12256
12369
|
NpmRegistryInput,
|
|
12257
12370
|
ObjectMeta2 as ObjectMeta,
|
|
12258
12371
|
PageBlockEditorModel,
|
|
12259
12372
|
PageSectionEditorModel,
|
|
12373
|
+
RGB,
|
|
12374
|
+
RGBA,
|
|
12260
12375
|
RequestExecutor,
|
|
12261
12376
|
RequestExecutorError,
|
|
12377
|
+
ResolvedVariableType,
|
|
12378
|
+
StringVariableScopeType,
|
|
12262
12379
|
SupernovaApiClient,
|
|
12263
12380
|
TokenCollectionsEndpoint,
|
|
12264
12381
|
UsersEndpoint,
|
|
12382
|
+
Variable,
|
|
12383
|
+
VariableAlias,
|
|
12384
|
+
VariableMode,
|
|
12385
|
+
VariableValue,
|
|
12386
|
+
VariablesMapping,
|
|
12265
12387
|
VersionRoomBaseYDoc,
|
|
12266
12388
|
VersionSQSPayload,
|
|
12267
12389
|
WorkspaceConfigurationPayload,
|