@supernova-studio/model 0.55.29 → 0.55.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/model",
3
- "version": "0.55.29",
3
+ "version": "0.55.30",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,12 +1,12 @@
1
1
  import { z } from "zod";
2
+ import { ObjectMeta } from "../../common";
2
3
  import { DbCreateInputOmit, DbUpdate } from "../../helpers";
3
4
  import { OmitStrict } from "../../utils";
4
- import { ObjectMeta } from "../../common";
5
5
 
6
6
  export type CreateDesignElement = DbCreateInputOmit<DesignElement>;
7
7
  export type UpdateDesignElement = OmitStrict<
8
8
  DbUpdate<DesignElement>,
9
- "brandPersistentId" | "childType" | "designSystemVersionId" | "shortPersistentId" | "type"
9
+ "brandPersistentId" | "childType" | "designSystemVersionId" | "shortPersistentId"
10
10
  >;
11
11
 
12
12
  //
@@ -58,7 +58,7 @@ export function parseUrl(url: string): URL {
58
58
  return new URL(url.startsWith("https://") || url.startsWith("http://") ? url : `https://${url}`);
59
59
  }
60
60
 
61
- export function mapByUnique<V, K>(items: V[], keyFn: (item: V) => K): Map<K, V> {
61
+ export function mapByUnique<V, K>(items: Iterable<V>, keyFn: (item: V) => K): Map<K, V> {
62
62
  const result = new Map<K, V>();
63
63
  for (const item of items) {
64
64
  result.set(keyFn(item), item);