mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 09:22:15 +00:00
feat(journey): complete sharing, photo drafts and Studio maps
Connect the Journey backend to the web and mobile UI, including public access and subscriptions, day recordings, photo drafts and per-map framing. Preserve legacy recording responses and cover the new behavior in every locale.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { journeyPublicUnlockRequestSchema } from './journey-public.schema';
|
||||
import {
|
||||
journeyCreateRequestSchema,
|
||||
journeyAddTripRequestSchema,
|
||||
@@ -20,7 +21,6 @@ import {
|
||||
journeyUpdateToolSchema,
|
||||
journeyTrackSchema,
|
||||
} from './journey.schema';
|
||||
import { journeyPublicUnlockRequestSchema } from './journey-public.schema';
|
||||
|
||||
import { describe, it, expect } from 'vitest';
|
||||
|
||||
|
||||
@@ -414,11 +414,12 @@ export type JourneyGalleryVideoRequest = z.infer<typeof journeyGalleryVideoReque
|
||||
export const journeyPreferencesRequestSchema = z.looseObject({});
|
||||
export type JourneyPreferencesRequest = z.infer<typeof journeyPreferencesRequestSchema>;
|
||||
|
||||
/**
|
||||
* A share link's password. bcrypt reads at most 72 bytes, so a longer one would
|
||||
* be cut short without anyone noticing.
|
||||
*/
|
||||
export const journeySharePasswordSchema = z.string().min(4).max(72);
|
||||
export const JOURNEY_SHARE_PASSWORD_MIN_LENGTH = 4;
|
||||
export const JOURNEY_SHARE_PASSWORD_MAX_LENGTH = 72;
|
||||
export const journeySharePasswordSchema = z
|
||||
.string()
|
||||
.min(JOURNEY_SHARE_PASSWORD_MIN_LENGTH)
|
||||
.max(JOURNEY_SHARE_PASSWORD_MAX_LENGTH);
|
||||
|
||||
export const journeyShareLinkRequestSchema = z.looseObject({
|
||||
share_timeline: z.unknown().optional(),
|
||||
|
||||
Reference in New Issue
Block a user