@supernova-studio/model 0.58.14 → 0.58.16

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.mjs CHANGED
@@ -844,6 +844,13 @@ function isNotNullish(value) {
844
844
  function isNullish(value) {
845
845
  return value === null || value === void 0;
846
846
  }
847
+ function chunkedArray(array, chunkSize) {
848
+ const result = [];
849
+ for (let i = 0; i < array.length; i += chunkSize) {
850
+ result.push(array.slice(i, i + chunkSize));
851
+ }
852
+ return result;
853
+ }
847
854
 
848
855
  // src/utils/content-loader-instruction.ts
849
856
  import { z as z34 } from "zod";
@@ -4635,7 +4642,7 @@ import { z as z141 } from "zod";
4635
4642
  var PublishedDocPageVisitsEntry = z141.object({
4636
4643
  id: z141.string(),
4637
4644
  versionId: z141.string(),
4638
- pageShortPersistentId: z141.string(),
4645
+ pagePersistentId: z141.string(),
4639
4646
  locale: z141.string().optional(),
4640
4647
  timestamp: z141.coerce.date(),
4641
4648
  visits: z141.number()
@@ -4653,6 +4660,7 @@ var PublishedDocPage = z142.object({
4653
4660
  id: z142.string(),
4654
4661
  publishedDocId: z142.string(),
4655
4662
  pageShortPersistentId: z142.string(),
4663
+ pagePersistentId: z142.string().optional(),
4656
4664
  pathV1: z142.string(),
4657
4665
  pathV2: z142.string(),
4658
4666
  storagePath: z142.string(),
@@ -6069,6 +6077,7 @@ export {
6069
6077
  areShallowObjectsEqual,
6070
6078
  areTokenTypesCompatible,
6071
6079
  buildConstantEnum,
6080
+ chunkedArray,
6072
6081
  convertTokenTypedData,
6073
6082
  defaultDocumentationItemConfigurationV1,
6074
6083
  defaultDocumentationItemConfigurationV2,