@supernova-studio/model 1.6.1 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -575,13 +575,33 @@ var CodeComponent = z23.object({
575
575
  componentPath: z23.string(),
576
576
  description: z23.string(),
577
577
  properties: z23.record(z23.string(), CodeComponentProperty),
578
- tags: z23.record(z23.string(), z23.string()).optional()
578
+ tags: z23.record(z23.string(), z23.string()).nullable()
579
579
  });
580
580
  var CodeComponentUpsertResponse = z23.object({
581
581
  created: z23.number().nonnegative(),
582
582
  updated: z23.number().nonnegative(),
583
583
  deleted: z23.number().nonnegative()
584
584
  });
585
+ var RegistryType = z23.enum(["Npm", "Github", "Artifactory", "Azure", "Custom"]);
586
+ var Registry = z23.object({
587
+ type: RegistryType,
588
+ url: z23.string().optional(),
589
+ accessToken: z23.string().optional(),
590
+ scope: z23.string(),
591
+ authConfig: z23.record(z23.string()).optional()
592
+ });
593
+ var DependencyDefinition = z23.object({
594
+ name: z23.string(),
595
+ version: z23.string().optional()
596
+ });
597
+ var AnalyzeCodeComponentsInPackage = z23.object({
598
+ designSystemId: z23.string(),
599
+ versionId: z23.string(),
600
+ mainPackage: DependencyDefinition,
601
+ dependencies: z23.array(DependencyDefinition).optional(),
602
+ registries: Registry.array(),
603
+ userAccessToken: z23.string()
604
+ });
585
605
 
586
606
  // src/dsm/components/asset-rendering.ts
587
607
  import { z as z105 } from "zod";
@@ -962,6 +982,11 @@ function isNotNullish(value) {
962
982
  function isNullish(value) {
963
983
  return value === null || value === void 0;
964
984
  }
985
+ function hasProperty(prop) {
986
+ return (obj) => {
987
+ return obj[prop] !== null && obj[prop] !== void 0;
988
+ };
989
+ }
965
990
  function chunkedArray(array, chunkSize) {
966
991
  const result = [];
967
992
  for (let i = 0; i < array.length; i += chunkSize) {
@@ -3704,6 +3729,11 @@ var SourceImportComponentSummary = z90.object({
3704
3729
  componentAssetsUpdated: zeroNumberByDefault(),
3705
3730
  componentAssetsDeleted: zeroNumberByDefault()
3706
3731
  });
3732
+ var SourceImportStorybookSummary = z90.object({
3733
+ created: zeroNumberByDefault(),
3734
+ updated: zeroNumberByDefault(),
3735
+ deleted: zeroNumberByDefault()
3736
+ });
3707
3737
  var SourceImportFrameSummary = z90.object({
3708
3738
  assetsInFile: nullishToOptional(FileStructureStats.optional()),
3709
3739
  invalidReferencesCount: nullishToOptional(z90.number().optional())
@@ -3791,9 +3821,12 @@ var DataSourceStorybookRemote = z91.object({
3791
3821
  ownerId: z91.string().optional(),
3792
3822
  lastImportedAt: z91.coerce.date().optional(),
3793
3823
  lastImportedSuccessfully: z91.coerce.date().optional(),
3824
+ lastImportedResult: SourceImportStorybookSummary.optional(),
3794
3825
  isFailed: z91.boolean(),
3795
3826
  storiesCount: z91.number(),
3796
- docsCount: z91.number()
3827
+ docsCount: z91.number(),
3828
+ description: z91.string().optional(),
3829
+ isUsingVpn: z91.boolean().optional()
3797
3830
  });
3798
3831
  var DataSourceRemote = z91.discriminatedUnion("type", [
3799
3832
  DataSourceFigmaRemote,
@@ -4337,7 +4370,8 @@ var DocumentationPageDependencies = z114.object({
4337
4370
  groupPersistentIds: z114.set(z114.string()),
4338
4371
  propertyPersistentIds: z114.set(z114.string()),
4339
4372
  themePersistentIds: z114.set(z114.string()),
4340
- documentationPagePersistentIds: z114.set(z114.string())
4373
+ documentationPagePersistentIds: z114.set(z114.string()),
4374
+ storybookEntriesStoryIds: z114.set(z114.string())
4341
4375
  });
4342
4376
 
4343
4377
  // src/dsm/documentation/page.ts
@@ -5294,8 +5328,7 @@ var DocumentationPageRoom = Entity.extend({
5294
5328
  isDirty: z161.boolean()
5295
5329
  });
5296
5330
  var DocumentationPageRoomState = z161.object({
5297
- pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
5298
- itemConfiguration: DocumentationItemConfigurationV2
5331
+ pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
5299
5332
  });
5300
5333
  var DocumentationPageRoomRoomUpdate = z161.object({
5301
5334
  page: DocumentationPageV2,
@@ -5872,6 +5905,7 @@ var PersonalAccessToken = z190.object({
5872
5905
  });
5873
5906
  export {
5874
5907
  Address,
5908
+ AnalyzeCodeComponentsInPackage,
5875
5909
  Asset,
5876
5910
  AssetDeleteSchedule,
5877
5911
  AssetDynamoRecord,
@@ -5945,6 +5979,7 @@ export {
5945
5979
  DataSourceUploadRemote,
5946
5980
  DataSourceUploadRemoteSource,
5947
5981
  DataSourceVersion,
5982
+ DependencyDefinition,
5948
5983
  DesignElement,
5949
5984
  DesignElementBase,
5950
5985
  DesignElementBrandedPart,
@@ -6426,6 +6461,8 @@ export {
6426
6461
  PulsarPropertyType,
6427
6462
  RESERVED_SLUGS,
6428
6463
  RESERVED_SLUG_PREFIX,
6464
+ Registry,
6465
+ RegistryType,
6429
6466
  RenderedAssetFile,
6430
6467
  ResolvedAsset,
6431
6468
  RestoredDocumentationGroup,
@@ -6449,6 +6486,7 @@ export {
6449
6486
  SizeValue,
6450
6487
  SourceImportComponentSummary,
6451
6488
  SourceImportFrameSummary,
6489
+ SourceImportStorybookSummary,
6452
6490
  SourceImportSummary,
6453
6491
  SourceImportSummaryByTokenType,
6454
6492
  SourceImportTokenSummary,
@@ -6561,6 +6599,7 @@ export {
6561
6599
  getCodenameFromText,
6562
6600
  getFigmaRenderFormatFileExtension,
6563
6601
  groupBy,
6602
+ hasProperty,
6564
6603
  isDataSourceOfType,
6565
6604
  isDesignTokenImportModelOfType,
6566
6605
  isDesignTokenOfType,