Skip to content

Commit b46c1d1

Browse files
SK-1912: add fern code (#192)
1 parent 7f6e1fb commit b46c1d1

File tree

215 files changed

+7153
-7807
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+7153
-7807
lines changed

package-lock.json

Lines changed: 2040 additions & 2032 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,17 @@
3232
"tokenization"
3333
],
3434
"dependencies": {
35-
"axios": "^1.6.1",
3635
"dotenv": "^16.4.5",
3736
"jsonwebtoken": "^9.0.2",
38-
"jwt-decode": "^2.2.0"
37+
"jwt-decode": "^2.2.0",
38+
"url-join": "4.0.1",
39+
"form-data": "^4.0.0",
40+
"formdata-node": "^6.0.3",
41+
"node-fetch": "^2.7.0",
42+
"qs": "^6.13.1",
43+
"readable-stream": "^4.5.2",
44+
"js-base64": "3.7.7",
45+
"form-data-encoder": "^4.0.2"
3946
},
4047
"devDependencies": {
4148
"@babel/plugin-proposal-decorators": "^7.25.7",
@@ -47,6 +54,15 @@
4754
"@types/node": "12.11.5 - 12.20.42",
4855
"jest": "^29.7.0",
4956
"ts-jest": "^29.2.5",
50-
"typescript": "^4.0 || ^5.0"
57+
"typescript": "^4.0 || ^5.0",
58+
"@types/url-join": "4.0.1",
59+
"@types/qs": "^6.9.17",
60+
"@types/node-fetch": "^2.6.12",
61+
"@types/readable-stream": "^4.0.18",
62+
"webpack": "^5.97.1",
63+
"ts-loader": "^9.5.1",
64+
"@types/jest": "^29.5.14",
65+
"jest-environment-jsdom": "^29.7.0",
66+
"prettier": "^3.4.2"
5167
}
5268
}

src/ _generated_/rest/Client.ts

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as environments from "./environments";
6+
import * as core from "./core";
7+
import { Audit } from "./api/resources/audit/client/Client";
8+
import { BinLookup } from "./api/resources/binLookup/client/Client";
9+
import { Records } from "./api/resources/records/client/Client";
10+
import { Tokens } from "./api/resources/tokens/client/Client";
11+
import { Query } from "./api/resources/query/client/Client";
12+
import { Authentication } from "./api/resources/authentication/client/Client";
13+
14+
export declare namespace SkyflowClient {
15+
export interface Options {
16+
environment?: core.Supplier<environments.SkyflowEnvironment | string>;
17+
/** Specify a custom URL to connect the client to. */
18+
baseUrl?: core.Supplier<string>;
19+
token: core.Supplier<core.BearerToken>;
20+
fetcher?: core.FetchFunction;
21+
}
22+
23+
export interface RequestOptions {
24+
/** The maximum time to wait for a response in seconds. */
25+
timeoutInSeconds?: number;
26+
/** The number of times to retry the request. Defaults to 2. */
27+
maxRetries?: number;
28+
/** A hook to abort the request. */
29+
abortSignal?: AbortSignal;
30+
/** Additional headers to include in the request. */
31+
headers?: Record<string, string>;
32+
}
33+
}
34+
35+
export class SkyflowClient {
36+
protected _audit: Audit | undefined;
37+
protected _binLookup: BinLookup | undefined;
38+
protected _records: Records | undefined;
39+
protected _tokens: Tokens | undefined;
40+
protected _query: Query | undefined;
41+
protected _authentication: Authentication | undefined;
42+
43+
constructor(protected readonly _options: SkyflowClient.Options) {}
44+
45+
public get audit(): Audit {
46+
return (this._audit ??= new Audit(this._options));
47+
}
48+
49+
public get binLookup(): BinLookup {
50+
return (this._binLookup ??= new BinLookup(this._options));
51+
}
52+
53+
public get records(): Records {
54+
return (this._records ??= new Records(this._options));
55+
}
56+
57+
public get tokens(): Tokens {
58+
return (this._tokens ??= new Tokens(this._options));
59+
}
60+
61+
public get query(): Query {
62+
return (this._query ??= new Query(this._options));
63+
}
64+
65+
public get authentication(): Authentication {
66+
return (this._authentication ??= new Authentication(this._options));
67+
}
68+
}

src/ _generated_/rest/api.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)