@outseta/api-client 0.2.4 → 0.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outseta/api-client",
3
- "version": "0.2.4",
3
+ "version": "0.3.0",
4
4
  "description": "Generated API client for the Outseta REST API",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/client.ts CHANGED
@@ -60,6 +60,13 @@ export function createClient(creds: OutsetaCredentials): OutsetaClient {
60
60
  * Consumers pass `{ client }` in the options to inject a client from
61
61
  * `createClient()`.
62
62
  */
63
+ export function withClient(
64
+ client: OutsetaClient,
65
+ init: RequestInit = {},
66
+ ): RequestInit {
67
+ return { ...init, client } as OutsetaRequestInit as RequestInit;
68
+ }
69
+
63
70
  export const customFetch = async <T>(
64
71
  url: string,
65
72
  options: OutsetaRequestInit,
@@ -45,6 +45,8 @@ export type StripeSubscriptionAllOf = {
45
45
  /** @nullable */
46
46
  AccountUid?: string | null;
47
47
  /** @nullable */
48
+ BillingCycleAnchor?: string | null;
49
+ /** @nullable */
48
50
  CollectionMethod?: string | null;
49
51
  /** @nullable */
50
52
  CustomerId?: string | null;
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { createClient, customFetch } from "./client.js";
1
+ export { createClient, customFetch, withClient } from "./client.js";
2
2
  export type {
3
3
  OutsetaCredentials,
4
4
  OutsetaApiKeyCredentials,
@@ -7,5 +7,10 @@ export type {
7
7
  OutsetaRequestInit,
8
8
  } from "./client.js";
9
9
 
10
- // Re-export generated types and functions once generated
11
- // export * from "./generated/index.js";
10
+ // Generated API functions and model types
11
+ export * from "./generated/activity/activity.js";
12
+ export * from "./generated/billing/billing.js";
13
+ export * from "./generated/crm/crm.js";
14
+ export * from "./generated/email/email.js";
15
+ export * from "./generated/support/support.js";
16
+ export * from "./generated/models/index.js";