Skip to content
This repository has been archived by the owner on Mar 27, 2021. It is now read-only.

Commit

Permalink
chore(release): 1.1.3 [skip ci]
Browse files Browse the repository at this point in the history
## [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
semantic-release-bot committed Mar 21, 2021
1 parent 4e390a3 commit 8d539a3
Show file tree
Hide file tree
Showing 44 changed files with 381 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Iris from './lib/';
export default Iris;
5 changes: 5 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
93 changes: 93 additions & 0 deletions dist/index.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/index.test.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions dist/lib/Iris.d.ts
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>;
}
55 changes: 55 additions & 0 deletions dist/lib/Iris.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/lib/Iris.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions dist/lib/crypto.d.ts
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;
};
19 changes: 19 additions & 0 deletions dist/lib/crypto.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/lib/crypto.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Iris from './Iris';
export default Iris;
5 changes: 5 additions & 0 deletions dist/lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/lib/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/lib/util.d.ts
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;
19 changes: 19 additions & 0 deletions dist/lib/util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/lib/util.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/types/IrisCode.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare type IrisCode = string;
export default IrisCode;
3 changes: 3 additions & 0 deletions dist/types/IrisCode.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/types/IrisCode.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dist/types/IrisCodeKeyMap.d.ts
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;
3 changes: 3 additions & 0 deletions dist/types/IrisCodeKeyMap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/types/IrisCodeKeyMap.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

68 changes: 68 additions & 0 deletions dist/types/IrisContactsEvents.d.ts
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 {};
18 changes: 18 additions & 0 deletions dist/types/IrisContactsEvents.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8d539a3

Please sign in to comment.