Skip to content

Commit

Permalink
split mock data & update
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKarow committed Dec 12, 2023
1 parent b15d912 commit 2118a98
Show file tree
Hide file tree
Showing 11 changed files with 131 additions and 9,137 deletions.
9,220 changes: 83 additions & 9,137 deletions packages/ui/mockData/fieldOpt.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"id":"attc_01GW2HHFV3DJ380F351SKB0B74","tag":"additional-information","name":"Additional Information","icon":null,"intDesc":"Misc"},{"id":"attc_01GXS3AYEER4CCSX670S9Z84EB","tag":"alerts","name":"Alerts","icon":null,"intDesc":"Alert messages"},{"id":"attc_01GW2HHFVFKNMYPN8F86M0H576","tag":"cost","name":"Cost","icon":null,"intDesc":null},{"id":"attc_01GW2HHFVGHPW1Y72SA8377623","tag":"eligibility-requirements","name":"Eligibility Requirements","icon":null,"intDesc":null},{"id":"attc_01GW2HHFVJQQ68XGSBXM976BDF","tag":"languages","name":"Languages","icon":null,"intDesc":null},{"id":"attc_01GW2HHFVRSN3W3GYZZ43WCW24","tag":"law-practice-options","name":"Law Practice Options","icon":null,"intDesc":null},{"id":"attc_01GW2HHFVMNHV2ZS5875JWCRJ7","tag":"organization-leadership","name":"Organization Leadership","icon":null,"intDesc":null},{"id":"attc_01GW2HHFVKAMMGPD71H90XRJ38","tag":"service-access-instructions","name":"Service Access Instructions","icon":null,"intDesc":null},{"id":"attc_01GW2HHFVNXMNJNV47BF2BPM1R","tag":"service-focus","name":"Service Focus","icon":null,"intDesc":null},{"id":"attc_01GW2HHFVSQWE2Y2RF3DT2VEYX","tag":"service-provider-options","name":"Service Provider Options","icon":null,"intDesc":null},{"id":"attc_01GW2HHFVKM2PSHFWVFM0TWX1P","tag":"system","name":"System","icon":null,"intDesc":null}]

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/ui/mockData/json/fieldOpt.countries.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/ui/mockData/json/fieldOpt.getSubDistricts.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/ui/mockData/json/fieldOpt.govDists.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/ui/mockData/json/fieldOpt.govDistsByCountry.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/ui/mockData/json/fieldOpt.languages.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/ui/mockData/json/fieldOpt.phoneTypes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"id":"phtp_01GXRXCWJG3F358K8QBX7C08R7","tsKey":"fax","tsNs":"phone-type"},{"id":"phtp_01GXRXCWJGZQDYF577AGZASTPQ","tsKey":"hotline","tsNs":"phone-type"},{"id":"phtp_01GXRXCWJGNF3JF8DEY1EWP1JW","tsKey":"office","tsNs":"phone-type"},{"id":"phtp_01GXRXCWJG7PGQH1A6GGBKATZ4","tsKey":"sms","tsNs":"phone-type"},{"id":"phtp_01GXRXCWJGCZFWCHBGFA5AE5YK","tsKey":"whatsapp","tsNs":"phone-type"}]
39 changes: 39 additions & 0 deletions packages/ui/mockData/serviceArea.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { getTRPCMock, type MockDataObject, type MockHandlerObject } from '~ui/lib/getTrpcMock'

export const serviceAreaData = {
getServiceArea: {
id: 'svar_01GW2HT8D1B1RET8SVAETPBH05',
countries: [],
districts: [
{
govDist: {
id: 'gdst_01GW2HJ23GMD17FBJMJWD16PZ1',
parent: null,
countryId: 'ctry_01GW2HHDK9M26M80SG63T21SVH',
tsKey: 'us-california',
tsNs: 'gov-dist',
},
},
{
govDist: {
id: 'gdst_01GW2HJ2S1061RNRAT6S4RJN1S',
parent: {
id: 'gdst_01GW2HJ23GMD17FBJMJWD16PZ1',
tsKey: 'us-california',
tsNs: 'gov-dist',
},
countryId: 'ctry_01GW2HHDK9M26M80SG63T21SVH',
tsKey: 'us-california-san-francisco-county',
tsNs: 'gov-dist',
},
},
],
},
} satisfies MockDataObject<'serviceArea'>

export const serviceArea = {
getServiceArea: getTRPCMock({
path: ['serviceArea', 'getServiceArea'],
response: serviceAreaData.getServiceArea,
}),
} satisfies MockHandlerObject<'serviceArea'>

0 comments on commit 2118a98

Please sign in to comment.