Files
hoppscotch/packages/hoppscotch-backend/src/shortcode/shortcode.model.ts
2023-11-06 13:08:59 +05:30

26 lines
524 B
TypeScript

import { Field, ID, ObjectType } from '@nestjs/graphql';
@ObjectType()
export class Shortcode {
@Field(() => ID, {
description: 'The 12 digit alphanumeric code',
})
id: string;
@Field({
description: 'JSON string representing the request data',
})
request: string;
@Field({
description: 'JSON string representing the properties for an embed',
nullable: true,
})
properties: string;
@Field({
description: 'Timestamp of when the SharedRequest was created',
})
createdOn: Date;
}