Variable: PreferencesNamespace
Makaio Framework / services-core/preferences/storage-namespace / PreferencesNamespace
Variable: PreferencesNamespace
Section titled “Variable: PreferencesNamespace”
constPreferencesNamespace:BusNamespace<"preferences",SubjectRecordFromSchemaRecord<{delete: {request:ZodObject<{category:ZodString;key:ZodObject<{context:ZodOptional<ZodString>;scope:ZodString;surface:ZodOptional<ZodEnum<{app: …;ui: …; }>>;viewport:ZodOptional<ZodEnum<{desktop: …;mobile: …;tablet: …; }>>; },$strip>; },$strip>;response:ZodObject<{success:ZodBoolean; },$strip>; };get: {request:ZodObject<{category:ZodString;key:ZodObject<{context:ZodOptional<ZodString>;scope:ZodString;surface:ZodOptional<ZodEnum<{app: …;ui: …; }>>;viewport:ZodOptional<ZodEnum<{desktop: …;mobile: …;tablet: …; }>>; },$strip>; },$strip>;response:ZodObject<{value:ZodNullable<ZodType<unknown,unknown,$ZodTypeInternals<unknown,unknown>>>; },$strip>; };list: {request:ZodObject<{category:ZodOptional<ZodString>;key:ZodOptional<ZodObject<{context:ZodOptional<ZodOptional<…>>;scope:ZodOptional<ZodString>;surface:ZodOptional<ZodOptional<…>>;viewport:ZodOptional<ZodOptional<…>>; },$strip>>; },$strip>;response:ZodObject<{items:ZodArray<ZodObject<{category:ZodString;key:ZodObject<{context: …;scope: …;surface: …;viewport: …; },$strip>;updatedAt:ZodNumber;value:ZodType<unknown,unknown,$ZodTypeInternals<…, …>>; },$strip>>; },$strip>; };set: {request:ZodObject<{category:ZodString;key:ZodObject<{context:ZodOptional<ZodString>;scope:ZodString;surface:ZodOptional<ZodEnum<{app: …;ui: …; }>>;viewport:ZodOptional<ZodEnum<{desktop: …;mobile: …;tablet: …; }>>; },$strip>;value:ZodType<unknown,unknown,$ZodTypeInternals<unknown,unknown>>; },$strip>;response:ZodObject<{success:ZodBoolean; },$strip>; }; }>, {category:string;key: {context?:string;scope:string;surface?:"ui"|"app";viewport?:"desktop"|"tablet"|"mobile"; };value:unknown; }, {delete: {request:ZodObject<{category:ZodString;key:ZodObject<{context:ZodOptional<ZodString>;scope:ZodString;surface:ZodOptional<ZodEnum<{app:"app";ui:"ui"; }>>;viewport:ZodOptional<ZodEnum<{desktop:"desktop";mobile:"mobile";tablet:"tablet"; }>>; },$strip>; },$strip>;response:ZodObject<{success:ZodBoolean; },$strip>; };get: {request:ZodObject<{category:ZodString;key:ZodObject<{context:ZodOptional<ZodString>;scope:ZodString;surface:ZodOptional<ZodEnum<{app:"app";ui:"ui"; }>>;viewport:ZodOptional<ZodEnum<{desktop:"desktop";mobile:"mobile";tablet:"tablet"; }>>; },$strip>; },$strip>;response:ZodObject<{value:ZodNullable<ZodType<unknown,unknown,$ZodTypeInternals<unknown,unknown>>>; },$strip>; };list: {request:ZodObject<{category:ZodOptional<ZodString>;key:ZodOptional<ZodObject<{context:ZodOptional<ZodOptional<ZodString>>;scope:ZodOptional<ZodString>;surface:ZodOptional<ZodOptional<ZodEnum<…>>>;viewport:ZodOptional<ZodOptional<ZodEnum<…>>>; },$strip>>; },$strip>;response:ZodObject<{items:ZodArray<ZodObject<{category:ZodString;key:ZodObject<{context:ZodOptional<…>;scope:ZodString;surface:ZodOptional<…>;viewport:ZodOptional<…>; },$strip>;updatedAt:ZodNumber;value:ZodType<unknown,unknown,$ZodTypeInternals<unknown,unknown>>; },$strip>>; },$strip>; };set: {request:ZodObject<{category:ZodString;key:ZodObject<{context:ZodOptional<ZodString>;scope:ZodString;surface:ZodOptional<ZodEnum<{app:"app";ui:"ui"; }>>;viewport:ZodOptional<ZodEnum<{desktop:"desktop";mobile:"mobile";tablet:"tablet"; }>>; },$strip>;value:ZodType<unknown,unknown,$ZodTypeInternals<unknown,unknown>>; },$strip>;response:ZodObject<{success:ZodBoolean; },$strip>; }; }>
Defined in: ../../../packages/services/core/src/preferences/storage-namespace.ts:20
Preferences namespace registered with the bus.