packages/rest-typings/src/v1/integrations/IntegrationsGetProps.ts
import Ajv from 'ajv';
const ajv = new Ajv();
export type IntegrationsGetProps = { integrationId: string; createdBy?: string };
const integrationsGetSchema = {
type: 'object',
properties: {
integrationId: {
type: 'string',
nullable: false,
},
createdBy: {
type: 'string',
nullable: true,
},
},
required: ['integrationId'],
};
export const isIntegrationsGetProps = ajv.compile<IntegrationsGetProps>(integrationsGetSchema);