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; +}