@greensecurity/javascript-sdk 0.48.0-beta.12 → 0.48.0-beta.14
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 +1 -1
- package/dist/commonjs/__tests__/fhirconfigs.test.js +18 -0
- package/dist/commonjs/__tests__/fhirconfigs.test.js.map +1 -1
- package/dist/commonjs/__tests__/users.test.js +3 -0
- package/dist/commonjs/__tests__/users.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +5 -6
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +3 -18
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/zoneDevicesUpdate.d.ts +2 -0
- package/dist/commonjs/admin-funcs/zoneDevicesUpdate.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/zoneDevicesUpdate.js.map +1 -1
- package/dist/commonjs/funcs/invoicesConvertQuote.d.ts +1 -4
- package/dist/commonjs/funcs/invoicesConvertQuote.d.ts.map +1 -1
- package/dist/commonjs/funcs/invoicesConvertQuote.js +2 -6
- package/dist/commonjs/funcs/invoicesConvertQuote.js.map +1 -1
- package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts +1 -1
- package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsCreateVendorCompany.js +1 -1
- package/dist/commonjs/funcs/vendorsCreateVendorCompany.js.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts +9 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js +9 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/components/fhirconfig.d.ts +12 -0
- package/dist/commonjs/models/components/fhirconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/fhirconfig.js +4 -0
- package/dist/commonjs/models/components/fhirconfig.js.map +1 -1
- package/dist/commonjs/models/components/invoice.d.ts +0 -5
- package/dist/commonjs/models/components/invoice.d.ts.map +1 -1
- package/dist/commonjs/models/components/invoice.js +0 -4
- package/dist/commonjs/models/components/invoice.js.map +1 -1
- package/dist/commonjs/models/components/userdetails.d.ts +22 -0
- package/dist/commonjs/models/components/userdetails.d.ts.map +1 -1
- package/dist/commonjs/models/components/userdetails.js +6 -0
- package/dist/commonjs/models/components/userdetails.js.map +1 -1
- package/dist/commonjs/models/components/userlocation.d.ts +10 -0
- package/dist/commonjs/models/components/userlocation.d.ts.map +1 -1
- package/dist/commonjs/models/components/userlocation.js +8 -0
- package/dist/commonjs/models/components/userlocation.js.map +1 -1
- package/dist/commonjs/models/operations/convertquote.d.ts +0 -21
- package/dist/commonjs/models/operations/convertquote.d.ts.map +1 -1
- package/dist/commonjs/models/operations/convertquote.js +1 -18
- package/dist/commonjs/models/operations/convertquote.js.map +1 -1
- package/dist/commonjs/models/operations/createinvoice.d.ts +0 -25
- package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createinvoice.js +0 -10
- package/dist/commonjs/models/operations/createinvoice.js.map +1 -1
- package/dist/commonjs/models/operations/updateuser.d.ts +0 -2
- package/dist/commonjs/models/operations/updateuser.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateuser.js +0 -1
- package/dist/commonjs/models/operations/updateuser.js.map +1 -1
- package/dist/commonjs/react-query/invoicesConvertQuote.d.ts +1 -4
- package/dist/commonjs/react-query/invoicesConvertQuote.d.ts.map +1 -1
- package/dist/commonjs/react-query/invoicesConvertQuote.js +1 -4
- package/dist/commonjs/react-query/invoicesConvertQuote.js.map +1 -1
- package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts +1 -1
- package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsCreateVendorCompany.js.map +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts +9 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js +9 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/commonjs/sdk/invoices.d.ts +1 -4
- package/dist/commonjs/sdk/invoices.d.ts.map +1 -1
- package/dist/commonjs/sdk/invoices.js +1 -4
- package/dist/commonjs/sdk/invoices.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +9 -1
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +9 -1
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/fhirconfigs.test.js +18 -0
- package/dist/esm/__tests__/fhirconfigs.test.js.map +1 -1
- package/dist/esm/__tests__/users.test.js +3 -0
- package/dist/esm/__tests__/users.test.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js +5 -6
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +3 -18
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/admin-funcs/zoneDevicesUpdate.d.ts +2 -0
- package/dist/esm/admin-funcs/zoneDevicesUpdate.d.ts.map +1 -1
- package/dist/esm/admin-funcs/zoneDevicesUpdate.js.map +1 -1
- package/dist/esm/funcs/invoicesConvertQuote.d.ts +1 -4
- package/dist/esm/funcs/invoicesConvertQuote.d.ts.map +1 -1
- package/dist/esm/funcs/invoicesConvertQuote.js +3 -7
- package/dist/esm/funcs/invoicesConvertQuote.js.map +1 -1
- package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts +1 -1
- package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsCreateVendorCompany.js +1 -1
- package/dist/esm/funcs/vendorsCreateVendorCompany.js.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts +9 -1
- package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorDetails.js +9 -1
- package/dist/esm/funcs/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/components/fhirconfig.d.ts +12 -0
- package/dist/esm/models/components/fhirconfig.d.ts.map +1 -1
- package/dist/esm/models/components/fhirconfig.js +4 -0
- package/dist/esm/models/components/fhirconfig.js.map +1 -1
- package/dist/esm/models/components/invoice.d.ts +0 -5
- package/dist/esm/models/components/invoice.d.ts.map +1 -1
- package/dist/esm/models/components/invoice.js +0 -4
- package/dist/esm/models/components/invoice.js.map +1 -1
- package/dist/esm/models/components/userdetails.d.ts +22 -0
- package/dist/esm/models/components/userdetails.d.ts.map +1 -1
- package/dist/esm/models/components/userdetails.js +6 -0
- package/dist/esm/models/components/userdetails.js.map +1 -1
- package/dist/esm/models/components/userlocation.d.ts +10 -0
- package/dist/esm/models/components/userlocation.d.ts.map +1 -1
- package/dist/esm/models/components/userlocation.js +8 -0
- package/dist/esm/models/components/userlocation.js.map +1 -1
- package/dist/esm/models/operations/convertquote.d.ts +0 -21
- package/dist/esm/models/operations/convertquote.d.ts.map +1 -1
- package/dist/esm/models/operations/convertquote.js +0 -16
- package/dist/esm/models/operations/convertquote.js.map +1 -1
- package/dist/esm/models/operations/createinvoice.d.ts +0 -25
- package/dist/esm/models/operations/createinvoice.d.ts.map +1 -1
- package/dist/esm/models/operations/createinvoice.js +0 -10
- package/dist/esm/models/operations/createinvoice.js.map +1 -1
- package/dist/esm/models/operations/updateuser.d.ts +0 -2
- package/dist/esm/models/operations/updateuser.d.ts.map +1 -1
- package/dist/esm/models/operations/updateuser.js +0 -1
- package/dist/esm/models/operations/updateuser.js.map +1 -1
- package/dist/esm/react-query/invoicesConvertQuote.d.ts +1 -4
- package/dist/esm/react-query/invoicesConvertQuote.d.ts.map +1 -1
- package/dist/esm/react-query/invoicesConvertQuote.js +1 -4
- package/dist/esm/react-query/invoicesConvertQuote.js.map +1 -1
- package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts +1 -1
- package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsCreateVendorCompany.js.map +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts +9 -1
- package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorDetails.js +9 -1
- package/dist/esm/react-query/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/esm/sdk/invoices.d.ts +1 -4
- package/dist/esm/sdk/invoices.d.ts.map +1 -1
- package/dist/esm/sdk/invoices.js +1 -4
- package/dist/esm/sdk/invoices.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +9 -1
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +9 -1
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/fhirconfigs.test.ts +18 -0
- package/src/__tests__/users.test.ts +3 -0
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/__tests__/webhooks.test.ts +5 -6
- package/src/__tests__/zones.test.ts +3 -18
- package/src/admin-funcs/zoneDevicesUpdate.ts +4 -0
- package/src/funcs/invoicesConvertQuote.ts +3 -7
- package/src/funcs/vendorsCreateVendorCompany.ts +4 -0
- package/src/funcs/vendorsUpdateVendorDetails.ts +9 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/fhirconfig.ts +12 -0
- package/src/models/components/invoice.ts +0 -9
- package/src/models/components/userdetails.ts +28 -0
- package/src/models/components/userlocation.ts +18 -0
- package/src/models/operations/convertquote.ts +0 -46
- package/src/models/operations/createinvoice.ts +0 -35
- package/src/models/operations/updateuser.ts +0 -3
- package/src/react-query/invoicesConvertQuote.ts +1 -4
- package/src/react-query/vendorsCreateVendorCompany.ts +1 -0
- package/src/react-query/vendorsUpdateVendorDetails.ts +9 -1
- package/src/sdk/invoices.ts +1 -4
- package/src/sdk/vendors.ts +9 -1
|
@@ -40,26 +40,11 @@ test("Zones List Or Search Security Zones", async () => {
|
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
facility: {
|
|
43
|
-
contacts:
|
|
44
|
-
contact: {
|
|
45
|
-
status: "Active",
|
|
46
|
-
department: 123,
|
|
47
|
-
},
|
|
48
|
-
adminContact: {
|
|
49
|
-
status: "Active",
|
|
50
|
-
department: 123,
|
|
51
|
-
},
|
|
52
|
-
techContact: null,
|
|
53
|
-
greenSecurityCsm: null,
|
|
54
|
-
accountManager: {
|
|
55
|
-
status: "Active",
|
|
56
|
-
department: 123,
|
|
57
|
-
},
|
|
58
|
-
},
|
|
43
|
+
contacts: null,
|
|
59
44
|
vendorGuestPolicy: {
|
|
60
45
|
enabled: true,
|
|
61
46
|
vendorGuestLimitAndOr: "and",
|
|
62
|
-
vendorGuestRequireEmail:
|
|
47
|
+
vendorGuestRequireEmail: true,
|
|
63
48
|
},
|
|
64
49
|
},
|
|
65
50
|
},
|
|
@@ -80,7 +65,7 @@ test("Zones Security Zone Checkin", async () => {
|
|
|
80
65
|
|
|
81
66
|
const result = await greenSecurity.zones.securityZoneCheckin({
|
|
82
67
|
qrCode: "<value>",
|
|
83
|
-
zoneId:
|
|
68
|
+
zoneId: 470329,
|
|
84
69
|
});
|
|
85
70
|
expect(result).toBeDefined();
|
|
86
71
|
expect(result).toEqual({});
|
|
@@ -9,6 +9,10 @@ export type zoneDevicesUpdateRequest = {
|
|
|
9
9
|
network_id?: number;
|
|
10
10
|
connection_type?: zoneDeviceConnectionType;
|
|
11
11
|
name?: string;
|
|
12
|
+
// Sent once the app has pushed the network's current settings to the gateway; only a network edit sets it.
|
|
13
|
+
needs_network_update?: false;
|
|
14
|
+
// The provisioning response's network_revision for the settings that were pushed; required with the clear.
|
|
15
|
+
network_revision?: string;
|
|
12
16
|
};
|
|
13
17
|
|
|
14
18
|
// Edits a gateway from the Gatekeeper device details screen. This only updates the record; the
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { GreenSecurityCore } from "../core.js";
|
|
6
|
-
import {
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import { matchStatusCode } from "../lib/http.js";
|
|
8
8
|
import * as M from "../lib/matchers.js";
|
|
9
9
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -43,10 +43,7 @@ import { Result } from "../types/fp.js";
|
|
|
43
43
|
* invoices; a caller allowed to create the invoice but not to update the
|
|
44
44
|
* linked `VendorCredential` responds `401`.
|
|
45
45
|
*
|
|
46
|
-
*
|
|
47
|
-
* `VendorCredential`: send `true` when the vendor is sending the
|
|
48
|
-
* converted invoice to their company managers to pay instead of paying
|
|
49
|
-
* it themselves. It follows the same rules as on `POST /invoices`.
|
|
46
|
+
* Takes no request body.
|
|
50
47
|
*
|
|
51
48
|
* **Permissions.** Requires a valid token. This endpoint is not gated on a named permission—the caller's role and their relationship to the record decide what it returns.
|
|
52
49
|
*
|
|
@@ -107,7 +104,7 @@ async function $do(
|
|
|
107
104
|
return [parsed, { status: "invalid" }];
|
|
108
105
|
}
|
|
109
106
|
const payload = parsed.value;
|
|
110
|
-
const body =
|
|
107
|
+
const body = null;
|
|
111
108
|
|
|
112
109
|
const pathParams = {
|
|
113
110
|
id: encodeSimple("id", payload.id, {
|
|
@@ -118,7 +115,6 @@ async function $do(
|
|
|
118
115
|
const path = pathToFunc("/invoices/{id}/convert")(pathParams);
|
|
119
116
|
|
|
120
117
|
const headers = new Headers(compactMap({
|
|
121
|
-
"Content-Type": "application/json",
|
|
122
118
|
Accept: "application/json",
|
|
123
119
|
}));
|
|
124
120
|
|
|
@@ -50,6 +50,7 @@ export function vendorsCreateVendorCompany(
|
|
|
50
50
|
Result<
|
|
51
51
|
operations.CreateVendorCompanyCreateVendorCompanyOk,
|
|
52
52
|
| errors.ApiErrorResponse
|
|
53
|
+
| errors.UnprocessableEntityOrValidationError
|
|
53
54
|
| GreenSecurityError
|
|
54
55
|
| ResponseValidationError
|
|
55
56
|
| ConnectionError
|
|
@@ -76,6 +77,7 @@ async function $do(
|
|
|
76
77
|
Result<
|
|
77
78
|
operations.CreateVendorCompanyCreateVendorCompanyOk,
|
|
78
79
|
| errors.ApiErrorResponse
|
|
80
|
+
| errors.UnprocessableEntityOrValidationError
|
|
79
81
|
| GreenSecurityError
|
|
80
82
|
| ResponseValidationError
|
|
81
83
|
| ConnectionError
|
|
@@ -165,6 +167,7 @@ async function $do(
|
|
|
165
167
|
const [result] = await M.match<
|
|
166
168
|
operations.CreateVendorCompanyCreateVendorCompanyOk,
|
|
167
169
|
| errors.ApiErrorResponse
|
|
170
|
+
| errors.UnprocessableEntityOrValidationError
|
|
168
171
|
| GreenSecurityError
|
|
169
172
|
| ResponseValidationError
|
|
170
173
|
| ConnectionError
|
|
@@ -179,6 +182,7 @@ async function $do(
|
|
|
179
182
|
operations.CreateVendorCompanyCreateVendorCompanyOk$inboundSchema,
|
|
180
183
|
),
|
|
181
184
|
M.jsonErr([400, 401, 403, 404], errors.ApiErrorResponse$inboundSchema),
|
|
185
|
+
M.jsonErr(422, errors.UnprocessableEntityOrValidationError$inboundSchema),
|
|
182
186
|
M.fail("4XX"),
|
|
183
187
|
M.fail([500, "5XX"]),
|
|
184
188
|
)(response, req, { extraFields: responseFields });
|
|
@@ -36,12 +36,20 @@ import * as types$ from "../types/primitives.js";
|
|
|
36
36
|
* can also remove the vendor from their company by sending `company_id: null`.
|
|
37
37
|
*
|
|
38
38
|
* From `location` this endpoint reads only `timezone`, `address1`, `address2`,
|
|
39
|
-
* `city`, `state`, `zip`, `phone`, `mobile_phone` and `
|
|
39
|
+
* `city`, `state`, `zip`, `phone`, `mobile_phone`, `fax`, `work_email` and `personal_email`. The `address` and
|
|
40
40
|
* `country` properties of the shared `UserLocation` schema have no effect here, and
|
|
41
41
|
* updating them is not supported. `state` accepts a US state or a Canadian
|
|
42
42
|
* province—the vendor's country, set only at registration, is not editable
|
|
43
43
|
* through this endpoint.
|
|
44
44
|
*
|
|
45
|
+
* `location.work_email` and `location.personal_email` are stored lowercased, and a
|
|
46
|
+
* value that is not a valid email address, or is longer than 255 characters, gets a
|
|
47
|
+
* `422` response. They are contact fields: the login stays `email`, which this
|
|
48
|
+
* endpoint does not change. When an update sets either of them, one must be the
|
|
49
|
+
* vendor's `email` and the other a different address or empty, or it gets a `422`.
|
|
50
|
+
* A vendor with neither one copying `email` yet can set just one and leave the
|
|
51
|
+
* other empty: the save puts `email` in the empty one (work, if both are).
|
|
52
|
+
*
|
|
45
53
|
* Submitting `location.zip` or `location.state` cross-checks the postal code
|
|
46
54
|
* against the resulting state (using the vendor's existing value for whichever
|
|
47
55
|
* of the two you omit from the request). The server rejects a code that is not shaped like a real
|
package/src/lib/config.ts
CHANGED
|
@@ -80,8 +80,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
80
80
|
export const SDK_METADATA = {
|
|
81
81
|
language: "typescript",
|
|
82
82
|
openapiDocVersion: "0.47.0",
|
|
83
|
-
sdkVersion: "0.48.0-beta.
|
|
84
|
-
genVersion: "2.
|
|
83
|
+
sdkVersion: "0.48.0-beta.14",
|
|
84
|
+
genVersion: "2.954.8",
|
|
85
85
|
userAgent:
|
|
86
|
-
"speakeasy-sdk/typescript 0.48.0-beta.
|
|
86
|
+
"speakeasy-sdk/typescript 0.48.0-beta.14 2.954.8 0.47.0 @greensecurity/javascript-sdk",
|
|
87
87
|
} as const;
|
|
@@ -47,6 +47,10 @@ export type ProductionProfile = {
|
|
|
47
47
|
* The private key used to sign token requests to the production FHIR instance.
|
|
48
48
|
*/
|
|
49
49
|
privateKey?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Extra HTTP headers to send with the token request and with every FHIR request to the production instance, as a map of header name to value. Merged over the headers the client sets itself, so an entry named `Authorization`, `Content-Type` or `Accept` replaces the default. Empty when the facility's gateway needs none, which is the usual case. A value may be a credential, so this field is only served to callers allowed to see this configuration's secrets.
|
|
52
|
+
*/
|
|
53
|
+
customHeaders?: { [k: string]: string } | undefined;
|
|
50
54
|
/**
|
|
51
55
|
* Relative path of the self-hosted JSON Web Key (JWK) Set URL (JKU) serving this configuration's production public signing keys.
|
|
52
56
|
*/
|
|
@@ -97,6 +101,10 @@ export type NonProductionProfile = {
|
|
|
97
101
|
* The private key used to sign token requests to the non-production FHIR instance.
|
|
98
102
|
*/
|
|
99
103
|
privateKeyNp?: string | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Extra HTTP headers to send with the token request and with every FHIR request to the non-production instance, as a map of header name to value. Merged over the headers the client sets itself, so an entry named `Authorization`, `Content-Type` or `Accept` replaces the default. Empty when the facility's gateway needs none, which is the usual case. A value may be a credential, so this field is only served to callers allowed to see this configuration's secrets.
|
|
106
|
+
*/
|
|
107
|
+
customHeadersNp?: { [k: string]: string } | undefined;
|
|
100
108
|
/**
|
|
101
109
|
* Relative path of the self-hosted JWK Set URL (JKU) serving this configuration's non-production public signing keys.
|
|
102
110
|
*/
|
|
@@ -221,6 +229,7 @@ export const ProductionProfile$inboundSchema: z.ZodType<
|
|
|
221
229
|
patient_list_url: types.optional(types.string()),
|
|
222
230
|
patient_list_id: types.optional(types.string()),
|
|
223
231
|
private_key: types.optional(types.string()),
|
|
232
|
+
custom_headers: types.optional(z.record(types.string())),
|
|
224
233
|
jku_path: types.optional(types.string()),
|
|
225
234
|
jku_url: z.nullable(types.string()).optional(),
|
|
226
235
|
signing_kid: z.nullable(types.string()).optional(),
|
|
@@ -234,6 +243,7 @@ export const ProductionProfile$inboundSchema: z.ZodType<
|
|
|
234
243
|
"patient_list_url": "patientListUrl",
|
|
235
244
|
"patient_list_id": "patientListId",
|
|
236
245
|
"private_key": "privateKey",
|
|
246
|
+
"custom_headers": "customHeaders",
|
|
237
247
|
"jku_path": "jkuPath",
|
|
238
248
|
"jku_url": "jkuUrl",
|
|
239
249
|
"signing_kid": "signingKid",
|
|
@@ -264,6 +274,7 @@ export const NonProductionProfile$inboundSchema: z.ZodType<
|
|
|
264
274
|
patient_list_url_np: types.optional(types.string()),
|
|
265
275
|
patient_list_id_np: types.optional(types.string()),
|
|
266
276
|
private_key_np: types.optional(types.string()),
|
|
277
|
+
custom_headers_np: types.optional(z.record(types.string())),
|
|
267
278
|
jku_path_np: types.optional(types.string()),
|
|
268
279
|
jku_url_np: z.nullable(types.string()).optional(),
|
|
269
280
|
signing_kid_np: z.nullable(types.string()).optional(),
|
|
@@ -277,6 +288,7 @@ export const NonProductionProfile$inboundSchema: z.ZodType<
|
|
|
277
288
|
"patient_list_url_np": "patientListUrlNp",
|
|
278
289
|
"patient_list_id_np": "patientListIdNp",
|
|
279
290
|
"private_key_np": "privateKeyNp",
|
|
291
|
+
"custom_headers_np": "customHeadersNp",
|
|
280
292
|
"jku_path_np": "jkuPathNp",
|
|
281
293
|
"jku_url_np": "jkuUrlNp",
|
|
282
294
|
"signing_kid_np": "signingKidNp",
|
|
@@ -141,10 +141,6 @@ export type Invoice = {
|
|
|
141
141
|
* When the invoice was created.
|
|
142
142
|
*/
|
|
143
143
|
dateCreated?: string | null | undefined;
|
|
144
|
-
/**
|
|
145
|
-
* When the vendor sent this invoice to their company managers to pay instead of paying it themselves (`send_to_company_manager` on `POST /invoices` or `POST /invoices/{id}/convert`). `null` if it was never sent, or if the vendor took it back or settled it themselves. It is kept on an invoice the managers paid, and on one that was later voided.
|
|
146
|
-
*/
|
|
147
|
-
dateSentToCompanyManager?: string | null | undefined;
|
|
148
144
|
/**
|
|
149
145
|
* The date the invoice payment is due. `null` if no due date is set.
|
|
150
146
|
*/
|
|
@@ -397,7 +393,6 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
|
|
|
397
393
|
date_processed: z.nullable(types.string()).optional(),
|
|
398
394
|
date_paid: z.nullable(types.string()).optional(),
|
|
399
395
|
date_created: z.nullable(types.string()).optional(),
|
|
400
|
-
date_sent_to_company_manager: z.nullable(types.string()).optional(),
|
|
401
396
|
date_due: z.nullable(types.string()).optional(),
|
|
402
397
|
amount: z.nullable(types.number()).optional(),
|
|
403
398
|
status: z.nullable(types.string()).optional(),
|
|
@@ -426,7 +421,6 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
|
|
|
426
421
|
"date_processed": "dateProcessed",
|
|
427
422
|
"date_paid": "datePaid",
|
|
428
423
|
"date_created": "dateCreated",
|
|
429
|
-
"date_sent_to_company_manager": "dateSentToCompanyManager",
|
|
430
424
|
"date_due": "dateDue",
|
|
431
425
|
"financial_status": "financialStatus",
|
|
432
426
|
"amount_not_paid": "amountNotPaid",
|
|
@@ -445,7 +439,6 @@ export type Invoice$Outbound = {
|
|
|
445
439
|
date_processed?: string | null | undefined;
|
|
446
440
|
date_paid?: string | null | undefined;
|
|
447
441
|
date_created?: string | null | undefined;
|
|
448
|
-
date_sent_to_company_manager?: string | null | undefined;
|
|
449
442
|
date_due?: string | null | undefined;
|
|
450
443
|
amount?: number | null | undefined;
|
|
451
444
|
status?: string | null | undefined;
|
|
@@ -478,7 +471,6 @@ export const Invoice$outboundSchema: z.ZodType<
|
|
|
478
471
|
dateProcessed: z.nullable(z.string()).optional(),
|
|
479
472
|
datePaid: z.nullable(z.string()).optional(),
|
|
480
473
|
dateCreated: z.nullable(z.string()).optional(),
|
|
481
|
-
dateSentToCompanyManager: z.nullable(z.string()).optional(),
|
|
482
474
|
dateDue: z.nullable(z.string()).optional(),
|
|
483
475
|
amount: z.nullable(z.number().int()).optional(),
|
|
484
476
|
status: z.nullable(z.string()).optional(),
|
|
@@ -506,7 +498,6 @@ export const Invoice$outboundSchema: z.ZodType<
|
|
|
506
498
|
dateProcessed: "date_processed",
|
|
507
499
|
datePaid: "date_paid",
|
|
508
500
|
dateCreated: "date_created",
|
|
509
|
-
dateSentToCompanyManager: "date_sent_to_company_manager",
|
|
510
501
|
dateDue: "date_due",
|
|
511
502
|
financialStatus: "financial_status",
|
|
512
503
|
amountNotPaid: "amount_not_paid",
|
|
@@ -85,6 +85,10 @@ export type UserDetails = {
|
|
|
85
85
|
* First name of the user.
|
|
86
86
|
*/
|
|
87
87
|
firstName?: string | null | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Middle name of the user, or `null` if not set. Returned only in the full user record (`expand=user`).
|
|
90
|
+
*/
|
|
91
|
+
middleName?: string | null | undefined;
|
|
88
92
|
/**
|
|
89
93
|
* Last name of the user.
|
|
90
94
|
*/
|
|
@@ -93,6 +97,24 @@ export type UserDetails = {
|
|
|
93
97
|
* Email address (not always valid)
|
|
94
98
|
*/
|
|
95
99
|
email: string;
|
|
100
|
+
/**
|
|
101
|
+
* A vendor's work email address, a contact field kept apart from `email`,
|
|
102
|
+
*
|
|
103
|
+
* @remarks
|
|
104
|
+
* which stays the login. When it is the same address as `email`, it follows
|
|
105
|
+
* any change to the login. `null` if not set. Returned only in the full user
|
|
106
|
+
* record (`expand=user`).
|
|
107
|
+
*/
|
|
108
|
+
workEmail?: string | null | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* A vendor's personal email address, a contact field kept apart from `email`,
|
|
111
|
+
*
|
|
112
|
+
* @remarks
|
|
113
|
+
* which stays the login. When it is the same address as `email`, it follows
|
|
114
|
+
* any change to the login. `null` if not set. Returned only in the full user
|
|
115
|
+
* record (`expand=user`).
|
|
116
|
+
*/
|
|
117
|
+
personalEmail?: string | null | undefined;
|
|
96
118
|
/**
|
|
97
119
|
* The user's landline phone number, or `null` if not set.
|
|
98
120
|
*/
|
|
@@ -253,8 +275,11 @@ export const UserDetails$inboundSchema: z.ZodType<
|
|
|
253
275
|
> = z.object({
|
|
254
276
|
id: types.number(),
|
|
255
277
|
first_name: z.nullable(types.string()).optional(),
|
|
278
|
+
middle_name: z.nullable(types.string()).optional(),
|
|
256
279
|
last_name: z.nullable(types.string()).optional(),
|
|
257
280
|
email: types.string(),
|
|
281
|
+
work_email: z.nullable(types.string()).optional(),
|
|
282
|
+
personal_email: z.nullable(types.string()).optional(),
|
|
258
283
|
phone: z.nullable(types.string()).optional(),
|
|
259
284
|
mobile_phone: z.nullable(types.string()).optional(),
|
|
260
285
|
fax: z.nullable(types.string()).optional(),
|
|
@@ -274,7 +299,10 @@ export const UserDetails$inboundSchema: z.ZodType<
|
|
|
274
299
|
}).transform((v) => {
|
|
275
300
|
return remap$(v, {
|
|
276
301
|
"first_name": "firstName",
|
|
302
|
+
"middle_name": "middleName",
|
|
277
303
|
"last_name": "lastName",
|
|
304
|
+
"work_email": "workEmail",
|
|
305
|
+
"personal_email": "personalEmail",
|
|
278
306
|
"mobile_phone": "mobilePhone",
|
|
279
307
|
"phone_confirmed": "phoneConfirmed",
|
|
280
308
|
"email_confirmed": "emailConfirmed",
|
|
@@ -212,6 +212,14 @@ export type UserLocation = {
|
|
|
212
212
|
* The fax number of the location. `null` if not set.
|
|
213
213
|
*/
|
|
214
214
|
fax?: string | null | undefined;
|
|
215
|
+
/**
|
|
216
|
+
* The vendor's work email address. Only `PUT /vendors/{vendor_id_or_me}` reads it. `null` if not set.
|
|
217
|
+
*/
|
|
218
|
+
workEmail?: string | null | undefined;
|
|
219
|
+
/**
|
|
220
|
+
* The vendor's personal email address. Only `PUT /vendors/{vendor_id_or_me}` reads it. `null` if not set.
|
|
221
|
+
*/
|
|
222
|
+
personalEmail?: string | null | undefined;
|
|
215
223
|
/**
|
|
216
224
|
* The country of the location. `null` if not set.
|
|
217
225
|
*/
|
|
@@ -250,11 +258,15 @@ export const UserLocation$inboundSchema: z.ZodType<
|
|
|
250
258
|
phone: z.nullable(types.string()).optional(),
|
|
251
259
|
mobile_phone: z.nullable(types.string()).optional(),
|
|
252
260
|
fax: z.nullable(types.string()).optional(),
|
|
261
|
+
work_email: z.nullable(types.string()).optional(),
|
|
262
|
+
personal_email: z.nullable(types.string()).optional(),
|
|
253
263
|
country: z.nullable(types.string()).optional(),
|
|
254
264
|
timezone: z.nullable(Timezone$inboundSchema).optional(),
|
|
255
265
|
}).transform((v) => {
|
|
256
266
|
return remap$(v, {
|
|
257
267
|
"mobile_phone": "mobilePhone",
|
|
268
|
+
"work_email": "workEmail",
|
|
269
|
+
"personal_email": "personalEmail",
|
|
258
270
|
});
|
|
259
271
|
});
|
|
260
272
|
/** @internal */
|
|
@@ -268,6 +280,8 @@ export type UserLocation$Outbound = {
|
|
|
268
280
|
phone?: string | null | undefined;
|
|
269
281
|
mobile_phone?: string | null | undefined;
|
|
270
282
|
fax?: string | null | undefined;
|
|
283
|
+
work_email?: string | null | undefined;
|
|
284
|
+
personal_email?: string | null | undefined;
|
|
271
285
|
country?: string | null | undefined;
|
|
272
286
|
timezone?: string | null | undefined;
|
|
273
287
|
};
|
|
@@ -287,11 +301,15 @@ export const UserLocation$outboundSchema: z.ZodType<
|
|
|
287
301
|
phone: z.nullable(z.string()).optional(),
|
|
288
302
|
mobilePhone: z.nullable(z.string()).optional(),
|
|
289
303
|
fax: z.nullable(z.string()).optional(),
|
|
304
|
+
workEmail: z.nullable(z.string()).optional(),
|
|
305
|
+
personalEmail: z.nullable(z.string()).optional(),
|
|
290
306
|
country: z.nullable(z.string()).optional(),
|
|
291
307
|
timezone: z.nullable(Timezone$outboundSchema).optional(),
|
|
292
308
|
}).transform((v) => {
|
|
293
309
|
return remap$(v, {
|
|
294
310
|
mobilePhone: "mobile_phone",
|
|
311
|
+
workEmail: "work_email",
|
|
312
|
+
personalEmail: "personal_email",
|
|
295
313
|
});
|
|
296
314
|
});
|
|
297
315
|
|
|
@@ -9,25 +9,11 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as types from "../../types/primitives.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
* Whether the vendor is sending the converted invoice to their company managers.
|
|
14
|
-
*/
|
|
15
|
-
export type ConvertQuoteRequestBody = {
|
|
16
|
-
/**
|
|
17
|
-
* Set to `true` when the vendor is sending the converted invoice to their company managers to pay instead of paying it themselves, and `false` to take it back. Recorded on the invoice as `date_sent_to_company_manager`; the managers are asked to pay once the credential is submitted. Omit the field to leave the invoice as it is. Ignored when no `VendorCredential` is linked to the quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` and the quote is not converted.
|
|
18
|
-
*/
|
|
19
|
-
sendToCompanyManager?: boolean | undefined;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
12
|
export type ConvertQuoteRequest = {
|
|
23
13
|
/**
|
|
24
14
|
* The identifier of the object.
|
|
25
15
|
*/
|
|
26
16
|
id: number;
|
|
27
|
-
/**
|
|
28
|
-
* Whether the vendor is sending the converted invoice to their company managers.
|
|
29
|
-
*/
|
|
30
|
-
requestBody?: ConvertQuoteRequestBody | undefined;
|
|
31
17
|
};
|
|
32
18
|
|
|
33
19
|
/**
|
|
@@ -57,36 +43,9 @@ export type ConvertQuoteConvertQuoteOk = {
|
|
|
57
43
|
total?: number | null | undefined;
|
|
58
44
|
};
|
|
59
45
|
|
|
60
|
-
/** @internal */
|
|
61
|
-
export type ConvertQuoteRequestBody$Outbound = {
|
|
62
|
-
send_to_company_manager?: boolean | undefined;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
/** @internal */
|
|
66
|
-
export const ConvertQuoteRequestBody$outboundSchema: z.ZodType<
|
|
67
|
-
ConvertQuoteRequestBody$Outbound,
|
|
68
|
-
z.ZodTypeDef,
|
|
69
|
-
ConvertQuoteRequestBody
|
|
70
|
-
> = z.object({
|
|
71
|
-
sendToCompanyManager: z.boolean().optional(),
|
|
72
|
-
}).transform((v) => {
|
|
73
|
-
return remap$(v, {
|
|
74
|
-
sendToCompanyManager: "send_to_company_manager",
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
export function convertQuoteRequestBodyToJSON(
|
|
79
|
-
convertQuoteRequestBody: ConvertQuoteRequestBody,
|
|
80
|
-
): string {
|
|
81
|
-
return JSON.stringify(
|
|
82
|
-
ConvertQuoteRequestBody$outboundSchema.parse(convertQuoteRequestBody),
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
46
|
/** @internal */
|
|
87
47
|
export type ConvertQuoteRequest$Outbound = {
|
|
88
48
|
id: number;
|
|
89
|
-
RequestBody?: ConvertQuoteRequestBody$Outbound | undefined;
|
|
90
49
|
};
|
|
91
50
|
|
|
92
51
|
/** @internal */
|
|
@@ -96,11 +55,6 @@ export const ConvertQuoteRequest$outboundSchema: z.ZodType<
|
|
|
96
55
|
ConvertQuoteRequest
|
|
97
56
|
> = z.object({
|
|
98
57
|
id: z.number().int(),
|
|
99
|
-
requestBody: z.lazy(() => ConvertQuoteRequestBody$outboundSchema).optional(),
|
|
100
|
-
}).transform((v) => {
|
|
101
|
-
return remap$(v, {
|
|
102
|
-
requestBody: "RequestBody",
|
|
103
|
-
});
|
|
104
58
|
});
|
|
105
59
|
|
|
106
60
|
export function convertQuoteRequestToJSON(
|
|
@@ -62,10 +62,6 @@ export type Five = {
|
|
|
62
62
|
* Set to `true` when the payer intends to settle this order from their credit balance before their payment method is charged. This affects only how the convenience fee is calculated: the fee pays for card processing, so it is assessed on the amount the card is left to cover once credits have been applied, and an order a balance covers in full carries none. No credits are debited here, and the balance is read from the payer's own ledger rather than taken from this request. Settle the credits with `POST /invoices/{id}/payment` and `use_credits: true`.
|
|
63
63
|
*/
|
|
64
64
|
useCredits?: boolean | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* For a `vendor_credential_id` invoice, set to `true` when the vendor is sending the invoice to their company managers to pay instead of paying it themselves. The server records it on the invoice as `date_sent_to_company_manager`, and asks the managers to pay once the credential is submitted. Send it without `credential_pricing_ids` to send an invoice the credential already has. Set to `false` to take the invoice back. Omit the field to leave the invoice as it is. Ignored for a quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` before anything is created.
|
|
67
|
-
*/
|
|
68
|
-
sendToCompanyManager?: boolean | undefined;
|
|
69
65
|
};
|
|
70
66
|
|
|
71
67
|
export const CreateInvoiceRequestBodyInvoicesPaymentHandler = {
|
|
@@ -117,10 +113,6 @@ export type Four = {
|
|
|
117
113
|
* Set to `true` when the payer intends to settle this order from their credit balance before their payment method is charged. This affects only how the convenience fee is calculated: the fee pays for card processing, so it is assessed on the amount the card is left to cover once credits have been applied, and an order a balance covers in full carries none. No credits are debited here, and the balance is read from the payer's own ledger rather than taken from this request. Settle the credits with `POST /invoices/{id}/payment` and `use_credits: true`.
|
|
118
114
|
*/
|
|
119
115
|
useCredits?: boolean | undefined;
|
|
120
|
-
/**
|
|
121
|
-
* For a `vendor_credential_id` invoice, set to `true` when the vendor is sending the invoice to their company managers to pay instead of paying it themselves. The server records it on the invoice as `date_sent_to_company_manager`, and asks the managers to pay once the credential is submitted. Send it without `credential_pricing_ids` to send an invoice the credential already has. Set to `false` to take the invoice back. Omit the field to leave the invoice as it is. Ignored for a quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` before anything is created.
|
|
122
|
-
*/
|
|
123
|
-
sendToCompanyManager?: boolean | undefined;
|
|
124
116
|
};
|
|
125
117
|
|
|
126
118
|
export const CreateInvoiceRequestBodyPaymentHandler = {
|
|
@@ -172,10 +164,6 @@ export type Three = {
|
|
|
172
164
|
* Set to `true` when the payer intends to settle this order from their credit balance before their payment method is charged. This affects only how the convenience fee is calculated: the fee pays for card processing, so it is assessed on the amount the card is left to cover once credits have been applied, and an order a balance covers in full carries none. No credits are debited here, and the balance is read from the payer's own ledger rather than taken from this request. Settle the credits with `POST /invoices/{id}/payment` and `use_credits: true`.
|
|
173
165
|
*/
|
|
174
166
|
useCredits?: boolean | undefined;
|
|
175
|
-
/**
|
|
176
|
-
* For a `vendor_credential_id` invoice, set to `true` when the vendor is sending the invoice to their company managers to pay instead of paying it themselves. The server records it on the invoice as `date_sent_to_company_manager`, and asks the managers to pay once the credential is submitted. Send it without `credential_pricing_ids` to send an invoice the credential already has. Set to `false` to take the invoice back. Omit the field to leave the invoice as it is. Ignored for a quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` before anything is created.
|
|
177
|
-
*/
|
|
178
|
-
sendToCompanyManager?: boolean | undefined;
|
|
179
167
|
};
|
|
180
168
|
|
|
181
169
|
export const RequestBodyPaymentHandler = {
|
|
@@ -225,10 +213,6 @@ export type CreateInvoiceRequestBody2 = {
|
|
|
225
213
|
* Set to `true` when the payer intends to settle this order from their credit balance before their payment method is charged. This affects only how the convenience fee is calculated: the fee pays for card processing, so it is assessed on the amount the card is left to cover once credits have been applied, and an order a balance covers in full carries none. No credits are debited here, and the balance is read from the payer's own ledger rather than taken from this request. Settle the credits with `POST /invoices/{id}/payment` and `use_credits: true`.
|
|
226
214
|
*/
|
|
227
215
|
useCredits?: boolean | undefined;
|
|
228
|
-
/**
|
|
229
|
-
* For a `vendor_credential_id` invoice, set to `true` when the vendor is sending the invoice to their company managers to pay instead of paying it themselves. The server records it on the invoice as `date_sent_to_company_manager`, and asks the managers to pay once the credential is submitted. Send it without `credential_pricing_ids` to send an invoice the credential already has. Set to `false` to take the invoice back. Omit the field to leave the invoice as it is. Ignored for a quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` before anything is created.
|
|
230
|
-
*/
|
|
231
|
-
sendToCompanyManager?: boolean | undefined;
|
|
232
216
|
};
|
|
233
217
|
|
|
234
218
|
export const PaymentHandler = {
|
|
@@ -276,10 +260,6 @@ export type RequestBody1 = {
|
|
|
276
260
|
* Set to `true` when the payer intends to settle this order from their credit balance before their payment method is charged. This affects only how the convenience fee is calculated: the fee pays for card processing, so it is assessed on the amount the card is left to cover once credits have been applied, and an order a balance covers in full carries none. No credits are debited here, and the balance is read from the payer's own ledger rather than taken from this request. Settle the credits with `POST /invoices/{id}/payment` and `use_credits: true`.
|
|
277
261
|
*/
|
|
278
262
|
useCredits?: boolean | undefined;
|
|
279
|
-
/**
|
|
280
|
-
* For a `vendor_credential_id` invoice, set to `true` when the vendor is sending the invoice to their company managers to pay instead of paying it themselves. The server records it on the invoice as `date_sent_to_company_manager`, and asks the managers to pay once the credential is submitted. Send it without `credential_pricing_ids` to send an invoice the credential already has. Set to `false` to take the invoice back. Omit the field to leave the invoice as it is. Ignored for a quote, for an invoice with nothing left to pay, and when the caller is not the vendor. A vendor whose company has no active company manager who sends `true` is refused with `400` before anything is created.
|
|
281
|
-
*/
|
|
282
|
-
sendToCompanyManager?: boolean | undefined;
|
|
283
263
|
};
|
|
284
264
|
|
|
285
265
|
/**
|
|
@@ -377,7 +357,6 @@ export type Five$Outbound = {
|
|
|
377
357
|
invoice_type?: string | undefined;
|
|
378
358
|
promo?: string | undefined;
|
|
379
359
|
use_credits: boolean;
|
|
380
|
-
send_to_company_manager?: boolean | undefined;
|
|
381
360
|
};
|
|
382
361
|
|
|
383
362
|
/** @internal */
|
|
@@ -393,14 +372,12 @@ export const Five$outboundSchema: z.ZodType<Five$Outbound, z.ZodTypeDef, Five> =
|
|
|
393
372
|
.optional(),
|
|
394
373
|
promo: z.string().optional(),
|
|
395
374
|
useCredits: z.boolean().default(false),
|
|
396
|
-
sendToCompanyManager: z.boolean().optional(),
|
|
397
375
|
}).transform((v) => {
|
|
398
376
|
return remap$(v, {
|
|
399
377
|
vendorCredentialId: "vendor_credential_id",
|
|
400
378
|
credentialPricingIds: "credential_pricing_ids",
|
|
401
379
|
invoiceType: "invoice_type",
|
|
402
380
|
useCredits: "use_credits",
|
|
403
|
-
sendToCompanyManager: "send_to_company_manager",
|
|
404
381
|
});
|
|
405
382
|
});
|
|
406
383
|
|
|
@@ -479,7 +456,6 @@ export type Four$Outbound = {
|
|
|
479
456
|
invoice_type?: string | undefined;
|
|
480
457
|
promo?: string | undefined;
|
|
481
458
|
use_credits: boolean;
|
|
482
|
-
send_to_company_manager?: boolean | undefined;
|
|
483
459
|
};
|
|
484
460
|
|
|
485
461
|
/** @internal */
|
|
@@ -494,14 +470,12 @@ export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
|
|
|
494
470
|
.optional(),
|
|
495
471
|
promo: z.string().optional(),
|
|
496
472
|
useCredits: z.boolean().default(false),
|
|
497
|
-
sendToCompanyManager: z.boolean().optional(),
|
|
498
473
|
}).transform((v) => {
|
|
499
474
|
return remap$(v, {
|
|
500
475
|
systemId: "system_id",
|
|
501
476
|
credentialPricingIds: "credential_pricing_ids",
|
|
502
477
|
invoiceType: "invoice_type",
|
|
503
478
|
useCredits: "use_credits",
|
|
504
|
-
sendToCompanyManager: "send_to_company_manager",
|
|
505
479
|
});
|
|
506
480
|
});
|
|
507
481
|
|
|
@@ -582,7 +556,6 @@ export type Three$Outbound = {
|
|
|
582
556
|
invoice_type?: string | undefined;
|
|
583
557
|
promo?: string | undefined;
|
|
584
558
|
use_credits: boolean;
|
|
585
|
-
send_to_company_manager?: boolean | undefined;
|
|
586
559
|
};
|
|
587
560
|
|
|
588
561
|
/** @internal */
|
|
@@ -598,14 +571,12 @@ export const Three$outboundSchema: z.ZodType<
|
|
|
598
571
|
invoiceType: CreateInvoiceRequestBodyInvoiceType$outboundSchema.optional(),
|
|
599
572
|
promo: z.string().optional(),
|
|
600
573
|
useCredits: z.boolean().default(false),
|
|
601
|
-
sendToCompanyManager: z.boolean().optional(),
|
|
602
574
|
}).transform((v) => {
|
|
603
575
|
return remap$(v, {
|
|
604
576
|
facilityId: "facility_id",
|
|
605
577
|
credentialPricingIds: "credential_pricing_ids",
|
|
606
578
|
invoiceType: "invoice_type",
|
|
607
579
|
useCredits: "use_credits",
|
|
608
|
-
sendToCompanyManager: "send_to_company_manager",
|
|
609
580
|
});
|
|
610
581
|
});
|
|
611
582
|
|
|
@@ -681,7 +652,6 @@ export type CreateInvoiceRequestBody2$Outbound = {
|
|
|
681
652
|
invoice_type?: string | undefined;
|
|
682
653
|
promo?: string | undefined;
|
|
683
654
|
use_credits: boolean;
|
|
684
|
-
send_to_company_manager?: boolean | undefined;
|
|
685
655
|
};
|
|
686
656
|
|
|
687
657
|
/** @internal */
|
|
@@ -696,14 +666,12 @@ export const CreateInvoiceRequestBody2$outboundSchema: z.ZodType<
|
|
|
696
666
|
invoiceType: RequestBodyInvoiceType$outboundSchema.optional(),
|
|
697
667
|
promo: z.string().optional(),
|
|
698
668
|
useCredits: z.boolean().default(false),
|
|
699
|
-
sendToCompanyManager: z.boolean().optional(),
|
|
700
669
|
}).transform((v) => {
|
|
701
670
|
return remap$(v, {
|
|
702
671
|
companyId: "company_id",
|
|
703
672
|
credentialPricingIds: "credential_pricing_ids",
|
|
704
673
|
invoiceType: "invoice_type",
|
|
705
674
|
useCredits: "use_credits",
|
|
706
|
-
sendToCompanyManager: "send_to_company_manager",
|
|
707
675
|
});
|
|
708
676
|
});
|
|
709
677
|
|
|
@@ -778,7 +746,6 @@ export type RequestBody1$Outbound = {
|
|
|
778
746
|
invoice_type?: string | undefined;
|
|
779
747
|
promo?: string | undefined;
|
|
780
748
|
use_credits: boolean;
|
|
781
|
-
send_to_company_manager?: boolean | undefined;
|
|
782
749
|
};
|
|
783
750
|
|
|
784
751
|
/** @internal */
|
|
@@ -793,14 +760,12 @@ export const RequestBody1$outboundSchema: z.ZodType<
|
|
|
793
760
|
invoiceType: InvoiceType$outboundSchema.optional(),
|
|
794
761
|
promo: z.string().optional(),
|
|
795
762
|
useCredits: z.boolean().default(false),
|
|
796
|
-
sendToCompanyManager: z.boolean().optional(),
|
|
797
763
|
}).transform((v) => {
|
|
798
764
|
return remap$(v, {
|
|
799
765
|
vendorId: "vendor_id",
|
|
800
766
|
credentialPricingIds: "credential_pricing_ids",
|
|
801
767
|
invoiceType: "invoice_type",
|
|
802
768
|
useCredits: "use_credits",
|
|
803
|
-
sendToCompanyManager: "send_to_company_manager",
|
|
804
769
|
});
|
|
805
770
|
});
|
|
806
771
|
|
|
@@ -17,7 +17,6 @@ export type UpdateUserRequestBody = {
|
|
|
17
17
|
lastName?: string | undefined;
|
|
18
18
|
username?: string | undefined;
|
|
19
19
|
email?: string | undefined;
|
|
20
|
-
email2?: string | undefined;
|
|
21
20
|
phone?: string | undefined;
|
|
22
21
|
mobilePhone?: string | undefined;
|
|
23
22
|
fax?: string | undefined;
|
|
@@ -80,7 +79,6 @@ export type UpdateUserRequestBody$Outbound = {
|
|
|
80
79
|
last_name?: string | undefined;
|
|
81
80
|
username?: string | undefined;
|
|
82
81
|
email?: string | undefined;
|
|
83
|
-
email2?: string | undefined;
|
|
84
82
|
phone?: string | undefined;
|
|
85
83
|
mobile_phone?: string | undefined;
|
|
86
84
|
fax?: string | undefined;
|
|
@@ -106,7 +104,6 @@ export const UpdateUserRequestBody$outboundSchema: z.ZodType<
|
|
|
106
104
|
lastName: z.string().optional(),
|
|
107
105
|
username: z.string().optional(),
|
|
108
106
|
email: z.string().optional(),
|
|
109
|
-
email2: z.string().optional(),
|
|
110
107
|
phone: z.string().optional(),
|
|
111
108
|
mobilePhone: z.string().optional(),
|
|
112
109
|
fax: z.string().optional(),
|
|
@@ -63,10 +63,7 @@ export type InvoicesConvertQuoteMutationError =
|
|
|
63
63
|
* invoices; a caller allowed to create the invoice but not to update the
|
|
64
64
|
* linked `VendorCredential` responds `401`.
|
|
65
65
|
*
|
|
66
|
-
*
|
|
67
|
-
* `VendorCredential`: send `true` when the vendor is sending the
|
|
68
|
-
* converted invoice to their company managers to pay instead of paying
|
|
69
|
-
* it themselves. It follows the same rules as on `POST /invoices`.
|
|
66
|
+
* Takes no request body.
|
|
70
67
|
*
|
|
71
68
|
* **Permissions.** Requires a valid token. This endpoint is not gated on a named permission—the caller's role and their relationship to the record decide what it returns.
|
|
72
69
|
*/
|
|
@@ -37,6 +37,7 @@ export type VendorsCreateVendorCompanyMutationData =
|
|
|
37
37
|
|
|
38
38
|
export type VendorsCreateVendorCompanyMutationError =
|
|
39
39
|
| errors.ApiErrorResponse
|
|
40
|
+
| errors.UnprocessableEntityOrValidationError
|
|
40
41
|
| GreenSecurityError
|
|
41
42
|
| ResponseValidationError
|
|
42
43
|
| ConnectionError
|