The Fostering Hub has a global configuration end point, plus separate configuration for the CSV exporter.
Global
The configuration end point for the Fostering Hub can be found at
Example
function(params, credentials) {
return {
/*
* Structure for custodian key value pair is (mhclg code: Name of custodian)
* E.g. 1160: "Plymouth City Council"
*/
custodians: {
5990: "Westminster City Council",
5150: "LB Brent",
5270: "LB Ealing",
5450: "LB Harrow",
5510: "LB Hillingdon",
5600: "Royal Borough of Kensington and Chelsea",
5390: "LB Hammersmith and Fulham",
5540: "LB Hounslow"
},
/* Map Local Authority names to subtypes
* E.g. "Plymouth City Council: plymouthcitycouncil"
*/
subTypeNames: {
"Westminster City Council": "westminster_city_council",
"LB Brent": "lb_brent",
"LB Ealing": "lb_ealing",
"LB Harrow": "lb_harrow",
"LB Hillingdon": "lb_hillingdon",
"Royal Borough of Kensington and Chelsea": "royal_borough_of_kensington_and_chelsea",
"LB Hammersmith and Fulham": "lb_hammersmith_and_fulham",
"LB Hounslow": "lb_hounslow"
},
// Map friendly url text to case subtype
friendlyUrls: {
"hillingdon": "LB Hillingdon",
"brent": "LB Brent",
"hounslow": "LB Hounslow",
"ealing": "LB Ealing",
"harrow": "LB Harrow",
"sharedservice": "Fostering Shared Service",
},
// Number of years address history is needed for
prevAddressYears: 10,
// UK area that encapsulates the Local Authorities
areaName: "West London",
// Whether to add newsletter field in application form
newsletter: false,
// Whether to compress CSV exports
compress: true
};
}
Description
Property | Description |
---|---|
custodians | Maps custodian codes returned from the address lookup to local authorities. The names of the local authorities should match the case subtypes set up in the Fostering Case Type Configuration |
subTypeNames | This is used in the drop-down field on enquiry form when a staff member is filling it out, and by the CSV exporter |
friendlyUrls | If you have dedicated contact pages per local authority, this property maps the final element of the URL to the local authority sub type. See How Subtypes Categorise Cases |
prevAddressYears | Used by the EOI form to calculate how many years worth of addresses need to be provided |
areaName | The area the Fostering Hub covers |
newsletter | True or false, determines whether the newsletter signup field is shown on the enquiry form |
compress | Whether to compress CSV exports |
CSV Exporter
The SFTP configuration is held at
SFTP
function(params, credentials) {
return {
"sftpDetails": {
"key": "",
"path": "",
"password": "",
"port": 22,
"host": "",
"createFolder": "",
"user": ""
}
};
}
function(params, credentials) {
return {
"emailConfig": {
"recipients": [{
"address": "support@gossinteractive.com",
"name": "GOSS"
}],
"useCommsTemplateManager": false
}
};
}