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