mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
e3c9eaae3a
* feat: support filtering on project and environment fields for events Co-authored-by: Nuno Góis <github@nunogois.com>
52 lines
1.1 KiB
TypeScript
52 lines
1.1 KiB
TypeScript
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',
|
|
},
|
|
},
|
|
projects: {
|
|
type: 'array',
|
|
items: {
|
|
type: 'string',
|
|
},
|
|
},
|
|
environments: {
|
|
type: 'array',
|
|
items: {
|
|
type: 'string',
|
|
},
|
|
},
|
|
},
|
|
components: {},
|
|
} as const;
|
|
|
|
export type AddonSchema = FromSchema<typeof addonSchema>;
|