@supernova-studio/client 0.46.0 → 0.46.1

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
@@ -1,10 +1,3 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => {
4
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
- return value;
6
- };
7
-
8
1
  // ../model/dist/index.mjs
9
2
  import { z } from "zod";
10
3
  import { z as z2 } from "zod";
@@ -811,6 +804,7 @@ var PageBlockShortcut = z34.object({
811
804
  description: nullishToOptional(z34.string()),
812
805
  asset: nullishToOptional(PageBlockAsset),
813
806
  documentationItemId: nullishToOptional(z34.string()),
807
+ pageHeadingId: nullishToOptional(z34.string()),
814
808
  url: nullishToOptional(z34.string()),
815
809
  openInNewTab: nullishToOptional(z34.boolean()),
816
810
  urlPreview: nullishToOptional(PageBlockUrlPreview),
@@ -1499,7 +1493,8 @@ var FigmaFileStructure = DesignElementBase.extend({
1499
1493
  data: FigmaFileStructureData
1500
1494
  });
1501
1495
  var FigmaNodeReferenceOrigin = z74.object({
1502
- sourceId: z74.string()
1496
+ sourceId: z74.string(),
1497
+ parentName: z74.string().optional()
1503
1498
  });
1504
1499
  var FigmaNodeReference = DesignElementBase.extend({
1505
1500
  data: FigmaNodeReferenceData,
@@ -2531,7 +2526,6 @@ var PublishedDocPage = z118.object({
2531
2526
  pathV1: z118.string(),
2532
2527
  pathV2: z118.string(),
2533
2528
  storagePath: z118.string(),
2534
- fallbackPublicPath: z118.string().optional(),
2535
2529
  locale: z118.string().optional(),
2536
2530
  isPrivate: z118.boolean(),
2537
2531
  isHidden: z118.boolean(),
@@ -2569,6 +2563,15 @@ var DesignSystemVersion = z120.object({
2569
2563
  changeLog: z120.string(),
2570
2564
  parentId: z120.string().optional()
2571
2565
  });
2566
+ var VersionCreationJobStatus = z120.enum(["Success", "InProgress", "Error"]);
2567
+ var VersionCreationJob = z120.object({
2568
+ _id: z120.string().optional(),
2569
+ version: z120.string(),
2570
+ designSystemId: z120.string(),
2571
+ designSystemVersionId: nullishToOptional(z120.string()),
2572
+ status: VersionCreationJobStatus,
2573
+ errorMessage: nullishToOptional(z120.string())
2574
+ });
2572
2575
  var ExporterJobDestination = z121.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2573
2576
  var ExporterJobStatus = z121.enum(["InProgress", "Success", "Failed", "Timeout"]);
2574
2577
  var ExporterJobLogEntryType = z121.enum(["success", "info", "warning", "error", "user"]);
@@ -4123,8 +4126,10 @@ var ObjectMeta2 = z149.object({
4123
4126
  description: z149.string().max(2e3).optional()
4124
4127
  });
4125
4128
  function validateSemver(version) {
4126
- const semverRegex = /^(\d+)(\.\d+)?(\.\d+)?$/;
4127
- return semverRegex.test(version);
4129
+ const semverRegex = /^(\d+)\.(\d+)(?:\.(\d+))?(?:-([\da-z-]+(?:\.[\da-z-]+)*))?(?:\+([\da-z-]+(?:\.[\da-z-]+)*))?$/i;
4130
+ const semverRegexWithSingleDigit = /^(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:-([\da-z-]+(?:\.[\da-z-]+)*))?(?:\+([\da-z-]+(?:\.[\da-z-]+)*))?$/i;
4131
+ const isValidSemver = semverRegex.test(version) || semverRegexWithSingleDigit.test(version);
4132
+ return isValidSemver;
4128
4133
  }
4129
4134
  var DTOCreateVersionInput = z149.object({
4130
4135
  meta: ObjectMeta2,
@@ -4223,12 +4228,19 @@ var DTODesignSystemVersionCreationResponse = z154.object({
4223
4228
  version: z154.string(),
4224
4229
  changeLog: z154.string(),
4225
4230
  isReadOnly: z154.boolean(),
4226
- designSystemId: z154.string()
4231
+ designSystemId: z154.string(),
4232
+ jobId: z154.string()
4227
4233
  });
4228
4234
  var VersionSQSPayload = z154.object({
4235
+ jobId: z154.string(),
4229
4236
  designSystemId: z154.string(),
4230
4237
  input: DTOCreateVersionInput
4231
4238
  });
4239
+ var DTODesignSystemVersionJobStatusResponse = z154.object({
4240
+ job: VersionCreationJob.omit({
4241
+ _id: true
4242
+ })
4243
+ });
4232
4244
 
4233
4245
  // src/api/dto/design-systems/view.ts
4234
4246
  import { z as z155 } from "zod";
@@ -4602,6 +4614,11 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
4602
4614
 
4603
4615
  // src/api/dto/elements/figma-nodes/figma-node.ts
4604
4616
  import { z as z167 } from "zod";
4617
+ var DTOFigmaNodeOrigin = z167.object({
4618
+ sourceId: z167.string(),
4619
+ fileId: z167.string().optional(),
4620
+ parentName: z167.string().optional()
4621
+ });
4605
4622
  var DTOFigmaNodeData = z167.object({
4606
4623
  // Id of the node in the Figma file
4607
4624
  figmaNodeId: z167.string(),
@@ -4616,9 +4633,11 @@ var DTOFigmaNodeData = z167.object({
4616
4633
  assetHeight: z167.number().optional()
4617
4634
  });
4618
4635
  var DTOFigmaNode = FigmaFileStructure.omit({
4619
- data: true
4636
+ data: true,
4637
+ origin: true
4620
4638
  }).extend({
4621
- data: DTOFigmaNodeData
4639
+ data: DTOFigmaNodeData,
4640
+ origin: DTOFigmaNodeOrigin
4622
4641
  });
4623
4642
  var DTOFigmaNodeRenderInput = z167.object({
4624
4643
  // Id of a design system's data source representing a linked Figma file
@@ -5736,9 +5755,6 @@ var BlockDefinitionUtils = {
5736
5755
 
5737
5756
  // src/yjs/docs-editor/list-tree-builder.ts
5738
5757
  var ListTreeBuilder = class {
5739
- constructor() {
5740
- __publicField(this, "rootNode");
5741
- }
5742
5758
  addWithProperty(block, multiRichTextProperty) {
5743
5759
  const parsedOptions = PageBlockDefinitionMutiRichTextOptions.optional().parse(multiRichTextProperty.options);
5744
5760
  return this.add(block, multiRichTextProperty.id, parsedOptions?.multiRichTextStyle || "OL");
@@ -8586,6 +8602,7 @@ export {
8586
8602
  DTODesignSystemVersion,
8587
8603
  DTODesignSystemVersionCreationResponse,
8588
8604
  DTODesignSystemVersionGetResponse,
8605
+ DTODesignSystemVersionJobStatusResponse,
8589
8606
  DTODesignSystemVersionsListResponse,
8590
8607
  DTODocumentationGroupCreateActionInputV2,
8591
8608
  DTODocumentationGroupCreateActionOutputV2,
@@ -8650,6 +8667,7 @@ export {
8650
8667
  DTOExporterPropertyListResponse,
8651
8668
  DTOFigmaNode,
8652
8669
  DTOFigmaNodeData,
8670
+ DTOFigmaNodeOrigin,
8653
8671
  DTOFigmaNodeRenderActionInput,
8654
8672
  DTOFigmaNodeRenderActionOutput,
8655
8673
  DTOFigmaNodeRenderInput,