@supernova-studio/client 0.58.26 → 0.58.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
@@ -46,6 +46,7 @@ var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
46
46
 
47
47
 
48
48
 
49
+
49
50
 
50
51
 
51
52
  var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequireDefault(_slugify);
@@ -477,6 +478,57 @@ var PulsarCustomBlock = _zod.z.object({
477
478
  mode: nullishToOptional(_zod.z.enum(["array", "block"])),
478
479
  properties: nullishToOptional(_zod.z.array(PulsarBaseProperty)).transform((v) => _nullishCoalesce(v, () => ( [])))
479
480
  });
481
+ var PrimitiveValue = _zod.z.number().or(_zod.z.boolean()).or(_zod.z.string());
482
+ var ArrayValue = _zod.z.array(_zod.z.string());
483
+ var ObjectValue = _zod.z.record(_zod.z.string());
484
+ var ExporterPropertyDefinitionValue = PrimitiveValue.or(ArrayValue).or(ObjectValue);
485
+ var ExporterPropertyType = _zod.z.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
486
+ var PropertyDefinitionBase = _zod.z.object({
487
+ key: _zod.z.string(),
488
+ title: _zod.z.string(),
489
+ description: _zod.z.string()
490
+ });
491
+ var ExporterPropertyDefinitionEnum = PropertyDefinitionBase.extend({
492
+ type: _zod.z.literal(ExporterPropertyType.Enum.Enum),
493
+ options: _zod.z.string().array(),
494
+ default: _zod.z.string()
495
+ });
496
+ var ExporterPropertyDefinitionBoolean = PropertyDefinitionBase.extend({
497
+ type: _zod.z.literal(ExporterPropertyType.Enum.Boolean),
498
+ default: _zod.z.boolean()
499
+ });
500
+ var ExporterPropertyDefinitionString = PropertyDefinitionBase.extend({
501
+ type: _zod.z.literal(ExporterPropertyType.Enum.String),
502
+ default: _zod.z.string()
503
+ });
504
+ var ExporterPropertyDefinitionNumber = PropertyDefinitionBase.extend({
505
+ type: _zod.z.literal(ExporterPropertyType.Enum.Number),
506
+ default: _zod.z.number()
507
+ });
508
+ var ExporterPropertyDefinitionArray = PropertyDefinitionBase.extend({
509
+ type: _zod.z.literal(ExporterPropertyType.Enum.Array),
510
+ default: ArrayValue
511
+ });
512
+ var ExporterPropertyDefinitionObject = PropertyDefinitionBase.extend({
513
+ type: _zod.z.literal(ExporterPropertyType.Enum.Object),
514
+ default: ObjectValue,
515
+ allowedKeys: _zod.z.object({
516
+ options: _zod.z.string().array(),
517
+ type: _zod.z.string()
518
+ }).optional(),
519
+ allowedValues: _zod.z.object({
520
+ type: _zod.z.string()
521
+ }).optional()
522
+ });
523
+ var ExporterPropertyDefinition = _zod.z.discriminatedUnion("type", [
524
+ ExporterPropertyDefinitionEnum,
525
+ ExporterPropertyDefinitionBoolean,
526
+ ExporterPropertyDefinitionString,
527
+ ExporterPropertyDefinitionNumber,
528
+ ExporterPropertyDefinitionArray,
529
+ ExporterPropertyDefinitionObject
530
+ ]);
531
+ var ExporterPropertyDefinitionValueMap = _zod.z.record(ExporterPropertyDefinitionValue);
480
532
  var ExporterType = _zod.z.enum(["code", "documentation"]);
481
533
  var ExporterSource = _zod.z.enum(["git", "upload"]);
482
534
  var ExporterTag = _zod.z.string();
@@ -494,6 +546,7 @@ var ExporterPulsarDetails = _zod.z.object({
494
546
  configurationProperties: nullishToOptional(_zod.z.array(PulsarContributionConfigurationProperty)).default([]),
495
547
  customBlocks: nullishToOptional(_zod.z.array(PulsarCustomBlock)).default([]),
496
548
  blockVariants: nullishToOptional(_zod.z.record(_zod.z.string(), _zod.z.array(PulsarContributionVariant))).default({}),
549
+ properties: nullishToOptional(ExporterPropertyDefinition.array()),
497
550
  usesBrands: nullishToOptional(_zod.z.boolean()).default(false),
498
551
  usesThemes: nullishToOptional(_zod.z.boolean()).default(false),
499
552
  usesLocale: nullishToOptional(_zod.z.boolean()).default(false)
@@ -512,7 +565,8 @@ var Exporter = _zod.z.object({
512
565
  isPrivate: _zod.z.boolean(),
513
566
  details: ExporterDetails,
514
567
  exporterType: nullishToOptional(ExporterType).default("code"),
515
- storagePath: nullishToOptional(_zod.z.string()).default("")
568
+ storagePath: nullishToOptional(_zod.z.string()).default(""),
569
+ properties: nullishToOptional(ExporterPropertyDefinition.array())
516
570
  });
517
571
  var AssetDynamoRecord = _zod.z.object({
518
572
  path: _zod.z.string(),
@@ -4238,6 +4292,7 @@ var Pipeline = _zod.z.object({
4238
4292
  brandPersistentId: _zod.z.string().optional(),
4239
4293
  themePersistentId: _zod.z.string().optional(),
4240
4294
  themePersistentIds: _zod.z.string().array().optional(),
4295
+ exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional(),
4241
4296
  // Destinations
4242
4297
  ...ExportDestinationsMap.shape
4243
4298
  });
@@ -4546,7 +4601,8 @@ var ExportJobContext = _zod.z.object({
4546
4601
  });
4547
4602
  var ExportJobExporterConfiguration = _zod.z.object({
4548
4603
  exporterPackageUrl: _zod.z.string(),
4549
- exporterPropertyValues: ExporterPropertyValue.array()
4604
+ exporterPropertyValues: ExporterPropertyValue.array(),
4605
+ exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional()
4550
4606
  });
4551
4607
  var ExporterFunctionPayload = _zod.z.object({
4552
4608
  exportJobId: _zod.z.string(),
@@ -4611,6 +4667,7 @@ var ExportJob = _zod.z.object({
4611
4667
  status: ExportJobStatus,
4612
4668
  result: ExportJobResult.optional(),
4613
4669
  createdByUserId: _zod.z.string().optional(),
4670
+ exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional(),
4614
4671
  // Destinations
4615
4672
  ...ExportDestinationsMap.shape
4616
4673
  });
@@ -5718,45 +5775,46 @@ var DTODocumentationPublishTypeQueryParams = _zod.z.object({
5718
5775
 
5719
5776
  // src/api/dto/export/exporter-property.ts
5720
5777
 
5721
- var PrimitiveValue = _zod.z.number().or(_zod.z.boolean()).or(_zod.z.string());
5722
- var ArrayValue = _zod.z.array(_zod.z.string());
5723
- var ObjectValue = _zod.z.record(_zod.z.string());
5724
- var DTOExporterPropertyDefinitionValue = PrimitiveValue.or(ArrayValue).or(ObjectValue);
5778
+ var PrimitiveValue2 = _zod.z.number().or(_zod.z.boolean()).or(_zod.z.string());
5779
+ var ArrayValue2 = _zod.z.array(_zod.z.string());
5780
+ var ObjectValue2 = _zod.z.record(_zod.z.string());
5781
+ var DTOExporterPropertyDefinitionValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
5725
5782
  var DTOExporterPropertyType = _zod.z.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
5726
- var PropertyDefinitionBase = _zod.z.object({
5783
+ var PropertyDefinitionBase2 = _zod.z.object({
5727
5784
  key: _zod.z.string(),
5728
5785
  title: _zod.z.string(),
5729
5786
  description: _zod.z.string()
5730
5787
  });
5731
- var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase.extend({
5788
+ var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
5732
5789
  type: _zod.z.literal(DTOExporterPropertyType.Enum.Enum),
5733
5790
  options: _zod.z.string().array(),
5734
5791
  default: _zod.z.string()
5735
5792
  });
5736
- var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase.extend({
5793
+ var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
5737
5794
  type: _zod.z.literal(DTOExporterPropertyType.Enum.Boolean),
5738
5795
  default: _zod.z.boolean()
5739
5796
  });
5740
- var DTOExporterPropertyDefinitionString = PropertyDefinitionBase.extend({
5797
+ var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
5741
5798
  type: _zod.z.literal(DTOExporterPropertyType.Enum.String),
5742
5799
  default: _zod.z.string()
5743
5800
  });
5744
- var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase.extend({
5801
+ var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
5745
5802
  type: _zod.z.literal(DTOExporterPropertyType.Enum.Number),
5746
5803
  default: _zod.z.number()
5747
5804
  });
5748
- var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase.extend({
5805
+ var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
5749
5806
  type: _zod.z.literal(DTOExporterPropertyType.Enum.Array),
5750
- default: ArrayValue
5807
+ default: ArrayValue2
5751
5808
  });
5752
- var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase.extend({
5809
+ var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
5753
5810
  type: _zod.z.literal(DTOExporterPropertyType.Enum.Object),
5754
- default: ObjectValue,
5811
+ default: ObjectValue2,
5755
5812
  allowedKeys: _zod.z.object({
5756
- options: _zod.z.string().array()
5813
+ options: _zod.z.string().array(),
5814
+ type: _zod.z.string()
5757
5815
  }).optional(),
5758
5816
  allowedValues: _zod.z.object({
5759
- options: _zod.z.string().array()
5817
+ type: _zod.z.string()
5760
5818
  }).optional()
5761
5819
  });
5762
5820
  var DTOExporterPropertyDefinition = _zod.z.discriminatedUnion("type", [
@@ -5782,7 +5840,7 @@ var DTOPipelineCreateBody = _zod.z.object({
5782
5840
  brandPersistentId: _zod.z.string().optional(),
5783
5841
  themePersistentId: _zod.z.string().optional(),
5784
5842
  themePersistentIds: _zod.z.string().array().optional(),
5785
- exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional(),
5843
+ exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
5786
5844
  destination: PipelineDestinationType.optional(),
5787
5845
  gitQuery: GitObjectsQuery,
5788
5846
  destinations: _zod.z.object({
@@ -6456,7 +6514,7 @@ var DTOExportJob = _zod.z.object({
6456
6514
  brandPersistentId: _zod.z.string().optional(),
6457
6515
  themePersistentId: _zod.z.string().optional(),
6458
6516
  themePersistentIds: _zod.z.string().array().optional(),
6459
- exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional()
6517
+ exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional()
6460
6518
  });
6461
6519
  var DTOExportJobResponse = _zod.z.object({
6462
6520
  job: DTOExportJob
@@ -6486,7 +6544,7 @@ var DTOPipeline = _zod.z.object({
6486
6544
  brandPersistentId: _zod.z.string().optional(),
6487
6545
  themePersistentId: _zod.z.string().optional(),
6488
6546
  themePersistentIds: _zod.z.string().array().optional(),
6489
- exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional(),
6547
+ exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
6490
6548
  ...ExportDestinationsMap.shape,
6491
6549
  latestJobs: DTOExportJob.array()
6492
6550
  });