@supernova-studio/client 0.47.22 → 0.47.27

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.js CHANGED
@@ -1105,6 +1105,12 @@ var PageBlockAssetEntityMeta = _zod.z.object({
1105
1105
  description: _zod.z.string().optional(),
1106
1106
  backgroundColor: PageBlockColorV2.optional()
1107
1107
  });
1108
+ var PageBlockFigmaComponentEntityMeta = _zod.z.object({
1109
+ title: _zod.z.string().optional(),
1110
+ description: _zod.z.string().optional(),
1111
+ backgroundColor: PageBlockColorV2.optional(),
1112
+ selectedComponentProperties: _zod.z.array(_zod.z.string()).optional()
1113
+ });
1108
1114
  var PageBlockFigmaNodeEntityMeta = _zod.z.object({
1109
1115
  title: _zod.z.string().optional(),
1110
1116
  description: _zod.z.string().optional(),
@@ -1152,6 +1158,20 @@ var PageBlockItemAssetValue = _zod.z.object({
1152
1158
  var PageBlockItemAssetPropertyValue = _zod.z.object({
1153
1159
  value: _zod.z.array(_zod.z.string()).default([])
1154
1160
  });
1161
+ var PageBlockItemFigmaComponentValue = _zod.z.object({
1162
+ showComponentName: _zod.z.boolean().optional(),
1163
+ showComponentDescription: _zod.z.boolean().optional(),
1164
+ showPropertyList: _zod.z.boolean().optional(),
1165
+ previewContainerSize: PageBlockPreviewContainerSize.optional(),
1166
+ backgroundColor: PageBlockColorV2.optional(),
1167
+ value: _zod.z.array(
1168
+ _zod.z.object({
1169
+ entityId: _zod.z.string(),
1170
+ entityType: _zod.z.enum(["FigmaComponent"]),
1171
+ entityMeta: PageBlockFigmaComponentEntityMeta.optional()
1172
+ })
1173
+ ).default([])
1174
+ });
1155
1175
  var PageBlockItemBooleanValue = _zod.z.object({
1156
1176
  value: _zod.z.boolean()
1157
1177
  });
@@ -2215,13 +2235,19 @@ var PageBlockDefinitionSingleSelectPropertyColor = _zod.z.enum([
2215
2235
  "Cyan",
2216
2236
  "Fuchsia"
2217
2237
  ]);
2238
+ var IconSet = _zod.z.enum([
2239
+ "CheckCircle",
2240
+ "CrossCircle",
2241
+ "Alert"
2242
+ ]);
2218
2243
  var PageBlockDefinitionMultiSelectPropertyStyle = _zod.z.enum(["SegmentedControl", "Select", "Checkbox"]);
2219
2244
  var PageBlockDefinitionImageAspectRatio = _zod.z.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
2220
2245
  var PageBlockDefinitionImageWidth = _zod.z.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
2221
2246
  var PageBlockDefinitionSelectChoice = _zod.z.object({
2222
2247
  value: _zod.z.string(),
2223
2248
  name: _zod.z.string(),
2224
- icon: _zod.z.string().optional(),
2249
+ icon: IconSet.optional(),
2250
+ customIconUrl: _zod.z.string().optional(),
2225
2251
  color: PageBlockDefinitionSingleSelectPropertyColor.optional()
2226
2252
  });
2227
2253
  var PageBlockDefinitionUntypedPropertyOptions = _zod.z.record(_zod.z.any());
@@ -2235,7 +2261,8 @@ var PageBlockDefinitionTextOptions = _zod.z.object({
2235
2261
  placeholder: _zod.z.string().optional(),
2236
2262
  defaultValue: _zod.z.string().optional(),
2237
2263
  textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
2238
- color: PageBlockDefinitionTextPropertyColor.optional()
2264
+ color: PageBlockDefinitionTextPropertyColor.optional(),
2265
+ allowLineBreaks: _zod.z.boolean().optional()
2239
2266
  });
2240
2267
  var PageBlockDefinitionSelectOptions = _zod.z.object({
2241
2268
  singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
@@ -2291,7 +2318,7 @@ var PageBlockCategory = _zod.z.enum([
2291
2318
  "Data",
2292
2319
  "Other"
2293
2320
  ]);
2294
- var PageBlockBehaviorDataType = _zod.z.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
2321
+ var PageBlockBehaviorDataType = _zod.z.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
2295
2322
  var PageBlockBehaviorSelectionType = _zod.z.enum(["Entity", "Group", "EntityAndGroup"]);
2296
2323
  var PageBlockDefinitionBehavior = _zod.z.object({
2297
2324
  dataType: PageBlockBehaviorDataType,
@@ -2857,12 +2884,12 @@ var ExportJobDocsDestinationResult = _zod.z.object({
2857
2884
  });
2858
2885
  var ExportJobResult = _zod.z.object({
2859
2886
  error: _zod.z.string().optional(),
2860
- s3: ExportJobS3DestinationResult.optional(),
2861
- github: ExportJobPullRequestDestinationResult.optional(),
2862
- azure: ExportJobPullRequestDestinationResult.optional(),
2863
- gitlab: ExportJobPullRequestDestinationResult.optional(),
2864
- bitbucket: ExportJobPullRequestDestinationResult.optional(),
2865
- sndocs: ExportJobDocsDestinationResult.optional()
2887
+ s3: nullishToOptional(ExportJobS3DestinationResult),
2888
+ github: nullishToOptional(ExportJobPullRequestDestinationResult),
2889
+ azure: nullishToOptional(ExportJobPullRequestDestinationResult),
2890
+ gitlab: nullishToOptional(ExportJobPullRequestDestinationResult),
2891
+ bitbucket: nullishToOptional(ExportJobPullRequestDestinationResult),
2892
+ sndocs: nullishToOptional(ExportJobDocsDestinationResult)
2866
2893
  });
2867
2894
  var ExportJob = _zod.z.object({
2868
2895
  id: _zod.z.string(),
@@ -4596,7 +4623,7 @@ var DTOPipelineCreateBody = _zod.z.object({
4596
4623
  eventType: PipelineEventType,
4597
4624
  brandPersistentId: _zod.z.string().optional(),
4598
4625
  themePersistentId: _zod.z.string().optional(),
4599
- destination: PipelineDestinationType,
4626
+ destination: PipelineDestinationType.optional(),
4600
4627
  gitQuery: GitObjectsQuery,
4601
4628
  destinations: _zod.z.object({
4602
4629
  s3: ExporterDestinationS3.nullish(),
@@ -5367,7 +5394,9 @@ var DTOExportJob = _zod.z.object({
5367
5394
  destinations: DTOExportJobDestinations,
5368
5395
  exporterId: _zod.z.string(),
5369
5396
  scheduleId: _zod.z.string().optional(),
5370
- result: ExportJobResult.optional()
5397
+ result: ExportJobResult.optional(),
5398
+ brandPersistentId: _zod.z.string().optional(),
5399
+ themePersistentId: _zod.z.string().optional()
5371
5400
  });
5372
5401
  var DTOExportJobResponse = _zod.z.object({
5373
5402
  job: DTOExportJob