2022-06-08 15:31:34 +02:00
|
|
|
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
|
|
|
|
export const environmentSchema = {
|
|
|
|
$id: '#/components/schemas/environmentSchema',
|
|
|
|
type: 'object',
|
|
|
|
additionalProperties: false,
|
|
|
|
required: ['name', 'type', 'enabled'],
|
|
|
|
properties: {
|
|
|
|
name: {
|
|
|
|
type: 'string',
|
|
|
|
},
|
|
|
|
type: {
|
|
|
|
type: 'string',
|
|
|
|
},
|
|
|
|
enabled: {
|
|
|
|
type: 'boolean',
|
|
|
|
},
|
2022-06-10 10:04:56 +02:00
|
|
|
protected: {
|
|
|
|
type: 'boolean',
|
|
|
|
},
|
2022-06-08 15:31:34 +02:00
|
|
|
sortOrder: {
|
|
|
|
type: 'number',
|
|
|
|
},
|
2022-11-11 11:24:56 +01:00
|
|
|
projectCount: {
|
|
|
|
type: 'number',
|
|
|
|
nullable: true,
|
|
|
|
},
|
|
|
|
apiTokenCount: {
|
|
|
|
type: 'number',
|
|
|
|
nullable: true,
|
|
|
|
},
|
|
|
|
enabledToggleCount: {
|
|
|
|
type: 'number',
|
|
|
|
nullable: true,
|
|
|
|
},
|
2022-06-08 15:31:34 +02:00
|
|
|
},
|
|
|
|
components: {},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export type EnvironmentSchema = FromSchema<typeof environmentSchema>;
|