@formalingo/sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/formalingoClient.d.ts +12 -0
- package/dist/client/formalingoClient.d.ts.map +1 -0
- package/dist/client/formalingoClient.js +7 -0
- package/dist/client/formalingoClient.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* STUB — This file is replaced by Kiota-generated code when you run:
|
|
3
|
+
* yarn sdk:generate
|
|
4
|
+
*
|
|
5
|
+
* It exists so the handwritten wrapper in index.ts compiles before
|
|
6
|
+
* the first generation pass.
|
|
7
|
+
*/
|
|
8
|
+
import { type RequestAdapter, BaseRequestBuilder } from "@microsoft/kiota-abstractions";
|
|
9
|
+
export interface FormalingoClient extends BaseRequestBuilder<FormalingoClient> {
|
|
10
|
+
}
|
|
11
|
+
export declare function createFormalingoClient(requestAdapter: RequestAdapter): FormalingoClient;
|
|
12
|
+
//# sourceMappingURL=formalingoClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formalingoClient.d.ts","sourceRoot":"","sources":["../../src/client/formalingoClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EACL,KAAK,cAAc,EACnB,kBAAkB,EACnB,MAAM,+BAA+B,CAAA;AAGtC,MAAM,WAAW,gBAAiB,SAAQ,kBAAkB,CAAC,gBAAgB,CAAC;CAAG;AAEjF,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,cAAc,GAC7B,gBAAgB,CAKlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formalingoClient.js","sourceRoot":"","sources":["../../src/client/formalingoClient.ts"],"names":[],"mappings":"AAeA,MAAM,UAAU,sBAAsB,CACpC,cAA8B;IAE9B,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAA;IACvD,CAAC;IACD,OAAO,EAAsB,CAAA;AAC/B,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create a configured Formalingo API client.
|
|
3
|
+
*
|
|
4
|
+
* @param apiKey - Your Formalingo API key (e.g. "af_live_...")
|
|
5
|
+
* @param baseUrl - API base URL (defaults to production)
|
|
6
|
+
* @returns A fully configured FormalingoClient instance
|
|
7
|
+
*/
|
|
8
|
+
export declare function createClient(apiKey: string, baseUrl?: string): import("./client/formalingoClient.js").FormalingoClient;
|
|
9
|
+
export { createFormalingoClient } from "./client/formalingoClient.js";
|
|
10
|
+
export type { FormalingoClient } from "./client/formalingoClient.js";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,EACd,OAAO,SAA2B,2DAUnC;AAGD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AACrE,YAAY,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ApiKeyAuthenticationProvider, ApiKeyLocation, } from "@microsoft/kiota-abstractions";
|
|
2
|
+
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
|
|
3
|
+
import { createFormalingoClient } from "./client/formalingoClient.js";
|
|
4
|
+
/**
|
|
5
|
+
* Create a configured Formalingo API client.
|
|
6
|
+
*
|
|
7
|
+
* @param apiKey - Your Formalingo API key (e.g. "af_live_...")
|
|
8
|
+
* @param baseUrl - API base URL (defaults to production)
|
|
9
|
+
* @returns A fully configured FormalingoClient instance
|
|
10
|
+
*/
|
|
11
|
+
export function createClient(apiKey, baseUrl = "https://formalingo.com") {
|
|
12
|
+
const auth = new ApiKeyAuthenticationProvider(`Bearer ${apiKey}`, "Authorization", ApiKeyLocation.Header);
|
|
13
|
+
const adapter = new FetchRequestAdapter(auth);
|
|
14
|
+
adapter.baseUrl = `${baseUrl}/api/v1`;
|
|
15
|
+
return createFormalingoClient(adapter);
|
|
16
|
+
}
|
|
17
|
+
// Re-export generated client factory and types
|
|
18
|
+
export { createFormalingoClient } from "./client/formalingoClient.js";
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,cAAc,GACf,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAA;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAErE;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAC1B,MAAc,EACd,OAAO,GAAG,wBAAwB;IAElC,MAAM,IAAI,GAAG,IAAI,4BAA4B,CAC3C,UAAU,MAAM,EAAE,EAClB,eAAe,EACf,cAAc,CAAC,MAAM,CACtB,CAAA;IACD,MAAM,OAAO,GAAG,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAA;IAC7C,OAAO,CAAC,OAAO,GAAG,GAAG,OAAO,SAAS,CAAA;IACrC,OAAO,sBAAsB,CAAC,OAAO,CAAC,CAAA;AACxC,CAAC;AAED,+CAA+C;AAC/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@formalingo/sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Official TypeScript SDK for the Formalingo API",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc",
|
|
19
|
+
"clean": "rm -rf dist"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@microsoft/kiota-abstractions": "^1.0.0-preview.99",
|
|
23
|
+
"@microsoft/kiota-http-fetchlibrary": "^1.0.0-preview.99",
|
|
24
|
+
"@microsoft/kiota-serialization-json": "^1.0.0-preview.99",
|
|
25
|
+
"@microsoft/kiota-serialization-text": "^1.0.0-preview.99",
|
|
26
|
+
"@microsoft/kiota-serialization-form": "^1.0.0-preview.99",
|
|
27
|
+
"@microsoft/kiota-serialization-multipart": "^1.0.0-preview.99"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"typescript": "^5.0.0"
|
|
31
|
+
},
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=20"
|
|
34
|
+
},
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "https://github.com/formalingo/sdk-typescript"
|
|
39
|
+
},
|
|
40
|
+
"keywords": [
|
|
41
|
+
"formalingo",
|
|
42
|
+
"forms",
|
|
43
|
+
"api",
|
|
44
|
+
"sdk",
|
|
45
|
+
"digital-signatures"
|
|
46
|
+
]
|
|
47
|
+
}
|