-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maciej Szewczyk
committed
Dec 11, 2024
1 parent
10026b2
commit bdf7289
Showing
11 changed files
with
421 additions
and
281 deletions.
There are no files selected for viewing
511 changes: 253 additions & 258 deletions
511
src/frontend/fixtures/targeting/fakeAllTargetPopulation.ts
Large diffs are not rendered by default.
Oops, something went wrong.
137 changes: 137 additions & 0 deletions
137
src/frontend/fixtures/targeting/fakeApolloAllTargetPopulation.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
import { AllTargetPopulationsDocument } from '../../src/__generated__/graphql'; | ||
|
||
export const fakeApolloAllTargetPopulation = [ | ||
{ | ||
request: { | ||
query: AllTargetPopulationsDocument, | ||
variables: { | ||
name: '', | ||
totalHouseholdsCountMin: null, | ||
totalHouseholdsCountMax: null, | ||
status: '', | ||
businessArea: 'afghanistan', | ||
program: [ | ||
'UHJvZ3JhbU5vZGU6YzRkNTY1N2QtMWEyOS00NmUxLTgxOTAtZGY3Zjg1YTBkMmVm', | ||
], | ||
createdAtRange: '{"min":null,"max":null}', | ||
first: 10, | ||
orderBy: '-created_at', | ||
}, | ||
}, | ||
result: { | ||
data: { | ||
allTargetPopulation: { | ||
edges: [ | ||
{ | ||
node: { | ||
id: 'VGFyZ2V0UG9wdWxhdGlvbk5vZGU6MjQyZmQ4NDQtOTYzOC00MTdhLTkzZWMtYjQzMjY0Y2Y4YmRj', | ||
name: 'Our ball many investment look like.', | ||
status: 'READY_FOR_CASH_ASSIST', | ||
createdAt: '2023-09-29T10:52:33.042363+00:00', | ||
updatedAt: '2023-09-29T10:52:33.068191+00:00', | ||
totalHouseholdsCount: 0, | ||
totalHouseholdsCountWithValidPhoneNo: 0, | ||
totalIndividualsCount: null, | ||
__typename: 'TargetPopulationNode', | ||
program: { | ||
id: 'UHJvZ3JhbU5vZGU6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtZmFjZWIwMGMwMDAw', | ||
name: 'Test Program', | ||
__typename: 'ProgramNode', | ||
}, | ||
createdBy: { | ||
id: 'VXNlck5vZGU6M2ZlNWE2OGMtYTI3Mi00Y2UzLWE3YzgtODhkNWIyOTY1YjMy', | ||
firstName: 'Mary', | ||
lastName: 'Reyes', | ||
__typename: 'UserNode', | ||
}, | ||
}, | ||
cursor: 'YXJyYXljb25uZWN0aW9uOjA=', | ||
__typename: 'TargetPopulationNodeEdge', | ||
}, | ||
{ | ||
node: { | ||
id: 'VGFyZ2V0UG9wdWxhdGlvbk5vZGU6YjI0ZDA5ZTUtN2E1Yy00MjgyLWI4ZmItYWY4MDkwMGY5YzRm', | ||
name: 'Less road structure audience those modern.', | ||
status: 'READY_FOR_CASH_ASSIST', | ||
createdAt: '2023-09-29T10:52:30.379605+00:00', | ||
updatedAt: '2023-09-29T10:52:30.412142+00:00', | ||
totalHouseholdsCount: 0, | ||
totalHouseholdsCountWithValidPhoneNo: 0, | ||
totalIndividualsCount: null, | ||
__typename: 'TargetPopulationNode', | ||
program: { | ||
id: 'UHJvZ3JhbU5vZGU6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtZmFjZWIwMGMwMDAw', | ||
name: 'Test Program', | ||
__typename: 'ProgramNode', | ||
}, | ||
createdBy: { | ||
id: 'VXNlck5vZGU6ZDA0MjdlNjktN2U1Mi00NmYzLTljNjItMGU1YzJlZWRjNGYz', | ||
firstName: 'Elizabeth', | ||
lastName: 'Coleman', | ||
__typename: 'UserNode', | ||
}, | ||
}, | ||
cursor: 'YXJyYXljb25uZWN0aW9uOjE=', | ||
__typename: 'TargetPopulationNodeEdge', | ||
}, | ||
{ | ||
node: { | ||
id: 'VGFyZ2V0UG9wdWxhdGlvbk5vZGU6YzBiMzE0NjItNmIzMC00OGNiLTljMmMtZDgzM2JkZTJmNGYx', | ||
name: 'Score visit write ask whole myself.', | ||
status: 'READY_FOR_CASH_ASSIST', | ||
createdAt: '2023-09-29T10:52:30.190168+00:00', | ||
updatedAt: '2023-09-29T10:52:30.220259+00:00', | ||
totalHouseholdsCount: 0, | ||
totalHouseholdsCountWithValidPhoneNo: 0, | ||
totalIndividualsCount: null, | ||
__typename: 'TargetPopulationNode', | ||
program: { | ||
id: 'UHJvZ3JhbU5vZGU6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtZmFjZWIwMGMwMDAw', | ||
name: 'Test Program', | ||
__typename: 'ProgramNode', | ||
}, | ||
createdBy: { | ||
id: 'VXNlck5vZGU6ODE3OWIyMDAtZjBhZC00OWYyLWJjZDItNTYwZjUxZDZlOGNj', | ||
firstName: 'Jennifer', | ||
lastName: 'Bailey', | ||
__typename: 'UserNode', | ||
}, | ||
}, | ||
cursor: 'YXJyYXljb25uZWN0aW9uOjI=', | ||
__typename: 'TargetPopulationNodeEdge', | ||
}, | ||
{ | ||
node: { | ||
id: 'VGFyZ2V0UG9wdWxhdGlvbk5vZGU6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtZmFjZWIwMGMwMTIz', | ||
name: 'Test Target Population', | ||
status: 'ASSIGNED', | ||
createdAt: '2023-09-29T10:52:29.726956+00:00', | ||
updatedAt: '2023-09-29T10:52:29.779197+00:00', | ||
totalHouseholdsCount: 2, | ||
totalHouseholdsCountWithValidPhoneNo: 0, | ||
totalIndividualsCount: 8, | ||
__typename: 'TargetPopulationNode', | ||
program: { | ||
id: 'UHJvZ3JhbU5vZGU6MDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtZmFjZWIwMGMwMDAw', | ||
name: 'Test Program', | ||
__typename: 'ProgramNode', | ||
}, | ||
createdBy: { | ||
id: 'VXNlck5vZGU6NDE5NmMyYzUtYzJkZC00OGQyLTg4N2YtM2E5ZDM5ZTc4OTE2', | ||
firstName: 'Root', | ||
lastName: 'Rootkowski', | ||
__typename: 'UserNode', | ||
}, | ||
}, | ||
cursor: 'YXJyYXljb25uZWN0aW9uOjM=', | ||
__typename: 'TargetPopulationNodeEdge', | ||
}, | ||
], | ||
totalCount: 4, | ||
edgeCount: 4, | ||
__typename: 'TargetPopulationNodeConnection', | ||
}, | ||
}, | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.