unleash-server
Version:
Unleash is an enterprise ready feature toggles service. It provides different strategies for handling feature toggles.
68 lines (67 loc) • 2.51 kB
TypeScript
import { FromSchema } from 'json-schema-to-ts';
export declare const clientMetricsSchema: {
readonly $id: "#/components/schemas/clientMetricsSchema";
readonly type: "object";
readonly required: readonly ["appName", "bucket"];
readonly properties: {
readonly appName: {
readonly type: "string";
};
readonly instanceId: {
readonly type: "string";
};
readonly environment: {
readonly type: "string";
};
readonly bucket: {
readonly type: "object";
readonly required: readonly ["start", "stop", "toggles"];
readonly properties: {
readonly start: {
readonly $ref: "#/components/schemas/dateSchema";
};
readonly stop: {
readonly $ref: "#/components/schemas/dateSchema";
};
readonly toggles: {
readonly type: "object";
readonly additionalProperties: {
readonly type: "object";
readonly properties: {
readonly yes: {
readonly type: "integer";
readonly minimum: 0;
};
readonly no: {
readonly type: "integer";
readonly minimum: 0;
};
readonly variants: {
readonly type: "object";
readonly additionalProperties: {
readonly type: "integer";
readonly minimum: 0;
};
};
};
};
};
};
};
};
readonly components: {
readonly schemas: {
readonly dateSchema: {
readonly $id: "#/components/schemas/dateSchema";
readonly oneOf: readonly [{
readonly type: "string";
readonly format: "date-time";
}, {
readonly type: "number";
}];
readonly components: {};
};
};
};
};
export declare type ClientMetricsSchema = FromSchema<typeof clientMetricsSchema>;