Merge branch 'Development' into SIPS-Development
This commit is contained in:
+8
-2
@@ -37,5 +37,11 @@ pages/polling.js
|
|||||||
|
|
||||||
pages/api/endpoint/getaccounts_api.js
|
pages/api/endpoint/getaccounts_api.js
|
||||||
|
|
||||||
# certs
|
# remove swagger api docs
|
||||||
certificates/*
|
|
||||||
|
next-swagger-doc.json
|
||||||
|
pages/api-doc.js
|
||||||
|
public/swagger.json
|
||||||
|
certificates/cert-key.pem
|
||||||
|
certificates/cert.pem
|
||||||
|
gitclean.sh
|
||||||
|
|||||||
@@ -364,13 +364,14 @@ export const createAppealPDFBlob = async (
|
|||||||
const uploadBlobResponse = await blockBlobClient.uploadStream(content);
|
const uploadBlobResponse = await blockBlobClient.uploadStream(content);
|
||||||
|
|
||||||
console.log(uploadBlobResponse);
|
console.log(uploadBlobResponse);
|
||||||
|
let whichLocation = "846040000"; // Default value
|
||||||
|
|
||||||
const tags = {
|
const tags = {
|
||||||
containerid: containerName,
|
containerid: containerName,
|
||||||
caseID: caseID,
|
caseID: caseID,
|
||||||
blobType: "Appeal PDF",
|
blobType: "Appeal PDF",
|
||||||
documentLocationId: "846040000",
|
ishareLocation: whichLocation,
|
||||||
ishareLocation: "846040000",
|
documentLocationId: whichLocation,
|
||||||
};
|
};
|
||||||
|
|
||||||
//console.log("the tags:", tags);
|
//console.log("the tags:", tags);
|
||||||
@@ -433,6 +434,7 @@ export const createRepPDFBlob = async (
|
|||||||
blobType: "Representation PDF",
|
blobType: "Representation PDF",
|
||||||
documentLocationId: whichLocation,
|
documentLocationId: whichLocation,
|
||||||
ishareLocation: whichLocation,
|
ishareLocation: whichLocation,
|
||||||
|
documentLocationId: whichLocation,
|
||||||
};
|
};
|
||||||
|
|
||||||
//console.log("the tags:", tags);
|
//console.log("the tags:", tags);
|
||||||
@@ -624,6 +626,7 @@ export const uploadFile = async (formContent, containerName, foldername) => {
|
|||||||
blobType: "RepresentationFile",
|
blobType: "RepresentationFile",
|
||||||
documentLocationId: whichLocation,
|
documentLocationId: whichLocation,
|
||||||
ishareLocation: whichLocation,
|
ishareLocation: whichLocation,
|
||||||
|
documentLocationId: whichLocation,
|
||||||
};
|
};
|
||||||
const withTags = blockBlobClient.setTags(tags);
|
const withTags = blockBlobClient.setTags(tags);
|
||||||
const withMeta = blockBlobClient.setMetadata(tags);
|
const withMeta = blockBlobClient.setMetadata(tags);
|
||||||
|
|||||||
@@ -248,8 +248,12 @@ const ViewAllResults = (props) => {
|
|||||||
viewAllKey
|
viewAllKey
|
||||||
: router.locale == "cy"
|
: router.locale == "cy"
|
||||||
? myportal == true
|
? myportal == true
|
||||||
? "/fymhorth/achos"
|
? "/fymhorth/achos" +
|
||||||
: "/achos"
|
resultsArr[key].ticketnumber +
|
||||||
|
"?key=" +
|
||||||
|
currentView.viewKey
|
||||||
|
: "/achos" +
|
||||||
|
resultsArr[key].ticketnumber
|
||||||
: myportal == true
|
: myportal == true
|
||||||
? "/myportal/case/" +
|
? "/myportal/case/" +
|
||||||
resultsArr[key].ticketnumber +
|
resultsArr[key].ticketnumber +
|
||||||
|
|||||||
@@ -350,15 +350,15 @@ const SearchResults = (props) => {
|
|||||||
<div></div>
|
<div></div>
|
||||||
<Link
|
<Link
|
||||||
href={
|
href={
|
||||||
router.locale == "cy"
|
(router.locale == "cy"
|
||||||
? myportal == true
|
? myportal == true
|
||||||
? "/fymhorth/achos"
|
? "/fymhorth/achos"
|
||||||
: "/achos"
|
: "/achos"
|
||||||
: myportal == true
|
: myportal == true
|
||||||
? "/myportal/case/" +
|
? "/myportal/case"
|
||||||
item.ticketnumber
|
: "/case") +
|
||||||
: "/case/" +
|
"/" +
|
||||||
item.ticketnumber
|
item.ticketnumber
|
||||||
}
|
}
|
||||||
className="govuk-link--no-underline"
|
className="govuk-link--no-underline"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|||||||
+24
-21
@@ -115,17 +115,19 @@ export const getSearchDetails = async (searchResultsObj) => {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
detailsArr.push(
|
formMeta?.LogicalCollectionName &&
|
||||||
getBasicSearchDetails(
|
formMeta?.LogicalCollectionName != "pinswg_sipses" &&
|
||||||
formMeta.LogicalCollectionName,
|
detailsArr.push(
|
||||||
searchDetail.title,
|
getBasicSearchDetails(
|
||||||
formMeta.PrimaryIdAttribute,
|
formMeta.LogicalCollectionName,
|
||||||
searchDetail.incidentid
|
searchDetail.title,
|
||||||
) || {
|
formMeta.PrimaryIdAttribute,
|
||||||
"@odata.count": 1,
|
searchDetail.incidentid
|
||||||
"value": [{ "title": searchDetail.title }],
|
) || {
|
||||||
}
|
"@odata.count": 1,
|
||||||
);
|
"value": [{ "title": searchDetail.title }],
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Promise.all(detailsArr).then((data) => {
|
// Promise.all(detailsArr).then((data) => {
|
||||||
@@ -150,7 +152,7 @@ export const getPartSavedDetails = (searchResultsObj) => {
|
|||||||
let formMeta = getFormCollectionByID(
|
let formMeta = getFormCollectionByID(
|
||||||
searchDetail.pinswg_appealcasetype
|
searchDetail.pinswg_appealcasetype
|
||||||
);
|
);
|
||||||
console.log(formMeta);
|
// console.log(formMeta);
|
||||||
detailsArr.push(
|
detailsArr.push(
|
||||||
getBasicPartSavedDetails(
|
getBasicPartSavedDetails(
|
||||||
formMeta.LogicalCollectionName,
|
formMeta.LogicalCollectionName,
|
||||||
@@ -178,15 +180,16 @@ export const getSearchDetailsPaged = (searchResultsObj) => {
|
|||||||
let formMeta = getFormCollectionByID(
|
let formMeta = getFormCollectionByID(
|
||||||
searchDetail.pinswg_appealcasetype
|
searchDetail.pinswg_appealcasetype
|
||||||
);
|
);
|
||||||
|
formMeta?.LogicalCollectionName &&
|
||||||
detailsArr.push(
|
formMeta?.LogicalCollectionName != "pinswg_sipses" &&
|
||||||
getBasicSearchDetailsPaged(
|
detailsArr.push(
|
||||||
formMeta.LogicalCollectionName,
|
getBasicSearchDetailsPaged(
|
||||||
searchDetail.title,
|
formMeta.LogicalCollectionName,
|
||||||
formMeta.PrimaryIdAttribute,
|
searchDetail.title,
|
||||||
searchDetail.incidentid
|
formMeta.PrimaryIdAttribute,
|
||||||
)
|
searchDetail.incidentid
|
||||||
);
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return Promise.all(detailsArr);
|
return Promise.all(detailsArr);
|
||||||
|
|||||||
@@ -1,588 +0,0 @@
|
|||||||
{
|
|
||||||
"apiFolder": "pages/api",
|
|
||||||
"schemaFolders": [
|
|
||||||
"models"
|
|
||||||
],
|
|
||||||
"definition": {
|
|
||||||
"openapi": "3.0.3",
|
|
||||||
"info": {
|
|
||||||
"title": "PEDW API",
|
|
||||||
"version": "1.0"
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"schemas": {
|
|
||||||
"emailBody": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"reference": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "PEDW-COMPLETE"
|
|
||||||
},
|
|
||||||
"templateId": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "618e0463-b092-4733-a024-bf8a3bbde808"
|
|
||||||
},
|
|
||||||
"emailAddress": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "rob@rdbtech.co.uk"
|
|
||||||
},
|
|
||||||
"personalisation": {
|
|
||||||
"type": "object",
|
|
||||||
"example": {
|
|
||||||
"caseReference": "CAS-TEST-TEST",
|
|
||||||
"emailAddress": "rob@rdbtech.co.uk",
|
|
||||||
"linkExpiry": "10 * 60"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"securitySchemes": {
|
|
||||||
"pedw_auth": {
|
|
||||||
"type": "oauth2",
|
|
||||||
"flows": {
|
|
||||||
"clientCredentials": {
|
|
||||||
"tokenUrl": "https://login.microsoftonline.com/9ac1a5ab-cd58-409e-a1b6-6b10422a68f5/oauth2/v2.0/token",
|
|
||||||
"scopes": "https://dev-pedw-ns.servicebus.windows.net/.default"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"api_key": {
|
|
||||||
"type": "apiKey",
|
|
||||||
"name": "api_key",
|
|
||||||
"in": "header"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"paths": {
|
|
||||||
"/api/auth/[...nextauth]": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Login"
|
|
||||||
],
|
|
||||||
"description": "NextAuth",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/documents/download/{id}": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Documents"
|
|
||||||
],
|
|
||||||
"description": "Get document",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"name": "id",
|
|
||||||
"in": "path",
|
|
||||||
"description": "iShare ID",
|
|
||||||
"type": "string",
|
|
||||||
"required": true,
|
|
||||||
"default": "A41567436"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "hash",
|
|
||||||
"in": "query",
|
|
||||||
"description": "Hash string",
|
|
||||||
"default": "e0a1c9cd2817826a25bca67e60b807eae747cbed769e3ec42cf997541c32be71"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/email/notify": {
|
|
||||||
"post": {
|
|
||||||
"tags": [
|
|
||||||
"Email"
|
|
||||||
],
|
|
||||||
"summary": "Email to user",
|
|
||||||
"consumes": [
|
|
||||||
"application/json"
|
|
||||||
],
|
|
||||||
"description": "Send email via gov notify",
|
|
||||||
"produces": [
|
|
||||||
"application/json",
|
|
||||||
"application/xml"
|
|
||||||
],
|
|
||||||
"requestBody": {
|
|
||||||
"name": "Email",
|
|
||||||
"description": "Email body",
|
|
||||||
"required": true,
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/emailBody"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"responses": {
|
|
||||||
"405": {
|
|
||||||
"description": "Failed"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/createaccount_api": {
|
|
||||||
"post": {
|
|
||||||
"tags": [
|
|
||||||
"Account"
|
|
||||||
],
|
|
||||||
"description": "Create password",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/createcase_api": {
|
|
||||||
"post": {
|
|
||||||
"tags": [
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"description": "Create case",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/createmywatchedcases_api": {
|
|
||||||
"post": {
|
|
||||||
"tags": [
|
|
||||||
"Portal",
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"description": "Create my watched cases",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/deleteawaitingsubmissions_api": {
|
|
||||||
"delete": {
|
|
||||||
"tags": [
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"description": "Delete awaiting case submission",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/deleteamyrepresentations_api": {
|
|
||||||
"delete": {
|
|
||||||
"tags": [
|
|
||||||
"Portal",
|
|
||||||
"Representations"
|
|
||||||
],
|
|
||||||
"description": "Delete my representations",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/deleteamywatchedcases_api": {
|
|
||||||
"delete": {
|
|
||||||
"tags": [
|
|
||||||
"Portal",
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"description": "Delete my watched cases",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getadvancedsearch_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Advanced search",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getadvancedsearchpaged_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Advanced search paged",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getappealid_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Misc"
|
|
||||||
],
|
|
||||||
"description": "Get Appeal ID",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getappealtypes_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Misc"
|
|
||||||
],
|
|
||||||
"description": "Get Appeal Types",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getappealtypesfornewappeal_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Misc"
|
|
||||||
],
|
|
||||||
"description": "Get Appeal Types for appeal",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getawaitingsubmission_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"description": "get awaiting case submission",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getawaitingsubmissionproxy_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"description": "get awaiting case submission proxy",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicdnssearch_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic DNS search",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicdnssearchdetails_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic DNS search details",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicdnssearchdetailspaged_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic DNS search details paged",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicdnssearchpaged_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic DNS search paged",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicdnsurlsearch_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic DNS search URL",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicsearch_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic search",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicsearchdetails_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic search details",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicsearchdetailspaged_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic search details paged",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicsearchpaged_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic search paged",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getcase_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"summary": "Not used",
|
|
||||||
"description": "Get case",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getlogin_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Login"
|
|
||||||
],
|
|
||||||
"description": "Returns the hello world",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "hello world"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getlpa_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Get list of LPA's",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"security": [
|
|
||||||
{
|
|
||||||
"relay_auth": []
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getsearchdocumentdetails_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search",
|
|
||||||
"Documents"
|
|
||||||
],
|
|
||||||
"description": "Basic search documents details",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getsearchdocumentdetailspaged_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic search documents details paged",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getsearchdocumenthistory_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic search documents history",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getsearchdocumenthistorypaged_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic search documents history paged",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getsearchdocumentTypes_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic search documents history paged",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/patchcase_api": {
|
|
||||||
"patch": {
|
|
||||||
"tags": [
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"description": "Patch case",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/updateaccount_api": {
|
|
||||||
"patch": {
|
|
||||||
"tags": [
|
|
||||||
"Account"
|
|
||||||
],
|
|
||||||
"description": "Update account",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/updatecase_api": {
|
|
||||||
"patch": {
|
|
||||||
"tags": [
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"description": "Update case",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/updatepassword_api": {
|
|
||||||
"patch": {
|
|
||||||
"tags": [
|
|
||||||
"Account"
|
|
||||||
],
|
|
||||||
"description": "Update password",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tags": []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+10
-6
@@ -154,9 +154,13 @@ module.exports = {
|
|||||||
destination: "/case",
|
destination: "/case",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: "/achos/id/:slug",
|
source: "/achos/:slug",
|
||||||
destination: "/case/id/:slug",
|
destination: "/case/:slug",
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// source: "/achos/id/:slug",
|
||||||
|
// destination: "/case/id/:slug",
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
source: "/fymhorth/achos",
|
source: "/fymhorth/achos",
|
||||||
destination: "/myportal/case",
|
destination: "/myportal/case",
|
||||||
@@ -165,10 +169,10 @@ module.exports = {
|
|||||||
source: "/fymhorth/ceisiadaudns",
|
source: "/fymhorth/ceisiadaudns",
|
||||||
destination: "/myportal/dnsapplications",
|
destination: "/myportal/dnsapplications",
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
source: "/fymhorth/achos/id/:slug",
|
// source: "/fymhorth/achos/id/:slug",
|
||||||
destination: "/myportal/case/id/:slug",
|
// destination: "/myportal/case/id/:slug",
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
source: "/fymhorth/achos/:slug",
|
source: "/fymhorth/achos/:slug",
|
||||||
destination: "/myportal/case/:slug",
|
destination: "/myportal/case/:slug",
|
||||||
|
|||||||
Generated
+1
-1
@@ -11546,4 +11546,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+4
-4
@@ -23,10 +23,10 @@ class MyDocument extends Document {
|
|||||||
|
|
||||||
const cookieObj = ctx.req.cookies.CookiePolicy || {};
|
const cookieObj = ctx.req.cookies.CookiePolicy || {};
|
||||||
|
|
||||||
console.log("useGATracking: ", useGATracking);
|
//console.log("useGATracking: ", useGATracking);
|
||||||
// setCookie(ctx, "pedw_locale", ctx.locale, {
|
setCookie(ctx, "pedw_locale", ctx.locale, {
|
||||||
// path: "/",
|
path: "/",
|
||||||
// });
|
});
|
||||||
|
|
||||||
const headers = ctx.req?.headers;
|
const headers = ctx.req?.headers;
|
||||||
const generatedNonce = headers?.["x-nonce"];
|
const generatedNonce = headers?.["x-nonce"];
|
||||||
|
|||||||
@@ -1,102 +0,0 @@
|
|||||||
import { createSwaggerSpec } from "next-swagger-doc";
|
|
||||||
import dynamic from "next/dynamic";
|
|
||||||
import "swagger-ui-react/swagger-ui.css";
|
|
||||||
|
|
||||||
const SwaggerUI = dynamic(import("swagger-ui-react"), { ssr: false });
|
|
||||||
|
|
||||||
function ApiDoc({ spec }) {
|
|
||||||
return <SwaggerUI spec={spec} docExpansion={"list"} />;
|
|
||||||
}
|
|
||||||
|
|
||||||
let BASE_URL;
|
|
||||||
const port = parseInt(process.env.PORT, 10) || 3000;
|
|
||||||
|
|
||||||
if (process.browser) {
|
|
||||||
BASE_URL = window.apiRoot;
|
|
||||||
} else {
|
|
||||||
BASE_URL = process.env.API_ROOT || `http://localhost:${port}`;
|
|
||||||
}
|
|
||||||
const WORDKEY = process.env.HASHKEY;
|
|
||||||
|
|
||||||
const cache = {};
|
|
||||||
const API_PATH = "/api/data/v8.2/";
|
|
||||||
|
|
||||||
const accessTokenEndpoint = process.env.ACCESS_TOKEN_ENDPOINT;
|
|
||||||
const tenantId = process.env.TENANT;
|
|
||||||
|
|
||||||
export const getStaticProps = async () => {
|
|
||||||
const spec = createSwaggerSpec({
|
|
||||||
layout: "StandaloneLayout",
|
|
||||||
apiFolder: "pages/api",
|
|
||||||
schemaFolders: ["models"],
|
|
||||||
definition: {
|
|
||||||
openapi: "3.0.3",
|
|
||||||
info: {
|
|
||||||
title: "PEDW API",
|
|
||||||
version: "1.0",
|
|
||||||
contact: {
|
|
||||||
email: "rob@rdbsolutions.co.uk",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
docExpansion: "none",
|
|
||||||
components: {
|
|
||||||
schemas: {
|
|
||||||
emailBody: {
|
|
||||||
type: "object",
|
|
||||||
properties: {
|
|
||||||
reference: {
|
|
||||||
type: "string",
|
|
||||||
example: "PEDW-COMPLETE",
|
|
||||||
},
|
|
||||||
templateId: {
|
|
||||||
type: "string",
|
|
||||||
example: "618e0463-b092-4733-a024-bf8a3bbde808",
|
|
||||||
},
|
|
||||||
emailAddress: {
|
|
||||||
type: "string",
|
|
||||||
example: "rob@rdbtech.co.uk",
|
|
||||||
},
|
|
||||||
personalisation: {
|
|
||||||
type: "object",
|
|
||||||
example: {
|
|
||||||
caseReference: "CAS-TEST-TEST",
|
|
||||||
emailAddress: "rob@rdbtech.co.uk",
|
|
||||||
linkExpiry: "10 * 60",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
// securitySchemes: {
|
|
||||||
// pedw_auth: {
|
|
||||||
// type: "oauth2",
|
|
||||||
// flows: {
|
|
||||||
// clientCredentials: {
|
|
||||||
// tokenUrl: `${accessTokenEndpoint}${tenantId}/oauth2/v2.0/token`,
|
|
||||||
// scopes:
|
|
||||||
// "https://" +
|
|
||||||
// process.env.RELAYURI +
|
|
||||||
// "/.default",
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
// api_key: {
|
|
||||||
// type: "apiKey",
|
|
||||||
// name: "api_key",
|
|
||||||
// in: "header",
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
//console.log(JSON.stringify(spec));
|
|
||||||
|
|
||||||
return {
|
|
||||||
props: {
|
|
||||||
spec,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export default ApiDoc;
|
|
||||||
@@ -35,7 +35,15 @@ export default async function ApiProxy(req, res) {
|
|||||||
var token = await getToken();
|
var token = await getToken();
|
||||||
|
|
||||||
var queryUrl =
|
var queryUrl =
|
||||||
"stringmaps?$filter=objecttypecode eq 'incident' and attributename eq 'pinswg_appealcasetype'&$count=true&$select=value,stringmapid,organizationid,attributevalue&$orderby=value asc";
|
"stringmaps?$filter=objecttypecode eq 'incident' and attributename eq 'pinswg_appealcasetype' " +
|
||||||
|
(process.env.SHOWSIPS !== "true"
|
||||||
|
? "and pinswg_appealcasetype ne 846040002"
|
||||||
|
: "") +
|
||||||
|
"&$count=true&$select=value,stringmapid,organizationid,attributevalue&$orderby=value asc";
|
||||||
|
|
||||||
|
// for sips
|
||||||
|
// "stringmaps?$filter=objecttypecode eq 'incident' and attributename eq 'pinswg_appealcasetype'&$count=true&$select=value,stringmapid,organizationid,attributevalue&$orderby=value asc";
|
||||||
|
|
||||||
// "stringmaps?$filter=objecttypecode eq 'incident' and attributename eq 'pinswg_appealcasetype' and value ne 'Misc Casework'&$count=true&$select=value,stringmapid,organizationid,attributevalue&$orderby=value asc";
|
// "stringmaps?$filter=objecttypecode eq 'incident' and attributename eq 'pinswg_appealcasetype' and value ne 'Misc Casework'&$count=true&$select=value,stringmapid,organizationid,attributevalue&$orderby=value asc";
|
||||||
//"stringmaps?$filter=objecttypecode eq 'incident' and attributename eq 'pinswg_appealcasetype' and value ne 'Developments of National Significance' and value ne 'LDP' and value ne 'Misc Casework'&$count=true&$select=value,stringmapid,organizationid,attributevalue&$orderby=value asc";
|
//"stringmaps?$filter=objecttypecode eq 'incident' and attributename eq 'pinswg_appealcasetype' and value ne 'Developments of National Significance' and value ne 'LDP' and value ne 'Misc Casework'&$count=true&$select=value,stringmapid,organizationid,attributevalue&$orderby=value asc";
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,11 @@ export default async function ApiProxy(req, res) {
|
|||||||
searchString +
|
searchString +
|
||||||
"') or contains(ticketnumber, '" +
|
"') or contains(ticketnumber, '" +
|
||||||
searchString +
|
searchString +
|
||||||
"')) and pinswg_appealcasetype ne null and pinswg_publishtoweb eq true&$orderby=createdon desc&$count=true";
|
"')) and pinswg_appealcasetype ne null " +
|
||||||
|
(process.env.SHOWSIPS !== "true"
|
||||||
|
? "and pinswg_appealcasetype ne 846040002"
|
||||||
|
: "") +
|
||||||
|
"and pinswg_publishtoweb eq true&$orderby=createdon desc&$count=true";
|
||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
"\n==========================================\n",
|
"\n==========================================\n",
|
||||||
|
|||||||
@@ -66,13 +66,15 @@ export default async function ApiProxy(req, res) {
|
|||||||
"&$count=true";
|
"&$count=true";
|
||||||
//" and statuscode eq 1&$count=true";
|
//" and statuscode eq 1&$count=true";
|
||||||
|
|
||||||
queryUrl =
|
// queryUrl =
|
||||||
queryUrl +
|
// queryUrl +
|
||||||
getSelectQuery(appealTypeName) +
|
// getSelectQuery(appealTypeName) +
|
||||||
",_" +
|
// ",_" +
|
||||||
(primaryIdAttribute == "pinswg_sipscase"
|
// (primaryIdAttribute == "pinswg_sipscase"
|
||||||
? "pinswg_sipscase_value"
|
// ? "pinswg_sipscase_value"
|
||||||
: primaryIdAttribute + "s_value");
|
// : primaryIdAttribute + "s_value");
|
||||||
|
|
||||||
|
queryUrl = queryUrl + getSelectQuery(appealTypeName);
|
||||||
|
|
||||||
// console.log(
|
// console.log(
|
||||||
// "\n==========================================\n",
|
// "\n==========================================\n",
|
||||||
|
|||||||
@@ -83,7 +83,11 @@ export default async function ApiProxy(req, res) {
|
|||||||
searchString +
|
searchString +
|
||||||
"') or contains(ticketnumber, '" +
|
"') or contains(ticketnumber, '" +
|
||||||
searchString +
|
searchString +
|
||||||
"')) and pinswg_appealcasetype ne null and pinswg_publishtoweb eq true&$orderby=" +
|
"')) and pinswg_appealcasetype ne null " +
|
||||||
|
(process.env.SHOWSIPS !== "true"
|
||||||
|
? "and pinswg_appealcasetype ne 846040002"
|
||||||
|
: "") +
|
||||||
|
"and pinswg_publishtoweb eq true&$orderby=" +
|
||||||
orderby +
|
orderby +
|
||||||
" " +
|
" " +
|
||||||
fieldSort +
|
fieldSort +
|
||||||
|
|||||||
@@ -1,582 +0,0 @@
|
|||||||
{
|
|
||||||
"openapi": "3.0.3",
|
|
||||||
"info": {
|
|
||||||
"title": "PEDW API",
|
|
||||||
"version": "1.0"
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"schemas": {
|
|
||||||
"emailBody": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"reference": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "PEDW-COMPLETE"
|
|
||||||
},
|
|
||||||
"templateId": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "618e0463-b092-4733-a024-bf8a3bbde808"
|
|
||||||
},
|
|
||||||
"emailAddress": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "rob@rdbtech.co.uk"
|
|
||||||
},
|
|
||||||
"personalisation": {
|
|
||||||
"type": "object",
|
|
||||||
"example": {
|
|
||||||
"caseReference": "CAS-TEST-TEST",
|
|
||||||
"emailAddress": "rob@rdbtech.co.uk",
|
|
||||||
"linkExpiry": "10 * 60"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"securitySchemes": {
|
|
||||||
"pedw_auth": {
|
|
||||||
"type": "oauth2",
|
|
||||||
"flows": {
|
|
||||||
"clientCredentials": {
|
|
||||||
"tokenUrl": "https://login.microsoftonline.com/9ac1a5ab-cd58-409e-a1b6-6b10422a68f5/oauth2/v2.0/token",
|
|
||||||
"scopes": "https://dev-pedw-ns.servicebus.windows.net/.default"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"api_key": {
|
|
||||||
"type": "apiKey",
|
|
||||||
"name": "api_key",
|
|
||||||
"in": "header"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"paths": {
|
|
||||||
"/api/auth/[...nextauth]": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Login"
|
|
||||||
],
|
|
||||||
"description": "NextAuth",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/documents/download/{id}": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Documents"
|
|
||||||
],
|
|
||||||
"description": "Get document",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"name": "id",
|
|
||||||
"in": "path",
|
|
||||||
"description": "iShare ID",
|
|
||||||
"type": "string",
|
|
||||||
"required": true,
|
|
||||||
"default": "A41567436"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "hash",
|
|
||||||
"in": "query",
|
|
||||||
"description": "Hash string",
|
|
||||||
"default": "e0a1c9cd2817826a25bca67e60b807eae747cbed769e3ec42cf997541c32be71"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/email/notify": {
|
|
||||||
"post": {
|
|
||||||
"tags": [
|
|
||||||
"Email"
|
|
||||||
],
|
|
||||||
"summary": "Email to user",
|
|
||||||
"consumes": [
|
|
||||||
"application/json"
|
|
||||||
],
|
|
||||||
"description": "Send email via gov notify",
|
|
||||||
"produces": [
|
|
||||||
"application/json",
|
|
||||||
"application/xml"
|
|
||||||
],
|
|
||||||
"requestBody": {
|
|
||||||
"name": "Email",
|
|
||||||
"description": "Email body",
|
|
||||||
"required": true,
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/emailBody"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"responses": {
|
|
||||||
"405": {
|
|
||||||
"description": "Failed"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/createaccount_api": {
|
|
||||||
"post": {
|
|
||||||
"tags": [
|
|
||||||
"Account"
|
|
||||||
],
|
|
||||||
"description": "Create password",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/createcase_api": {
|
|
||||||
"post": {
|
|
||||||
"tags": [
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"description": "Create case",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/createmywatchedcases_api": {
|
|
||||||
"post": {
|
|
||||||
"tags": [
|
|
||||||
"Portal",
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"description": "Create my watched cases",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/deleteawaitingsubmissions_api": {
|
|
||||||
"delete": {
|
|
||||||
"tags": [
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"description": "Delete awaiting case submission",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/deleteamyrepresentations_api": {
|
|
||||||
"delete": {
|
|
||||||
"tags": [
|
|
||||||
"Portal",
|
|
||||||
"Representations"
|
|
||||||
],
|
|
||||||
"description": "Delete my representations",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/deleteamywatchedcases_api": {
|
|
||||||
"delete": {
|
|
||||||
"tags": [
|
|
||||||
"Portal",
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"description": "Delete my watched cases",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getadvancedsearch_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Advanced search",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getadvancedsearchpaged_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Advanced search paged",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getappealid_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Misc"
|
|
||||||
],
|
|
||||||
"description": "Get Appeal ID",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getappealtypes_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Misc"
|
|
||||||
],
|
|
||||||
"description": "Get Appeal Types",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getappealtypesfornewappeal_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Misc"
|
|
||||||
],
|
|
||||||
"description": "Get Appeal Types for appeal",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getawaitingsubmission_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"description": "get awaiting case submission",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getawaitingsubmissionproxy_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"description": "get awaiting case submission proxy",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicdnssearch_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic DNS search",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicdnssearchdetails_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic DNS search details",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicdnssearchdetailspaged_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic DNS search details paged",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicdnssearchpaged_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic DNS search paged",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicdnsurlsearch_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic DNS search URL",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicsearch_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic search",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicsearchdetails_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic search details",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicsearchdetailspaged_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic search details paged",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getbasicsearchpaged_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic search paged",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getcase_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"summary": "Not used",
|
|
||||||
"description": "Get case",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getlogin_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Login"
|
|
||||||
],
|
|
||||||
"description": "Returns the hello world",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "hello world"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getlpa_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Get list of LPA's",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"security": [
|
|
||||||
{
|
|
||||||
"relay_auth": []
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getsearchdocumentdetails_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search",
|
|
||||||
"Documents"
|
|
||||||
],
|
|
||||||
"description": "Basic search documents details",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getsearchdocumentdetailspaged_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic search documents details paged",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getsearchdocumenthistory_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic search documents history",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getsearchdocumenthistorypaged_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic search documents history paged",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/getsearchdocumentTypes_api": {
|
|
||||||
"get": {
|
|
||||||
"tags": [
|
|
||||||
"Search"
|
|
||||||
],
|
|
||||||
"description": "Basic search documents history paged",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/patchcase_api": {
|
|
||||||
"patch": {
|
|
||||||
"tags": [
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"description": "Patch case",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/updateaccount_api": {
|
|
||||||
"patch": {
|
|
||||||
"tags": [
|
|
||||||
"Account"
|
|
||||||
],
|
|
||||||
"description": "Update account",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/updatecase_api": {
|
|
||||||
"patch": {
|
|
||||||
"tags": [
|
|
||||||
"Case"
|
|
||||||
],
|
|
||||||
"description": "Update case",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/api/endpoint/updatepassword_api": {
|
|
||||||
"patch": {
|
|
||||||
"tags": [
|
|
||||||
"Account"
|
|
||||||
],
|
|
||||||
"description": "Update password",
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"description": "Success"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tags": []
|
|
||||||
}
|
|
||||||
@@ -29,7 +29,7 @@ const startServer = async (config) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const app = next(serverOptions);
|
const app = next(serverOptions);
|
||||||
await app.prepare();
|
await app.prepare(); // prepare BEFORE starting the server
|
||||||
|
|
||||||
const handleNextRequests = app.getRequestHandler();
|
const handleNextRequests = app.getRequestHandler();
|
||||||
|
|
||||||
@@ -93,6 +93,7 @@ const startServer = async (config) => {
|
|||||||
return app;
|
return app;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// App configuration
|
||||||
const startTime = Date.now();
|
const startTime = Date.now();
|
||||||
const serverConfig = {
|
const serverConfig = {
|
||||||
hostname: "0.0.0.0",
|
hostname: "0.0.0.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user