@vindentech/api-client 0.3.0-next.0 → 0.3.0-next.2
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 +40 -0
- package/dist/client.d.ts +28 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +26 -5
- package/dist/client.js.map +1 -1
- package/dist/generated/_all.d.ts +19 -0
- package/dist/generated/_all.d.ts.map +1 -0
- package/dist/generated/_all.js +21 -0
- package/dist/generated/_all.js.map +1 -0
- package/dist/generated/account-credits/account-credits.d.ts +68 -0
- package/dist/generated/account-credits/account-credits.d.ts.map +1 -0
- package/dist/generated/account-credits/account-credits.js +57 -0
- package/dist/generated/account-credits/account-credits.js.map +1 -0
- package/dist/generated/binding-plans/binding-plans.d.ts +35 -0
- package/dist/generated/binding-plans/binding-plans.d.ts.map +1 -0
- package/dist/generated/binding-plans/binding-plans.js +31 -0
- package/dist/generated/binding-plans/binding-plans.js.map +1 -0
- package/dist/generated/coupons/coupons.d.ts +101 -0
- package/dist/generated/coupons/coupons.d.ts.map +1 -0
- package/dist/generated/coupons/coupons.js +80 -0
- package/dist/generated/coupons/coupons.js.map +1 -0
- package/dist/generated/discount-rules/discount-rules.d.ts +35 -0
- package/dist/generated/discount-rules/discount-rules.d.ts.map +1 -0
- package/dist/generated/discount-rules/discount-rules.js +31 -0
- package/dist/generated/discount-rules/discount-rules.js.map +1 -0
- package/dist/generated/index.schemas.d.ts +587 -1
- package/dist/generated/index.schemas.d.ts.map +1 -1
- package/dist/generated/index.schemas.js +57 -0
- package/dist/generated/index.schemas.js.map +1 -1
- package/dist/generated/invoices/invoices.d.ts +74 -1
- package/dist/generated/invoices/invoices.d.ts.map +1 -1
- package/dist/generated/invoices/invoices.js +50 -0
- package/dist/generated/invoices/invoices.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,6 +29,46 @@ const { data: orders } = await client.listOrders();
|
|
|
29
29
|
const { data: health } = await client.health(); // no token needed
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
`getMe` / `listOrders` / `health` are typed shortcuts for the three no-argument
|
|
33
|
+
endpoints. Every other endpoint is reached through `client.call` — see below.
|
|
34
|
+
|
|
35
|
+
## Calling any endpoint
|
|
36
|
+
|
|
37
|
+
The SDK exports an operation function for every endpoint in the OpenAPI spec
|
|
38
|
+
(generated from the API — billing, invoices, coupons, price lists, …). Pass one
|
|
39
|
+
to `client.call` along with its data arguments; the client threads in `baseUrl`,
|
|
40
|
+
auth, and `fetch`:
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
import {
|
|
44
|
+
createVindenClient,
|
|
45
|
+
billingAccountsControllerListAccountsV1,
|
|
46
|
+
billingAccountsControllerCreateAccountV1,
|
|
47
|
+
type CreateBillingAccountDto,
|
|
48
|
+
} from "@vindentech/api-client";
|
|
49
|
+
|
|
50
|
+
const client = createVindenClient({ baseUrl, getToken });
|
|
51
|
+
|
|
52
|
+
// query params first, options appended by the client
|
|
53
|
+
const { data: accounts } = await client.call(
|
|
54
|
+
billingAccountsControllerListAccountsV1,
|
|
55
|
+
{ limit: 50 },
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
// request body
|
|
59
|
+
const body: CreateBillingAccountDto = { /* … */ };
|
|
60
|
+
const { data: created } = await client.call(
|
|
61
|
+
billingAccountsControllerCreateAccountV1,
|
|
62
|
+
body,
|
|
63
|
+
);
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Each operation takes its data arguments (path params, query params, request
|
|
67
|
+
body) first; `call` appends the request options. Operation names follow
|
|
68
|
+
`<controller><Operation>V<n>`; all DTO and params types are exported too, so you
|
|
69
|
+
can type forms and payloads. New endpoints appear here automatically when the
|
|
70
|
+
SDK is regenerated — no SDK code change needed.
|
|
71
|
+
|
|
32
72
|
## API
|
|
33
73
|
|
|
34
74
|
### `createVindenClient(options)`
|
package/dist/client.d.ts
CHANGED
|
@@ -10,6 +10,26 @@ export type CreateVindenClientOptions = {
|
|
|
10
10
|
/** Override the global fetch — useful for tests, MSW, or non-browser runtimes. */
|
|
11
11
|
fetch?: typeof globalThis.fetch;
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* Invokes any generated operation with this client's auth/baseUrl/fetch
|
|
15
|
+
* threaded in as the trailing `RequestInit`.
|
|
16
|
+
*
|
|
17
|
+
* Every generated operation takes its data arguments first (path params, query
|
|
18
|
+
* params, request body — zero, one, or two of them) and an optional
|
|
19
|
+
* `RequestInit` last. `call` mirrors that: pass the operation, then its data
|
|
20
|
+
* arguments; the client appends the request options. This covers the entire
|
|
21
|
+
* generated surface — current and future — without per-endpoint wiring.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* import { createVindenClient, billingAccountsControllerListAccountsV1 } from "@vindentech/api-client";
|
|
25
|
+
* const client = createVindenClient({ baseUrl, getToken });
|
|
26
|
+
* const { data } = await client.call(billingAccountsControllerListAccountsV1, { limit: 50 });
|
|
27
|
+
*/
|
|
28
|
+
export interface ApiCall {
|
|
29
|
+
<R>(operation: (options?: RequestInit) => Promise<R>): Promise<R>;
|
|
30
|
+
<A, R>(operation: (arg: A, options?: RequestInit) => Promise<R>, arg: A): Promise<R>;
|
|
31
|
+
<A, B, R>(operation: (a: A, b: B, options?: RequestInit) => Promise<R>, a: A, b: B): Promise<R>;
|
|
32
|
+
}
|
|
13
33
|
/**
|
|
14
34
|
* Create a fully-isolated Vinden API client.
|
|
15
35
|
*
|
|
@@ -17,6 +37,10 @@ export type CreateVindenClientOptions = {
|
|
|
17
37
|
* shared global state. Two clients with different tokens called concurrently
|
|
18
38
|
* send different `Authorization` headers. Safe in SSR (Next.js Route
|
|
19
39
|
* Handlers/RSCs) and multi-tenant server contexts.
|
|
40
|
+
*
|
|
41
|
+
* `health`/`getMe`/`listOrders` are typed convenience wrappers for the three
|
|
42
|
+
* no-argument endpoints. For everything else, use `call(operation, ...args)`
|
|
43
|
+
* with an operation imported from this package.
|
|
20
44
|
*/
|
|
21
45
|
export declare function createVindenClient(opts: CreateVindenClientOptions): {
|
|
22
46
|
/** GET /health — public, no auth required (version-neutral). */
|
|
@@ -25,6 +49,10 @@ export declare function createVindenClient(opts: CreateVindenClientOptions): {
|
|
|
25
49
|
getMe: () => Promise<import("./generated/me/me.js").meControllerGetMeV1ResponseSuccess>;
|
|
26
50
|
/** GET /v1/orders — RLS-filtered to the caller's tenant/org. */
|
|
27
51
|
listOrders: () => Promise<import("./generated/orders/orders.js").ordersControllerFindAllV1ResponseSuccess>;
|
|
52
|
+
/**
|
|
53
|
+
* Invoke any generated operation with auth threaded in. See {@link ApiCall}.
|
|
54
|
+
*/
|
|
55
|
+
call: ApiCall;
|
|
28
56
|
};
|
|
29
57
|
export type VindenClient = ReturnType<typeof createVindenClient>;
|
|
30
58
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,MACrB,MAAM,GACN,IAAI,GACJ,SAAS,GACT,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AAEvC,MAAM,MAAM,yBAAyB,GAAG;IACtC,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,kFAAkF;IAClF,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;CACjC,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,MACrB,MAAM,GACN,IAAI,GACJ,SAAS,GACT,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AAEvC,MAAM,MAAM,yBAAyB,GAAG;IACtC,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,kFAAkF;IAClF,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;CACjC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,OAAO;IACtB,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAClE,CAAC,CAAC,EAAE,CAAC,EACH,SAAS,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,EACxD,GAAG,EAAE,CAAC,GACL,OAAO,CAAC,CAAC,CAAC,CAAC;IACd,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EACN,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,EAC5D,CAAC,EAAE,CAAC,EACJ,CAAC,EAAE,CAAC,GACH,OAAO,CAAC,CAAC,CAAC,CAAC;CACf;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,yBAAyB;IAK9D,gEAAgE;;IAEhE,gFAAgF;;IAEhF,gEAAgE;;IAEhE;;OAEG;;EAGN;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/dist/client.js
CHANGED
|
@@ -8,18 +8,27 @@ import { ordersControllerFindAllV1 } from "./generated/orders/orders.js";
|
|
|
8
8
|
* shared global state. Two clients with different tokens called concurrently
|
|
9
9
|
* send different `Authorization` headers. Safe in SSR (Next.js Route
|
|
10
10
|
* Handlers/RSCs) and multi-tenant server contexts.
|
|
11
|
+
*
|
|
12
|
+
* `health`/`getMe`/`listOrders` are typed convenience wrappers for the three
|
|
13
|
+
* no-argument endpoints. For everything else, use `call(operation, ...args)`
|
|
14
|
+
* with an operation imported from this package.
|
|
11
15
|
*/
|
|
12
16
|
export function createVindenClient(opts) {
|
|
17
|
+
const call = ((operation, ...args) => invoke(opts, operation, args));
|
|
13
18
|
return {
|
|
14
19
|
/** GET /health — public, no auth required (version-neutral). */
|
|
15
|
-
health: () =>
|
|
20
|
+
health: () => call(healthControllerCheck),
|
|
16
21
|
/** GET /v1/me — bootstraps user_profile + organization_member on first call. */
|
|
17
|
-
getMe: () =>
|
|
22
|
+
getMe: () => call(meControllerGetMeV1),
|
|
18
23
|
/** GET /v1/orders — RLS-filtered to the caller's tenant/org. */
|
|
19
|
-
listOrders: () =>
|
|
24
|
+
listOrders: () => call(ordersControllerFindAllV1),
|
|
25
|
+
/**
|
|
26
|
+
* Invoke any generated operation with auth threaded in. See {@link ApiCall}.
|
|
27
|
+
*/
|
|
28
|
+
call,
|
|
20
29
|
};
|
|
21
30
|
}
|
|
22
|
-
async function
|
|
31
|
+
async function invoke(opts, operation, args) {
|
|
23
32
|
const token = opts.getToken ? await opts.getToken() : undefined;
|
|
24
33
|
const headers = {};
|
|
25
34
|
if (token) {
|
|
@@ -30,6 +39,18 @@ async function callApi(opts, fn) {
|
|
|
30
39
|
fetch: opts.fetch,
|
|
31
40
|
headers,
|
|
32
41
|
};
|
|
33
|
-
|
|
42
|
+
// `options` is always the operation's last declared parameter. Place `init`
|
|
43
|
+
// at that slot rather than right after the supplied args: an operation with
|
|
44
|
+
// an optional leading param (e.g. `(params?, options?)`) called with no data
|
|
45
|
+
// args would otherwise receive `init` in the `params` slot. `operation.length`
|
|
46
|
+
// is the declared param count (orval emits no defaults/rest), so the options
|
|
47
|
+
// slot is `length - 1`; pad any omitted optional leading args with undefined.
|
|
48
|
+
const optionsIndex = Math.max(operation.length - 1, args.length);
|
|
49
|
+
const callArgs = new Array(optionsIndex);
|
|
50
|
+
for (let i = 0; i < args.length; i++) {
|
|
51
|
+
callArgs[i] = args[i];
|
|
52
|
+
}
|
|
53
|
+
callArgs[optionsIndex] = init;
|
|
54
|
+
return operation(...callArgs);
|
|
34
55
|
}
|
|
35
56
|
//# sourceMappingURL=client.js.map
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAiDzE;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAA+B;IAChE,MAAM,IAAI,GAAG,CAAC,CAAC,SAAmD,EAAE,GAAG,IAAe,EAAE,EAAE,CACxF,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,CAAY,CAAC;IAE5C,OAAO;QACL,gEAAgE;QAChE,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,qBAAqB,CAAC;QACzC,gFAAgF;QAChF,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAC;QACtC,gEAAgE;QAChE,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,yBAAyB,CAAC;QACjD;;WAEG;QACH,IAAI;KACL,CAAC;AACJ,CAAC;AAID,KAAK,UAAU,MAAM,CACnB,IAA+B,EAC/B,SAA6C,EAC7C,IAAe;IAEf,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAChE,MAAM,OAAO,GAA2B,EAAE,CAAC;IAC3C,IAAI,KAAK,EAAE,CAAC;QACV,OAAO,CAAC,aAAa,GAAG,UAAU,KAAK,EAAE,CAAC;IAC5C,CAAC;IAED,MAAM,IAAI,GAAuB;QAC/B,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,OAAO;KACR,CAAC;IAEF,4EAA4E;IAC5E,4EAA4E;IAC5E,6EAA6E;IAC7E,+EAA+E;IAC/E,6EAA6E;IAC7E,8EAA8E;IAC9E,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACjE,MAAM,QAAQ,GAAG,IAAI,KAAK,CAAU,YAAY,CAAC,CAAC;IAClD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IACxB,CAAC;IACD,QAAQ,CAAC,YAAY,CAAC,GAAG,IAAmB,CAAC;IAE7C,OAAO,SAAS,CAAC,GAAG,QAAQ,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from "./index.schemas.js";
|
|
2
|
+
export * from "./account-credits/account-credits.js";
|
|
3
|
+
export * from "./articles/articles.js";
|
|
4
|
+
export * from "./billing-accounts/billing-accounts.js";
|
|
5
|
+
export * from "./binding-plans/binding-plans.js";
|
|
6
|
+
export * from "./coupons/coupons.js";
|
|
7
|
+
export * from "./discount-rules/discount-rules.js";
|
|
8
|
+
export * from "./fortnox-o-auth/fortnox-o-auth.js";
|
|
9
|
+
export * from "./health/health.js";
|
|
10
|
+
export * from "./integrations/integrations.js";
|
|
11
|
+
export * from "./invoices/invoices.js";
|
|
12
|
+
export * from "./me/me.js";
|
|
13
|
+
export * from "./orders/orders.js";
|
|
14
|
+
export * from "./price-lists/price-lists.js";
|
|
15
|
+
export * from "./provider-switch/provider-switch.js";
|
|
16
|
+
export * from "./stripe-webhook/stripe-webhook.js";
|
|
17
|
+
export * from "./subscription-configs/subscription-configs.js";
|
|
18
|
+
export * from "./tenant-config/tenant-config.js";
|
|
19
|
+
//# sourceMappingURL=_all.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_all.d.ts","sourceRoot":"","sources":["../../src/generated/_all.ts"],"names":[],"mappings":"AAGA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sCAAsC,CAAC;AACrD,cAAc,wBAAwB,CAAC;AACvC,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sBAAsB,CAAC;AACrC,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Generated by scripts/generate-barrel.mjs — do not edit manually.
|
|
2
|
+
// Re-exports the full orval surface (operations + schemas) for src/index.ts.
|
|
3
|
+
export * from "./index.schemas.js";
|
|
4
|
+
export * from "./account-credits/account-credits.js";
|
|
5
|
+
export * from "./articles/articles.js";
|
|
6
|
+
export * from "./billing-accounts/billing-accounts.js";
|
|
7
|
+
export * from "./binding-plans/binding-plans.js";
|
|
8
|
+
export * from "./coupons/coupons.js";
|
|
9
|
+
export * from "./discount-rules/discount-rules.js";
|
|
10
|
+
export * from "./fortnox-o-auth/fortnox-o-auth.js";
|
|
11
|
+
export * from "./health/health.js";
|
|
12
|
+
export * from "./integrations/integrations.js";
|
|
13
|
+
export * from "./invoices/invoices.js";
|
|
14
|
+
export * from "./me/me.js";
|
|
15
|
+
export * from "./orders/orders.js";
|
|
16
|
+
export * from "./price-lists/price-lists.js";
|
|
17
|
+
export * from "./provider-switch/provider-switch.js";
|
|
18
|
+
export * from "./stripe-webhook/stripe-webhook.js";
|
|
19
|
+
export * from "./subscription-configs/subscription-configs.js";
|
|
20
|
+
export * from "./tenant-config/tenant-config.js";
|
|
21
|
+
//# sourceMappingURL=_all.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_all.js","sourceRoot":"","sources":["../../src/generated/_all.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,6EAA6E;AAE7E,cAAc,oBAAoB,CAAC;AACnC,cAAc,sCAAsC,CAAC;AACrD,cAAc,wBAAwB,CAAC;AACvC,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sBAAsB,CAAC;AACrC,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Vinden Core API
|
|
5
|
+
* Core API for the Vinden Platform
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { AccountCreditApplicationDto, AccountCreditDto, AccountCreditsControllerListAccountCreditsV1Params, AccountCreditsControllerListApplicationsV1Params, CreateAccountCreditDto } from '../index.schemas.js';
|
|
9
|
+
/**
|
|
10
|
+
* @summary List account credits (optionally filtered by billing account)
|
|
11
|
+
*/
|
|
12
|
+
export type accountCreditsControllerListAccountCreditsV1Response200 = {
|
|
13
|
+
data: AccountCreditDto[];
|
|
14
|
+
status: 200;
|
|
15
|
+
};
|
|
16
|
+
export type accountCreditsControllerListAccountCreditsV1ResponseSuccess = (accountCreditsControllerListAccountCreditsV1Response200) & {
|
|
17
|
+
headers: Headers;
|
|
18
|
+
};
|
|
19
|
+
export type accountCreditsControllerListAccountCreditsV1Response = (accountCreditsControllerListAccountCreditsV1ResponseSuccess);
|
|
20
|
+
export declare const getAccountCreditsControllerListAccountCreditsV1Url: (params?: AccountCreditsControllerListAccountCreditsV1Params) => string;
|
|
21
|
+
export declare const accountCreditsControllerListAccountCreditsV1: (params?: AccountCreditsControllerListAccountCreditsV1Params, options?: RequestInit) => Promise<accountCreditsControllerListAccountCreditsV1Response>;
|
|
22
|
+
/**
|
|
23
|
+
* @summary Create an account credit (fully unspent)
|
|
24
|
+
*/
|
|
25
|
+
export type accountCreditsControllerCreateAccountCreditV1Response201 = {
|
|
26
|
+
data: AccountCreditDto;
|
|
27
|
+
status: 201;
|
|
28
|
+
};
|
|
29
|
+
export type accountCreditsControllerCreateAccountCreditV1ResponseSuccess = (accountCreditsControllerCreateAccountCreditV1Response201) & {
|
|
30
|
+
headers: Headers;
|
|
31
|
+
};
|
|
32
|
+
export type accountCreditsControllerCreateAccountCreditV1Response = (accountCreditsControllerCreateAccountCreditV1ResponseSuccess);
|
|
33
|
+
export declare const getAccountCreditsControllerCreateAccountCreditV1Url: () => string;
|
|
34
|
+
export declare const accountCreditsControllerCreateAccountCreditV1: (createAccountCreditDto: CreateAccountCreditDto, options?: RequestInit) => Promise<accountCreditsControllerCreateAccountCreditV1Response>;
|
|
35
|
+
/**
|
|
36
|
+
* @summary List the INSERT-only consumption ledger for one account credit
|
|
37
|
+
*/
|
|
38
|
+
export type accountCreditsControllerListApplicationsV1Response200 = {
|
|
39
|
+
data: AccountCreditApplicationDto[];
|
|
40
|
+
status: 200;
|
|
41
|
+
};
|
|
42
|
+
export type accountCreditsControllerListApplicationsV1ResponseSuccess = (accountCreditsControllerListApplicationsV1Response200) & {
|
|
43
|
+
headers: Headers;
|
|
44
|
+
};
|
|
45
|
+
export type accountCreditsControllerListApplicationsV1Response = (accountCreditsControllerListApplicationsV1ResponseSuccess);
|
|
46
|
+
export declare const getAccountCreditsControllerListApplicationsV1Url: (id: string, params?: AccountCreditsControllerListApplicationsV1Params) => string;
|
|
47
|
+
export declare const accountCreditsControllerListApplicationsV1: (id: string, params?: AccountCreditsControllerListApplicationsV1Params, options?: RequestInit) => Promise<accountCreditsControllerListApplicationsV1Response>;
|
|
48
|
+
/**
|
|
49
|
+
* @summary Cancel an account credit (idempotent; existing applications stay)
|
|
50
|
+
*/
|
|
51
|
+
export type accountCreditsControllerCancelAccountCreditV1Response200 = {
|
|
52
|
+
data: AccountCreditDto;
|
|
53
|
+
status: 200;
|
|
54
|
+
};
|
|
55
|
+
export type accountCreditsControllerCancelAccountCreditV1Response409 = {
|
|
56
|
+
data: void;
|
|
57
|
+
status: 409;
|
|
58
|
+
};
|
|
59
|
+
export type accountCreditsControllerCancelAccountCreditV1ResponseSuccess = (accountCreditsControllerCancelAccountCreditV1Response200) & {
|
|
60
|
+
headers: Headers;
|
|
61
|
+
};
|
|
62
|
+
export type accountCreditsControllerCancelAccountCreditV1ResponseError = (accountCreditsControllerCancelAccountCreditV1Response409) & {
|
|
63
|
+
headers: Headers;
|
|
64
|
+
};
|
|
65
|
+
export type accountCreditsControllerCancelAccountCreditV1Response = (accountCreditsControllerCancelAccountCreditV1ResponseSuccess | accountCreditsControllerCancelAccountCreditV1ResponseError);
|
|
66
|
+
export declare const getAccountCreditsControllerCancelAccountCreditV1Url: (id: string) => string;
|
|
67
|
+
export declare const accountCreditsControllerCancelAccountCreditV1: (id: string, options?: RequestInit) => Promise<accountCreditsControllerCancelAccountCreditV1Response>;
|
|
68
|
+
//# sourceMappingURL=account-credits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-credits.d.ts","sourceRoot":"","sources":["../../../src/generated/account-credits/account-credits.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,2BAA2B,EAC3B,gBAAgB,EAChB,kDAAkD,EAClD,gDAAgD,EAChD,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAI7B;;GAEG;AACH,MAAM,MAAM,uDAAuD,GAAG;IACpE,IAAI,EAAE,gBAAgB,EAAE,CAAA;IACxB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,2DAA2D,GAAG,CAAC,uDAAuD,CAAC,GAAG;IACpI,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,oDAAoD,GAAG,CAAC,2DAA2D,CAAC,CAAA;AAEhI,eAAO,MAAM,kDAAkD,GAAI,SAAS,kDAAkD,WAa7H,CAAA;AAED,eAAO,MAAM,4CAA4C,GAAU,SAAS,kDAAkD,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,oDAAoD,CASjN,CAAA;AAGH;;GAEG;AACH,MAAM,MAAM,wDAAwD,GAAG;IACrE,IAAI,EAAE,gBAAgB,CAAA;IACtB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,4DAA4D,GAAG,CAAC,wDAAwD,CAAC,GAAG;IACtI,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM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AAO,MAAM,6CAA6C,GAAU,IAAI,MAAM,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,qDAAqD,CASlK,CAAA"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { customFetch } from '../../mutator.js';
|
|
2
|
+
;
|
|
3
|
+
export const getAccountCreditsControllerListAccountCreditsV1Url = (params) => {
|
|
4
|
+
const normalizedParams = new URLSearchParams();
|
|
5
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
6
|
+
if (value !== undefined) {
|
|
7
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString());
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
const stringifiedParams = normalizedParams.toString();
|
|
11
|
+
return stringifiedParams.length > 0 ? `/v1/billing/account-credits?${stringifiedParams}` : `/v1/billing/account-credits`;
|
|
12
|
+
};
|
|
13
|
+
export const accountCreditsControllerListAccountCreditsV1 = async (params, options) => {
|
|
14
|
+
return customFetch(getAccountCreditsControllerListAccountCreditsV1Url(params), {
|
|
15
|
+
...options,
|
|
16
|
+
method: 'GET'
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
;
|
|
20
|
+
export const getAccountCreditsControllerCreateAccountCreditV1Url = () => {
|
|
21
|
+
return `/v1/billing/account-credits`;
|
|
22
|
+
};
|
|
23
|
+
export const accountCreditsControllerCreateAccountCreditV1 = async (createAccountCreditDto, options) => {
|
|
24
|
+
return customFetch(getAccountCreditsControllerCreateAccountCreditV1Url(), {
|
|
25
|
+
...options,
|
|
26
|
+
method: 'POST',
|
|
27
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
28
|
+
body: JSON.stringify(createAccountCreditDto)
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
;
|
|
32
|
+
export const getAccountCreditsControllerListApplicationsV1Url = (id, params) => {
|
|
33
|
+
const normalizedParams = new URLSearchParams();
|
|
34
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
35
|
+
if (value !== undefined) {
|
|
36
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString());
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
const stringifiedParams = normalizedParams.toString();
|
|
40
|
+
return stringifiedParams.length > 0 ? `/v1/billing/account-credits/${id}/applications?${stringifiedParams}` : `/v1/billing/account-credits/${id}/applications`;
|
|
41
|
+
};
|
|
42
|
+
export const accountCreditsControllerListApplicationsV1 = async (id, params, options) => {
|
|
43
|
+
return customFetch(getAccountCreditsControllerListApplicationsV1Url(id, params), {
|
|
44
|
+
...options,
|
|
45
|
+
method: 'GET'
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
export const getAccountCreditsControllerCancelAccountCreditV1Url = (id) => {
|
|
49
|
+
return `/v1/billing/account-credits/${id}/cancel`;
|
|
50
|
+
};
|
|
51
|
+
export const accountCreditsControllerCancelAccountCreditV1 = async (id, options) => {
|
|
52
|
+
return customFetch(getAccountCreditsControllerCancelAccountCreditV1Url(id), {
|
|
53
|
+
...options,
|
|
54
|
+
method: 'POST'
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=account-credits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account-credits.js","sourceRoot":"","sources":["../../../src/generated/account-credits/account-credits.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAa/C,CAAC;AAID,MAAM,CAAC,MAAM,kDAAkD,GAAG,CAAC,MAA2D,EAAG,EAAE;IACjI,MAAM,gBAAgB,GAAG,IAAI,eAAe,EAAE,CAAC;IAE/C,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAEpD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,gBAAgB,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC,CAA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
|
+
import type { BindingPlanDto, BindingPlansControllerListBindingPlansV1Params, CreateBindingPlanDto } from '../index.schemas.js';
|
|
9
|
+
/**
|
|
10
|
+
* @summary List binding plans (tenant-level configuration)
|
|
11
|
+
*/
|
|
12
|
+
export type bindingPlansControllerListBindingPlansV1Response200 = {
|
|
13
|
+
data: BindingPlanDto[];
|
|
14
|
+
status: 200;
|
|
15
|
+
};
|
|
16
|
+
export type bindingPlansControllerListBindingPlansV1ResponseSuccess = (bindingPlansControllerListBindingPlansV1Response200) & {
|
|
17
|
+
headers: Headers;
|
|
18
|
+
};
|
|
19
|
+
export type bindingPlansControllerListBindingPlansV1Response = (bindingPlansControllerListBindingPlansV1ResponseSuccess);
|
|
20
|
+
export declare const getBindingPlansControllerListBindingPlansV1Url: (params?: BindingPlansControllerListBindingPlansV1Params) => string;
|
|
21
|
+
export declare const bindingPlansControllerListBindingPlansV1: (params?: BindingPlansControllerListBindingPlansV1Params, options?: RequestInit) => Promise<bindingPlansControllerListBindingPlansV1Response>;
|
|
22
|
+
/**
|
|
23
|
+
* @summary Create a binding plan (created as draft)
|
|
24
|
+
*/
|
|
25
|
+
export type bindingPlansControllerCreateBindingPlanV1Response201 = {
|
|
26
|
+
data: BindingPlanDto;
|
|
27
|
+
status: 201;
|
|
28
|
+
};
|
|
29
|
+
export type bindingPlansControllerCreateBindingPlanV1ResponseSuccess = (bindingPlansControllerCreateBindingPlanV1Response201) & {
|
|
30
|
+
headers: Headers;
|
|
31
|
+
};
|
|
32
|
+
export type bindingPlansControllerCreateBindingPlanV1Response = (bindingPlansControllerCreateBindingPlanV1ResponseSuccess);
|
|
33
|
+
export declare const getBindingPlansControllerCreateBindingPlanV1Url: () => string;
|
|
34
|
+
export declare const bindingPlansControllerCreateBindingPlanV1: (createBindingPlanDto: CreateBindingPlanDto, options?: RequestInit) => Promise<bindingPlansControllerCreateBindingPlanV1Response>;
|
|
35
|
+
//# sourceMappingURL=binding-plans.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"binding-plans.d.ts","sourceRoot":"","sources":["../../../src/generated/binding-plans/binding-plans.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,cAAc,EACd,8CAA8C,EAC9C,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAI7B;;GAEG;AACH,MAAM,MAAM,mDAAmD,GAAG;IAChE,IAAI,EAAE,cAAc,EAAE,CAAA;IACtB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,uDAAuD,GAAG,CAAC,mDAAmD,CAAC,GAAG;IAC5H,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,gDAAgD,GAAG,CAAC,uDAAuD,CAAC,CAAA;AAExH,eAAO,MAAM,8CAA8C,GAAI,SAAS,8CAA8C,WAarH,CAAA;AAED,eAAO,MAAM,wCAAwC,GAAU,SAAS,8CAA8C,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,gDAAgD,CASrM,CAAA;AAGH;;GAEG;AACH,MAAM,MAAM,oDAAoD,GAAG;IACjE,IAAI,EAAE,cAAc,CAAA;IACpB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,wDAAwD,GAAG,CAAC,oDAAoD,CAAC,GAAG;IAC9H,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,iDAAiD,GAAG,CAAC,wDAAwD,CAAC,CAAA;AAE1H,eAAO,MAAM,+CAA+C,cAM3D,CAAA;AAED,eAAO,MAAM,yCAAyC,GAAU,sBAAsB,oBAAoB,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,iDAAiD,CAU1L,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { customFetch } from '../../mutator.js';
|
|
2
|
+
;
|
|
3
|
+
export const getBindingPlansControllerListBindingPlansV1Url = (params) => {
|
|
4
|
+
const normalizedParams = new URLSearchParams();
|
|
5
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
6
|
+
if (value !== undefined) {
|
|
7
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString());
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
const stringifiedParams = normalizedParams.toString();
|
|
11
|
+
return stringifiedParams.length > 0 ? `/v1/billing/binding-plans?${stringifiedParams}` : `/v1/billing/binding-plans`;
|
|
12
|
+
};
|
|
13
|
+
export const bindingPlansControllerListBindingPlansV1 = async (params, options) => {
|
|
14
|
+
return customFetch(getBindingPlansControllerListBindingPlansV1Url(params), {
|
|
15
|
+
...options,
|
|
16
|
+
method: 'GET'
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
;
|
|
20
|
+
export const getBindingPlansControllerCreateBindingPlanV1Url = () => {
|
|
21
|
+
return `/v1/billing/binding-plans`;
|
|
22
|
+
};
|
|
23
|
+
export const bindingPlansControllerCreateBindingPlanV1 = async (createBindingPlanDto, options) => {
|
|
24
|
+
return customFetch(getBindingPlansControllerCreateBindingPlanV1Url(), {
|
|
25
|
+
...options,
|
|
26
|
+
method: 'POST',
|
|
27
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
28
|
+
body: JSON.stringify(createBindingPlanDto)
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=binding-plans.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"binding-plans.js","sourceRoot":"","sources":["../../../src/generated/binding-plans/binding-plans.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAa/C,CAAC;AAID,MAAM,CAAC,MAAM,8CAA8C,GAAG,CAAC,MAAuD,EAAG,EAAE;IACzH,MAAM,gBAAgB,GAAG,IAAI,eAAe,EAAE,CAAC;IAE/C,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KA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|
|
5
|
+
* Core API for the Vinden Platform
|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { CouponBenefitDto, CouponDetailDto, CouponDto, CouponRedemptionDto, CouponsControllerListCouponsV1Params, CouponsControllerListRedemptionsV1Params, CreateCouponBenefitDto, CreateCouponDto, RedeemCouponDto } from '../index.schemas.js';
|
|
9
|
+
/**
|
|
10
|
+
* @summary List coupons (campaign metadata)
|
|
11
|
+
*/
|
|
12
|
+
export type couponsControllerListCouponsV1Response200 = {
|
|
13
|
+
data: CouponDto[];
|
|
14
|
+
status: 200;
|
|
15
|
+
};
|
|
16
|
+
export type couponsControllerListCouponsV1ResponseSuccess = (couponsControllerListCouponsV1Response200) & {
|
|
17
|
+
headers: Headers;
|
|
18
|
+
};
|
|
19
|
+
export type couponsControllerListCouponsV1Response = (couponsControllerListCouponsV1ResponseSuccess);
|
|
20
|
+
export declare const getCouponsControllerListCouponsV1Url: (params?: CouponsControllerListCouponsV1Params) => string;
|
|
21
|
+
export declare const couponsControllerListCouponsV1: (params?: CouponsControllerListCouponsV1Params, options?: RequestInit) => Promise<couponsControllerListCouponsV1Response>;
|
|
22
|
+
/**
|
|
23
|
+
* @summary Create a coupon (created as draft)
|
|
24
|
+
*/
|
|
25
|
+
export type couponsControllerCreateCouponV1Response201 = {
|
|
26
|
+
data: CouponDto;
|
|
27
|
+
status: 201;
|
|
28
|
+
};
|
|
29
|
+
export type couponsControllerCreateCouponV1Response409 = {
|
|
30
|
+
data: void;
|
|
31
|
+
status: 409;
|
|
32
|
+
};
|
|
33
|
+
export type couponsControllerCreateCouponV1ResponseSuccess = (couponsControllerCreateCouponV1Response201) & {
|
|
34
|
+
headers: Headers;
|
|
35
|
+
};
|
|
36
|
+
export type couponsControllerCreateCouponV1ResponseError = (couponsControllerCreateCouponV1Response409) & {
|
|
37
|
+
headers: Headers;
|
|
38
|
+
};
|
|
39
|
+
export type couponsControllerCreateCouponV1Response = (couponsControllerCreateCouponV1ResponseSuccess | couponsControllerCreateCouponV1ResponseError);
|
|
40
|
+
export declare const getCouponsControllerCreateCouponV1Url: () => string;
|
|
41
|
+
export declare const couponsControllerCreateCouponV1: (createCouponDto: CreateCouponDto, options?: RequestInit) => Promise<couponsControllerCreateCouponV1Response>;
|
|
42
|
+
/**
|
|
43
|
+
* @summary Get one coupon with its benefits
|
|
44
|
+
*/
|
|
45
|
+
export type couponsControllerGetCouponV1Response200 = {
|
|
46
|
+
data: CouponDetailDto;
|
|
47
|
+
status: 200;
|
|
48
|
+
};
|
|
49
|
+
export type couponsControllerGetCouponV1ResponseSuccess = (couponsControllerGetCouponV1Response200) & {
|
|
50
|
+
headers: Headers;
|
|
51
|
+
};
|
|
52
|
+
export type couponsControllerGetCouponV1Response = (couponsControllerGetCouponV1ResponseSuccess);
|
|
53
|
+
export declare const getCouponsControllerGetCouponV1Url: (id: string) => string;
|
|
54
|
+
export declare const couponsControllerGetCouponV1: (id: string, options?: RequestInit) => Promise<couponsControllerGetCouponV1Response>;
|
|
55
|
+
/**
|
|
56
|
+
* @summary Add a benefit (per-article/category effect) to a coupon
|
|
57
|
+
*/
|
|
58
|
+
export type couponsControllerAddBenefitV1Response201 = {
|
|
59
|
+
data: CouponBenefitDto;
|
|
60
|
+
status: 201;
|
|
61
|
+
};
|
|
62
|
+
export type couponsControllerAddBenefitV1ResponseSuccess = (couponsControllerAddBenefitV1Response201) & {
|
|
63
|
+
headers: Headers;
|
|
64
|
+
};
|
|
65
|
+
export type couponsControllerAddBenefitV1Response = (couponsControllerAddBenefitV1ResponseSuccess);
|
|
66
|
+
export declare const getCouponsControllerAddBenefitV1Url: (id: string) => string;
|
|
67
|
+
export declare const couponsControllerAddBenefitV1: (id: string, createCouponBenefitDto: CreateCouponBenefitDto, options?: RequestInit) => Promise<couponsControllerAddBenefitV1Response>;
|
|
68
|
+
/**
|
|
69
|
+
* @summary Redeem a coupon for a billing account (grants account credit for any grant_account_credit benefit)
|
|
70
|
+
*/
|
|
71
|
+
export type couponsControllerRedeemCouponV1Response201 = {
|
|
72
|
+
data: CouponRedemptionDto;
|
|
73
|
+
status: 201;
|
|
74
|
+
};
|
|
75
|
+
export type couponsControllerRedeemCouponV1Response409 = {
|
|
76
|
+
data: void;
|
|
77
|
+
status: 409;
|
|
78
|
+
};
|
|
79
|
+
export type couponsControllerRedeemCouponV1ResponseSuccess = (couponsControllerRedeemCouponV1Response201) & {
|
|
80
|
+
headers: Headers;
|
|
81
|
+
};
|
|
82
|
+
export type couponsControllerRedeemCouponV1ResponseError = (couponsControllerRedeemCouponV1Response409) & {
|
|
83
|
+
headers: Headers;
|
|
84
|
+
};
|
|
85
|
+
export type couponsControllerRedeemCouponV1Response = (couponsControllerRedeemCouponV1ResponseSuccess | couponsControllerRedeemCouponV1ResponseError);
|
|
86
|
+
export declare const getCouponsControllerRedeemCouponV1Url: (id: string) => string;
|
|
87
|
+
export declare const couponsControllerRedeemCouponV1: (id: string, redeemCouponDto: RedeemCouponDto, options?: RequestInit) => Promise<couponsControllerRedeemCouponV1Response>;
|
|
88
|
+
/**
|
|
89
|
+
* @summary List coupon redemptions (optionally filtered by billing account)
|
|
90
|
+
*/
|
|
91
|
+
export type couponsControllerListRedemptionsV1Response200 = {
|
|
92
|
+
data: CouponRedemptionDto[];
|
|
93
|
+
status: 200;
|
|
94
|
+
};
|
|
95
|
+
export type couponsControllerListRedemptionsV1ResponseSuccess = (couponsControllerListRedemptionsV1Response200) & {
|
|
96
|
+
headers: Headers;
|
|
97
|
+
};
|
|
98
|
+
export type couponsControllerListRedemptionsV1Response = (couponsControllerListRedemptionsV1ResponseSuccess);
|
|
99
|
+
export declare const getCouponsControllerListRedemptionsV1Url: (params?: CouponsControllerListRedemptionsV1Params) => string;
|
|
100
|
+
export declare const couponsControllerListRedemptionsV1: (params?: CouponsControllerListRedemptionsV1Params, options?: RequestInit) => Promise<couponsControllerListRedemptionsV1Response>;
|
|
101
|
+
//# sourceMappingURL=coupons.d.ts.map
|
|
@@ -0,0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Z,CAAA;AAED,MAAM,MAAM,8CAA8C,GAAG,CAAC,0CAA0C,CAAC,GAAG;IAC1G,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AACF,MAAM,MAAM,4CAA4C,GAAG,CAAC,0CAA0C,CAAC,GAAG;IACxG,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,uCAAuC,GAAG,CAAC,8CAA8C,GAAG,4CAA4C,CAAC,CAAA;AAErJ,eAAO,MAAM,qCAAqC,GAAI,IAAI,MAAM,WAM/D,CAAA;AAED,eAAO,MAAM,+BAA+B,GAAU,IAAI,MAAM,EAC5D,iBAAiB,eAAe,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,uCAAuC,CAU1G,CAAA;AAGH;;GAEG;AACH,MAAM,MAAM,6CAA6C,GAAG;IAC1D,IAAI,EAAE,mBAAmB,EAAE,CAAA;IAC3B,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,iDAAiD,GAAG,CAAC,6CAA6C,CAAC,GAAG;IAChH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,0CAA0C,GAAG,CAAC,iDAAiD,CAAC,CAAA;AAE5G,eAAO,MAAM,wCAAwC,GAAI,SAAS,wCAAwC,WAazG,CAAA;AAED,eAAO,MAAM,kCAAkC,GAAU,SAAS,wCAAwC,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,0CAA0C,CASnL,CAAA"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { customFetch } from '../../mutator.js';
|
|
2
|
+
;
|
|
3
|
+
export const getCouponsControllerListCouponsV1Url = (params) => {
|
|
4
|
+
const normalizedParams = new URLSearchParams();
|
|
5
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
6
|
+
if (value !== undefined) {
|
|
7
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString());
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
const stringifiedParams = normalizedParams.toString();
|
|
11
|
+
return stringifiedParams.length > 0 ? `/v1/billing/coupons?${stringifiedParams}` : `/v1/billing/coupons`;
|
|
12
|
+
};
|
|
13
|
+
export const couponsControllerListCouponsV1 = async (params, options) => {
|
|
14
|
+
return customFetch(getCouponsControllerListCouponsV1Url(params), {
|
|
15
|
+
...options,
|
|
16
|
+
method: 'GET'
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
export const getCouponsControllerCreateCouponV1Url = () => {
|
|
20
|
+
return `/v1/billing/coupons`;
|
|
21
|
+
};
|
|
22
|
+
export const couponsControllerCreateCouponV1 = async (createCouponDto, options) => {
|
|
23
|
+
return customFetch(getCouponsControllerCreateCouponV1Url(), {
|
|
24
|
+
...options,
|
|
25
|
+
method: 'POST',
|
|
26
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
27
|
+
body: JSON.stringify(createCouponDto)
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
;
|
|
31
|
+
export const getCouponsControllerGetCouponV1Url = (id) => {
|
|
32
|
+
return `/v1/billing/coupons/${id}`;
|
|
33
|
+
};
|
|
34
|
+
export const couponsControllerGetCouponV1 = async (id, options) => {
|
|
35
|
+
return customFetch(getCouponsControllerGetCouponV1Url(id), {
|
|
36
|
+
...options,
|
|
37
|
+
method: 'GET'
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
;
|
|
41
|
+
export const getCouponsControllerAddBenefitV1Url = (id) => {
|
|
42
|
+
return `/v1/billing/coupons/${id}/benefits`;
|
|
43
|
+
};
|
|
44
|
+
export const couponsControllerAddBenefitV1 = async (id, createCouponBenefitDto, options) => {
|
|
45
|
+
return customFetch(getCouponsControllerAddBenefitV1Url(id), {
|
|
46
|
+
...options,
|
|
47
|
+
method: 'POST',
|
|
48
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
49
|
+
body: JSON.stringify(createCouponBenefitDto)
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
export const getCouponsControllerRedeemCouponV1Url = (id) => {
|
|
53
|
+
return `/v1/billing/coupons/${id}/redeem`;
|
|
54
|
+
};
|
|
55
|
+
export const couponsControllerRedeemCouponV1 = async (id, redeemCouponDto, options) => {
|
|
56
|
+
return customFetch(getCouponsControllerRedeemCouponV1Url(id), {
|
|
57
|
+
...options,
|
|
58
|
+
method: 'POST',
|
|
59
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
60
|
+
body: JSON.stringify(redeemCouponDto)
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
;
|
|
64
|
+
export const getCouponsControllerListRedemptionsV1Url = (params) => {
|
|
65
|
+
const normalizedParams = new URLSearchParams();
|
|
66
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
67
|
+
if (value !== undefined) {
|
|
68
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString());
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
const stringifiedParams = normalizedParams.toString();
|
|
72
|
+
return stringifiedParams.length > 0 ? `/v1/billing/coupon-redemptions?${stringifiedParams}` : `/v1/billing/coupon-redemptions`;
|
|
73
|
+
};
|
|
74
|
+
export const couponsControllerListRedemptionsV1 = async (params, options) => {
|
|
75
|
+
return customFetch(getCouponsControllerListRedemptionsV1Url(params), {
|
|
76
|
+
...options,
|
|
77
|
+
method: 'GET'
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=coupons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coupons.js","sourceRoot":"","sources":["../../../src/generated/coupons/coupons.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAa/C,CAAC;AAID,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,MAA6C,EAAG,EAAE;IACrG,MAAM,gBAAgB,GAAG,IAAI,eAAe,EAAE,CAAC;IAE/C,MAAM,CAAC,OAAO,CAAC,MAAM,I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