@supernova-studio/client 0.55.33 → 0.55.34
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 +350 -63
- package/dist/index.d.ts +350 -63
- package/dist/index.js +104 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +724 -653
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/import-job.ts +60 -0
- package/src/api/dto/design-systems/index.ts +1 -0
- package/src/api/endpoints/design-system/bff.ts +13 -0
- package/src/api/endpoints/design-system/design-systems.ts +5 -3
- package/src/api/endpoints/design-system/index.ts +3 -2
- package/src/api/endpoints/design-system/versions/brands.ts +6 -3
- package/src/api/endpoints/design-system/versions/import-jobs.ts +13 -0
- package/src/api/endpoints/design-system/versions/index.ts +1 -0
- package/src/api/endpoints/design-system/{design-system-versions.ts → versions.ts} +5 -1
- /package/src/api/endpoints/design-system/{design-system-members.ts → members.ts} +0 -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 z204 } from "zod";
|
|
5063
5063
|
|
|
5064
5064
|
// src/api/dto/design-systems/brand.ts
|
|
5065
5065
|
import { z as z176 } from "zod";
|
|
@@ -5276,46 +5276,80 @@ import { z as z182 } from "zod";
|
|
|
5276
5276
|
var DTOExporterProperty = z182.any({});
|
|
5277
5277
|
var DTOExporterPropertyListResponse = z182.object({ items: z182.array(DTOExporterProperty) });
|
|
5278
5278
|
|
|
5279
|
-
// src/api/dto/design-systems/
|
|
5279
|
+
// src/api/dto/design-systems/import-job.ts
|
|
5280
5280
|
import { z as z183 } from "zod";
|
|
5281
|
-
var
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5281
|
+
var DTOImportJob = z183.object({
|
|
5282
|
+
id: z183.string(),
|
|
5283
|
+
designSystemId: z183.string(),
|
|
5284
|
+
designSystemVersionId: z183.string(),
|
|
5285
|
+
operation: z183.literal("Import"),
|
|
5286
|
+
createdAt: z183.coerce.date(),
|
|
5287
|
+
stateChangedAt: z183.coerce.date(),
|
|
5288
|
+
state: ImportJobState,
|
|
5289
|
+
sourceIds: z183.string().array()
|
|
5286
5290
|
});
|
|
5287
|
-
var
|
|
5288
|
-
|
|
5291
|
+
var DTOImportJobResponse = z183.object({
|
|
5292
|
+
job: DTOImportJob
|
|
5293
|
+
});
|
|
5294
|
+
var DTOBffFigmaImportRequestBody = z183.object({
|
|
5295
|
+
type: z183.literal(DataSourceRemoteType.Enum.Figma),
|
|
5296
|
+
brandPersistentId: z183.string().optional(),
|
|
5297
|
+
fileId: z183.string(),
|
|
5298
|
+
scope: DataSourceFigmaScope,
|
|
5299
|
+
autoImportMode: DataSourceAutoImportMode
|
|
5300
|
+
});
|
|
5301
|
+
var DTOBffUploadImportRequestBody = z183.object({
|
|
5302
|
+
type: z183.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5303
|
+
brandPersistentId: z183.string().optional(),
|
|
5304
|
+
sourceName: z183.string().optional(),
|
|
5305
|
+
remoteId: z183.string(),
|
|
5306
|
+
payload: z183.any()
|
|
5307
|
+
});
|
|
5308
|
+
var DTOBffImportRequestBody = z183.discriminatedUnion("type", [
|
|
5309
|
+
DTOBffFigmaImportRequestBody,
|
|
5310
|
+
DTOBffUploadImportRequestBody
|
|
5311
|
+
]);
|
|
5312
|
+
|
|
5313
|
+
// src/api/dto/design-systems/stats.ts
|
|
5314
|
+
import { z as z184 } from "zod";
|
|
5315
|
+
var DTODesignSystemVersionStats = z184.object({
|
|
5316
|
+
tokens: z184.number(),
|
|
5317
|
+
designSystemComponents: z184.number(),
|
|
5318
|
+
assets: z184.number(),
|
|
5319
|
+
documentationPages: z184.number()
|
|
5320
|
+
});
|
|
5321
|
+
var DTODesignSystemVersionStatsQuery = z184.object({
|
|
5322
|
+
brandId: z184.string().optional()
|
|
5289
5323
|
});
|
|
5290
5324
|
|
|
5291
5325
|
// src/api/dto/design-systems/version.ts
|
|
5292
|
-
import { z as
|
|
5326
|
+
import { z as z196 } from "zod";
|
|
5293
5327
|
|
|
5294
5328
|
// src/api/payloads/design-systems/brand.ts
|
|
5295
|
-
import { z as
|
|
5296
|
-
var DTOCreateBrandInput =
|
|
5297
|
-
persistentId:
|
|
5298
|
-
meta:
|
|
5299
|
-
name:
|
|
5300
|
-
description:
|
|
5329
|
+
import { z as z185 } from "zod";
|
|
5330
|
+
var DTOCreateBrandInput = z185.object({
|
|
5331
|
+
persistentId: z185.string().uuid(),
|
|
5332
|
+
meta: z185.object({
|
|
5333
|
+
name: z185.string(),
|
|
5334
|
+
description: z185.string()
|
|
5301
5335
|
})
|
|
5302
5336
|
});
|
|
5303
5337
|
|
|
5304
5338
|
// src/api/payloads/design-systems/theme.ts
|
|
5305
|
-
import { z as
|
|
5306
|
-
var DTOCreateThemeInput =
|
|
5339
|
+
import { z as z186 } from "zod";
|
|
5340
|
+
var DTOCreateThemeInput = z186.object({
|
|
5307
5341
|
meta: ObjectMeta,
|
|
5308
|
-
persistentId:
|
|
5309
|
-
designSystemVersionId:
|
|
5310
|
-
brandId:
|
|
5311
|
-
codeName:
|
|
5312
|
-
version:
|
|
5313
|
-
overrides:
|
|
5342
|
+
persistentId: z186.string(),
|
|
5343
|
+
designSystemVersionId: z186.string(),
|
|
5344
|
+
brandId: z186.string(),
|
|
5345
|
+
codeName: z186.string(),
|
|
5346
|
+
version: z186.string().optional(),
|
|
5347
|
+
overrides: z186.array(z186.any())
|
|
5314
5348
|
// TODO Add actual overrides.
|
|
5315
5349
|
});
|
|
5316
5350
|
|
|
5317
5351
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5318
|
-
import { z as
|
|
5352
|
+
import { z as z187 } from "zod";
|
|
5319
5353
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5320
5354
|
id: true,
|
|
5321
5355
|
workspaceId: true,
|
|
@@ -5327,40 +5361,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5327
5361
|
}).extend({
|
|
5328
5362
|
meta: ObjectMeta.partial().optional()
|
|
5329
5363
|
});
|
|
5330
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5364
|
+
var DTODesignSystemUpdateAccessModeInput = z187.object({
|
|
5331
5365
|
accessMode: DesignSystemAccessMode,
|
|
5332
|
-
retain:
|
|
5333
|
-
userIds:
|
|
5334
|
-
inviteIds:
|
|
5366
|
+
retain: z187.object({
|
|
5367
|
+
userIds: z187.string().array(),
|
|
5368
|
+
inviteIds: z187.string().array()
|
|
5335
5369
|
}).optional()
|
|
5336
5370
|
});
|
|
5337
5371
|
|
|
5338
5372
|
// src/api/payloads/design-systems/version.ts
|
|
5339
|
-
import { z as
|
|
5340
|
-
var ObjectMeta2 =
|
|
5341
|
-
name:
|
|
5342
|
-
description:
|
|
5373
|
+
import { z as z188 } from "zod";
|
|
5374
|
+
var ObjectMeta2 = z188.object({
|
|
5375
|
+
name: z188.string().max(150).optional(),
|
|
5376
|
+
description: z188.string().max(2e3).optional()
|
|
5343
5377
|
});
|
|
5344
5378
|
function validateDesignSystemVersion(version) {
|
|
5345
5379
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5346
5380
|
return urlCompliantRegex.test(version);
|
|
5347
5381
|
}
|
|
5348
|
-
var DTOCreateVersionInput =
|
|
5382
|
+
var DTOCreateVersionInput = z188.object({
|
|
5349
5383
|
meta: ObjectMeta2,
|
|
5350
|
-
version:
|
|
5384
|
+
version: z188.string().refine(validateDesignSystemVersion, {
|
|
5351
5385
|
message: "Invalid semantic versioning format"
|
|
5352
5386
|
}),
|
|
5353
|
-
changeLog:
|
|
5387
|
+
changeLog: z188.string().optional()
|
|
5354
5388
|
});
|
|
5355
|
-
var DTOUpdateVersionInput =
|
|
5389
|
+
var DTOUpdateVersionInput = z188.object({
|
|
5356
5390
|
meta: ObjectMeta2,
|
|
5357
|
-
version:
|
|
5391
|
+
version: z188.string(),
|
|
5358
5392
|
// required for PUT, but not editable
|
|
5359
|
-
changeLog:
|
|
5393
|
+
changeLog: z188.string()
|
|
5360
5394
|
});
|
|
5361
5395
|
|
|
5362
5396
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5363
|
-
import { z as
|
|
5397
|
+
import { z as z189 } from "zod";
|
|
5364
5398
|
|
|
5365
5399
|
// src/api/dto/documentation/block-definition.ts
|
|
5366
5400
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5372,60 +5406,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5372
5406
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5373
5407
|
|
|
5374
5408
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5375
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5376
|
-
definitions:
|
|
5409
|
+
var DTOGetBlockDefinitionsOutput = z189.object({
|
|
5410
|
+
definitions: z189.array(DTOPageBlockDefinition)
|
|
5377
5411
|
});
|
|
5378
5412
|
|
|
5379
5413
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5380
|
-
import { z as
|
|
5381
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5382
|
-
environment:
|
|
5414
|
+
import { z as z190 } from "zod";
|
|
5415
|
+
var DTODocumentationPublishTypeQueryParams = z190.object({
|
|
5416
|
+
environment: z190.enum(["Live", "Preview"])
|
|
5383
5417
|
});
|
|
5384
5418
|
|
|
5385
5419
|
// src/api/payloads/export/pipeline.ts
|
|
5386
|
-
import { z as
|
|
5387
|
-
var DTOPipelineCreateBody =
|
|
5388
|
-
name:
|
|
5389
|
-
exporterId:
|
|
5390
|
-
designSystemId:
|
|
5391
|
-
isEnabled:
|
|
5420
|
+
import { z as z191 } from "zod";
|
|
5421
|
+
var DTOPipelineCreateBody = z191.object({
|
|
5422
|
+
name: z191.string(),
|
|
5423
|
+
exporterId: z191.string(),
|
|
5424
|
+
designSystemId: z191.string(),
|
|
5425
|
+
isEnabled: z191.boolean(),
|
|
5392
5426
|
eventType: PipelineEventType,
|
|
5393
|
-
brandPersistentId:
|
|
5394
|
-
themePersistentId:
|
|
5395
|
-
themePersistentIds:
|
|
5427
|
+
brandPersistentId: z191.string().optional(),
|
|
5428
|
+
themePersistentId: z191.string().optional(),
|
|
5429
|
+
themePersistentIds: z191.string().array().optional(),
|
|
5396
5430
|
destination: PipelineDestinationType.optional(),
|
|
5397
5431
|
gitQuery: GitObjectsQuery,
|
|
5398
|
-
destinations:
|
|
5432
|
+
destinations: z191.object({
|
|
5399
5433
|
s3: ExporterDestinationS3.nullish(),
|
|
5400
5434
|
azure: ExporterDestinationAzure.nullish(),
|
|
5401
5435
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5402
5436
|
github: ExporterDestinationGithub.nullish(),
|
|
5403
5437
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5404
5438
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5405
|
-
webhookUrl:
|
|
5439
|
+
webhookUrl: z191.string().nullish()
|
|
5406
5440
|
})
|
|
5407
5441
|
});
|
|
5408
5442
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5409
|
-
id:
|
|
5443
|
+
id: z191.string()
|
|
5410
5444
|
});
|
|
5411
|
-
var DTOPipelineTriggerBody =
|
|
5412
|
-
designSystemVersionId:
|
|
5445
|
+
var DTOPipelineTriggerBody = z191.object({
|
|
5446
|
+
designSystemVersionId: z191.string()
|
|
5413
5447
|
});
|
|
5414
5448
|
|
|
5415
5449
|
// src/api/payloads/liveblocks/auth.ts
|
|
5416
|
-
import { z as
|
|
5417
|
-
var DTOLiveblocksAuthRequest =
|
|
5418
|
-
room:
|
|
5450
|
+
import { z as z192 } from "zod";
|
|
5451
|
+
var DTOLiveblocksAuthRequest = z192.object({
|
|
5452
|
+
room: z192.string().optional()
|
|
5419
5453
|
});
|
|
5420
5454
|
|
|
5421
5455
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5422
|
-
import { z as
|
|
5423
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5456
|
+
import { z as z193 } from "zod";
|
|
5457
|
+
var DTOUpdateUserNotificationSettingsPayload = z193.object({
|
|
5424
5458
|
notificationSettings: UserNotificationSettings
|
|
5425
5459
|
});
|
|
5426
|
-
var DTOUserNotificationSettingsResponse =
|
|
5427
|
-
userId:
|
|
5428
|
-
workspaceId:
|
|
5460
|
+
var DTOUserNotificationSettingsResponse = z193.object({
|
|
5461
|
+
userId: z193.string(),
|
|
5462
|
+
workspaceId: z193.string(),
|
|
5429
5463
|
notificationSettings: UserNotificationSettings
|
|
5430
5464
|
});
|
|
5431
5465
|
|
|
@@ -5433,7 +5467,7 @@ var DTOUserNotificationSettingsResponse = z192.object({
|
|
|
5433
5467
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5434
5468
|
|
|
5435
5469
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5436
|
-
import { z as
|
|
5470
|
+
import { z as z194 } from "zod";
|
|
5437
5471
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5438
5472
|
function validateSsoPayload(ssoPayload) {
|
|
5439
5473
|
const keys = [];
|
|
@@ -5456,21 +5490,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5456
5490
|
keys
|
|
5457
5491
|
};
|
|
5458
5492
|
}
|
|
5459
|
-
var NpmRegistryInput =
|
|
5460
|
-
enabledScopes:
|
|
5461
|
-
customRegistryUrl:
|
|
5462
|
-
bypassProxy:
|
|
5463
|
-
npmProxyRegistryConfigId:
|
|
5464
|
-
npmProxyVersion:
|
|
5465
|
-
registryType:
|
|
5466
|
-
authType:
|
|
5467
|
-
authHeaderName:
|
|
5468
|
-
authHeaderValue:
|
|
5469
|
-
accessToken:
|
|
5470
|
-
username:
|
|
5471
|
-
password:
|
|
5472
|
-
});
|
|
5473
|
-
var WorkspaceConfigurationPayload =
|
|
5493
|
+
var NpmRegistryInput = z194.object({
|
|
5494
|
+
enabledScopes: z194.array(z194.string()),
|
|
5495
|
+
customRegistryUrl: z194.string().optional(),
|
|
5496
|
+
bypassProxy: z194.boolean().optional(),
|
|
5497
|
+
npmProxyRegistryConfigId: z194.string().optional(),
|
|
5498
|
+
npmProxyVersion: z194.number().optional(),
|
|
5499
|
+
registryType: z194.string(),
|
|
5500
|
+
authType: z194.string(),
|
|
5501
|
+
authHeaderName: z194.string(),
|
|
5502
|
+
authHeaderValue: z194.string(),
|
|
5503
|
+
accessToken: z194.string(),
|
|
5504
|
+
username: z194.string(),
|
|
5505
|
+
password: z194.string()
|
|
5506
|
+
});
|
|
5507
|
+
var WorkspaceConfigurationPayload = z194.object({
|
|
5474
5508
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5475
5509
|
sso: SsoProvider.partial().optional(),
|
|
5476
5510
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5478,217 +5512,217 @@ var WorkspaceConfigurationPayload = z193.object({
|
|
|
5478
5512
|
});
|
|
5479
5513
|
|
|
5480
5514
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5481
|
-
import { z as
|
|
5482
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5515
|
+
import { z as z195 } from "zod";
|
|
5516
|
+
var DTOWorkspaceIntegrationOauthInput = z195.object({
|
|
5483
5517
|
type: IntegrationType
|
|
5484
5518
|
});
|
|
5485
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5486
|
-
userId:
|
|
5519
|
+
var DTOWorkspaceIntegrationPATInput = z195.object({
|
|
5520
|
+
userId: z195.string(),
|
|
5487
5521
|
type: IntegrationType,
|
|
5488
5522
|
token: IntegrationToken
|
|
5489
5523
|
});
|
|
5490
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5491
|
-
organization:
|
|
5524
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z195.object({
|
|
5525
|
+
organization: z195.string().optional(),
|
|
5492
5526
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5493
|
-
project:
|
|
5527
|
+
project: z195.string().optional(),
|
|
5494
5528
|
// Only for Bitbucket and Azure
|
|
5495
|
-
repository:
|
|
5529
|
+
repository: z195.string().optional(),
|
|
5496
5530
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5497
|
-
branch:
|
|
5531
|
+
branch: z195.string().optional(),
|
|
5498
5532
|
// For all providers, useful for PR creations.
|
|
5499
|
-
user:
|
|
5533
|
+
user: z195.string().optional()
|
|
5500
5534
|
// Only for Gitlab User Repositories
|
|
5501
5535
|
});
|
|
5502
5536
|
|
|
5503
5537
|
// src/api/dto/design-systems/version.ts
|
|
5504
|
-
var DTODesignSystemVersion =
|
|
5505
|
-
id:
|
|
5506
|
-
createdAt:
|
|
5538
|
+
var DTODesignSystemVersion = z196.object({
|
|
5539
|
+
id: z196.string(),
|
|
5540
|
+
createdAt: z196.coerce.date(),
|
|
5507
5541
|
meta: ObjectMeta,
|
|
5508
|
-
version:
|
|
5509
|
-
isReadonly:
|
|
5510
|
-
changeLog:
|
|
5511
|
-
designSystemId:
|
|
5542
|
+
version: z196.string(),
|
|
5543
|
+
isReadonly: z196.boolean(),
|
|
5544
|
+
changeLog: z196.string(),
|
|
5545
|
+
designSystemId: z196.string()
|
|
5512
5546
|
});
|
|
5513
|
-
var DTODesignSystemVersionsListResponse =
|
|
5514
|
-
designSystemVersions:
|
|
5547
|
+
var DTODesignSystemVersionsListResponse = z196.object({
|
|
5548
|
+
designSystemVersions: z196.array(DTODesignSystemVersion)
|
|
5515
5549
|
});
|
|
5516
|
-
var DTODesignSystemVersionGetResponse =
|
|
5550
|
+
var DTODesignSystemVersionGetResponse = z196.object({
|
|
5517
5551
|
designSystemVersion: DTODesignSystemVersion
|
|
5518
5552
|
});
|
|
5519
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5553
|
+
var DTODesignSystemVersionCreationResponse = z196.object({
|
|
5520
5554
|
meta: ObjectMeta,
|
|
5521
|
-
version:
|
|
5522
|
-
changeLog:
|
|
5523
|
-
isReadOnly:
|
|
5524
|
-
designSystemId:
|
|
5525
|
-
jobId:
|
|
5526
|
-
});
|
|
5527
|
-
var VersionSQSPayload =
|
|
5528
|
-
jobId:
|
|
5529
|
-
designSystemId:
|
|
5555
|
+
version: z196.string(),
|
|
5556
|
+
changeLog: z196.string(),
|
|
5557
|
+
isReadOnly: z196.boolean(),
|
|
5558
|
+
designSystemId: z196.string(),
|
|
5559
|
+
jobId: z196.string()
|
|
5560
|
+
});
|
|
5561
|
+
var VersionSQSPayload = z196.object({
|
|
5562
|
+
jobId: z196.string(),
|
|
5563
|
+
designSystemId: z196.string(),
|
|
5530
5564
|
input: DTOCreateVersionInput
|
|
5531
5565
|
});
|
|
5532
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5533
|
-
jobs:
|
|
5566
|
+
var DTODesignSystemVersionJobsResponse = z196.object({
|
|
5567
|
+
jobs: z196.array(VersionCreationJob)
|
|
5534
5568
|
});
|
|
5535
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5569
|
+
var DTODesignSystemVersionJobStatusResponse = z196.object({
|
|
5536
5570
|
job: VersionCreationJob
|
|
5537
5571
|
});
|
|
5538
5572
|
|
|
5539
5573
|
// src/api/dto/design-systems/view.ts
|
|
5540
|
-
import { z as
|
|
5541
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5542
|
-
id:
|
|
5543
|
-
persistentId:
|
|
5544
|
-
width:
|
|
5574
|
+
import { z as z197 } from "zod";
|
|
5575
|
+
var DTOElementViewColumnSharedAttributes = z197.object({
|
|
5576
|
+
id: z197.string(),
|
|
5577
|
+
persistentId: z197.string(),
|
|
5578
|
+
width: z197.number()
|
|
5545
5579
|
});
|
|
5546
5580
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5547
|
-
type:
|
|
5581
|
+
type: z197.literal("BaseProperty"),
|
|
5548
5582
|
basePropertyType: ElementViewBaseColumnType
|
|
5549
5583
|
});
|
|
5550
5584
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5551
|
-
type:
|
|
5552
|
-
propertyDefinitionId:
|
|
5585
|
+
type: z197.literal("PropertyDefinition"),
|
|
5586
|
+
propertyDefinitionId: z197.string()
|
|
5553
5587
|
});
|
|
5554
5588
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5555
|
-
type:
|
|
5556
|
-
themeId:
|
|
5589
|
+
type: z197.literal("Theme"),
|
|
5590
|
+
themeId: z197.string()
|
|
5557
5591
|
});
|
|
5558
|
-
var DTOElementViewColumn =
|
|
5592
|
+
var DTOElementViewColumn = z197.discriminatedUnion("type", [
|
|
5559
5593
|
DTOElementViewBasePropertyColumn,
|
|
5560
5594
|
DTOElementViewPropertyDefinitionColumn,
|
|
5561
5595
|
DTOElementViewThemeColumn
|
|
5562
5596
|
]);
|
|
5563
|
-
var DTOElementView =
|
|
5597
|
+
var DTOElementView = z197.object({
|
|
5564
5598
|
meta: ObjectMeta,
|
|
5565
|
-
persistentId:
|
|
5599
|
+
persistentId: z197.string(),
|
|
5566
5600
|
targetElementType: ElementPropertyTargetType,
|
|
5567
|
-
id:
|
|
5568
|
-
isDefault:
|
|
5569
|
-
columns:
|
|
5601
|
+
id: z197.string(),
|
|
5602
|
+
isDefault: z197.boolean(),
|
|
5603
|
+
columns: z197.array(DTOElementViewColumn)
|
|
5570
5604
|
});
|
|
5571
|
-
var DTOElementViewsListResponse =
|
|
5572
|
-
elementDataViews:
|
|
5605
|
+
var DTOElementViewsListResponse = z197.object({
|
|
5606
|
+
elementDataViews: z197.array(DTOElementView)
|
|
5573
5607
|
});
|
|
5574
5608
|
|
|
5575
5609
|
// src/api/dto/workspaces/git.ts
|
|
5576
|
-
import { z as
|
|
5577
|
-
var DTOGitOrganization =
|
|
5578
|
-
id:
|
|
5579
|
-
name:
|
|
5580
|
-
url:
|
|
5581
|
-
slug:
|
|
5610
|
+
import { z as z198 } from "zod";
|
|
5611
|
+
var DTOGitOrganization = z198.object({
|
|
5612
|
+
id: z198.string(),
|
|
5613
|
+
name: z198.string(),
|
|
5614
|
+
url: z198.string(),
|
|
5615
|
+
slug: z198.string()
|
|
5582
5616
|
});
|
|
5583
|
-
var DTOGitProject =
|
|
5584
|
-
id:
|
|
5585
|
-
name:
|
|
5586
|
-
url:
|
|
5587
|
-
slug:
|
|
5617
|
+
var DTOGitProject = z198.object({
|
|
5618
|
+
id: z198.string(),
|
|
5619
|
+
name: z198.string(),
|
|
5620
|
+
url: z198.string(),
|
|
5621
|
+
slug: z198.string()
|
|
5588
5622
|
});
|
|
5589
|
-
var DTOGitRepository =
|
|
5590
|
-
id:
|
|
5591
|
-
name:
|
|
5592
|
-
url:
|
|
5593
|
-
slug:
|
|
5594
|
-
defaultBranch:
|
|
5623
|
+
var DTOGitRepository = z198.object({
|
|
5624
|
+
id: z198.string(),
|
|
5625
|
+
name: z198.string(),
|
|
5626
|
+
url: z198.string(),
|
|
5627
|
+
slug: z198.string(),
|
|
5628
|
+
defaultBranch: z198.string().optional()
|
|
5595
5629
|
});
|
|
5596
|
-
var DTOGitBranch =
|
|
5597
|
-
name:
|
|
5598
|
-
lastCommitId:
|
|
5630
|
+
var DTOGitBranch = z198.object({
|
|
5631
|
+
name: z198.string(),
|
|
5632
|
+
lastCommitId: z198.string()
|
|
5599
5633
|
});
|
|
5600
5634
|
|
|
5601
5635
|
// src/api/dto/workspaces/integrations.ts
|
|
5602
|
-
import { z as
|
|
5636
|
+
import { z as z199 } from "zod";
|
|
5603
5637
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5604
5638
|
accessToken: true,
|
|
5605
5639
|
refreshToken: true
|
|
5606
5640
|
});
|
|
5607
|
-
var DTOIntegration =
|
|
5608
|
-
id:
|
|
5609
|
-
workspaceId:
|
|
5641
|
+
var DTOIntegration = z199.object({
|
|
5642
|
+
id: z199.string(),
|
|
5643
|
+
workspaceId: z199.string(),
|
|
5610
5644
|
type: ExtendedIntegrationType,
|
|
5611
|
-
createdAt:
|
|
5612
|
-
integrationCredentials:
|
|
5613
|
-
integrationDesignSystems:
|
|
5645
|
+
createdAt: z199.coerce.date(),
|
|
5646
|
+
integrationCredentials: z199.array(DTOIntegrationCredentials).optional(),
|
|
5647
|
+
integrationDesignSystems: z199.array(IntegrationDesignSystem).optional()
|
|
5614
5648
|
});
|
|
5615
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5616
|
-
url:
|
|
5649
|
+
var DTOIntegrationOAuthGetResponse = z199.object({
|
|
5650
|
+
url: z199.string()
|
|
5617
5651
|
});
|
|
5618
|
-
var DTOIntegrationPostResponse =
|
|
5652
|
+
var DTOIntegrationPostResponse = z199.object({
|
|
5619
5653
|
integration: DTOIntegration
|
|
5620
5654
|
});
|
|
5621
|
-
var DTOIntegrationsGetListResponse =
|
|
5655
|
+
var DTOIntegrationsGetListResponse = z199.object({
|
|
5622
5656
|
integrations: DTOIntegration.array()
|
|
5623
5657
|
});
|
|
5624
5658
|
|
|
5625
5659
|
// src/api/dto/workspaces/invitations.ts
|
|
5626
|
-
import { z as
|
|
5627
|
-
var DTOWorkspaceInvitationInput =
|
|
5628
|
-
email:
|
|
5660
|
+
import { z as z200 } from "zod";
|
|
5661
|
+
var DTOWorkspaceInvitationInput = z200.object({
|
|
5662
|
+
email: z200.string().email(),
|
|
5629
5663
|
role: WorkspaceRoleSchema
|
|
5630
5664
|
});
|
|
5631
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5665
|
+
var DTOWorkspaceInvitationsListInput = z200.object({
|
|
5632
5666
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5633
|
-
designSystemId:
|
|
5667
|
+
designSystemId: z200.string().optional()
|
|
5634
5668
|
});
|
|
5635
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5669
|
+
var DTOWorkspaceInvitationsResponse = z200.object({
|
|
5636
5670
|
invitations: WorkspaceInvitation.array()
|
|
5637
5671
|
});
|
|
5638
|
-
var DTOWorkspaceInviteUpdate =
|
|
5672
|
+
var DTOWorkspaceInviteUpdate = z200.object({
|
|
5639
5673
|
role: WorkspaceRoleSchema
|
|
5640
5674
|
});
|
|
5641
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
5675
|
+
var DTOWorkspaceInvitationUpdateResponse = z200.object({
|
|
5642
5676
|
invitation: WorkspaceInvitation
|
|
5643
5677
|
});
|
|
5644
5678
|
|
|
5645
5679
|
// src/api/dto/workspaces/membership.ts
|
|
5646
|
-
import { z as
|
|
5680
|
+
import { z as z203 } from "zod";
|
|
5647
5681
|
|
|
5648
5682
|
// src/api/dto/workspaces/workspace.ts
|
|
5649
|
-
import { z as
|
|
5683
|
+
import { z as z202 } from "zod";
|
|
5650
5684
|
|
|
5651
5685
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5652
|
-
import { z as
|
|
5686
|
+
import { z as z201 } from "zod";
|
|
5653
5687
|
var DTONpmRegistryConfigConstants = {
|
|
5654
5688
|
passwordPlaceholder: "redacted"
|
|
5655
5689
|
};
|
|
5656
|
-
var DTONpmRegistryConfig =
|
|
5690
|
+
var DTONpmRegistryConfig = z201.object({
|
|
5657
5691
|
// Registry basic configuration
|
|
5658
5692
|
registryType: NpmRegistryType,
|
|
5659
|
-
registryUrl:
|
|
5660
|
-
customRegistryUrl:
|
|
5693
|
+
registryUrl: z201.string(),
|
|
5694
|
+
customRegistryUrl: z201.string().optional(),
|
|
5661
5695
|
// URL of Supernova NPM packages proxy
|
|
5662
|
-
proxyUrl:
|
|
5696
|
+
proxyUrl: z201.string(),
|
|
5663
5697
|
// Auth configuration
|
|
5664
5698
|
authType: NpmRegistryAuthType,
|
|
5665
|
-
accessToken:
|
|
5666
|
-
username:
|
|
5667
|
-
password:
|
|
5699
|
+
accessToken: z201.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5700
|
+
username: z201.string().optional(),
|
|
5701
|
+
password: z201.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5668
5702
|
// NPM package scopes for whih the proxy should be enabled
|
|
5669
|
-
enabledScopes:
|
|
5703
|
+
enabledScopes: z201.array(z201.string()),
|
|
5670
5704
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5671
5705
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5672
|
-
bypassProxy:
|
|
5706
|
+
bypassProxy: z201.boolean()
|
|
5673
5707
|
});
|
|
5674
5708
|
|
|
5675
5709
|
// src/api/dto/workspaces/workspace.ts
|
|
5676
|
-
var DTOWorkspace =
|
|
5677
|
-
id:
|
|
5710
|
+
var DTOWorkspace = z202.object({
|
|
5711
|
+
id: z202.string(),
|
|
5678
5712
|
profile: WorkspaceProfile,
|
|
5679
5713
|
subscription: Subscription,
|
|
5680
5714
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5681
5715
|
});
|
|
5682
|
-
var DTOWorkspaceCreateInput =
|
|
5683
|
-
name:
|
|
5716
|
+
var DTOWorkspaceCreateInput = z202.object({
|
|
5717
|
+
name: z202.string()
|
|
5684
5718
|
});
|
|
5685
|
-
var DTOWorkspaceResponse =
|
|
5719
|
+
var DTOWorkspaceResponse = z202.object({
|
|
5686
5720
|
workspace: DTOWorkspace
|
|
5687
5721
|
});
|
|
5688
5722
|
|
|
5689
5723
|
// src/api/dto/workspaces/membership.ts
|
|
5690
|
-
var DTOWorkspaceRole =
|
|
5691
|
-
var DTOUserWorkspaceMembership =
|
|
5724
|
+
var DTOWorkspaceRole = z203.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
5725
|
+
var DTOUserWorkspaceMembership = z203.object({
|
|
5692
5726
|
// Workspace the user is a member of
|
|
5693
5727
|
workspace: DTOWorkspace,
|
|
5694
5728
|
// Assigned role the user has in the workspace
|
|
@@ -5698,26 +5732,26 @@ var DTOUserWorkspaceMembership = z202.object({
|
|
|
5698
5732
|
// when a workspace's subscription is downgraded to free tier
|
|
5699
5733
|
effectiveRole: DTOWorkspaceRole
|
|
5700
5734
|
});
|
|
5701
|
-
var DTOWorkspaceMember =
|
|
5735
|
+
var DTOWorkspaceMember = z203.object({
|
|
5702
5736
|
user: User,
|
|
5703
5737
|
role: WorkspaceRoleSchema,
|
|
5704
5738
|
effectiveRole: WorkspaceRoleSchema
|
|
5705
5739
|
});
|
|
5706
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5707
|
-
membership:
|
|
5740
|
+
var DTOUserWorkspaceMembershipsResponse = z203.object({
|
|
5741
|
+
membership: z203.array(DTOUserWorkspaceMembership)
|
|
5708
5742
|
});
|
|
5709
|
-
var DTOWorkspaceMembersListResponse =
|
|
5710
|
-
members:
|
|
5743
|
+
var DTOWorkspaceMembersListResponse = z203.object({
|
|
5744
|
+
members: z203.array(DTOWorkspaceMember)
|
|
5711
5745
|
});
|
|
5712
5746
|
|
|
5713
5747
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5714
|
-
var DTOAppBootstrapDataQuery =
|
|
5715
|
-
preferredWorkspaceId:
|
|
5716
|
-
preferredDesignSystemId:
|
|
5717
|
-
preferredVersionId:
|
|
5718
|
-
preferredBrandId:
|
|
5748
|
+
var DTOAppBootstrapDataQuery = z204.object({
|
|
5749
|
+
preferredWorkspaceId: z204.string().optional(),
|
|
5750
|
+
preferredDesignSystemId: z204.string().optional(),
|
|
5751
|
+
preferredVersionId: z204.string().optional(),
|
|
5752
|
+
preferredBrandId: z204.string().optional()
|
|
5719
5753
|
});
|
|
5720
|
-
var DTOAppBootstrapDataResponse =
|
|
5754
|
+
var DTOAppBootstrapDataResponse = z204.object({
|
|
5721
5755
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
5722
5756
|
designSystem: DTODesignSystem.optional(),
|
|
5723
5757
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -5725,37 +5759,37 @@ var DTOAppBootstrapDataResponse = z203.object({
|
|
|
5725
5759
|
});
|
|
5726
5760
|
|
|
5727
5761
|
// src/api/dto/collections/collection.ts
|
|
5728
|
-
import { z as
|
|
5729
|
-
var DTOTokenCollection =
|
|
5730
|
-
id:
|
|
5731
|
-
persistentId:
|
|
5732
|
-
designSystemVersionId:
|
|
5762
|
+
import { z as z205 } from "zod";
|
|
5763
|
+
var DTOTokenCollection = z205.object({
|
|
5764
|
+
id: z205.string(),
|
|
5765
|
+
persistentId: z205.string(),
|
|
5766
|
+
designSystemVersionId: z205.string(),
|
|
5733
5767
|
meta: ObjectMeta,
|
|
5734
|
-
createdAt:
|
|
5735
|
-
updatedAt:
|
|
5736
|
-
origin:
|
|
5737
|
-
id:
|
|
5738
|
-
sourceId:
|
|
5768
|
+
createdAt: z205.coerce.date(),
|
|
5769
|
+
updatedAt: z205.coerce.date(),
|
|
5770
|
+
origin: z205.object({
|
|
5771
|
+
id: z205.string(),
|
|
5772
|
+
sourceId: z205.string()
|
|
5739
5773
|
})
|
|
5740
5774
|
});
|
|
5741
|
-
var DTOTokenCollectionsListReponse =
|
|
5775
|
+
var DTOTokenCollectionsListReponse = z205.object({
|
|
5742
5776
|
collections: DTOTokenCollection.array()
|
|
5743
5777
|
});
|
|
5744
5778
|
|
|
5745
5779
|
// src/api/dto/documentation/anchor.ts
|
|
5746
|
-
import { z as
|
|
5780
|
+
import { z as z206 } from "zod";
|
|
5747
5781
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
5748
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
5749
|
-
anchors:
|
|
5782
|
+
var DTOGetDocumentationPageAnchorsResponse = z206.object({
|
|
5783
|
+
anchors: z206.array(DTODocumentationPageAnchor)
|
|
5750
5784
|
});
|
|
5751
5785
|
|
|
5752
5786
|
// src/api/dto/documentation/approvals.ts
|
|
5753
|
-
import { z as
|
|
5787
|
+
import { z as z207 } from "zod";
|
|
5754
5788
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
5755
|
-
var DTODocumentationGroupApprovalState =
|
|
5756
|
-
persistentId:
|
|
5757
|
-
groupId:
|
|
5758
|
-
designSystemVersionId:
|
|
5789
|
+
var DTODocumentationGroupApprovalState = z207.object({
|
|
5790
|
+
persistentId: z207.string(),
|
|
5791
|
+
groupId: z207.string(),
|
|
5792
|
+
designSystemVersionId: z207.string(),
|
|
5759
5793
|
approvalState: DocumentationPageApprovalState
|
|
5760
5794
|
});
|
|
5761
5795
|
|
|
@@ -5763,68 +5797,68 @@ var DTODocumentationGroupApprovalState = z206.object({
|
|
|
5763
5797
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
5764
5798
|
|
|
5765
5799
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5766
|
-
import { z as
|
|
5800
|
+
import { z as z212 } from "zod";
|
|
5767
5801
|
|
|
5768
5802
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5769
|
-
import { z as
|
|
5803
|
+
import { z as z211 } from "zod";
|
|
5770
5804
|
|
|
5771
5805
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5772
|
-
import { z as
|
|
5806
|
+
import { z as z209 } from "zod";
|
|
5773
5807
|
|
|
5774
5808
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
5775
|
-
import { z as
|
|
5809
|
+
import { z as z208 } from "zod";
|
|
5776
5810
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5777
|
-
var DTODocumentationItemConfigurationV2 =
|
|
5778
|
-
showSidebar:
|
|
5779
|
-
isPrivate:
|
|
5780
|
-
isHidden:
|
|
5811
|
+
var DTODocumentationItemConfigurationV2 = z208.object({
|
|
5812
|
+
showSidebar: z208.boolean(),
|
|
5813
|
+
isPrivate: z208.boolean(),
|
|
5814
|
+
isHidden: z208.boolean(),
|
|
5781
5815
|
header: DTODocumentationItemHeaderV2
|
|
5782
5816
|
});
|
|
5783
5817
|
|
|
5784
5818
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5785
|
-
var DTODocumentationDraftChangeType =
|
|
5786
|
-
var DTODocumentationDraftStateCreated =
|
|
5787
|
-
changeType:
|
|
5788
|
-
});
|
|
5789
|
-
var DTODocumentationDraftStateUpdated =
|
|
5790
|
-
changeType:
|
|
5791
|
-
changes:
|
|
5792
|
-
previousTitle:
|
|
5819
|
+
var DTODocumentationDraftChangeType = z209.enum(["Created", "Updated", "Deleted"]);
|
|
5820
|
+
var DTODocumentationDraftStateCreated = z209.object({
|
|
5821
|
+
changeType: z209.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
5822
|
+
});
|
|
5823
|
+
var DTODocumentationDraftStateUpdated = z209.object({
|
|
5824
|
+
changeType: z209.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
5825
|
+
changes: z209.object({
|
|
5826
|
+
previousTitle: z209.string().optional(),
|
|
5793
5827
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
5794
|
-
previousContentHash:
|
|
5828
|
+
previousContentHash: z209.string().optional()
|
|
5795
5829
|
})
|
|
5796
5830
|
});
|
|
5797
|
-
var DTODocumentationDraftStateDeleted =
|
|
5798
|
-
changeType:
|
|
5799
|
-
deletedAt:
|
|
5800
|
-
deletedByUserId:
|
|
5831
|
+
var DTODocumentationDraftStateDeleted = z209.object({
|
|
5832
|
+
changeType: z209.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
5833
|
+
deletedAt: z209.coerce.date(),
|
|
5834
|
+
deletedByUserId: z209.string()
|
|
5801
5835
|
});
|
|
5802
|
-
var DTODocumentationDraftState =
|
|
5836
|
+
var DTODocumentationDraftState = z209.discriminatedUnion("changeType", [
|
|
5803
5837
|
DTODocumentationDraftStateCreated,
|
|
5804
5838
|
DTODocumentationDraftStateUpdated,
|
|
5805
5839
|
DTODocumentationDraftStateDeleted
|
|
5806
5840
|
]);
|
|
5807
5841
|
|
|
5808
5842
|
// src/api/dto/elements/documentation/metadata.ts
|
|
5809
|
-
import { z as
|
|
5810
|
-
var DTODocumentationPublishMetadata =
|
|
5811
|
-
lastPublishedByUserId:
|
|
5812
|
-
lastPublishedAt:
|
|
5843
|
+
import { z as z210 } from "zod";
|
|
5844
|
+
var DTODocumentationPublishMetadata = z210.object({
|
|
5845
|
+
lastPublishedByUserId: z210.string(),
|
|
5846
|
+
lastPublishedAt: z210.coerce.date()
|
|
5813
5847
|
});
|
|
5814
5848
|
|
|
5815
5849
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5816
|
-
var DTODocumentationPageV2 =
|
|
5817
|
-
id:
|
|
5818
|
-
persistentId:
|
|
5819
|
-
designSystemVersionId:
|
|
5820
|
-
title:
|
|
5850
|
+
var DTODocumentationPageV2 = z211.object({
|
|
5851
|
+
id: z211.string(),
|
|
5852
|
+
persistentId: z211.string(),
|
|
5853
|
+
designSystemVersionId: z211.string(),
|
|
5854
|
+
title: z211.string(),
|
|
5821
5855
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5822
|
-
shortPersistentId:
|
|
5823
|
-
slug:
|
|
5824
|
-
userSlug:
|
|
5825
|
-
createdAt:
|
|
5826
|
-
updatedAt:
|
|
5827
|
-
path:
|
|
5856
|
+
shortPersistentId: z211.string(),
|
|
5857
|
+
slug: z211.string().optional(),
|
|
5858
|
+
userSlug: z211.string().optional(),
|
|
5859
|
+
createdAt: z211.coerce.date(),
|
|
5860
|
+
updatedAt: z211.coerce.date(),
|
|
5861
|
+
path: z211.string(),
|
|
5828
5862
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5829
5863
|
draftState: DTODocumentationDraftState.optional(),
|
|
5830
5864
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -5832,197 +5866,197 @@ var DTODocumentationPageV2 = z210.object({
|
|
|
5832
5866
|
/** Defines the approval state of the documentation page */
|
|
5833
5867
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
5834
5868
|
// Backward compatibility
|
|
5835
|
-
type:
|
|
5869
|
+
type: z211.literal("Page")
|
|
5836
5870
|
});
|
|
5837
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5871
|
+
var DTOCreateDocumentationPageInputV2 = z211.object({
|
|
5838
5872
|
// Identifier
|
|
5839
|
-
persistentId:
|
|
5873
|
+
persistentId: z211.string(),
|
|
5840
5874
|
// Page properties
|
|
5841
|
-
title:
|
|
5875
|
+
title: z211.string(),
|
|
5842
5876
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5843
5877
|
// Page placement properties
|
|
5844
|
-
parentPersistentId:
|
|
5845
|
-
afterPersistentId:
|
|
5878
|
+
parentPersistentId: z211.string(),
|
|
5879
|
+
afterPersistentId: z211.string().nullish()
|
|
5846
5880
|
});
|
|
5847
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5881
|
+
var DTOUpdateDocumentationPageInputV2 = z211.object({
|
|
5848
5882
|
// Identifier of the group to update
|
|
5849
|
-
id:
|
|
5883
|
+
id: z211.string(),
|
|
5850
5884
|
// Page properties
|
|
5851
|
-
title:
|
|
5885
|
+
title: z211.string().optional(),
|
|
5852
5886
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5853
5887
|
});
|
|
5854
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5888
|
+
var DTOMoveDocumentationPageInputV2 = z211.object({
|
|
5855
5889
|
// Identifier of the group to update
|
|
5856
|
-
id:
|
|
5890
|
+
id: z211.string(),
|
|
5857
5891
|
// Page placement properties
|
|
5858
|
-
parentPersistentId:
|
|
5859
|
-
afterPersistentId:
|
|
5892
|
+
parentPersistentId: z211.string(),
|
|
5893
|
+
afterPersistentId: z211.string().nullish()
|
|
5860
5894
|
});
|
|
5861
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5895
|
+
var DTODuplicateDocumentationPageInputV2 = z211.object({
|
|
5862
5896
|
// Identifier of the page to duplicate from
|
|
5863
|
-
id:
|
|
5897
|
+
id: z211.string(),
|
|
5864
5898
|
// New page persistent id
|
|
5865
|
-
persistentId:
|
|
5899
|
+
persistentId: z211.string(),
|
|
5866
5900
|
// Page placement properties
|
|
5867
|
-
parentPersistentId:
|
|
5868
|
-
afterPersistentId:
|
|
5901
|
+
parentPersistentId: z211.string(),
|
|
5902
|
+
afterPersistentId: z211.string().nullish()
|
|
5869
5903
|
});
|
|
5870
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5904
|
+
var DTODeleteDocumentationPageInputV2 = z211.object({
|
|
5871
5905
|
// Identifier
|
|
5872
|
-
id:
|
|
5906
|
+
id: z211.string()
|
|
5873
5907
|
});
|
|
5874
|
-
var DTORestoreDocumentationPageInput =
|
|
5875
|
-
persistentId:
|
|
5876
|
-
snapshotId:
|
|
5908
|
+
var DTORestoreDocumentationPageInput = z211.object({
|
|
5909
|
+
persistentId: z211.string(),
|
|
5910
|
+
snapshotId: z211.string().optional()
|
|
5877
5911
|
});
|
|
5878
|
-
var DTORestoreDocumentationGroupInput =
|
|
5879
|
-
persistentId:
|
|
5880
|
-
snapshotId:
|
|
5912
|
+
var DTORestoreDocumentationGroupInput = z211.object({
|
|
5913
|
+
persistentId: z211.string(),
|
|
5914
|
+
snapshotId: z211.string().optional()
|
|
5881
5915
|
});
|
|
5882
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
5883
|
-
persistentId:
|
|
5916
|
+
var DTODocumentationPageApprovalStateChangeInput = z211.object({
|
|
5917
|
+
persistentId: z211.string(),
|
|
5884
5918
|
approvalState: DocumentationPageApprovalState.optional()
|
|
5885
5919
|
});
|
|
5886
5920
|
|
|
5887
5921
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5888
|
-
var DTODocumentationPageSnapshot =
|
|
5889
|
-
id:
|
|
5890
|
-
designSystemVersionId:
|
|
5891
|
-
createdAt:
|
|
5892
|
-
updatedAt:
|
|
5922
|
+
var DTODocumentationPageSnapshot = z212.object({
|
|
5923
|
+
id: z212.string(),
|
|
5924
|
+
designSystemVersionId: z212.string(),
|
|
5925
|
+
createdAt: z212.string(),
|
|
5926
|
+
updatedAt: z212.string(),
|
|
5893
5927
|
documentationPage: DTODocumentationPageV2,
|
|
5894
|
-
pageContentHash:
|
|
5928
|
+
pageContentHash: z212.string(),
|
|
5895
5929
|
reason: DesignElementSnapshotReason
|
|
5896
5930
|
});
|
|
5897
5931
|
|
|
5898
5932
|
// src/api/dto/documentation/link-preview.ts
|
|
5899
|
-
import { z as
|
|
5900
|
-
var DTODocumentationLinkPreviewResponse =
|
|
5933
|
+
import { z as z213 } from "zod";
|
|
5934
|
+
var DTODocumentationLinkPreviewResponse = z213.object({
|
|
5901
5935
|
linkPreview: DocumentationLinkPreview
|
|
5902
5936
|
});
|
|
5903
|
-
var DTODocumentationLinkPreviewRequest =
|
|
5904
|
-
url:
|
|
5905
|
-
documentationItemPersistentId:
|
|
5937
|
+
var DTODocumentationLinkPreviewRequest = z213.object({
|
|
5938
|
+
url: z213.string().optional(),
|
|
5939
|
+
documentationItemPersistentId: z213.string().optional()
|
|
5906
5940
|
});
|
|
5907
5941
|
|
|
5908
5942
|
// src/api/dto/documentation/publish.ts
|
|
5909
|
-
import { z as
|
|
5943
|
+
import { z as z217 } from "zod";
|
|
5910
5944
|
|
|
5911
5945
|
// src/api/dto/export/exporter.ts
|
|
5912
|
-
import { z as
|
|
5913
|
-
var DTOExporterType =
|
|
5914
|
-
var DTOExporterSource =
|
|
5915
|
-
var DTOExporterMembershipRole =
|
|
5916
|
-
var DTOExporter =
|
|
5917
|
-
id:
|
|
5918
|
-
name:
|
|
5919
|
-
isPrivate:
|
|
5946
|
+
import { z as z214 } from "zod";
|
|
5947
|
+
var DTOExporterType = z214.enum(["documentation", "code"]);
|
|
5948
|
+
var DTOExporterSource = z214.enum(["git", "upload"]);
|
|
5949
|
+
var DTOExporterMembershipRole = z214.enum(["Owner", "OwnerArchived", "User"]);
|
|
5950
|
+
var DTOExporter = z214.object({
|
|
5951
|
+
id: z214.string(),
|
|
5952
|
+
name: z214.string(),
|
|
5953
|
+
isPrivate: z214.boolean(),
|
|
5920
5954
|
exporterType: DTOExporterType,
|
|
5921
|
-
isDefaultDocumentationExporter:
|
|
5922
|
-
iconURL:
|
|
5955
|
+
isDefaultDocumentationExporter: z214.boolean(),
|
|
5956
|
+
iconURL: z214.string().optional(),
|
|
5923
5957
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5924
5958
|
customBlocks: PulsarCustomBlock.array(),
|
|
5925
|
-
blockVariants:
|
|
5926
|
-
usesBrands:
|
|
5927
|
-
usesThemes:
|
|
5959
|
+
blockVariants: z214.record(z214.string(), PulsarContributionVariant.array()),
|
|
5960
|
+
usesBrands: z214.boolean(),
|
|
5961
|
+
usesThemes: z214.boolean(),
|
|
5928
5962
|
source: DTOExporterSource,
|
|
5929
|
-
gitUrl:
|
|
5930
|
-
gitBranch:
|
|
5931
|
-
gitDirectory:
|
|
5963
|
+
gitUrl: z214.string().optional(),
|
|
5964
|
+
gitBranch: z214.string().optional(),
|
|
5965
|
+
gitDirectory: z214.string().optional()
|
|
5932
5966
|
});
|
|
5933
|
-
var DTOExporterMembership =
|
|
5934
|
-
workspaceId:
|
|
5935
|
-
exporterId:
|
|
5967
|
+
var DTOExporterMembership = z214.object({
|
|
5968
|
+
workspaceId: z214.string(),
|
|
5969
|
+
exporterId: z214.string(),
|
|
5936
5970
|
role: DTOExporterMembershipRole
|
|
5937
5971
|
});
|
|
5938
|
-
var DTOExporterCreateOutput =
|
|
5972
|
+
var DTOExporterCreateOutput = z214.object({
|
|
5939
5973
|
exporter: DTOExporter,
|
|
5940
5974
|
membership: DTOExporterMembership
|
|
5941
5975
|
});
|
|
5942
|
-
var DTOExporterGitProviderEnum =
|
|
5943
|
-
var DTOExporterCreateInput =
|
|
5944
|
-
url:
|
|
5976
|
+
var DTOExporterGitProviderEnum = z214.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5977
|
+
var DTOExporterCreateInput = z214.object({
|
|
5978
|
+
url: z214.string(),
|
|
5945
5979
|
provider: DTOExporterGitProviderEnum
|
|
5946
5980
|
});
|
|
5947
|
-
var DTOExporterUpdateInput =
|
|
5948
|
-
url:
|
|
5981
|
+
var DTOExporterUpdateInput = z214.object({
|
|
5982
|
+
url: z214.string().optional()
|
|
5949
5983
|
});
|
|
5950
5984
|
|
|
5951
5985
|
// src/api/dto/export/filter.ts
|
|
5952
5986
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
5953
5987
|
|
|
5954
5988
|
// src/api/dto/export/job.ts
|
|
5955
|
-
import { z as
|
|
5956
|
-
var DTOExportJobCreatedBy =
|
|
5957
|
-
userId:
|
|
5958
|
-
userName:
|
|
5989
|
+
import { z as z215 } from "zod";
|
|
5990
|
+
var DTOExportJobCreatedBy = z215.object({
|
|
5991
|
+
userId: z215.string(),
|
|
5992
|
+
userName: z215.string()
|
|
5959
5993
|
});
|
|
5960
|
-
var DTOExportJobDesignSystemPreview =
|
|
5961
|
-
id:
|
|
5994
|
+
var DTOExportJobDesignSystemPreview = z215.object({
|
|
5995
|
+
id: z215.string(),
|
|
5962
5996
|
meta: ObjectMeta
|
|
5963
5997
|
});
|
|
5964
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5965
|
-
id:
|
|
5998
|
+
var DTOExportJobDesignSystemVersionPreview = z215.object({
|
|
5999
|
+
id: z215.string(),
|
|
5966
6000
|
meta: ObjectMeta,
|
|
5967
|
-
version:
|
|
5968
|
-
isReadonly:
|
|
6001
|
+
version: z215.string(),
|
|
6002
|
+
isReadonly: z215.boolean()
|
|
5969
6003
|
});
|
|
5970
|
-
var DTOExportJobDestinations =
|
|
6004
|
+
var DTOExportJobDestinations = z215.object({
|
|
5971
6005
|
s3: ExporterDestinationS3.optional(),
|
|
5972
6006
|
azure: ExporterDestinationAzure.optional(),
|
|
5973
6007
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5974
6008
|
github: ExporterDestinationGithub.optional(),
|
|
5975
6009
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5976
6010
|
documentation: ExporterDestinationDocs.optional(),
|
|
5977
|
-
webhookUrl:
|
|
6011
|
+
webhookUrl: z215.string().optional()
|
|
5978
6012
|
});
|
|
5979
6013
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
5980
6014
|
sndocs: true
|
|
5981
6015
|
}).extend({
|
|
5982
6016
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
5983
6017
|
});
|
|
5984
|
-
var DTOExportJob =
|
|
5985
|
-
id:
|
|
5986
|
-
createdAt:
|
|
5987
|
-
finishedAt:
|
|
5988
|
-
index:
|
|
6018
|
+
var DTOExportJob = z215.object({
|
|
6019
|
+
id: z215.string(),
|
|
6020
|
+
createdAt: z215.coerce.date(),
|
|
6021
|
+
finishedAt: z215.coerce.date().optional(),
|
|
6022
|
+
index: z215.number().optional(),
|
|
5989
6023
|
status: ExportJobStatus,
|
|
5990
|
-
estimatedExecutionTime:
|
|
6024
|
+
estimatedExecutionTime: z215.number().optional(),
|
|
5991
6025
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5992
6026
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5993
6027
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5994
6028
|
destinations: DTOExportJobDestinations,
|
|
5995
|
-
exporterId:
|
|
5996
|
-
scheduleId:
|
|
6029
|
+
exporterId: z215.string(),
|
|
6030
|
+
scheduleId: z215.string().optional(),
|
|
5997
6031
|
result: DTOExportJobResult.optional(),
|
|
5998
|
-
brandPersistentId:
|
|
5999
|
-
themePersistentId:
|
|
6000
|
-
themePersistentIds:
|
|
6032
|
+
brandPersistentId: z215.string().optional(),
|
|
6033
|
+
themePersistentId: z215.string().optional(),
|
|
6034
|
+
themePersistentIds: z215.string().array().optional()
|
|
6001
6035
|
});
|
|
6002
|
-
var DTOExportJobResponse =
|
|
6036
|
+
var DTOExportJobResponse = z215.object({
|
|
6003
6037
|
job: DTOExportJob
|
|
6004
6038
|
});
|
|
6005
6039
|
|
|
6006
6040
|
// src/api/dto/export/pipeline.ts
|
|
6007
|
-
import { z as
|
|
6008
|
-
var DTOPipeline =
|
|
6009
|
-
id:
|
|
6010
|
-
name:
|
|
6041
|
+
import { z as z216 } from "zod";
|
|
6042
|
+
var DTOPipeline = z216.object({
|
|
6043
|
+
id: z216.string(),
|
|
6044
|
+
name: z216.string(),
|
|
6011
6045
|
eventType: PipelineEventType,
|
|
6012
|
-
isEnabled:
|
|
6013
|
-
workspaceId:
|
|
6014
|
-
designSystemId:
|
|
6015
|
-
exporterId:
|
|
6016
|
-
brandPersistentId:
|
|
6017
|
-
themePersistentId:
|
|
6018
|
-
themePersistentIds:
|
|
6046
|
+
isEnabled: z216.boolean(),
|
|
6047
|
+
workspaceId: z216.string(),
|
|
6048
|
+
designSystemId: z216.string(),
|
|
6049
|
+
exporterId: z216.string(),
|
|
6050
|
+
brandPersistentId: z216.string().optional(),
|
|
6051
|
+
themePersistentId: z216.string().optional(),
|
|
6052
|
+
themePersistentIds: z216.string().array().optional(),
|
|
6019
6053
|
...ExportDestinationsMap.shape,
|
|
6020
6054
|
latestJobs: DTOExportJob.array()
|
|
6021
6055
|
});
|
|
6022
6056
|
|
|
6023
6057
|
// src/api/dto/documentation/publish.ts
|
|
6024
6058
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6025
|
-
var DTOPublishDocumentationRequest =
|
|
6059
|
+
var DTOPublishDocumentationRequest = z217.object({
|
|
6026
6060
|
environment: PublishedDocEnvironment,
|
|
6027
6061
|
/**
|
|
6028
6062
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6030,42 +6064,42 @@ var DTOPublishDocumentationRequest = z216.object({
|
|
|
6030
6064
|
*/
|
|
6031
6065
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6032
6066
|
});
|
|
6033
|
-
var DTOPublishDocumentationResponse =
|
|
6067
|
+
var DTOPublishDocumentationResponse = z217.object({
|
|
6034
6068
|
job: DTOExportJob
|
|
6035
6069
|
});
|
|
6036
6070
|
|
|
6037
6071
|
// src/api/dto/elements/components/figma-component.ts
|
|
6038
|
-
import { z as
|
|
6072
|
+
import { z as z218 } from "zod";
|
|
6039
6073
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6040
|
-
var DTOFigmaComponentPropertyMap =
|
|
6041
|
-
var DTOFigmaComponent =
|
|
6042
|
-
id:
|
|
6043
|
-
persistentId:
|
|
6044
|
-
designSystemVersionId:
|
|
6045
|
-
brandId:
|
|
6046
|
-
thumbnailUrl:
|
|
6047
|
-
svgUrl:
|
|
6048
|
-
exportProperties:
|
|
6049
|
-
isAsset:
|
|
6074
|
+
var DTOFigmaComponentPropertyMap = z218.record(DTOFigmaComponentProperty);
|
|
6075
|
+
var DTOFigmaComponent = z218.object({
|
|
6076
|
+
id: z218.string(),
|
|
6077
|
+
persistentId: z218.string(),
|
|
6078
|
+
designSystemVersionId: z218.string(),
|
|
6079
|
+
brandId: z218.string(),
|
|
6080
|
+
thumbnailUrl: z218.string().optional(),
|
|
6081
|
+
svgUrl: z218.string().optional(),
|
|
6082
|
+
exportProperties: z218.object({
|
|
6083
|
+
isAsset: z218.boolean()
|
|
6050
6084
|
}),
|
|
6051
|
-
createdAt:
|
|
6052
|
-
updatedAt:
|
|
6085
|
+
createdAt: z218.coerce.date(),
|
|
6086
|
+
updatedAt: z218.coerce.date(),
|
|
6053
6087
|
meta: ObjectMeta,
|
|
6054
6088
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6055
|
-
parentComponentPersistentId:
|
|
6056
|
-
childrenPersistentIds:
|
|
6089
|
+
parentComponentPersistentId: z218.string().optional(),
|
|
6090
|
+
childrenPersistentIds: z218.string().array().optional(),
|
|
6057
6091
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6058
|
-
variantPropertyValues:
|
|
6092
|
+
variantPropertyValues: z218.record(z218.string()).optional()
|
|
6059
6093
|
});
|
|
6060
|
-
var DTOFigmaComponentListResponse =
|
|
6094
|
+
var DTOFigmaComponentListResponse = z218.object({
|
|
6061
6095
|
components: DTOFigmaComponent.array()
|
|
6062
6096
|
});
|
|
6063
6097
|
|
|
6064
6098
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6065
|
-
import { z as
|
|
6099
|
+
import { z as z220 } from "zod";
|
|
6066
6100
|
|
|
6067
6101
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6068
|
-
import { z as
|
|
6102
|
+
import { z as z219 } from "zod";
|
|
6069
6103
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6070
6104
|
sortOrder: true,
|
|
6071
6105
|
parentPersistentId: true,
|
|
@@ -6075,13 +6109,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6075
6109
|
data: true,
|
|
6076
6110
|
shortPersistentId: true
|
|
6077
6111
|
}).extend({
|
|
6078
|
-
title:
|
|
6079
|
-
isRoot:
|
|
6080
|
-
childrenIds:
|
|
6112
|
+
title: z219.string(),
|
|
6113
|
+
isRoot: z219.boolean(),
|
|
6114
|
+
childrenIds: z219.array(z219.string()),
|
|
6081
6115
|
groupBehavior: DocumentationGroupBehavior,
|
|
6082
|
-
shortPersistentId:
|
|
6116
|
+
shortPersistentId: z219.string(),
|
|
6083
6117
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6084
|
-
type:
|
|
6118
|
+
type: z219.literal("Group"),
|
|
6085
6119
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6086
6120
|
draftState: DTODocumentationDraftState.optional(),
|
|
6087
6121
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6089,127 +6123,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6089
6123
|
//** An approval state for frontend to utilize. */
|
|
6090
6124
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6091
6125
|
});
|
|
6092
|
-
var DTOCreateDocumentationGroupInput =
|
|
6126
|
+
var DTOCreateDocumentationGroupInput = z219.object({
|
|
6093
6127
|
// Identifier
|
|
6094
|
-
persistentId:
|
|
6128
|
+
persistentId: z219.string(),
|
|
6095
6129
|
// Group properties
|
|
6096
|
-
title:
|
|
6130
|
+
title: z219.string(),
|
|
6097
6131
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6098
6132
|
// Group placement properties
|
|
6099
|
-
afterPersistentId:
|
|
6100
|
-
parentPersistentId:
|
|
6133
|
+
afterPersistentId: z219.string().nullish(),
|
|
6134
|
+
parentPersistentId: z219.string()
|
|
6101
6135
|
});
|
|
6102
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6136
|
+
var DTOUpdateDocumentationGroupInput = z219.object({
|
|
6103
6137
|
// Identifier of the group to update
|
|
6104
|
-
id:
|
|
6138
|
+
id: z219.string(),
|
|
6105
6139
|
// Group properties
|
|
6106
|
-
title:
|
|
6140
|
+
title: z219.string().optional(),
|
|
6107
6141
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6108
6142
|
});
|
|
6109
|
-
var DTOMoveDocumentationGroupInput =
|
|
6143
|
+
var DTOMoveDocumentationGroupInput = z219.object({
|
|
6110
6144
|
// Identifier of the group to update
|
|
6111
|
-
id:
|
|
6145
|
+
id: z219.string(),
|
|
6112
6146
|
// Group placement properties
|
|
6113
|
-
parentPersistentId:
|
|
6114
|
-
afterPersistentId:
|
|
6147
|
+
parentPersistentId: z219.string(),
|
|
6148
|
+
afterPersistentId: z219.string().nullish()
|
|
6115
6149
|
});
|
|
6116
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6150
|
+
var DTODuplicateDocumentationGroupInput = z219.object({
|
|
6117
6151
|
// Identifier of the group to duplicate from
|
|
6118
|
-
id:
|
|
6152
|
+
id: z219.string(),
|
|
6119
6153
|
// New group persistent id
|
|
6120
|
-
persistentId:
|
|
6154
|
+
persistentId: z219.string(),
|
|
6121
6155
|
// Group placement properties
|
|
6122
|
-
afterPersistentId:
|
|
6123
|
-
parentPersistentId:
|
|
6156
|
+
afterPersistentId: z219.string().nullish(),
|
|
6157
|
+
parentPersistentId: z219.string()
|
|
6124
6158
|
});
|
|
6125
|
-
var DTOCreateDocumentationTabInput =
|
|
6159
|
+
var DTOCreateDocumentationTabInput = z219.object({
|
|
6126
6160
|
// New group persistent id
|
|
6127
|
-
persistentId:
|
|
6161
|
+
persistentId: z219.string(),
|
|
6128
6162
|
// If this is page, we will attempt to convert it to tab
|
|
6129
6163
|
// If this is tab group, we will add a new tab to it
|
|
6130
|
-
fromItemPersistentId:
|
|
6131
|
-
tabName:
|
|
6164
|
+
fromItemPersistentId: z219.string(),
|
|
6165
|
+
tabName: z219.string()
|
|
6132
6166
|
});
|
|
6133
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6167
|
+
var DTODeleteDocumentationTabGroupInput = z219.object({
|
|
6134
6168
|
// Deleted group id
|
|
6135
|
-
id:
|
|
6169
|
+
id: z219.string()
|
|
6136
6170
|
});
|
|
6137
|
-
var DTODeleteDocumentationGroupInput =
|
|
6171
|
+
var DTODeleteDocumentationGroupInput = z219.object({
|
|
6138
6172
|
// Identifier
|
|
6139
|
-
id:
|
|
6173
|
+
id: z219.string(),
|
|
6140
6174
|
// Deletion options
|
|
6141
|
-
deleteSubtree:
|
|
6175
|
+
deleteSubtree: z219.boolean().default(false)
|
|
6142
6176
|
});
|
|
6143
6177
|
|
|
6144
6178
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6145
|
-
var SuccessPayload =
|
|
6146
|
-
success:
|
|
6179
|
+
var SuccessPayload = z220.object({
|
|
6180
|
+
success: z220.literal(true)
|
|
6147
6181
|
});
|
|
6148
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6149
|
-
type:
|
|
6182
|
+
var DTODocumentationGroupCreateActionOutputV2 = z220.object({
|
|
6183
|
+
type: z220.literal("DocumentationGroupCreate"),
|
|
6150
6184
|
output: SuccessPayload
|
|
6151
6185
|
});
|
|
6152
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6153
|
-
type:
|
|
6186
|
+
var DTODocumentationTabCreateActionOutputV2 = z220.object({
|
|
6187
|
+
type: z220.literal("DocumentationTabCreate"),
|
|
6154
6188
|
output: SuccessPayload
|
|
6155
6189
|
});
|
|
6156
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6157
|
-
type:
|
|
6190
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z220.object({
|
|
6191
|
+
type: z220.literal("DocumentationGroupUpdate"),
|
|
6158
6192
|
output: SuccessPayload
|
|
6159
6193
|
});
|
|
6160
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6161
|
-
type:
|
|
6194
|
+
var DTODocumentationGroupMoveActionOutputV2 = z220.object({
|
|
6195
|
+
type: z220.literal("DocumentationGroupMove"),
|
|
6162
6196
|
output: SuccessPayload
|
|
6163
6197
|
});
|
|
6164
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6165
|
-
type:
|
|
6198
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z220.object({
|
|
6199
|
+
type: z220.literal("DocumentationGroupDuplicate"),
|
|
6166
6200
|
output: SuccessPayload
|
|
6167
6201
|
});
|
|
6168
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6169
|
-
type:
|
|
6202
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z220.object({
|
|
6203
|
+
type: z220.literal("DocumentationGroupDelete"),
|
|
6170
6204
|
output: SuccessPayload
|
|
6171
6205
|
});
|
|
6172
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6173
|
-
type:
|
|
6206
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z220.object({
|
|
6207
|
+
type: z220.literal("DocumentationTabGroupDelete"),
|
|
6174
6208
|
output: SuccessPayload
|
|
6175
6209
|
});
|
|
6176
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6177
|
-
type:
|
|
6210
|
+
var DTODocumentationGroupCreateActionInputV2 = z220.object({
|
|
6211
|
+
type: z220.literal("DocumentationGroupCreate"),
|
|
6178
6212
|
input: DTOCreateDocumentationGroupInput
|
|
6179
6213
|
});
|
|
6180
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6181
|
-
type:
|
|
6214
|
+
var DTODocumentationTabCreateActionInputV2 = z220.object({
|
|
6215
|
+
type: z220.literal("DocumentationTabCreate"),
|
|
6182
6216
|
input: DTOCreateDocumentationTabInput
|
|
6183
6217
|
});
|
|
6184
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6185
|
-
type:
|
|
6218
|
+
var DTODocumentationGroupUpdateActionInputV2 = z220.object({
|
|
6219
|
+
type: z220.literal("DocumentationGroupUpdate"),
|
|
6186
6220
|
input: DTOUpdateDocumentationGroupInput
|
|
6187
6221
|
});
|
|
6188
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6189
|
-
type:
|
|
6222
|
+
var DTODocumentationGroupMoveActionInputV2 = z220.object({
|
|
6223
|
+
type: z220.literal("DocumentationGroupMove"),
|
|
6190
6224
|
input: DTOMoveDocumentationGroupInput
|
|
6191
6225
|
});
|
|
6192
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6193
|
-
type:
|
|
6226
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z220.object({
|
|
6227
|
+
type: z220.literal("DocumentationGroupDuplicate"),
|
|
6194
6228
|
input: DTODuplicateDocumentationGroupInput
|
|
6195
6229
|
});
|
|
6196
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6197
|
-
type:
|
|
6230
|
+
var DTODocumentationGroupDeleteActionInputV2 = z220.object({
|
|
6231
|
+
type: z220.literal("DocumentationGroupDelete"),
|
|
6198
6232
|
input: DTODeleteDocumentationGroupInput
|
|
6199
6233
|
});
|
|
6200
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6201
|
-
type:
|
|
6234
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z220.object({
|
|
6235
|
+
type: z220.literal("DocumentationTabGroupDelete"),
|
|
6202
6236
|
input: DTODeleteDocumentationTabGroupInput
|
|
6203
6237
|
});
|
|
6204
6238
|
|
|
6205
6239
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6206
|
-
import { z as
|
|
6240
|
+
import { z as z222 } from "zod";
|
|
6207
6241
|
|
|
6208
6242
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6209
|
-
import { z as
|
|
6210
|
-
var DocumentationColorV1 =
|
|
6211
|
-
aliasTo:
|
|
6212
|
-
value:
|
|
6243
|
+
import { z as z221 } from "zod";
|
|
6244
|
+
var DocumentationColorV1 = z221.object({
|
|
6245
|
+
aliasTo: z221.string().optional(),
|
|
6246
|
+
value: z221.string().optional()
|
|
6213
6247
|
});
|
|
6214
6248
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6215
6249
|
foregroundColor: true,
|
|
@@ -6218,10 +6252,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6218
6252
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6219
6253
|
backgroundColor: DocumentationColorV1.optional()
|
|
6220
6254
|
});
|
|
6221
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6222
|
-
showSidebar:
|
|
6223
|
-
isPrivate:
|
|
6224
|
-
isHidden:
|
|
6255
|
+
var DTODocumentationItemConfigurationV1 = z221.object({
|
|
6256
|
+
showSidebar: z221.boolean(),
|
|
6257
|
+
isPrivate: z221.boolean(),
|
|
6258
|
+
isHidden: z221.boolean(),
|
|
6225
6259
|
header: DTODocumentationItemHeaderV1
|
|
6226
6260
|
});
|
|
6227
6261
|
|
|
@@ -6235,27 +6269,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6235
6269
|
data: true,
|
|
6236
6270
|
shortPersistentId: true
|
|
6237
6271
|
}).extend({
|
|
6238
|
-
title:
|
|
6239
|
-
isRoot:
|
|
6240
|
-
childrenIds:
|
|
6272
|
+
title: z222.string(),
|
|
6273
|
+
isRoot: z222.boolean(),
|
|
6274
|
+
childrenIds: z222.array(z222.string()),
|
|
6241
6275
|
groupBehavior: DocumentationGroupBehavior,
|
|
6242
|
-
shortPersistentId:
|
|
6243
|
-
type:
|
|
6276
|
+
shortPersistentId: z222.string(),
|
|
6277
|
+
type: z222.literal("Group")
|
|
6244
6278
|
});
|
|
6245
6279
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6246
6280
|
configuration: DTODocumentationItemConfigurationV1
|
|
6247
6281
|
});
|
|
6248
6282
|
|
|
6249
6283
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6250
|
-
import { z as
|
|
6251
|
-
var DTODocumentationHierarchyV2 =
|
|
6252
|
-
pages:
|
|
6284
|
+
import { z as z223 } from "zod";
|
|
6285
|
+
var DTODocumentationHierarchyV2 = z223.object({
|
|
6286
|
+
pages: z223.array(
|
|
6253
6287
|
DTODocumentationPageV2.extend({
|
|
6254
6288
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6255
6289
|
draftState: DTODocumentationDraftState.optional()
|
|
6256
6290
|
})
|
|
6257
6291
|
),
|
|
6258
|
-
groups:
|
|
6292
|
+
groups: z223.array(
|
|
6259
6293
|
DTODocumentationGroupV2.extend({
|
|
6260
6294
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6261
6295
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6264,84 +6298,84 @@ var DTODocumentationHierarchyV2 = z222.object({
|
|
|
6264
6298
|
});
|
|
6265
6299
|
|
|
6266
6300
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6267
|
-
import { z as
|
|
6268
|
-
var SuccessPayload2 =
|
|
6269
|
-
success:
|
|
6301
|
+
import { z as z224 } from "zod";
|
|
6302
|
+
var SuccessPayload2 = z224.object({
|
|
6303
|
+
success: z224.literal(true)
|
|
6270
6304
|
});
|
|
6271
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6272
|
-
type:
|
|
6305
|
+
var DTODocumentationPageCreateActionOutputV2 = z224.object({
|
|
6306
|
+
type: z224.literal("DocumentationPageCreate"),
|
|
6273
6307
|
output: SuccessPayload2
|
|
6274
6308
|
});
|
|
6275
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6276
|
-
type:
|
|
6309
|
+
var DTODocumentationPageUpdateActionOutputV2 = z224.object({
|
|
6310
|
+
type: z224.literal("DocumentationPageUpdate"),
|
|
6277
6311
|
output: SuccessPayload2
|
|
6278
6312
|
});
|
|
6279
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6280
|
-
type:
|
|
6313
|
+
var DTODocumentationPageMoveActionOutputV2 = z224.object({
|
|
6314
|
+
type: z224.literal("DocumentationPageMove"),
|
|
6281
6315
|
output: SuccessPayload2
|
|
6282
6316
|
});
|
|
6283
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6284
|
-
type:
|
|
6317
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z224.object({
|
|
6318
|
+
type: z224.literal("DocumentationPageDuplicate"),
|
|
6285
6319
|
output: SuccessPayload2
|
|
6286
6320
|
});
|
|
6287
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6288
|
-
type:
|
|
6321
|
+
var DTODocumentationPageDeleteActionOutputV2 = z224.object({
|
|
6322
|
+
type: z224.literal("DocumentationPageDelete"),
|
|
6289
6323
|
output: SuccessPayload2
|
|
6290
6324
|
});
|
|
6291
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6292
|
-
type:
|
|
6325
|
+
var DTODocumentationPageRestoreActionOutput = z224.object({
|
|
6326
|
+
type: z224.literal("DocumentationPageRestore"),
|
|
6293
6327
|
output: SuccessPayload2
|
|
6294
6328
|
});
|
|
6295
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6296
|
-
type:
|
|
6329
|
+
var DTODocumentationGroupRestoreActionOutput = z224.object({
|
|
6330
|
+
type: z224.literal("DocumentationGroupRestore"),
|
|
6297
6331
|
output: SuccessPayload2
|
|
6298
6332
|
});
|
|
6299
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6300
|
-
type:
|
|
6333
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z224.object({
|
|
6334
|
+
type: z224.literal("DocumentationPageApprovalStateChange"),
|
|
6301
6335
|
output: SuccessPayload2
|
|
6302
6336
|
});
|
|
6303
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6304
|
-
type:
|
|
6337
|
+
var DTODocumentationPageCreateActionInputV2 = z224.object({
|
|
6338
|
+
type: z224.literal("DocumentationPageCreate"),
|
|
6305
6339
|
input: DTOCreateDocumentationPageInputV2
|
|
6306
6340
|
});
|
|
6307
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6308
|
-
type:
|
|
6341
|
+
var DTODocumentationPageUpdateActionInputV2 = z224.object({
|
|
6342
|
+
type: z224.literal("DocumentationPageUpdate"),
|
|
6309
6343
|
input: DTOUpdateDocumentationPageInputV2
|
|
6310
6344
|
});
|
|
6311
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6312
|
-
type:
|
|
6345
|
+
var DTODocumentationPageMoveActionInputV2 = z224.object({
|
|
6346
|
+
type: z224.literal("DocumentationPageMove"),
|
|
6313
6347
|
input: DTOMoveDocumentationPageInputV2
|
|
6314
6348
|
});
|
|
6315
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6316
|
-
type:
|
|
6349
|
+
var DTODocumentationPageDuplicateActionInputV2 = z224.object({
|
|
6350
|
+
type: z224.literal("DocumentationPageDuplicate"),
|
|
6317
6351
|
input: DTODuplicateDocumentationPageInputV2
|
|
6318
6352
|
});
|
|
6319
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6320
|
-
type:
|
|
6353
|
+
var DTODocumentationPageDeleteActionInputV2 = z224.object({
|
|
6354
|
+
type: z224.literal("DocumentationPageDelete"),
|
|
6321
6355
|
input: DTODeleteDocumentationPageInputV2
|
|
6322
6356
|
});
|
|
6323
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6324
|
-
type:
|
|
6357
|
+
var DTODocumentationPageRestoreActionInput = z224.object({
|
|
6358
|
+
type: z224.literal("DocumentationPageRestore"),
|
|
6325
6359
|
input: DTORestoreDocumentationPageInput
|
|
6326
6360
|
});
|
|
6327
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6328
|
-
type:
|
|
6361
|
+
var DTODocumentationGroupRestoreActionInput = z224.object({
|
|
6362
|
+
type: z224.literal("DocumentationGroupRestore"),
|
|
6329
6363
|
input: DTORestoreDocumentationGroupInput
|
|
6330
6364
|
});
|
|
6331
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6332
|
-
type:
|
|
6365
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z224.object({
|
|
6366
|
+
type: z224.literal("DocumentationPageApprovalStateChange"),
|
|
6333
6367
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6334
6368
|
});
|
|
6335
6369
|
|
|
6336
6370
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6337
|
-
import { z as
|
|
6371
|
+
import { z as z225 } from "zod";
|
|
6338
6372
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6339
|
-
var DTODocumentationPageContentGetResponse =
|
|
6373
|
+
var DTODocumentationPageContentGetResponse = z225.object({
|
|
6340
6374
|
pageContent: DTODocumentationPageContent
|
|
6341
6375
|
});
|
|
6342
6376
|
|
|
6343
6377
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6344
|
-
import { z as
|
|
6378
|
+
import { z as z226 } from "zod";
|
|
6345
6379
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6346
6380
|
data: true,
|
|
6347
6381
|
meta: true,
|
|
@@ -6349,32 +6383,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6349
6383
|
sortOrder: true
|
|
6350
6384
|
}).extend({
|
|
6351
6385
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6352
|
-
blocks:
|
|
6353
|
-
title:
|
|
6354
|
-
path:
|
|
6386
|
+
blocks: z226.array(PageBlockV1),
|
|
6387
|
+
title: z226.string(),
|
|
6388
|
+
path: z226.string()
|
|
6355
6389
|
});
|
|
6356
6390
|
|
|
6357
6391
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6358
|
-
import { z as
|
|
6392
|
+
import { z as z227 } from "zod";
|
|
6359
6393
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6360
|
-
var DTOFigmaNodeOrigin =
|
|
6361
|
-
sourceId:
|
|
6362
|
-
fileId:
|
|
6363
|
-
parentName:
|
|
6394
|
+
var DTOFigmaNodeOrigin = z227.object({
|
|
6395
|
+
sourceId: z227.string(),
|
|
6396
|
+
fileId: z227.string().optional(),
|
|
6397
|
+
parentName: z227.string().optional()
|
|
6364
6398
|
});
|
|
6365
|
-
var DTOFigmaNodeData =
|
|
6399
|
+
var DTOFigmaNodeData = z227.object({
|
|
6366
6400
|
// Id of the node in the Figma file
|
|
6367
|
-
figmaNodeId:
|
|
6401
|
+
figmaNodeId: z227.string(),
|
|
6368
6402
|
// Validity
|
|
6369
|
-
isValid:
|
|
6403
|
+
isValid: z227.boolean(),
|
|
6370
6404
|
// Asset data
|
|
6371
|
-
assetId:
|
|
6372
|
-
assetUrl:
|
|
6405
|
+
assetId: z227.string(),
|
|
6406
|
+
assetUrl: z227.string(),
|
|
6373
6407
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6374
6408
|
// Asset metadata
|
|
6375
|
-
assetScale:
|
|
6376
|
-
assetWidth:
|
|
6377
|
-
assetHeight:
|
|
6409
|
+
assetScale: z227.number(),
|
|
6410
|
+
assetWidth: z227.number().optional(),
|
|
6411
|
+
assetHeight: z227.number().optional()
|
|
6378
6412
|
});
|
|
6379
6413
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6380
6414
|
data: true,
|
|
@@ -6383,15 +6417,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6383
6417
|
data: DTOFigmaNodeData,
|
|
6384
6418
|
origin: DTOFigmaNodeOrigin
|
|
6385
6419
|
});
|
|
6386
|
-
var DTOFigmaNodeRenderInput =
|
|
6420
|
+
var DTOFigmaNodeRenderInput = z227.object({
|
|
6387
6421
|
/**
|
|
6388
6422
|
* Id of a design system's data source representing a linked Figma file
|
|
6389
6423
|
*/
|
|
6390
|
-
sourceId:
|
|
6424
|
+
sourceId: z227.string(),
|
|
6391
6425
|
/**
|
|
6392
6426
|
* Id of a node within the Figma file
|
|
6393
6427
|
*/
|
|
6394
|
-
figmaFileNodeId:
|
|
6428
|
+
figmaFileNodeId: z227.string(),
|
|
6395
6429
|
/**
|
|
6396
6430
|
* Format in which the node must be rendered, png by default.
|
|
6397
6431
|
*/
|
|
@@ -6399,97 +6433,97 @@ var DTOFigmaNodeRenderInput = z226.object({
|
|
|
6399
6433
|
});
|
|
6400
6434
|
|
|
6401
6435
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6402
|
-
import { z as
|
|
6403
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6404
|
-
type:
|
|
6405
|
-
figmaNodes:
|
|
6436
|
+
import { z as z228 } from "zod";
|
|
6437
|
+
var DTOFigmaNodeRenderActionOutput = z228.object({
|
|
6438
|
+
type: z228.literal("FigmaNodeRender"),
|
|
6439
|
+
figmaNodes: z228.array(DTOFigmaNode)
|
|
6406
6440
|
});
|
|
6407
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6408
|
-
type:
|
|
6441
|
+
var DTOFigmaNodeRenderActionInput = z228.object({
|
|
6442
|
+
type: z228.literal("FigmaNodeRender"),
|
|
6409
6443
|
input: DTOFigmaNodeRenderInput.array()
|
|
6410
6444
|
});
|
|
6411
6445
|
|
|
6412
6446
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6413
|
-
import { z as
|
|
6447
|
+
import { z as z230 } from "zod";
|
|
6414
6448
|
|
|
6415
6449
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6416
|
-
import { z as
|
|
6450
|
+
import { z as z229 } from "zod";
|
|
6417
6451
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6418
|
-
var DTOElementPropertyDefinition =
|
|
6419
|
-
id:
|
|
6420
|
-
designSystemVersionId:
|
|
6452
|
+
var DTOElementPropertyDefinition = z229.object({
|
|
6453
|
+
id: z229.string(),
|
|
6454
|
+
designSystemVersionId: z229.string(),
|
|
6421
6455
|
meta: ObjectMeta,
|
|
6422
|
-
persistentId:
|
|
6456
|
+
persistentId: z229.string(),
|
|
6423
6457
|
type: ElementPropertyTypeSchema,
|
|
6424
6458
|
targetElementType: ElementPropertyTargetType,
|
|
6425
|
-
codeName:
|
|
6426
|
-
options:
|
|
6459
|
+
codeName: z229.string().regex(CODE_NAME_REGEX2),
|
|
6460
|
+
options: z229.array(ElementPropertyDefinitionOption).optional(),
|
|
6427
6461
|
linkElementType: ElementPropertyLinkType.optional()
|
|
6428
6462
|
});
|
|
6429
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
6430
|
-
definitions:
|
|
6463
|
+
var DTOElementPropertyDefinitionsGetResponse = z229.object({
|
|
6464
|
+
definitions: z229.array(DTOElementPropertyDefinition)
|
|
6431
6465
|
});
|
|
6432
6466
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
6433
6467
|
id: true,
|
|
6434
6468
|
designSystemVersionId: true
|
|
6435
6469
|
});
|
|
6436
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
6437
|
-
id:
|
|
6438
|
-
name:
|
|
6439
|
-
description:
|
|
6440
|
-
codeName:
|
|
6441
|
-
options:
|
|
6470
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z229.object({
|
|
6471
|
+
id: z229.string(),
|
|
6472
|
+
name: z229.string().optional(),
|
|
6473
|
+
description: z229.string().optional(),
|
|
6474
|
+
codeName: z229.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6475
|
+
options: z229.array(ElementPropertyDefinitionOption).optional()
|
|
6442
6476
|
});
|
|
6443
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
6444
|
-
id:
|
|
6477
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z229.object({
|
|
6478
|
+
id: z229.string()
|
|
6445
6479
|
});
|
|
6446
6480
|
|
|
6447
6481
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6448
|
-
var SuccessPayload3 =
|
|
6449
|
-
success:
|
|
6482
|
+
var SuccessPayload3 = z230.object({
|
|
6483
|
+
success: z230.literal(true)
|
|
6450
6484
|
});
|
|
6451
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
6452
|
-
type:
|
|
6485
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z230.object({
|
|
6486
|
+
type: z230.literal("PropertyDefinitionCreate"),
|
|
6453
6487
|
definition: DTOElementPropertyDefinition
|
|
6454
6488
|
});
|
|
6455
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
6456
|
-
type:
|
|
6489
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z230.object({
|
|
6490
|
+
type: z230.literal("PropertyDefinitionUpdate"),
|
|
6457
6491
|
definition: DTOElementPropertyDefinition
|
|
6458
6492
|
});
|
|
6459
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
6460
|
-
type:
|
|
6493
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z230.object({
|
|
6494
|
+
type: z230.literal("PropertyDefinitionDelete"),
|
|
6461
6495
|
output: SuccessPayload3
|
|
6462
6496
|
});
|
|
6463
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
6464
|
-
type:
|
|
6497
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z230.object({
|
|
6498
|
+
type: z230.literal("PropertyDefinitionCreate"),
|
|
6465
6499
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
6466
6500
|
});
|
|
6467
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
6468
|
-
type:
|
|
6501
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z230.object({
|
|
6502
|
+
type: z230.literal("PropertyDefinitionUpdate"),
|
|
6469
6503
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
6470
6504
|
});
|
|
6471
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
6472
|
-
type:
|
|
6505
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z230.object({
|
|
6506
|
+
type: z230.literal("PropertyDefinitionDelete"),
|
|
6473
6507
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
6474
6508
|
});
|
|
6475
6509
|
|
|
6476
6510
|
// src/api/dto/elements/properties/property-values.ts
|
|
6477
|
-
import { z as
|
|
6478
|
-
var DTOElementPropertyValue =
|
|
6479
|
-
id:
|
|
6480
|
-
designSystemVersionId:
|
|
6481
|
-
definitionId:
|
|
6482
|
-
targetElementId:
|
|
6483
|
-
value:
|
|
6484
|
-
valuePreview:
|
|
6511
|
+
import { z as z231 } from "zod";
|
|
6512
|
+
var DTOElementPropertyValue = z231.object({
|
|
6513
|
+
id: z231.string(),
|
|
6514
|
+
designSystemVersionId: z231.string(),
|
|
6515
|
+
definitionId: z231.string(),
|
|
6516
|
+
targetElementId: z231.string(),
|
|
6517
|
+
value: z231.union([z231.string(), z231.number(), z231.boolean()]).optional(),
|
|
6518
|
+
valuePreview: z231.string().optional()
|
|
6485
6519
|
});
|
|
6486
|
-
var DTOElementPropertyValuesGetResponse =
|
|
6487
|
-
values:
|
|
6520
|
+
var DTOElementPropertyValuesGetResponse = z231.object({
|
|
6521
|
+
values: z231.array(DTOElementPropertyValue)
|
|
6488
6522
|
});
|
|
6489
6523
|
|
|
6490
6524
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6491
|
-
import { z as
|
|
6492
|
-
var DTOElementActionOutput =
|
|
6525
|
+
import { z as z232 } from "zod";
|
|
6526
|
+
var DTOElementActionOutput = z232.discriminatedUnion("type", [
|
|
6493
6527
|
// Documentation pages
|
|
6494
6528
|
DTODocumentationPageCreateActionOutputV2,
|
|
6495
6529
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6516,7 +6550,7 @@ var DTOElementActionOutput = z231.discriminatedUnion("type", [
|
|
|
6516
6550
|
// Approvals
|
|
6517
6551
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6518
6552
|
]);
|
|
6519
|
-
var DTOElementActionInput =
|
|
6553
|
+
var DTOElementActionInput = z232.discriminatedUnion("type", [
|
|
6520
6554
|
// Documentation pages
|
|
6521
6555
|
DTODocumentationPageCreateActionInputV2,
|
|
6522
6556
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6545,60 +6579,60 @@ var DTOElementActionInput = z231.discriminatedUnion("type", [
|
|
|
6545
6579
|
]);
|
|
6546
6580
|
|
|
6547
6581
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6548
|
-
import { z as
|
|
6549
|
-
var DTOElementsGetTypeFilter =
|
|
6550
|
-
var DTOElementsGetQuerySchema =
|
|
6551
|
-
types:
|
|
6582
|
+
import { z as z233 } from "zod";
|
|
6583
|
+
var DTOElementsGetTypeFilter = z233.enum(["FigmaNode"]);
|
|
6584
|
+
var DTOElementsGetQuerySchema = z233.object({
|
|
6585
|
+
types: z233.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6552
6586
|
});
|
|
6553
|
-
var DTOElementsGetOutput =
|
|
6554
|
-
figmaNodes:
|
|
6587
|
+
var DTOElementsGetOutput = z233.object({
|
|
6588
|
+
figmaNodes: z233.array(DTOFigmaNode).optional()
|
|
6555
6589
|
});
|
|
6556
6590
|
|
|
6557
6591
|
// src/api/dto/figma-components/assets/download.ts
|
|
6558
|
-
import { z as
|
|
6559
|
-
var DTOAssetRenderConfiguration =
|
|
6560
|
-
prefix:
|
|
6561
|
-
suffix:
|
|
6562
|
-
scale:
|
|
6563
|
-
format:
|
|
6564
|
-
});
|
|
6565
|
-
var DTORenderedAssetFile =
|
|
6566
|
-
assetId:
|
|
6567
|
-
fileName:
|
|
6568
|
-
sourceUrl:
|
|
6592
|
+
import { z as z234 } from "zod";
|
|
6593
|
+
var DTOAssetRenderConfiguration = z234.object({
|
|
6594
|
+
prefix: z234.string().optional(),
|
|
6595
|
+
suffix: z234.string().optional(),
|
|
6596
|
+
scale: z234.enum(["x1", "x2", "x3", "x4"]),
|
|
6597
|
+
format: z234.enum(["png", "pdf", "svg"])
|
|
6598
|
+
});
|
|
6599
|
+
var DTORenderedAssetFile = z234.object({
|
|
6600
|
+
assetId: z234.string(),
|
|
6601
|
+
fileName: z234.string(),
|
|
6602
|
+
sourceUrl: z234.string(),
|
|
6569
6603
|
settings: DTOAssetRenderConfiguration,
|
|
6570
|
-
originalName:
|
|
6604
|
+
originalName: z234.string()
|
|
6571
6605
|
});
|
|
6572
|
-
var DTODownloadAssetsRequest =
|
|
6573
|
-
persistentIds:
|
|
6606
|
+
var DTODownloadAssetsRequest = z234.object({
|
|
6607
|
+
persistentIds: z234.array(z234.string().uuid()).optional(),
|
|
6574
6608
|
settings: DTOAssetRenderConfiguration.array()
|
|
6575
6609
|
});
|
|
6576
|
-
var DTODownloadAssetsResponse =
|
|
6610
|
+
var DTODownloadAssetsResponse = z234.object({
|
|
6577
6611
|
items: DTORenderedAssetFile.array()
|
|
6578
6612
|
});
|
|
6579
6613
|
|
|
6580
6614
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6581
|
-
import { z as
|
|
6582
|
-
var DTOLiveblocksAuthResponse =
|
|
6583
|
-
token:
|
|
6615
|
+
import { z as z235 } from "zod";
|
|
6616
|
+
var DTOLiveblocksAuthResponse = z235.object({
|
|
6617
|
+
token: z235.string()
|
|
6584
6618
|
});
|
|
6585
6619
|
|
|
6586
6620
|
// src/api/dto/users/authenticated-user.ts
|
|
6587
|
-
import { z as
|
|
6621
|
+
import { z as z237 } from "zod";
|
|
6588
6622
|
|
|
6589
6623
|
// src/api/dto/users/user.ts
|
|
6590
|
-
import { z as
|
|
6591
|
-
var DTOUserProfile =
|
|
6592
|
-
name:
|
|
6593
|
-
nickname:
|
|
6594
|
-
avatar:
|
|
6595
|
-
});
|
|
6596
|
-
var DTOUser =
|
|
6597
|
-
id:
|
|
6598
|
-
email:
|
|
6624
|
+
import { z as z236 } from "zod";
|
|
6625
|
+
var DTOUserProfile = z236.object({
|
|
6626
|
+
name: z236.string(),
|
|
6627
|
+
nickname: z236.string().optional(),
|
|
6628
|
+
avatar: z236.string().optional()
|
|
6629
|
+
});
|
|
6630
|
+
var DTOUser = z236.object({
|
|
6631
|
+
id: z236.string(),
|
|
6632
|
+
email: z236.string(),
|
|
6599
6633
|
profile: DTOUserProfile
|
|
6600
6634
|
});
|
|
6601
|
-
var DTOUserGetResponse =
|
|
6635
|
+
var DTOUserGetResponse = z236.object({
|
|
6602
6636
|
user: DTOUser
|
|
6603
6637
|
});
|
|
6604
6638
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -6607,39 +6641,38 @@ var DTOUserProfileUpdate = UserProfileUpdate;
|
|
|
6607
6641
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
6608
6642
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
6609
6643
|
var DTOUserSource = UserSource;
|
|
6610
|
-
var DTOUserOnboarding =
|
|
6611
|
-
companyName:
|
|
6612
|
-
numberOfPeopleInOrg:
|
|
6613
|
-
numberOfPeopleInDesignTeam:
|
|
6644
|
+
var DTOUserOnboarding = z237.object({
|
|
6645
|
+
companyName: z237.string().optional(),
|
|
6646
|
+
numberOfPeopleInOrg: z237.string().optional(),
|
|
6647
|
+
numberOfPeopleInDesignTeam: z237.string().optional(),
|
|
6614
6648
|
department: DTOUserOnboardingDepartment.optional(),
|
|
6615
|
-
jobTitle:
|
|
6616
|
-
phase:
|
|
6649
|
+
jobTitle: z237.string().optional(),
|
|
6650
|
+
phase: z237.string().optional(),
|
|
6617
6651
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
6618
|
-
designSystemName:
|
|
6619
|
-
defaultDestination:
|
|
6620
|
-
isPageDraftOnboardingFinished:
|
|
6652
|
+
designSystemName: z237.string().optional(),
|
|
6653
|
+
defaultDestination: z237.string().optional(),
|
|
6654
|
+
isPageDraftOnboardingFinished: z237.boolean().optional()
|
|
6621
6655
|
});
|
|
6622
6656
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
6623
6657
|
onboarding: DTOUserOnboarding.optional()
|
|
6624
6658
|
});
|
|
6625
6659
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
6626
6660
|
profile: DTOAuthenticatedUserProfile,
|
|
6627
|
-
createdAt:
|
|
6628
|
-
loggedOutAt:
|
|
6661
|
+
createdAt: z237.coerce.date(),
|
|
6662
|
+
loggedOutAt: z237.coerce.date().optional(),
|
|
6629
6663
|
source: DTOUserSource.optional()
|
|
6630
6664
|
});
|
|
6631
|
-
var DTOAuthenticatedUserResponse =
|
|
6665
|
+
var DTOAuthenticatedUserResponse = z237.object({
|
|
6632
6666
|
user: DTOAuthenticatedUser
|
|
6633
6667
|
});
|
|
6634
6668
|
|
|
6635
6669
|
// src/api/dto/users/update.ts
|
|
6636
|
-
import { z as
|
|
6637
|
-
var DTOUserProfileUpdateResponse =
|
|
6670
|
+
import { z as z238 } from "zod";
|
|
6671
|
+
var DTOUserProfileUpdateResponse = z238.object({
|
|
6638
6672
|
user: User
|
|
6639
6673
|
});
|
|
6640
6674
|
|
|
6641
6675
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
6642
|
-
import { z as z238 } from "zod";
|
|
6643
6676
|
var BrandsEndpoint = class {
|
|
6644
6677
|
constructor(requestExecutor) {
|
|
6645
6678
|
this.requestExecutor = requestExecutor;
|
|
@@ -6647,28 +6680,26 @@ var BrandsEndpoint = class {
|
|
|
6647
6680
|
get(designSystemId, versionId, brandId) {
|
|
6648
6681
|
return this.requestExecutor.json(
|
|
6649
6682
|
`/design-systems/${designSystemId}/versions/${versionId}/brands/${brandId}`,
|
|
6650
|
-
|
|
6683
|
+
DTOBrandGetResponse
|
|
6651
6684
|
);
|
|
6652
6685
|
}
|
|
6653
6686
|
list(designSystemId, versionId) {
|
|
6654
|
-
return this.requestExecutor.json(
|
|
6687
|
+
return this.requestExecutor.json(
|
|
6688
|
+
`/design-systems/${designSystemId}/versions/${versionId}/brands`,
|
|
6689
|
+
DTOBrandsListResponse
|
|
6690
|
+
);
|
|
6655
6691
|
}
|
|
6656
6692
|
};
|
|
6657
6693
|
|
|
6658
|
-
// src/api/endpoints/design-system/versions/
|
|
6659
|
-
|
|
6660
|
-
var OverridesEndpoint = class {
|
|
6694
|
+
// src/api/endpoints/design-system/versions/import-jobs.ts
|
|
6695
|
+
var ImportJobsEndpoint = class {
|
|
6661
6696
|
constructor(requestExecutor) {
|
|
6662
6697
|
this.requestExecutor = requestExecutor;
|
|
6663
6698
|
}
|
|
6664
|
-
|
|
6699
|
+
get(designSystemId, versionId, jobId) {
|
|
6665
6700
|
return this.requestExecutor.json(
|
|
6666
|
-
`/design-systems/${
|
|
6667
|
-
|
|
6668
|
-
{
|
|
6669
|
-
method: "POST",
|
|
6670
|
-
body
|
|
6671
|
-
}
|
|
6701
|
+
`/design-systems/${designSystemId}/versions/${versionId}/import-jobs/${jobId}`,
|
|
6702
|
+
DTOImportJobResponse
|
|
6672
6703
|
);
|
|
6673
6704
|
}
|
|
6674
6705
|
};
|
|
@@ -6687,6 +6718,26 @@ var VersionStatsEndpoint = class {
|
|
|
6687
6718
|
|
|
6688
6719
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
6689
6720
|
import { z as z240 } from "zod";
|
|
6721
|
+
|
|
6722
|
+
// src/api/endpoints/design-system/versions/overrides.ts
|
|
6723
|
+
import { z as z239 } from "zod";
|
|
6724
|
+
var OverridesEndpoint = class {
|
|
6725
|
+
constructor(requestExecutor) {
|
|
6726
|
+
this.requestExecutor = requestExecutor;
|
|
6727
|
+
}
|
|
6728
|
+
create(dsId, versionId, themeId, body) {
|
|
6729
|
+
return this.requestExecutor.json(
|
|
6730
|
+
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
6731
|
+
z239.any(),
|
|
6732
|
+
{
|
|
6733
|
+
method: "POST",
|
|
6734
|
+
body
|
|
6735
|
+
}
|
|
6736
|
+
);
|
|
6737
|
+
}
|
|
6738
|
+
};
|
|
6739
|
+
|
|
6740
|
+
// src/api/endpoints/design-system/versions/themes.ts
|
|
6690
6741
|
var ThemesEndpoint = class {
|
|
6691
6742
|
constructor(requestExecutor) {
|
|
6692
6743
|
this.requestExecutor = requestExecutor;
|
|
@@ -6720,34 +6771,18 @@ var TokensEndpoint = class {
|
|
|
6720
6771
|
}
|
|
6721
6772
|
};
|
|
6722
6773
|
|
|
6723
|
-
// src/api/endpoints/design-system/
|
|
6724
|
-
var DesignSystemMembersEndpoint = class {
|
|
6725
|
-
constructor(requestExecutor) {
|
|
6726
|
-
this.requestExecutor = requestExecutor;
|
|
6727
|
-
}
|
|
6728
|
-
list(dsId) {
|
|
6729
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/members`, DTODesignSystemMemberListResponse, {
|
|
6730
|
-
method: "GET"
|
|
6731
|
-
});
|
|
6732
|
-
}
|
|
6733
|
-
update(dsId, body) {
|
|
6734
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/members`, DTODesignSystemMembersUpdateResponse, {
|
|
6735
|
-
method: "POST",
|
|
6736
|
-
body
|
|
6737
|
-
});
|
|
6738
|
-
}
|
|
6739
|
-
};
|
|
6740
|
-
|
|
6741
|
-
// src/api/endpoints/design-system/design-system-versions.ts
|
|
6774
|
+
// src/api/endpoints/design-system/versions.ts
|
|
6742
6775
|
var DesignSystemVersionsEndpoint = class {
|
|
6743
6776
|
constructor(requestExecutor) {
|
|
6744
6777
|
this.requestExecutor = requestExecutor;
|
|
6745
6778
|
__publicField(this, "themes");
|
|
6746
6779
|
__publicField(this, "brands");
|
|
6780
|
+
__publicField(this, "importJobs");
|
|
6747
6781
|
__publicField(this, "tokens");
|
|
6748
6782
|
__publicField(this, "stats");
|
|
6749
6783
|
this.themes = new ThemesEndpoint(requestExecutor);
|
|
6750
6784
|
this.brands = new BrandsEndpoint(requestExecutor);
|
|
6785
|
+
this.importJobs = new ImportJobsEndpoint(requestExecutor);
|
|
6751
6786
|
this.tokens = new TokensEndpoint(requestExecutor);
|
|
6752
6787
|
this.stats = new VersionStatsEndpoint(requestExecutor);
|
|
6753
6788
|
}
|
|
@@ -6756,15 +6791,50 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
6756
6791
|
}
|
|
6757
6792
|
};
|
|
6758
6793
|
|
|
6794
|
+
// src/api/endpoints/design-system/bff.ts
|
|
6795
|
+
var DesignSystemBffEndpoint = class {
|
|
6796
|
+
constructor(requestExecutor) {
|
|
6797
|
+
this.requestExecutor = requestExecutor;
|
|
6798
|
+
}
|
|
6799
|
+
import(dsId, payload) {
|
|
6800
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/bff/import`, DTOImportJobResponse, {
|
|
6801
|
+
method: "POST",
|
|
6802
|
+
body: payload
|
|
6803
|
+
});
|
|
6804
|
+
}
|
|
6805
|
+
};
|
|
6806
|
+
|
|
6759
6807
|
// src/api/endpoints/design-system/design-systems.ts
|
|
6760
6808
|
import { z as z242 } from "zod";
|
|
6809
|
+
|
|
6810
|
+
// src/api/endpoints/design-system/members.ts
|
|
6811
|
+
var DesignSystemMembersEndpoint = class {
|
|
6812
|
+
constructor(requestExecutor) {
|
|
6813
|
+
this.requestExecutor = requestExecutor;
|
|
6814
|
+
}
|
|
6815
|
+
list(dsId) {
|
|
6816
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/members`, DTODesignSystemMemberListResponse, {
|
|
6817
|
+
method: "GET"
|
|
6818
|
+
});
|
|
6819
|
+
}
|
|
6820
|
+
update(dsId, body) {
|
|
6821
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/members`, DTODesignSystemMembersUpdateResponse, {
|
|
6822
|
+
method: "POST",
|
|
6823
|
+
body
|
|
6824
|
+
});
|
|
6825
|
+
}
|
|
6826
|
+
};
|
|
6827
|
+
|
|
6828
|
+
// src/api/endpoints/design-system/design-systems.ts
|
|
6761
6829
|
var DesignSystemsEndpoint = class {
|
|
6762
6830
|
constructor(requestExecutor) {
|
|
6763
6831
|
this.requestExecutor = requestExecutor;
|
|
6764
6832
|
__publicField(this, "members");
|
|
6765
6833
|
__publicField(this, "versions");
|
|
6834
|
+
__publicField(this, "bff");
|
|
6766
6835
|
this.members = new DesignSystemMembersEndpoint(requestExecutor);
|
|
6767
6836
|
this.versions = new DesignSystemVersionsEndpoint(requestExecutor);
|
|
6837
|
+
this.bff = new DesignSystemBffEndpoint(requestExecutor);
|
|
6768
6838
|
}
|
|
6769
6839
|
create(body) {
|
|
6770
6840
|
return this.requestExecutor.json("/design-systems", DTODesignSystemResponse, { method: "POST", body });
|
|
@@ -11939,13 +12009,15 @@ export {
|
|
|
11939
12009
|
BackendVersionRoomYDoc,
|
|
11940
12010
|
BlockDefinitionUtils,
|
|
11941
12011
|
BlockParsingUtils,
|
|
11942
|
-
BrandsEndpoint,
|
|
11943
12012
|
DTOAppBootstrapDataQuery,
|
|
11944
12013
|
DTOAppBootstrapDataResponse,
|
|
11945
12014
|
DTOAssetRenderConfiguration,
|
|
11946
12015
|
DTOAuthenticatedUser,
|
|
11947
12016
|
DTOAuthenticatedUserProfile,
|
|
11948
12017
|
DTOAuthenticatedUserResponse,
|
|
12018
|
+
DTOBffFigmaImportRequestBody,
|
|
12019
|
+
DTOBffImportRequestBody,
|
|
12020
|
+
DTOBffUploadImportRequestBody,
|
|
11949
12021
|
DTOBrand,
|
|
11950
12022
|
DTOBrandCreateResponse,
|
|
11951
12023
|
DTOBrandGetResponse,
|
|
@@ -12100,6 +12172,8 @@ export {
|
|
|
12100
12172
|
DTOGitOrganization,
|
|
12101
12173
|
DTOGitProject,
|
|
12102
12174
|
DTOGitRepository,
|
|
12175
|
+
DTOImportJob,
|
|
12176
|
+
DTOImportJobResponse,
|
|
12103
12177
|
DTOIntegration,
|
|
12104
12178
|
DTOIntegrationCredentials,
|
|
12105
12179
|
DTOIntegrationOAuthGetResponse,
|
|
@@ -12170,6 +12244,7 @@ export {
|
|
|
12170
12244
|
DTOWorkspaceMembersListResponse,
|
|
12171
12245
|
DTOWorkspaceResponse,
|
|
12172
12246
|
DTOWorkspaceRole,
|
|
12247
|
+
DesignSystemBffEndpoint,
|
|
12173
12248
|
DesignSystemMembersEndpoint,
|
|
12174
12249
|
DesignSystemVersionsEndpoint,
|
|
12175
12250
|
DesignSystemsEndpoint,
|
|
@@ -12180,19 +12255,15 @@ export {
|
|
|
12180
12255
|
ListTreeBuilder,
|
|
12181
12256
|
NpmRegistryInput,
|
|
12182
12257
|
ObjectMeta2 as ObjectMeta,
|
|
12183
|
-
OverridesEndpoint,
|
|
12184
12258
|
PageBlockEditorModel,
|
|
12185
12259
|
PageSectionEditorModel,
|
|
12186
12260
|
RequestExecutor,
|
|
12187
12261
|
RequestExecutorError,
|
|
12188
12262
|
SupernovaApiClient,
|
|
12189
|
-
ThemesEndpoint,
|
|
12190
12263
|
TokenCollectionsEndpoint,
|
|
12191
|
-
TokensEndpoint,
|
|
12192
12264
|
UsersEndpoint,
|
|
12193
12265
|
VersionRoomBaseYDoc,
|
|
12194
12266
|
VersionSQSPayload,
|
|
12195
|
-
VersionStatsEndpoint,
|
|
12196
12267
|
WorkspaceConfigurationPayload,
|
|
12197
12268
|
WorkspaceInvitationsEndpoint,
|
|
12198
12269
|
WorkspaceMembersEndpoint,
|