@supernova-studio/client 1.56.0 → 1.57.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 +425 -2
- package/dist/index.d.ts +425 -2
- package/dist/index.js +37 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +36 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -259,7 +259,8 @@ var AuthV2Session = z4.object({
|
|
|
259
259
|
id: z4.string(),
|
|
260
260
|
refreshToken: z4.string(),
|
|
261
261
|
expiresAt: z4.coerce.date(),
|
|
262
|
-
createdAt: z4.coerce.date()
|
|
262
|
+
createdAt: z4.coerce.date(),
|
|
263
|
+
userId: z4.string().optional()
|
|
263
264
|
});
|
|
264
265
|
var CardSchema = z5.object({
|
|
265
266
|
cardId: z5.string().nullish(),
|
|
@@ -4753,6 +4754,15 @@ var ForgeProjectArtifact = z150.object({
|
|
|
4753
4754
|
isArchived: z150.boolean().default(false)
|
|
4754
4755
|
});
|
|
4755
4756
|
var ProjectFeatureStatus = z151.enum(["Draft", "ReadyForDevelopment"]);
|
|
4757
|
+
var FeaturePublishedStateVisibility = z151.enum(["Public", "WorkspaceMembers"]);
|
|
4758
|
+
var FeaturePublishedState = z151.object({
|
|
4759
|
+
userId: z151.string().optional(),
|
|
4760
|
+
userName: z151.string().optional(),
|
|
4761
|
+
lastPublishedAt: z151.coerce.date(),
|
|
4762
|
+
iterationId: z151.string().optional(),
|
|
4763
|
+
hideSupernovaUI: z151.boolean(),
|
|
4764
|
+
visibility: FeaturePublishedStateVisibility.default("Public")
|
|
4765
|
+
});
|
|
4756
4766
|
var ProjectFeature = z151.object({
|
|
4757
4767
|
createdAt: z151.coerce.date(),
|
|
4758
4768
|
createdByUserId: z151.string(),
|
|
@@ -4771,7 +4781,8 @@ var ProjectFeature = z151.object({
|
|
|
4771
4781
|
numberOfBookmarkedIterations: z151.number().min(0).default(0),
|
|
4772
4782
|
lastReplyTimestamp: z151.coerce.date().optional(),
|
|
4773
4783
|
threadId: z151.string().optional(),
|
|
4774
|
-
thumbnail: FileReference.optional()
|
|
4784
|
+
thumbnail: FileReference.optional(),
|
|
4785
|
+
publishedState: FeaturePublishedState.optional()
|
|
4775
4786
|
});
|
|
4776
4787
|
var ForgeProjectFigmaNode = z152.object({
|
|
4777
4788
|
id: z152.string().uuid(),
|
|
@@ -10688,7 +10699,19 @@ var DTOForgeProjectArtifactContentResponse = z328.object({
|
|
|
10688
10699
|
|
|
10689
10700
|
// src/api/dto/forge/project-feature.ts
|
|
10690
10701
|
import z329 from "zod";
|
|
10702
|
+
var DTOForgeProjectFeaturePublishedState = FeaturePublishedState;
|
|
10691
10703
|
var DTOForgeProjectFeature = ProjectFeature;
|
|
10704
|
+
var DTOForgeProjectPublishedFeature = z329.object({
|
|
10705
|
+
featureName: z329.string(),
|
|
10706
|
+
iterationName: z329.string(),
|
|
10707
|
+
projectId: z329.string(),
|
|
10708
|
+
hideSupernovaUI: z329.boolean(),
|
|
10709
|
+
thumbnailUrl: z329.string().optional(),
|
|
10710
|
+
staticPreviewUrl: z329.string()
|
|
10711
|
+
});
|
|
10712
|
+
var DTOForgeProjectPublishedFeatureGetResponse = z329.object({
|
|
10713
|
+
publishedFeature: DTOForgeProjectPublishedFeature
|
|
10714
|
+
});
|
|
10692
10715
|
var DTOForgeProjectFeatureListResponse = z329.object({
|
|
10693
10716
|
features: DTOForgeProjectFeature.array()
|
|
10694
10717
|
});
|
|
@@ -10708,7 +10731,11 @@ var DTOForgeProjectFeatureUpdateInput = z329.object({
|
|
|
10708
10731
|
name: z329.string().optional(),
|
|
10709
10732
|
description: z329.string().optional(),
|
|
10710
10733
|
isArchived: z329.boolean().optional(),
|
|
10711
|
-
status: ProjectFeatureStatus.optional()
|
|
10734
|
+
status: ProjectFeatureStatus.optional(),
|
|
10735
|
+
/**
|
|
10736
|
+
* Sending null will result in feature unpublish
|
|
10737
|
+
*/
|
|
10738
|
+
publishedState: DTOForgeProjectFeaturePublishedState.nullish()
|
|
10712
10739
|
});
|
|
10713
10740
|
var DTOForgeProjectFeatureDeleteInput = z329.object({
|
|
10714
10741
|
id: Id
|
|
@@ -12523,12 +12550,13 @@ var ForgeFeatureArtifactsEndpoint = class {
|
|
|
12523
12550
|
constructor(requestExecutor) {
|
|
12524
12551
|
this.requestExecutor = requestExecutor;
|
|
12525
12552
|
}
|
|
12526
|
-
list(workspaceId, projectId, featureId) {
|
|
12553
|
+
list(workspaceId, projectId, featureId, query) {
|
|
12527
12554
|
return this.requestExecutor.json(
|
|
12528
12555
|
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/artifacts`,
|
|
12529
12556
|
DTOFeatureArtifactListResponse,
|
|
12530
12557
|
{
|
|
12531
|
-
method: "GET"
|
|
12558
|
+
method: "GET",
|
|
12559
|
+
query: query ? serializeQuery(query) : void 0
|
|
12532
12560
|
}
|
|
12533
12561
|
);
|
|
12534
12562
|
}
|
|
@@ -20422,6 +20450,7 @@ export {
|
|
|
20422
20450
|
DTOForgeProjectFeatureListResponse,
|
|
20423
20451
|
DTOForgeProjectFeatureMoveInput,
|
|
20424
20452
|
DTOForgeProjectFeaturePreview,
|
|
20453
|
+
DTOForgeProjectFeaturePublishedState,
|
|
20425
20454
|
DTOForgeProjectFeatureUpdateInput,
|
|
20426
20455
|
DTOForgeProjectFigmaNode,
|
|
20427
20456
|
DTOForgeProjectFigmaNodeRenderInput,
|
|
@@ -20453,6 +20482,8 @@ export {
|
|
|
20453
20482
|
DTOForgeProjectMemberUpdated,
|
|
20454
20483
|
DTOForgeProjectMembersCreated,
|
|
20455
20484
|
DTOForgeProjectMembersListResponse,
|
|
20485
|
+
DTOForgeProjectPublishedFeature,
|
|
20486
|
+
DTOForgeProjectPublishedFeatureGetResponse,
|
|
20456
20487
|
DTOForgeProjectResponse,
|
|
20457
20488
|
DTOForgeProjectRole,
|
|
20458
20489
|
DTOForgeProjectRoom,
|