@supernova-studio/client 0.59.18 → 0.59.20
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 +5721 -2117
- package/dist/index.d.ts +5721 -2117
- package/dist/index.js +48 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +49 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/conversion/export/pipeline.ts +1 -1
- package/src/api/dto/elements/documentation/page-actions-v2.ts +17 -0
- package/src/api/dto/elements/documentation/page-v2.ts +11 -2
- package/src/api/dto/elements/elements-action-v2.ts +4 -0
- package/src/api/dto/export/exporter-property.ts +4 -4
- package/src/api/dto/export/job.ts +19 -2
- package/src/api/dto/export/pipeline.ts +2 -2
- package/src/api/payloads/export/pipeline.ts +3 -3
package/dist/index.mjs
CHANGED
|
@@ -483,7 +483,7 @@ var PulsarCustomBlock = z16.object({
|
|
|
483
483
|
var PrimitiveValue = z17.number().or(z17.boolean()).or(z17.string());
|
|
484
484
|
var ArrayValue = z17.array(z17.string());
|
|
485
485
|
var ObjectValue = z17.record(z17.string());
|
|
486
|
-
var
|
|
486
|
+
var ExporterPropertyValue = PrimitiveValue.or(ArrayValue).or(ObjectValue);
|
|
487
487
|
var ExporterPropertyType = z17.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
|
|
488
488
|
var PropertyDefinitionBase = z17.object({
|
|
489
489
|
key: z17.string(),
|
|
@@ -536,7 +536,7 @@ var ExporterPropertyDefinition = z17.discriminatedUnion("type", [
|
|
|
536
536
|
ExporterPropertyDefinitionArray,
|
|
537
537
|
ExporterPropertyDefinitionObject
|
|
538
538
|
]);
|
|
539
|
-
var
|
|
539
|
+
var ExporterPropertyValueMap = z17.record(ExporterPropertyValue);
|
|
540
540
|
var ExporterType = z18.enum(["code", "documentation"]);
|
|
541
541
|
var ExporterSource = z18.enum(["git", "upload"]);
|
|
542
542
|
var ExporterTag = z18.string();
|
|
@@ -4156,7 +4156,7 @@ var ExporterPropertyImageValue = z143.object({
|
|
|
4156
4156
|
assetId: z143.string().optional(),
|
|
4157
4157
|
assetUrl: z143.string().optional()
|
|
4158
4158
|
});
|
|
4159
|
-
var
|
|
4159
|
+
var ExporterConfigurationPropertyValue = z143.object({
|
|
4160
4160
|
key: z143.string(),
|
|
4161
4161
|
value: z143.union([
|
|
4162
4162
|
z143.number(),
|
|
@@ -4171,7 +4171,7 @@ var ExporterPropertyValuesCollection = z143.object({
|
|
|
4171
4171
|
id: z143.string(),
|
|
4172
4172
|
designSystemId: z143.string(),
|
|
4173
4173
|
exporterId: z143.string(),
|
|
4174
|
-
values: z143.array(
|
|
4174
|
+
values: z143.array(ExporterConfigurationPropertyValue)
|
|
4175
4175
|
});
|
|
4176
4176
|
var PublishedDocPageVisitsEntry = z144.object({
|
|
4177
4177
|
id: z144.string(),
|
|
@@ -4350,7 +4350,7 @@ var Pipeline = z149.object({
|
|
|
4350
4350
|
brandPersistentId: z149.string().optional(),
|
|
4351
4351
|
themePersistentId: z149.string().optional(),
|
|
4352
4352
|
themePersistentIds: z149.string().array().optional(),
|
|
4353
|
-
|
|
4353
|
+
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
4354
4354
|
// Destinations
|
|
4355
4355
|
...ExportDestinationsMap.shape
|
|
4356
4356
|
});
|
|
@@ -4420,9 +4420,7 @@ var RestoredDocumentationPage = z152.object({
|
|
|
4420
4420
|
page: DocumentationPageV2,
|
|
4421
4421
|
pageParent: ElementGroup,
|
|
4422
4422
|
pageContent: DocumentationPageContentData,
|
|
4423
|
-
contentHash: z152.string()
|
|
4424
|
-
snapshotId: z152.string(),
|
|
4425
|
-
roomId: z152.string().optional()
|
|
4423
|
+
contentHash: z152.string()
|
|
4426
4424
|
});
|
|
4427
4425
|
var RestoredDocumentationGroup = z152.object({
|
|
4428
4426
|
group: ElementGroup,
|
|
@@ -4661,8 +4659,8 @@ var ExportJobContext = z167.object({
|
|
|
4661
4659
|
});
|
|
4662
4660
|
var ExportJobExporterConfiguration = z167.object({
|
|
4663
4661
|
exporterPackageUrl: z167.string(),
|
|
4664
|
-
exporterPropertyValues:
|
|
4665
|
-
|
|
4662
|
+
exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
|
|
4663
|
+
exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
|
|
4666
4664
|
});
|
|
4667
4665
|
var ExporterFunctionPayload = z168.object({
|
|
4668
4666
|
exportJobId: z168.string(),
|
|
@@ -4727,7 +4725,7 @@ var ExportJob = z169.object({
|
|
|
4727
4725
|
status: ExportJobStatus,
|
|
4728
4726
|
result: ExportJobResult.optional(),
|
|
4729
4727
|
createdByUserId: z169.string().optional(),
|
|
4730
|
-
|
|
4728
|
+
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
4731
4729
|
// Destinations
|
|
4732
4730
|
...ExportDestinationsMap.shape
|
|
4733
4731
|
});
|
|
@@ -5228,7 +5226,7 @@ function pipelineToDto(pipeline) {
|
|
|
5228
5226
|
destinationGithub: pipeline.destinationGithub,
|
|
5229
5227
|
destinationGitlab: pipeline.destinationGitlab,
|
|
5230
5228
|
destinationS3: pipeline.destinationS3,
|
|
5231
|
-
|
|
5229
|
+
exporterPropertyValues: pipeline.exporterPropertyValues,
|
|
5232
5230
|
webhookUrl: pipeline.webhookUrl,
|
|
5233
5231
|
latestJobs: []
|
|
5234
5232
|
};
|
|
@@ -5873,7 +5871,7 @@ import { z as z204 } from "zod";
|
|
|
5873
5871
|
var PrimitiveValue2 = z204.number().or(z204.boolean()).or(z204.string());
|
|
5874
5872
|
var ArrayValue2 = z204.array(z204.string());
|
|
5875
5873
|
var ObjectValue2 = z204.record(z204.string());
|
|
5876
|
-
var
|
|
5874
|
+
var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
5877
5875
|
var DTOExporterPropertyType = z204.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
|
|
5878
5876
|
var PropertyDefinitionBase2 = z204.object({
|
|
5879
5877
|
key: z204.string(),
|
|
@@ -5929,7 +5927,7 @@ var DTOExporterPropertyDefinition = z204.discriminatedUnion("type", [
|
|
|
5929
5927
|
var DTOExporterPropertyDefinitionsResponse = z204.object({
|
|
5930
5928
|
properties: DTOExporterPropertyDefinition.array()
|
|
5931
5929
|
});
|
|
5932
|
-
var
|
|
5930
|
+
var DTOExporterPropertyValueMap = z204.record(DTOExporterPropertyValue);
|
|
5933
5931
|
|
|
5934
5932
|
// src/api/payloads/export/pipeline.ts
|
|
5935
5933
|
var DTOPipelineCreateBody = z205.object({
|
|
@@ -5941,7 +5939,7 @@ var DTOPipelineCreateBody = z205.object({
|
|
|
5941
5939
|
brandPersistentId: z205.string().optional(),
|
|
5942
5940
|
themePersistentId: z205.string().optional(),
|
|
5943
5941
|
themePersistentIds: z205.string().array().optional(),
|
|
5944
|
-
|
|
5942
|
+
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
5945
5943
|
destination: PipelineDestinationType.optional(),
|
|
5946
5944
|
gitQuery: GitObjectsQuery,
|
|
5947
5945
|
destinations: z205.object({
|
|
@@ -5962,7 +5960,7 @@ var DTOPipelineUpdateBody = z205.object({
|
|
|
5962
5960
|
brandPersistentId: z205.string().optional(),
|
|
5963
5961
|
themePersistentId: z205.string().optional(),
|
|
5964
5962
|
themePersistentIds: z205.string().array().optional(),
|
|
5965
|
-
|
|
5963
|
+
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
5966
5964
|
destination: PipelineDestinationType.optional(),
|
|
5967
5965
|
gitQuery: GitObjectsQuery.optional(),
|
|
5968
5966
|
destinations: z205.object({
|
|
@@ -6472,12 +6470,18 @@ var DTOCreateDocumentationPageInputV2 = z227.object({
|
|
|
6472
6470
|
afterPersistentId: z227.string().nullish()
|
|
6473
6471
|
});
|
|
6474
6472
|
var DTOUpdateDocumentationPageInputV2 = z227.object({
|
|
6475
|
-
// Identifier of the
|
|
6473
|
+
// Identifier of the page to update
|
|
6476
6474
|
id: z227.string(),
|
|
6477
6475
|
// Page properties
|
|
6478
6476
|
title: z227.string().optional(),
|
|
6479
6477
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6480
6478
|
});
|
|
6479
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = z227.object({
|
|
6480
|
+
// Identifier of the page to update
|
|
6481
|
+
id: z227.string(),
|
|
6482
|
+
// Page properties
|
|
6483
|
+
documentItems: z227.array(DocumentationPageContentItem)
|
|
6484
|
+
});
|
|
6481
6485
|
var DTOMoveDocumentationPageInputV2 = z227.object({
|
|
6482
6486
|
// Identifier of the group to update
|
|
6483
6487
|
id: z227.string(),
|
|
@@ -6633,7 +6637,7 @@ var DTOExportJob = z231.object({
|
|
|
6633
6637
|
brandPersistentId: z231.string().optional(),
|
|
6634
6638
|
themePersistentId: z231.string().optional(),
|
|
6635
6639
|
themePersistentIds: z231.string().array().optional(),
|
|
6636
|
-
|
|
6640
|
+
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
6637
6641
|
});
|
|
6638
6642
|
var DTOExportJobResponse = z231.object({
|
|
6639
6643
|
job: DTOExportJob
|
|
@@ -6644,6 +6648,16 @@ var DTOExportJobResponseLegacy = z231.object({
|
|
|
6644
6648
|
status: ExportJobStatus
|
|
6645
6649
|
})
|
|
6646
6650
|
});
|
|
6651
|
+
var DTOExportJobCreateInput = z231.object({
|
|
6652
|
+
designSystemId: z231.string(),
|
|
6653
|
+
designSystemVersionId: z231.string(),
|
|
6654
|
+
exporterId: z231.string(),
|
|
6655
|
+
brandId: z231.string().optional(),
|
|
6656
|
+
themeId: z231.string().optional(),
|
|
6657
|
+
themePersistentIds: z231.string().array().optional(),
|
|
6658
|
+
destinations: DTOExportJobDestinations,
|
|
6659
|
+
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
6660
|
+
});
|
|
6647
6661
|
|
|
6648
6662
|
// src/api/dto/export/pipeline.ts
|
|
6649
6663
|
import { z as z232 } from "zod";
|
|
@@ -6663,7 +6677,7 @@ var DTOPipeline = z232.object({
|
|
|
6663
6677
|
brandPersistentId: z232.string().optional(),
|
|
6664
6678
|
themePersistentId: z232.string().optional(),
|
|
6665
6679
|
themePersistentIds: z232.string().array().optional(),
|
|
6666
|
-
|
|
6680
|
+
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6667
6681
|
...ExportDestinationsMap.shape,
|
|
6668
6682
|
latestJobs: DTOExportJob.array()
|
|
6669
6683
|
});
|
|
@@ -6954,6 +6968,10 @@ var DTODocumentationPageUpdateActionOutputV2 = z242.object({
|
|
|
6954
6968
|
type: z242.literal("DocumentationPageUpdate"),
|
|
6955
6969
|
output: SuccessPayload2
|
|
6956
6970
|
});
|
|
6971
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z242.object({
|
|
6972
|
+
type: z242.literal("DocumentationPageUpdateDocument"),
|
|
6973
|
+
output: SuccessPayload2
|
|
6974
|
+
});
|
|
6957
6975
|
var DTODocumentationPageMoveActionOutputV2 = z242.object({
|
|
6958
6976
|
type: z242.literal("DocumentationPageMove"),
|
|
6959
6977
|
output: SuccessPayload2
|
|
@@ -6986,6 +7004,10 @@ var DTODocumentationPageUpdateActionInputV2 = z242.object({
|
|
|
6986
7004
|
type: z242.literal("DocumentationPageUpdate"),
|
|
6987
7005
|
input: DTOUpdateDocumentationPageInputV2
|
|
6988
7006
|
});
|
|
7007
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z242.object({
|
|
7008
|
+
type: z242.literal("DocumentationPageUpdateDocument"),
|
|
7009
|
+
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
7010
|
+
});
|
|
6989
7011
|
var DTODocumentationPageMoveActionInputV2 = z242.object({
|
|
6990
7012
|
type: z242.literal("DocumentationPageMove"),
|
|
6991
7013
|
input: DTOMoveDocumentationPageInputV2
|
|
@@ -7264,6 +7286,7 @@ var DTOElementActionOutput = z253.discriminatedUnion("type", [
|
|
|
7264
7286
|
// Documentation pages
|
|
7265
7287
|
DTODocumentationPageCreateActionOutputV2,
|
|
7266
7288
|
DTODocumentationPageUpdateActionOutputV2,
|
|
7289
|
+
DTODocumentationPageUpdateDocumentActionOutputV2,
|
|
7267
7290
|
DTODocumentationPageMoveActionOutputV2,
|
|
7268
7291
|
DTODocumentationPageDuplicateActionOutputV2,
|
|
7269
7292
|
DTODocumentationPageDeleteActionOutputV2,
|
|
@@ -7288,6 +7311,7 @@ var DTOElementActionInput = z253.discriminatedUnion("type", [
|
|
|
7288
7311
|
// Documentation pages
|
|
7289
7312
|
DTODocumentationPageCreateActionInputV2,
|
|
7290
7313
|
DTODocumentationPageUpdateActionInputV2,
|
|
7314
|
+
DTODocumentationPageUpdateDocumentActionInputV2,
|
|
7291
7315
|
DTODocumentationPageMoveActionInputV2,
|
|
7292
7316
|
DTODocumentationPageDuplicateActionInputV2,
|
|
7293
7317
|
DTODocumentationPageDeleteActionInputV2,
|
|
@@ -13581,6 +13605,8 @@ export {
|
|
|
13581
13605
|
DTODocumentationPageSnapshot,
|
|
13582
13606
|
DTODocumentationPageUpdateActionInputV2,
|
|
13583
13607
|
DTODocumentationPageUpdateActionOutputV2,
|
|
13608
|
+
DTODocumentationPageUpdateDocumentActionInputV2,
|
|
13609
|
+
DTODocumentationPageUpdateDocumentActionOutputV2,
|
|
13584
13610
|
DTODocumentationPageV2,
|
|
13585
13611
|
DTODocumentationPublishMetadata,
|
|
13586
13612
|
DTODocumentationPublishTypeQueryParams,
|
|
@@ -13623,6 +13649,7 @@ export {
|
|
|
13623
13649
|
DTOEventDataSourcesImported,
|
|
13624
13650
|
DTOEventFigmaNodesRendered,
|
|
13625
13651
|
DTOExportJob,
|
|
13652
|
+
DTOExportJobCreateInput,
|
|
13626
13653
|
DTOExportJobCreatedBy,
|
|
13627
13654
|
DTOExportJobDesignSystemPreview,
|
|
13628
13655
|
DTOExportJobDesignSystemVersionPreview,
|
|
@@ -13646,10 +13673,10 @@ export {
|
|
|
13646
13673
|
DTOExporterPropertyDefinitionNumber,
|
|
13647
13674
|
DTOExporterPropertyDefinitionObject,
|
|
13648
13675
|
DTOExporterPropertyDefinitionString,
|
|
13649
|
-
DTOExporterPropertyDefinitionValue,
|
|
13650
|
-
DTOExporterPropertyDefinitionValueMap,
|
|
13651
13676
|
DTOExporterPropertyDefinitionsResponse,
|
|
13652
13677
|
DTOExporterPropertyType,
|
|
13678
|
+
DTOExporterPropertyValue,
|
|
13679
|
+
DTOExporterPropertyValueMap,
|
|
13653
13680
|
DTOExporterResponse,
|
|
13654
13681
|
DTOExporterSource,
|
|
13655
13682
|
DTOExporterType,
|
|
@@ -13732,6 +13759,7 @@ export {
|
|
|
13732
13759
|
DTOTokenCollectionsListReponse,
|
|
13733
13760
|
DTOTransferOwnershipPayload,
|
|
13734
13761
|
DTOUpdateDocumentationGroupInput,
|
|
13762
|
+
DTOUpdateDocumentationPageDocumentInputV2,
|
|
13735
13763
|
DTOUpdateDocumentationPageInputV2,
|
|
13736
13764
|
DTOUpdateUserNotificationSettingsPayload,
|
|
13737
13765
|
DTOUpdateVersionInput,
|