2022-06-22 12:49:18 +02:00
|
|
|
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
|
|
|
|
export const addonSchema = {
|
|
|
|
$id: '#/components/schemas/addonSchema',
|
|
|
|
type: 'object',
|
|
|
|
required: ['provider', 'enabled', 'parameters', 'events'],
|
|
|
|
properties: {
|
|
|
|
id: {
|
|
|
|
type: 'number',
|
|
|
|
},
|
|
|
|
createdAt: {
|
|
|
|
type: 'string',
|
|
|
|
format: 'date-time',
|
|
|
|
nullable: true,
|
|
|
|
},
|
|
|
|
provider: {
|
|
|
|
type: 'string',
|
|
|
|
},
|
|
|
|
description: {
|
|
|
|
type: 'string',
|
|
|
|
},
|
|
|
|
enabled: {
|
|
|
|
type: 'boolean',
|
|
|
|
},
|
|
|
|
parameters: {
|
|
|
|
type: 'object',
|
|
|
|
additionalProperties: true,
|
|
|
|
},
|
|
|
|
events: {
|
|
|
|
type: 'array',
|
|
|
|
items: {
|
|
|
|
type: 'string',
|
|
|
|
},
|
|
|
|
},
|
2022-07-12 14:13:25 +02:00
|
|
|
projects: {
|
|
|
|
type: 'array',
|
|
|
|
items: {
|
|
|
|
type: 'string',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
environments: {
|
|
|
|
type: 'array',
|
|
|
|
items: {
|
|
|
|
type: 'string',
|
|
|
|
},
|
|
|
|
},
|
2022-06-22 12:49:18 +02:00
|
|
|
},
|
|
|
|
components: {},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export type AddonSchema = FromSchema<typeof addonSchema>;
|