@supernova-studio/model 0.58.14 → 0.58.15
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 +96 -46
- package/dist/index.d.ts +96 -46
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/published-doc-page-visits.ts +1 -1
- package/src/dsm/published-doc-page.ts +5 -1
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { DbCreateInputOmit } from "../helpers";
|
|
|
4
4
|
export const PublishedDocPageVisitsEntry = z.object({
|
|
5
5
|
id: z.string(),
|
|
6
6
|
versionId: z.string(),
|
|
7
|
-
|
|
7
|
+
pagePersistentId: z.string(),
|
|
8
8
|
locale: z.string().optional(),
|
|
9
9
|
timestamp: z.coerce.date(),
|
|
10
10
|
visits: z.number(),
|
|
@@ -15,6 +15,7 @@ export const PublishedDocPage = z.object({
|
|
|
15
15
|
id: z.string(),
|
|
16
16
|
publishedDocId: z.string(),
|
|
17
17
|
pageShortPersistentId: z.string(),
|
|
18
|
+
pagePersistentId: z.string().optional(),
|
|
18
19
|
pathV1: z.string(),
|
|
19
20
|
pathV2: z.string(),
|
|
20
21
|
storagePath: z.string(),
|
|
@@ -29,5 +30,8 @@ export const PublishedDocPage = z.object({
|
|
|
29
30
|
|
|
30
31
|
export type PublishedDocPage = z.infer<typeof PublishedDocPage>;
|
|
31
32
|
|
|
32
|
-
export type CreatePublishedDocPage = DbCreateInputOmit<PublishedDocPage
|
|
33
|
+
export type CreatePublishedDocPage = DbCreateInputOmit<PublishedDocPage> & {
|
|
34
|
+
pagePersistentId: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
33
37
|
export type UpdatePublishedDocPage = DbUpdate<OmitStrict<PublishedDocPage, "pageShortPersistentId" | "publishedDocId">>;
|