@supernova-studio/model 1.67.0 → 1.68.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 +172 -1
- package/dist/index.d.ts +172 -1
- package/dist/index.js +16 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2033,6 +2033,7 @@ var ShallowDesignElement = _zod.z.object({
|
|
|
2033
2033
|
type: DesignElementType,
|
|
2034
2034
|
brandPersistentId: _zod.z.string().optional(),
|
|
2035
2035
|
collectionPersistentId: _zod.z.string().optional(),
|
|
2036
|
+
collectionPersistentIds: _zod.z.string().array(),
|
|
2036
2037
|
parentPersistentId: _zod.z.string().optional(),
|
|
2037
2038
|
shortPersistentId: _zod.z.string().optional(),
|
|
2038
2039
|
childType: DesignElementType.optional(),
|
|
@@ -3755,7 +3756,8 @@ var ThemeElementData = _zod.z.object({
|
|
|
3755
3756
|
var ThemeOriginPart = _zod.z.object({});
|
|
3756
3757
|
var ThemeOriginObject = _zod.z.object({
|
|
3757
3758
|
id: _zod.z.string(),
|
|
3758
|
-
name: _zod.z.string()
|
|
3759
|
+
name: _zod.z.string(),
|
|
3760
|
+
parentModeId: _zod.z.string().optional()
|
|
3759
3761
|
});
|
|
3760
3762
|
var ThemeOriginSource = _zod.z.object({
|
|
3761
3763
|
sourceId: _zod.z.string(),
|
|
@@ -3767,7 +3769,8 @@ var ThemeOrigin = _zod.z.object({
|
|
|
3767
3769
|
var Theme = DesignElementGroupableBase.extend(DesignElementBrandedPart.shape).extend({
|
|
3768
3770
|
origin: ThemeOrigin.optional(),
|
|
3769
3771
|
overrides: _zod.z.array(ThemeOverride),
|
|
3770
|
-
codeName: _zod.z.string()
|
|
3772
|
+
codeName: _zod.z.string(),
|
|
3773
|
+
collectionPersistentIds: _zod.z.string().array()
|
|
3771
3774
|
});
|
|
3772
3775
|
|
|
3773
3776
|
// src/dsm/elements/utils.ts
|
|
@@ -4098,6 +4101,7 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
|
|
|
4098
4101
|
|
|
4099
4102
|
var CollectionOrigin = _zod.z.object({
|
|
4100
4103
|
id: _zod.z.string(),
|
|
4104
|
+
parentId: _zod.z.string().optional(),
|
|
4101
4105
|
sourceId: _zod.z.string()
|
|
4102
4106
|
});
|
|
4103
4107
|
var Collection = _zod.z.object({
|
|
@@ -4129,11 +4133,14 @@ var Collection = _zod.z.object({
|
|
|
4129
4133
|
// src/dsm/import/collection.ts
|
|
4130
4134
|
var CollectionImportModelInput = _zod.z.object({
|
|
4131
4135
|
id: _zod.z.string(),
|
|
4132
|
-
name: _zod.z.string()
|
|
4136
|
+
name: _zod.z.string(),
|
|
4137
|
+
parentId: _zod.z.string().optional(),
|
|
4138
|
+
parentPersistentId: _zod.z.string().optional()
|
|
4133
4139
|
});
|
|
4134
4140
|
var CollectionImportModel = _zod.z.object({
|
|
4135
4141
|
id: _zod.z.string(),
|
|
4136
4142
|
name: _zod.z.string(),
|
|
4143
|
+
parentPersistentId: _zod.z.string().optional(),
|
|
4137
4144
|
origin: CollectionOrigin
|
|
4138
4145
|
});
|
|
4139
4146
|
|
|
@@ -4281,12 +4288,16 @@ var ThemeImportModel = _zod.z.object({
|
|
|
4281
4288
|
brandPersistentId: _zod.z.string(),
|
|
4282
4289
|
originSource: ThemeOriginSource,
|
|
4283
4290
|
overrides: _zod.z.array(ThemeOverrideImportModel),
|
|
4284
|
-
sortOrder: _zod.z.number()
|
|
4291
|
+
sortOrder: _zod.z.number(),
|
|
4292
|
+
collectionIds: _zod.z.array(_zod.z.string()).optional(),
|
|
4293
|
+
parentPersistentId: _zod.z.string().optional()
|
|
4285
4294
|
});
|
|
4286
4295
|
var ThemeImportModelInput = _zod.z.object({
|
|
4287
4296
|
meta: ObjectMeta,
|
|
4288
4297
|
originObjects: _zod.z.array(ThemeOriginObject),
|
|
4289
|
-
overrides: _zod.z.array(ThemeOverrideImportModelInput)
|
|
4298
|
+
overrides: _zod.z.array(ThemeOverrideImportModelInput),
|
|
4299
|
+
collectionIds: _zod.z.array(_zod.z.string()).optional(),
|
|
4300
|
+
parentPersistentId: _zod.z.string().optional()
|
|
4290
4301
|
});
|
|
4291
4302
|
var ThemeUpdateImportModel = _zod.z.object({
|
|
4292
4303
|
themePersistentId: _zod.z.string(),
|