Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: mock data added for #180 #181

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions server/src/google-api/mock.database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,23 @@ export class CalenderMockDb {
getDirectoryPeople(query: string) {
const people: people_v1.Schema$Person[] = [
{
names: [
{
metadata: {
primary: true,
},
displayName: 'Example User',
},
],
photos: [
{
metadata: {
primary: true,
},
url: 'https://example.com/photo.jpg',
},
],

emailAddresses: [
{
metadata: {
Expand All @@ -117,6 +134,22 @@ export class CalenderMockDb {
],
},
{
names: [
{
metadata: {
primary: true,
},
displayName: 'John Doe',
},
],
photos: [
{
metadata: {
primary: true,
},
url: 'https://example.com/photo.jpg',
},
],
emailAddresses: [
{
metadata: {
Expand All @@ -128,6 +161,22 @@ export class CalenderMockDb {
],
},
{
names: [
{
metadata: {
primary: true,
},
displayName: 'Jane Doe',
},
],
photos: [
{
metadata: {
primary: true,
},
url: 'https://example.com/photo.jpg',
},
],
emailAddresses: [
{
metadata: {
Expand All @@ -139,6 +188,22 @@ export class CalenderMockDb {
],
},
{
names: [
{
metadata: {
primary: true,
},
displayName: 'Sam Lee',
},
],
photos: [
{
metadata: {
primary: true,
},
url: 'https://example.com/photo.jpg',
},
],
emailAddresses: [
{
metadata: {
Expand All @@ -150,6 +215,22 @@ export class CalenderMockDb {
],
},
{
names: [
{
metadata: {
primary: true,
},
displayName: 'Test User',
},
],
photos: [
{
metadata: {
primary: true,
},
url: 'https://example.com/photo.jpg',
},
],
emailAddresses: [
{
metadata: {
Expand Down
Loading