@papierapi/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.
@@ -0,0 +1,7 @@
1
+ import {
2
+ papierApiOperations
3
+ } from "./chunk-JDUUPLUG.js";
4
+ export {
5
+ papierApiOperations
6
+ };
7
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,13 @@
1
+ import { PapierApiClient, type PapierApiClientOptions } from "@papierapi/sdk";
2
+
3
+ export async function getDispatch(accessToken: string, dispatchId: string) {
4
+ const options = {
5
+ baseUrl: "https://api.papierapi.de",
6
+ accessToken,
7
+ } satisfies PapierApiClientOptions;
8
+
9
+ const client = new PapierApiClient(options);
10
+ const response = await client.getDispatch(dispatchId);
11
+
12
+ return response.data;
13
+ }
package/package.json ADDED
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "@papierapi/sdk",
3
+ "version": "0.1.0",
4
+ "description": "Official TypeScript SDK for Papier API letter and fax workflows.",
5
+ "keywords": [
6
+ "papierapi",
7
+ "letter",
8
+ "fax",
9
+ "typescript",
10
+ "sdk"
11
+ ],
12
+ "license": "MIT",
13
+ "homepage": "https://papierapi.de/entwickler",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/felixhaeberle/papierapi.git",
17
+ "directory": "packages/sdk"
18
+ },
19
+ "bugs": {
20
+ "email": "support@papierapi.de"
21
+ },
22
+ "type": "module",
23
+ "sideEffects": false,
24
+ "types": "./dist/index.d.ts",
25
+ "exports": {
26
+ ".": {
27
+ "types": "./dist/index.d.ts",
28
+ "import": "./dist/index.js",
29
+ "default": "./dist/index.js"
30
+ },
31
+ "./operations": {
32
+ "types": "./dist/operations.d.ts",
33
+ "import": "./dist/operations.js",
34
+ "default": "./dist/operations.js"
35
+ }
36
+ },
37
+ "files": [
38
+ "dist",
39
+ "examples",
40
+ "LICENSE",
41
+ "README.md"
42
+ ],
43
+ "engines": {
44
+ "node": ">=20 <26"
45
+ },
46
+ "publishConfig": {
47
+ "access": "public",
48
+ "registry": "https://registry.npmjs.org/",
49
+ "provenance": false
50
+ },
51
+ "dependencies": {
52
+ "zod": "4.4.3"
53
+ },
54
+ "devDependencies": {
55
+ "@typescript/typescript6": "6.0.2",
56
+ "esbuild": "0.28.1",
57
+ "typescript": "7.0.2",
58
+ "vitest": "4.1.10",
59
+ "@papierapi/contracts": "0.1.0"
60
+ },
61
+ "scripts": {
62
+ "build": "node scripts/build.mjs",
63
+ "release:check": "node scripts/release-check.mjs",
64
+ "test:pack": "node scripts/pack-smoke.mjs",
65
+ "typecheck": "tsc -p tsconfig.json --noEmit"
66
+ },
67
+ "main": "./dist/index.js"
68
+ }