Adds /api/health, ntfy notify on config save, /admin/analytics charts, and deploy smoke for miniprogram config/API. Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
572 B
TypeScript
25 lines
572 B
TypeScript
/**
|
|
* Shared remote-config shape for SDK consumers.
|
|
* Portal: lib/remote-config.ts · Mini: apps/miniprogram/.../remoteConfig.defaults.ts
|
|
*/
|
|
export type ModuleToggle = {
|
|
enabled: boolean;
|
|
title: string;
|
|
tabLabel?: string;
|
|
note?: string;
|
|
};
|
|
|
|
export type NomadroRemoteConfig = {
|
|
version: number;
|
|
updatedAt: string;
|
|
modules: Record<string, ModuleToggle>;
|
|
flags: Record<string, boolean>;
|
|
copy: Record<string, string | number>;
|
|
};
|
|
|
|
export const CONFIG_ENDPOINTS = {
|
|
public: "/api/config",
|
|
admin: "/api/admin/config",
|
|
apiV1: "/v1/config",
|
|
} as const;
|