-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
## [1.1.3](v1.1.2...v1.1.3) (2021-03-21) ### Bug Fixes * generate ts declaration file for typings ([4e390a3](4e390a3))
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import Iris from './lib/'; | ||
export default Iris; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import IrisOptions from '../types/IrisOptions'; | ||
import IrisCode from '../types/IrisCode'; | ||
import IrisDataRequest from '../types/IrisDataRequest'; | ||
import IrisContactsEvents from '../types/IrisContactsEvents'; | ||
import IrisUserInfo from '../types/IrisUserInfo'; | ||
export default class Iris { | ||
private axiosInstance; | ||
private codeKeyMap; | ||
constructor(options: Partial<IrisOptions>); | ||
getDataRequest(code: IrisCode): Promise<IrisDataRequest>; | ||
sendContactsEvents(code: IrisCode, data: IrisContactsEvents, user: IrisUserInfo): Promise<void>; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export declare function encryptData(keyOfHealthDepartment: string, data: any): { | ||
dataToTransport: string; | ||
keyToTransport: string; | ||
nonce: string; | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import Iris from './Iris'; | ||
export default Iris; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export declare function getNameCheckHash(firstName: string, lastName: string): string; | ||
export declare function getBirthDateCheckHash(birthDate?: string): string | undefined; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
declare type IrisCode = string; | ||
export default IrisCode; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import IrisDataRequestDTO from './dto/IrisDataRequestDTO'; | ||
import IrisCode from './IrisCode'; | ||
declare type IrisCodeKeyMap = Map<IrisCode, Pick<IrisDataRequestDTO, 'keyOfHealthDepartment' | 'keyReferenz'>>; | ||
export default IrisCodeKeyMap; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
interface DataProvider { | ||
firstName?: string; | ||
lastName?: string; | ||
dateOfBirth?: string; | ||
} | ||
declare enum Sex { | ||
MALE = "MALE", | ||
FEMALE = "FEMALE", | ||
OTHER = "OTHER", | ||
UNKNOWN = "UNKNOWN" | ||
} | ||
interface Address { | ||
street: string; | ||
houseNumber: string; | ||
zipCode: string; | ||
city: string; | ||
} | ||
declare enum ContactCategory { | ||
HIGH_RISK = "HIGH_RISK", | ||
HIGH_RISK_MED = "HIGH_RISK_MED", | ||
MEDIUM_RISK_MED = "MEDIUM_RISK_MED", | ||
LOW_RISK = "LOW_RISK", | ||
NO_RISK = "NO_RISK" | ||
} | ||
interface ContactPerson { | ||
firstName: string; | ||
lastName: string; | ||
dateOfBirth?: string; | ||
sex?: Sex; | ||
email?: string; | ||
phone?: string; | ||
mobilPhone?: string; | ||
address?: Address; | ||
workPlace?: { | ||
name?: string; | ||
pointOfContact?: string; | ||
phone?: string; | ||
address?: Address; | ||
}; | ||
contactInformation?: { | ||
date?: string; | ||
contactCategory?: ContactCategory; | ||
basicConditions?: string; | ||
}; | ||
} | ||
interface Event { | ||
name?: string; | ||
phone?: string; | ||
address?: Address; | ||
additionalInformation?: string; | ||
} | ||
interface ContactPersonList { | ||
contactPersons: Array<ContactPerson>; | ||
dataProvider?: DataProvider; | ||
startDate?: string; | ||
endDate?: string; | ||
} | ||
interface EventList { | ||
events: Array<Event>; | ||
dataProvider?: DataProvider; | ||
startDate?: string; | ||
endDate?: string; | ||
} | ||
export default interface IrisContactsEvents { | ||
contacts: ContactPersonList; | ||
events: EventList; | ||
} | ||
export {}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.