Skip to content

Commit

Permalink
chore: release v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
khskekec committed Mar 22, 2022
1 parent d45b920 commit a9ad1a7
Show file tree
Hide file tree
Showing 8 changed files with 289 additions and 452 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


## [0.1.1](https://github.com/DiaKEM/dexcom-api-client/compare/0.1.0...0.1.1) (2022-03-22)* chore: ts fixed (75fcb83)
## [0.1.2](https://github.com/DiaKEM/dexcom-api-client/compare/0.1.1...0.1.2) (2022-03-22)## [0.1.1](https://github.com/DiaKEM/dexcom-api-client/compare/0.1.0...0.1.1) (2022-03-22)* chore: ts fixed (75fcb83)
* feat: observer feature implemented (930f1d1)## [0.0.6](https://github.com/DiaKEM/dexcom-api-client/compare/0.0.5...0.0.6) (2022-03-21)## [0.0.5](https://github.com/DiaKEM/dexcom-api-client/compare/0.0.4...0.0.5) (2022-03-21)## 0.0.4 (2022-03-21)
35 changes: 13 additions & 22 deletions lib/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,19 @@ import { AxiosRequestConfig } from 'axios';
import schedule from 'node-schedule';
import { CGMDataType } from './utils';
declare type DexcomApiClientType = {
username: string;
password: string;
server: 'US' | 'EU';
clientOpts?: AxiosRequestConfig;
username: string;
password: string;
server: 'US' | 'EU';
clientOpts?: AxiosRequestConfig;
};
export declare const DexcomApiClient: ({
username,
password,
server,
clientOpts,
}: DexcomApiClientType) => {
login: () => Promise<void>;
read: (minutesAgo?: number, count?: number) => Promise<CGMDataType[]>;
readLast: () => Promise<CGMDataType[]>;
observe: ({
maxAttempts,
delay,
listener,
}: {
maxAttempts?: number | undefined;
delay?: number | undefined;
listener: (data: CGMDataType) => void;
}) => Promise<schedule.Job>;
export declare const DexcomApiClient: ({ username, password, server, clientOpts, }: DexcomApiClientType) => {
login: () => Promise<void>;
read: (minutesAgo?: number, count?: number) => Promise<CGMDataType[]>;
readLast: () => Promise<CGMDataType[]>;
observe: ({ maxAttempts, delay, listener, }: {
maxAttempts?: number | undefined;
delay?: number | undefined;
listener: (data: CGMDataType) => void;
}) => Promise<schedule.Job>;
};
export {};
Loading

0 comments on commit a9ad1a7

Please sign in to comment.