Skip to content

Commit

Permalink
chore: extend FileTypes enum (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak authored Feb 2, 2024
1 parent eb77325 commit 5e29d13
Show file tree
Hide file tree
Showing 10 changed files with 1,020 additions and 163 deletions.
16 changes: 8 additions & 8 deletions examples/data/ldcE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1173,16 +1173,16 @@ export const validLDCE: Schema = {
name: 'https://api.editor.planx.dev/file/private/r34zxe3x/RoaldDahlHut.jpg',
type: [
{
value: 'proposal.photograph',
description: 'Photographs',
value: 'photographs.proposed',
description: 'Photographs - proposed',
},
],
},
{
name: 'https://api.editor.planx.dev/file/private/kopklkj9/Site%20plan.pdf',
type: [
{
value: 'proposal.drawing.sitePlan',
value: 'sitePlan.proposed',
description: 'Site plan - proposed',
},
],
Expand All @@ -1191,7 +1191,7 @@ export const validLDCE: Schema = {
name: 'https://api.editor.planx.dev/file/private/u2vjw69h/Elevations.pdf',
type: [
{
value: 'proposal.drawing.elevation',
value: 'elevations.proposed',
description: 'Elevations - proposed',
},
],
Expand All @@ -1200,7 +1200,7 @@ export const validLDCE: Schema = {
name: 'https://api.editor.planx.dev/file/private/gbaur05c/Plan.pdf',
type: [
{
value: 'proposal.drawing.floorPlan',
value: 'floorPlan.proposed',
description: 'Floor plan - proposed',
},
],
Expand All @@ -1209,8 +1209,8 @@ export const validLDCE: Schema = {
name: 'https://api.editor.planx.dev/file/private/4vhzu4c5/Roald-Dahl-letter-one-use.pdf',
type: [
{
value: 'proposal.document.other.evidence',
description: 'Other - correspondence',
value: 'otherEvidence',
description: 'Other - evidence or correspondence',
},
],
description: 'Nothing really, this is just a test. ',
Expand All @@ -1219,7 +1219,7 @@ export const validLDCE: Schema = {
name: 'https://api.editor.planx.dev/file/private/uz72iu40/Test%20document.pdf',
type: [
{
value: 'proposal.document.construction.invoice',
value: 'constructionInvoice',
description: 'Construction invoice',
},
],
Expand Down
16 changes: 8 additions & 8 deletions examples/data/ldcP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ export const validLDCP: Schema = {
name: 'https://api.editor.planx.dev/file/private/ha2qdn2z/RoofPlan.pdf',
type: [
{
value: 'property.drawing.roofPlan',
value: 'roofPlan.existing',
description: 'Roof plan - existing',
},
],
Expand All @@ -770,7 +770,7 @@ export const validLDCP: Schema = {
name: 'https://api.editor.planx.dev/file/private/3u00rjyw/Site%20plan.pdf',
type: [
{
value: 'property.drawing.sitePlan',
value: 'sitePlan.existing',
description: 'Site plan - existing',
},
],
Expand All @@ -779,7 +779,7 @@ export const validLDCP: Schema = {
name: 'https://api.editor.planx.dev/file/private/g92g9w65/RoofPlan.pdf',
type: [
{
value: 'proposal.drawing.roofPlan',
value: 'roofPlan.proposed',
description: 'Roof plan - proposed',
},
],
Expand All @@ -788,7 +788,7 @@ export const validLDCP: Schema = {
name: 'https://api.editor.planx.dev/file/private/i7tag96k/Site%20plan.pdf',
type: [
{
value: 'proposal.drawing.sitePlan',
value: 'sitePlan.proposed',
description: 'Site plan - proposed',
},
],
Expand All @@ -797,7 +797,7 @@ export const validLDCP: Schema = {
name: 'https://api.editor.planx.dev/file/private/tw50m88n/Elevations.pdf',
type: [
{
value: 'property.drawing.elevation',
value: 'elevations.existing',
description: 'Elevations - existing',
},
],
Expand All @@ -806,7 +806,7 @@ export const validLDCP: Schema = {
name: 'https://api.editor.planx.dev/file/private/diahn9ft/Plan.pdf',
type: [
{
value: 'property.drawing.floorPlan',
value: 'floorPlan.existing',
description: 'Floor plan - existing',
},
],
Expand All @@ -815,7 +815,7 @@ export const validLDCP: Schema = {
name: 'https://api.editor.planx.dev/file/private/0rpf43jj/Elevations.pdf',
type: [
{
value: 'proposal.drawing.elevation',
value: 'elevations.proposed',
description: 'Elevations - proposed',
},
],
Expand All @@ -824,7 +824,7 @@ export const validLDCP: Schema = {
name: 'https://api.editor.planx.dev/file/private/iio7ok5g/Plan.pdf',
type: [
{
value: 'proposal.drawing.floorPlan',
value: 'floorPlan.proposed',
description: 'Floor plan - proposed',
},
],
Expand Down
16 changes: 8 additions & 8 deletions examples/data/planningPermission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1199,11 +1199,11 @@ export const validPlanningPermission: Schema = {
name: 'https://api.editor.planx.dev/file/private/vg0av01p/RoofPlan.pdf',
type: [
{
value: 'property.drawing.roofPlan',
value: 'roofPlan.existing',
description: 'Roof plan - existing',
},
{
value: 'proposal.drawing.roofPlan',
value: 'roofPlan.proposed',
description: 'Roof plan - proposed',
},
],
Expand All @@ -1212,11 +1212,11 @@ export const validPlanningPermission: Schema = {
name: 'https://api.editor.planx.dev/file/private/ka97yl2c/Site%20plan.pdf',
type: [
{
value: 'property.drawing.sitePlan',
value: 'sitePlan.existing',
description: 'Site plan - existing',
},
{
value: 'proposal.drawing.sitePlan',
value: 'sitePlan.proposed',
description: 'Site plan - proposed',
},
],
Expand All @@ -1225,11 +1225,11 @@ export const validPlanningPermission: Schema = {
name: 'https://api.editor.planx.dev/file/private/osprppqo/Elevations.pdf',
type: [
{
value: 'property.drawing.elevation',
value: 'elevations.existing',
description: 'Elevations - existing',
},
{
value: 'proposal.drawing.elevation',
value: 'elevations.proposed',
description: 'Elevations - proposed',
},
],
Expand All @@ -1238,11 +1238,11 @@ export const validPlanningPermission: Schema = {
name: 'https://api.editor.planx.dev/file/private/cri3ziaj/Plan.pdf',
type: [
{
value: 'property.drawing.floorPlan',
value: 'floorPlan.existing',
description: 'Floor plan - existing',
},
{
value: 'proposal.drawing.floorPlan',
value: 'floorPlan.proposed',
description: 'Floor plan - proposed',
},
],
Expand Down
7 changes: 3 additions & 4 deletions examples/data/priorApproval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -740,8 +740,7 @@ export const validPriorApproval: Schema = {
metadata: {autoAnswered: true, sectionName: 'Pay and submit'},
},
{
question:
'What type of prior approval application is it?application.type',
question: 'What type of prior approval application is it?',
responses: [{value: 'Install or change solar panels'}],
metadata: {autoAnswered: true, sectionName: 'Pay and submit'},
},
Expand All @@ -751,7 +750,7 @@ export const validPriorApproval: Schema = {
name: 'https://api.editor.planx.dev/file/private/vab4d0k6/Test%20document.pdf',
type: [
{
value: 'proposal.drawing.other',
value: 'otherDrawing',
description: 'Other - drawing',
},
],
Expand All @@ -760,7 +759,7 @@ export const validPriorApproval: Schema = {
name: 'https://api.editor.planx.dev/file/private/es3w6dgi/Elevations.pdf',
type: [
{
value: 'proposal.drawing.sitePlan',
value: 'sitePlan.proposed',
description: 'Site plan - proposed',
},
],
Expand Down
16 changes: 8 additions & 8 deletions examples/validLawfulDevelopmentCertificateExisting.json
Original file line number Diff line number Diff line change
Expand Up @@ -1795,16 +1795,16 @@
"name": "https://api.editor.planx.dev/file/private/r34zxe3x/RoaldDahlHut.jpg",
"type": [
{
"value": "proposal.photograph",
"description": "Photographs"
"value": "photographs.proposed",
"description": "Photographs - proposed"
}
]
},
{
"name": "https://api.editor.planx.dev/file/private/kopklkj9/Site%20plan.pdf",
"type": [
{
"value": "proposal.drawing.sitePlan",
"value": "sitePlan.proposed",
"description": "Site plan - proposed"
}
]
Expand All @@ -1813,7 +1813,7 @@
"name": "https://api.editor.planx.dev/file/private/u2vjw69h/Elevations.pdf",
"type": [
{
"value": "proposal.drawing.elevation",
"value": "elevations.proposed",
"description": "Elevations - proposed"
}
]
Expand All @@ -1822,7 +1822,7 @@
"name": "https://api.editor.planx.dev/file/private/gbaur05c/Plan.pdf",
"type": [
{
"value": "proposal.drawing.floorPlan",
"value": "floorPlan.proposed",
"description": "Floor plan - proposed"
}
]
Expand All @@ -1831,8 +1831,8 @@
"name": "https://api.editor.planx.dev/file/private/4vhzu4c5/Roald-Dahl-letter-one-use.pdf",
"type": [
{
"value": "proposal.document.other.evidence",
"description": "Other - correspondence"
"value": "otherEvidence",
"description": "Other - evidence or correspondence"
}
],
"description": "Nothing really, this is just a test. "
Expand All @@ -1841,7 +1841,7 @@
"name": "https://api.editor.planx.dev/file/private/uz72iu40/Test%20document.pdf",
"type": [
{
"value": "proposal.document.construction.invoice",
"value": "constructionInvoice",
"description": "Construction invoice"
}
],
Expand Down
16 changes: 8 additions & 8 deletions examples/validLawfulDevelopmentCertificateProposed.json
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@
"name": "https://api.editor.planx.dev/file/private/ha2qdn2z/RoofPlan.pdf",
"type": [
{
"value": "property.drawing.roofPlan",
"value": "roofPlan.existing",
"description": "Roof plan - existing"
}
]
Expand All @@ -1150,7 +1150,7 @@
"name": "https://api.editor.planx.dev/file/private/3u00rjyw/Site%20plan.pdf",
"type": [
{
"value": "property.drawing.sitePlan",
"value": "sitePlan.existing",
"description": "Site plan - existing"
}
]
Expand All @@ -1159,7 +1159,7 @@
"name": "https://api.editor.planx.dev/file/private/g92g9w65/RoofPlan.pdf",
"type": [
{
"value": "proposal.drawing.roofPlan",
"value": "roofPlan.proposed",
"description": "Roof plan - proposed"
}
]
Expand All @@ -1168,7 +1168,7 @@
"name": "https://api.editor.planx.dev/file/private/i7tag96k/Site%20plan.pdf",
"type": [
{
"value": "proposal.drawing.sitePlan",
"value": "sitePlan.proposed",
"description": "Site plan - proposed"
}
]
Expand All @@ -1177,7 +1177,7 @@
"name": "https://api.editor.planx.dev/file/private/tw50m88n/Elevations.pdf",
"type": [
{
"value": "property.drawing.elevation",
"value": "elevations.existing",
"description": "Elevations - existing"
}
]
Expand All @@ -1186,7 +1186,7 @@
"name": "https://api.editor.planx.dev/file/private/diahn9ft/Plan.pdf",
"type": [
{
"value": "property.drawing.floorPlan",
"value": "floorPlan.existing",
"description": "Floor plan - existing"
}
]
Expand All @@ -1195,7 +1195,7 @@
"name": "https://api.editor.planx.dev/file/private/0rpf43jj/Elevations.pdf",
"type": [
{
"value": "proposal.drawing.elevation",
"value": "elevations.proposed",
"description": "Elevations - proposed"
}
]
Expand All @@ -1204,7 +1204,7 @@
"name": "https://api.editor.planx.dev/file/private/iio7ok5g/Plan.pdf",
"type": [
{
"value": "proposal.drawing.floorPlan",
"value": "floorPlan.proposed",
"description": "Floor plan - proposed"
}
]
Expand Down
16 changes: 8 additions & 8 deletions examples/validPlanningPermission.json
Original file line number Diff line number Diff line change
Expand Up @@ -1710,11 +1710,11 @@
"name": "https://api.editor.planx.dev/file/private/vg0av01p/RoofPlan.pdf",
"type": [
{
"value": "property.drawing.roofPlan",
"value": "roofPlan.existing",
"description": "Roof plan - existing"
},
{
"value": "proposal.drawing.roofPlan",
"value": "roofPlan.proposed",
"description": "Roof plan - proposed"
}
]
Expand All @@ -1723,11 +1723,11 @@
"name": "https://api.editor.planx.dev/file/private/ka97yl2c/Site%20plan.pdf",
"type": [
{
"value": "property.drawing.sitePlan",
"value": "sitePlan.existing",
"description": "Site plan - existing"
},
{
"value": "proposal.drawing.sitePlan",
"value": "sitePlan.proposed",
"description": "Site plan - proposed"
}
]
Expand All @@ -1736,11 +1736,11 @@
"name": "https://api.editor.planx.dev/file/private/osprppqo/Elevations.pdf",
"type": [
{
"value": "property.drawing.elevation",
"value": "elevations.existing",
"description": "Elevations - existing"
},
{
"value": "proposal.drawing.elevation",
"value": "elevations.proposed",
"description": "Elevations - proposed"
}
]
Expand All @@ -1749,11 +1749,11 @@
"name": "https://api.editor.planx.dev/file/private/cri3ziaj/Plan.pdf",
"type": [
{
"value": "property.drawing.floorPlan",
"value": "floorPlan.existing",
"description": "Floor plan - existing"
},
{
"value": "proposal.drawing.floorPlan",
"value": "floorPlan.proposed",
"description": "Floor plan - proposed"
}
]
Expand Down
Loading

0 comments on commit 5e29d13

Please sign in to comment.