@supernova-studio/client 1.46.6 → 1.47.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 +79 -36
- package/dist/index.d.ts +79 -36
- package/dist/index.js +22 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +39 -33
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5181,17 +5181,6 @@ var ForgeProjectArtifactContent = _zod.z.object({
|
|
|
5181
5181
|
updatedAt: _zod.z.coerce.date(),
|
|
5182
5182
|
data: ForgeProjectArtifactContentData
|
|
5183
5183
|
});
|
|
5184
|
-
var ForgeProjectSectionChildType = _zod.z.enum(["Artifact", "Feature"]);
|
|
5185
|
-
var SortOrder = _zod.z.number().int();
|
|
5186
|
-
var ForgeSection = _zod.z.object({
|
|
5187
|
-
id: Id,
|
|
5188
|
-
projectId: _zod.z.string(),
|
|
5189
|
-
name: _zod.z.string(),
|
|
5190
|
-
sortOrder: SortOrder.default(0),
|
|
5191
|
-
createdAt: _zod.z.coerce.date(),
|
|
5192
|
-
updatedAt: _zod.z.coerce.date(),
|
|
5193
|
-
childType: ForgeProjectSectionChildType
|
|
5194
|
-
});
|
|
5195
5184
|
var FileFigmaRenderMode = _zod2.default.enum(["Image", "HTML", "JSON"]);
|
|
5196
5185
|
var FileSourceUpload = _zod2.default.object({
|
|
5197
5186
|
type: _zod2.default.literal("UserUpload"),
|
|
@@ -5223,6 +5212,17 @@ var FileReference = File.pick({
|
|
|
5223
5212
|
}).extend({
|
|
5224
5213
|
name: File.shape.name.optional()
|
|
5225
5214
|
});
|
|
5215
|
+
var ForgeProjectSectionChildType = _zod.z.enum(["Artifact", "Feature"]);
|
|
5216
|
+
var SortOrder = _zod.z.number().int();
|
|
5217
|
+
var ForgeSection = _zod.z.object({
|
|
5218
|
+
id: Id,
|
|
5219
|
+
projectId: _zod.z.string(),
|
|
5220
|
+
name: _zod.z.string(),
|
|
5221
|
+
sortOrder: SortOrder.default(0),
|
|
5222
|
+
createdAt: _zod.z.coerce.date(),
|
|
5223
|
+
updatedAt: _zod.z.coerce.date(),
|
|
5224
|
+
childType: ForgeProjectSectionChildType
|
|
5225
|
+
});
|
|
5226
5226
|
var ForgeProjectArtifact = _zod.z.object({
|
|
5227
5227
|
id: Id,
|
|
5228
5228
|
projectId: _zod.z.string(),
|
|
@@ -5235,7 +5235,10 @@ var ForgeProjectArtifact = _zod.z.object({
|
|
|
5235
5235
|
createdByUserId: _zod.z.string(),
|
|
5236
5236
|
sectionId: Id.optional(),
|
|
5237
5237
|
threadId: _zod.z.string().optional(),
|
|
5238
|
-
thumbnail: FileReference.optional()
|
|
5238
|
+
thumbnail: FileReference.optional(),
|
|
5239
|
+
// Default value here is important for backward compatibility for parsing artifacts
|
|
5240
|
+
// from project rooms!
|
|
5241
|
+
isArchived: _zod.z.boolean().default(false)
|
|
5239
5242
|
});
|
|
5240
5243
|
var ProjectFeatureStatus = _zod.z.enum(["Draft", "ReadyForDevelopment"]);
|
|
5241
5244
|
var ProjectFeature = _zod.z.object({
|
|
@@ -5243,7 +5246,7 @@ var ProjectFeature = _zod.z.object({
|
|
|
5243
5246
|
createdByUserId: _zod.z.string(),
|
|
5244
5247
|
description: _zod.z.string(),
|
|
5245
5248
|
id: Id,
|
|
5246
|
-
isArchived: _zod.z.boolean()
|
|
5249
|
+
isArchived: _zod.z.boolean(),
|
|
5247
5250
|
name: _zod.z.string(),
|
|
5248
5251
|
projectId: _zod.z.string(),
|
|
5249
5252
|
sectionId: Id.optional(),
|
|
@@ -9932,7 +9935,8 @@ var DTOForgeSectionItemMoveInput = _zod2.default.object({
|
|
|
9932
9935
|
var DTOForgeProjectArtifact = ForgeProjectArtifact;
|
|
9933
9936
|
var DTOForgeProjectArtifactUpdateInput = _zod.z.object({
|
|
9934
9937
|
id: _zod.z.string(),
|
|
9935
|
-
title: _zod.z.string().optional()
|
|
9938
|
+
title: _zod.z.string().optional(),
|
|
9939
|
+
isArchived: _zod.z.boolean().optional()
|
|
9936
9940
|
});
|
|
9937
9941
|
var DTOForgeProjectArtifactCreateInput = _zod.z.object({
|
|
9938
9942
|
id: _zod.z.string(),
|
|
@@ -10442,7 +10446,7 @@ var DTOForgeProject = _zod.z.object({
|
|
|
10442
10446
|
tags: _zod.z.array(_zod.z.string()).default([]),
|
|
10443
10447
|
accessMode: DTOForgeProjectAccessMode,
|
|
10444
10448
|
defaultRole: DTOForgeProjectDefaultRole.default("Viewer"),
|
|
10445
|
-
isArchived: _zod.z.boolean()
|
|
10449
|
+
isArchived: _zod.z.boolean(),
|
|
10446
10450
|
emoji: _zod.z.string().optional(),
|
|
10447
10451
|
createdAt: _zod.z.coerce.date(),
|
|
10448
10452
|
createdByUserId: _zod.z.string().optional(),
|
|
@@ -18929,7 +18933,8 @@ var LocalProjectActionExecutor = class {
|
|
|
18929
18933
|
title: input.title,
|
|
18930
18934
|
updatedAt: /* @__PURE__ */ new Date(),
|
|
18931
18935
|
createdAt: /* @__PURE__ */ new Date(),
|
|
18932
|
-
createdByUserId: this.userId
|
|
18936
|
+
createdByUserId: this.userId,
|
|
18937
|
+
isArchived: false
|
|
18933
18938
|
});
|
|
18934
18939
|
}
|
|
18935
18940
|
//
|
|
@@ -18945,6 +18950,7 @@ var LocalProjectActionExecutor = class {
|
|
|
18945
18950
|
const mergedArtifact = {
|
|
18946
18951
|
...existingArtifact,
|
|
18947
18952
|
title: _nullishCoalesce(input.title, () => ( existingArtifact.title)),
|
|
18953
|
+
isArchived: _nullishCoalesce(input.isArchived, () => ( existingArtifact.isArchived)),
|
|
18948
18954
|
updatedAt: /* @__PURE__ */ new Date()
|
|
18949
18955
|
};
|
|
18950
18956
|
this.artifacts.set(id, mergedArtifact);
|