talawa-admin / Modules / screens/Users/UsersMocks
Module: screens/Users/UsersMocks
Table of contents
Variables
Variables
EMPTY_MOCKS
• Const
EMPTY_MOCKS: ({ request
: { query
: DocumentNode
= USER_LIST; variables
: { first
: number
= 12; firstName_contains
: string
= ''; lastName_contains
: string
= ''; skip
: number
= 0 } } ; result
: { data
: { organizationsConnection?
: undefined
; users
: never
[] = [] } } } | { request
: { query
: DocumentNode
= ORGANIZATION_CONNECTION_LIST; variables?
: undefined
} ; result
: { data
: { organizationsConnection
: never
[] = []; users?
: undefined
} } })[]
Defined in
src/screens/Users/UsersMocks.ts:392
MOCKS
• Const
MOCKS: ({ request
: { query
: DocumentNode
= USER_ORGANIZATION_LIST; variables
: { first?
: undefined
= 8; firstName_contains?
: undefined
= 'john'; id
: string
= 'user1'; lastName_contains?
: undefined
= ''; skip?
: undefined
= 0 } } ; result
: { data
: { organizationsConnection?
: undefined
; user
: { _id
: string
= 'user1'; adminFor
: { _id
: number
= 1; image
: string
= ''; name
: string
= 'Palisadoes' }[] ; email
: string
= 'John_Does_Palasidoes@gmail.com'; firstName
: string
= 'John'; image
: string
= ''; lastName
: string
= 'Doe'; userType
: string
= 'SUPERADMIN' } ; users?
: undefined
} } } | { request
: { query
: DocumentNode
= USER_LIST; variables
: { first
: number
= 12; firstName_contains
: string
= ''; id?
: undefined
= '123'; lastName_contains
: string
= ''; skip
: number
= 0 } } ; result
: { data
: { organizationsConnection?
: undefined
; user?
: undefined
; users
: { _id
: string
= 'user1'; adminApproved
: boolean
= true; adminFor
: { _id
: string
= '123' }[] ; createdAt
: string
= '20/06/2022'; email
: string
= 'john@example.com'; firstName
: string
= 'John'; image
: null
= null; joinedOrganizations
: { _id
: string
= 'abc'; address
: { city
: string
= 'Kingston'; countryCode
: string
= 'JM'; dependentLocality
: string
= 'Sample Dependent Locality'; line1
: string
= '123 Jamaica Street'; line2
: string
= 'Apartment 456'; postalCode
: string
= 'JM12345'; sortingCode
: string
= 'ABC-123'; state
: string
= 'Kingston Parish' } ; createdAt
: string
= '20/06/2022'; creator
: { _id
: string
= '123'; createdAt
: string
= '20/06/2022'; email
: string
= 'john@example.com'; firstName
: string
= 'John'; image
: null
= null; lastName
: string
= 'Doe' } ; image
: null
= null; name
: string
= 'Joined Organization 1' }[] ; lastName
: string
= 'Doe'; organizationsBlockedBy
: { _id
: string
= 'xyz'; address
: { city
: string
= 'Kingston'; countryCode
: string
= 'JM'; dependentLocality
: string
= 'Sample Dependent Locality'; line1
: string
= '123 Jamaica Street'; line2
: string
= 'Apartment 456'; postalCode
: string
= 'JM12345'; sortingCode
: string
= 'ABC-123'; state
: string
= 'Kingston Parish' } ; createdAt
: string
= '20/06/2022'; creator
: { _id
: string
= '123'; createdAt
: string
= '20/06/2022'; email
: string
= 'john@example.com'; firstName
: string
= 'John'; image
: null
= null; lastName
: string
= 'Doe' } ; image
: null
= null; name
: string
= 'ABC' }[] ; userType
: string
= 'SUPERADMIN' }[] } } } | { request
: { query
: DocumentNode
= ORGANIZATION_CONNECTION_LIST; variables?
: undefined
} ; result
: { data
: { organizationsConnection
: { _id
: number
= 123; address
: { city
: string
= 'Kingston'; countryCode
: string
= 'JM'; dependentLocality
: string
= 'Sample Dependent Locality'; line1
: string
= '123 Jamaica Street'; line2
: string
= 'Apartment 456'; postalCode
: string
= 'JM12345'; sortingCode
: string
= 'ABC-123'; state
: string
= 'Kingston Parish' } ; admins
: { _id
: string
= 'user1' }[] ; createdAt
: string
= '09/11/2001'; creator
: { firstName
: string
= 'John'; lastName
: string
= 'Doe' } ; image
: null
= null; members
: { _id
: string
= 'user1' }[] ; name
: string
= 'Palisadoes' }[] ; user?
: undefined
; users?
: undefined
} } })[]
Defined in
src/screens/Users/UsersMocks.ts:7
MOCKS2
• Const
MOCKS2: ({ request
: { query
: DocumentNode
= USER_ORGANIZATION_LIST; variables
: { first?
: undefined
= 8; firstName_contains?
: undefined
= 'john'; id
: string
= 'user1'; lastName_contains?
: undefined
= ''; skip?
: undefined
= 0 } } ; result
: { data
: { organizationsConnection?
: undefined
; user
: { _id
: string
= 'user1'; adminFor
: { _id
: number
= 1; image
: string
= ''; name
: string
= 'Palisadoes' }[] ; email
: string
= 'John_Does_Palasidoes@gmail.com'; firstName
: string
= 'John'; image
: string
= ''; lastName
: string
= 'Doe'; userType
: string
= 'SUPERADMIN' } ; users?
: undefined
} } } | { request
: { query
: DocumentNode
= USER_LIST; variables
: { first
: number
= 12; firstName_contains
: string
= ''; id?
: undefined
= '123'; lastName_contains
: string
= ''; skip
: number
= 0 } } ; result
: { data
: { organizationsConnection?
: undefined
; user?
: undefined
; users
: { _id
: string
= 'user1'; adminApproved
: boolean
= true; adminFor
: { _id
: string
= '123' }[] ; createdAt
: string
= '20/06/2022'; email
: string
= 'john@example.com'; firstName
: string
= 'John'; image
: null
= null; joinedOrganizations
: { _id
: string
= 'abc'; address
: { city
: string
= 'Kingston'; countryCode
: string
= 'JM'; dependentLocality
: string
= 'Sample Dependent Locality'; line1
: string
= '123 Jamaica Street'; line2
: string
= 'Apartment 456'; postalCode
: string
= 'JM12345'; sortingCode
: string
= 'ABC-123'; state
: string
= 'Kingston Parish' } ; createdAt
: string
= '20/06/2022'; creator
: { _id
: string
= '123'; createdAt
: string
= '20/06/2022'; email
: string
= 'john@example.com'; firstName
: string
= 'John'; image
: null
= null; lastName
: string
= 'Doe' } ; image
: null
= null; name
: string
= 'Joined Organization 1' }[] ; lastName
: string
= 'Doe'; organizationsBlockedBy
: { _id
: string
= 'xyz'; address
: { city
: string
= 'Kingston'; countryCode
: string
= 'JM'; dependentLocality
: string
= 'Sample Dependent Locality'; line1
: string
= '123 Jamaica Street'; line2
: string
= 'Apartment 456'; postalCode
: string
= 'JM12345'; sortingCode
: string
= 'ABC-123'; state
: string
= 'Kingston Parish' } ; createdAt
: string
= '20/06/2022'; creator
: { _id
: string
= '123'; createdAt
: string
= '20/06/2022'; email
: string
= 'john@example.com'; firstName
: string
= 'John'; image
: null
= null; lastName
: string
= 'Doe' } ; image
: null
= null; name
: string
= 'ABC' }[] ; userType
: string
= 'SUPERADMIN' }[] } } } | { request
: { query
: DocumentNode
= ORGANIZATION_CONNECTION_LIST; variables?
: undefined
} ; result
: { data
: { organizationsConnection
: { _id
: number
= 123; address
: { city
: string
= 'Kingston'; countryCode
: string
= 'JM'; dependentLocality
: string
= 'Sample Dependent Locality'; line1
: string
= '123 Jamaica Street'; line2
: string
= 'Apartment 456'; postalCode
: string
= 'JM12345'; sortingCode
: string
= 'ABC-123'; state
: string
= 'Kingston Parish' } ; admins
: { _id
: string
= 'user1' }[] ; createdAt
: string
= '09/11/2001'; creator
: { firstName
: string
= 'John'; lastName
: string
= 'Doe' } ; image
: null
= null; members
: { _id
: string
= 'user1' }[] ; name
: string
= 'Palisadoes' }[] ; user?
: undefined
; users?
: undefined
} } })[]