@rakun-kit/core 1.3.4 → 1.3.7
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/cjs/api/routes/web/page.js +69 -69
- package/dist/cjs/api/routes/web/page.js.map +1 -1
- package/dist/cjs/lib/ContentType.js +62 -80
- package/dist/cjs/lib/ContentType.js.map +1 -1
- package/dist/cjs/orm/index.js +0 -6
- package/dist/cjs/orm/index.js.map +1 -1
- package/dist/esm/api/operations/index.d.ts +14 -14
- package/dist/esm/api/operations/manager-contract.d.ts +9 -9
- package/dist/esm/api/operations/manager.d.ts +9 -9
- package/dist/esm/api/operations/web-contract.d.ts +5 -5
- package/dist/esm/api/operations/web.d.ts +5 -5
- package/dist/esm/api/proxies/index.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/getSession.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/markTourSeen.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/updateAccount.d.ts +2 -2
- package/dist/esm/api/routes/manager/auth/updateTutorialPreferences.d.ts +2 -2
- package/dist/esm/api/routes/manager/create.d.ts +2 -2
- package/dist/esm/api/routes/manager/duplicate.d.ts +2 -2
- package/dist/esm/api/routes/manager/get.d.ts +2 -2
- package/dist/esm/api/routes/manager/languages.d.ts +2 -2
- package/dist/esm/api/routes/manager/update.d.ts +2 -2
- package/dist/esm/api/routes/web/page.d.ts.map +1 -1
- package/dist/esm/api/routes/web/page.js +69 -69
- package/dist/esm/api/routes/web/page.js.map +1 -1
- package/dist/esm/api/routes/web/previewPage.d.ts +2 -2
- package/dist/esm/api/utils/getLanguages.d.ts +2 -2
- package/dist/esm/api/utils/getUser.d.ts +2 -2
- package/dist/esm/internal-content-types/ManagerUser.d.ts +7 -7
- package/dist/esm/internal-content-types/MfaChallenge.d.ts +28 -28
- package/dist/esm/internal-content-types/Page.d.ts +8 -8
- package/dist/esm/internal-content-types/RouteSettings.d.ts +8 -8
- package/dist/esm/internal-content-types/Session.d.ts +28 -28
- package/dist/esm/internal-content-types/UserMfa.d.ts +28 -28
- package/dist/esm/internal-content-types/WebAuthnCredential.d.ts +28 -28
- package/dist/esm/internal-content-types/WebAuthnRegChallenge.d.ts +28 -28
- package/dist/esm/lib/ContentType.d.ts +58 -82
- package/dist/esm/lib/ContentType.d.ts.map +1 -1
- package/dist/esm/lib/ContentType.js +62 -80
- package/dist/esm/lib/ContentType.js.map +1 -1
- package/dist/esm/manager.d.ts +36 -36
- package/dist/esm/orm/index.d.ts.map +1 -1
- package/dist/esm/orm/index.js +0 -6
- package/dist/esm/orm/index.js.map +1 -1
- package/dist/esm/schemas/web/page.d.ts +12 -12
- package/dist/esm/schemas/web/previewPage.d.ts +8 -8
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -1
|
@@ -32,8 +32,8 @@ export declare const createManagerOperationContracts: () => {
|
|
|
32
32
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
33
33
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
34
34
|
_trashed?: boolean | undefined;
|
|
35
|
-
trashedAt?: Date | undefined;
|
|
36
35
|
_revision?: number | undefined;
|
|
36
|
+
trashedAt?: Date | undefined;
|
|
37
37
|
createdAt?: Date | undefined;
|
|
38
38
|
updatedAt?: Date | undefined;
|
|
39
39
|
}[], "query", "get", "auth">;
|
|
@@ -518,8 +518,8 @@ export declare const createManagerOperationContracts: () => {
|
|
|
518
518
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
519
519
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
520
520
|
_trashed?: boolean | undefined;
|
|
521
|
-
trashedAt?: Date | undefined;
|
|
522
521
|
_revision?: number | undefined;
|
|
522
|
+
trashedAt?: Date | undefined;
|
|
523
523
|
createdAt?: Date | undefined;
|
|
524
524
|
updatedAt?: Date | undefined;
|
|
525
525
|
};
|
|
@@ -538,8 +538,8 @@ export declare const createManagerOperationContracts: () => {
|
|
|
538
538
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
539
539
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
540
540
|
_trashed?: boolean | undefined;
|
|
541
|
-
trashedAt?: Date | undefined;
|
|
542
541
|
_revision?: number | undefined;
|
|
542
|
+
trashedAt?: Date | undefined;
|
|
543
543
|
createdAt?: Date | undefined;
|
|
544
544
|
updatedAt?: Date | undefined;
|
|
545
545
|
} | null, "query", "get", "public">;
|
|
@@ -569,8 +569,8 @@ export declare const createManagerOperationContracts: () => {
|
|
|
569
569
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
570
570
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
571
571
|
_trashed?: boolean | undefined;
|
|
572
|
-
trashedAt?: Date | undefined;
|
|
573
572
|
_revision?: number | undefined;
|
|
573
|
+
trashedAt?: Date | undefined;
|
|
574
574
|
createdAt?: Date | undefined;
|
|
575
575
|
updatedAt?: Date | undefined;
|
|
576
576
|
};
|
|
@@ -589,8 +589,8 @@ export declare const createManagerOperationContracts: () => {
|
|
|
589
589
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
590
590
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
591
591
|
_trashed?: boolean | undefined;
|
|
592
|
-
trashedAt?: Date | undefined;
|
|
593
592
|
_revision?: number | undefined;
|
|
593
|
+
trashedAt?: Date | undefined;
|
|
594
594
|
createdAt?: Date | undefined;
|
|
595
595
|
updatedAt?: Date | undefined;
|
|
596
596
|
}, "mutation", "post", "auth">;
|
|
@@ -608,8 +608,8 @@ export declare const createManagerOperationContracts: () => {
|
|
|
608
608
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
609
609
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
610
610
|
_trashed?: boolean | undefined;
|
|
611
|
-
trashedAt?: Date | undefined;
|
|
612
611
|
_revision?: number | undefined;
|
|
612
|
+
trashedAt?: Date | undefined;
|
|
613
613
|
createdAt?: Date | undefined;
|
|
614
614
|
updatedAt?: Date | undefined;
|
|
615
615
|
};
|
|
@@ -628,8 +628,8 @@ export declare const createManagerOperationContracts: () => {
|
|
|
628
628
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
629
629
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
630
630
|
_trashed?: boolean | undefined;
|
|
631
|
-
trashedAt?: Date | undefined;
|
|
632
631
|
_revision?: number | undefined;
|
|
632
|
+
trashedAt?: Date | undefined;
|
|
633
633
|
createdAt?: Date | undefined;
|
|
634
634
|
updatedAt?: Date | undefined;
|
|
635
635
|
}, "mutation", "post", "auth">;
|
|
@@ -647,8 +647,8 @@ export declare const createManagerOperationContracts: () => {
|
|
|
647
647
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
648
648
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
649
649
|
_trashed?: boolean | undefined;
|
|
650
|
-
trashedAt?: Date | undefined;
|
|
651
650
|
_revision?: number | undefined;
|
|
651
|
+
trashedAt?: Date | undefined;
|
|
652
652
|
createdAt?: Date | undefined;
|
|
653
653
|
updatedAt?: Date | undefined;
|
|
654
654
|
};
|
|
@@ -667,8 +667,8 @@ export declare const createManagerOperationContracts: () => {
|
|
|
667
667
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
668
668
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
669
669
|
_trashed?: boolean | undefined;
|
|
670
|
-
trashedAt?: Date | undefined;
|
|
671
670
|
_revision?: number | undefined;
|
|
671
|
+
trashedAt?: Date | undefined;
|
|
672
672
|
createdAt?: Date | undefined;
|
|
673
673
|
updatedAt?: Date | undefined;
|
|
674
674
|
}, "mutation", "post", "auth">;
|
|
@@ -32,8 +32,8 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
32
32
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
33
33
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
34
34
|
_trashed?: boolean | undefined;
|
|
35
|
-
trashedAt?: Date | undefined;
|
|
36
35
|
_revision?: number | undefined;
|
|
36
|
+
trashedAt?: Date | undefined;
|
|
37
37
|
createdAt?: Date | undefined;
|
|
38
38
|
updatedAt?: Date | undefined;
|
|
39
39
|
}[], "query", "get", "auth">;
|
|
@@ -518,8 +518,8 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
518
518
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
519
519
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
520
520
|
_trashed?: boolean | undefined;
|
|
521
|
-
trashedAt?: Date | undefined;
|
|
522
521
|
_revision?: number | undefined;
|
|
522
|
+
trashedAt?: Date | undefined;
|
|
523
523
|
createdAt?: Date | undefined;
|
|
524
524
|
updatedAt?: Date | undefined;
|
|
525
525
|
};
|
|
@@ -538,8 +538,8 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
538
538
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
539
539
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
540
540
|
_trashed?: boolean | undefined;
|
|
541
|
-
trashedAt?: Date | undefined;
|
|
542
541
|
_revision?: number | undefined;
|
|
542
|
+
trashedAt?: Date | undefined;
|
|
543
543
|
createdAt?: Date | undefined;
|
|
544
544
|
updatedAt?: Date | undefined;
|
|
545
545
|
} | null, "query", "get", "public">;
|
|
@@ -569,8 +569,8 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
569
569
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
570
570
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
571
571
|
_trashed?: boolean | undefined;
|
|
572
|
-
trashedAt?: Date | undefined;
|
|
573
572
|
_revision?: number | undefined;
|
|
573
|
+
trashedAt?: Date | undefined;
|
|
574
574
|
createdAt?: Date | undefined;
|
|
575
575
|
updatedAt?: Date | undefined;
|
|
576
576
|
};
|
|
@@ -589,8 +589,8 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
589
589
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
590
590
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
591
591
|
_trashed?: boolean | undefined;
|
|
592
|
-
trashedAt?: Date | undefined;
|
|
593
592
|
_revision?: number | undefined;
|
|
593
|
+
trashedAt?: Date | undefined;
|
|
594
594
|
createdAt?: Date | undefined;
|
|
595
595
|
updatedAt?: Date | undefined;
|
|
596
596
|
}, "mutation", "post", "auth">;
|
|
@@ -608,8 +608,8 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
608
608
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
609
609
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
610
610
|
_trashed?: boolean | undefined;
|
|
611
|
-
trashedAt?: Date | undefined;
|
|
612
611
|
_revision?: number | undefined;
|
|
612
|
+
trashedAt?: Date | undefined;
|
|
613
613
|
createdAt?: Date | undefined;
|
|
614
614
|
updatedAt?: Date | undefined;
|
|
615
615
|
};
|
|
@@ -628,8 +628,8 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
628
628
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
629
629
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
630
630
|
_trashed?: boolean | undefined;
|
|
631
|
-
trashedAt?: Date | undefined;
|
|
632
631
|
_revision?: number | undefined;
|
|
632
|
+
trashedAt?: Date | undefined;
|
|
633
633
|
createdAt?: Date | undefined;
|
|
634
634
|
updatedAt?: Date | undefined;
|
|
635
635
|
}, "mutation", "post", "auth">;
|
|
@@ -647,8 +647,8 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
647
647
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
648
648
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
649
649
|
_trashed?: boolean | undefined;
|
|
650
|
-
trashedAt?: Date | undefined;
|
|
651
650
|
_revision?: number | undefined;
|
|
651
|
+
trashedAt?: Date | undefined;
|
|
652
652
|
createdAt?: Date | undefined;
|
|
653
653
|
updatedAt?: Date | undefined;
|
|
654
654
|
};
|
|
@@ -667,8 +667,8 @@ export declare const createManagerOperationDefinitions: () => {
|
|
|
667
667
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
668
668
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
669
669
|
_trashed?: boolean | undefined;
|
|
670
|
-
trashedAt?: Date | undefined;
|
|
671
670
|
_revision?: number | undefined;
|
|
671
|
+
trashedAt?: Date | undefined;
|
|
672
672
|
createdAt?: Date | undefined;
|
|
673
673
|
updatedAt?: Date | undefined;
|
|
674
674
|
}, "mutation", "post", "auth">;
|
|
@@ -10,8 +10,8 @@ export declare const createWebOperationContracts: () => {
|
|
|
10
10
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
11
11
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
12
12
|
_trashed?: boolean | undefined;
|
|
13
|
-
trashedAt?: Date | undefined;
|
|
14
13
|
_revision?: number | undefined;
|
|
14
|
+
trashedAt?: Date | undefined;
|
|
15
15
|
createdAt?: Date | undefined;
|
|
16
16
|
updatedAt?: Date | undefined;
|
|
17
17
|
}[], "query", "get", "public">;
|
|
@@ -130,8 +130,8 @@ export declare const createWebOperationContracts: () => {
|
|
|
130
130
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
131
131
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
132
132
|
_trashed?: boolean | undefined;
|
|
133
|
-
trashedAt?: Date | undefined;
|
|
134
133
|
_revision?: number | undefined;
|
|
134
|
+
trashedAt?: Date | undefined;
|
|
135
135
|
createdAt?: Date | undefined;
|
|
136
136
|
updatedAt?: Date | undefined;
|
|
137
137
|
} & {
|
|
@@ -150,8 +150,8 @@ export declare const createWebOperationContracts: () => {
|
|
|
150
150
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
151
151
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
152
152
|
_trashed?: boolean | undefined;
|
|
153
|
-
trashedAt?: Date | undefined;
|
|
154
153
|
_revision?: number | undefined;
|
|
154
|
+
trashedAt?: Date | undefined;
|
|
155
155
|
createdAt?: Date | undefined;
|
|
156
156
|
updatedAt?: Date | undefined;
|
|
157
157
|
} | undefined;
|
|
@@ -277,8 +277,8 @@ export declare const createWebOperationContracts: () => {
|
|
|
277
277
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
278
278
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
279
279
|
_trashed?: boolean | undefined;
|
|
280
|
-
trashedAt?: Date | undefined;
|
|
281
280
|
_revision?: number | undefined;
|
|
281
|
+
trashedAt?: Date | undefined;
|
|
282
282
|
createdAt?: Date | undefined;
|
|
283
283
|
updatedAt?: Date | undefined;
|
|
284
284
|
} & {
|
|
@@ -297,8 +297,8 @@ export declare const createWebOperationContracts: () => {
|
|
|
297
297
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
298
298
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
299
299
|
_trashed?: boolean | undefined;
|
|
300
|
-
trashedAt?: Date | undefined;
|
|
301
300
|
_revision?: number | undefined;
|
|
301
|
+
trashedAt?: Date | undefined;
|
|
302
302
|
createdAt?: Date | undefined;
|
|
303
303
|
updatedAt?: Date | undefined;
|
|
304
304
|
} | undefined;
|
|
@@ -10,8 +10,8 @@ export declare const createWebOperationDefinitions: () => {
|
|
|
10
10
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
11
11
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
12
12
|
_trashed?: boolean | undefined;
|
|
13
|
-
trashedAt?: Date | undefined;
|
|
14
13
|
_revision?: number | undefined;
|
|
14
|
+
trashedAt?: Date | undefined;
|
|
15
15
|
createdAt?: Date | undefined;
|
|
16
16
|
updatedAt?: Date | undefined;
|
|
17
17
|
}[], "query", "get", "public">;
|
|
@@ -130,8 +130,8 @@ export declare const createWebOperationDefinitions: () => {
|
|
|
130
130
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
131
131
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
132
132
|
_trashed?: boolean | undefined;
|
|
133
|
-
trashedAt?: Date | undefined;
|
|
134
133
|
_revision?: number | undefined;
|
|
134
|
+
trashedAt?: Date | undefined;
|
|
135
135
|
createdAt?: Date | undefined;
|
|
136
136
|
updatedAt?: Date | undefined;
|
|
137
137
|
} & {
|
|
@@ -150,8 +150,8 @@ export declare const createWebOperationDefinitions: () => {
|
|
|
150
150
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
151
151
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
152
152
|
_trashed?: boolean | undefined;
|
|
153
|
-
trashedAt?: Date | undefined;
|
|
154
153
|
_revision?: number | undefined;
|
|
154
|
+
trashedAt?: Date | undefined;
|
|
155
155
|
createdAt?: Date | undefined;
|
|
156
156
|
updatedAt?: Date | undefined;
|
|
157
157
|
} | undefined;
|
|
@@ -277,8 +277,8 @@ export declare const createWebOperationDefinitions: () => {
|
|
|
277
277
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
278
278
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
279
279
|
_trashed?: boolean | undefined;
|
|
280
|
-
trashedAt?: Date | undefined;
|
|
281
280
|
_revision?: number | undefined;
|
|
281
|
+
trashedAt?: Date | undefined;
|
|
282
282
|
createdAt?: Date | undefined;
|
|
283
283
|
updatedAt?: Date | undefined;
|
|
284
284
|
} & {
|
|
@@ -297,8 +297,8 @@ export declare const createWebOperationDefinitions: () => {
|
|
|
297
297
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
298
298
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
299
299
|
_trashed?: boolean | undefined;
|
|
300
|
-
trashedAt?: Date | undefined;
|
|
301
300
|
_revision?: number | undefined;
|
|
301
|
+
trashedAt?: Date | undefined;
|
|
302
302
|
createdAt?: Date | undefined;
|
|
303
303
|
updatedAt?: Date | undefined;
|
|
304
304
|
} | undefined;
|
|
@@ -24,8 +24,8 @@ export declare const ProxyOutput: (item: DataPopulated<ContentType>) => {
|
|
|
24
24
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
25
25
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
26
26
|
_trashed?: boolean | undefined;
|
|
27
|
-
trashedAt?: Date | undefined;
|
|
28
27
|
_revision?: number | undefined;
|
|
28
|
+
trashedAt?: Date | undefined;
|
|
29
29
|
createdAt?: Date | undefined;
|
|
30
30
|
updatedAt?: Date | undefined;
|
|
31
31
|
trashedBy?: string | undefined;
|
|
@@ -37,8 +37,8 @@ export declare const ProxyOutput: (item: DataPopulated<ContentType>) => {
|
|
|
37
37
|
_visibility?: import("../..").DocumentVisibility | undefined;
|
|
38
38
|
_visibilityBeforeTrash?: Exclude<import("../..").DocumentVisibility, "trash"> | undefined;
|
|
39
39
|
_trashed?: boolean | undefined;
|
|
40
|
-
trashedAt?: Date | undefined;
|
|
41
40
|
_revision?: number | undefined;
|
|
41
|
+
trashedAt?: Date | undefined;
|
|
42
42
|
createdAt?: Date | undefined;
|
|
43
43
|
updatedAt?: Date | undefined;
|
|
44
44
|
trashedBy?: string | undefined;
|
|
@@ -13,8 +13,8 @@ export declare const getSessionHandler: ({ ctx, }: {
|
|
|
13
13
|
_visibility?: import("../../../..").DocumentVisibility | undefined;
|
|
14
14
|
_visibilityBeforeTrash?: Exclude<import("../../../..").DocumentVisibility, "trash"> | undefined;
|
|
15
15
|
_trashed?: boolean | undefined;
|
|
16
|
-
trashedAt?: Date | undefined;
|
|
17
16
|
_revision?: number | undefined;
|
|
17
|
+
trashedAt?: Date | undefined;
|
|
18
18
|
createdAt?: Date | undefined;
|
|
19
19
|
updatedAt?: Date | undefined;
|
|
20
20
|
};
|
|
@@ -33,8 +33,8 @@ export declare const getSessionHandler: ({ ctx, }: {
|
|
|
33
33
|
_visibility?: import("../../../..").DocumentVisibility | undefined;
|
|
34
34
|
_visibilityBeforeTrash?: Exclude<import("../../../..").DocumentVisibility, "trash"> | undefined;
|
|
35
35
|
_trashed?: boolean | undefined;
|
|
36
|
-
trashedAt?: Date | undefined;
|
|
37
36
|
_revision?: number | undefined;
|
|
37
|
+
trashedAt?: Date | undefined;
|
|
38
38
|
createdAt?: Date | undefined;
|
|
39
39
|
updatedAt?: Date | undefined;
|
|
40
40
|
trashedBy?: string | undefined;
|
|
@@ -16,9 +16,9 @@ export declare const markTourSeenHandler: ({ input, ctx, }: {
|
|
|
16
16
|
_visibility?: import("../../../..").DocumentVisibility | undefined;
|
|
17
17
|
_visibilityBeforeTrash?: Exclude<import("../../../..").DocumentVisibility, "trash"> | undefined;
|
|
18
18
|
_trashed?: boolean | undefined;
|
|
19
|
+
_revision?: number | undefined;
|
|
19
20
|
trashedAt?: Date | undefined;
|
|
20
21
|
trashedBy?: string | undefined;
|
|
21
|
-
_revision?: number | undefined;
|
|
22
22
|
createdAt?: Date | undefined;
|
|
23
23
|
updatedAt?: Date | undefined;
|
|
24
24
|
createdBy?: string | undefined;
|
|
@@ -39,9 +39,9 @@ export declare const markTourSeenHandler: ({ input, ctx, }: {
|
|
|
39
39
|
_visibility?: import("../../../..").DocumentVisibility | undefined;
|
|
40
40
|
_visibilityBeforeTrash?: Exclude<import("../../../..").DocumentVisibility, "trash"> | undefined;
|
|
41
41
|
_trashed?: boolean | undefined;
|
|
42
|
+
_revision?: number | undefined;
|
|
42
43
|
trashedAt?: Date | undefined;
|
|
43
44
|
trashedBy?: string | undefined;
|
|
44
|
-
_revision?: number | undefined;
|
|
45
45
|
createdAt?: Date | undefined;
|
|
46
46
|
updatedAt?: Date | undefined;
|
|
47
47
|
createdBy?: string | undefined;
|
|
@@ -16,9 +16,9 @@ export declare const updateAccountHandler: ({ input, ctx, }: {
|
|
|
16
16
|
_visibility?: import("../../../..").DocumentVisibility | undefined;
|
|
17
17
|
_visibilityBeforeTrash?: Exclude<import("../../../..").DocumentVisibility, "trash"> | undefined;
|
|
18
18
|
_trashed?: boolean | undefined;
|
|
19
|
+
_revision?: number | undefined;
|
|
19
20
|
trashedAt?: Date | undefined;
|
|
20
21
|
trashedBy?: string | undefined;
|
|
21
|
-
_revision?: number | undefined;
|
|
22
22
|
createdAt?: Date | undefined;
|
|
23
23
|
updatedAt?: Date | undefined;
|
|
24
24
|
createdBy?: string | undefined;
|
|
@@ -39,9 +39,9 @@ export declare const updateAccountHandler: ({ input, ctx, }: {
|
|
|
39
39
|
_visibility?: import("../../../..").DocumentVisibility | undefined;
|
|
40
40
|
_visibilityBeforeTrash?: Exclude<import("../../../..").DocumentVisibility, "trash"> | undefined;
|
|
41
41
|
_trashed?: boolean | undefined;
|
|
42
|
+
_revision?: number | undefined;
|
|
42
43
|
trashedAt?: Date | undefined;
|
|
43
44
|
trashedBy?: string | undefined;
|
|
44
|
-
_revision?: number | undefined;
|
|
45
45
|
createdAt?: Date | undefined;
|
|
46
46
|
updatedAt?: Date | undefined;
|
|
47
47
|
createdBy?: string | undefined;
|
|
@@ -16,9 +16,9 @@ export declare const updateTutorialPreferencesHandler: ({ input, ctx, }: {
|
|
|
16
16
|
_visibility?: import("../../../..").DocumentVisibility | undefined;
|
|
17
17
|
_visibilityBeforeTrash?: Exclude<import("../../../..").DocumentVisibility, "trash"> | undefined;
|
|
18
18
|
_trashed?: boolean | undefined;
|
|
19
|
+
_revision?: number | undefined;
|
|
19
20
|
trashedAt?: Date | undefined;
|
|
20
21
|
trashedBy?: string | undefined;
|
|
21
|
-
_revision?: number | undefined;
|
|
22
22
|
createdAt?: Date | undefined;
|
|
23
23
|
updatedAt?: Date | undefined;
|
|
24
24
|
createdBy?: string | undefined;
|
|
@@ -39,9 +39,9 @@ export declare const updateTutorialPreferencesHandler: ({ input, ctx, }: {
|
|
|
39
39
|
_visibility?: import("../../../..").DocumentVisibility | undefined;
|
|
40
40
|
_visibilityBeforeTrash?: Exclude<import("../../../..").DocumentVisibility, "trash"> | undefined;
|
|
41
41
|
_trashed?: boolean | undefined;
|
|
42
|
+
_revision?: number | undefined;
|
|
42
43
|
trashedAt?: Date | undefined;
|
|
43
44
|
trashedBy?: string | undefined;
|
|
44
|
-
_revision?: number | undefined;
|
|
45
45
|
createdAt?: Date | undefined;
|
|
46
46
|
updatedAt?: Date | undefined;
|
|
47
47
|
createdBy?: string | undefined;
|
|
@@ -5,15 +5,15 @@ export declare const createHandler: ({ input, ctx, }: {
|
|
|
5
5
|
ctx: RakunRequestContext;
|
|
6
6
|
}) => Promise<{
|
|
7
7
|
[x: string]: unknown;
|
|
8
|
-
_id: string;
|
|
9
8
|
_type: string;
|
|
9
|
+
_id: string;
|
|
10
10
|
_schemaVersion?: number | undefined;
|
|
11
11
|
_visibility?: import("../../..").DocumentVisibility | undefined;
|
|
12
12
|
_visibilityBeforeTrash?: Exclude<import("../../..").DocumentVisibility, "trash"> | undefined;
|
|
13
13
|
_trashed?: boolean | undefined;
|
|
14
|
+
_revision?: number | undefined;
|
|
14
15
|
trashedAt?: Date | undefined;
|
|
15
16
|
trashedBy?: string | undefined;
|
|
16
|
-
_revision?: number | undefined;
|
|
17
17
|
createdAt?: Date | undefined;
|
|
18
18
|
updatedAt?: Date | undefined;
|
|
19
19
|
createdBy?: string | undefined;
|
|
@@ -5,15 +5,15 @@ export declare const duplicateHandler: ({ input, ctx, }: {
|
|
|
5
5
|
ctx: RakunRequestContext;
|
|
6
6
|
}) => Promise<{
|
|
7
7
|
[x: string]: unknown;
|
|
8
|
-
_id: string;
|
|
9
8
|
_type: string;
|
|
9
|
+
_id: string;
|
|
10
10
|
_schemaVersion?: number | undefined;
|
|
11
11
|
_visibility?: import("../../..").DocumentVisibility | undefined;
|
|
12
12
|
_visibilityBeforeTrash?: Exclude<import("../../..").DocumentVisibility, "trash"> | undefined;
|
|
13
13
|
_trashed?: boolean | undefined;
|
|
14
|
+
_revision?: number | undefined;
|
|
14
15
|
trashedAt?: Date | undefined;
|
|
15
16
|
trashedBy?: string | undefined;
|
|
16
|
-
_revision?: number | undefined;
|
|
17
17
|
createdAt?: Date | undefined;
|
|
18
18
|
updatedAt?: Date | undefined;
|
|
19
19
|
createdBy?: string | undefined;
|
|
@@ -5,15 +5,15 @@ export declare const getHandler: ({ input, ctx, }: {
|
|
|
5
5
|
ctx: RakunRequestContext;
|
|
6
6
|
}) => Promise<{
|
|
7
7
|
[x: string]: unknown;
|
|
8
|
-
_id: string;
|
|
9
8
|
_type: string;
|
|
9
|
+
_id: string;
|
|
10
10
|
_schemaVersion?: number | undefined;
|
|
11
11
|
_visibility?: import("../../..").DocumentVisibility | undefined;
|
|
12
12
|
_visibilityBeforeTrash?: Exclude<import("../../..").DocumentVisibility, "trash"> | undefined;
|
|
13
13
|
_trashed?: boolean | undefined;
|
|
14
|
+
_revision?: number | undefined;
|
|
14
15
|
trashedAt?: Date | undefined;
|
|
15
16
|
trashedBy?: string | undefined;
|
|
16
|
-
_revision?: number | undefined;
|
|
17
17
|
createdAt?: Date | undefined;
|
|
18
18
|
updatedAt?: Date | undefined;
|
|
19
19
|
createdBy?: string | undefined;
|
|
@@ -2,16 +2,16 @@ export declare const languagesHandler: () => Promise<{
|
|
|
2
2
|
code: string;
|
|
3
3
|
name: string;
|
|
4
4
|
default: boolean;
|
|
5
|
-
_id: string;
|
|
6
5
|
_type: "Language";
|
|
6
|
+
_id: string;
|
|
7
7
|
parent?: import("../../..").SelfRelationValue<string> | undefined;
|
|
8
8
|
_schemaVersion?: number | undefined;
|
|
9
9
|
_visibility?: import("../../..").DocumentVisibility | undefined;
|
|
10
10
|
_visibilityBeforeTrash?: Exclude<import("../../..").DocumentVisibility, "trash"> | undefined;
|
|
11
11
|
_trashed?: boolean | undefined;
|
|
12
|
+
_revision?: number | undefined;
|
|
12
13
|
trashedAt?: Date | undefined;
|
|
13
14
|
trashedBy?: string | undefined;
|
|
14
|
-
_revision?: number | undefined;
|
|
15
15
|
createdAt?: Date | undefined;
|
|
16
16
|
updatedAt?: Date | undefined;
|
|
17
17
|
createdBy?: string | undefined;
|
|
@@ -5,15 +5,15 @@ export declare const updateHandler: ({ input, ctx, }: {
|
|
|
5
5
|
ctx: RakunRequestContext;
|
|
6
6
|
}) => Promise<{
|
|
7
7
|
[x: string]: unknown;
|
|
8
|
-
_id: string;
|
|
9
8
|
_type: string;
|
|
9
|
+
_id: string;
|
|
10
10
|
_schemaVersion?: number | undefined;
|
|
11
11
|
_visibility?: import("../../..").DocumentVisibility | undefined;
|
|
12
12
|
_visibilityBeforeTrash?: Exclude<import("../../..").DocumentVisibility, "trash"> | undefined;
|
|
13
13
|
_trashed?: boolean | undefined;
|
|
14
|
+
_revision?: number | undefined;
|
|
14
15
|
trashedAt?: Date | undefined;
|
|
15
16
|
trashedBy?: string | undefined;
|
|
16
|
-
_revision?: number | undefined;
|
|
17
17
|
createdAt?: Date | undefined;
|
|
18
18
|
updatedAt?: Date | undefined;
|
|
19
19
|
createdBy?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../src/api/routes/web/page.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EAGL,QAAQ,EAGT,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,WAAW,MAAM,0BAA0B,CAAC;AAIxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAInD,OAAO,EACL,UAAU,EACV,SAAS,EAEV,MAAM,2BAA2B,CAAC;AASnC,eAAO,MAAM,gBAAgB,EAAE,UAS9B,CAAC;AAQF,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,KAAG,MAUhD,CAAC;AAEF,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,2EAQnC;IACD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,KAAG,OAAO,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../../src/api/routes/web/page.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,EAGL,QAAQ,EAGT,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,WAAW,MAAM,0BAA0B,CAAC;AAIxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAInD,OAAO,EACL,UAAU,EACV,SAAS,EAEV,MAAM,2BAA2B,CAAC;AASnC,eAAO,MAAM,gBAAgB,EAAE,UAS9B,CAAC;AAQF,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,KAAG,MAUhD,CAAC;AAEF,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,2EAQnC;IACD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,KAAG,OAAO,CAAC,UAAU,CA6KrB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,OAAO,SAAS,KAAG,OAAO,CAAC,UAAU,CA4ElE,CAAC"}
|
|
@@ -65,80 +65,80 @@ export const buildPageOutput = async ({ path, route, contentType, contentTypeId,
|
|
|
65
65
|
});
|
|
66
66
|
const { [route.iterator]: modules, ...rest } = populatedTranslated;
|
|
67
67
|
const { seo, ...info } = rest;
|
|
68
|
-
const seoSettingsRaw = await db.find(SeoSettings, {
|
|
69
|
-
key: "default",
|
|
70
|
-
});
|
|
71
|
-
const seoSettings = seoSettingsRaw
|
|
72
|
-
? translateObject(await populateRelations(seoSettingsRaw), language, languages)
|
|
73
|
-
: null;
|
|
74
|
-
const seoSettingsRecord = seoSettings;
|
|
75
|
-
const resolvedSeo = resolveSeo({
|
|
76
|
-
pageSeo: seo,
|
|
77
|
-
defaultSeo: seoSettingsRecord?.defaultSeo,
|
|
78
|
-
settings: seoSettingsRecord,
|
|
79
|
-
path,
|
|
80
|
-
});
|
|
81
|
-
const layoutModuleSelections = (await db.list(RouteLayoutModule, {
|
|
82
|
-
filter: { routeId: route._id },
|
|
83
|
-
options: { limit: "all" },
|
|
84
|
-
})).items;
|
|
85
|
-
const layoutModuleOverrides = (await db.list(RouteLayoutModuleOverride, {
|
|
86
|
-
filter: {
|
|
87
|
-
routeId: route._id,
|
|
88
|
-
contentTypeId,
|
|
89
|
-
},
|
|
90
|
-
options: { limit: "all" },
|
|
91
|
-
})).items;
|
|
92
|
-
const layoutModuleOverrideByKey = new Map(layoutModuleOverrides.map((override) => [override.key, override]));
|
|
93
|
-
const layoutModuleByKey = Object.fromEntries(await Promise.all(layoutModuleSelections.map(async (selection) => {
|
|
94
|
-
const override = layoutModuleOverrideByKey.get(selection.key);
|
|
95
|
-
const moduleId = override ? override.moduleId : selection.moduleId;
|
|
96
|
-
if (!moduleId) {
|
|
97
|
-
return [selection.key, null];
|
|
98
|
-
}
|
|
99
|
-
const layoutContentType = getContentTypeByName(selection.contentType);
|
|
100
|
-
if (!layoutContentType) {
|
|
101
|
-
return [selection.key, null];
|
|
102
|
-
}
|
|
103
|
-
const layoutData = await db.get(layoutContentType, moduleId);
|
|
104
|
-
if (!layoutData) {
|
|
105
|
-
return [selection.key, null];
|
|
106
|
-
}
|
|
107
|
-
const layoutPopulated = await populateRelations(layoutData);
|
|
108
|
-
const layoutProxied = await ProxyOutput(layoutPopulated);
|
|
109
|
-
const layoutTranslated = translateObject(layoutProxied, language, languages);
|
|
110
|
-
return [
|
|
111
|
-
selection.key,
|
|
112
|
-
validateModule(layoutTranslated),
|
|
113
|
-
];
|
|
114
|
-
})));
|
|
115
|
-
const contentModules = (await Promise.all([
|
|
116
|
-
...modules.map((m) => ({
|
|
117
|
-
...m.value,
|
|
118
|
-
})),
|
|
119
|
-
].map(ProxyOutput))).map(validateModule);
|
|
120
|
-
const layout = [
|
|
121
|
-
...layoutModuleSelections
|
|
122
|
-
.sort((a, b) => a.order - b.order)
|
|
123
|
-
.map((selection) => ({
|
|
124
|
-
type: "module",
|
|
125
|
-
key: selection.key,
|
|
126
|
-
module: layoutModuleByKey[selection.key] ?? null,
|
|
127
|
-
order: selection.order,
|
|
128
|
-
})),
|
|
129
|
-
{
|
|
130
|
-
type: "content",
|
|
131
|
-
modules: contentModules,
|
|
132
|
-
order: route.layoutContentOrder,
|
|
133
|
-
},
|
|
134
|
-
]
|
|
135
|
-
.sort((a, b) => a.order - b.order)
|
|
136
|
-
.map(({ order: _order, ...item }) => item);
|
|
137
68
|
return runProxyContext({
|
|
138
69
|
info,
|
|
139
70
|
locale: localeCode,
|
|
140
71
|
type: contentType.name,
|
|
141
72
|
}, async () => {
|
|
73
|
+
const seoSettingsRaw = await db.find(SeoSettings, {
|
|
74
|
+
key: "default",
|
|
75
|
+
});
|
|
76
|
+
const seoSettings = seoSettingsRaw
|
|
77
|
+
? translateObject(await populateRelations(seoSettingsRaw), language, languages)
|
|
78
|
+
: null;
|
|
79
|
+
const seoSettingsRecord = seoSettings;
|
|
80
|
+
const resolvedSeo = resolveSeo({
|
|
81
|
+
pageSeo: seo,
|
|
82
|
+
defaultSeo: seoSettingsRecord?.defaultSeo,
|
|
83
|
+
settings: seoSettingsRecord,
|
|
84
|
+
path,
|
|
85
|
+
});
|
|
86
|
+
const layoutModuleSelections = (await db.list(RouteLayoutModule, {
|
|
87
|
+
filter: { routeId: route._id },
|
|
88
|
+
options: { limit: "all" },
|
|
89
|
+
})).items;
|
|
90
|
+
const layoutModuleOverrides = (await db.list(RouteLayoutModuleOverride, {
|
|
91
|
+
filter: {
|
|
92
|
+
routeId: route._id,
|
|
93
|
+
contentTypeId,
|
|
94
|
+
},
|
|
95
|
+
options: { limit: "all" },
|
|
96
|
+
})).items;
|
|
97
|
+
const layoutModuleOverrideByKey = new Map(layoutModuleOverrides.map((override) => [override.key, override]));
|
|
98
|
+
const layoutModuleByKey = Object.fromEntries(await Promise.all(layoutModuleSelections.map(async (selection) => {
|
|
99
|
+
const override = layoutModuleOverrideByKey.get(selection.key);
|
|
100
|
+
const moduleId = override ? override.moduleId : selection.moduleId;
|
|
101
|
+
if (!moduleId) {
|
|
102
|
+
return [selection.key, null];
|
|
103
|
+
}
|
|
104
|
+
const layoutContentType = getContentTypeByName(selection.contentType);
|
|
105
|
+
if (!layoutContentType) {
|
|
106
|
+
return [selection.key, null];
|
|
107
|
+
}
|
|
108
|
+
const layoutData = await db.get(layoutContentType, moduleId);
|
|
109
|
+
if (!layoutData) {
|
|
110
|
+
return [selection.key, null];
|
|
111
|
+
}
|
|
112
|
+
const layoutPopulated = await populateRelations(layoutData);
|
|
113
|
+
const layoutProxied = await ProxyOutput(layoutPopulated);
|
|
114
|
+
const layoutTranslated = translateObject(layoutProxied, language, languages);
|
|
115
|
+
return [
|
|
116
|
+
selection.key,
|
|
117
|
+
validateModule(layoutTranslated),
|
|
118
|
+
];
|
|
119
|
+
})));
|
|
120
|
+
const contentModules = (await Promise.all([
|
|
121
|
+
...modules.map((m) => ({
|
|
122
|
+
...m.value,
|
|
123
|
+
})),
|
|
124
|
+
].map(ProxyOutput))).map(validateModule);
|
|
125
|
+
const layout = [
|
|
126
|
+
...layoutModuleSelections
|
|
127
|
+
.sort((a, b) => a.order - b.order)
|
|
128
|
+
.map((selection) => ({
|
|
129
|
+
type: "module",
|
|
130
|
+
key: selection.key,
|
|
131
|
+
module: layoutModuleByKey[selection.key] ?? null,
|
|
132
|
+
order: selection.order,
|
|
133
|
+
})),
|
|
134
|
+
{
|
|
135
|
+
type: "content",
|
|
136
|
+
modules: contentModules,
|
|
137
|
+
order: route.layoutContentOrder,
|
|
138
|
+
},
|
|
139
|
+
]
|
|
140
|
+
.sort((a, b) => a.order - b.order)
|
|
141
|
+
.map(({ order: _order, ...item }) => item);
|
|
142
142
|
return {
|
|
143
143
|
renderMode: route.dynamic ? "dynamic" : "static",
|
|
144
144
|
ttl: route.dynamic ? undefined : 86400,
|