Skip to main content

talawa-admin / Modules / screens/OrganizationFunds/OrganizationFundsMocks

Module: screens/OrganizationFunds/OrganizationFundsMocks

Table of contents

Variables

Variables

MOCKS

Const MOCKS: ({ request: { query: DocumentNode = ORGANIZATION_FUNDS; variables: { id: undefined = undefined; isArchived?: undefined = true; isDefault?: undefined = true; name?: undefined = 'ActionItemCategory 1 updated'; organizationId?: undefined = '123'; refrenceNumber?: undefined = '1'; taxDeductible?: undefined = false } } ; result: { data: { createFund?: undefined ; organizations: { funds: { _id: string = '1'; createdAt: string = '2021-07-01T00:00:00.000Z'; isArchived: boolean = false; isDefault: boolean = false; name: string = 'Fund 1'; refrenceNumber: string = '123'; taxDeductible: boolean = true }[] }[] ; removeFund?: undefined ; updateFund?: undefined } } } | { request: { query: DocumentNode = CREATE_FUND_MUTATION; variables: { id?: undefined = '123'; isArchived: boolean = false; isDefault: boolean = false; name: string = 'Test Fund'; organizationId: undefined = undefined; refrenceNumber: string = '1'; taxDeductible: boolean = true } } ; result: { data: { createFund: { _id: string = '3' } ; organizations?: undefined ; removeFund?: undefined ; updateFund?: undefined } } } | { request: { query: DocumentNode = UPDATE_FUND_MUTATION; variables: { id: string = '1'; isArchived: boolean = true; isDefault: boolean = true; name: string = 'Fund 4'; organizationId?: undefined = '123'; refrenceNumber?: undefined = '1'; taxDeductible: boolean = false } } ; result: { data: { createFund?: undefined ; organizations?: undefined ; removeFund?: undefined ; updateFund: { _id: string = '1' } } } } | { request: { query: DocumentNode = REMOVE_FUND_MUTATION; variables: { id: string = '1'; isArchived?: undefined = true; isDefault?: undefined = true; name?: undefined = 'ActionItemCategory 1 updated'; organizationId?: undefined = '123'; refrenceNumber?: undefined = '1'; taxDeductible?: undefined = false } } ; result: { data: { createFund?: undefined ; organizations?: undefined ; removeFund: { _id: string = '1' } ; updateFund?: undefined } } })[]

Defined in

src/screens/OrganizationFunds/OrganizationFundsMocks.tsx:8


MOCKS_ARCHIVED_FUND

Const MOCKS_ARCHIVED_FUND: ({ request: { query: DocumentNode = ORGANIZATION_FUNDS; variables: { id: undefined = undefined; isArchived?: undefined = true } } ; result: { data: { organizations: { funds: { _id: string = '1'; createdAt: string = '2021-07-01T00:00:00.000Z'; isArchived: boolean = false; isDefault: boolean = false; name: string = 'Fund 1'; refrenceNumber: string = '123'; taxDeductible: boolean = true }[] }[] ; updateFund?: undefined } } } | { request: { query: DocumentNode = UPDATE_FUND_MUTATION; variables: { id: string = '1'; isArchived: boolean = true } } ; result: { data: { organizations?: undefined ; updateFund: { _id: string = '1' } } } })[]

Defined in

src/screens/OrganizationFunds/OrganizationFundsMocks.tsx:234


MOCKS_ERROR_ARCHIVED_FUND

Const MOCKS_ERROR_ARCHIVED_FUND: ({ error?: undefined ; request: { query: DocumentNode = ORGANIZATION_FUNDS; variables: { id: undefined = undefined; isArchived?: undefined = true } } ; result: { data: { organizations: { funds: { _id: string = '1'; createdAt: string = '2021-07-01T00:00:00.000Z'; isArchived: boolean = false; isDefault: boolean = false; name: string = 'Fund 1'; refrenceNumber: string = '123'; taxDeductible: boolean = true }[] }[] } } } | { error: Error ; request: { query: DocumentNode = UPDATE_FUND_MUTATION; variables: { id: string = '1'; isArchived: boolean = true } } ; result?: undefined })[]

Defined in

src/screens/OrganizationFunds/OrganizationFundsMocks.tsx:288


MOCKS_ERROR_CREATE_FUND

Const MOCKS_ERROR_CREATE_FUND: ({ error?: undefined ; request: { query: DocumentNode = ORGANIZATION_FUNDS; variables: { id: undefined = undefined; isArchived?: undefined = true; isDefault?: undefined = true; name?: undefined = 'ActionItemCategory 1 updated'; organizationId?: undefined = '123'; refrenceNumber?: undefined = '1'; taxDeductible?: undefined = false } } ; result: { data: { organizations: { funds: { _id: string = '1'; createdAt: string = '2021-07-01T00:00:00.000Z'; isArchived: boolean = false; isDefault: boolean = false; name: string = 'Fund 1'; refrenceNumber: string = '123'; taxDeductible: boolean = true }[] }[] } } } | { error: Error ; request: { query: DocumentNode = CREATE_FUND_MUTATION; variables: { id?: undefined = '123'; isArchived: boolean = false; isDefault: boolean = false; name: string = 'Fund 3'; organizationId: undefined = undefined; refrenceNumber: string = '789'; taxDeductible: boolean = true } } ; result?: undefined })[]

Defined in

src/screens/OrganizationFunds/OrganizationFundsMocks.tsx:111


MOCKS_ERROR_ORGANIZATIONS_FUNDS

Const MOCKS_ERROR_ORGANIZATIONS_FUNDS: { error: Error ; request: { query: DocumentNode = ORGANIZATION_FUNDS; variables: { organizationId: string = '1' } } }[]

Defined in

src/screens/OrganizationFunds/OrganizationFundsMocks.tsx:100


MOCKS_ERROR_REMOVE_FUND

Const MOCKS_ERROR_REMOVE_FUND: ({ error?: undefined ; request: { query: DocumentNode = ORGANIZATION_FUNDS; variables: { id: undefined = undefined; isArchived?: undefined = true; isDefault?: undefined = true; name?: undefined = 'ActionItemCategory 1 updated'; organizationId?: undefined = '123'; refrenceNumber?: undefined = '1'; taxDeductible?: undefined = false } } ; result: { data: { createFund?: undefined ; organizations: { funds: { _id: string = '3'; createdAt: string = '2021-07-01T00:00:00.000Z'; isArchived: boolean = false; isDefault: boolean = false; name: string = 'Fund 1'; refrenceNumber: string = '123'; taxDeductible: boolean = true }[] }[] ; updateFund?: undefined } } } | { error?: undefined ; request: { query: DocumentNode = CREATE_FUND_MUTATION; variables: { id?: undefined = '123'; isArchived: boolean = false; isDefault: boolean = false; name: string = 'Fund 3'; organizationId: undefined = undefined; refrenceNumber: string = '789'; taxDeductible: boolean = true } } ; result: { data: { createFund: { _id: string = '3' } ; organizations?: undefined ; updateFund?: undefined } } } | { error?: undefined ; request: { query: DocumentNode = UPDATE_FUND_MUTATION; variables: { id: undefined = undefined; isArchived: boolean = false; isDefault: boolean = false; name: string = 'Fund 1'; organizationId?: undefined = '123'; refrenceNumber?: undefined = '1'; taxDeductible: boolean = true } } ; result: { data: { createFund?: undefined ; organizations?: undefined ; updateFund: { _id: string = '1' } } } } | { error: Error ; request: { query: DocumentNode = REMOVE_FUND_MUTATION; variables: { id: undefined = undefined; isArchived?: undefined = true; isDefault?: undefined = true; name?: undefined = 'ActionItemCategory 1 updated'; organizationId?: undefined = '123'; refrenceNumber?: undefined = '1'; taxDeductible?: undefined = false } } ; result?: undefined })[]

Defined in

src/screens/OrganizationFunds/OrganizationFundsMocks.tsx:438


MOCKS_ERROR_UNARCHIVED_FUND

Const MOCKS_ERROR_UNARCHIVED_FUND: ({ error?: undefined ; request: { query: DocumentNode = ORGANIZATION_FUNDS; variables: { id: undefined = undefined; isArchived?: undefined = true } } ; result: { data: { organizations: { funds: { _id: string = '1'; createdAt: string = '2021-07-01T00:00:00.000Z'; isArchived: boolean = true; isDefault: boolean = false; name: string = 'Fund 1'; refrenceNumber: string = '123'; taxDeductible: boolean = true }[] }[] } } } | { error: Error ; request: { query: DocumentNode = UPDATE_FUND_MUTATION; variables: { id: string = '1'; isArchived: boolean = false } } ; result?: undefined })[]

Defined in

src/screens/OrganizationFunds/OrganizationFundsMocks.tsx:390


MOCKS_ERROR_UPDATE_FUND

Const MOCKS_ERROR_UPDATE_FUND: ({ error?: undefined ; request: { query: DocumentNode = ORGANIZATION_FUNDS; variables: { id: undefined = undefined; isArchived?: undefined = true; isDefault?: undefined = true; name?: undefined = 'ActionItemCategory 1 updated'; organizationId?: undefined = '123'; refrenceNumber?: undefined = '1'; taxDeductible?: undefined = false } } ; result: { data: { createFund?: undefined ; organizations: { funds: { _id: string = '1'; createdAt: string = '2021-07-01T00:00:00.000Z'; isArchived: boolean = false; isDefault: boolean = false; name: string = 'Fund 1'; refrenceNumber: string = '123'; taxDeductible: boolean = true }[] }[] } } } | { error?: undefined ; request: { query: DocumentNode = CREATE_FUND_MUTATION; variables: { id?: undefined = '123'; isArchived: boolean = false; isDefault: boolean = false; name: string = 'Fund 3'; organizationId: undefined = undefined; refrenceNumber: string = '789'; taxDeductible: boolean = true } } ; result: { data: { createFund: { _id: string = '3' } ; organizations?: undefined } } } | { error: Error ; request: { query: DocumentNode = UPDATE_FUND_MUTATION; variables: { id: undefined = undefined; isArchived: boolean = false; isDefault: boolean = false; name: string = 'Fund 1'; organizationId?: undefined = '123'; refrenceNumber?: undefined = '1'; taxDeductible: boolean = true } } ; result?: undefined })[]

Defined in

src/screens/OrganizationFunds/OrganizationFundsMocks.tsx:163


MOCKS_UNARCHIVED_FUND

Const MOCKS_UNARCHIVED_FUND: ({ request: { query: DocumentNode = ORGANIZATION_FUNDS; variables: { id: undefined = undefined; isArchived?: undefined = true } } ; result: { data: { organizations: { funds: { _id: string = '1'; createdAt: string = '2021-07-01T00:00:00.000Z'; isArchived: boolean = true; isDefault: boolean = false; name: string = 'Fund 1'; refrenceNumber: string = '123'; taxDeductible: boolean = true }[] }[] ; updateFund?: undefined } } } | { request: { query: DocumentNode = UPDATE_FUND_MUTATION; variables: { id: string = '1'; isArchived: boolean = false } } ; result: { data: { organizations?: undefined ; updateFund: { _id: string = '1' } } } })[]

Defined in

src/screens/OrganizationFunds/OrganizationFundsMocks.tsx:336