@supernova-studio/client 0.58.26 → 0.59.0
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 +161 -102
- package/dist/index.d.ts +161 -102
- package/dist/index.js +82 -22
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2934 -2874
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/export/exporter-property.ts +4 -1
- 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,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(),
|
|
@@ -3258,7 +3312,8 @@ var FigmaImportBaseContext = _zod.z.object({
|
|
|
3258
3312
|
var FeatureFlagsKeepAliases = _zod.z.object({
|
|
3259
3313
|
isTypographyPropsKeepAliasesEnabled: _zod.z.boolean().default(false),
|
|
3260
3314
|
isGradientPropsKeepAliasesEnabled: _zod.z.boolean().default(false),
|
|
3261
|
-
isShadowPropsKeepAliasesEnabled: _zod.z.boolean().default(false)
|
|
3315
|
+
isShadowPropsKeepAliasesEnabled: _zod.z.boolean().default(false),
|
|
3316
|
+
isNonCompatibleTypeChangesEnabled: _zod.z.boolean().default(false)
|
|
3262
3317
|
});
|
|
3263
3318
|
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
3264
3319
|
sourcesWithMissingAccess: _zod.z.array(_zod.z.string()).default([]),
|
|
@@ -4238,6 +4293,7 @@ var Pipeline = _zod.z.object({
|
|
|
4238
4293
|
brandPersistentId: _zod.z.string().optional(),
|
|
4239
4294
|
themePersistentId: _zod.z.string().optional(),
|
|
4240
4295
|
themePersistentIds: _zod.z.string().array().optional(),
|
|
4296
|
+
exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional(),
|
|
4241
4297
|
// Destinations
|
|
4242
4298
|
...ExportDestinationsMap.shape
|
|
4243
4299
|
});
|
|
@@ -4546,7 +4602,8 @@ var ExportJobContext = _zod.z.object({
|
|
|
4546
4602
|
});
|
|
4547
4603
|
var ExportJobExporterConfiguration = _zod.z.object({
|
|
4548
4604
|
exporterPackageUrl: _zod.z.string(),
|
|
4549
|
-
exporterPropertyValues: ExporterPropertyValue.array()
|
|
4605
|
+
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
4606
|
+
exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional()
|
|
4550
4607
|
});
|
|
4551
4608
|
var ExporterFunctionPayload = _zod.z.object({
|
|
4552
4609
|
exportJobId: _zod.z.string(),
|
|
@@ -4611,6 +4668,7 @@ var ExportJob = _zod.z.object({
|
|
|
4611
4668
|
status: ExportJobStatus,
|
|
4612
4669
|
result: ExportJobResult.optional(),
|
|
4613
4670
|
createdByUserId: _zod.z.string().optional(),
|
|
4671
|
+
exporterConfigurationProperties: ExporterPropertyDefinitionValueMap.optional(),
|
|
4614
4672
|
// Destinations
|
|
4615
4673
|
...ExportDestinationsMap.shape
|
|
4616
4674
|
});
|
|
@@ -4641,7 +4699,8 @@ var FlaggedFeature = _zod.z.enum([
|
|
|
4641
4699
|
"VariablesOrder",
|
|
4642
4700
|
"TypographyPropsKeepAliases",
|
|
4643
4701
|
"GradientPropsKeepAliases",
|
|
4644
|
-
"ShadowPropsKeepAliases"
|
|
4702
|
+
"ShadowPropsKeepAliases",
|
|
4703
|
+
"NonCompatibleTypeChanges"
|
|
4645
4704
|
]);
|
|
4646
4705
|
var FeatureFlagMap = _zod.z.record(FlaggedFeature, _zod.z.boolean());
|
|
4647
4706
|
var FeatureFlag = _zod.z.object({
|
|
@@ -5718,45 +5777,46 @@ var DTODocumentationPublishTypeQueryParams = _zod.z.object({
|
|
|
5718
5777
|
|
|
5719
5778
|
// src/api/dto/export/exporter-property.ts
|
|
5720
5779
|
|
|
5721
|
-
var
|
|
5722
|
-
var
|
|
5723
|
-
var
|
|
5724
|
-
var DTOExporterPropertyDefinitionValue =
|
|
5780
|
+
var PrimitiveValue2 = _zod.z.number().or(_zod.z.boolean()).or(_zod.z.string());
|
|
5781
|
+
var ArrayValue2 = _zod.z.array(_zod.z.string());
|
|
5782
|
+
var ObjectValue2 = _zod.z.record(_zod.z.string());
|
|
5783
|
+
var DTOExporterPropertyDefinitionValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
5725
5784
|
var DTOExporterPropertyType = _zod.z.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
|
|
5726
|
-
var
|
|
5785
|
+
var PropertyDefinitionBase2 = _zod.z.object({
|
|
5727
5786
|
key: _zod.z.string(),
|
|
5728
5787
|
title: _zod.z.string(),
|
|
5729
5788
|
description: _zod.z.string()
|
|
5730
5789
|
});
|
|
5731
|
-
var DTOExporterPropertyDefinitionEnum =
|
|
5790
|
+
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
5732
5791
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.Enum),
|
|
5733
5792
|
options: _zod.z.string().array(),
|
|
5734
5793
|
default: _zod.z.string()
|
|
5735
5794
|
});
|
|
5736
|
-
var DTOExporterPropertyDefinitionBoolean =
|
|
5795
|
+
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
5737
5796
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
5738
5797
|
default: _zod.z.boolean()
|
|
5739
5798
|
});
|
|
5740
|
-
var DTOExporterPropertyDefinitionString =
|
|
5799
|
+
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
5741
5800
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.String),
|
|
5742
5801
|
default: _zod.z.string()
|
|
5743
5802
|
});
|
|
5744
|
-
var DTOExporterPropertyDefinitionNumber =
|
|
5803
|
+
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
5745
5804
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.Number),
|
|
5746
5805
|
default: _zod.z.number()
|
|
5747
5806
|
});
|
|
5748
|
-
var DTOExporterPropertyDefinitionArray =
|
|
5807
|
+
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
5749
5808
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.Array),
|
|
5750
|
-
default:
|
|
5809
|
+
default: ArrayValue2
|
|
5751
5810
|
});
|
|
5752
|
-
var DTOExporterPropertyDefinitionObject =
|
|
5811
|
+
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
5753
5812
|
type: _zod.z.literal(DTOExporterPropertyType.Enum.Object),
|
|
5754
|
-
default:
|
|
5813
|
+
default: ObjectValue2,
|
|
5755
5814
|
allowedKeys: _zod.z.object({
|
|
5756
|
-
options: _zod.z.string().array()
|
|
5815
|
+
options: _zod.z.string().array(),
|
|
5816
|
+
type: _zod.z.string()
|
|
5757
5817
|
}).optional(),
|
|
5758
5818
|
allowedValues: _zod.z.object({
|
|
5759
|
-
|
|
5819
|
+
type: _zod.z.string()
|
|
5760
5820
|
}).optional()
|
|
5761
5821
|
});
|
|
5762
5822
|
var DTOExporterPropertyDefinition = _zod.z.discriminatedUnion("type", [
|
|
@@ -5782,7 +5842,7 @@ var DTOPipelineCreateBody = _zod.z.object({
|
|
|
5782
5842
|
brandPersistentId: _zod.z.string().optional(),
|
|
5783
5843
|
themePersistentId: _zod.z.string().optional(),
|
|
5784
5844
|
themePersistentIds: _zod.z.string().array().optional(),
|
|
5785
|
-
|
|
5845
|
+
exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
|
|
5786
5846
|
destination: PipelineDestinationType.optional(),
|
|
5787
5847
|
gitQuery: GitObjectsQuery,
|
|
5788
5848
|
destinations: _zod.z.object({
|
|
@@ -6456,7 +6516,7 @@ var DTOExportJob = _zod.z.object({
|
|
|
6456
6516
|
brandPersistentId: _zod.z.string().optional(),
|
|
6457
6517
|
themePersistentId: _zod.z.string().optional(),
|
|
6458
6518
|
themePersistentIds: _zod.z.string().array().optional(),
|
|
6459
|
-
|
|
6519
|
+
exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional()
|
|
6460
6520
|
});
|
|
6461
6521
|
var DTOExportJobResponse = _zod.z.object({
|
|
6462
6522
|
job: DTOExportJob
|
|
@@ -6486,7 +6546,7 @@ var DTOPipeline = _zod.z.object({
|
|
|
6486
6546
|
brandPersistentId: _zod.z.string().optional(),
|
|
6487
6547
|
themePersistentId: _zod.z.string().optional(),
|
|
6488
6548
|
themePersistentIds: _zod.z.string().array().optional(),
|
|
6489
|
-
|
|
6549
|
+
exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
|
|
6490
6550
|
...ExportDestinationsMap.shape,
|
|
6491
6551
|
latestJobs: DTOExportJob.array()
|
|
6492
6552
|
});
|