@supernova-studio/model 1.4.0 → 1.4.2

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 CHANGED
@@ -199,17 +199,6 @@ declare class SupernovaException extends Error {
199
199
  constructor(type: SupernovaExceptionType, message?: string);
200
200
  }
201
201
 
202
- declare function getCodenameFromText(name: string): string;
203
-
204
- declare function generateShortPersistentId(): string;
205
-
206
- declare function slugify(str: string, options?: slugifyImplementation.Options): string;
207
- declare const RESERVED_SLUGS: string[];
208
- declare const RESERVED_SLUG_PREFIX = "x-sn-reserved-";
209
- declare function isSlugReserved(slug: string): boolean;
210
-
211
- declare const slugRegex: RegExp;
212
-
213
202
  declare const GitInteropPulsarError: z.ZodObject<{
214
203
  errorType: z.ZodString;
215
204
  errorMessage: z.ZodString;
@@ -225,6 +214,17 @@ declare const GitInteropPulsarError: z.ZodObject<{
225
214
  }>;
226
215
  type GitInteropPulsarError = z.infer<typeof GitInteropPulsarError>;
227
216
 
217
+ declare function getCodenameFromText(name: string): string;
218
+
219
+ declare function generateShortPersistentId(): string;
220
+
221
+ declare function slugify(str: string, options?: slugifyImplementation.Options): string;
222
+ declare const RESERVED_SLUGS: string[];
223
+ declare const RESERVED_SLUG_PREFIX = "x-sn-reserved-";
224
+ declare function isSlugReserved(slug: string): boolean;
225
+
226
+ declare const slugRegex: RegExp;
227
+
228
228
  type DbCreateInputOmit<T> = Omit<T, "id" | "createdAt" | "updatedAt">;
229
229
  type DbUpdateInputOmit<T> = Omit<T, "createdAt" | "updatedAt" | "persistentId">;
230
230
  type DbUpdate<T extends {
package/dist/index.d.ts CHANGED
@@ -199,17 +199,6 @@ declare class SupernovaException extends Error {
199
199
  constructor(type: SupernovaExceptionType, message?: string);
200
200
  }
201
201
 
202
- declare function getCodenameFromText(name: string): string;
203
-
204
- declare function generateShortPersistentId(): string;
205
-
206
- declare function slugify(str: string, options?: slugifyImplementation.Options): string;
207
- declare const RESERVED_SLUGS: string[];
208
- declare const RESERVED_SLUG_PREFIX = "x-sn-reserved-";
209
- declare function isSlugReserved(slug: string): boolean;
210
-
211
- declare const slugRegex: RegExp;
212
-
213
202
  declare const GitInteropPulsarError: z.ZodObject<{
214
203
  errorType: z.ZodString;
215
204
  errorMessage: z.ZodString;
@@ -225,6 +214,17 @@ declare const GitInteropPulsarError: z.ZodObject<{
225
214
  }>;
226
215
  type GitInteropPulsarError = z.infer<typeof GitInteropPulsarError>;
227
216
 
217
+ declare function getCodenameFromText(name: string): string;
218
+
219
+ declare function generateShortPersistentId(): string;
220
+
221
+ declare function slugify(str: string, options?: slugifyImplementation.Options): string;
222
+ declare const RESERVED_SLUGS: string[];
223
+ declare const RESERVED_SLUG_PREFIX = "x-sn-reserved-";
224
+ declare function isSlugReserved(slug: string): boolean;
225
+
226
+ declare const slugRegex: RegExp;
227
+
228
228
  type DbCreateInputOmit<T> = Omit<T, "id" | "createdAt" | "updatedAt">;
229
229
  type DbUpdateInputOmit<T> = Omit<T, "createdAt" | "updatedAt" | "persistentId">;
230
230
  type DbUpdate<T extends {
package/dist/index.js CHANGED
@@ -959,6 +959,14 @@ var ContentLoaderPayload = _zod.z.object({
959
959
  })
960
960
  );
961
961
 
962
+ // src/utils/interop-pulsar-error.ts
963
+
964
+ var GitInteropPulsarError = _zod.z.object({
965
+ errorType: _zod.z.string(),
966
+ errorMessage: _zod.z.string(),
967
+ trace: _zod.z.array(_zod.z.string())
968
+ });
969
+
962
970
  // src/utils/naming.ts
963
971
  function getCodenameFromText(name) {
964
972
  let codeName = removeDiacritics(name);
@@ -1669,14 +1677,6 @@ function isSlugReserved(slug) {
1669
1677
  // src/utils/validation.ts
1670
1678
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
1671
1679
 
1672
- // src/utils/interop-pulsar-error.ts
1673
-
1674
- var GitInteropPulsarError = _zod.z.object({
1675
- errorType: _zod.z.string(),
1676
- errorMessage: _zod.z.string(),
1677
- trace: _zod.z.array(_zod.z.string())
1678
- });
1679
-
1680
1680
  // src/dsm/properties/property-definition.ts
1681
1681
 
1682
1682
  var ElementPropertyTypeSchema = _zod.z.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);