Files
hoppscotch/packages/hoppscotch-backend/src/shared-request/shared-requests.model.ts
2023-10-25 20:47:13 +05:30

26 lines
524 B
TypeScript

import { Field, ID, ObjectType } from '@nestjs/graphql';
@ObjectType()
export class SharedRequest {
@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 Shortcode was created',
})
createdOn: Date;
}