@vindentech/api-client 0.3.0-next.1 → 0.3.0-next.3
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 +81 -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/_permissions.d.ts +214 -0
- package/dist/generated/_permissions.d.ts.map +1 -0
- package/dist/generated/_permissions.js +60 -0
- package/dist/generated/_permissions.js.map +1 -0
- package/dist/generated/account-credits/account-credits.d.ts +4 -0
- package/dist/generated/account-credits/account-credits.d.ts.map +1 -1
- package/dist/generated/account-credits/account-credits.js.map +1 -1
- package/dist/generated/articles/articles.d.ts +4 -0
- package/dist/generated/articles/articles.d.ts.map +1 -1
- package/dist/generated/articles/articles.js.map +1 -1
- package/dist/generated/billing-accounts/billing-accounts.d.ts +4 -0
- package/dist/generated/billing-accounts/billing-accounts.d.ts.map +1 -1
- package/dist/generated/billing-accounts/billing-accounts.js.map +1 -1
- package/dist/generated/binding-plans/binding-plans.d.ts +2 -0
- package/dist/generated/binding-plans/binding-plans.d.ts.map +1 -1
- package/dist/generated/binding-plans/binding-plans.js.map +1 -1
- package/dist/generated/coupons/coupons.d.ts +6 -0
- package/dist/generated/coupons/coupons.d.ts.map +1 -1
- package/dist/generated/coupons/coupons.js.map +1 -1
- package/dist/generated/discount-rules/discount-rules.d.ts +2 -0
- package/dist/generated/discount-rules/discount-rules.d.ts.map +1 -1
- package/dist/generated/discount-rules/discount-rules.js.map +1 -1
- package/dist/generated/fortnox-o-auth/fortnox-o-auth.d.ts +1 -1
- package/dist/generated/health/health.d.ts +1 -0
- package/dist/generated/health/health.d.ts.map +1 -1
- package/dist/generated/health/health.js.map +1 -1
- package/dist/generated/index.schemas.d.ts +46 -0
- package/dist/generated/index.schemas.d.ts.map +1 -1
- package/dist/generated/index.schemas.js.map +1 -1
- package/dist/generated/integrations/integrations.d.ts +4 -0
- package/dist/generated/integrations/integrations.d.ts.map +1 -1
- package/dist/generated/integrations/integrations.js.map +1 -1
- package/dist/generated/invoices/invoices.d.ts +80 -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/generated/me/me.d.ts +1 -0
- package/dist/generated/me/me.d.ts.map +1 -1
- package/dist/generated/me/me.js.map +1 -1
- package/dist/generated/orders/orders.d.ts +1 -0
- package/dist/generated/orders/orders.d.ts.map +1 -1
- package/dist/generated/orders/orders.js.map +1 -1
- package/dist/generated/price-lists/price-lists.d.ts +6 -0
- package/dist/generated/price-lists/price-lists.d.ts.map +1 -1
- package/dist/generated/price-lists/price-lists.js.map +1 -1
- package/dist/generated/provider-switch/provider-switch.d.ts +2 -0
- package/dist/generated/provider-switch/provider-switch.d.ts.map +1 -1
- package/dist/generated/provider-switch/provider-switch.js.map +1 -1
- package/dist/generated/stripe-webhook/stripe-webhook.d.ts +1 -1
- package/dist/generated/subscription-configs/subscription-configs.d.ts +3 -0
- package/dist/generated/subscription-configs/subscription-configs.d.ts.map +1 -1
- package/dist/generated/subscription-configs/subscription-configs.js.map +1 -1
- package/dist/generated/tenant-config/tenant-config.d.ts +2 -0
- package/dist/generated/tenant-config/tenant-config.d.ts.map +1 -1
- package/dist/generated/tenant-config/tenant-config.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/permissions.d.ts +39 -0
- package/dist/permissions.d.ts.map +1 -0
- package/dist/permissions.js +46 -0
- package/dist/permissions.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,6 +29,87 @@ 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
|
+
|
|
72
|
+
## Permissions (gating UI)
|
|
73
|
+
|
|
74
|
+
Every endpoint declares its access rule (from the API's `@RequiresPermission` /
|
|
75
|
+
`@Public` decorators). The SDK exposes it so you can gate UI before calling —
|
|
76
|
+
pair it with the `capabilities` array from `GET /v1/me`:
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
import {
|
|
80
|
+
requiredPermissions,
|
|
81
|
+
hasRequiredPermissions,
|
|
82
|
+
OPERATION_PERMISSIONS,
|
|
83
|
+
} from "@vindentech/api-client";
|
|
84
|
+
|
|
85
|
+
const { data: me } = await client.getMe(); // me.capabilities: string[]
|
|
86
|
+
|
|
87
|
+
requiredPermissions("billingAccountsControllerCreateAccountV1");
|
|
88
|
+
// → { kind: "permissions", permissions: ["billingaccount:write"] }
|
|
89
|
+
|
|
90
|
+
if (hasRequiredPermissions(me.capabilities, "billingAccountsControllerCreateAccountV1")) {
|
|
91
|
+
// show the "Create account" button
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Operations are keyed by a **typed operation-name string** (autocompleted; a
|
|
96
|
+
renamed/removed operation is a compile error). Pass the name, not the function —
|
|
97
|
+
that's bundler-safe where `Function.name` is not. You can also read the typed
|
|
98
|
+
map directly: `OPERATION_PERMISSIONS.billingAccountsControllerCreateAccountV1`.
|
|
99
|
+
|
|
100
|
+
`requiredPermissions(op)` returns a **closed** rule — every operation is
|
|
101
|
+
classified, so nothing reads as "open by omission":
|
|
102
|
+
|
|
103
|
+
| `kind` | Meaning | `hasRequiredPermissions` |
|
|
104
|
+
|---|---|---|
|
|
105
|
+
| `"permissions"` | caller must hold **all** of `.permissions` | true iff all held |
|
|
106
|
+
| `"authenticated"` | any authenticated user | always `true` |
|
|
107
|
+
| `"public"` | no auth required | always `true` |
|
|
108
|
+
|
|
109
|
+
Check `requiredPermissions(op).kind` to distinguish `"public"` from
|
|
110
|
+
`"authenticated"` for logged-out rendering. The rule also shows in each
|
|
111
|
+
operation's JSDoc on hover and in Swagger UI.
|
|
112
|
+
|
|
32
113
|
## API
|
|
33
114
|
|
|
34
115
|
### `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,214 @@
|
|
|
1
|
+
export type ApiPermission = "accountcredit:read" | "accountcredit:write" | "article:write" | "billingaccount:read" | "billingaccount:write" | "billingconfig:read" | "billingconfig:write" | "bindingplan:read" | "bindingplan:write" | "coupon:read" | "coupon:write" | "discountrule:read" | "discountrule:write" | "integration:read" | "integration:write" | "invoice:correct" | "invoice:read" | "order:read" | "pricelist:read" | "pricelist:write" | "providerswitch:write" | "subscriptionconfig:read" | "subscriptionconfig:write";
|
|
2
|
+
/** The closed access rule for an operation. */
|
|
3
|
+
export type OperationAccess = {
|
|
4
|
+
readonly kind: "permissions";
|
|
5
|
+
readonly permissions: readonly ApiPermission[];
|
|
6
|
+
} | {
|
|
7
|
+
readonly kind: "authenticated";
|
|
8
|
+
} | {
|
|
9
|
+
readonly kind: "public";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Maps every orval operation-function name to its access rule. Total by
|
|
13
|
+
* construction (the API stamps every operation), so a lookup is never a miss —
|
|
14
|
+
* there is no "absent means open" bucket.
|
|
15
|
+
*/
|
|
16
|
+
export declare const OPERATION_PERMISSIONS: {
|
|
17
|
+
readonly accountCreditsControllerCancelAccountCreditV1: {
|
|
18
|
+
readonly kind: "permissions";
|
|
19
|
+
readonly permissions: readonly ["accountcredit:write"];
|
|
20
|
+
};
|
|
21
|
+
readonly accountCreditsControllerCreateAccountCreditV1: {
|
|
22
|
+
readonly kind: "permissions";
|
|
23
|
+
readonly permissions: readonly ["accountcredit:write"];
|
|
24
|
+
};
|
|
25
|
+
readonly accountCreditsControllerListAccountCreditsV1: {
|
|
26
|
+
readonly kind: "permissions";
|
|
27
|
+
readonly permissions: readonly ["accountcredit:read"];
|
|
28
|
+
};
|
|
29
|
+
readonly accountCreditsControllerListApplicationsV1: {
|
|
30
|
+
readonly kind: "permissions";
|
|
31
|
+
readonly permissions: readonly ["accountcredit:read"];
|
|
32
|
+
};
|
|
33
|
+
readonly articlesControllerCreateArticleV1: {
|
|
34
|
+
readonly kind: "permissions";
|
|
35
|
+
readonly permissions: readonly ["article:write"];
|
|
36
|
+
};
|
|
37
|
+
readonly articlesControllerGetArticleByIdV1: {
|
|
38
|
+
readonly kind: "authenticated";
|
|
39
|
+
};
|
|
40
|
+
readonly articlesControllerListArticlesV1: {
|
|
41
|
+
readonly kind: "authenticated";
|
|
42
|
+
};
|
|
43
|
+
readonly articlesControllerUpdateArticleV1: {
|
|
44
|
+
readonly kind: "permissions";
|
|
45
|
+
readonly permissions: readonly ["article:write"];
|
|
46
|
+
};
|
|
47
|
+
readonly billingAccountsControllerCreateAccountV1: {
|
|
48
|
+
readonly kind: "permissions";
|
|
49
|
+
readonly permissions: readonly ["billingaccount:write"];
|
|
50
|
+
};
|
|
51
|
+
readonly billingAccountsControllerGetAccountByIdV1: {
|
|
52
|
+
readonly kind: "permissions";
|
|
53
|
+
readonly permissions: readonly ["billingaccount:read"];
|
|
54
|
+
};
|
|
55
|
+
readonly billingAccountsControllerListAccountsV1: {
|
|
56
|
+
readonly kind: "permissions";
|
|
57
|
+
readonly permissions: readonly ["billingaccount:read"];
|
|
58
|
+
};
|
|
59
|
+
readonly billingAccountsControllerUpdateAccountV1: {
|
|
60
|
+
readonly kind: "permissions";
|
|
61
|
+
readonly permissions: readonly ["billingaccount:write"];
|
|
62
|
+
};
|
|
63
|
+
readonly bindingPlansControllerCreateBindingPlanV1: {
|
|
64
|
+
readonly kind: "permissions";
|
|
65
|
+
readonly permissions: readonly ["bindingplan:write"];
|
|
66
|
+
};
|
|
67
|
+
readonly bindingPlansControllerListBindingPlansV1: {
|
|
68
|
+
readonly kind: "permissions";
|
|
69
|
+
readonly permissions: readonly ["bindingplan:read"];
|
|
70
|
+
};
|
|
71
|
+
readonly couponsControllerAddBenefitV1: {
|
|
72
|
+
readonly kind: "permissions";
|
|
73
|
+
readonly permissions: readonly ["coupon:write"];
|
|
74
|
+
};
|
|
75
|
+
readonly couponsControllerCreateCouponV1: {
|
|
76
|
+
readonly kind: "permissions";
|
|
77
|
+
readonly permissions: readonly ["coupon:write"];
|
|
78
|
+
};
|
|
79
|
+
readonly couponsControllerGetCouponV1: {
|
|
80
|
+
readonly kind: "permissions";
|
|
81
|
+
readonly permissions: readonly ["coupon:read"];
|
|
82
|
+
};
|
|
83
|
+
readonly couponsControllerListCouponsV1: {
|
|
84
|
+
readonly kind: "permissions";
|
|
85
|
+
readonly permissions: readonly ["coupon:read"];
|
|
86
|
+
};
|
|
87
|
+
readonly couponsControllerListRedemptionsV1: {
|
|
88
|
+
readonly kind: "permissions";
|
|
89
|
+
readonly permissions: readonly ["coupon:read"];
|
|
90
|
+
};
|
|
91
|
+
readonly couponsControllerRedeemCouponV1: {
|
|
92
|
+
readonly kind: "permissions";
|
|
93
|
+
readonly permissions: readonly ["coupon:write"];
|
|
94
|
+
};
|
|
95
|
+
readonly discountRulesControllerCreateDiscountRuleV1: {
|
|
96
|
+
readonly kind: "permissions";
|
|
97
|
+
readonly permissions: readonly ["discountrule:write"];
|
|
98
|
+
};
|
|
99
|
+
readonly discountRulesControllerListDiscountRulesV1: {
|
|
100
|
+
readonly kind: "permissions";
|
|
101
|
+
readonly permissions: readonly ["discountrule:read"];
|
|
102
|
+
};
|
|
103
|
+
readonly fortnoxOAuthControllerAuthorizeV1: {
|
|
104
|
+
readonly kind: "permissions";
|
|
105
|
+
readonly permissions: readonly ["integration:write"];
|
|
106
|
+
};
|
|
107
|
+
readonly healthControllerCheck: {
|
|
108
|
+
readonly kind: "public";
|
|
109
|
+
};
|
|
110
|
+
readonly integrationsControllerCreateFortnoxV1: {
|
|
111
|
+
readonly kind: "permissions";
|
|
112
|
+
readonly permissions: readonly ["integration:write"];
|
|
113
|
+
};
|
|
114
|
+
readonly integrationsControllerCreateStripeV1: {
|
|
115
|
+
readonly kind: "permissions";
|
|
116
|
+
readonly permissions: readonly ["integration:write"];
|
|
117
|
+
};
|
|
118
|
+
readonly integrationsControllerGetByIdV1: {
|
|
119
|
+
readonly kind: "permissions";
|
|
120
|
+
readonly permissions: readonly ["integration:read"];
|
|
121
|
+
};
|
|
122
|
+
readonly integrationsControllerListV1: {
|
|
123
|
+
readonly kind: "permissions";
|
|
124
|
+
readonly permissions: readonly ["integration:read"];
|
|
125
|
+
};
|
|
126
|
+
readonly invoicesControllerGetInvoiceByIdV1: {
|
|
127
|
+
readonly kind: "permissions";
|
|
128
|
+
readonly permissions: readonly ["invoice:read"];
|
|
129
|
+
};
|
|
130
|
+
readonly invoicesControllerIssueAdjustmentV1: {
|
|
131
|
+
readonly kind: "permissions";
|
|
132
|
+
readonly permissions: readonly ["invoice:correct"];
|
|
133
|
+
};
|
|
134
|
+
readonly invoicesControllerIssueCreditNoteV1: {
|
|
135
|
+
readonly kind: "permissions";
|
|
136
|
+
readonly permissions: readonly ["invoice:correct"];
|
|
137
|
+
};
|
|
138
|
+
readonly invoicesControllerListCorrectionsV1: {
|
|
139
|
+
readonly kind: "permissions";
|
|
140
|
+
readonly permissions: readonly ["invoice:read"];
|
|
141
|
+
};
|
|
142
|
+
readonly invoicesControllerListInvoicesV1: {
|
|
143
|
+
readonly kind: "permissions";
|
|
144
|
+
readonly permissions: readonly ["invoice:read"];
|
|
145
|
+
};
|
|
146
|
+
readonly invoicesControllerVoidInvoiceV1: {
|
|
147
|
+
readonly kind: "permissions";
|
|
148
|
+
readonly permissions: readonly ["invoice:correct"];
|
|
149
|
+
};
|
|
150
|
+
readonly meControllerGetMeV1: {
|
|
151
|
+
readonly kind: "authenticated";
|
|
152
|
+
};
|
|
153
|
+
readonly ordersControllerFindAllV1: {
|
|
154
|
+
readonly kind: "permissions";
|
|
155
|
+
readonly permissions: readonly ["order:read"];
|
|
156
|
+
};
|
|
157
|
+
readonly priceListsControllerCreatePriceListItemV1: {
|
|
158
|
+
readonly kind: "permissions";
|
|
159
|
+
readonly permissions: readonly ["pricelist:write"];
|
|
160
|
+
};
|
|
161
|
+
readonly priceListsControllerCreatePriceListV1: {
|
|
162
|
+
readonly kind: "permissions";
|
|
163
|
+
readonly permissions: readonly ["pricelist:write"];
|
|
164
|
+
};
|
|
165
|
+
readonly priceListsControllerGetPriceListByIdV1: {
|
|
166
|
+
readonly kind: "permissions";
|
|
167
|
+
readonly permissions: readonly ["pricelist:read"];
|
|
168
|
+
};
|
|
169
|
+
readonly priceListsControllerGetPriceListItemsV1: {
|
|
170
|
+
readonly kind: "permissions";
|
|
171
|
+
readonly permissions: readonly ["pricelist:read"];
|
|
172
|
+
};
|
|
173
|
+
readonly priceListsControllerListPriceListsV1: {
|
|
174
|
+
readonly kind: "permissions";
|
|
175
|
+
readonly permissions: readonly ["pricelist:read"];
|
|
176
|
+
};
|
|
177
|
+
readonly priceListsControllerUpdatePriceListV1: {
|
|
178
|
+
readonly kind: "permissions";
|
|
179
|
+
readonly permissions: readonly ["pricelist:write"];
|
|
180
|
+
};
|
|
181
|
+
readonly providerSwitchControllerSwitchAccountProvidersV1: {
|
|
182
|
+
readonly kind: "permissions";
|
|
183
|
+
readonly permissions: readonly ["providerswitch:write"];
|
|
184
|
+
};
|
|
185
|
+
readonly providerSwitchControllerSwitchTenantConfigProvidersV1: {
|
|
186
|
+
readonly kind: "permissions";
|
|
187
|
+
readonly permissions: readonly ["providerswitch:write"];
|
|
188
|
+
};
|
|
189
|
+
readonly stripeWebhookControllerReceiveV1: {
|
|
190
|
+
readonly kind: "public";
|
|
191
|
+
};
|
|
192
|
+
readonly subscriptionConfigsControllerCreateV1: {
|
|
193
|
+
readonly kind: "permissions";
|
|
194
|
+
readonly permissions: readonly ["subscriptionconfig:write"];
|
|
195
|
+
};
|
|
196
|
+
readonly subscriptionConfigsControllerGetByBillingAccountV1: {
|
|
197
|
+
readonly kind: "permissions";
|
|
198
|
+
readonly permissions: readonly ["subscriptionconfig:read"];
|
|
199
|
+
};
|
|
200
|
+
readonly subscriptionConfigsControllerUpdateV1: {
|
|
201
|
+
readonly kind: "permissions";
|
|
202
|
+
readonly permissions: readonly ["subscriptionconfig:write"];
|
|
203
|
+
};
|
|
204
|
+
readonly tenantConfigControllerGetConfigV1: {
|
|
205
|
+
readonly kind: "permissions";
|
|
206
|
+
readonly permissions: readonly ["billingconfig:read"];
|
|
207
|
+
};
|
|
208
|
+
readonly tenantConfigControllerUpdateV1: {
|
|
209
|
+
readonly kind: "permissions";
|
|
210
|
+
readonly permissions: readonly ["billingconfig:write"];
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
export type OperationName = keyof typeof OPERATION_PERMISSIONS;
|
|
214
|
+
//# sourceMappingURL=_permissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_permissions.d.ts","sourceRoot":"","sources":["../../src/generated/_permissions.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,aAAa,GACrB,oBAAoB,GACpB,qBAAqB,GACrB,eAAe,GACf,qBAAqB,GACrB,sBAAsB,GACtB,oBAAoB,GACpB,qBAAqB,GACrB,kBAAkB,GAClB,mBAAmB,GACnB,aAAa,GACb,cAAc,GACd,mBAAmB,GACnB,oBAAoB,GACpB,kBAAkB,GAClB,mBAAmB,GACnB,iBAAiB,GACjB,cAAc,GACd,YAAY,GACZ,gBAAgB,GAChB,iBAAiB,GACjB,sBAAsB,GACtB,yBAAyB,GACzB,0BAA0B,CAAC;AAE/B,+CAA+C;AAC/C,MAAM,MAAM,eAAe,GACvB;IAAE,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,SAAS,aAAa,EAAE,CAAA;CAAE,GAChF;IAAE,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAA;CAAE,GAClC;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAEhC;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDkB,CAAC;AAErD,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// Generated by scripts/generate-permissions.mjs — do not edit manually.
|
|
2
|
+
// Access rule per operation, from the API's x-required-permissions / x-access.
|
|
3
|
+
/**
|
|
4
|
+
* Maps every orval operation-function name to its access rule. Total by
|
|
5
|
+
* construction (the API stamps every operation), so a lookup is never a miss —
|
|
6
|
+
* there is no "absent means open" bucket.
|
|
7
|
+
*/
|
|
8
|
+
export const OPERATION_PERMISSIONS = {
|
|
9
|
+
accountCreditsControllerCancelAccountCreditV1: { kind: "permissions", permissions: ["accountcredit:write"] },
|
|
10
|
+
accountCreditsControllerCreateAccountCreditV1: { kind: "permissions", permissions: ["accountcredit:write"] },
|
|
11
|
+
accountCreditsControllerListAccountCreditsV1: { kind: "permissions", permissions: ["accountcredit:read"] },
|
|
12
|
+
accountCreditsControllerListApplicationsV1: { kind: "permissions", permissions: ["accountcredit:read"] },
|
|
13
|
+
articlesControllerCreateArticleV1: { kind: "permissions", permissions: ["article:write"] },
|
|
14
|
+
articlesControllerGetArticleByIdV1: { kind: "authenticated" },
|
|
15
|
+
articlesControllerListArticlesV1: { kind: "authenticated" },
|
|
16
|
+
articlesControllerUpdateArticleV1: { kind: "permissions", permissions: ["article:write"] },
|
|
17
|
+
billingAccountsControllerCreateAccountV1: { kind: "permissions", permissions: ["billingaccount:write"] },
|
|
18
|
+
billingAccountsControllerGetAccountByIdV1: { kind: "permissions", permissions: ["billingaccount:read"] },
|
|
19
|
+
billingAccountsControllerListAccountsV1: { kind: "permissions", permissions: ["billingaccount:read"] },
|
|
20
|
+
billingAccountsControllerUpdateAccountV1: { kind: "permissions", permissions: ["billingaccount:write"] },
|
|
21
|
+
bindingPlansControllerCreateBindingPlanV1: { kind: "permissions", permissions: ["bindingplan:write"] },
|
|
22
|
+
bindingPlansControllerListBindingPlansV1: { kind: "permissions", permissions: ["bindingplan:read"] },
|
|
23
|
+
couponsControllerAddBenefitV1: { kind: "permissions", permissions: ["coupon:write"] },
|
|
24
|
+
couponsControllerCreateCouponV1: { kind: "permissions", permissions: ["coupon:write"] },
|
|
25
|
+
couponsControllerGetCouponV1: { kind: "permissions", permissions: ["coupon:read"] },
|
|
26
|
+
couponsControllerListCouponsV1: { kind: "permissions", permissions: ["coupon:read"] },
|
|
27
|
+
couponsControllerListRedemptionsV1: { kind: "permissions", permissions: ["coupon:read"] },
|
|
28
|
+
couponsControllerRedeemCouponV1: { kind: "permissions", permissions: ["coupon:write"] },
|
|
29
|
+
discountRulesControllerCreateDiscountRuleV1: { kind: "permissions", permissions: ["discountrule:write"] },
|
|
30
|
+
discountRulesControllerListDiscountRulesV1: { kind: "permissions", permissions: ["discountrule:read"] },
|
|
31
|
+
fortnoxOAuthControllerAuthorizeV1: { kind: "permissions", permissions: ["integration:write"] },
|
|
32
|
+
healthControllerCheck: { kind: "public" },
|
|
33
|
+
integrationsControllerCreateFortnoxV1: { kind: "permissions", permissions: ["integration:write"] },
|
|
34
|
+
integrationsControllerCreateStripeV1: { kind: "permissions", permissions: ["integration:write"] },
|
|
35
|
+
integrationsControllerGetByIdV1: { kind: "permissions", permissions: ["integration:read"] },
|
|
36
|
+
integrationsControllerListV1: { kind: "permissions", permissions: ["integration:read"] },
|
|
37
|
+
invoicesControllerGetInvoiceByIdV1: { kind: "permissions", permissions: ["invoice:read"] },
|
|
38
|
+
invoicesControllerIssueAdjustmentV1: { kind: "permissions", permissions: ["invoice:correct"] },
|
|
39
|
+
invoicesControllerIssueCreditNoteV1: { kind: "permissions", permissions: ["invoice:correct"] },
|
|
40
|
+
invoicesControllerListCorrectionsV1: { kind: "permissions", permissions: ["invoice:read"] },
|
|
41
|
+
invoicesControllerListInvoicesV1: { kind: "permissions", permissions: ["invoice:read"] },
|
|
42
|
+
invoicesControllerVoidInvoiceV1: { kind: "permissions", permissions: ["invoice:correct"] },
|
|
43
|
+
meControllerGetMeV1: { kind: "authenticated" },
|
|
44
|
+
ordersControllerFindAllV1: { kind: "permissions", permissions: ["order:read"] },
|
|
45
|
+
priceListsControllerCreatePriceListItemV1: { kind: "permissions", permissions: ["pricelist:write"] },
|
|
46
|
+
priceListsControllerCreatePriceListV1: { kind: "permissions", permissions: ["pricelist:write"] },
|
|
47
|
+
priceListsControllerGetPriceListByIdV1: { kind: "permissions", permissions: ["pricelist:read"] },
|
|
48
|
+
priceListsControllerGetPriceListItemsV1: { kind: "permissions", permissions: ["pricelist:read"] },
|
|
49
|
+
priceListsControllerListPriceListsV1: { kind: "permissions", permissions: ["pricelist:read"] },
|
|
50
|
+
priceListsControllerUpdatePriceListV1: { kind: "permissions", permissions: ["pricelist:write"] },
|
|
51
|
+
providerSwitchControllerSwitchAccountProvidersV1: { kind: "permissions", permissions: ["providerswitch:write"] },
|
|
52
|
+
providerSwitchControllerSwitchTenantConfigProvidersV1: { kind: "permissions", permissions: ["providerswitch:write"] },
|
|
53
|
+
stripeWebhookControllerReceiveV1: { kind: "public" },
|
|
54
|
+
subscriptionConfigsControllerCreateV1: { kind: "permissions", permissions: ["subscriptionconfig:write"] },
|
|
55
|
+
subscriptionConfigsControllerGetByBillingAccountV1: { kind: "permissions", permissions: ["subscriptionconfig:read"] },
|
|
56
|
+
subscriptionConfigsControllerUpdateV1: { kind: "permissions", permissions: ["subscriptionconfig:write"] },
|
|
57
|
+
tenantConfigControllerGetConfigV1: { kind: "permissions", permissions: ["billingconfig:read"] },
|
|
58
|
+
tenantConfigControllerUpdateV1: { kind: "permissions", permissions: ["billingconfig:write"] },
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=_permissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_permissions.js","sourceRoot":"","sources":["../../src/generated/_permissions.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,+EAA+E;AAiC/E;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,6CAA6C,EAAE,EAAE,IAAI,EA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AAC,sBAAsB,CAAC,EAAE;IACrH,gCAAgC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;IACpD,qCAAqC,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC,0BAA0B,CAAC,EAAE;IACzG,kDAAkD,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC,yBAAyB,CAAC,EAAE;IACrH,qCAAqC,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC,0BAA0B,CAAC,EAAE;IACzG,iCAAiC,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC,oBAAoB,CAAC,EAAE;IAC/F,8BAA8B,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC,qBAAqB,CAAC,EAAE;CAC3C,CAAC"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { AccountCreditApplicationDto, AccountCreditDto, AccountCreditsControllerListAccountCreditsV1Params, AccountCreditsControllerListApplicationsV1Params, CreateAccountCreditDto } from '../index.schemas.js';
|
|
9
9
|
/**
|
|
10
|
+
* 🔒 Requires permission: accountcredit:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
10
11
|
* @summary List account credits (optionally filtered by billing account)
|
|
11
12
|
*/
|
|
12
13
|
export type accountCreditsControllerListAccountCreditsV1Response200 = {
|
|
@@ -20,6 +21,7 @@ export type accountCreditsControllerListAccountCreditsV1Response = (accountCredi
|
|
|
20
21
|
export declare const getAccountCreditsControllerListAccountCreditsV1Url: (params?: AccountCreditsControllerListAccountCreditsV1Params) => string;
|
|
21
22
|
export declare const accountCreditsControllerListAccountCreditsV1: (params?: AccountCreditsControllerListAccountCreditsV1Params, options?: RequestInit) => Promise<accountCreditsControllerListAccountCreditsV1Response>;
|
|
22
23
|
/**
|
|
24
|
+
* 🔒 Requires permission: accountcredit:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
23
25
|
* @summary Create an account credit (fully unspent)
|
|
24
26
|
*/
|
|
25
27
|
export type accountCreditsControllerCreateAccountCreditV1Response201 = {
|
|
@@ -33,6 +35,7 @@ export type accountCreditsControllerCreateAccountCreditV1Response = (accountCred
|
|
|
33
35
|
export declare const getAccountCreditsControllerCreateAccountCreditV1Url: () => string;
|
|
34
36
|
export declare const accountCreditsControllerCreateAccountCreditV1: (createAccountCreditDto: CreateAccountCreditDto, options?: RequestInit) => Promise<accountCreditsControllerCreateAccountCreditV1Response>;
|
|
35
37
|
/**
|
|
38
|
+
* 🔒 Requires permission: accountcredit:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
36
39
|
* @summary List the INSERT-only consumption ledger for one account credit
|
|
37
40
|
*/
|
|
38
41
|
export type accountCreditsControllerListApplicationsV1Response200 = {
|
|
@@ -46,6 +49,7 @@ export type accountCreditsControllerListApplicationsV1Response = (accountCredits
|
|
|
46
49
|
export declare const getAccountCreditsControllerListApplicationsV1Url: (id: string, params?: AccountCreditsControllerListApplicationsV1Params) => string;
|
|
47
50
|
export declare const accountCreditsControllerListApplicationsV1: (id: string, params?: AccountCreditsControllerListApplicationsV1Params, options?: RequestInit) => Promise<accountCreditsControllerListApplicationsV1Response>;
|
|
48
51
|
/**
|
|
52
|
+
* 🔒 Requires permission: accountcredit:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
49
53
|
* @summary Cancel an account credit (idempotent; existing applications stay)
|
|
50
54
|
*/
|
|
51
55
|
export type accountCreditsControllerCancelAccountCreditV1Response200 = {
|
|
@@ -1 +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
|
|
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;;;GAGG;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;;;GAGG;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,qDAAqD,GAAG,CAAC,4DAA4D,CAAC,CAAA;AAElI,eAAO,MAAM,mDAAmD,cAM/D,CAAA;AAED,eAAO,MAAM,6CAA6C,GAAU,wBAAwB,sBAAsB,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,qDAAqD,CAUtM,CAAA;AAGH;;;GAGG;AACH,MAAM,MAAM,qDAAqD,GAAG;IAClE,IAAI,EAAE,2BAA2B,EAAE,CAAA;IACnC,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,yDAAyD,GAAG,CAAC,qDAAqD,CAAC,GAAG;IAChI,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,kDAAkD,GAAG,CAAC,yDAAyD,CAAC,CAAA;AAE5H,eAAO,MAAM,gDAAgD,GAAI,IAAI,MAAM,EACvE,SAAS,gDAAgD,WAa5D,CAAA;AAED,eAAO,MAAM,0CAA0C,GAAU,IAAI,MAAM,EACvE,SAAS,gDAAgD,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,kDAAkD,CAS9I,CAAA;AAGH;;;GAGG;AACH,MAAM,MAAM,wDAAwD,GAAG;IACrE,IAAI,EAAE,gBAAgB,CAAA;IACtB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,wDAAwD,GAAG;IACrE,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,4DAA4D,GAAG,CAAC,wDAAwD,CAAC,GAAG;IACtI,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AACF,MAAM,MAAM,0DAA0D,GAAG,CAAC,wDAAwD,CAAC,GAAG;IACpI,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,qDAAqD,GAAG,CAAC,4DAA4D,GAAG,0DAA0D,CAAC,CAAA;AAE/L,eAAO,MAAM,mDAAmD,GAAI,IAAI,MAAM,WAM7E,CAAA;AAED,eAAO,MAAM,6CAA6C,GAAU,IAAI,MAAM,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,qDAAqD,CASlK,CAAA"}
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"account-credits.js","sourceRoot":"","sources":["../../../src/generated/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;AACnD,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,6CAA6C,GAAG,KAAK,EAAE,EAAU,EAAE,OAAqB,EAAkE,EAAE;IAEvK,OAAO,WAAW,CAAwD,mDAAmD,CAAC,EAAE,CAAC,EACjI;QACE,GAAG,OAAO;QACV,MAAM,EAAE,MAAM;KAGf,CACF,CAAC;AAAA,CAAC,CAAA"}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import type { ArticleDto, ArticlesControllerListArticlesV1Params, CreateArticleDto, UpdateArticleDto } from '../index.schemas.js';
|
|
9
9
|
/**
|
|
10
|
+
* 🔒 Requires: authenticated session
|
|
10
11
|
* @summary List articles
|
|
11
12
|
*/
|
|
12
13
|
export type articlesControllerListArticlesV1Response200 = {
|
|
@@ -20,6 +21,7 @@ export type articlesControllerListArticlesV1Response = (articlesControllerListAr
|
|
|
20
21
|
export declare const getArticlesControllerListArticlesV1Url: (params?: ArticlesControllerListArticlesV1Params) => string;
|
|
21
22
|
export declare const articlesControllerListArticlesV1: (params?: ArticlesControllerListArticlesV1Params, options?: RequestInit) => Promise<articlesControllerListArticlesV1Response>;
|
|
22
23
|
/**
|
|
24
|
+
* 🔒 Requires permission: article:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
23
25
|
* @summary Create a tenant article
|
|
24
26
|
*/
|
|
25
27
|
export type articlesControllerCreateArticleV1Response201 = {
|
|
@@ -33,6 +35,7 @@ export type articlesControllerCreateArticleV1Response = (articlesControllerCreat
|
|
|
33
35
|
export declare const getArticlesControllerCreateArticleV1Url: () => string;
|
|
34
36
|
export declare const articlesControllerCreateArticleV1: (createArticleDto: CreateArticleDto, options?: RequestInit) => Promise<articlesControllerCreateArticleV1Response>;
|
|
35
37
|
/**
|
|
38
|
+
* 🔒 Requires: authenticated session
|
|
36
39
|
* @summary Get one article by id
|
|
37
40
|
*/
|
|
38
41
|
export type articlesControllerGetArticleByIdV1Response200 = {
|
|
@@ -46,6 +49,7 @@ export type articlesControllerGetArticleByIdV1Response = (articlesControllerGetA
|
|
|
46
49
|
export declare const getArticlesControllerGetArticleByIdV1Url: (id: string) => string;
|
|
47
50
|
export declare const articlesControllerGetArticleByIdV1: (id: string, options?: RequestInit) => Promise<articlesControllerGetArticleByIdV1Response>;
|
|
48
51
|
/**
|
|
52
|
+
* 🔒 Requires permission: article:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
49
53
|
* @summary Update a tenant article
|
|
50
54
|
*/
|
|
51
55
|
export type articlesControllerUpdateArticleV1Response200 = {
|