@vindentech/api-client 0.2.0 → 0.3.0-next.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/dist/generated/articles/articles.d.ts +61 -0
- package/dist/generated/articles/articles.d.ts.map +1 -0
- package/dist/generated/articles/articles.js +53 -0
- package/dist/generated/articles/articles.js.map +1 -0
- package/dist/generated/billing-accounts/billing-accounts.d.ts +61 -0
- package/dist/generated/billing-accounts/billing-accounts.d.ts.map +1 -0
- package/dist/generated/billing-accounts/billing-accounts.js +53 -0
- package/dist/generated/billing-accounts/billing-accounts.js.map +1 -0
- package/dist/generated/fortnox-o-auth/fortnox-o-auth.d.ts +23 -0
- package/dist/generated/fortnox-o-auth/fortnox-o-auth.d.ts.map +1 -0
- package/dist/generated/fortnox-o-auth/fortnox-o-auth.js +12 -0
- package/dist/generated/fortnox-o-auth/fortnox-o-auth.js.map +1 -0
- package/dist/generated/index.schemas.d.ts +632 -0
- package/dist/generated/index.schemas.d.ts.map +1 -1
- package/dist/generated/index.schemas.js +52 -1
- package/dist/generated/index.schemas.js.map +1 -1
- package/dist/generated/integrations/integrations.d.ts +61 -0
- package/dist/generated/integrations/integrations.d.ts.map +1 -0
- package/dist/generated/integrations/integrations.js +46 -0
- package/dist/generated/integrations/integrations.js.map +1 -0
- package/dist/generated/invoices/invoices.d.ts +35 -0
- package/dist/generated/invoices/invoices.d.ts.map +1 -0
- package/dist/generated/invoices/invoices.js +29 -0
- package/dist/generated/invoices/invoices.js.map +1 -0
- package/dist/generated/price-lists/price-lists.d.ts +87 -0
- package/dist/generated/price-lists/price-lists.d.ts.map +1 -0
- package/dist/generated/price-lists/price-lists.js +82 -0
- package/dist/generated/price-lists/price-lists.js.map +1 -0
- package/dist/generated/provider-switch/provider-switch.d.ts +49 -0
- package/dist/generated/provider-switch/provider-switch.d.ts.map +1 -0
- package/dist/generated/provider-switch/provider-switch.js +24 -0
- package/dist/generated/provider-switch/provider-switch.js.map +1 -0
- package/dist/generated/stripe-webhook/stripe-webhook.d.ts +23 -0
- package/dist/generated/stripe-webhook/stripe-webhook.d.ts.map +1 -0
- package/dist/generated/stripe-webhook/stripe-webhook.js +12 -0
- package/dist/generated/stripe-webhook/stripe-webhook.js.map +1 -0
- package/dist/generated/subscription-configs/subscription-configs.d.ts +48 -0
- package/dist/generated/subscription-configs/subscription-configs.d.ts.map +1 -0
- package/dist/generated/subscription-configs/subscription-configs.js +36 -0
- package/dist/generated/subscription-configs/subscription-configs.js.map +1 -0
- package/dist/generated/tenant-config/tenant-config.d.ts +35 -0
- package/dist/generated/tenant-config/tenant-config.d.ts.map +1 -0
- package/dist/generated/tenant-config/tenant-config.js +24 -0
- package/dist/generated/tenant-config/tenant-config.js.map +1 -0
- package/package.json +5 -3
|
@@ -0,0 +1,61 @@
|
|
|
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 { ArticleDto, ArticlesControllerListArticlesV1Params, CreateArticleDto, UpdateArticleDto } from '../index.schemas.js';
|
|
9
|
+
/**
|
|
10
|
+
* @summary List articles
|
|
11
|
+
*/
|
|
12
|
+
export type articlesControllerListArticlesV1Response200 = {
|
|
13
|
+
data: ArticleDto[];
|
|
14
|
+
status: 200;
|
|
15
|
+
};
|
|
16
|
+
export type articlesControllerListArticlesV1ResponseSuccess = (articlesControllerListArticlesV1Response200) & {
|
|
17
|
+
headers: Headers;
|
|
18
|
+
};
|
|
19
|
+
export type articlesControllerListArticlesV1Response = (articlesControllerListArticlesV1ResponseSuccess);
|
|
20
|
+
export declare const getArticlesControllerListArticlesV1Url: (params?: ArticlesControllerListArticlesV1Params) => string;
|
|
21
|
+
export declare const articlesControllerListArticlesV1: (params?: ArticlesControllerListArticlesV1Params, options?: RequestInit) => Promise<articlesControllerListArticlesV1Response>;
|
|
22
|
+
/**
|
|
23
|
+
* @summary Create a tenant article
|
|
24
|
+
*/
|
|
25
|
+
export type articlesControllerCreateArticleV1Response201 = {
|
|
26
|
+
data: ArticleDto;
|
|
27
|
+
status: 201;
|
|
28
|
+
};
|
|
29
|
+
export type articlesControllerCreateArticleV1ResponseSuccess = (articlesControllerCreateArticleV1Response201) & {
|
|
30
|
+
headers: Headers;
|
|
31
|
+
};
|
|
32
|
+
export type articlesControllerCreateArticleV1Response = (articlesControllerCreateArticleV1ResponseSuccess);
|
|
33
|
+
export declare const getArticlesControllerCreateArticleV1Url: () => string;
|
|
34
|
+
export declare const articlesControllerCreateArticleV1: (createArticleDto: CreateArticleDto, options?: RequestInit) => Promise<articlesControllerCreateArticleV1Response>;
|
|
35
|
+
/**
|
|
36
|
+
* @summary Get one article by id
|
|
37
|
+
*/
|
|
38
|
+
export type articlesControllerGetArticleByIdV1Response200 = {
|
|
39
|
+
data: ArticleDto;
|
|
40
|
+
status: 200;
|
|
41
|
+
};
|
|
42
|
+
export type articlesControllerGetArticleByIdV1ResponseSuccess = (articlesControllerGetArticleByIdV1Response200) & {
|
|
43
|
+
headers: Headers;
|
|
44
|
+
};
|
|
45
|
+
export type articlesControllerGetArticleByIdV1Response = (articlesControllerGetArticleByIdV1ResponseSuccess);
|
|
46
|
+
export declare const getArticlesControllerGetArticleByIdV1Url: (id: string) => string;
|
|
47
|
+
export declare const articlesControllerGetArticleByIdV1: (id: string, options?: RequestInit) => Promise<articlesControllerGetArticleByIdV1Response>;
|
|
48
|
+
/**
|
|
49
|
+
* @summary Update a tenant article
|
|
50
|
+
*/
|
|
51
|
+
export type articlesControllerUpdateArticleV1Response200 = {
|
|
52
|
+
data: ArticleDto;
|
|
53
|
+
status: 200;
|
|
54
|
+
};
|
|
55
|
+
export type articlesControllerUpdateArticleV1ResponseSuccess = (articlesControllerUpdateArticleV1Response200) & {
|
|
56
|
+
headers: Headers;
|
|
57
|
+
};
|
|
58
|
+
export type articlesControllerUpdateArticleV1Response = (articlesControllerUpdateArticleV1ResponseSuccess);
|
|
59
|
+
export declare const getArticlesControllerUpdateArticleV1Url: (id: string) => string;
|
|
60
|
+
export declare const articlesControllerUpdateArticleV1: (id: string, updateArticleDto: UpdateArticleDto, options?: RequestInit) => Promise<articlesControllerUpdateArticleV1Response>;
|
|
61
|
+
//# sourceMappingURL=articles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"articles.d.ts","sourceRoot":"","sources":["../../../src/generated/articles/articles.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,UAAU,EACV,sCAAsC,EACtC,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAI7B;;GAEG;AACH,MAAM,MAAM,2CAA2C,GAAG;IACxD,IAAI,EAAE,UAAU,EAAE,CAAA;IAClB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,+CAA+C,GAAG,CAAC,2CAA2C,CAAC,GAAG;IAC5G,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,wCAAwC,GAAG,CAAC,+CAA+C,CAAC,CAAA;AAExG,eAAO,MAAM,sCAAsC,GAAI,SAAS,sCAAsC,WAarG,CAAA;AAED,eAAO,MAAM,gCAAgC,GAAU,SAAS,sCAAsC,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,wCAAwC,CAS7K,CAAA;AAGH;;GAEG;AACH,MAAM,MAAM,4CAA4C,GAAG;IACzD,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,gDAAgD,GAAG,CAAC,4CAA4C,CAAC,GAAG;IAC9G,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,yCAAyC,GAAG,CAAC,gDAAgD,CAAC,CAAA;AAE1G,eAAO,MAAM,uCAAuC,cAMnD,CAAA;AAED,eAAO,MAAM,iCAAiC,GAAU,kBAAkB,gBAAgB,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,yCAAyC,CAUlK,CAAA;AAGH;;GAEG;AACH,MAAM,MAAM,6CAA6C,GAAG;IAC1D,IAAI,EAAE,UAAU,CAAA;IAChB,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,IAAI,MAAM,WAMlE,CAAA;AAED,eAAO,MAAM,kCAAkC,GAAU,IAAI,MAAM,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,0CAA0C,CAS5I,CAAA;AAGH;;GAEG;AACH,MAAM,MAAM,4CAA4C,GAAG;IACzD,IAAI,EAAE,UAAU,CAAA;IAChB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,gDAAgD,GAAG,CAAC,4CAA4C,CAAC,GAAG;IAC9G,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,yCAAyC,GAAG,CAAC,gDAAgD,CAAC,CAAA;AAE1G,eAAO,MAAM,uCAAuC,GAAI,IAAI,MAAM,WAMjE,CAAA;AAED,eAAO,MAAM,iCAAiC,GAAU,IAAI,MAAM,EAC9D,kBAAkB,gBAAgB,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,yCAAyC,CAU9G,CAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { customFetch } from '../../mutator.js';
|
|
2
|
+
;
|
|
3
|
+
export const getArticlesControllerListArticlesV1Url = (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/articles?${stringifiedParams}` : `/v1/billing/articles`;
|
|
12
|
+
};
|
|
13
|
+
export const articlesControllerListArticlesV1 = async (params, options) => {
|
|
14
|
+
return customFetch(getArticlesControllerListArticlesV1Url(params), {
|
|
15
|
+
...options,
|
|
16
|
+
method: 'GET'
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
;
|
|
20
|
+
export const getArticlesControllerCreateArticleV1Url = () => {
|
|
21
|
+
return `/v1/billing/articles`;
|
|
22
|
+
};
|
|
23
|
+
export const articlesControllerCreateArticleV1 = async (createArticleDto, options) => {
|
|
24
|
+
return customFetch(getArticlesControllerCreateArticleV1Url(), {
|
|
25
|
+
...options,
|
|
26
|
+
method: 'POST',
|
|
27
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
28
|
+
body: JSON.stringify(createArticleDto)
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
;
|
|
32
|
+
export const getArticlesControllerGetArticleByIdV1Url = (id) => {
|
|
33
|
+
return `/v1/billing/articles/${id}`;
|
|
34
|
+
};
|
|
35
|
+
export const articlesControllerGetArticleByIdV1 = async (id, options) => {
|
|
36
|
+
return customFetch(getArticlesControllerGetArticleByIdV1Url(id), {
|
|
37
|
+
...options,
|
|
38
|
+
method: 'GET'
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
;
|
|
42
|
+
export const getArticlesControllerUpdateArticleV1Url = (id) => {
|
|
43
|
+
return `/v1/billing/articles/${id}`;
|
|
44
|
+
};
|
|
45
|
+
export const articlesControllerUpdateArticleV1 = async (id, updateArticleDto, options) => {
|
|
46
|
+
return customFetch(getArticlesControllerUpdateArticleV1Url(id), {
|
|
47
|
+
...options,
|
|
48
|
+
method: 'PATCH',
|
|
49
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
50
|
+
body: JSON.stringify(updateArticleDto)
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=articles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"articles.js","sourceRoot":"","sources":["../../../src/generated/articles/articles.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAa/C,CAAC;AAID,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,MAA+C,EAAG,EAAE;IACzG,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,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAA;QAC1E,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,QAAQ,EAAE,CAAC;IAEtD,OAAO,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,wBAAwB,iBAAiB,EAAE,CAAC,CAAC,CAAC,sBAAsB,CAAA;AAC5G,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,gCAAgC,GAAG,KAAK,EAAE,MAA+C,EAAE,OAAqB,EAAqD,EAAE;IAElL,OAAO,WAAW,CAA2C,sCAAsC,CAAC,MAAM,CAAC,EAC3G;QACE,GAAG,OAAO;QACV,MAAM,EAAE,KAAK;KAGd,CACF,CAAC;AAAA,CAAC,CAAA;AAcH,CAAC;AAID,MAAM,CAAC,MAAM,uCAAuC,GAAG,GAAG,EAAE;IAK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}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { BillingAccountDto, BillingAccountsControllerListAccountsV1Params, CreateBillingAccountDto, UpdateBillingAccountDto } from '../index.schemas.js';
|
|
9
|
+
/**
|
|
10
|
+
* @summary List billing accounts
|
|
11
|
+
*/
|
|
12
|
+
export type billingAccountsControllerListAccountsV1Response200 = {
|
|
13
|
+
data: BillingAccountDto[];
|
|
14
|
+
status: 200;
|
|
15
|
+
};
|
|
16
|
+
export type billingAccountsControllerListAccountsV1ResponseSuccess = (billingAccountsControllerListAccountsV1Response200) & {
|
|
17
|
+
headers: Headers;
|
|
18
|
+
};
|
|
19
|
+
export type billingAccountsControllerListAccountsV1Response = (billingAccountsControllerListAccountsV1ResponseSuccess);
|
|
20
|
+
export declare const getBillingAccountsControllerListAccountsV1Url: (params?: BillingAccountsControllerListAccountsV1Params) => string;
|
|
21
|
+
export declare const billingAccountsControllerListAccountsV1: (params?: BillingAccountsControllerListAccountsV1Params, options?: RequestInit) => Promise<billingAccountsControllerListAccountsV1Response>;
|
|
22
|
+
/**
|
|
23
|
+
* @summary Create a billing account
|
|
24
|
+
*/
|
|
25
|
+
export type billingAccountsControllerCreateAccountV1Response201 = {
|
|
26
|
+
data: BillingAccountDto;
|
|
27
|
+
status: 201;
|
|
28
|
+
};
|
|
29
|
+
export type billingAccountsControllerCreateAccountV1ResponseSuccess = (billingAccountsControllerCreateAccountV1Response201) & {
|
|
30
|
+
headers: Headers;
|
|
31
|
+
};
|
|
32
|
+
export type billingAccountsControllerCreateAccountV1Response = (billingAccountsControllerCreateAccountV1ResponseSuccess);
|
|
33
|
+
export declare const getBillingAccountsControllerCreateAccountV1Url: () => string;
|
|
34
|
+
export declare const billingAccountsControllerCreateAccountV1: (createBillingAccountDto: CreateBillingAccountDto, options?: RequestInit) => Promise<billingAccountsControllerCreateAccountV1Response>;
|
|
35
|
+
/**
|
|
36
|
+
* @summary Get one billing account by id
|
|
37
|
+
*/
|
|
38
|
+
export type billingAccountsControllerGetAccountByIdV1Response200 = {
|
|
39
|
+
data: BillingAccountDto;
|
|
40
|
+
status: 200;
|
|
41
|
+
};
|
|
42
|
+
export type billingAccountsControllerGetAccountByIdV1ResponseSuccess = (billingAccountsControllerGetAccountByIdV1Response200) & {
|
|
43
|
+
headers: Headers;
|
|
44
|
+
};
|
|
45
|
+
export type billingAccountsControllerGetAccountByIdV1Response = (billingAccountsControllerGetAccountByIdV1ResponseSuccess);
|
|
46
|
+
export declare const getBillingAccountsControllerGetAccountByIdV1Url: (id: string) => string;
|
|
47
|
+
export declare const billingAccountsControllerGetAccountByIdV1: (id: string, options?: RequestInit) => Promise<billingAccountsControllerGetAccountByIdV1Response>;
|
|
48
|
+
/**
|
|
49
|
+
* @summary Update a billing account
|
|
50
|
+
*/
|
|
51
|
+
export type billingAccountsControllerUpdateAccountV1Response200 = {
|
|
52
|
+
data: BillingAccountDto;
|
|
53
|
+
status: 200;
|
|
54
|
+
};
|
|
55
|
+
export type billingAccountsControllerUpdateAccountV1ResponseSuccess = (billingAccountsControllerUpdateAccountV1Response200) & {
|
|
56
|
+
headers: Headers;
|
|
57
|
+
};
|
|
58
|
+
export type billingAccountsControllerUpdateAccountV1Response = (billingAccountsControllerUpdateAccountV1ResponseSuccess);
|
|
59
|
+
export declare const getBillingAccountsControllerUpdateAccountV1Url: (id: string) => string;
|
|
60
|
+
export declare const billingAccountsControllerUpdateAccountV1: (id: string, updateBillingAccountDto: UpdateBillingAccountDto, options?: RequestInit) => Promise<billingAccountsControllerUpdateAccountV1Response>;
|
|
61
|
+
//# sourceMappingURL=billing-accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-accounts.d.ts","sour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9H,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,iDAAiD,GAAG,CAAC,wDAAwD,CAAC,CAAA;AAE1H,eAAO,MAAM,+CAA+C,GAAI,IAAI,MAAM,WAMzE,CAAA;AAED,eAAO,MAAM,yCAAyC,GAAU,IAAI,MAAM,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,iDAAiD,CAS1J,CAAA;AAGH;;GAEG;AACH,MAAM,MAAM,mDAAmD,GAAG;IAChE,IAAI,EAAE,iBAAiB,CAAA;IACvB,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,IAAI,MAAM,WAMxE,CAAA;AAED,eAAO,MAAM,wCAAwC,GAAU,IAAI,MAAM,EACrE,yBAAyB,uBAAuB,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,gDAAgD,CAUnI,CAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { customFetch } from '../../mutator.js';
|
|
2
|
+
;
|
|
3
|
+
export const getBillingAccountsControllerListAccountsV1Url = (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/accounts?${stringifiedParams}` : `/v1/billing/accounts`;
|
|
12
|
+
};
|
|
13
|
+
export const billingAccountsControllerListAccountsV1 = async (params, options) => {
|
|
14
|
+
return customFetch(getBillingAccountsControllerListAccountsV1Url(params), {
|
|
15
|
+
...options,
|
|
16
|
+
method: 'GET'
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
;
|
|
20
|
+
export const getBillingAccountsControllerCreateAccountV1Url = () => {
|
|
21
|
+
return `/v1/billing/accounts`;
|
|
22
|
+
};
|
|
23
|
+
export const billingAccountsControllerCreateAccountV1 = async (createBillingAccountDto, options) => {
|
|
24
|
+
return customFetch(getBillingAccountsControllerCreateAccountV1Url(), {
|
|
25
|
+
...options,
|
|
26
|
+
method: 'POST',
|
|
27
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
28
|
+
body: JSON.stringify(createBillingAccountDto)
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
;
|
|
32
|
+
export const getBillingAccountsControllerGetAccountByIdV1Url = (id) => {
|
|
33
|
+
return `/v1/billing/accounts/${id}`;
|
|
34
|
+
};
|
|
35
|
+
export const billingAccountsControllerGetAccountByIdV1 = async (id, options) => {
|
|
36
|
+
return customFetch(getBillingAccountsControllerGetAccountByIdV1Url(id), {
|
|
37
|
+
...options,
|
|
38
|
+
method: 'GET'
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
;
|
|
42
|
+
export const getBillingAccountsControllerUpdateAccountV1Url = (id) => {
|
|
43
|
+
return `/v1/billing/accounts/${id}`;
|
|
44
|
+
};
|
|
45
|
+
export const billingAccountsControllerUpdateAccountV1 = async (id, updateBillingAccountDto, options) => {
|
|
46
|
+
return customFetch(getBillingAccountsControllerUpdateAccountV1Url(id), {
|
|
47
|
+
...options,
|
|
48
|
+
method: 'PATCH',
|
|
49
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
50
|
+
body: JSON.stringify(updateBillingAccountDto)
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=billing-accounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing-accounts.js","sourceRoot":"","sources":["../../../src/generated/billing-accounts/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8
|
+
import type { FortnoxAuthorizeUrlDto } from '../index.schemas.js';
|
|
9
|
+
/**
|
|
10
|
+
* Returns a Fortnox authorize URL carrying a signed, tenant-bound `state`. The SPA redirects the browser to it; Fortnox then redirects back to the public callback. Gated to tenant-admin / operations-manager.
|
|
11
|
+
* @summary Begin Fortnox OAuth — get the authorize URL
|
|
12
|
+
*/
|
|
13
|
+
export type fortnoxOAuthControllerAuthorizeV1Response200 = {
|
|
14
|
+
data: FortnoxAuthorizeUrlDto;
|
|
15
|
+
status: 200;
|
|
16
|
+
};
|
|
17
|
+
export type fortnoxOAuthControllerAuthorizeV1ResponseSuccess = (fortnoxOAuthControllerAuthorizeV1Response200) & {
|
|
18
|
+
headers: Headers;
|
|
19
|
+
};
|
|
20
|
+
export type fortnoxOAuthControllerAuthorizeV1Response = (fortnoxOAuthControllerAuthorizeV1ResponseSuccess);
|
|
21
|
+
export declare const getFortnoxOAuthControllerAuthorizeV1Url: () => string;
|
|
22
|
+
export declare const fortnoxOAuthControllerAuthorizeV1: (options?: RequestInit) => Promise<fortnoxOAuthControllerAuthorizeV1Response>;
|
|
23
|
+
//# sourceMappingURL=fortnox-o-auth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fortnox-o-auth.d.ts","sourceRoot":"","sources":["../../../src/generated/fortnox-o-auth/fortnox-o-auth.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAI7B;;;GAGG;AACH,MAAM,MAAM,4CAA4C,GAAG;IACzD,IAAI,EAAE,sBAAsB,CAAA;IAC5B,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,gDAAgD,GAAG,CAAC,4CAA4C,CAAC,GAAG;IAC9G,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,yCAAyC,GAAG,CAAC,gDAAgD,CAAC,CAAA;AAE1G,eAAO,MAAM,uCAAuC,cAMnD,CAAA;AAED,eAAO,MAAM,iCAAiC,GAAW,UAAU,WAAW,KAAG,OAAO,CAAC,yCAAyC,CAS/H,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { customFetch } from '../../mutator.js';
|
|
2
|
+
;
|
|
3
|
+
export const getFortnoxOAuthControllerAuthorizeV1Url = () => {
|
|
4
|
+
return `/v1/integrations/fortnox/oauth/authorize`;
|
|
5
|
+
};
|
|
6
|
+
export const fortnoxOAuthControllerAuthorizeV1 = async (options) => {
|
|
7
|
+
return customFetch(getFortnoxOAuthControllerAuthorizeV1Url(), {
|
|
8
|
+
...options,
|
|
9
|
+
method: 'GET'
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=fortnox-o-auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fortnox-o-auth.js","sourceRoot":"","sources":["../../../src/generated/fortnox-o-auth/fortnox-o-auth.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAc/C,CAAC;AAID,MAAM,CAAC,MAAM,uCAAuC,GAAG,GAAG,EAAE;IAK1D,OAAO,0CAA0C,CAAA;AACnD,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,iCAAiC,GAAG,KAAK,EAAG,OAAqB,EAAsD,EAAE;IAEpI,OAAO,WAAW,CAA4C,uCAAuC,EAAE,EACvG;QACE,GAAG,OAAO;QACV,MAAM,EAAE,KAAK;KAGd,CACF,CAAC;AAAA,CAAC,CAAA"}
|