initial commit for welsh government planning appeals application

This commit is contained in:
2021-07-26 16:53:32 +01:00
parent 58f468c275
commit f0f15b4f6e
163 changed files with 15097 additions and 0 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+33
View File
@@ -0,0 +1,33 @@
pinswg_dns
pinswg_planningobligationappeals106
pinswg_planningconditionss73s79
pinswg_row
pinswg_transportandworkact
pinswg_harbourrevisionorder
pinswg_miscellaneouscasework
pinswg_planningappeals78
pinswg_lawfuldevelopmentcertificate
pinswg_householderappealhas
pinswg_enforcementlistedbuildingconservationap
pinswg_callinss77
pinswg_commonland
pinswg_adverts
pinswg_hedgeshedgerowstreepreservationreplacem
pinswg_compulsorypurchaseorders
pinswg_communityinfrastructurelevys117118119
pinswg_objectiveconfig
pinswg_nonvalidation
pinswg_caseinvolvement
pinswg_advertisementappealanddiscontinuance
pinswg_documenthistory
pinswg_document
pinswg_wayleave
pinswg_listedbuildingandconservationareaconsen
pinswg_environmentalpermitting
pinswg_enforcementnoticeappeals174
pinswg_ldp
pinswg_maintenanceoflands217
pinswg_electricityact
https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/EntityDefinitions(LogicalName='incident')/Attributes(LogicalName='pinswg_appealcasetype')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?$select=LogicalName&$expand=GlobalOptionSet($select=Options)
File diff suppressed because one or more lines are too long
+17
View File
@@ -0,0 +1,17 @@
const ApiResponse = (req, res) => {
res.statusCode = 200;
res.json({
data: {
firstname: "Steve",
lastname: "Johnson",
email: "steve@test.co.uk",
telephone: "0000000000",
companygroup: "Test Company",
addressline1: "1 Test Street",
towncity: "TestTown",
county: "Test County",
postcode: "TN12 12N",
},
});
};
export default ApiResponse;
File diff suppressed because it is too large Load Diff
+251
View File
@@ -0,0 +1,251 @@
const ApiResponse = (req, res) => {
res.statusCode = 200;
res.json({
"@odata.context":
"https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#EntityDefinitions('pinswg_householderappealhas')/Attributes/Microsoft.Dynamics.CRM.PicklistAttributeMetadata(LogicalName,GlobalOptionSet,GlobalOptionSet(Options))/$entity",
"LogicalName": "pinswg_appointedby",
"MetadataId": "3c10eef7-6f85-eb11-aac2-00224800be9c",
"GlobalOptionSet": {
"@odata.type": "#Microsoft.Dynamics.CRM.OptionSetMetadata",
"Options": [
{
"Value": 846040000,
"Label": {
"LocalizedLabels": [
{
"Label": "MHCLG",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"899c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "MHCLG",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"899c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"8b9c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"8b9c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040001,
"Label": {
"LocalizedLabels": [
{
"Label": "Welsh Government",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"8c9c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Welsh Government",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"8c9c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"8e9c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"8e9c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040003,
"Label": {
"LocalizedLabels": [
{
"Label": "Secretary of State for Transport",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"929c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Secretary of State for Transport",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"929c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"949c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"949c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040004,
"Label": {
"LocalizedLabels": [
{
"Label": "BEIS",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"959c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "BEIS",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"959c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"979c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"979c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040005,
"Label": {
"LocalizedLabels": [
{
"Label": "Council",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"989c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Council",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"989c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"9a9c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"9a9c9260-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
],
"MetadataId": "869c9260-3683-eb11-aac0-00224800be9c",
},
});
};
export default ApiResponse;
+157
View File
@@ -0,0 +1,157 @@
const ApiResponse = (req, res) => {
res.statusCode = 200;
res.json({
"@odata.context":
"https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#EntityDefinitions('pinswg_householderappealhas')/Attributes/Microsoft.Dynamics.CRM.PicklistAttributeMetadata(LogicalName,GlobalOptionSet,GlobalOptionSet(Options))/$entity",
"LogicalName": "pinswg_band",
"MetadataId": "bddafa01-7085-eb11-aac2-00224800be9c",
"GlobalOptionSet": {
"@odata.type": "#Microsoft.Dynamics.CRM.OptionSetMetadata",
"Options": [
{
"Value": 846040000,
"Label": {
"LocalizedLabels": [
{
"Label": "Band 1",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"3d8e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Band 1",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"3d8e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"3f8e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"3f8e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040001,
"Label": {
"LocalizedLabels": [
{
"Label": "Band 2",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"408e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Band 2",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"408e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"428e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"428e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040002,
"Label": {
"LocalizedLabels": [
{
"Label": "Band 3",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"438e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Band 3",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"438e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"458e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"458e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
],
"MetadataId": "3a8e4173-3683-eb11-aac0-00224800be9c",
},
});
};
export default ApiResponse;
+441
View File
@@ -0,0 +1,441 @@
const ApiResponse = (req, res) => {
res.statusCode = 200;
res.json({
"@odata.context":
"https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#EntityDefinitions('pinswg_householderappealhas')/Attributes/Microsoft.Dynamics.CRM.PicklistAttributeMetadata(LogicalName,GlobalOptionSet,GlobalOptionSet(Options))/$entity",
"LogicalName": "pinswg_casetype",
"MetadataId": "fa824014-7085-eb11-aac2-00224800be9c",
"GlobalOptionSet": {
"@odata.type": "#Microsoft.Dynamics.CRM.OptionSetMetadata",
"Options": [
{
"Value": 846040000,
"Label": {
"LocalizedLabels": [
{
"Label": "Planning Appeal",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"fd6d05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Planning Appeal",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"fd6d05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"ff6d05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"ff6d05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040001,
"Label": {
"LocalizedLabels": [
{
"Label":
"Listed Building Conservation Area Appeal",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"006e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Listed Building Conservation Area Appeal",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"006e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"026e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"026e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040002,
"Label": {
"LocalizedLabels": [
{
"Label": "Planning Conditions Appeal",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"036e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Planning Conditions Appeal",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"036e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"056e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"056e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040003,
"Label": {
"LocalizedLabels": [
{
"Label": "Planning Obligations Appeal",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"066e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Planning Obligations Appeal",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"066e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"086e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"086e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040004,
"Label": {
"LocalizedLabels": [
{
"Label": "Householder/Minor Commercial Appeal",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"096e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Householder/Minor Commercial Appeal",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"096e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"0b6e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"0b6e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040005,
"Label": {
"LocalizedLabels": [
{
"Label": "Advertisement Appeal",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"0c6e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Advertisement Appeal",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"0c6e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"0e6e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"0e6e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040006,
"Label": {
"LocalizedLabels": [
{
"Label":
"Lawful Development Certificate Appeal",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"0f6e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Lawful Development Certificate Appeal",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"0f6e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"116e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"116e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040007,
"Label": {
"LocalizedLabels": [
{
"Label": "Community Infrastructure Levy Appeal",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"126e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Community Infrastructure Levy Appeal",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"126e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"146e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"146e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040008,
"Label": {
"LocalizedLabels": [
{
"Label": "Call-In Application",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"156e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Call-In Application",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"156e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"176e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"176e05d7-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
],
"MetadataId": "fa6d05d7-3683-eb11-aac0-00224800be9c",
},
});
};
export default ApiResponse;
+157
View File
@@ -0,0 +1,157 @@
const ApiResponse = (req, res) => {
res.statusCode = 200;
res.json({
"@odata.context":
"https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#EntityDefinitions('pinswg_householderappealhas')/Attributes/Microsoft.Dynamics.CRM.PicklistAttributeMetadata(LogicalName,GlobalOptionSet,GlobalOptionSet(Options))/$entity",
"LogicalName": "pinswg_band",
"MetadataId": "bddafa01-7085-eb11-aac2-00224800be9c",
"GlobalOptionSet": {
"@odata.type": "#Microsoft.Dynamics.CRM.OptionSetMetadata",
"Options": [
{
"Value": 846040000,
"Label": {
"LocalizedLabels": [
{
"Label": "Band 1",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"3d8e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Band 1",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"3d8e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"3f8e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"3f8e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040001,
"Label": {
"LocalizedLabels": [
{
"Label": "Band 2",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"408e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Band 2",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"408e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"428e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"428e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040002,
"Label": {
"LocalizedLabels": [
{
"Label": "Band 3",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"438e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Band 3",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"438e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"458e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"458e4173-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
],
"MetadataId": "3a8e4173-3683-eb11-aac0-00224800be9c",
},
});
};
export default ApiResponse;
+204
View File
@@ -0,0 +1,204 @@
const ApiResponse = (req, res) => {
res.statusCode = 200;
res.json({
"@odata.context":
"https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#EntityDefinitions('pinswg_householderappealhas')/Attributes/Microsoft.Dynamics.CRM.PicklistAttributeMetadata(LogicalName,GlobalOptionSet,GlobalOptionSet(Options))/$entity",
"LogicalName": "pinswg_decision",
"MetadataId": "3e383643-7085-eb11-aac2-00224800be9c",
"GlobalOptionSet": {
"@odata.type": "#Microsoft.Dynamics.CRM.OptionSetMetadata",
"Options": [
{
"Value": 846040000,
"Label": {
"LocalizedLabels": [
{
"Label": "Allowed",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"4de653f8-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Allowed",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"4de653f8-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"4fe653f8-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"4fe653f8-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040001,
"Label": {
"LocalizedLabels": [
{
"Label": "Dismissed",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"50e653f8-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Dismissed",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"50e653f8-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"52e653f8-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"52e653f8-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040002,
"Label": {
"LocalizedLabels": [
{
"Label": "Split Decision",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"53e653f8-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Split Decision",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"53e653f8-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"55e653f8-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"55e653f8-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040003,
"Label": {
"LocalizedLabels": [
{
"Label": "Invalid",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"56e653f8-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Invalid",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"56e653f8-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"58e653f8-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"58e653f8-3683-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
],
"MetadataId": "4ae653f8-3683-eb11-aac0-00224800be9c",
},
});
};
export default ApiResponse;
+347
View File
@@ -0,0 +1,347 @@
const ApiResponse = (req, res) => {
res.statusCode = 200;
res.json({
"@odata.context":
"https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#EntityDefinitions('pinswg_householderappealhas')/Attributes/Microsoft.Dynamics.CRM.PicklistAttributeMetadata(LogicalName,GlobalOptionSet,GlobalOptionSet(Options))/$entity",
"LogicalName": "pinswg_decisionbranch",
"MetadataId": "15429e52-7085-eb11-aac2-00224800be9c",
"GlobalOptionSet": {
"@odata.type": "#Microsoft.Dynamics.CRM.OptionSetMetadata",
"Options": [
{
"Value": 846040000,
"Label": {
"LocalizedLabels": [
{
"Label": "The Welsh Ministers",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"a9d887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "The Welsh Ministers",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"a9d887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"abd887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"abd887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040001,
"Label": {
"LocalizedLabels": [
{
"Label": "PINS",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"acd887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "PINS",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"acd887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"aed887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"aed887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040002,
"Label": {
"LocalizedLabels": [
{
"Label": "BEIS",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"afd887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "BEIS",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"afd887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"b1d887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"b1d887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040003,
"Label": {
"LocalizedLabels": [
{
"Label": "Department for Transport",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"b2d887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "Department for Transport",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"b2d887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"b4d887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"b4d887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040004,
"Label": {
"LocalizedLabels": [
{
"Label": "County Council",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"b5d887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "County Council",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"b5d887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"b7d887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"b7d887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040005,
"Label": {
"LocalizedLabels": [
{
"Label":
"Department for Transport (Bridges and Ferries)",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"b8d887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label":
"Department for Transport (Bridges and Ferries)",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"b8d887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"bad887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"bad887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
{
"Value": 846040006,
"Label": {
"LocalizedLabels": [
{
"Label": "MHCLG",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"bbd887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "MHCLG",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"bbd887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Description": {
"LocalizedLabels": [
{
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"bdd887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
],
"UserLocalizedLabel": {
"Label": "",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId":
"bdd887c2-3783-eb11-aac0-00224800be9c",
"HasChanged": null,
},
},
"Color": "#0000ff",
"IsManaged": false,
"MetadataId": null,
"HasChanged": null,
},
],
"MetadataId": "a6d887c2-3783-eb11-aac0-00224800be9c",
},
});
};
export default ApiResponse;
+161
View File
@@ -0,0 +1,161 @@
const ApiResponse = (req, res) => {
res.statusCode = 200;
res.json({
"@odata.context":
"https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#accounts(name)",
"@odata.count": 30,
"value": [
{
"@odata.etag": 'W/"547952"',
"name": "Bridgend CBC",
"accountid": "56e7ef63-7e64-eb11-aaba-00224800be9c",
},
{
"@odata.etag": 'W/"694923"',
"name": "Bishop Landaff High School",
"accountid": "c9389617-82ad-eb11-aac3-00224800be9c",
},
{
"@odata.etag": 'W/"694925"',
"name": "Stanwell High school",
"accountid": "24537624-82ad-eb11-aac3-00224800be9c",
},
{
"@odata.etag": 'W/"762163"',
"name": "Barry Boys High School",
"accountid": "80d99a34-82ad-eb11-aac3-00224800be9c",
},
{
"@odata.etag": 'W/"694929"',
"name": "St Sirus High School",
"accountid": "6d337b5a-82ad-eb11-aac3-00224800be9c",
},
{
"@odata.etag": 'W/"694931"',
"name": "Fitzalan High School",
"accountid": "984d0e75-82ad-eb11-aac3-00224800be9c",
},
{
"@odata.etag": 'W/"757759"',
"name": "Zoe",
"accountid": "41fead24-29ba-eb11-aac4-00224800be9c",
},
{
"@odata.etag": 'W/"755100"',
"name": "Blaenau Gwent County Borough Council",
"accountid": "744c69f4-48da-eb11-aac5-00224800be9c",
},
{
"@odata.etag": 'W/"755102"',
"name": "Caerphilly County Borough Council",
"accountid": "243c0009-49da-eb11-aac5-00224800be9c",
},
{
"@odata.etag": 'W/"757756"',
"name": "Test 2",
"accountid": "bf14b684-8ee0-eb11-aac5-00224800be9c",
},
{
"@odata.etag": 'W/"755104"',
"name": "Bridgend County Borough Council",
"accountid": "c35f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755106"',
"name": "Cardiff Council",
"accountid": "c75f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755108"',
"name": "Carmarthenshire County Council",
"accountid": "c95f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755110"',
"name": "Ceredigion County Council",
"accountid": "cb5f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755112"',
"name": "Conwy County Borough Council",
"accountid": "cd5f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755114"',
"name": "Denbighshire County Council",
"accountid": "cf5f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755116"',
"name": "Flintshire County Council",
"accountid": "d15f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755118"',
"name": "Gwynedd Council",
"accountid": "d35f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755120"',
"name": "Isle of Anglesey County Council",
"accountid": "d55f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755122"',
"name": "Merthyr Tydfil County Borough Council",
"accountid": "d75f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755124"',
"name": "Monmouthshire County Council",
"accountid": "d95f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755126"',
"name": "Neath Port Talbot County Borough Council",
"accountid": "db5f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755128"',
"name": "Newport City Council",
"accountid": "dd5f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755130"',
"name": "Pembrokeshire County Council",
"accountid": "df5f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755132"',
"name": "Powys County Council",
"accountid": "e15f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755134"',
"name": "Rhondda Cynon Taf County Borough Council",
"accountid": "e35f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755136"',
"name": "Swansea Council",
"accountid": "e55f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755138"',
"name": "Torfaen County Borough Council",
"accountid": "e75f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755140"',
"name": "Vale of Glamorgan Council",
"accountid": "e95f6f84-49da-eb11-aabd-00224800d1bd",
},
{
"@odata.etag": 'W/"755142"',
"name": "Wrexham County Borough Council",
"accountid": "eb5f6f84-49da-eb11-aabd-00224800d1bd",
},
],
});
};
export default ApiResponse;
+101
View File
@@ -0,0 +1,101 @@
const ApiResponse = (req, res) => {
res.statusCode = 200;
res.json({
"@odata.context":
"https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#incidents(_accountid_value,_customerid_value,pinswg_appealcasetype,statuscode,ticketnumber,title)",
"@odata.count": 9,
"value": [
{
"@odata.etag": 'W/"704047"',
"_accountid_value": null,
"_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
"pinswg_appealcasetype": 846040000,
"statuscode": 1,
"ticketnumber": "CAS-00009-W8N6W4",
"title": "CAS-00009-W8N6W4",
"incidentid": "9919eac3-21af-eb11-aac3-00224800be9c",
},
{
"@odata.etag": 'W/"704095"',
"_accountid_value": null,
"_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
"pinswg_appealcasetype": 846040011,
"statuscode": 1,
"ticketnumber": "CAS-00010-J9W6L5",
"title": "CAS-00010-J9W6L5",
"incidentid": "55f4fc74-33af-eb11-aac3-00224800be9c",
},
{
"@odata.etag": 'W/"709250"',
"_accountid_value": null,
"_customerid_value": "41fead24-29ba-eb11-aac4-00224800be9c",
"pinswg_appealcasetype": 846040001,
"statuscode": 1,
"ticketnumber": "CAS-00011-K1N0J8",
"title": "CAS-00011-K1N0J8",
"incidentid": "6bd04d33-29ba-eb11-aac4-00224800be9c",
},
{
"@odata.etag": 'W/"710463"',
"_accountid_value": null,
"_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
"pinswg_appealcasetype": 846040000,
"statuscode": 1,
"ticketnumber": "CAS-00012-D9W6S8",
"title": "CAS-00012-D9W6S8",
"incidentid": "b9c9cbe4-6abc-eb11-aac4-00224800be9c",
},
{
"@odata.etag": 'W/"746096"',
"_accountid_value": null,
"_customerid_value": "80d99a34-82ad-eb11-aac3-00224800be9c",
"pinswg_appealcasetype": 846040025,
"statuscode": 1,
"ticketnumber": "CAS-00013-Z0B5Z9",
"title": "CAS-00013-Z0B5Z9",
"incidentid": "34071ec4-54d3-eb11-aac5-00224800be9c",
},
{
"@odata.etag": 'W/"749764"',
"_accountid_value": null,
"_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
"pinswg_appealcasetype": 846040021,
"statuscode": 1,
"ticketnumber": "CAS-00014-S3L9B4",
"title": "CAS-00014-S3L9B4",
"incidentid": "2230700b-ebd7-eb11-aac5-00224800be9c",
},
{
"@odata.etag": 'W/"750875"',
"_accountid_value": null,
"_customerid_value": "cfb7b446-a7d8-eb11-aac5-00224800be9c",
"pinswg_appealcasetype": 846040000,
"statuscode": 1,
"ticketnumber": "CAS-00015-L7J9H1",
"title": "CAS-00015-L7J9H1",
"incidentid": "d5b7b446-a7d8-eb11-aac5-00224800be9c",
},
{
"@odata.etag": 'W/"755001"',
"_accountid_value": null,
"_customerid_value": "cfb7b446-a7d8-eb11-aac5-00224800be9c",
"pinswg_appealcasetype": 846040004,
"statuscode": 1,
"ticketnumber": "CAS-00016-Y9K9Q0",
"title": "CAS-00016-Y9K9Q0",
"incidentid": "cc6f93ea-bdd9-eb11-aac5-00224800be9c",
},
{
"@odata.etag": 'W/"755216"',
"_accountid_value": null,
"_customerid_value": "243c0009-49da-eb11-aac5-00224800be9c",
"pinswg_appealcasetype": 846040004,
"statuscode": 1,
"ticketnumber": "CAS-00017-B8X7N0",
"title": "CAS-00017-B8X7N0",
"incidentid": "73895a1b-68dd-eb11-aac5-00224800be9c",
},
],
});
};
export default ApiResponse;
+191
View File
@@ -0,0 +1,191 @@
const ApiResponse = (req, res) => {
res.statusCode = 200;
res.json({
"@odata.context":
"https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#incidents(_accountid_value,_customerid_value,pinswg_appealcasetype,statuscode,ticketnumber,title)",
"@odata.count": "9",
"value": [
{
"@odata.etag": 'W/"704047"',
"_accountid_value": null,
"_customerid_value@OData.Community.Display.V1.FormattedValue":
"Bridgend CBC",
"_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
"customerid_account",
"_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
"account",
"_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
"Planning Appeal - S78",
"pinswg_appealcasetype": "846040000",
"statuscode@OData.Community.Display.V1.FormattedValue":
"In Progress",
"statuscode": "1",
"ticketnumber": "CAS-00009-W8N6W4",
"title": "CAS-00009-W8N6W4",
"incidentid": "9919eac3-21af-eb11-aac3-00224800be9c",
},
{
"@odata.etag": 'W/"704095"',
"_accountid_value": null,
"_customerid_value@OData.Community.Display.V1.FormattedValue":
"Bridgend CBC",
"_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
"customerid_account",
"_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
"account",
"_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
"DNS",
"pinswg_appealcasetype": "846040011",
"statuscode@OData.Community.Display.V1.FormattedValue":
"In Progress",
"statuscode": "1",
"ticketnumber": "CAS-00010-J9W6L5",
"title": "CAS-00010-J9W6L5",
"incidentid": "55f4fc74-33af-eb11-aac3-00224800be9c",
},
{
"@odata.etag": 'W/"709250"',
"_accountid_value": null,
"_customerid_value@OData.Community.Display.V1.FormattedValue":
"Zoe",
"_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
"customerid_account",
"_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
"account",
"_customerid_value": "41fead24-29ba-eb11-aac4-00224800be9c",
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
"Planning Conditions - S73 + S79",
"pinswg_appealcasetype": "846040001",
"statuscode@OData.Community.Display.V1.FormattedValue":
"In Progress",
"statuscode": "1",
"ticketnumber": "CAS-00011-K1N0J8",
"title": "CAS-00011-K1N0J8",
"incidentid": "6bd04d33-29ba-eb11-aac4-00224800be9c",
},
{
"@odata.etag": 'W/"710463"',
"_accountid_value": null,
"_customerid_value@OData.Community.Display.V1.FormattedValue":
"Bridgend CBC",
"_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
"customerid_account",
"_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
"account",
"_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
"Planning Appeal - S78",
"pinswg_appealcasetype": "846040000",
"statuscode@OData.Community.Display.V1.FormattedValue":
"In Progress",
"statuscode": "1",
"ticketnumber": "CAS-00012-D9W6S8",
"title": "CAS-00012-D9W6S8",
"incidentid": "b9c9cbe4-6abc-eb11-aac4-00224800be9c",
},
{
"@odata.etag": 'W/"74609"',
"_accountid_value": null,
"_customerid_value@OData.Community.Display.V1.FormattedValue":
"Barry Boys High School",
"_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
"customerid_account",
"_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
"account",
"_customerid_value": "80d99a34-82ad-eb11-aac3-00224800be9c",
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
"Listed Building and Convention S73 + S79",
"pinswg_appealcasetype": "846040025",
"statuscode@OData.Community.Display.V1.FormattedValue":
"In Progress",
"statuscode": "1",
"ticketnumber": "CAS-00013-Z0B5Z9",
"title": "CAS-00013-Z0B5Z9",
"incidentid": "34071ec4-54d3-eb11-aac5-00224800be9c",
},
{
"@odata.etag": 'W/"749764"',
"_accountid_value": null,
"_customerid_value@OData.Community.Display.V1.FormattedValue":
"Bridgend CBC",
"_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
"customerid_account",
"_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
"account",
"_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
"Wayleave",
"pinswg_appealcasetype": "846040021",
"statuscode@OData.Community.Display.V1.FormattedValue":
"In Progress",
"statuscode": "1",
"ticketnumber": "CAS-00014-S3L9B4",
"title": "CAS-00014-S3L9B4",
"incidentid": "2230700b-ebd7-eb11-aac5-00224800be9c",
},
{
"@odata.etag": 'W/"750875"',
"_accountid_value": null,
"_customerid_value@OData.Community.Display.V1.FormattedValue":
"test customer",
"_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
"customerid_contact",
"_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
"contact",
"_customerid_value": "cfb7b446-a7d8-eb11-aac5-00224800be9c",
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
"Planning Appeal - S78",
"pinswg_appealcasetype": "846040000",
"statuscode@OData.Community.Display.V1.FormattedValue":
"In Progress",
"statuscode": "1",
"ticketnumber": "CAS-00015-L7J9H1",
"title": "CAS-00015-L7J9H1",
"incidentid": "d5b7b446-a7d8-eb11-aac5-00224800be9c",
},
{
"@odata.etag": 'W/"755001"',
"_accountid_value": null,
"_customerid_value@OData.Community.Display.V1.FormattedValue":
"test customer",
"_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
"customerid_contact",
"_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
"contact",
"_customerid_value": "cfb7b446-a7d8-eb11-aac5-00224800be9c",
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
"Householder Appeal (HAS)",
"pinswg_appealcasetype": "846040004",
"statuscode@OData.Community.Display.V1.FormattedValue":
"In Progress",
"statuscode": "1",
"ticketnumber": "CAS-00016-Y9K9Q0",
"title": "CAS-00016-Y9K9Q0",
"incidentid": "cc6f93ea-bdd9-eb11-aac5-00224800be9c",
},
{
"@odata.etag": 'W/"755216"',
"_accountid_value": null,
"_customerid_value@OData.Community.Display.V1.FormattedValue":
"Caerphilly County Borough Council",
"_customerid_value@Microsoft.Dynamics.CRM.associatednavigationproperty":
"customerid_account",
"_customerid_value@Microsoft.Dynamics.CRM.lookuplogicalname":
"account",
"_customerid_value": "243c0009-49da-eb11-aac5-00224800be9c",
"pinswg_appealcasetype@OData.Community.Display.V1.FormattedValue":
"Householder Appeal (HAS)",
"pinswg_appealcasetype": "846040004",
"statuscode@OData.Community.Display.V1.FormattedValue":
"In Progress",
"statuscode": "1",
"ticketnumber": "CAS-00017-B8X7N0",
"title": "CAS-00017-B8X7N0",
"incidentid": "73895a1b-68dd-eb11-aac5-00224800be9c",
},
],
});
};
export default ApiResponse;
+101
View File
@@ -0,0 +1,101 @@
const ApiResponse = (req, res) => {
res.statusCode = 200;
res.json({
"@odata.context":
"https://devcrm2016.llcdt.gov.wales/DVPINS/api/data/v8.2/$metadata#incidents(_accountid_value,_customerid_value,pinswg_appealcasetype,statuscode,ticketnumber,title)",
"@odata.count": 9,
"value": [
{
"@odata.etag": 'W/"704047"',
"_accountid_value": null,
"_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
"pinswg_appealcasetype": 846040000,
"statuscode": 1,
"ticketnumber": "CAS-00009-W8N6W4",
"title": "CAS-00009-W8N6W4",
"incidentid": "9919eac3-21af-eb11-aac3-00224800be9c",
},
{
"@odata.etag": 'W/"704095"',
"_accountid_value": null,
"_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
"pinswg_appealcasetype": 846040011,
"statuscode": 1,
"ticketnumber": "CAS-00010-J9W6L5",
"title": "CAS-00010-J9W6L5",
"incidentid": "55f4fc74-33af-eb11-aac3-00224800be9c",
},
{
"@odata.etag": 'W/"709250"',
"_accountid_value": null,
"_customerid_value": "41fead24-29ba-eb11-aac4-00224800be9c",
"pinswg_appealcasetype": 846040001,
"statuscode": 1,
"ticketnumber": "CAS-00011-K1N0J8",
"title": "CAS-00011-K1N0J8",
"incidentid": "6bd04d33-29ba-eb11-aac4-00224800be9c",
},
{
"@odata.etag": 'W/"710463"',
"_accountid_value": null,
"_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
"pinswg_appealcasetype": 846040000,
"statuscode": 1,
"ticketnumber": "CAS-00012-D9W6S8",
"title": "CAS-00012-D9W6S8",
"incidentid": "b9c9cbe4-6abc-eb11-aac4-00224800be9c",
},
{
"@odata.etag": 'W/"746096"',
"_accountid_value": null,
"_customerid_value": "80d99a34-82ad-eb11-aac3-00224800be9c",
"pinswg_appealcasetype": 846040025,
"statuscode": 1,
"ticketnumber": "CAS-00013-Z0B5Z9",
"title": "CAS-00013-Z0B5Z9",
"incidentid": "34071ec4-54d3-eb11-aac5-00224800be9c",
},
{
"@odata.etag": 'W/"749764"',
"_accountid_value": null,
"_customerid_value": "56e7ef63-7e64-eb11-aaba-00224800be9c",
"pinswg_appealcasetype": 846040021,
"statuscode": 1,
"ticketnumber": "CAS-00014-S3L9B4",
"title": "CAS-00014-S3L9B4",
"incidentid": "2230700b-ebd7-eb11-aac5-00224800be9c",
},
{
"@odata.etag": 'W/"750875"',
"_accountid_value": null,
"_customerid_value": "cfb7b446-a7d8-eb11-aac5-00224800be9c",
"pinswg_appealcasetype": 846040000,
"statuscode": 1,
"ticketnumber": "CAS-00015-L7J9H1",
"title": "CAS-00015-L7J9H1",
"incidentid": "d5b7b446-a7d8-eb11-aac5-00224800be9c",
},
{
"@odata.etag": 'W/"755001"',
"_accountid_value": null,
"_customerid_value": "cfb7b446-a7d8-eb11-aac5-00224800be9c",
"pinswg_appealcasetype": 846040004,
"statuscode": 1,
"ticketnumber": "CAS-00016-Y9K9Q0",
"title": "CAS-00016-Y9K9Q0",
"incidentid": "cc6f93ea-bdd9-eb11-aac5-00224800be9c",
},
{
"@odata.etag": 'W/"755216"',
"_accountid_value": null,
"_customerid_value": "243c0009-49da-eb11-aac5-00224800be9c",
"pinswg_appealcasetype": 846040004,
"statuscode": 1,
"ticketnumber": "CAS-00017-B8X7N0",
"title": "CAS-00017-B8X7N0",
"incidentid": "73895a1b-68dd-eb11-aac5-00224800be9c",
},
],
});
};
export default ApiResponse;