Comparing version 1.0.12 to 1.0.13
@@ -45,5 +45,4 @@ /** | ||
confirmUsingPUT( | ||
confirmAcksUsingPUT( | ||
nihii: string, | ||
language: string, | ||
xFHCKeystoreId: string, | ||
@@ -62,3 +61,3 @@ xFHCTokenId: string, | ||
this.host + | ||
"/efact/confirm".replace("{nihii}", nihii + "").replace("{language}", language + "") + | ||
"/efact/confirm/acks/{nihii}".replace("{nihii}", nihii + "") + | ||
"?ts=" + | ||
@@ -80,2 +79,34 @@ new Date().getTime() + | ||
} | ||
confirmMessagesUsingPUT( | ||
nihii: string, | ||
xFHCKeystoreId: string, | ||
xFHCTokenId: string, | ||
xFHCPassPhrase: string, | ||
ssin: string, | ||
firstName: string, | ||
lastName: string, | ||
valueHashes: Array<string> | ||
): Promise<boolean | any> { | ||
let _body = null | ||
_body = valueHashes | ||
const _url = | ||
this.host + | ||
"/efact/confirm/msgs/{nihii}".replace("{nihii}", nihii + "") + | ||
"?ts=" + | ||
new Date().getTime() + | ||
(ssin ? "&ssin=" + ssin : "") + | ||
(firstName ? "&firstName=" + firstName : "") + | ||
(lastName ? "&lastName=" + lastName : "") | ||
let headers = this.headers | ||
headers = headers | ||
.filter(h => h.header !== "Content-Type") | ||
.concat(new XHR.Header("Content-Type", "application/json")) | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)) | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)) | ||
return XHR.sendCommand("PUT", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.catch(err => this.handleError(err)) | ||
} | ||
loadMessagesUsingGET( | ||
@@ -82,0 +113,0 @@ nihii: string, |
@@ -32,3 +32,4 @@ /** | ||
handleError(e: XHR.Data): void; | ||
confirmUsingPUT(nihii: string, language: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, ssin: string, firstName: string, lastName: string, valueHashes: Array<string>): Promise<boolean | any>; | ||
confirmAcksUsingPUT(nihii: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, ssin: string, firstName: string, lastName: string, valueHashes: Array<string>): Promise<boolean | any>; | ||
confirmMessagesUsingPUT(nihii: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, ssin: string, firstName: string, lastName: string, valueHashes: Array<string>): Promise<boolean | any>; | ||
loadMessagesUsingGET(nihii: string, language: string, xFHCKeystoreId: string, xFHCTokenId: string, xFHCPassPhrase: string, ssin: string, firstName: string, lastName: string): Promise<Array<models.EfactMessage> | any>; | ||
@@ -35,0 +36,0 @@ makeFlatFileTestUsingPOST(batch: models.InvoicesBatch): Promise<string | any>; |
@@ -40,7 +40,7 @@ /** | ||
} | ||
confirmUsingPUT(nihii, language, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, ssin, firstName, lastName, valueHashes) { | ||
confirmAcksUsingPUT(nihii, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, ssin, firstName, lastName, valueHashes) { | ||
let _body = null; | ||
_body = valueHashes; | ||
const _url = this.host + | ||
"/efact/confirm".replace("{nihii}", nihii + "").replace("{language}", language + "") + | ||
"/efact/confirm/acks/{nihii}".replace("{nihii}", nihii + "") + | ||
"?ts=" + | ||
@@ -62,2 +62,23 @@ new Date().getTime() + | ||
} | ||
confirmMessagesUsingPUT(nihii, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, ssin, firstName, lastName, valueHashes) { | ||
let _body = null; | ||
_body = valueHashes; | ||
const _url = this.host + | ||
"/efact/confirm/msgs/{nihii}".replace("{nihii}", nihii + "") + | ||
"?ts=" + | ||
new Date().getTime() + | ||
(ssin ? "&ssin=" + ssin : "") + | ||
(firstName ? "&firstName=" + firstName : "") + | ||
(lastName ? "&lastName=" + lastName : ""); | ||
let headers = this.headers; | ||
headers = headers | ||
.filter(h => h.header !== "Content-Type") | ||
.concat(new XHR.Header("Content-Type", "application/json")); | ||
headers = headers.concat(new XHR.Header("X-FHC-keystoreId", xFHCKeystoreId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-tokenId", xFHCTokenId)); | ||
headers = headers.concat(new XHR.Header("X-FHC-passPhrase", xFHCPassPhrase)); | ||
return XHR.sendCommand("PUT", _url, headers, _body) | ||
.then(doc => JSON.parse(JSON.stringify(doc.body))) | ||
.catch(err => this.handleError(err)); | ||
} | ||
loadMessagesUsingGET(nihii, language, xFHCKeystoreId, xFHCTokenId, xFHCPassPhrase, ssin, firstName, lastName) { | ||
@@ -64,0 +85,0 @@ let _body = null; |
@@ -30,3 +30,3 @@ /** | ||
id?: string; | ||
message?: models.Message; | ||
message?: Array<models.Record>; | ||
name?: string; | ||
@@ -33,0 +33,0 @@ tack?: models.TAck; |
@@ -27,2 +27,3 @@ /** | ||
constructor(json: JSON | any); | ||
detail?: string; | ||
inputReference?: string; | ||
@@ -29,0 +30,0 @@ success?: boolean; |
@@ -24,3 +24,2 @@ /** | ||
*/ | ||
import * as models from "./models"; | ||
export declare class ErrorDetail { | ||
@@ -34,3 +33,2 @@ constructor(json: JSON | any); | ||
oaResult?: string; | ||
record?: models.RecordRecordOrSegmentDescription; | ||
rejectionCode1?: string; | ||
@@ -37,0 +35,0 @@ rejectionCode2?: string; |
@@ -29,2 +29,3 @@ /** | ||
deceased?: number; | ||
errors?: Array<models.MycarenetError>; | ||
faultCode?: string; | ||
@@ -42,4 +43,8 @@ faultMessage?: string; | ||
sex?: string; | ||
soapRequest?: string; | ||
soapResponse?: string; | ||
specialSocialCategory?: boolean; | ||
transfers?: Array<models.TransferDto>; | ||
xmlRequest?: string; | ||
xmlResponse?: string; | ||
} |
@@ -34,3 +34,4 @@ /** | ||
phoneNumber?: number; | ||
specialist?: boolean; | ||
ssin?: string; | ||
} |
export * from "./AcknowledgeType"; | ||
export * from "./Acknowledgment"; | ||
export * from "./AddedDocumentPreview"; | ||
@@ -24,2 +23,3 @@ export * from "./Address"; | ||
export * from "./Code"; | ||
export * from "./CodeResult"; | ||
export * from "./CollectionProblem"; | ||
@@ -72,3 +72,2 @@ export * from "./CompoundPrescription"; | ||
export * from "./InvoiceItem"; | ||
export * from "./InvoiceReceipt"; | ||
export * from "./InvoiceSender"; | ||
@@ -99,8 +98,4 @@ export * from "./InvoicesBatch"; | ||
export * from "./PutTransactionSetResponse"; | ||
export * from "./Receipt95"; | ||
export * from "./Record"; | ||
export * from "./RecordOrSegmentDescription"; | ||
export * from "./RecordRecordOrSegmentDescription"; | ||
export * from "./RecordSegment200Description"; | ||
export * from "./RecordSegment300Description"; | ||
export * from "./RecordSegment300ErrorDescription"; | ||
export * from "./RegimenItem"; | ||
@@ -110,5 +105,2 @@ export * from "./RequestType"; | ||
export * from "./SamlTokenResult"; | ||
export * from "./Segment200Description"; | ||
export * from "./Segment300Description"; | ||
export * from "./Segment300ErrorDescription"; | ||
export * from "./SendAttestResult"; | ||
@@ -115,0 +107,0 @@ export * from "./SendAttestResultWithResponse"; |
export * from "./AcknowledgeType"; | ||
export * from "./Acknowledgment"; | ||
export * from "./AddedDocumentPreview"; | ||
@@ -24,2 +23,3 @@ export * from "./Address"; | ||
export * from "./Code"; | ||
export * from "./CodeResult"; | ||
export * from "./CollectionProblem"; | ||
@@ -72,3 +72,2 @@ export * from "./CompoundPrescription"; | ||
export * from "./InvoiceItem"; | ||
export * from "./InvoiceReceipt"; | ||
export * from "./InvoiceSender"; | ||
@@ -99,8 +98,4 @@ export * from "./InvoicesBatch"; | ||
export * from "./PutTransactionSetResponse"; | ||
export * from "./Receipt95"; | ||
export * from "./Record"; | ||
export * from "./RecordOrSegmentDescription"; | ||
export * from "./RecordRecordOrSegmentDescription"; | ||
export * from "./RecordSegment200Description"; | ||
export * from "./RecordSegment300Description"; | ||
export * from "./RecordSegment300ErrorDescription"; | ||
export * from "./RegimenItem"; | ||
@@ -110,5 +105,2 @@ export * from "./RequestType"; | ||
export * from "./SamlTokenResult"; | ||
export * from "./Segment200Description"; | ||
export * from "./Segment300Description"; | ||
export * from "./Segment300ErrorDescription"; | ||
export * from "./SendAttestResult"; | ||
@@ -115,0 +107,0 @@ export * from "./SendAttestResultWithResponse"; |
@@ -28,5 +28,2 @@ /** | ||
zoneDescriptions?: Array<models.ZoneDescription>; | ||
zoneDescriptionsByZone?: { | ||
[key: string]: models.ZoneDescription; | ||
}; | ||
} |
@@ -31,3 +31,7 @@ /** | ||
kmehrMessage?: Array<string>; | ||
soapRequest?: string; | ||
soapResponse?: string; | ||
xades?: Array<string>; | ||
xmlRequest?: string; | ||
xmlResponse?: string; | ||
} |
@@ -28,3 +28,3 @@ /** | ||
birthdate?: Date; | ||
codes?: Array<string>; | ||
codeResults?: Array<models.CodeResult>; | ||
ct1?: string; | ||
@@ -36,11 +36,7 @@ ct2?: string; | ||
fees?: Array<models.Payment>; | ||
financialContracts?: Array<string>; | ||
firstName?: string; | ||
insurancePeriodEnd?: Date; | ||
insurancePeriodStart?: Date; | ||
justification?: number; | ||
lastName?: string; | ||
niss?: string; | ||
patientFees?: Array<models.Payment>; | ||
reimbursements?: Array<models.Payment>; | ||
sex?: TarificationConsultationResult.SexEnum; | ||
@@ -47,0 +43,0 @@ } |
@@ -24,5 +24,7 @@ /** | ||
*/ | ||
import * as models from "./models"; | ||
export declare class Zone { | ||
constructor(json: JSON | any); | ||
value?: any; | ||
zoneDescription?: models.ZoneDescription; | ||
} |
@@ -32,5 +32,3 @@ /** | ||
value?: string; | ||
zone?: string; | ||
zones?: Array<string>; | ||
zonesList?: string; | ||
} | ||
@@ -37,0 +35,0 @@ export declare namespace ZoneDescription { |
@@ -37,3 +37,3 @@ /** | ||
message?: models.Message | ||
message?: Array<models.Record> | ||
@@ -40,0 +40,0 @@ name?: string |
@@ -31,2 +31,4 @@ /** | ||
} | ||
detail?: string | ||
inputReference?: string | ||
@@ -33,0 +35,0 @@ |
@@ -43,4 +43,2 @@ /** | ||
record?: models.RecordRecordOrSegmentDescription | ||
rejectionCode1?: string | ||
@@ -47,0 +45,0 @@ |
@@ -35,2 +35,4 @@ /** | ||
errors?: Array<models.MycarenetError> | ||
faultCode?: string | ||
@@ -60,5 +62,13 @@ | ||
soapRequest?: string | ||
soapResponse?: string | ||
specialSocialCategory?: boolean | ||
transfers?: Array<models.TransferDto> | ||
xmlRequest?: string | ||
xmlResponse?: string | ||
} |
@@ -47,3 +47,5 @@ /** | ||
specialist?: boolean | ||
ssin?: string | ||
} |
export * from "./AcknowledgeType" | ||
export * from "./Acknowledgment" | ||
export * from "./AddedDocumentPreview" | ||
@@ -24,2 +23,3 @@ export * from "./Address" | ||
export * from "./Code" | ||
export * from "./CodeResult" | ||
export * from "./CollectionProblem" | ||
@@ -72,3 +72,2 @@ export * from "./CompoundPrescription" | ||
export * from "./InvoiceItem" | ||
export * from "./InvoiceReceipt" | ||
export * from "./InvoiceSender" | ||
@@ -99,8 +98,4 @@ export * from "./InvoicesBatch" | ||
export * from "./PutTransactionSetResponse" | ||
export * from "./Receipt95" | ||
export * from "./Record" | ||
export * from "./RecordOrSegmentDescription" | ||
export * from "./RecordRecordOrSegmentDescription" | ||
export * from "./RecordSegment200Description" | ||
export * from "./RecordSegment300Description" | ||
export * from "./RecordSegment300ErrorDescription" | ||
export * from "./RegimenItem" | ||
@@ -110,5 +105,2 @@ export * from "./RequestType" | ||
export * from "./SamlTokenResult" | ||
export * from "./Segment200Description" | ||
export * from "./Segment300Description" | ||
export * from "./Segment300ErrorDescription" | ||
export * from "./SendAttestResult" | ||
@@ -115,0 +107,0 @@ export * from "./SendAttestResultWithResponse" |
@@ -32,4 +32,2 @@ /** | ||
zoneDescriptions?: Array<models.ZoneDescription> | ||
zoneDescriptionsByZone?: { [key: string]: models.ZoneDescription } | ||
} |
@@ -6,4 +6,4 @@ /** | ||
* OpenAPI spec version: 1.0 | ||
* | ||
* | ||
* | ||
* NOTE: This class is auto generated by the swagger code generator program. | ||
@@ -28,3 +28,3 @@ * https://github.com/swagger-api/swagger-codegen.git | ||
export class SendAttestResultWithResponse { | ||
export class SendAttestResultWithResponse { | ||
constructor(json: JSON | any) { | ||
@@ -41,3 +41,11 @@ Object.assign(this as SendAttestResultWithResponse, json) | ||
soapRequest?: string | ||
soapResponse?: string | ||
xades?: Array<string> | ||
xmlRequest?: string | ||
xmlResponse?: string | ||
} |
@@ -33,3 +33,3 @@ /** | ||
codes?: Array<string> | ||
codeResults?: Array<models.CodeResult> | ||
@@ -48,4 +48,2 @@ ct1?: string | ||
financialContracts?: Array<string> | ||
firstName?: string | ||
@@ -57,4 +55,2 @@ | ||
justification?: number | ||
lastName?: string | ||
@@ -64,6 +60,2 @@ | ||
patientFees?: Array<models.Payment> | ||
reimbursements?: Array<models.Payment> | ||
sex?: TarificationConsultationResult.SexEnum | ||
@@ -70,0 +62,0 @@ } |
@@ -32,2 +32,4 @@ /** | ||
value?: any | ||
zoneDescription?: models.ZoneDescription | ||
} |
@@ -43,7 +43,3 @@ /** | ||
zone?: string | ||
zones?: Array<string> | ||
zonesList?: string | ||
} | ||
@@ -50,0 +46,0 @@ export namespace ZoneDescription { |
{ | ||
"name": "fhc-api", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Typescript version of Freehealth Connector standalone API client", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15955398
427
19225