@greensecurity/javascript-sdk 0.45.0-beta.6 → 0.45.0-beta.8
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 +4 -1
- package/dist/commonjs/__tests__/invoices.test.js +18 -0
- package/dist/commonjs/__tests__/invoices.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +38 -7
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/companiesListCompanyManagers.js +1 -0
- package/dist/commonjs/funcs/companiesListCompanyManagers.js.map +1 -1
- package/dist/commonjs/funcs/invoicesConvertQuote.d.ts +33 -0
- package/dist/commonjs/funcs/invoicesConvertQuote.d.ts.map +1 -0
- package/dist/commonjs/funcs/invoicesConvertQuote.js +138 -0
- package/dist/commonjs/funcs/invoicesConvertQuote.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/companymanager.d.ts +19 -1
- package/dist/commonjs/models/components/companymanager.d.ts.map +1 -1
- package/dist/commonjs/models/components/companymanager.js +13 -2
- package/dist/commonjs/models/components/companymanager.js.map +1 -1
- package/dist/commonjs/models/operations/convertquote.d.ts +46 -0
- package/dist/commonjs/models/operations/convertquote.d.ts.map +1 -0
- package/dist/commonjs/models/operations/convertquote.js +69 -0
- package/dist/commonjs/models/operations/convertquote.js.map +1 -0
- package/dist/commonjs/models/operations/createinvoice.d.ts +85 -0
- package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createinvoice.js +56 -1
- package/dist/commonjs/models/operations/createinvoice.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listcompanymanagers.d.ts +20 -0
- package/dist/commonjs/models/operations/listcompanymanagers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcompanymanagers.js +12 -1
- package/dist/commonjs/models/operations/listcompanymanagers.js.map +1 -1
- package/dist/commonjs/react-query/companiesListCompanyManagers.core.d.ts +2 -0
- package/dist/commonjs/react-query/companiesListCompanyManagers.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/companiesListCompanyManagers.core.js +2 -0
- package/dist/commonjs/react-query/companiesListCompanyManagers.core.js.map +1 -1
- package/dist/commonjs/react-query/companiesListCompanyManagers.d.ts +2 -0
- package/dist/commonjs/react-query/companiesListCompanyManagers.d.ts.map +1 -1
- package/dist/commonjs/react-query/companiesListCompanyManagers.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/invoicesConvertQuote.d.ts +42 -0
- package/dist/commonjs/react-query/invoicesConvertQuote.d.ts.map +1 -0
- package/dist/commonjs/react-query/invoicesConvertQuote.js +60 -0
- package/dist/commonjs/react-query/invoicesConvertQuote.js.map +1 -0
- package/dist/commonjs/sdk/invoices.d.ts +20 -0
- package/dist/commonjs/sdk/invoices.d.ts.map +1 -1
- package/dist/commonjs/sdk/invoices.js +23 -0
- package/dist/commonjs/sdk/invoices.js.map +1 -1
- package/dist/esm/__tests__/invoices.test.js +18 -0
- package/dist/esm/__tests__/invoices.test.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +38 -7
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/companiesListCompanyManagers.js +1 -0
- package/dist/esm/funcs/companiesListCompanyManagers.js.map +1 -1
- package/dist/esm/funcs/invoicesConvertQuote.d.ts +33 -0
- package/dist/esm/funcs/invoicesConvertQuote.d.ts.map +1 -0
- package/dist/esm/funcs/invoicesConvertQuote.js +102 -0
- package/dist/esm/funcs/invoicesConvertQuote.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/companymanager.d.ts +19 -1
- package/dist/esm/models/components/companymanager.d.ts.map +1 -1
- package/dist/esm/models/components/companymanager.js +12 -1
- package/dist/esm/models/components/companymanager.js.map +1 -1
- package/dist/esm/models/operations/convertquote.d.ts +46 -0
- package/dist/esm/models/operations/convertquote.d.ts.map +1 -0
- package/dist/esm/models/operations/convertquote.js +31 -0
- package/dist/esm/models/operations/convertquote.js.map +1 -0
- package/dist/esm/models/operations/createinvoice.d.ts +85 -0
- package/dist/esm/models/operations/createinvoice.d.ts.map +1 -1
- package/dist/esm/models/operations/createinvoice.js +55 -0
- package/dist/esm/models/operations/createinvoice.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listcompanymanagers.d.ts +20 -0
- package/dist/esm/models/operations/listcompanymanagers.d.ts.map +1 -1
- package/dist/esm/models/operations/listcompanymanagers.js +11 -0
- package/dist/esm/models/operations/listcompanymanagers.js.map +1 -1
- package/dist/esm/react-query/companiesListCompanyManagers.core.d.ts +2 -0
- package/dist/esm/react-query/companiesListCompanyManagers.core.d.ts.map +1 -1
- package/dist/esm/react-query/companiesListCompanyManagers.core.js +2 -0
- package/dist/esm/react-query/companiesListCompanyManagers.core.js.map +1 -1
- package/dist/esm/react-query/companiesListCompanyManagers.d.ts +2 -0
- package/dist/esm/react-query/companiesListCompanyManagers.d.ts.map +1 -1
- package/dist/esm/react-query/companiesListCompanyManagers.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/invoicesConvertQuote.d.ts +42 -0
- package/dist/esm/react-query/invoicesConvertQuote.d.ts.map +1 -0
- package/dist/esm/react-query/invoicesConvertQuote.js +55 -0
- package/dist/esm/react-query/invoicesConvertQuote.js.map +1 -0
- package/dist/esm/sdk/invoices.d.ts +20 -0
- package/dist/esm/sdk/invoices.d.ts.map +1 -1
- package/dist/esm/sdk/invoices.js +23 -0
- package/dist/esm/sdk/invoices.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/invoices.test.ts +21 -0
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +38 -7
- package/src/funcs/companiesListCompanyManagers.ts +1 -0
- package/src/funcs/invoicesConvertQuote.ts +190 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/companymanager.ts +27 -2
- package/src/models/operations/convertquote.ts +94 -0
- package/src/models/operations/createinvoice.ts +124 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listcompanymanagers.ts +28 -0
- package/src/react-query/companiesListCompanyManagers.core.ts +4 -0
- package/src/react-query/companiesListCompanyManagers.ts +2 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/invoicesConvertQuote.ts +124 -0
- package/src/sdk/invoices.ts +31 -0
|
@@ -5,16 +5,36 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import * as types from "../../types/primitives.js";
|
|
10
11
|
import * as components from "../components/index.js";
|
|
11
12
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Filter managers by status. Omit to return managers of every status.
|
|
16
|
+
*/
|
|
17
|
+
export const ListCompanyManagersQueryParamStatus = {
|
|
18
|
+
Active: "Active",
|
|
19
|
+
Inactive: "Inactive",
|
|
20
|
+
Deleted: "Deleted",
|
|
21
|
+
} as const;
|
|
22
|
+
/**
|
|
23
|
+
* Filter managers by status. Omit to return managers of every status.
|
|
24
|
+
*/
|
|
25
|
+
export type ListCompanyManagersQueryParamStatus = ClosedEnum<
|
|
26
|
+
typeof ListCompanyManagersQueryParamStatus
|
|
27
|
+
>;
|
|
28
|
+
|
|
13
29
|
export type ListCompanyManagersRequest = {
|
|
14
30
|
/**
|
|
15
31
|
* The identifier of the object
|
|
16
32
|
*/
|
|
17
33
|
id: number;
|
|
34
|
+
/**
|
|
35
|
+
* Filter managers by status. Omit to return managers of every status.
|
|
36
|
+
*/
|
|
37
|
+
status?: ListCompanyManagersQueryParamStatus | undefined;
|
|
18
38
|
/**
|
|
19
39
|
* A comma-separated list of object attributes to sort on.
|
|
20
40
|
*/
|
|
@@ -48,9 +68,16 @@ export type ListCompanyManagersResponse = {
|
|
|
48
68
|
result: ListCompanyManagersListCompanyManagersOk;
|
|
49
69
|
};
|
|
50
70
|
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const ListCompanyManagersQueryParamStatus$outboundSchema:
|
|
73
|
+
z.ZodNativeEnum<typeof ListCompanyManagersQueryParamStatus> = z.nativeEnum(
|
|
74
|
+
ListCompanyManagersQueryParamStatus,
|
|
75
|
+
);
|
|
76
|
+
|
|
51
77
|
/** @internal */
|
|
52
78
|
export type ListCompanyManagersRequest$Outbound = {
|
|
53
79
|
id: number;
|
|
80
|
+
status?: string | undefined;
|
|
54
81
|
sort?: string | null | undefined;
|
|
55
82
|
desc?: components.Desc$Outbound | undefined;
|
|
56
83
|
page?: number | undefined;
|
|
@@ -64,6 +91,7 @@ export const ListCompanyManagersRequest$outboundSchema: z.ZodType<
|
|
|
64
91
|
ListCompanyManagersRequest
|
|
65
92
|
> = z.object({
|
|
66
93
|
id: z.number().int(),
|
|
94
|
+
status: ListCompanyManagersQueryParamStatus$outboundSchema.optional(),
|
|
67
95
|
sort: z.nullable(z.string()).optional(),
|
|
68
96
|
desc: components.Desc$outboundSchema.optional(),
|
|
69
97
|
page: z.number().int().optional(),
|
|
@@ -75,6 +75,7 @@ export function buildCompaniesListCompanyManagersQuery(
|
|
|
75
75
|
} {
|
|
76
76
|
return {
|
|
77
77
|
queryKey: queryKeyCompaniesListCompanyManagers(request.id, {
|
|
78
|
+
status: request.status,
|
|
78
79
|
sort: request.sort,
|
|
79
80
|
desc: request.desc,
|
|
80
81
|
page: request.page,
|
|
@@ -118,6 +119,7 @@ export function buildCompaniesListCompanyManagersInfiniteQuery(
|
|
|
118
119
|
} {
|
|
119
120
|
return {
|
|
120
121
|
queryKey: queryKeyCompaniesListCompanyManagersInfinite(request.id, {
|
|
122
|
+
status: request.status,
|
|
121
123
|
sort: request.sort,
|
|
122
124
|
desc: request.desc,
|
|
123
125
|
page: request.page,
|
|
@@ -160,6 +162,7 @@ export function buildCompaniesListCompanyManagersInfiniteQuery(
|
|
|
160
162
|
export function queryKeyCompaniesListCompanyManagers(
|
|
161
163
|
id: number,
|
|
162
164
|
parameters: {
|
|
165
|
+
status?: operations.ListCompanyManagersQueryParamStatus | undefined;
|
|
163
166
|
sort?: string | null | undefined;
|
|
164
167
|
desc?: components.Desc | undefined;
|
|
165
168
|
page?: number | undefined;
|
|
@@ -178,6 +181,7 @@ export function queryKeyCompaniesListCompanyManagers(
|
|
|
178
181
|
export function queryKeyCompaniesListCompanyManagersInfinite(
|
|
179
182
|
id: number,
|
|
180
183
|
parameters: {
|
|
184
|
+
status?: operations.ListCompanyManagersQueryParamStatus | undefined;
|
|
181
185
|
sort?: string | null | undefined;
|
|
182
186
|
desc?: components.Desc | undefined;
|
|
183
187
|
page?: number | undefined;
|
|
@@ -212,6 +212,7 @@ export function setCompaniesListCompanyManagersData(
|
|
|
212
212
|
queryKeyBase: [
|
|
213
213
|
id: number,
|
|
214
214
|
parameters: {
|
|
215
|
+
status?: operations.ListCompanyManagersQueryParamStatus | undefined;
|
|
215
216
|
sort?: string | null | undefined;
|
|
216
217
|
desc?: components.Desc | undefined;
|
|
217
218
|
page?: number | undefined;
|
|
@@ -231,6 +232,7 @@ export function invalidateCompaniesListCompanyManagers(
|
|
|
231
232
|
[
|
|
232
233
|
id: number,
|
|
233
234
|
parameters: {
|
|
235
|
+
status?: operations.ListCompanyManagersQueryParamStatus | undefined;
|
|
234
236
|
sort?: string | null | undefined;
|
|
235
237
|
desc?: components.Desc | undefined;
|
|
236
238
|
page?: number | undefined;
|
package/src/react-query/index.ts
CHANGED
|
@@ -33,6 +33,7 @@ export * from "./fhirConfigsDeleteFhirConfigById.js";
|
|
|
33
33
|
export * from "./fhirConfigsGetFhirConfig.js";
|
|
34
34
|
export * from "./fhirConfigsListOfFhirConfigurations.js";
|
|
35
35
|
export * from "./fhirConfigsUpdateFhirConfigById.js";
|
|
36
|
+
export * from "./invoicesConvertQuote.js";
|
|
36
37
|
export * from "./invoicesCreateInvoice.js";
|
|
37
38
|
export * from "./invoicesDownloadInvoicesExport.js";
|
|
38
39
|
export * from "./invoicesGetInvoice.js";
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
MutationKey,
|
|
7
|
+
useMutation,
|
|
8
|
+
UseMutationResult,
|
|
9
|
+
} from "@tanstack/react-query";
|
|
10
|
+
import { GreenSecurityCore } from "../core.js";
|
|
11
|
+
import { invoicesConvertQuote } from "../funcs/invoicesConvertQuote.js";
|
|
12
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
27
|
+
import { useGreenSecurityContext } from "./_context.js";
|
|
28
|
+
import { MutationHookOptions } from "./_types.js";
|
|
29
|
+
|
|
30
|
+
export type InvoicesConvertQuoteMutationVariables = {
|
|
31
|
+
request: operations.ConvertQuoteRequest;
|
|
32
|
+
options?: RequestOptions;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type InvoicesConvertQuoteMutationData =
|
|
36
|
+
operations.ConvertQuoteConvertQuoteOk;
|
|
37
|
+
|
|
38
|
+
export type InvoicesConvertQuoteMutationError =
|
|
39
|
+
| errors.ApiErrorResponse
|
|
40
|
+
| GreenSecurityError
|
|
41
|
+
| ResponseValidationError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
| RequestAbortedError
|
|
44
|
+
| RequestTimeoutError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| UnexpectedClientError
|
|
47
|
+
| SDKValidationError;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Convert a quote into an invoice
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* Converts a quote into the real invoice its caller will be charged for, and
|
|
54
|
+
* returns the new invoice with its calculated totals. Any `VendorCredential`
|
|
55
|
+
* linked to the quote is re-pointed at the new invoice.
|
|
56
|
+
*
|
|
57
|
+
* The operation is idempotent: converting a quote that has already been
|
|
58
|
+
* processed returns the invoice previously created from it rather than
|
|
59
|
+
* creating a second one, so a retried request is safe.
|
|
60
|
+
*
|
|
61
|
+
* The referenced invoice must actually be a quote — a non-quote invoice id
|
|
62
|
+
* responds `400`. Requires a caller whose access scope permits creating
|
|
63
|
+
* invoices; a caller allowed to create the invoice but not to update the
|
|
64
|
+
* linked `VendorCredential` responds `401`.
|
|
65
|
+
*
|
|
66
|
+
* Takes no request body.
|
|
67
|
+
*/
|
|
68
|
+
export function useInvoicesConvertQuoteMutation(
|
|
69
|
+
options?: MutationHookOptions<
|
|
70
|
+
InvoicesConvertQuoteMutationData,
|
|
71
|
+
InvoicesConvertQuoteMutationError,
|
|
72
|
+
InvoicesConvertQuoteMutationVariables
|
|
73
|
+
>,
|
|
74
|
+
): UseMutationResult<
|
|
75
|
+
InvoicesConvertQuoteMutationData,
|
|
76
|
+
InvoicesConvertQuoteMutationError,
|
|
77
|
+
InvoicesConvertQuoteMutationVariables
|
|
78
|
+
> {
|
|
79
|
+
const client = useGreenSecurityContext();
|
|
80
|
+
return useMutation({
|
|
81
|
+
...buildInvoicesConvertQuoteMutation(client, options),
|
|
82
|
+
...options,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function mutationKeyInvoicesConvertQuote(): MutationKey {
|
|
87
|
+
return ["@greensecurity/javascript-sdk", "invoices", "convertQuote"];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function buildInvoicesConvertQuoteMutation(
|
|
91
|
+
client$: GreenSecurityCore,
|
|
92
|
+
hookOptions?: RequestOptions,
|
|
93
|
+
): {
|
|
94
|
+
mutationKey: MutationKey;
|
|
95
|
+
mutationFn: (
|
|
96
|
+
variables: InvoicesConvertQuoteMutationVariables,
|
|
97
|
+
) => Promise<InvoicesConvertQuoteMutationData>;
|
|
98
|
+
} {
|
|
99
|
+
return {
|
|
100
|
+
mutationKey: mutationKeyInvoicesConvertQuote(),
|
|
101
|
+
mutationFn: function invoicesConvertQuoteMutationFn({
|
|
102
|
+
request,
|
|
103
|
+
options,
|
|
104
|
+
}): Promise<InvoicesConvertQuoteMutationData> {
|
|
105
|
+
const mergedOptions = {
|
|
106
|
+
...hookOptions,
|
|
107
|
+
...options,
|
|
108
|
+
fetchOptions: {
|
|
109
|
+
...hookOptions?.fetchOptions,
|
|
110
|
+
...options?.fetchOptions,
|
|
111
|
+
signal: combineSignals(
|
|
112
|
+
hookOptions?.fetchOptions?.signal,
|
|
113
|
+
options?.fetchOptions?.signal,
|
|
114
|
+
),
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
return unwrapAsync(invoicesConvertQuote(
|
|
118
|
+
client$,
|
|
119
|
+
request,
|
|
120
|
+
mergedOptions,
|
|
121
|
+
));
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
}
|
package/src/sdk/invoices.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { invoicesConvertQuote } from "../funcs/invoicesConvertQuote.js";
|
|
5
6
|
import { invoicesCreateInvoice } from "../funcs/invoicesCreateInvoice.js";
|
|
6
7
|
import {
|
|
7
8
|
DownloadInvoicesExportAcceptEnum,
|
|
@@ -152,6 +153,36 @@ export class Invoices extends ClientSDK {
|
|
|
152
153
|
));
|
|
153
154
|
}
|
|
154
155
|
|
|
156
|
+
/**
|
|
157
|
+
* Convert a quote into an invoice
|
|
158
|
+
*
|
|
159
|
+
* @remarks
|
|
160
|
+
* Converts a quote into the real invoice its caller will be charged for, and
|
|
161
|
+
* returns the new invoice with its calculated totals. Any `VendorCredential`
|
|
162
|
+
* linked to the quote is re-pointed at the new invoice.
|
|
163
|
+
*
|
|
164
|
+
* The operation is idempotent: converting a quote that has already been
|
|
165
|
+
* processed returns the invoice previously created from it rather than
|
|
166
|
+
* creating a second one, so a retried request is safe.
|
|
167
|
+
*
|
|
168
|
+
* The referenced invoice must actually be a quote — a non-quote invoice id
|
|
169
|
+
* responds `400`. Requires a caller whose access scope permits creating
|
|
170
|
+
* invoices; a caller allowed to create the invoice but not to update the
|
|
171
|
+
* linked `VendorCredential` responds `401`.
|
|
172
|
+
*
|
|
173
|
+
* Takes no request body.
|
|
174
|
+
*/
|
|
175
|
+
async convertQuote(
|
|
176
|
+
request: operations.ConvertQuoteRequest,
|
|
177
|
+
options?: RequestOptions,
|
|
178
|
+
): Promise<operations.ConvertQuoteConvertQuoteOk> {
|
|
179
|
+
return unwrapAsync(invoicesConvertQuote(
|
|
180
|
+
this,
|
|
181
|
+
request,
|
|
182
|
+
options,
|
|
183
|
+
));
|
|
184
|
+
}
|
|
185
|
+
|
|
155
186
|
/**
|
|
156
187
|
* Export invoices to csv (async)
|
|
157
188
|
*
|