Skip to content

Commit

Permalink
v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Feb 5, 2024
1 parent 879a7c5 commit 58dff56
Show file tree
Hide file tree
Showing 7 changed files with 525 additions and 192 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ $ npm install @seneca/bud-provider @seneca/env
* `url` : string
* `fetch` : any
* `debug` : boolean
* `print` : object
* `retry` : object
* `entity` : object
* `wait` : object
Expand Down
31 changes: 28 additions & 3 deletions dist/bud-provider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ type FullBudProviderOptions = {
url: string;
fetch: any;
debug: boolean;
print: {
request: boolean;
};
entity: Record<string, Record<string, any>>;
retry: {
config: Record<string, any>;
Expand All @@ -22,6 +25,19 @@ type FullBudProviderOptions = {
};
declare function BudProvider(this: any, options: FullBudProviderOptions): {
exports: {
getTokens: () => Promise<true | {
when: number;
prev: {
refreshToken: any;
accessToken: any;
config: string;
};
current: {
refreshToken: any;
accessToken: any;
config: string;
};
}>;
getGateway: (spec: {
redirect_url: string;
clientid: string;
Expand All @@ -31,10 +47,19 @@ declare function BudProvider(this: any, options: FullBudProviderOptions): {
mode?: string;
}) => Promise<any>;
sdk: () => null;
stats: () => any;
stats: () => {
refresh: number;
access: number;
loadrefresh: number;
loadaccess: number;
req: number;
res: number;
error: number;
notfound: number;
};
util: {
getTokenState: () => "active" | "start" | "refresh" | "init" | "request";
setTokenState: (tokenStateIn: "active" | "start" | "refresh" | "init" | "request") => "active" | "start" | "refresh" | "init" | "request";
getTokenState: () => "active" | "start" | "refresh" | "request" | "init";
setTokenState: (tokenStateIn: "active" | "start" | "refresh" | "request" | "init") => "active" | "start" | "refresh" | "request" | "init";
getToken: (name: string) => any;
setToken: (name: string, value: string) => void;
};
Expand Down
Loading

0 comments on commit 58dff56

Please sign in to comment.