@supernova-studio/model 0.55.27 → 0.55.28
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 +68 -1
- package/dist/index.d.ts +68 -1
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/assets/asset.ts +1 -0
- package/src/dsm/data-sources/data-source.ts +1 -0
- package/src/utils/common.ts +8 -0
package/dist/index.mjs
CHANGED
|
@@ -448,7 +448,8 @@ var Asset = z21.object({
|
|
|
448
448
|
properties: AssetProperties.nullish(),
|
|
449
449
|
state: AssetProcessStatus.optional(),
|
|
450
450
|
origin: AssetOrigin.optional(),
|
|
451
|
-
originKey: z21.string().optional()
|
|
451
|
+
originKey: z21.string().optional(),
|
|
452
|
+
createdByImportJobId: z21.string().optional()
|
|
452
453
|
});
|
|
453
454
|
var ResolvedAsset = Asset.extend({
|
|
454
455
|
url: z21.string()
|
|
@@ -834,6 +835,12 @@ function areShallowObjectsEqual(lhs, rhs) {
|
|
|
834
835
|
}
|
|
835
836
|
return true;
|
|
836
837
|
}
|
|
838
|
+
function isNotNullish(value) {
|
|
839
|
+
return !isNullish(value);
|
|
840
|
+
}
|
|
841
|
+
function isNullish(value) {
|
|
842
|
+
return value === null || value === void 0;
|
|
843
|
+
}
|
|
837
844
|
|
|
838
845
|
// src/utils/content-loader-instruction.ts
|
|
839
846
|
import { z as z34 } from "zod";
|
|
@@ -3446,7 +3453,8 @@ var DataSourceUploadRemote = z88.object({
|
|
|
3446
3453
|
remoteId: z88.string(),
|
|
3447
3454
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
3448
3455
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
3449
|
-
warnings: nullishToOptional(ImportWarning.array())
|
|
3456
|
+
warnings: nullishToOptional(ImportWarning.array()),
|
|
3457
|
+
isTokenTypeSplitEnabled: z88.boolean()
|
|
3450
3458
|
});
|
|
3451
3459
|
var DataSourceRemote = z88.discriminatedUnion("type", [
|
|
3452
3460
|
DataSourceFigmaRemote,
|
|
@@ -5930,6 +5938,8 @@ export {
|
|
|
5930
5938
|
isImportedAsset,
|
|
5931
5939
|
isImportedDesignToken,
|
|
5932
5940
|
isImportedFigmaComponent,
|
|
5941
|
+
isNotNullish,
|
|
5942
|
+
isNullish,
|
|
5933
5943
|
isSlugReserved,
|
|
5934
5944
|
isTokenType,
|
|
5935
5945
|
joinRepeatingSpans,
|