@greensecurity/javascript-sdk 0.30.48 → 0.30.53
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 +3 -0
- package/bin/mcp-server.js +422 -185
- package/bin/mcp-server.js.map +23 -19
- package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +122 -1
- package/dist/commonjs/__tests__/vendors.test.js.map +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 +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.d.ts +23 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.js +131 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts +2 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js +2 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/cli/start/impl.js +8 -2
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialFile.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialFile.js +69 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js +3 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/models/components/expand.d.ts +12 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +4 -0
- package/dist/commonjs/models/components/expand.js.map +1 -1
- package/dist/commonjs/models/components/financialstatus.d.ts +70 -0
- package/dist/commonjs/models/components/financialstatus.d.ts.map +1 -0
- package/dist/commonjs/models/components/financialstatus.js +74 -0
- package/dist/commonjs/models/components/financialstatus.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/invoice.d.ts +2 -2
- package/dist/commonjs/models/components/invoice.d.ts.map +1 -1
- package/dist/commonjs/models/components/invoice.js +3 -2
- package/dist/commonjs/models/components/invoice.js.map +1 -1
- package/dist/commonjs/models/components/subscription.d.ts +16 -0
- package/dist/commonjs/models/components/subscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscription.js +19 -0
- package/dist/commonjs/models/components/subscription.js.map +1 -1
- package/dist/commonjs/models/components/vendor.d.ts +30 -0
- package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendor.js +33 -1
- package/dist/commonjs/models/components/vendor.js.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialfile.d.ts +2 -4
- package/dist/commonjs/models/components/vendorcredentialfile.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialfile.js +4 -6
- package/dist/commonjs/models/components/vendorcredentialfile.js.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +4 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.js +8 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -1
- package/dist/commonjs/models/components/zoneconfig.d.ts +4 -0
- package/dist/commonjs/models/components/zoneconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/zoneconfig.js +8 -0
- package/dist/commonjs/models/components/zoneconfig.js.map +1 -1
- package/dist/commonjs/models/operations/getvendorcredentialfile.d.ts +43 -0
- package/dist/commonjs/models/operations/getvendorcredentialfile.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getvendorcredentialfile.js +83 -0
- package/dist/commonjs/models/operations/getvendorcredentialfile.js.map +1 -0
- 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/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/vendorsGetVendorCredentialFile.d.ts +55 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialFile.js +108 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts +4 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js +4 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +14 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +17 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/vendormanagedbycompanies.test.js +1 -1
- package/dist/esm/__tests__/vendors.test.js +122 -1
- package/dist/esm/__tests__/vendors.test.js.map +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 +1 -1
- package/dist/esm/funcs/vendorsGetVendorCredentialFile.d.ts +23 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialFile.js +95 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts +2 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorsDetails.js +2 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/cli/start/impl.js +8 -2
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialFile.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialFile.js +33 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js +3 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/models/components/expand.d.ts +12 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +4 -0
- package/dist/esm/models/components/expand.js.map +1 -1
- package/dist/esm/models/components/financialstatus.d.ts +70 -0
- package/dist/esm/models/components/financialstatus.d.ts.map +1 -0
- package/dist/esm/models/components/financialstatus.js +38 -0
- package/dist/esm/models/components/financialstatus.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/invoice.d.ts +2 -2
- package/dist/esm/models/components/invoice.d.ts.map +1 -1
- package/dist/esm/models/components/invoice.js +3 -2
- package/dist/esm/models/components/invoice.js.map +1 -1
- package/dist/esm/models/components/subscription.d.ts +16 -0
- package/dist/esm/models/components/subscription.d.ts.map +1 -1
- package/dist/esm/models/components/subscription.js +19 -0
- package/dist/esm/models/components/subscription.js.map +1 -1
- package/dist/esm/models/components/vendor.d.ts +30 -0
- package/dist/esm/models/components/vendor.d.ts.map +1 -1
- package/dist/esm/models/components/vendor.js +30 -0
- package/dist/esm/models/components/vendor.js.map +1 -1
- package/dist/esm/models/components/vendorcredentialfile.d.ts +2 -4
- package/dist/esm/models/components/vendorcredentialfile.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialfile.js +4 -6
- package/dist/esm/models/components/vendorcredentialfile.js.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.d.ts +4 -0
- package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.js +8 -0
- package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -1
- package/dist/esm/models/components/zoneconfig.d.ts +4 -0
- package/dist/esm/models/components/zoneconfig.d.ts.map +1 -1
- package/dist/esm/models/components/zoneconfig.js +8 -0
- package/dist/esm/models/components/zoneconfig.js.map +1 -1
- package/dist/esm/models/operations/getvendorcredentialfile.d.ts +43 -0
- package/dist/esm/models/operations/getvendorcredentialfile.d.ts.map +1 -0
- package/dist/esm/models/operations/getvendorcredentialfile.js +45 -0
- package/dist/esm/models/operations/getvendorcredentialfile.js.map +1 -0
- 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/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/vendorsGetVendorCredentialFile.d.ts +55 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialFile.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialFile.js +98 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialFile.js.map +1 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts +4 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorsDetails.js +4 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +14 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +17 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendormanagedbycompanies.test.ts +1 -1
- package/src/__tests__/vendors.test.ts +125 -1
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +1 -1
- package/src/funcs/vendorsGetVendorCredentialFile.ts +191 -0
- package/src/funcs/vendorsGetVendorsDetails.ts +2 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/cli/start/impl.ts +8 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/vendorsGetVendorCredentialFile.ts +43 -0
- package/src/mcp-server/tools/vendorsGetVendorsDetails.ts +3 -1
- package/src/models/components/expand.ts +6 -0
- package/src/models/components/financialstatus.ts +47 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/invoice.ts +5 -4
- package/src/models/components/subscription.ts +42 -0
- package/src/models/components/vendor.ts +68 -0
- package/src/models/components/vendorcredentialfile.ts +6 -10
- package/src/models/components/vendorcredentialsummary.ts +12 -0
- package/src/models/components/zoneconfig.ts +12 -0
- package/src/models/operations/getvendorcredentialfile.ts +95 -0
- package/src/models/operations/index.ts +1 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/vendorsGetVendorCredentialFile.ts +197 -0
- package/src/react-query/vendorsGetVendorsDetails.ts +4 -0
- package/src/sdk/vendors.ts +25 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { vendorsGetVendorCredentialFile } from "../../funcs/vendorsGetVendorCredentialFile.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.GetVendorCredentialFileRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$vendorsGetVendorCredentialFile: ToolDefinition<typeof args> =
|
|
14
|
+
{
|
|
15
|
+
name: "vendors-get-vendor-credential-file",
|
|
16
|
+
description: `Get vendor credential file
|
|
17
|
+
|
|
18
|
+
Retrieve an individual vendor credential file.
|
|
19
|
+
|
|
20
|
+
Available \`expand\` scopes are:
|
|
21
|
+
|
|
22
|
+
- vendor_credential_file.vendor_credential
|
|
23
|
+
- vendor_credential_file.credential_document`,
|
|
24
|
+
args,
|
|
25
|
+
tool: async (client, args, ctx) => {
|
|
26
|
+
const [result, apiCall] = await vendorsGetVendorCredentialFile(
|
|
27
|
+
client,
|
|
28
|
+
args.request,
|
|
29
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
30
|
+
).$inspect();
|
|
31
|
+
|
|
32
|
+
if (!result.ok) {
|
|
33
|
+
return {
|
|
34
|
+
content: [{ type: "text", text: result.error.message }],
|
|
35
|
+
isError: true,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const value = result.value;
|
|
40
|
+
|
|
41
|
+
return formatResult(value, apiCall);
|
|
42
|
+
},
|
|
43
|
+
};
|
|
@@ -20,6 +20,7 @@ Available \`expand\` scopes are:
|
|
|
20
20
|
|
|
21
21
|
vendor.user
|
|
22
22
|
vendor.vendor_type
|
|
23
|
+
vendor.vendor_job
|
|
23
24
|
vendor.image_urls
|
|
24
25
|
vendor.payment_profile
|
|
25
26
|
vendor.primary_facility
|
|
@@ -28,7 +29,8 @@ vendor.company
|
|
|
28
29
|
vendor.credentialing_subscription
|
|
29
30
|
vendor.scrubs_subscription
|
|
30
31
|
vendor.payment_responsibility
|
|
31
|
-
vendor.background_check_date_expires
|
|
32
|
+
vendor.background_check_date_expires
|
|
33
|
+
vendor.registration_data`,
|
|
32
34
|
args,
|
|
33
35
|
tool: async (client, args, ctx) => {
|
|
34
36
|
const [result, apiCall] = await vendorsGetVendorsDetails(
|
|
@@ -25,6 +25,7 @@ export const Expand = {
|
|
|
25
25
|
FacilityWorkflow: "facility.workflow",
|
|
26
26
|
VendorUser: "vendor.user",
|
|
27
27
|
VendorVendorType: "vendor.vendor_type",
|
|
28
|
+
VendorVendorJob: "vendor.vendor_job",
|
|
28
29
|
VendorPaymentProfile: "vendor.payment_profile",
|
|
29
30
|
VendorImageUrls: "vendor.image_urls",
|
|
30
31
|
VendorPrimaryFacility: "vendor.primary_facility",
|
|
@@ -34,6 +35,7 @@ export const Expand = {
|
|
|
34
35
|
VendorScrubsSubscription: "vendor.scrubs_subscription",
|
|
35
36
|
VendorPaymentResponsibility: "vendor.payment_responsibility",
|
|
36
37
|
VendorBackgroundCheckDateExpires: "vendor.background_check_date_expires",
|
|
38
|
+
VendorRegistrationData: "vendor.registration_data",
|
|
37
39
|
SupportArticleDescription: "support_article.description",
|
|
38
40
|
SupportArticlePublished: "support_article.published",
|
|
39
41
|
SupportArticleNotes: "support_article.notes",
|
|
@@ -62,6 +64,10 @@ export const Expand = {
|
|
|
62
64
|
"vendor_credential.vendor_credential_data_requests",
|
|
63
65
|
VendorCredentialCredentialVariants: "vendor_credential.credential_variants",
|
|
64
66
|
VendorCredentialTargetsChop: "vendor_credential.targets_chop",
|
|
67
|
+
VendorCredentialFileVendorCredential:
|
|
68
|
+
"vendor_credential_file.vendor_credential",
|
|
69
|
+
VendorCredentialFileCredentialDocument:
|
|
70
|
+
"vendor_credential_file.credential_document",
|
|
65
71
|
} as const;
|
|
66
72
|
/**
|
|
67
73
|
* An expansion scope that is valid for the object being requested.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const FinancialStatus = {
|
|
9
|
+
Pending: "pending",
|
|
10
|
+
Authorized: "authorized",
|
|
11
|
+
Captured: "captured",
|
|
12
|
+
Refunded: "refunded",
|
|
13
|
+
RefundedToCredits: "refunded to credits",
|
|
14
|
+
Voided: "voided",
|
|
15
|
+
Waived: "waived",
|
|
16
|
+
Overdue: "overdue",
|
|
17
|
+
Paid: "paid",
|
|
18
|
+
PaidByCredits: "paid by credits",
|
|
19
|
+
PaidByCreditCard: "paid by credit card",
|
|
20
|
+
PaidByCheck: "paid by check",
|
|
21
|
+
PaidByShareback: "paid by shareback",
|
|
22
|
+
PaidByPo: "paid by po",
|
|
23
|
+
PaidByOtherMeans: "paid by other means",
|
|
24
|
+
Credited: "credited",
|
|
25
|
+
} as const;
|
|
26
|
+
export type FinancialStatus = ClosedEnum<typeof FinancialStatus>;
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const FinancialStatus$inboundSchema: z.ZodNativeEnum<
|
|
30
|
+
typeof FinancialStatus
|
|
31
|
+
> = z.nativeEnum(FinancialStatus);
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const FinancialStatus$outboundSchema: z.ZodNativeEnum<
|
|
35
|
+
typeof FinancialStatus
|
|
36
|
+
> = FinancialStatus$inboundSchema;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
41
|
+
*/
|
|
42
|
+
export namespace FinancialStatus$ {
|
|
43
|
+
/** @deprecated use `FinancialStatus$inboundSchema` instead. */
|
|
44
|
+
export const inboundSchema = FinancialStatus$inboundSchema;
|
|
45
|
+
/** @deprecated use `FinancialStatus$outboundSchema` instead. */
|
|
46
|
+
export const outboundSchema = FinancialStatus$outboundSchema;
|
|
47
|
+
}
|
|
@@ -17,6 +17,7 @@ export * from "./desc.js";
|
|
|
17
17
|
export * from "./expand.js";
|
|
18
18
|
export * from "./facility.js";
|
|
19
19
|
export * from "./facilitysummary.js";
|
|
20
|
+
export * from "./financialstatus.js";
|
|
20
21
|
export * from "./handoff.js";
|
|
21
22
|
export * from "./imageset.js";
|
|
22
23
|
export * from "./invoice.js";
|
|
@@ -35,7 +35,7 @@ export type Invoice = {
|
|
|
35
35
|
convenienceFee?: number | null | undefined;
|
|
36
36
|
shipping?: number | null | undefined;
|
|
37
37
|
discount?: number | undefined;
|
|
38
|
-
lines?: Array<InvoiceItem> | null | undefined;
|
|
38
|
+
lines?: Array<InvoiceItem | null> | null | undefined;
|
|
39
39
|
transactions?: Array<InvoiceTransaction> | null | undefined;
|
|
40
40
|
};
|
|
41
41
|
|
|
@@ -53,7 +53,8 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
|
|
|
53
53
|
convenience_fee: z.nullable(z.number()).optional(),
|
|
54
54
|
shipping: z.nullable(z.number().int()).optional(),
|
|
55
55
|
discount: z.number().int().optional(),
|
|
56
|
-
lines: z.nullable(z.array(InvoiceItem$inboundSchema))
|
|
56
|
+
lines: z.nullable(z.array(z.nullable(InvoiceItem$inboundSchema)))
|
|
57
|
+
.optional(),
|
|
57
58
|
transactions: z.nullable(z.array(InvoiceTransaction$inboundSchema))
|
|
58
59
|
.optional(),
|
|
59
60
|
}).transform((v) => {
|
|
@@ -79,7 +80,7 @@ export type Invoice$Outbound = {
|
|
|
79
80
|
convenience_fee?: number | null | undefined;
|
|
80
81
|
shipping?: number | null | undefined;
|
|
81
82
|
discount?: number | undefined;
|
|
82
|
-
lines?: Array<InvoiceItem$Outbound> | null | undefined;
|
|
83
|
+
lines?: Array<InvoiceItem$Outbound | null> | null | undefined;
|
|
83
84
|
transactions?: Array<InvoiceTransaction$Outbound> | null | undefined;
|
|
84
85
|
};
|
|
85
86
|
|
|
@@ -100,7 +101,7 @@ export const Invoice$outboundSchema: z.ZodType<
|
|
|
100
101
|
convenienceFee: z.nullable(z.number()).optional(),
|
|
101
102
|
shipping: z.nullable(z.number().int()).optional(),
|
|
102
103
|
discount: z.number().int().optional(),
|
|
103
|
-
lines: z.nullable(z.array(InvoiceItem$outboundSchema)).optional(),
|
|
104
|
+
lines: z.nullable(z.array(z.nullable(InvoiceItem$outboundSchema))).optional(),
|
|
104
105
|
transactions: z.nullable(z.array(InvoiceTransaction$outboundSchema))
|
|
105
106
|
.optional(),
|
|
106
107
|
}).transform((v) => {
|
|
@@ -7,6 +7,17 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
FinancialStatus,
|
|
12
|
+
FinancialStatus$inboundSchema,
|
|
13
|
+
FinancialStatus$outboundSchema,
|
|
14
|
+
} from "./financialstatus.js";
|
|
15
|
+
import {
|
|
16
|
+
InvoiceItem,
|
|
17
|
+
InvoiceItem$inboundSchema,
|
|
18
|
+
InvoiceItem$Outbound,
|
|
19
|
+
InvoiceItem$outboundSchema,
|
|
20
|
+
} from "./invoiceitem.js";
|
|
10
21
|
|
|
11
22
|
/**
|
|
12
23
|
* Reduced list of attributes of the Subscription record
|
|
@@ -18,6 +29,16 @@ export type Subscription = {
|
|
|
18
29
|
status?: string | null | undefined;
|
|
19
30
|
locked?: boolean | null | undefined;
|
|
20
31
|
variantTitle?: string | null | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Reduced list of attributes of the Invoice line item record
|
|
34
|
+
*/
|
|
35
|
+
currentLineItem?: InvoiceItem | null | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Reduced list of attributes of the Invoice line item record
|
|
38
|
+
*/
|
|
39
|
+
nextLineItem?: InvoiceItem | null | undefined;
|
|
40
|
+
currentFinancialStatus?: FinancialStatus | null | undefined;
|
|
41
|
+
nextFinancialStatus?: FinancialStatus | null | undefined;
|
|
21
42
|
};
|
|
22
43
|
|
|
23
44
|
/** @internal */
|
|
@@ -32,11 +53,20 @@ export const Subscription$inboundSchema: z.ZodType<
|
|
|
32
53
|
status: z.nullable(z.string()).optional(),
|
|
33
54
|
locked: z.nullable(z.boolean()).optional(),
|
|
34
55
|
variant_title: z.nullable(z.string()).optional(),
|
|
56
|
+
current_line_item: z.nullable(InvoiceItem$inboundSchema).optional(),
|
|
57
|
+
next_line_item: z.nullable(InvoiceItem$inboundSchema).optional(),
|
|
58
|
+
current_financial_status: z.nullable(FinancialStatus$inboundSchema)
|
|
59
|
+
.optional(),
|
|
60
|
+
next_financial_status: z.nullable(FinancialStatus$inboundSchema).optional(),
|
|
35
61
|
}).transform((v) => {
|
|
36
62
|
return remap$(v, {
|
|
37
63
|
"date_started": "dateStarted",
|
|
38
64
|
"date_ends": "dateEnds",
|
|
39
65
|
"variant_title": "variantTitle",
|
|
66
|
+
"current_line_item": "currentLineItem",
|
|
67
|
+
"next_line_item": "nextLineItem",
|
|
68
|
+
"current_financial_status": "currentFinancialStatus",
|
|
69
|
+
"next_financial_status": "nextFinancialStatus",
|
|
40
70
|
});
|
|
41
71
|
});
|
|
42
72
|
|
|
@@ -48,6 +78,10 @@ export type Subscription$Outbound = {
|
|
|
48
78
|
status?: string | null | undefined;
|
|
49
79
|
locked?: boolean | null | undefined;
|
|
50
80
|
variant_title?: string | null | undefined;
|
|
81
|
+
current_line_item?: InvoiceItem$Outbound | null | undefined;
|
|
82
|
+
next_line_item?: InvoiceItem$Outbound | null | undefined;
|
|
83
|
+
current_financial_status?: string | null | undefined;
|
|
84
|
+
next_financial_status?: string | null | undefined;
|
|
51
85
|
};
|
|
52
86
|
|
|
53
87
|
/** @internal */
|
|
@@ -62,11 +96,19 @@ export const Subscription$outboundSchema: z.ZodType<
|
|
|
62
96
|
status: z.nullable(z.string()).optional(),
|
|
63
97
|
locked: z.nullable(z.boolean()).optional(),
|
|
64
98
|
variantTitle: z.nullable(z.string()).optional(),
|
|
99
|
+
currentLineItem: z.nullable(InvoiceItem$outboundSchema).optional(),
|
|
100
|
+
nextLineItem: z.nullable(InvoiceItem$outboundSchema).optional(),
|
|
101
|
+
currentFinancialStatus: z.nullable(FinancialStatus$outboundSchema).optional(),
|
|
102
|
+
nextFinancialStatus: z.nullable(FinancialStatus$outboundSchema).optional(),
|
|
65
103
|
}).transform((v) => {
|
|
66
104
|
return remap$(v, {
|
|
67
105
|
dateStarted: "date_started",
|
|
68
106
|
dateEnds: "date_ends",
|
|
69
107
|
variantTitle: "variant_title",
|
|
108
|
+
currentLineItem: "current_line_item",
|
|
109
|
+
nextLineItem: "next_line_item",
|
|
110
|
+
currentFinancialStatus: "current_financial_status",
|
|
111
|
+
nextFinancialStatus: "next_financial_status",
|
|
70
112
|
});
|
|
71
113
|
});
|
|
72
114
|
|
|
@@ -49,6 +49,12 @@ import {
|
|
|
49
49
|
UserLocation$Outbound,
|
|
50
50
|
UserLocation$outboundSchema,
|
|
51
51
|
} from "./userlocation.js";
|
|
52
|
+
import {
|
|
53
|
+
VendorJobTitle,
|
|
54
|
+
VendorJobTitle$inboundSchema,
|
|
55
|
+
VendorJobTitle$Outbound,
|
|
56
|
+
VendorJobTitle$outboundSchema,
|
|
57
|
+
} from "./vendorjobtitle.js";
|
|
52
58
|
|
|
53
59
|
export type One = {
|
|
54
60
|
id?: number | undefined;
|
|
@@ -73,6 +79,8 @@ export type One = {
|
|
|
73
79
|
|
|
74
80
|
export type VendorUser = One | number;
|
|
75
81
|
|
|
82
|
+
export type VendorJob = VendorJobTitle | number;
|
|
83
|
+
|
|
76
84
|
export type VendorType1 = {
|
|
77
85
|
id?: number | undefined;
|
|
78
86
|
name?: string | undefined;
|
|
@@ -128,6 +136,8 @@ export type Vendor = {
|
|
|
128
136
|
sendWeeklySummaryEmail?: boolean | null | undefined;
|
|
129
137
|
title?: string | null | undefined;
|
|
130
138
|
user?: One | number | undefined;
|
|
139
|
+
registrationData?: { [k: string]: any } | null | undefined;
|
|
140
|
+
vendorJob?: VendorJobTitle | number | null | undefined;
|
|
131
141
|
vendorType?: VendorType1 | number | null | undefined;
|
|
132
142
|
/**
|
|
133
143
|
* list of the vendor supervisor attributes
|
|
@@ -310,6 +320,50 @@ export function vendorUserFromJSON(
|
|
|
310
320
|
);
|
|
311
321
|
}
|
|
312
322
|
|
|
323
|
+
/** @internal */
|
|
324
|
+
export const VendorJob$inboundSchema: z.ZodType<
|
|
325
|
+
VendorJob,
|
|
326
|
+
z.ZodTypeDef,
|
|
327
|
+
unknown
|
|
328
|
+
> = z.union([VendorJobTitle$inboundSchema, z.number().int()]);
|
|
329
|
+
|
|
330
|
+
/** @internal */
|
|
331
|
+
export type VendorJob$Outbound = VendorJobTitle$Outbound | number;
|
|
332
|
+
|
|
333
|
+
/** @internal */
|
|
334
|
+
export const VendorJob$outboundSchema: z.ZodType<
|
|
335
|
+
VendorJob$Outbound,
|
|
336
|
+
z.ZodTypeDef,
|
|
337
|
+
VendorJob
|
|
338
|
+
> = z.union([VendorJobTitle$outboundSchema, z.number().int()]);
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* @internal
|
|
342
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
343
|
+
*/
|
|
344
|
+
export namespace VendorJob$ {
|
|
345
|
+
/** @deprecated use `VendorJob$inboundSchema` instead. */
|
|
346
|
+
export const inboundSchema = VendorJob$inboundSchema;
|
|
347
|
+
/** @deprecated use `VendorJob$outboundSchema` instead. */
|
|
348
|
+
export const outboundSchema = VendorJob$outboundSchema;
|
|
349
|
+
/** @deprecated use `VendorJob$Outbound` instead. */
|
|
350
|
+
export type Outbound = VendorJob$Outbound;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export function vendorJobToJSON(vendorJob: VendorJob): string {
|
|
354
|
+
return JSON.stringify(VendorJob$outboundSchema.parse(vendorJob));
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export function vendorJobFromJSON(
|
|
358
|
+
jsonString: string,
|
|
359
|
+
): SafeParseResult<VendorJob, SDKValidationError> {
|
|
360
|
+
return safeParse(
|
|
361
|
+
jsonString,
|
|
362
|
+
(x) => VendorJob$inboundSchema.parse(JSON.parse(x)),
|
|
363
|
+
`Failed to parse 'VendorJob' from JSON`,
|
|
364
|
+
);
|
|
365
|
+
}
|
|
366
|
+
|
|
313
367
|
/** @internal */
|
|
314
368
|
export const VendorType1$inboundSchema: z.ZodType<
|
|
315
369
|
VendorType1,
|
|
@@ -841,6 +895,10 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
|
|
|
841
895
|
title: z.nullable(z.string()).optional(),
|
|
842
896
|
user: z.union([z.lazy(() => One$inboundSchema), z.number().int()])
|
|
843
897
|
.optional(),
|
|
898
|
+
registration_data: z.nullable(z.record(z.any())).optional(),
|
|
899
|
+
vendor_job: z.nullable(
|
|
900
|
+
z.union([VendorJobTitle$inboundSchema, z.number().int()]),
|
|
901
|
+
).optional(),
|
|
844
902
|
vendor_type: z.nullable(
|
|
845
903
|
z.union([z.lazy(() => VendorType1$inboundSchema), z.number().int()]),
|
|
846
904
|
).optional(),
|
|
@@ -872,6 +930,8 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
|
|
|
872
930
|
return remap$(v, {
|
|
873
931
|
"email_recepient": "emailRecepient",
|
|
874
932
|
"send_weekly_summary_email": "sendWeeklySummaryEmail",
|
|
933
|
+
"registration_data": "registrationData",
|
|
934
|
+
"vendor_job": "vendorJob",
|
|
875
935
|
"vendor_type": "vendorType",
|
|
876
936
|
"qr_code": "qrCode",
|
|
877
937
|
"head_shot": "headShot",
|
|
@@ -894,6 +954,8 @@ export type Vendor$Outbound = {
|
|
|
894
954
|
send_weekly_summary_email?: boolean | null | undefined;
|
|
895
955
|
title?: string | null | undefined;
|
|
896
956
|
user?: One$Outbound | number | undefined;
|
|
957
|
+
registration_data?: { [k: string]: any } | null | undefined;
|
|
958
|
+
vendor_job?: VendorJobTitle$Outbound | number | null | undefined;
|
|
897
959
|
vendor_type?: VendorType1$Outbound | number | null | undefined;
|
|
898
960
|
supervisor?: Supervisor$Outbound | null | undefined;
|
|
899
961
|
qr_code?: string | null | undefined;
|
|
@@ -928,6 +990,10 @@ export const Vendor$outboundSchema: z.ZodType<
|
|
|
928
990
|
title: z.nullable(z.string()).optional(),
|
|
929
991
|
user: z.union([z.lazy(() => One$outboundSchema), z.number().int()])
|
|
930
992
|
.optional(),
|
|
993
|
+
registrationData: z.nullable(z.record(z.any())).optional(),
|
|
994
|
+
vendorJob: z.nullable(
|
|
995
|
+
z.union([VendorJobTitle$outboundSchema, z.number().int()]),
|
|
996
|
+
).optional(),
|
|
931
997
|
vendorType: z.nullable(
|
|
932
998
|
z.union([z.lazy(() => VendorType1$outboundSchema), z.number().int()]),
|
|
933
999
|
).optional(),
|
|
@@ -958,6 +1024,8 @@ export const Vendor$outboundSchema: z.ZodType<
|
|
|
958
1024
|
return remap$(v, {
|
|
959
1025
|
emailRecepient: "email_recepient",
|
|
960
1026
|
sendWeeklySummaryEmail: "send_weekly_summary_email",
|
|
1027
|
+
registrationData: "registration_data",
|
|
1028
|
+
vendorJob: "vendor_job",
|
|
961
1029
|
vendorType: "vendor_type",
|
|
962
1030
|
qrCode: "qr_code",
|
|
963
1031
|
headShot: "head_shot",
|
|
@@ -41,9 +41,8 @@ export type VendorCredentialFile = {
|
|
|
41
41
|
id?: number | undefined;
|
|
42
42
|
vendorCredential?: VendorCredentialSummary | number | null | undefined;
|
|
43
43
|
dateUploaded?: string | null | undefined;
|
|
44
|
-
uploadedById?: number | null | undefined;
|
|
45
44
|
isDecline?: boolean | null | undefined;
|
|
46
|
-
file?: VendorCredentialFileFile | undefined;
|
|
45
|
+
file?: VendorCredentialFileFile | null | undefined;
|
|
47
46
|
processed?: boolean | undefined;
|
|
48
47
|
name?: string | null | undefined;
|
|
49
48
|
credentialDocument?: CredentialDocument | number | null | undefined;
|
|
@@ -255,9 +254,9 @@ export const VendorCredentialFile$inboundSchema: z.ZodType<
|
|
|
255
254
|
]),
|
|
256
255
|
).optional(),
|
|
257
256
|
date_uploaded: z.nullable(z.string()).optional(),
|
|
258
|
-
uploaded_by_id: z.nullable(z.number().int()).optional(),
|
|
259
257
|
is_decline: z.nullable(z.boolean()).optional(),
|
|
260
|
-
file: z.lazy(() => VendorCredentialFileFile$inboundSchema)
|
|
258
|
+
file: z.nullable(z.lazy(() => VendorCredentialFileFile$inboundSchema))
|
|
259
|
+
.optional(),
|
|
261
260
|
processed: z.boolean().optional(),
|
|
262
261
|
name: z.nullable(z.string()).optional(),
|
|
263
262
|
credential_document: z.nullable(
|
|
@@ -267,7 +266,6 @@ export const VendorCredentialFile$inboundSchema: z.ZodType<
|
|
|
267
266
|
return remap$(v, {
|
|
268
267
|
"vendor_credential": "vendorCredential",
|
|
269
268
|
"date_uploaded": "dateUploaded",
|
|
270
|
-
"uploaded_by_id": "uploadedById",
|
|
271
269
|
"is_decline": "isDecline",
|
|
272
270
|
"credential_document": "credentialDocument",
|
|
273
271
|
});
|
|
@@ -282,9 +280,8 @@ export type VendorCredentialFile$Outbound = {
|
|
|
282
280
|
| null
|
|
283
281
|
| undefined;
|
|
284
282
|
date_uploaded?: string | null | undefined;
|
|
285
|
-
uploaded_by_id?: number | null | undefined;
|
|
286
283
|
is_decline?: boolean | null | undefined;
|
|
287
|
-
file?: VendorCredentialFileFile$Outbound | undefined;
|
|
284
|
+
file?: VendorCredentialFileFile$Outbound | null | undefined;
|
|
288
285
|
processed?: boolean | undefined;
|
|
289
286
|
name?: string | null | undefined;
|
|
290
287
|
credential_document?: CredentialDocument$Outbound | number | null | undefined;
|
|
@@ -304,9 +301,9 @@ export const VendorCredentialFile$outboundSchema: z.ZodType<
|
|
|
304
301
|
]),
|
|
305
302
|
).optional(),
|
|
306
303
|
dateUploaded: z.nullable(z.string()).optional(),
|
|
307
|
-
uploadedById: z.nullable(z.number().int()).optional(),
|
|
308
304
|
isDecline: z.nullable(z.boolean()).optional(),
|
|
309
|
-
file: z.lazy(() => VendorCredentialFileFile$outboundSchema)
|
|
305
|
+
file: z.nullable(z.lazy(() => VendorCredentialFileFile$outboundSchema))
|
|
306
|
+
.optional(),
|
|
310
307
|
processed: z.boolean().optional(),
|
|
311
308
|
name: z.nullable(z.string()).optional(),
|
|
312
309
|
credentialDocument: z.nullable(
|
|
@@ -316,7 +313,6 @@ export const VendorCredentialFile$outboundSchema: z.ZodType<
|
|
|
316
313
|
return remap$(v, {
|
|
317
314
|
vendorCredential: "vendor_credential",
|
|
318
315
|
dateUploaded: "date_uploaded",
|
|
319
|
-
uploadedById: "uploaded_by_id",
|
|
320
316
|
isDecline: "is_decline",
|
|
321
317
|
credentialDocument: "credential_document",
|
|
322
318
|
});
|
|
@@ -85,6 +85,8 @@ export type VendorCredentialSummary = {
|
|
|
85
85
|
company?: Company | null | undefined;
|
|
86
86
|
dateDue?: string | null | undefined;
|
|
87
87
|
dateExpires?: string | null | undefined;
|
|
88
|
+
dateExpedited?: string | null | undefined;
|
|
89
|
+
dateValid?: string | null | undefined;
|
|
88
90
|
notes?: string | null | undefined;
|
|
89
91
|
expedited?: boolean | undefined;
|
|
90
92
|
jsonData?: string | null | undefined;
|
|
@@ -432,6 +434,8 @@ export const VendorCredentialSummary$inboundSchema: z.ZodType<
|
|
|
432
434
|
company: z.nullable(Company$inboundSchema).optional(),
|
|
433
435
|
date_due: z.nullable(z.string()).optional(),
|
|
434
436
|
date_expires: z.nullable(z.string()).optional(),
|
|
437
|
+
date_expedited: z.nullable(z.string()).optional(),
|
|
438
|
+
date_valid: z.nullable(z.string()).optional(),
|
|
435
439
|
notes: z.nullable(z.string()).optional(),
|
|
436
440
|
expedited: z.boolean().optional(),
|
|
437
441
|
json_data: z.nullable(z.string()).optional(),
|
|
@@ -468,6 +472,8 @@ export const VendorCredentialSummary$inboundSchema: z.ZodType<
|
|
|
468
472
|
return remap$(v, {
|
|
469
473
|
"date_due": "dateDue",
|
|
470
474
|
"date_expires": "dateExpires",
|
|
475
|
+
"date_expedited": "dateExpedited",
|
|
476
|
+
"date_valid": "dateValid",
|
|
471
477
|
"json_data": "jsonData",
|
|
472
478
|
"vendor_credential_files": "vendorCredentialFiles",
|
|
473
479
|
"latest_vendor_credential_id": "latestVendorCredentialId",
|
|
@@ -491,6 +497,8 @@ export type VendorCredentialSummary$Outbound = {
|
|
|
491
497
|
company?: Company$Outbound | null | undefined;
|
|
492
498
|
date_due?: string | null | undefined;
|
|
493
499
|
date_expires?: string | null | undefined;
|
|
500
|
+
date_expedited?: string | null | undefined;
|
|
501
|
+
date_valid?: string | null | undefined;
|
|
494
502
|
notes?: string | null | undefined;
|
|
495
503
|
expedited?: boolean | undefined;
|
|
496
504
|
json_data?: string | null | undefined;
|
|
@@ -530,6 +538,8 @@ export const VendorCredentialSummary$outboundSchema: z.ZodType<
|
|
|
530
538
|
company: z.nullable(Company$outboundSchema).optional(),
|
|
531
539
|
dateDue: z.nullable(z.string()).optional(),
|
|
532
540
|
dateExpires: z.nullable(z.string()).optional(),
|
|
541
|
+
dateExpedited: z.nullable(z.string()).optional(),
|
|
542
|
+
dateValid: z.nullable(z.string()).optional(),
|
|
533
543
|
notes: z.nullable(z.string()).optional(),
|
|
534
544
|
expedited: z.boolean().optional(),
|
|
535
545
|
jsonData: z.nullable(z.string()).optional(),
|
|
@@ -566,6 +576,8 @@ export const VendorCredentialSummary$outboundSchema: z.ZodType<
|
|
|
566
576
|
return remap$(v, {
|
|
567
577
|
dateDue: "date_due",
|
|
568
578
|
dateExpires: "date_expires",
|
|
579
|
+
dateExpedited: "date_expedited",
|
|
580
|
+
dateValid: "date_valid",
|
|
569
581
|
jsonData: "json_data",
|
|
570
582
|
vendorCredentialFiles: "vendor_credential_files",
|
|
571
583
|
latestVendorCredentialId: "latest_vendor_credential_id",
|
|
@@ -65,6 +65,8 @@ export type VisitRequestPolicy = {
|
|
|
65
65
|
autoCheckinVisitRequests?: boolean | null | undefined;
|
|
66
66
|
autoApproveVisitRequestsWithFlags?: boolean | null | undefined;
|
|
67
67
|
autoCheckinVisitRequestsWithFlags?: boolean | null | undefined;
|
|
68
|
+
companyNameField?: string | undefined;
|
|
69
|
+
emailField?: string | undefined;
|
|
68
70
|
};
|
|
69
71
|
|
|
70
72
|
/**
|
|
@@ -584,6 +586,8 @@ export const VisitRequestPolicy$inboundSchema: z.ZodType<
|
|
|
584
586
|
auto_checkin_visit_requests: z.nullable(z.boolean()).optional(),
|
|
585
587
|
auto_approve_visit_requests_with_flags: z.nullable(z.boolean()).optional(),
|
|
586
588
|
auto_checkin_visit_requests_with_flags: z.nullable(z.boolean()).optional(),
|
|
589
|
+
company_name_field: z.string().optional(),
|
|
590
|
+
email_field: z.string().optional(),
|
|
587
591
|
}).transform((v) => {
|
|
588
592
|
return remap$(v, {
|
|
589
593
|
"ask_questions_visit_requests": "askQuestionsVisitRequests",
|
|
@@ -597,6 +601,8 @@ export const VisitRequestPolicy$inboundSchema: z.ZodType<
|
|
|
597
601
|
"autoApproveVisitRequestsWithFlags",
|
|
598
602
|
"auto_checkin_visit_requests_with_flags":
|
|
599
603
|
"autoCheckinVisitRequestsWithFlags",
|
|
604
|
+
"company_name_field": "companyNameField",
|
|
605
|
+
"email_field": "emailField",
|
|
600
606
|
});
|
|
601
607
|
});
|
|
602
608
|
|
|
@@ -610,6 +616,8 @@ export type VisitRequestPolicy$Outbound = {
|
|
|
610
616
|
auto_checkin_visit_requests?: boolean | null | undefined;
|
|
611
617
|
auto_approve_visit_requests_with_flags?: boolean | null | undefined;
|
|
612
618
|
auto_checkin_visit_requests_with_flags?: boolean | null | undefined;
|
|
619
|
+
company_name_field?: string | undefined;
|
|
620
|
+
email_field?: string | undefined;
|
|
613
621
|
};
|
|
614
622
|
|
|
615
623
|
/** @internal */
|
|
@@ -626,6 +634,8 @@ export const VisitRequestPolicy$outboundSchema: z.ZodType<
|
|
|
626
634
|
autoCheckinVisitRequests: z.nullable(z.boolean()).optional(),
|
|
627
635
|
autoApproveVisitRequestsWithFlags: z.nullable(z.boolean()).optional(),
|
|
628
636
|
autoCheckinVisitRequestsWithFlags: z.nullable(z.boolean()).optional(),
|
|
637
|
+
companyNameField: z.string().optional(),
|
|
638
|
+
emailField: z.string().optional(),
|
|
629
639
|
}).transform((v) => {
|
|
630
640
|
return remap$(v, {
|
|
631
641
|
askQuestionsVisitRequests: "ask_questions_visit_requests",
|
|
@@ -636,6 +646,8 @@ export const VisitRequestPolicy$outboundSchema: z.ZodType<
|
|
|
636
646
|
autoCheckinVisitRequests: "auto_checkin_visit_requests",
|
|
637
647
|
autoApproveVisitRequestsWithFlags: "auto_approve_visit_requests_with_flags",
|
|
638
648
|
autoCheckinVisitRequestsWithFlags: "auto_checkin_visit_requests_with_flags",
|
|
649
|
+
companyNameField: "company_name_field",
|
|
650
|
+
emailField: "email_field",
|
|
639
651
|
});
|
|
640
652
|
});
|
|
641
653
|
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type GetVendorCredentialFileRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* ID of the vendor credential rep.
|
|
15
|
+
*/
|
|
16
|
+
vendorCredentialId: number;
|
|
17
|
+
/**
|
|
18
|
+
* The identifier of the object
|
|
19
|
+
*/
|
|
20
|
+
id: number;
|
|
21
|
+
/**
|
|
22
|
+
* An array-style parameter to identify which sections of an object to expand. See documentation for the endpoint for a list of valid expansion values.
|
|
23
|
+
*/
|
|
24
|
+
expand?: Array<components.Expand> | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const GetVendorCredentialFileRequest$inboundSchema: z.ZodType<
|
|
29
|
+
GetVendorCredentialFileRequest,
|
|
30
|
+
z.ZodTypeDef,
|
|
31
|
+
unknown
|
|
32
|
+
> = z.object({
|
|
33
|
+
vendor_credential_id: z.number().int(),
|
|
34
|
+
id: z.number().int(),
|
|
35
|
+
expand: z.array(components.Expand$inboundSchema).optional(),
|
|
36
|
+
}).transform((v) => {
|
|
37
|
+
return remap$(v, {
|
|
38
|
+
"vendor_credential_id": "vendorCredentialId",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type GetVendorCredentialFileRequest$Outbound = {
|
|
44
|
+
vendor_credential_id: number;
|
|
45
|
+
id: number;
|
|
46
|
+
expand?: Array<string> | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const GetVendorCredentialFileRequest$outboundSchema: z.ZodType<
|
|
51
|
+
GetVendorCredentialFileRequest$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
GetVendorCredentialFileRequest
|
|
54
|
+
> = z.object({
|
|
55
|
+
vendorCredentialId: z.number().int(),
|
|
56
|
+
id: z.number().int(),
|
|
57
|
+
expand: z.array(components.Expand$outboundSchema).optional(),
|
|
58
|
+
}).transform((v) => {
|
|
59
|
+
return remap$(v, {
|
|
60
|
+
vendorCredentialId: "vendor_credential_id",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
+
*/
|
|
68
|
+
export namespace GetVendorCredentialFileRequest$ {
|
|
69
|
+
/** @deprecated use `GetVendorCredentialFileRequest$inboundSchema` instead. */
|
|
70
|
+
export const inboundSchema = GetVendorCredentialFileRequest$inboundSchema;
|
|
71
|
+
/** @deprecated use `GetVendorCredentialFileRequest$outboundSchema` instead. */
|
|
72
|
+
export const outboundSchema = GetVendorCredentialFileRequest$outboundSchema;
|
|
73
|
+
/** @deprecated use `GetVendorCredentialFileRequest$Outbound` instead. */
|
|
74
|
+
export type Outbound = GetVendorCredentialFileRequest$Outbound;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function getVendorCredentialFileRequestToJSON(
|
|
78
|
+
getVendorCredentialFileRequest: GetVendorCredentialFileRequest,
|
|
79
|
+
): string {
|
|
80
|
+
return JSON.stringify(
|
|
81
|
+
GetVendorCredentialFileRequest$outboundSchema.parse(
|
|
82
|
+
getVendorCredentialFileRequest,
|
|
83
|
+
),
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function getVendorCredentialFileRequestFromJSON(
|
|
88
|
+
jsonString: string,
|
|
89
|
+
): SafeParseResult<GetVendorCredentialFileRequest, SDKValidationError> {
|
|
90
|
+
return safeParse(
|
|
91
|
+
jsonString,
|
|
92
|
+
(x) => GetVendorCredentialFileRequest$inboundSchema.parse(JSON.parse(x)),
|
|
93
|
+
`Failed to parse 'GetVendorCredentialFileRequest' from JSON`,
|
|
94
|
+
);
|
|
95
|
+
}
|
|
@@ -12,6 +12,7 @@ export * from "./getfacility.js";
|
|
|
12
12
|
export * from "./getsupportarticle.js";
|
|
13
13
|
export * from "./getuserbyid.js";
|
|
14
14
|
export * from "./getvendorcredentialdetails.js";
|
|
15
|
+
export * from "./getvendorcredentialfile.js";
|
|
15
16
|
export * from "./getvendorinvoicedetails.js";
|
|
16
17
|
export * from "./getvendorsdetails.js";
|
|
17
18
|
export * from "./getwebhookendpoint.js";
|
package/src/react-query/index.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from "./vendorsCreateVendorRegistration.js";
|
|
|
24
24
|
export * from "./vendorsDeleteVendorManagedByCompany.js";
|
|
25
25
|
export * from "./vendorsExpediteTimeRemaining.js";
|
|
26
26
|
export * from "./vendorsGetVendorCredentialDetails.js";
|
|
27
|
+
export * from "./vendorsGetVendorCredentialFile.js";
|
|
27
28
|
export * from "./vendorsGetVendorInvoiceDetails.js";
|
|
28
29
|
export * from "./vendorsGetVendorsDetails.js";
|
|
29
30
|
export * from "./vendorsListVendorAdditionalFacilityFields.js";
|