Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fhc-api

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fhc-api - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

.swagger-codegen-ignore

28

api/fhcBasicerrorcontrollerApi.ts

@@ -45,3 +45,3 @@ /**

errorHtmlUsingDELETE(): Promise<models.ModelAndView | any> {
errorUsingDELETE(): Promise<{ [key: string]: any } | any> {
let _body = null

@@ -55,6 +55,6 @@

return XHR.sendCommand("DELETE", _url, headers, _body)
.then(doc => new models.ModelAndView(doc.body as JSON))
.then(doc => JSON.parse(JSON.stringify(doc.body)))
.catch(err => this.handleError(err))
}
errorHtmlUsingGET(): Promise<models.ModelAndView | any> {
errorUsingGET(): Promise<{ [key: string]: any } | any> {
let _body = null

@@ -68,6 +68,6 @@

return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.ModelAndView(doc.body as JSON))
.then(doc => JSON.parse(JSON.stringify(doc.body)))
.catch(err => this.handleError(err))
}
errorHtmlUsingHEAD(): Promise<models.ModelAndView | any> {
errorUsingHEAD(): Promise<{ [key: string]: any } | any> {
let _body = null

@@ -81,6 +81,6 @@

return XHR.sendCommand("HEAD", _url, headers, _body)
.then(doc => new models.ModelAndView(doc.body as JSON))
.then(doc => JSON.parse(JSON.stringify(doc.body)))
.catch(err => this.handleError(err))
}
errorHtmlUsingOPTIONS(): Promise<models.ModelAndView | any> {
errorUsingOPTIONS(): Promise<{ [key: string]: any } | any> {
let _body = null

@@ -94,6 +94,6 @@

return XHR.sendCommand("OPTIONS", _url, headers, _body)
.then(doc => new models.ModelAndView(doc.body as JSON))
.then(doc => JSON.parse(JSON.stringify(doc.body)))
.catch(err => this.handleError(err))
}
errorHtmlUsingPATCH(): Promise<models.ModelAndView | any> {
errorUsingPATCH(): Promise<{ [key: string]: any } | any> {
let _body = null

@@ -107,6 +107,6 @@

return XHR.sendCommand("PATCH", _url, headers, _body)
.then(doc => new models.ModelAndView(doc.body as JSON))
.then(doc => JSON.parse(JSON.stringify(doc.body)))
.catch(err => this.handleError(err))
}
errorHtmlUsingPOST(): Promise<models.ModelAndView | any> {
errorUsingPOST(): Promise<{ [key: string]: any } | any> {
let _body = null

@@ -120,6 +120,6 @@

return XHR.sendCommand("POST", _url, headers, _body)
.then(doc => new models.ModelAndView(doc.body as JSON))
.then(doc => JSON.parse(JSON.stringify(doc.body)))
.catch(err => this.handleError(err))
}
errorHtmlUsingPUT(): Promise<models.ModelAndView | any> {
errorUsingPUT(): Promise<{ [key: string]: any } | any> {
let _body = null

@@ -133,5 +133,5 @@

return XHR.sendCommand("PUT", _url, headers, _body)
.then(doc => new models.ModelAndView(doc.body as JSON))
.then(doc => JSON.parse(JSON.stringify(doc.body)))
.catch(err => this.handleError(err))
}
}

@@ -54,3 +54,2 @@ /**

patientSsin: string,
civicsVersion: string,
patientDateOfBirth: number,

@@ -60,2 +59,3 @@ patientFirstName: string,

patientGender: string,
civicsVersion?: string,
paragraph?: string,

@@ -70,5 +70,3 @@ start?: number,

this.host +
"/chap4/consult/{patientSsin}/{civicsVersion}"
.replace("{patientSsin}", patientSsin + "")
.replace("{civicsVersion}", civicsVersion + "") +
"/chap4/consult/{patientSsin}".replace("{patientSsin}", patientSsin + "") +
"?ts=" +

@@ -87,2 +85,3 @@ new Date().getTime() +

(patientGender ? "&patientGender=" + patientGender : "") +
(civicsVersion ? "&civicsVersion=" + civicsVersion : "") +
(paragraph ? "&paragraph=" + paragraph : "") +

@@ -233,2 +232,23 @@ (start ? "&start=" + start : "") +

}
getParagraphInfosUsingGET(
chapterName: string,
paragraphName: string
): Promise<models.ParagraphInfos | any> {
let _body = null
const _url =
this.host +
"/chap4/sam/info/{chapterName}/{paragraphName}"
.replace("{chapterName}", chapterName + "")
.replace("{paragraphName}", paragraphName + "") +
"?ts=" +
new Date().getTime()
let headers = this.headers
headers = headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"))
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.ParagraphInfos(doc.body as JSON))
.catch(err => this.handleError(err))
}
requestAgreementUsingPOST(

@@ -235,0 +255,0 @@ keystoreId: string,

@@ -25,3 +25,2 @@ /**

import { XHR } from "./XHR";
import * as models from "../model/models";
export declare class fhcBasicerrorcontrollerApi {

@@ -33,9 +32,23 @@ host: string;

handleError(e: XHR.Data): void;
errorHtmlUsingDELETE(): Promise<models.ModelAndView | any>;
errorHtmlUsingGET(): Promise<models.ModelAndView | any>;
errorHtmlUsingHEAD(): Promise<models.ModelAndView | any>;
errorHtmlUsingOPTIONS(): Promise<models.ModelAndView | any>;
errorHtmlUsingPATCH(): Promise<models.ModelAndView | any>;
errorHtmlUsingPOST(): Promise<models.ModelAndView | any>;
errorHtmlUsingPUT(): Promise<models.ModelAndView | any>;
errorUsingDELETE(): Promise<{
[key: string]: any;
} | any>;
errorUsingGET(): Promise<{
[key: string]: any;
} | any>;
errorUsingHEAD(): Promise<{
[key: string]: any;
} | any>;
errorUsingOPTIONS(): Promise<{
[key: string]: any;
} | any>;
errorUsingPATCH(): Promise<{
[key: string]: any;
} | any>;
errorUsingPOST(): Promise<{
[key: string]: any;
} | any>;
errorUsingPUT(): Promise<{
[key: string]: any;
} | any>;
}

@@ -25,3 +25,2 @@ /**

import { XHR } from "./XHR";
import * as models from "../model/models";
export class fhcBasicerrorcontrollerApi {

@@ -41,3 +40,3 @@ constructor(host, headers) {

}
errorHtmlUsingDELETE() {
errorUsingDELETE() {
let _body = null;

@@ -50,6 +49,6 @@ const _url = this.host + "/error" + "?ts=" + new Date().getTime();

return XHR.sendCommand("DELETE", _url, headers, _body)
.then(doc => new models.ModelAndView(doc.body))
.then(doc => JSON.parse(JSON.stringify(doc.body)))
.catch(err => this.handleError(err));
}
errorHtmlUsingGET() {
errorUsingGET() {
let _body = null;

@@ -62,6 +61,6 @@ const _url = this.host + "/error" + "?ts=" + new Date().getTime();

return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.ModelAndView(doc.body))
.then(doc => JSON.parse(JSON.stringify(doc.body)))
.catch(err => this.handleError(err));
}
errorHtmlUsingHEAD() {
errorUsingHEAD() {
let _body = null;

@@ -74,6 +73,6 @@ const _url = this.host + "/error" + "?ts=" + new Date().getTime();

return XHR.sendCommand("HEAD", _url, headers, _body)
.then(doc => new models.ModelAndView(doc.body))
.then(doc => JSON.parse(JSON.stringify(doc.body)))
.catch(err => this.handleError(err));
}
errorHtmlUsingOPTIONS() {
errorUsingOPTIONS() {
let _body = null;

@@ -86,6 +85,6 @@ const _url = this.host + "/error" + "?ts=" + new Date().getTime();

return XHR.sendCommand("OPTIONS", _url, headers, _body)
.then(doc => new models.ModelAndView(doc.body))
.then(doc => JSON.parse(JSON.stringify(doc.body)))
.catch(err => this.handleError(err));
}
errorHtmlUsingPATCH() {
errorUsingPATCH() {
let _body = null;

@@ -98,6 +97,6 @@ const _url = this.host + "/error" + "?ts=" + new Date().getTime();

return XHR.sendCommand("PATCH", _url, headers, _body)
.then(doc => new models.ModelAndView(doc.body))
.then(doc => JSON.parse(JSON.stringify(doc.body)))
.catch(err => this.handleError(err));
}
errorHtmlUsingPOST() {
errorUsingPOST() {
let _body = null;

@@ -110,6 +109,6 @@ const _url = this.host + "/error" + "?ts=" + new Date().getTime();

return XHR.sendCommand("POST", _url, headers, _body)
.then(doc => new models.ModelAndView(doc.body))
.then(doc => JSON.parse(JSON.stringify(doc.body)))
.catch(err => this.handleError(err));
}
errorHtmlUsingPUT() {
errorUsingPUT() {
let _body = null;

@@ -122,5 +121,5 @@ const _url = this.host + "/error" + "?ts=" + new Date().getTime();

return XHR.sendCommand("PUT", _url, headers, _body)
.then(doc => new models.ModelAndView(doc.body))
.then(doc => JSON.parse(JSON.stringify(doc.body)))
.catch(err => this.handleError(err));
}
}

@@ -32,3 +32,3 @@ /**

handleError(e: XHR.Data): void;
agreementRequestsConsultationUsingGET(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientSsin: string, civicsVersion: string, patientDateOfBirth: number, patientFirstName: string, patientLastName: string, patientGender: string, paragraph?: string, start?: number, end?: number, reference?: string): Promise<models.AgreementResponse | any>;
agreementRequestsConsultationUsingGET(keystoreId: string, tokenId: string, passPhrase: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, patientSsin: string, patientDateOfBirth: number, patientFirstName: string, patientLastName: string, patientGender: string, civicsVersion?: string, paragraph?: string, start?: number, end?: number, reference?: string): Promise<models.AgreementResponse | any>;
cancelAgreementUsingDELETE(keystoreId: string, tokenId: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, passPhrase: string, patientSsin: string, decisionReference: string, iorequestReference: string): Promise<models.AgreementResponse | any>;

@@ -39,3 +39,4 @@ closeAgreementUsingDELETE(keystoreId: string, tokenId: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, passPhrase: string, patientSsin: string, decisionReference: string): Promise<models.AgreementResponse | any>;

getAddedDocumentsUsingGET(chapterName: string, paragraphName: string): Promise<Array<models.AddedDocumentPreview> | any>;
getParagraphInfosUsingGET(chapterName: string, paragraphName: string): Promise<models.ParagraphInfos | any>;
requestAgreementUsingPOST(keystoreId: string, tokenId: string, hcpNihii: string, hcpSsin: string, hcpFirstName: string, hcpLastName: string, passPhrase: string, patientSsin: string, requestType: string, civicsVersion: string, paragraph: string, verses: string, incomplete: boolean, start: number, end: number, decisionReference: string, ioRequestReference: string, appendices: Array<models.Appendix>): Promise<models.AgreementResponse | any>;
}

@@ -40,8 +40,6 @@ /**

}
agreementRequestsConsultationUsingGET(keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, patientSsin, civicsVersion, patientDateOfBirth, patientFirstName, patientLastName, patientGender, paragraph, start, end, reference) {
agreementRequestsConsultationUsingGET(keystoreId, tokenId, passPhrase, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, patientSsin, patientDateOfBirth, patientFirstName, patientLastName, patientGender, civicsVersion, paragraph, start, end, reference) {
let _body = null;
const _url = this.host +
"/chap4/consult/{patientSsin}/{civicsVersion}"
.replace("{patientSsin}", patientSsin + "")
.replace("{civicsVersion}", civicsVersion + "") +
"/chap4/consult/{patientSsin}".replace("{patientSsin}", patientSsin + "") +
"?ts=" +

@@ -60,2 +58,3 @@ new Date().getTime() +

(patientGender ? "&patientGender=" + patientGender : "") +
(civicsVersion ? "&civicsVersion=" + civicsVersion : "") +
(paragraph ? "&paragraph=" + paragraph : "") +

@@ -166,2 +165,18 @@ (start ? "&start=" + start : "") +

}
getParagraphInfosUsingGET(chapterName, paragraphName) {
let _body = null;
const _url = this.host +
"/chap4/sam/info/{chapterName}/{paragraphName}"
.replace("{chapterName}", chapterName + "")
.replace("{paragraphName}", paragraphName + "") +
"?ts=" +
new Date().getTime();
let headers = this.headers;
headers = headers
.filter(h => h.header !== "Content-Type")
.concat(new XHR.Header("Content-Type", "application/json"));
return XHR.sendCommand("GET", _url, headers, _body)
.then(doc => new models.ParagraphInfos(doc.body))
.catch(err => this.handleError(err));
}
requestAgreementUsingPOST(keystoreId, tokenId, hcpNihii, hcpSsin, hcpFirstName, hcpLastName, passPhrase, patientSsin, requestType, civicsVersion, paragraph, verses, incomplete, start, end, decisionReference, ioRequestReference, appendices) {

@@ -168,0 +183,0 @@ let _body = null;

@@ -82,2 +82,3 @@ export * from "./AcknowledgeType";

export * from "./MycarenetError";
export * from "./ParagraphInfos";
export * from "./ParagraphPreview";

@@ -120,2 +121,3 @@ export * from "./Patient";

export * from "./UUIDType";
export * from "./VerseInfos";
export * from "./View";

@@ -122,0 +124,0 @@ export * from "./Weekday";

@@ -82,2 +82,3 @@ export * from "./AcknowledgeType";

export * from "./MycarenetError";
export * from "./ParagraphInfos";
export * from "./ParagraphPreview";

@@ -120,2 +121,3 @@ export * from "./Patient";

export * from "./UUIDType";
export * from "./VerseInfos";
export * from "./View";

@@ -122,0 +124,0 @@ export * from "./Weekday";

@@ -82,2 +82,3 @@ export * from "./AcknowledgeType"

export * from "./MycarenetError"
export * from "./ParagraphInfos"
export * from "./ParagraphPreview"

@@ -120,2 +121,3 @@ export * from "./Patient"

export * from "./UUIDType"
export * from "./VerseInfos"
export * from "./View"

@@ -122,0 +124,0 @@ export * from "./Weekday"

{
"name": "fhc-api",
"version": "1.0.4",
"version": "1.0.5",
"description": "Typescript version of Freehealth Connector standalone API client",

@@ -22,2 +22,3 @@ "main": "dist/index.js",

"scripts": {
"gen": "java -classpath swagger-codegen-cli.jar io.swagger.codegen.SwaggerCodegen generate -i https://fhcacc.icure.cloud/v2/api-docs -l typescript --additional-properties classPrefix=fhc -o ./",
"test": "mocha --require ts-node/register --watch-extensions ts 'test/**/*.ts'",

@@ -24,0 +25,0 @@ "build": "tsc",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc