@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
|
@@ -1,2 +1,53 @@
|
|
|
1
|
-
|
|
1
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
2
|
+
export const IntegrationAccountDtoProvider = {
|
|
3
|
+
stripe: 'stripe',
|
|
4
|
+
fortnox: 'fortnox',
|
|
5
|
+
};
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
7
|
+
export const CreateBillingAccountDtoCustomerType = {
|
|
8
|
+
individual: 'individual',
|
|
9
|
+
sole_proprietor: 'sole_proprietor',
|
|
10
|
+
company: 'company',
|
|
11
|
+
nonprofit: 'nonprofit',
|
|
12
|
+
government: 'government',
|
|
13
|
+
};
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
15
|
+
export const UpdateBillingAccountDtoCustomerType = {
|
|
16
|
+
individual: 'individual',
|
|
17
|
+
sole_proprietor: 'sole_proprietor',
|
|
18
|
+
company: 'company',
|
|
19
|
+
nonprofit: 'nonprofit',
|
|
20
|
+
government: 'government',
|
|
21
|
+
};
|
|
22
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
23
|
+
export const SwitchAccountProvidersDtoAccountingProvider = {
|
|
24
|
+
manual: 'manual',
|
|
25
|
+
fortnox: 'fortnox',
|
|
26
|
+
};
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
28
|
+
export const SwitchAccountProvidersDtoPaymentProvider = {
|
|
29
|
+
manual: 'manual',
|
|
30
|
+
stripe: 'stripe',
|
|
31
|
+
};
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
33
|
+
export const SwitchTenantConfigProvidersDtoDefaultAccountingProvider = {
|
|
34
|
+
manual: 'manual',
|
|
35
|
+
fortnox: 'fortnox',
|
|
36
|
+
};
|
|
37
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
38
|
+
export const SwitchTenantConfigProvidersDtoDefaultPaymentProvider = {
|
|
39
|
+
manual: 'manual',
|
|
40
|
+
stripe: 'stripe',
|
|
41
|
+
};
|
|
42
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
43
|
+
export const InvoicesControllerListInvoicesV1Status = {
|
|
44
|
+
CREATED: 'CREATED',
|
|
45
|
+
READY: 'READY',
|
|
46
|
+
SENT: 'SENT',
|
|
47
|
+
PARTIALLY_PAID: 'PARTIALLY_PAID',
|
|
48
|
+
PAID: 'PAID',
|
|
49
|
+
OVERDUE: 'OVERDUE',
|
|
50
|
+
CANCELLED: 'CANCELLED',
|
|
51
|
+
WRITTEN_OFF: 'WRITTEN_OFF',
|
|
52
|
+
};
|
|
2
53
|
//# sourceMappingURL=index.schemas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.schemas.js","sourceRoot":"","sources":["../../src/generated/index.schemas.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.schemas.js","sourceRoot":"","sources":["../../src/generated/index.schemas.ts"],"names":[],"mappings":"AA2HA,2DAA2D;AAC3D,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACV,CAAC;AAkEX,2DAA2D;AAC3D,M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|
|
6
|
+
* OpenAPI spec version: 0.1.0
|
|
7
|
+
*/
|
|
8
|
+
import type { CreateFortnoxAccountDto, CreateStripeAccountDto, FortnoxAccountDto, IntegrationAccountDto, IntegrationsControllerGetByIdV1200, StripeAccountDto } from '../index.schemas.js';
|
|
9
|
+
/**
|
|
10
|
+
* @summary Create a Fortnox integration account
|
|
11
|
+
*/
|
|
12
|
+
export type integrationsControllerCreateFortnoxV1Response201 = {
|
|
13
|
+
data: FortnoxAccountDto;
|
|
14
|
+
status: 201;
|
|
15
|
+
};
|
|
16
|
+
export type integrationsControllerCreateFortnoxV1ResponseSuccess = (integrationsControllerCreateFortnoxV1Response201) & {
|
|
17
|
+
headers: Headers;
|
|
18
|
+
};
|
|
19
|
+
export type integrationsControllerCreateFortnoxV1Response = (integrationsControllerCreateFortnoxV1ResponseSuccess);
|
|
20
|
+
export declare const getIntegrationsControllerCreateFortnoxV1Url: () => string;
|
|
21
|
+
export declare const integrationsControllerCreateFortnoxV1: (createFortnoxAccountDto: CreateFortnoxAccountDto, options?: RequestInit) => Promise<integrationsControllerCreateFortnoxV1Response>;
|
|
22
|
+
/**
|
|
23
|
+
* @summary Create a Stripe integration account
|
|
24
|
+
*/
|
|
25
|
+
export type integrationsControllerCreateStripeV1Response201 = {
|
|
26
|
+
data: StripeAccountDto;
|
|
27
|
+
status: 201;
|
|
28
|
+
};
|
|
29
|
+
export type integrationsControllerCreateStripeV1ResponseSuccess = (integrationsControllerCreateStripeV1Response201) & {
|
|
30
|
+
headers: Headers;
|
|
31
|
+
};
|
|
32
|
+
export type integrationsControllerCreateStripeV1Response = (integrationsControllerCreateStripeV1ResponseSuccess);
|
|
33
|
+
export declare const getIntegrationsControllerCreateStripeV1Url: () => string;
|
|
34
|
+
export declare const integrationsControllerCreateStripeV1: (createStripeAccountDto: CreateStripeAccountDto, options?: RequestInit) => Promise<integrationsControllerCreateStripeV1Response>;
|
|
35
|
+
/**
|
|
36
|
+
* @summary List integration accounts (metadata only)
|
|
37
|
+
*/
|
|
38
|
+
export type integrationsControllerListV1Response200 = {
|
|
39
|
+
data: IntegrationAccountDto[];
|
|
40
|
+
status: 200;
|
|
41
|
+
};
|
|
42
|
+
export type integrationsControllerListV1ResponseSuccess = (integrationsControllerListV1Response200) & {
|
|
43
|
+
headers: Headers;
|
|
44
|
+
};
|
|
45
|
+
export type integrationsControllerListV1Response = (integrationsControllerListV1ResponseSuccess);
|
|
46
|
+
export declare const getIntegrationsControllerListV1Url: () => string;
|
|
47
|
+
export declare const integrationsControllerListV1: (options?: RequestInit) => Promise<integrationsControllerListV1Response>;
|
|
48
|
+
/**
|
|
49
|
+
* @summary Get one integration account by id (metadata only)
|
|
50
|
+
*/
|
|
51
|
+
export type integrationsControllerGetByIdV1Response200 = {
|
|
52
|
+
data: IntegrationsControllerGetByIdV1200;
|
|
53
|
+
status: 200;
|
|
54
|
+
};
|
|
55
|
+
export type integrationsControllerGetByIdV1ResponseSuccess = (integrationsControllerGetByIdV1Response200) & {
|
|
56
|
+
headers: Headers;
|
|
57
|
+
};
|
|
58
|
+
export type integrationsControllerGetByIdV1Response = (integrationsControllerGetByIdV1ResponseSuccess);
|
|
59
|
+
export declare const getIntegrationsControllerGetByIdV1Url: (id: string) => string;
|
|
60
|
+
export declare const integrationsControllerGetByIdV1: (id: string, options?: RequestInit) => Promise<integrationsControllerGetByIdV1Response>;
|
|
61
|
+
//# sourceMappingURL=integrations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../../src/generated/integrations/integrations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,uBAAuB,EACvB,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,kCAAkC,EAClC,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAI7B;;GAEG;AACH,MAAM,MAAM,gDAAgD,GAAG;IAC7D,IAAI,EAAE,iBAAiB,CAAA;IACvB,MAAM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kCAAkC,CAAA;IACxC,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,8CAA8C,GAAG,CAAC,0CAA0C,CAAC,GAAG;IAC1G,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,uCAAuC,GAAG,CAAC,8CAA8C,CAAC,CAAA;AAEtG,eAAO,MAAM,qCAAqC,GAAI,IAAI,MAAM,WAM/D,CAAA;AAED,eAAO,MAAM,+BAA+B,GAAU,IAAI,MAAM,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,uCAAuC,CAStI,CAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { customFetch } from '../../mutator.js';
|
|
2
|
+
;
|
|
3
|
+
export const getIntegrationsControllerCreateFortnoxV1Url = () => {
|
|
4
|
+
return `/v1/integrations/fortnox`;
|
|
5
|
+
};
|
|
6
|
+
export const integrationsControllerCreateFortnoxV1 = async (createFortnoxAccountDto, options) => {
|
|
7
|
+
return customFetch(getIntegrationsControllerCreateFortnoxV1Url(), {
|
|
8
|
+
...options,
|
|
9
|
+
method: 'POST',
|
|
10
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
11
|
+
body: JSON.stringify(createFortnoxAccountDto)
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
;
|
|
15
|
+
export const getIntegrationsControllerCreateStripeV1Url = () => {
|
|
16
|
+
return `/v1/integrations/stripe`;
|
|
17
|
+
};
|
|
18
|
+
export const integrationsControllerCreateStripeV1 = async (createStripeAccountDto, options) => {
|
|
19
|
+
return customFetch(getIntegrationsControllerCreateStripeV1Url(), {
|
|
20
|
+
...options,
|
|
21
|
+
method: 'POST',
|
|
22
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
23
|
+
body: JSON.stringify(createStripeAccountDto)
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
;
|
|
27
|
+
export const getIntegrationsControllerListV1Url = () => {
|
|
28
|
+
return `/v1/integrations`;
|
|
29
|
+
};
|
|
30
|
+
export const integrationsControllerListV1 = async (options) => {
|
|
31
|
+
return customFetch(getIntegrationsControllerListV1Url(), {
|
|
32
|
+
...options,
|
|
33
|
+
method: 'GET'
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
;
|
|
37
|
+
export const getIntegrationsControllerGetByIdV1Url = (id) => {
|
|
38
|
+
return `/v1/integrations/${id}`;
|
|
39
|
+
};
|
|
40
|
+
export const integrationsControllerGetByIdV1 = async (id, options) => {
|
|
41
|
+
return customFetch(getIntegrationsControllerGetByIdV1Url(id), {
|
|
42
|
+
...options,
|
|
43
|
+
method: 'GET'
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=integrations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../../src/generated/integrations/integrations.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAa/C,CAAC;AAID,MAAM,CAAC,MAAM,2CAA2C,GAAG,GAAG,EAAE;IAK9D,OAAO,0BAA0B,CAAA;AACnC,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,qCAAqC,GAAG,KAAK,EAAE,uBAAgD,EAAE,OAAqB,EAA0D,EAAE;IAE7L,OAAO,WAAW,CAAgD,2CAA2C,EAAE,EAC/G;QACE,GAAG,OAAO;QACV,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;QACpE,IAAI,EAAE,IAAI,CAAC,SAAS,CAClB,uBAAuB,CAAE;KAC5B,CACF,CAAC;AAAA,CAAC,CAAA;AAcH,CAAC;AAID,MAAM,CAAC,MAAM,0CAA0C,GAAG,GAAG,EAAE;IAK7D,OAAO,yBAAyB,CAAA;AAClC,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,oCAAoC,GAAG,KAAK,EAAE,sBAA8C,EAAE,OAAqB,EAAyD,EAAE;IAEzL,OAAO,WAAW,CAA+C,0CAA0C,EAAE,EAC7G;QACE,GAAG,OAAO;QACV,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;QACpE,IAAI,EAAE,IAAI,CAAC,SAAS,CAClB,sBAAsB,CAAE;KAC3B,CACF,CAAC;AAAA,CAAC,CAAA;AAcH,CAAC;AAID,MAAM,CAAC,MAAM,kCAAkC,GAAG,GAAG,EAAE;IAKrD,OAAO,kBAAkB,CAAA;AAC3B,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAG,KAAK,EAAG,OAAqB,EAAiD,EAAE;IAE1H,OAAO,WAAW,CAAuC,kCAAkC,EAAE,EAC7F;QACE,GAAG,OAAO;QACV,MAAM,EAAE,KAAK;KAGd,CACF,CAAC;AAAA,CAAC,CAAA;AAcH,CAAC;AAID,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,EAAU,EAAG,EAAE;IAKnE,OAAO,oBAAoB,EAAE,EAAE,CAAA;AACjC,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,+BAA+B,GAAG,KAAK,EAAE,EAAU,EAAE,OAAqB,EAAoD,EAAE;IAE3I,OAAO,WAAW,CAA0C,qCAAqC,CAAC,EAAE,CAAC,EACrG;QACE,GAAG,OAAO;QACV,MAAM,EAAE,KAAK;KAGd,CACF,CAAC;AAAA,CAAC,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 { InvoiceDetailDto, InvoiceDto, InvoicesControllerListInvoicesV1Params } from '../index.schemas.js';
|
|
9
|
+
/**
|
|
10
|
+
* @summary List invoices (optional status filter)
|
|
11
|
+
*/
|
|
12
|
+
export type invoicesControllerListInvoicesV1Response200 = {
|
|
13
|
+
data: InvoiceDto[];
|
|
14
|
+
status: 200;
|
|
15
|
+
};
|
|
16
|
+
export type invoicesControllerListInvoicesV1ResponseSuccess = (invoicesControllerListInvoicesV1Response200) & {
|
|
17
|
+
headers: Headers;
|
|
18
|
+
};
|
|
19
|
+
export type invoicesControllerListInvoicesV1Response = (invoicesControllerListInvoicesV1ResponseSuccess);
|
|
20
|
+
export declare const getInvoicesControllerListInvoicesV1Url: (params?: InvoicesControllerListInvoicesV1Params) => string;
|
|
21
|
+
export declare const invoicesControllerListInvoicesV1: (params?: InvoicesControllerListInvoicesV1Params, options?: RequestInit) => Promise<invoicesControllerListInvoicesV1Response>;
|
|
22
|
+
/**
|
|
23
|
+
* @summary Get one invoice (with rows) by id
|
|
24
|
+
*/
|
|
25
|
+
export type invoicesControllerGetInvoiceByIdV1Response200 = {
|
|
26
|
+
data: InvoiceDetailDto;
|
|
27
|
+
status: 200;
|
|
28
|
+
};
|
|
29
|
+
export type invoicesControllerGetInvoiceByIdV1ResponseSuccess = (invoicesControllerGetInvoiceByIdV1Response200) & {
|
|
30
|
+
headers: Headers;
|
|
31
|
+
};
|
|
32
|
+
export type invoicesControllerGetInvoiceByIdV1Response = (invoicesControllerGetInvoiceByIdV1ResponseSuccess);
|
|
33
|
+
export declare const getInvoicesControllerGetInvoiceByIdV1Url: (id: string) => string;
|
|
34
|
+
export declare const invoicesControllerGetInvoiceByIdV1: (id: string, options?: RequestInit) => Promise<invoicesControllerGetInvoiceByIdV1Response>;
|
|
35
|
+
//# sourceMappingURL=invoices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoices.d.ts","sourceRoot":"","sources":["../../../src/generated/invoices/invoices.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EACV,sCAAsC,EACvC,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,6CAA6C,GAAG;IAC1D,IAAI,EAAE,gBAAgB,CAAA;IACtB,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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { customFetch } from '../../mutator.js';
|
|
2
|
+
;
|
|
3
|
+
export const getInvoicesControllerListInvoicesV1Url = (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/invoices?${stringifiedParams}` : `/v1/billing/invoices`;
|
|
12
|
+
};
|
|
13
|
+
export const invoicesControllerListInvoicesV1 = async (params, options) => {
|
|
14
|
+
return customFetch(getInvoicesControllerListInvoicesV1Url(params), {
|
|
15
|
+
...options,
|
|
16
|
+
method: 'GET'
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
;
|
|
20
|
+
export const getInvoicesControllerGetInvoiceByIdV1Url = (id) => {
|
|
21
|
+
return `/v1/billing/invoices/${id}`;
|
|
22
|
+
};
|
|
23
|
+
export const invoicesControllerGetInvoiceByIdV1 = async (id, options) => {
|
|
24
|
+
return customFetch(getInvoicesControllerGetInvoiceByIdV1Url(id), {
|
|
25
|
+
...options,
|
|
26
|
+
method: 'GET'
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=invoices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../../src/generated/invoices/invoices.ts"],"names":[],"mappings":"AAaA,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,wCAAwC,GAAG,CAAC,EAAU,EAAG,EAAE;IAKtE,OAAO,wBAAwB,EAAE,EAAE,CAAA;AACrC,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,kCAAkC,GAAG,KAAK,EAAE,EAAU,EAAE,OAAqB,EAAuD,EAAE;IAEjJ,OAAO,WAAW,CAA6C,wCAAwC,CAAC,EAAE,CAAC,EAC3G;QACE,GAAG,OAAO;QACV,MAAM,EAAE,KAAK;KAGd,CACF,CAAC;AAAA,CAAC,CAAA"}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 { CreatePriceListDto, CreatePriceListItemDto, PriceListDto, PriceListItemDto, PriceListsControllerGetPriceListItemsV1Params, PriceListsControllerListPriceListsV1Params, UpdatePriceListDto } from '../index.schemas.js';
|
|
9
|
+
/**
|
|
10
|
+
* @summary List price lists (tenant-level configuration)
|
|
11
|
+
*/
|
|
12
|
+
export type priceListsControllerListPriceListsV1Response200 = {
|
|
13
|
+
data: PriceListDto[];
|
|
14
|
+
status: 200;
|
|
15
|
+
};
|
|
16
|
+
export type priceListsControllerListPriceListsV1ResponseSuccess = (priceListsControllerListPriceListsV1Response200) & {
|
|
17
|
+
headers: Headers;
|
|
18
|
+
};
|
|
19
|
+
export type priceListsControllerListPriceListsV1Response = (priceListsControllerListPriceListsV1ResponseSuccess);
|
|
20
|
+
export declare const getPriceListsControllerListPriceListsV1Url: (params?: PriceListsControllerListPriceListsV1Params) => string;
|
|
21
|
+
export declare const priceListsControllerListPriceListsV1: (params?: PriceListsControllerListPriceListsV1Params, options?: RequestInit) => Promise<priceListsControllerListPriceListsV1Response>;
|
|
22
|
+
/**
|
|
23
|
+
* @summary Create a price list (created as draft)
|
|
24
|
+
*/
|
|
25
|
+
export type priceListsControllerCreatePriceListV1Response201 = {
|
|
26
|
+
data: PriceListDto;
|
|
27
|
+
status: 201;
|
|
28
|
+
};
|
|
29
|
+
export type priceListsControllerCreatePriceListV1ResponseSuccess = (priceListsControllerCreatePriceListV1Response201) & {
|
|
30
|
+
headers: Headers;
|
|
31
|
+
};
|
|
32
|
+
export type priceListsControllerCreatePriceListV1Response = (priceListsControllerCreatePriceListV1ResponseSuccess);
|
|
33
|
+
export declare const getPriceListsControllerCreatePriceListV1Url: () => string;
|
|
34
|
+
export declare const priceListsControllerCreatePriceListV1: (createPriceListDto: CreatePriceListDto, options?: RequestInit) => Promise<priceListsControllerCreatePriceListV1Response>;
|
|
35
|
+
/**
|
|
36
|
+
* @summary Get one price list by id
|
|
37
|
+
*/
|
|
38
|
+
export type priceListsControllerGetPriceListByIdV1Response200 = {
|
|
39
|
+
data: PriceListDto;
|
|
40
|
+
status: 200;
|
|
41
|
+
};
|
|
42
|
+
export type priceListsControllerGetPriceListByIdV1ResponseSuccess = (priceListsControllerGetPriceListByIdV1Response200) & {
|
|
43
|
+
headers: Headers;
|
|
44
|
+
};
|
|
45
|
+
export type priceListsControllerGetPriceListByIdV1Response = (priceListsControllerGetPriceListByIdV1ResponseSuccess);
|
|
46
|
+
export declare const getPriceListsControllerGetPriceListByIdV1Url: (id: string) => string;
|
|
47
|
+
export declare const priceListsControllerGetPriceListByIdV1: (id: string, options?: RequestInit) => Promise<priceListsControllerGetPriceListByIdV1Response>;
|
|
48
|
+
/**
|
|
49
|
+
* @summary Update a price list
|
|
50
|
+
*/
|
|
51
|
+
export type priceListsControllerUpdatePriceListV1Response200 = {
|
|
52
|
+
data: PriceListDto;
|
|
53
|
+
status: 200;
|
|
54
|
+
};
|
|
55
|
+
export type priceListsControllerUpdatePriceListV1ResponseSuccess = (priceListsControllerUpdatePriceListV1Response200) & {
|
|
56
|
+
headers: Headers;
|
|
57
|
+
};
|
|
58
|
+
export type priceListsControllerUpdatePriceListV1Response = (priceListsControllerUpdatePriceListV1ResponseSuccess);
|
|
59
|
+
export declare const getPriceListsControllerUpdatePriceListV1Url: (id: string) => string;
|
|
60
|
+
export declare const priceListsControllerUpdatePriceListV1: (id: string, updatePriceListDto: UpdatePriceListDto, options?: RequestInit) => Promise<priceListsControllerUpdatePriceListV1Response>;
|
|
61
|
+
/**
|
|
62
|
+
* @summary List the items of one price list
|
|
63
|
+
*/
|
|
64
|
+
export type priceListsControllerGetPriceListItemsV1Response200 = {
|
|
65
|
+
data: PriceListItemDto[];
|
|
66
|
+
status: 200;
|
|
67
|
+
};
|
|
68
|
+
export type priceListsControllerGetPriceListItemsV1ResponseSuccess = (priceListsControllerGetPriceListItemsV1Response200) & {
|
|
69
|
+
headers: Headers;
|
|
70
|
+
};
|
|
71
|
+
export type priceListsControllerGetPriceListItemsV1Response = (priceListsControllerGetPriceListItemsV1ResponseSuccess);
|
|
72
|
+
export declare const getPriceListsControllerGetPriceListItemsV1Url: (id: string, params?: PriceListsControllerGetPriceListItemsV1Params) => string;
|
|
73
|
+
export declare const priceListsControllerGetPriceListItemsV1: (id: string, params?: PriceListsControllerGetPriceListItemsV1Params, options?: RequestInit) => Promise<priceListsControllerGetPriceListItemsV1Response>;
|
|
74
|
+
/**
|
|
75
|
+
* @summary Add an item to a price list (created as draft)
|
|
76
|
+
*/
|
|
77
|
+
export type priceListsControllerCreatePriceListItemV1Response201 = {
|
|
78
|
+
data: PriceListItemDto;
|
|
79
|
+
status: 201;
|
|
80
|
+
};
|
|
81
|
+
export type priceListsControllerCreatePriceListItemV1ResponseSuccess = (priceListsControllerCreatePriceListItemV1Response201) & {
|
|
82
|
+
headers: Headers;
|
|
83
|
+
};
|
|
84
|
+
export type priceListsControllerCreatePriceListItemV1Response = (priceListsControllerCreatePriceListItemV1ResponseSuccess);
|
|
85
|
+
export declare const getPriceListsControllerCreatePriceListItemV1Url: (id: string) => string;
|
|
86
|
+
export declare const priceListsControllerCreatePriceListItemV1: (id: string, createPriceListItemDto: CreatePriceListItemDto, options?: RequestInit) => Promise<priceListsControllerCreatePriceListItemV1Response>;
|
|
87
|
+
//# sourceMappingURL=price-lists.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"price-lists.d.ts","sourceRoot":"","sources":["../../../src/generated/price-lists/price-lists.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,kBAAkB,EAClB,sBAAsB,EACtB,YAAY,EACZ,gBAAgB,EAChB,6CAA6C,EAC7C,0CAA0C,EAC1C,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAI7B;;GAEG;AACH,MAAM,MAAM,+CAA+C,GAAG;IAC5D,IAAI,EAAE,YAAY,EAAE,CAAA;IACpB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,mDAAmD,GAAG,CAAC,+CAA+C,CAAC,GAAG;IACpH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,4CAA4C,GAAG,CAAC,mDAAmD,CAAC,CAAA;AAEhH,eAAO,MAAM,0CAA0C,GAAI,SAAS,0CAA0C,WAa7G,CAAA;AAED,eAAO,MAAM,oCAAoC,GAAU,SAAS,0CAA0C,EAAE,UA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rE,CAAA;AAED,eAAO,MAAM,qCAAqC,GAAU,IAAI,MAAM,EAClE,oBAAoB,kBAAkB,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,6CAA6C,CAUtH,CAAA;AAGH;;GAEG;AACH,MAAM,MAAM,kDAAkD,GAAG;IAC/D,IAAI,EAAE,gBAAgB,EAAE,CAAA;IACxB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,sDAAsD,GAAG,CAAC,kDAAkD,CAAC,GAAG;IAC1H,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,+CAA+C,GAAG,CAAC,sDAAsD,CAAC,CAAA;AAEtH,eAAO,MAAM,6CAA6C,GAAI,IAAI,MAAM,EACpE,SAAS,6CAA6C,WAazD,CAAA;AAED,eAAO,MAAM,uCAAuC,GAAU,IAAI,MAAM,EACpE,SAAS,6CAA6C,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,+CAA+C,CASxI,CAAA;AAGH;;GAEG;AACH,MAAM,MAAM,oDAAoD,GAAG;IACjE,IAAI,EAAE,gBAAgB,CAAA;IACtB,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,GAAI,IAAI,MAAM,WAMzE,CAAA;AAED,eAAO,MAAM,yCAAyC,GAAU,IAAI,MAAM,EACtE,wBAAwB,sBAAsB,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,iDAAiD,CAUlI,CAAA"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { customFetch } from '../../mutator.js';
|
|
2
|
+
;
|
|
3
|
+
export const getPriceListsControllerListPriceListsV1Url = (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/price-lists?${stringifiedParams}` : `/v1/billing/price-lists`;
|
|
12
|
+
};
|
|
13
|
+
export const priceListsControllerListPriceListsV1 = async (params, options) => {
|
|
14
|
+
return customFetch(getPriceListsControllerListPriceListsV1Url(params), {
|
|
15
|
+
...options,
|
|
16
|
+
method: 'GET'
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
;
|
|
20
|
+
export const getPriceListsControllerCreatePriceListV1Url = () => {
|
|
21
|
+
return `/v1/billing/price-lists`;
|
|
22
|
+
};
|
|
23
|
+
export const priceListsControllerCreatePriceListV1 = async (createPriceListDto, options) => {
|
|
24
|
+
return customFetch(getPriceListsControllerCreatePriceListV1Url(), {
|
|
25
|
+
...options,
|
|
26
|
+
method: 'POST',
|
|
27
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
28
|
+
body: JSON.stringify(createPriceListDto)
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
;
|
|
32
|
+
export const getPriceListsControllerGetPriceListByIdV1Url = (id) => {
|
|
33
|
+
return `/v1/billing/price-lists/${id}`;
|
|
34
|
+
};
|
|
35
|
+
export const priceListsControllerGetPriceListByIdV1 = async (id, options) => {
|
|
36
|
+
return customFetch(getPriceListsControllerGetPriceListByIdV1Url(id), {
|
|
37
|
+
...options,
|
|
38
|
+
method: 'GET'
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
;
|
|
42
|
+
export const getPriceListsControllerUpdatePriceListV1Url = (id) => {
|
|
43
|
+
return `/v1/billing/price-lists/${id}`;
|
|
44
|
+
};
|
|
45
|
+
export const priceListsControllerUpdatePriceListV1 = async (id, updatePriceListDto, options) => {
|
|
46
|
+
return customFetch(getPriceListsControllerUpdatePriceListV1Url(id), {
|
|
47
|
+
...options,
|
|
48
|
+
method: 'PATCH',
|
|
49
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
50
|
+
body: JSON.stringify(updatePriceListDto)
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
;
|
|
54
|
+
export const getPriceListsControllerGetPriceListItemsV1Url = (id, params) => {
|
|
55
|
+
const normalizedParams = new URLSearchParams();
|
|
56
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
57
|
+
if (value !== undefined) {
|
|
58
|
+
normalizedParams.append(key, value === null ? 'null' : value.toString());
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
const stringifiedParams = normalizedParams.toString();
|
|
62
|
+
return stringifiedParams.length > 0 ? `/v1/billing/price-lists/${id}/items?${stringifiedParams}` : `/v1/billing/price-lists/${id}/items`;
|
|
63
|
+
};
|
|
64
|
+
export const priceListsControllerGetPriceListItemsV1 = async (id, params, options) => {
|
|
65
|
+
return customFetch(getPriceListsControllerGetPriceListItemsV1Url(id, params), {
|
|
66
|
+
...options,
|
|
67
|
+
method: 'GET'
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
;
|
|
71
|
+
export const getPriceListsControllerCreatePriceListItemV1Url = (id) => {
|
|
72
|
+
return `/v1/billing/price-lists/${id}/items`;
|
|
73
|
+
};
|
|
74
|
+
export const priceListsControllerCreatePriceListItemV1 = async (id, createPriceListItemDto, options) => {
|
|
75
|
+
return customFetch(getPriceListsControllerCreatePriceListItemV1Url(id), {
|
|
76
|
+
...options,
|
|
77
|
+
method: 'POST',
|
|
78
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
79
|
+
body: JSON.stringify(createPriceListItemDto)
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=price-lists.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"price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,CAAE;KAC3B,CACF,CAAC;AAAA,CAAC,CAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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, SwitchAccountProvidersDto, SwitchTenantConfigProvidersDto, TenantBillingConfigDto } from '../index.schemas.js';
|
|
9
|
+
/**
|
|
10
|
+
* @summary Switch a billing account's accounting/payment providers
|
|
11
|
+
*/
|
|
12
|
+
export type providerSwitchControllerSwitchAccountProvidersV1Response200 = {
|
|
13
|
+
data: BillingAccountDto;
|
|
14
|
+
status: 200;
|
|
15
|
+
};
|
|
16
|
+
export type providerSwitchControllerSwitchAccountProvidersV1Response409 = {
|
|
17
|
+
data: void;
|
|
18
|
+
status: 409;
|
|
19
|
+
};
|
|
20
|
+
export type providerSwitchControllerSwitchAccountProvidersV1ResponseSuccess = (providerSwitchControllerSwitchAccountProvidersV1Response200) & {
|
|
21
|
+
headers: Headers;
|
|
22
|
+
};
|
|
23
|
+
export type providerSwitchControllerSwitchAccountProvidersV1ResponseError = (providerSwitchControllerSwitchAccountProvidersV1Response409) & {
|
|
24
|
+
headers: Headers;
|
|
25
|
+
};
|
|
26
|
+
export type providerSwitchControllerSwitchAccountProvidersV1Response = (providerSwitchControllerSwitchAccountProvidersV1ResponseSuccess | providerSwitchControllerSwitchAccountProvidersV1ResponseError);
|
|
27
|
+
export declare const getProviderSwitchControllerSwitchAccountProvidersV1Url: (id: string) => string;
|
|
28
|
+
export declare const providerSwitchControllerSwitchAccountProvidersV1: (id: string, switchAccountProvidersDto: SwitchAccountProvidersDto, options?: RequestInit) => Promise<providerSwitchControllerSwitchAccountProvidersV1Response>;
|
|
29
|
+
/**
|
|
30
|
+
* @summary Switch the tenant default accounting/payment providers
|
|
31
|
+
*/
|
|
32
|
+
export type providerSwitchControllerSwitchTenantConfigProvidersV1Response200 = {
|
|
33
|
+
data: TenantBillingConfigDto;
|
|
34
|
+
status: 200;
|
|
35
|
+
};
|
|
36
|
+
export type providerSwitchControllerSwitchTenantConfigProvidersV1Response409 = {
|
|
37
|
+
data: void;
|
|
38
|
+
status: 409;
|
|
39
|
+
};
|
|
40
|
+
export type providerSwitchControllerSwitchTenantConfigProvidersV1ResponseSuccess = (providerSwitchControllerSwitchTenantConfigProvidersV1Response200) & {
|
|
41
|
+
headers: Headers;
|
|
42
|
+
};
|
|
43
|
+
export type providerSwitchControllerSwitchTenantConfigProvidersV1ResponseError = (providerSwitchControllerSwitchTenantConfigProvidersV1Response409) & {
|
|
44
|
+
headers: Headers;
|
|
45
|
+
};
|
|
46
|
+
export type providerSwitchControllerSwitchTenantConfigProvidersV1Response = (providerSwitchControllerSwitchTenantConfigProvidersV1ResponseSuccess | providerSwitchControllerSwitchTenantConfigProvidersV1ResponseError);
|
|
47
|
+
export declare const getProviderSwitchControllerSwitchTenantConfigProvidersV1Url: () => string;
|
|
48
|
+
export declare const providerSwitchControllerSwitchTenantConfigProvidersV1: (switchTenantConfigProvidersDto: SwitchTenantConfigProvidersDto, options?: RequestInit) => Promise<providerSwitchControllerSwitchTenantConfigProvidersV1Response>;
|
|
49
|
+
//# sourceMappingURL=provider-switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-switch.d.ts","sourceRoot":"","sources":["../../../src/generated/provider-switch/provider-switch.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,iBAAiB,EACjB,yBAAyB,EACzB,8BAA8B,EAC9B,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAI7B;;GAEG;AACH,MAAM,MAAM,2DAA2D,GAAG;IACxE,IAAI,EAAE,iBAAiB,CAAA;IACvB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM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
import { customFetch } from '../../mutator.js';
|
|
2
|
+
export const getProviderSwitchControllerSwitchAccountProvidersV1Url = (id) => {
|
|
3
|
+
return `/v1/billing/accounts/${id}/providers`;
|
|
4
|
+
};
|
|
5
|
+
export const providerSwitchControllerSwitchAccountProvidersV1 = async (id, switchAccountProvidersDto, options) => {
|
|
6
|
+
return customFetch(getProviderSwitchControllerSwitchAccountProvidersV1Url(id), {
|
|
7
|
+
...options,
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
10
|
+
body: JSON.stringify(switchAccountProvidersDto)
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
export const getProviderSwitchControllerSwitchTenantConfigProvidersV1Url = () => {
|
|
14
|
+
return `/v1/billing/tenant-config/providers`;
|
|
15
|
+
};
|
|
16
|
+
export const providerSwitchControllerSwitchTenantConfigProvidersV1 = async (switchTenantConfigProvidersDto, options) => {
|
|
17
|
+
return customFetch(getProviderSwitchControllerSwitchTenantConfigProvidersV1Url(), {
|
|
18
|
+
...options,
|
|
19
|
+
method: 'PATCH',
|
|
20
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
21
|
+
body: JSON.stringify(switchTenantConfigProvidersDto)
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=provider-switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-switch.js","sourceRoot":"","sources":["../../../src/generated/provider-switch/provider-switch.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAwB/C,MAAM,CAAC,MAAM,sDAAsD,GAAG,CAAC,EAAU,EAAG,EAAE;IAKpF,OAAO,wBAAwB,EAAE,YAAY,CAAA;AAC/C,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,gDAAgD,GAAG,KAAK,EAAE,EAAU,EAC7E,yBAAoD,EAAE,OAAqB,EAAqE,EAAE;IAEpJ,OAAO,WAAW,CAA2D,sDAAsD,CAAC,EAAE,CAAC,EACvI;QACE,GAAG,OAAO;QACV,MAAM,EAAE,OAAO;QACf,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;QACpE,IAAI,EAAE,IAAI,CAAC,SAAS,CAClB,yBAAyB,CAAE;KAC9B,CACF,CAAC;AAAA,CAAC,CAAA;AAyBH,MAAM,CAAC,MAAM,2DAA2D,GAAG,GAAG,EAAE;IAK9E,OAAO,qCAAqC,CAAA;AAC9C,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,qDAAqD,GAAG,KAAK,EAAE,8BAA8D,EAAE,OAAqB,EAA0E,EAAE;IAE3O,OAAO,WAAW,CAAgE,2DAA2D,EAAE,EAC/I;QACE,GAAG,OAAO;QACV,MAAM,EAAE,OAAO;QACf,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;QACpE,IAAI,EAAE,IAAI,CAAC,SAAS,CAClB,8BAA8B,CAAE;KACnC,CACF,CAAC;AAAA,CAAC,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { StripeWebhookAckDto } from '../index.schemas.js';
|
|
9
|
+
/**
|
|
10
|
+
* Verifies the Stripe signature against the raw request body and idempotently enqueues the event for asynchronous processing. Public (unauthenticated) — authenticity is established by the signature.
|
|
11
|
+
* @summary Receive a Stripe webhook event
|
|
12
|
+
*/
|
|
13
|
+
export type stripeWebhookControllerReceiveV1Response200 = {
|
|
14
|
+
data: StripeWebhookAckDto;
|
|
15
|
+
status: 200;
|
|
16
|
+
};
|
|
17
|
+
export type stripeWebhookControllerReceiveV1ResponseSuccess = (stripeWebhookControllerReceiveV1Response200) & {
|
|
18
|
+
headers: Headers;
|
|
19
|
+
};
|
|
20
|
+
export type stripeWebhookControllerReceiveV1Response = (stripeWebhookControllerReceiveV1ResponseSuccess);
|
|
21
|
+
export declare const getStripeWebhookControllerReceiveV1Url: (stripeAccountId: string) => string;
|
|
22
|
+
export declare const stripeWebhookControllerReceiveV1: (stripeAccountId: string, options?: RequestInit) => Promise<stripeWebhookControllerReceiveV1Response>;
|
|
23
|
+
//# sourceMappingURL=stripe-webhook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stripe-webhook.d.ts","sourceRoot":"","sources":["../../../src/generated/stripe-webhook/stripe-webhook.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAI7B;;;GAGG;AACH,MAAM,MAAM,2CAA2C,GAAG;IACxD,IAAI,EAAE,mBAAmB,CAAA;IACzB,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,iBAAiB,MAAM,WAM7E,CAAA;AAED,eAAO,MAAM,gCAAgC,GAAU,iBAAiB,MAAM,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,wCAAwC,CASrJ,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { customFetch } from '../../mutator.js';
|
|
2
|
+
;
|
|
3
|
+
export const getStripeWebhookControllerReceiveV1Url = (stripeAccountId) => {
|
|
4
|
+
return `/v1/integrations/stripe/webhook/${stripeAccountId}`;
|
|
5
|
+
};
|
|
6
|
+
export const stripeWebhookControllerReceiveV1 = async (stripeAccountId, options) => {
|
|
7
|
+
return customFetch(getStripeWebhookControllerReceiveV1Url(stripeAccountId), {
|
|
8
|
+
...options,
|
|
9
|
+
method: 'POST'
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=stripe-webhook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stripe-webhook.js","sourceRoot":"","sources":["../../../src/generated/stripe-webhook/stripe-webhook.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAc/C,CAAC;AAID,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,eAAuB,EAAG,EAAE;IAKjF,OAAO,mCAAmC,eAAe,EAAE,CAAA;AAC7D,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,gCAAgC,GAAG,KAAK,EAAE,eAAuB,EAAE,OAAqB,EAAqD,EAAE;IAE1J,OAAO,WAAW,CAA2C,sCAAsC,CAAC,eAAe,CAAC,EACpH;QACE,GAAG,OAAO;QACV,MAAM,EAAE,MAAM;KAGf,CACF,CAAC;AAAA,CAAC,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { CreateCustomerSubscriptionConfigDto, CustomerSubscriptionConfigDto, UpdateCustomerSubscriptionConfigDto } from '../index.schemas.js';
|
|
9
|
+
/**
|
|
10
|
+
* @summary Get the subscription config for a billing account
|
|
11
|
+
*/
|
|
12
|
+
export type subscriptionConfigsControllerGetByBillingAccountV1Response200 = {
|
|
13
|
+
data: CustomerSubscriptionConfigDto;
|
|
14
|
+
status: 200;
|
|
15
|
+
};
|
|
16
|
+
export type subscriptionConfigsControllerGetByBillingAccountV1ResponseSuccess = (subscriptionConfigsControllerGetByBillingAccountV1Response200) & {
|
|
17
|
+
headers: Headers;
|
|
18
|
+
};
|
|
19
|
+
export type subscriptionConfigsControllerGetByBillingAccountV1Response = (subscriptionConfigsControllerGetByBillingAccountV1ResponseSuccess);
|
|
20
|
+
export declare const getSubscriptionConfigsControllerGetByBillingAccountV1Url: (billingAccountId: string) => string;
|
|
21
|
+
export declare const subscriptionConfigsControllerGetByBillingAccountV1: (billingAccountId: string, options?: RequestInit) => Promise<subscriptionConfigsControllerGetByBillingAccountV1Response>;
|
|
22
|
+
/**
|
|
23
|
+
* @summary Update a customer subscription config
|
|
24
|
+
*/
|
|
25
|
+
export type subscriptionConfigsControllerUpdateV1Response200 = {
|
|
26
|
+
data: CustomerSubscriptionConfigDto;
|
|
27
|
+
status: 200;
|
|
28
|
+
};
|
|
29
|
+
export type subscriptionConfigsControllerUpdateV1ResponseSuccess = (subscriptionConfigsControllerUpdateV1Response200) & {
|
|
30
|
+
headers: Headers;
|
|
31
|
+
};
|
|
32
|
+
export type subscriptionConfigsControllerUpdateV1Response = (subscriptionConfigsControllerUpdateV1ResponseSuccess);
|
|
33
|
+
export declare const getSubscriptionConfigsControllerUpdateV1Url: (billingAccountId: string) => string;
|
|
34
|
+
export declare const subscriptionConfigsControllerUpdateV1: (billingAccountId: string, updateCustomerSubscriptionConfigDto: UpdateCustomerSubscriptionConfigDto, options?: RequestInit) => Promise<subscriptionConfigsControllerUpdateV1Response>;
|
|
35
|
+
/**
|
|
36
|
+
* @summary Create a customer subscription config
|
|
37
|
+
*/
|
|
38
|
+
export type subscriptionConfigsControllerCreateV1Response201 = {
|
|
39
|
+
data: CustomerSubscriptionConfigDto;
|
|
40
|
+
status: 201;
|
|
41
|
+
};
|
|
42
|
+
export type subscriptionConfigsControllerCreateV1ResponseSuccess = (subscriptionConfigsControllerCreateV1Response201) & {
|
|
43
|
+
headers: Headers;
|
|
44
|
+
};
|
|
45
|
+
export type subscriptionConfigsControllerCreateV1Response = (subscriptionConfigsControllerCreateV1ResponseSuccess);
|
|
46
|
+
export declare const getSubscriptionConfigsControllerCreateV1Url: () => string;
|
|
47
|
+
export declare const subscriptionConfigsControllerCreateV1: (createCustomerSubscriptionConfigDto: CreateCustomerSubscriptionConfigDto, options?: RequestInit) => Promise<subscriptionConfigsControllerCreateV1Response>;
|
|
48
|
+
//# sourceMappingURL=subscription-configs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-configs.d.ts","sourceRoot":"","sources":["../../../src/generated/subscription-configs/subscription-configs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,mCAAmC,EACnC,6BAA6B,EAC7B,mCAAmC,EACpC,MAAM,qBAAqB,CAAC;AAI7B;;GAEG;AACH,MAAM,MAAM,6DAA6D,GAAG;IAC1E,IAAI,EAAE,6BAA6B,CAAA;IACnC,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,iEAAiE,GAAG,CAAC,6DAA6D,CAAC,GAAG;IAChJ,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,0DAA0D,GAAG,CAAC,iEAAiE,CAAC,CAAA;AAE5I,eAAO,MAAM,wDAAwD,GAAI,kBAAkB,MAAM,WAMhG,CAAA;AAED,eAAO,MAAM,kDAAkD,GAAU,kBAAkB,MAAM,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,0DAA0D,CAS1L,CAAA;AAGH;;GAEG;AACH,MAAM,MAAM,gDAAgD,GAAG;IAC7D,IAAI,EAAE,6BAA6B,CAAA;IACnC,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,oDAAoD,GAAG,CAAC,gDAAgD,CAAC,GAAG;IACtH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,6CAA6C,GAAG,CAAC,oDAAoD,CAAC,CAAA;AAElH,eAAO,MAAM,2CAA2C,GA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