mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
feat(voice): add opt-in peer-to-peer calls and country rollouts (#3367)
This commit is contained in:
1 parent
e5a568acca
commit
bef5e33eec
215 files changed
+15840
-2693
No files matched your search
@@ -9,6 +9,7 @@ import {
|
||||
INERT_PLUTONIUM_PAGE_ASSIGNMENT,
|
||||
PlutoniumPageAssignmentResponse,
|
||||
} from '@fluxer/schema/src/domains/admin/PlutoniumPageSchemas';
|
||||
import {INERT_VOICE_P2P_ASSIGNMENT, VoiceP2pAssignmentResponse} from '@fluxer/schema/src/domains/admin/VoiceP2pSchemas';
|
||||
import {z} from 'zod';
|
||||
|
||||
export const EXPERIMENT_MIN_POLL_INTERVAL_SECONDS = 60;
|
||||
@@ -49,6 +50,7 @@ const ExperimentAssignmentsSchema = z.object({
|
||||
domain_migration: DomainMigrationAssignmentResponse.optional(),
|
||||
channel_threads: ChannelThreadsAssignmentResponse.optional(),
|
||||
plutonium_page: PlutoniumPageAssignmentResponse.optional(),
|
||||
voice_p2p: VoiceP2pAssignmentResponse.optional(),
|
||||
});
|
||||
|
||||
export const ExperimentAssignmentsResponse = z.object({
|
||||
@@ -80,3 +82,7 @@ export function readChannelThreadsAssignment(
|
||||
export function readPlutoniumPageAssignment(response: ExperimentAssignmentsResponse): PlutoniumPageAssignmentResponse {
|
||||
return response.assignments.plutonium_page ?? INERT_PLUTONIUM_PAGE_ASSIGNMENT;
|
||||
}
|
||||
|
||||
export function readVoiceP2pAssignment(response: ExperimentAssignmentsResponse): VoiceP2pAssignmentResponse {
|
||||
return response.assignments.voice_p2p ?? INERT_VOICE_P2P_ASSIGNMENT;
|
||||
}
|
||||
Reference in new issue
Block a user