From f149582a62931b764845d6b01489fc30d73b6dea Mon Sep 17 00:00:00 2001 From: Balu Babu Date: Wed, 25 Oct 2023 20:47:13 +0530 Subject: [PATCH] chore: created shared-request model --- .../shared-request/shared-requests.model.ts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 packages/hoppscotch-backend/src/shared-request/shared-requests.model.ts diff --git a/packages/hoppscotch-backend/src/shared-request/shared-requests.model.ts b/packages/hoppscotch-backend/src/shared-request/shared-requests.model.ts new file mode 100644 index 000000000..50b89d356 --- /dev/null +++ b/packages/hoppscotch-backend/src/shared-request/shared-requests.model.ts @@ -0,0 +1,25 @@ +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; +}