@getyetty-sdk/pennylane 2026.1.22 → 2026.1.30
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/README.md +10 -5
- package/dist/index.d.mts +373 -49
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +192 -32
- package/dist/index.mjs.map +1 -1
- package/package.json +26 -17
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @getyetty-sdk/pennylane
|
|
2
2
|
|
|
3
|
-
TypeScript client for the [Pennylane Accounting API](https://pennylane.readme.io/reference
|
|
3
|
+
TypeScript client for the [Pennylane Accounting API](https://pennylane.readme.io/reference), auto-generated from the official OpenAPI specification.
|
|
4
4
|
|
|
5
5
|
## ⚠️ Disclaimer
|
|
6
6
|
|
|
@@ -73,7 +73,12 @@ const newCustomer = await postCompanyCustomer({
|
|
|
73
73
|
### Creating a Custom Client Instance
|
|
74
74
|
|
|
75
75
|
```typescript
|
|
76
|
-
import {
|
|
76
|
+
import {
|
|
77
|
+
createClient,
|
|
78
|
+
createClientWithApiKey,
|
|
79
|
+
createConfig,
|
|
80
|
+
getCustomers,
|
|
81
|
+
} from '@getyetty-sdk/pennylane';
|
|
77
82
|
|
|
78
83
|
const pennylane = createClient(
|
|
79
84
|
createConfig({
|
|
@@ -81,11 +86,11 @@ const pennylane = createClient(
|
|
|
81
86
|
headers: {
|
|
82
87
|
Authorization: `Bearer ${process.env.PENNYLANE_API_KEY}`,
|
|
83
88
|
},
|
|
84
|
-
})
|
|
89
|
+
}),
|
|
85
90
|
);
|
|
86
91
|
|
|
87
92
|
// Or alternatively if you just have to provide an API key
|
|
88
|
-
const pennylane = createClientWithApiKey(process.env.PENNYLANE_API_KEY)
|
|
93
|
+
const pennylane = createClientWithApiKey(process.env.PENNYLANE_API_KEY);
|
|
89
94
|
|
|
90
95
|
// Use the custom client
|
|
91
96
|
const customers = await getCustomers({
|
|
@@ -96,7 +101,7 @@ const customers = await getCustomers({
|
|
|
96
101
|
|
|
97
102
|
## 📚 API Documentation
|
|
98
103
|
|
|
99
|
-
For detailed API documentation, please refer to the [official Pennylane API docs](https://pennylane.readme.io
|
|
104
|
+
For detailed API documentation, please refer to the [official Pennylane API docs](https://pennylane.readme.io).
|
|
100
105
|
|
|
101
106
|
## 📄 License
|
|
102
107
|
|