@greensecurity/javascript-sdk 0.18.2 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/bin/mcp-server.js +290 -41
- package/bin/mcp-server.js.map +30 -26
- package/funcs/vendorsListVendorFacilityStatuses.d.ts +20 -0
- package/funcs/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
- package/funcs/vendorsListVendorFacilityStatuses.js +154 -0
- package/funcs/vendorsListVendorFacilityStatuses.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +2 -8
- package/lib/sdks.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/organizationsGetFacility.js +1 -1
- package/mcp-server/tools/organizationsListOrSearchFacilities.js +1 -1
- package/mcp-server/tools/supportArticlesGetSupportArticle.js +1 -1
- package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js +1 -1
- package/mcp-server/tools/usersGetCurrentUser.js +1 -1
- package/mcp-server/tools/usersGetUserById.js +1 -1
- package/mcp-server/tools/usersLogsUserIntoTheSystem.js +1 -1
- package/mcp-server/tools/usersMagiclink.js +1 -1
- package/mcp-server/tools/usersPassword.js +1 -1
- package/mcp-server/tools/usersPasswordResetRequest.js +1 -1
- package/mcp-server/tools/vendorsCreateVendorRegistration.js +1 -1
- package/mcp-server/tools/vendorsExpediteTimeRemaining.js +1 -1
- package/mcp-server/tools/vendorsGetVendorInvoiceDetails.js +1 -1
- package/mcp-server/tools/vendorsListVendorCredentials.js +1 -1
- package/mcp-server/tools/vendorsListVendorFacilityStatuses.d.ts +8 -0
- package/mcp-server/tools/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
- package/mcp-server/tools/vendorsListVendorFacilityStatuses.js +64 -0
- package/mcp-server/tools/vendorsListVendorFacilityStatuses.js.map +1 -0
- package/mcp-server/tools/vendorsListVendorInvoices.js +1 -1
- package/mcp-server/tools/vendorsListVendorJobTitles.js +1 -1
- package/mcp-server/tools.d.ts.map +1 -1
- package/mcp-server/tools.js +3 -0
- package/mcp-server/tools.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/vendorfacilitystatusview.d.ts +42 -0
- package/models/components/vendorfacilitystatusview.d.ts.map +1 -0
- package/models/components/vendorfacilitystatusview.js +98 -0
- package/models/components/vendorfacilitystatusview.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listvendorfacilitystatuses.d.ts +106 -0
- package/models/operations/listvendorfacilitystatuses.d.ts.map +1 -0
- package/models/operations/listvendorfacilitystatuses.js +149 -0
- package/models/operations/listvendorfacilitystatuses.js.map +1 -0
- package/package.json +1 -1
- package/react-query/index.d.ts +1 -0
- package/react-query/index.d.ts.map +1 -1
- package/react-query/index.js +1 -0
- package/react-query/index.js.map +1 -1
- package/react-query/vendorsListVendorFacilityStatuses.d.ts +75 -0
- package/react-query/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
- package/react-query/vendorsListVendorFacilityStatuses.js +159 -0
- package/react-query/vendorsListVendorFacilityStatuses.js.map +1 -0
- package/sdk/vendors.d.ts +9 -0
- package/sdk/vendors.d.ts.map +1 -1
- package/sdk/vendors.js +10 -0
- package/sdk/vendors.js.map +1 -1
- package/src/__tests__/vendors.test.ts +35 -0
- package/src/funcs/vendorsListVendorFacilityStatuses.ts +240 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +2 -7
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/organizationsGetFacility.ts +1 -1
- package/src/mcp-server/tools/organizationsListOrSearchFacilities.ts +1 -1
- package/src/mcp-server/tools/supportArticlesGetSupportArticle.ts +1 -1
- package/src/mcp-server/tools/supportArticlesListOrSearchSupportArticles.ts +1 -1
- package/src/mcp-server/tools/usersGetCurrentUser.ts +1 -1
- package/src/mcp-server/tools/usersGetUserById.ts +1 -1
- package/src/mcp-server/tools/usersLogsUserIntoTheSystem.ts +1 -1
- package/src/mcp-server/tools/usersMagiclink.ts +1 -1
- package/src/mcp-server/tools/usersPassword.ts +1 -1
- package/src/mcp-server/tools/usersPasswordResetRequest.ts +1 -1
- package/src/mcp-server/tools/vendorsCreateVendorRegistration.ts +1 -1
- package/src/mcp-server/tools/vendorsExpediteTimeRemaining.ts +1 -1
- package/src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts +1 -1
- package/src/mcp-server/tools/vendorsListVendorCredentials.ts +1 -1
- package/src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts +39 -0
- package/src/mcp-server/tools/vendorsListVendorInvoices.ts +1 -1
- package/src/mcp-server/tools/vendorsListVendorJobTitles.ts +1 -1
- package/src/mcp-server/tools.ts +4 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/vendorfacilitystatusview.ts +108 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listvendorfacilitystatuses.ts +247 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/vendorsListVendorFacilityStatuses.ts +342 -0
- package/src/sdk/vendors.ts +23 -0
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$organizationsListOrSearchFacilities: ToolDefinition<
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
|
-
name: "
|
|
16
|
+
name: "organizations-list-or-search-facilities",
|
|
17
17
|
description: `List or search facilities
|
|
18
18
|
|
|
19
19
|
List or search facilities.
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$supportArticlesGetSupportArticle: ToolDefinition<
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
|
-
name: "support-
|
|
16
|
+
name: "support-articles-get-support-article",
|
|
17
17
|
description: `Get support article
|
|
18
18
|
|
|
19
19
|
Retrieve an individual support article.
|
|
@@ -13,7 +13,7 @@ const args = {
|
|
|
13
13
|
export const tool$supportArticlesListOrSearchSupportArticles: ToolDefinition<
|
|
14
14
|
typeof args
|
|
15
15
|
> = {
|
|
16
|
-
name: "support-
|
|
16
|
+
name: "support-articles-list-or-search-support-articles",
|
|
17
17
|
description: `List or search support articles
|
|
18
18
|
|
|
19
19
|
List or search support articles for FAQ.`,
|
|
@@ -6,7 +6,7 @@ import { usersGetCurrentUser } from "../../funcs/usersGetCurrentUser.js";
|
|
|
6
6
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
7
7
|
|
|
8
8
|
export const tool$usersGetCurrentUser: ToolDefinition = {
|
|
9
|
-
name: "
|
|
9
|
+
name: "users-get-current-user",
|
|
10
10
|
description: `Get current user
|
|
11
11
|
|
|
12
12
|
Returns a user object for the user represented by the authorization token`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$usersGetUserById: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "users-get-user-by-id",
|
|
15
15
|
description: `Get user by id
|
|
16
16
|
|
|
17
17
|
Returns a user object for the user represented by the identifier in the path.`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$usersLogsUserIntoTheSystem: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "users-logs-user-into-the-system",
|
|
15
15
|
description: `Logs user into the system
|
|
16
16
|
|
|
17
17
|
This endpoint allows a user to authenticate themselves and retrieve a permanent token for access.
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$usersPassword: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "users-password",
|
|
15
15
|
description: `Password reset
|
|
16
16
|
|
|
17
17
|
Resets the a user's password using a password_reset_id that was sent to them via email.
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$usersPasswordResetRequest: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "users-password-reset-request",
|
|
15
15
|
description: `Password reset request
|
|
16
16
|
|
|
17
17
|
It sends an email with a link for resetting a user's password.`,
|
|
@@ -12,7 +12,7 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$vendorsCreateVendorRegistration: ToolDefinition<typeof args> =
|
|
14
14
|
{
|
|
15
|
-
name: "
|
|
15
|
+
name: "vendors-create-vendor-registration",
|
|
16
16
|
description: `Create vendor registration
|
|
17
17
|
|
|
18
18
|
Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.`,
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$vendorsExpediteTimeRemaining: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "vendors-expedite-time-remaining",
|
|
15
15
|
description: `Expedite time remaining
|
|
16
16
|
|
|
17
17
|
For vendors who have a paid 24-hour expedite credentials invoice, get the remaining time (in seconds) for which submitted credentials will be expedited.`,
|
|
@@ -12,7 +12,7 @@ const args = {
|
|
|
12
12
|
|
|
13
13
|
export const tool$vendorsGetVendorInvoiceDetails: ToolDefinition<typeof args> =
|
|
14
14
|
{
|
|
15
|
-
name: "
|
|
15
|
+
name: "vendors-get-vendor-invoice-details",
|
|
16
16
|
description: `Get vendor invoice details
|
|
17
17
|
|
|
18
18
|
Retrieve an individual vendor invoice detais.
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$vendorsListVendorCredentials: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "vendors-list-vendor-credentials",
|
|
15
15
|
description: `List Vendor Credentials
|
|
16
16
|
|
|
17
17
|
Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { vendorsListVendorFacilityStatuses } from "../../funcs/vendorsListVendorFacilityStatuses.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ListVendorFacilityStatusesRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$vendorsListVendorFacilityStatuses: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "vendors-list-vendor-facility-statuses",
|
|
17
|
+
description: `List vendor facility statuses
|
|
18
|
+
|
|
19
|
+
List the facilities for the vendor`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] = await vendorsListVendorFacilityStatuses(
|
|
23
|
+
client,
|
|
24
|
+
args.request,
|
|
25
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
26
|
+
).$inspect();
|
|
27
|
+
|
|
28
|
+
if (!result.ok) {
|
|
29
|
+
return {
|
|
30
|
+
content: [{ type: "text", text: result.error.message }],
|
|
31
|
+
isError: true,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const value = result.value.result;
|
|
36
|
+
|
|
37
|
+
return formatResult(value, apiCall);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
@@ -11,7 +11,7 @@ const args = {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$vendorsListVendorJobTitles: ToolDefinition<typeof args> = {
|
|
14
|
-
name: "
|
|
14
|
+
name: "vendors-list-vendor-job-titles",
|
|
15
15
|
description: `List vendor job titles
|
|
16
16
|
|
|
17
17
|
List valid job titles for Vendors. This can be used during sign up or in a filter.`,
|
package/src/mcp-server/tools.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from "./supportarticle.js";
|
|
|
26
26
|
export * from "./systemsummary.js";
|
|
27
27
|
export * from "./user.js";
|
|
28
28
|
export * from "./vendorcredentialslim.js";
|
|
29
|
+
export * from "./vendorfacilitystatusview.js";
|
|
29
30
|
export * from "./vendorjobtitle.js";
|
|
30
31
|
export * from "./vendorrequiredcredential.js";
|
|
31
32
|
export * from "./vendortype.js";
|
|
@@ -0,0 +1,108 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* A representation of a vendor facility status view
|
|
13
|
+
*/
|
|
14
|
+
export type VendorFacilityStatusView = {
|
|
15
|
+
vendorId?: number | undefined;
|
|
16
|
+
facilityId?: number | undefined;
|
|
17
|
+
facilityName?: string | undefined;
|
|
18
|
+
facilityStatus?: string | null | undefined;
|
|
19
|
+
vendorScanId?: number | null | undefined;
|
|
20
|
+
vendorScanType?: number | null | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const VendorFacilityStatusView$inboundSchema: z.ZodType<
|
|
25
|
+
VendorFacilityStatusView,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
vendor_id: z.number().int().optional(),
|
|
30
|
+
facility_id: z.number().int().optional(),
|
|
31
|
+
facility_name: z.string().optional(),
|
|
32
|
+
facility_status: z.nullable(z.string()).optional(),
|
|
33
|
+
vendor_scan_id: z.nullable(z.number().int()).optional(),
|
|
34
|
+
vendor_scan_type: z.nullable(z.number().int()).optional(),
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
"vendor_id": "vendorId",
|
|
38
|
+
"facility_id": "facilityId",
|
|
39
|
+
"facility_name": "facilityName",
|
|
40
|
+
"facility_status": "facilityStatus",
|
|
41
|
+
"vendor_scan_id": "vendorScanId",
|
|
42
|
+
"vendor_scan_type": "vendorScanType",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type VendorFacilityStatusView$Outbound = {
|
|
48
|
+
vendor_id?: number | undefined;
|
|
49
|
+
facility_id?: number | undefined;
|
|
50
|
+
facility_name?: string | undefined;
|
|
51
|
+
facility_status?: string | null | undefined;
|
|
52
|
+
vendor_scan_id?: number | null | undefined;
|
|
53
|
+
vendor_scan_type?: number | null | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const VendorFacilityStatusView$outboundSchema: z.ZodType<
|
|
58
|
+
VendorFacilityStatusView$Outbound,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
VendorFacilityStatusView
|
|
61
|
+
> = z.object({
|
|
62
|
+
vendorId: z.number().int().optional(),
|
|
63
|
+
facilityId: z.number().int().optional(),
|
|
64
|
+
facilityName: z.string().optional(),
|
|
65
|
+
facilityStatus: z.nullable(z.string()).optional(),
|
|
66
|
+
vendorScanId: z.nullable(z.number().int()).optional(),
|
|
67
|
+
vendorScanType: z.nullable(z.number().int()).optional(),
|
|
68
|
+
}).transform((v) => {
|
|
69
|
+
return remap$(v, {
|
|
70
|
+
vendorId: "vendor_id",
|
|
71
|
+
facilityId: "facility_id",
|
|
72
|
+
facilityName: "facility_name",
|
|
73
|
+
facilityStatus: "facility_status",
|
|
74
|
+
vendorScanId: "vendor_scan_id",
|
|
75
|
+
vendorScanType: "vendor_scan_type",
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
82
|
+
*/
|
|
83
|
+
export namespace VendorFacilityStatusView$ {
|
|
84
|
+
/** @deprecated use `VendorFacilityStatusView$inboundSchema` instead. */
|
|
85
|
+
export const inboundSchema = VendorFacilityStatusView$inboundSchema;
|
|
86
|
+
/** @deprecated use `VendorFacilityStatusView$outboundSchema` instead. */
|
|
87
|
+
export const outboundSchema = VendorFacilityStatusView$outboundSchema;
|
|
88
|
+
/** @deprecated use `VendorFacilityStatusView$Outbound` instead. */
|
|
89
|
+
export type Outbound = VendorFacilityStatusView$Outbound;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function vendorFacilityStatusViewToJSON(
|
|
93
|
+
vendorFacilityStatusView: VendorFacilityStatusView,
|
|
94
|
+
): string {
|
|
95
|
+
return JSON.stringify(
|
|
96
|
+
VendorFacilityStatusView$outboundSchema.parse(vendorFacilityStatusView),
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function vendorFacilityStatusViewFromJSON(
|
|
101
|
+
jsonString: string,
|
|
102
|
+
): SafeParseResult<VendorFacilityStatusView, SDKValidationError> {
|
|
103
|
+
return safeParse(
|
|
104
|
+
jsonString,
|
|
105
|
+
(x) => VendorFacilityStatusView$inboundSchema.parse(JSON.parse(x)),
|
|
106
|
+
`Failed to parse 'VendorFacilityStatusView' from JSON`,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
@@ -11,6 +11,7 @@ export * from "./getvendorinvoicedetails.js";
|
|
|
11
11
|
export * from "./listorsearchfacilities.js";
|
|
12
12
|
export * from "./listorsearchsupportarticles.js";
|
|
13
13
|
export * from "./listvendorcredentials.js";
|
|
14
|
+
export * from "./listvendorfacilitystatuses.js";
|
|
14
15
|
export * from "./listvendorinvoices.js";
|
|
15
16
|
export * from "./listvendorjobtitles.js";
|
|
16
17
|
export * from "./logsuserintothesystem.js";
|
|
@@ -0,0 +1,247 @@
|
|
|
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 ListVendorFacilityStatusesRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* A comma-separated list of object attributes to sort on.
|
|
15
|
+
*/
|
|
16
|
+
sort?: string | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Sort desc
|
|
19
|
+
*/
|
|
20
|
+
desc?: components.Desc | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* A 1-based offset for which page to request (defaults to 1)
|
|
23
|
+
*/
|
|
24
|
+
page?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Number of items to show in a given page
|
|
27
|
+
*/
|
|
28
|
+
itemsPerPage?: number | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The request was successful, and the server has returned the requested resource in the response body.
|
|
33
|
+
*/
|
|
34
|
+
export type ListVendorFacilityStatusesResponseBody = {
|
|
35
|
+
items: Array<components.VendorFacilityStatusView>;
|
|
36
|
+
/**
|
|
37
|
+
* Pagination information for a pageable list
|
|
38
|
+
*/
|
|
39
|
+
pager: components.Pager;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type ListVendorFacilityStatusesResponse = {
|
|
43
|
+
result: ListVendorFacilityStatusesResponseBody;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const ListVendorFacilityStatusesRequest$inboundSchema: z.ZodType<
|
|
48
|
+
ListVendorFacilityStatusesRequest,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
unknown
|
|
51
|
+
> = z.object({
|
|
52
|
+
sort: z.nullable(z.string()).optional(),
|
|
53
|
+
desc: components.Desc$inboundSchema.optional(),
|
|
54
|
+
page: z.number().int().optional(),
|
|
55
|
+
items_per_page: z.number().int().optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
"items_per_page": "itemsPerPage",
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export type ListVendorFacilityStatusesRequest$Outbound = {
|
|
64
|
+
sort?: string | null | undefined;
|
|
65
|
+
desc?: components.Desc$Outbound | undefined;
|
|
66
|
+
page?: number | undefined;
|
|
67
|
+
items_per_page?: number | undefined;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const ListVendorFacilityStatusesRequest$outboundSchema: z.ZodType<
|
|
72
|
+
ListVendorFacilityStatusesRequest$Outbound,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
ListVendorFacilityStatusesRequest
|
|
75
|
+
> = z.object({
|
|
76
|
+
sort: z.nullable(z.string()).optional(),
|
|
77
|
+
desc: components.Desc$outboundSchema.optional(),
|
|
78
|
+
page: z.number().int().optional(),
|
|
79
|
+
itemsPerPage: z.number().int().optional(),
|
|
80
|
+
}).transform((v) => {
|
|
81
|
+
return remap$(v, {
|
|
82
|
+
itemsPerPage: "items_per_page",
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
89
|
+
*/
|
|
90
|
+
export namespace ListVendorFacilityStatusesRequest$ {
|
|
91
|
+
/** @deprecated use `ListVendorFacilityStatusesRequest$inboundSchema` instead. */
|
|
92
|
+
export const inboundSchema = ListVendorFacilityStatusesRequest$inboundSchema;
|
|
93
|
+
/** @deprecated use `ListVendorFacilityStatusesRequest$outboundSchema` instead. */
|
|
94
|
+
export const outboundSchema =
|
|
95
|
+
ListVendorFacilityStatusesRequest$outboundSchema;
|
|
96
|
+
/** @deprecated use `ListVendorFacilityStatusesRequest$Outbound` instead. */
|
|
97
|
+
export type Outbound = ListVendorFacilityStatusesRequest$Outbound;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function listVendorFacilityStatusesRequestToJSON(
|
|
101
|
+
listVendorFacilityStatusesRequest: ListVendorFacilityStatusesRequest,
|
|
102
|
+
): string {
|
|
103
|
+
return JSON.stringify(
|
|
104
|
+
ListVendorFacilityStatusesRequest$outboundSchema.parse(
|
|
105
|
+
listVendorFacilityStatusesRequest,
|
|
106
|
+
),
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function listVendorFacilityStatusesRequestFromJSON(
|
|
111
|
+
jsonString: string,
|
|
112
|
+
): SafeParseResult<ListVendorFacilityStatusesRequest, SDKValidationError> {
|
|
113
|
+
return safeParse(
|
|
114
|
+
jsonString,
|
|
115
|
+
(x) => ListVendorFacilityStatusesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
+
`Failed to parse 'ListVendorFacilityStatusesRequest' from JSON`,
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export const ListVendorFacilityStatusesResponseBody$inboundSchema: z.ZodType<
|
|
122
|
+
ListVendorFacilityStatusesResponseBody,
|
|
123
|
+
z.ZodTypeDef,
|
|
124
|
+
unknown
|
|
125
|
+
> = z.object({
|
|
126
|
+
items: z.array(components.VendorFacilityStatusView$inboundSchema),
|
|
127
|
+
pager: components.Pager$inboundSchema,
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
/** @internal */
|
|
131
|
+
export type ListVendorFacilityStatusesResponseBody$Outbound = {
|
|
132
|
+
items: Array<components.VendorFacilityStatusView$Outbound>;
|
|
133
|
+
pager: components.Pager$Outbound;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
/** @internal */
|
|
137
|
+
export const ListVendorFacilityStatusesResponseBody$outboundSchema: z.ZodType<
|
|
138
|
+
ListVendorFacilityStatusesResponseBody$Outbound,
|
|
139
|
+
z.ZodTypeDef,
|
|
140
|
+
ListVendorFacilityStatusesResponseBody
|
|
141
|
+
> = z.object({
|
|
142
|
+
items: z.array(components.VendorFacilityStatusView$outboundSchema),
|
|
143
|
+
pager: components.Pager$outboundSchema,
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @internal
|
|
148
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
149
|
+
*/
|
|
150
|
+
export namespace ListVendorFacilityStatusesResponseBody$ {
|
|
151
|
+
/** @deprecated use `ListVendorFacilityStatusesResponseBody$inboundSchema` instead. */
|
|
152
|
+
export const inboundSchema =
|
|
153
|
+
ListVendorFacilityStatusesResponseBody$inboundSchema;
|
|
154
|
+
/** @deprecated use `ListVendorFacilityStatusesResponseBody$outboundSchema` instead. */
|
|
155
|
+
export const outboundSchema =
|
|
156
|
+
ListVendorFacilityStatusesResponseBody$outboundSchema;
|
|
157
|
+
/** @deprecated use `ListVendorFacilityStatusesResponseBody$Outbound` instead. */
|
|
158
|
+
export type Outbound = ListVendorFacilityStatusesResponseBody$Outbound;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function listVendorFacilityStatusesResponseBodyToJSON(
|
|
162
|
+
listVendorFacilityStatusesResponseBody:
|
|
163
|
+
ListVendorFacilityStatusesResponseBody,
|
|
164
|
+
): string {
|
|
165
|
+
return JSON.stringify(
|
|
166
|
+
ListVendorFacilityStatusesResponseBody$outboundSchema.parse(
|
|
167
|
+
listVendorFacilityStatusesResponseBody,
|
|
168
|
+
),
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export function listVendorFacilityStatusesResponseBodyFromJSON(
|
|
173
|
+
jsonString: string,
|
|
174
|
+
): SafeParseResult<ListVendorFacilityStatusesResponseBody, SDKValidationError> {
|
|
175
|
+
return safeParse(
|
|
176
|
+
jsonString,
|
|
177
|
+
(x) =>
|
|
178
|
+
ListVendorFacilityStatusesResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
179
|
+
`Failed to parse 'ListVendorFacilityStatusesResponseBody' from JSON`,
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/** @internal */
|
|
184
|
+
export const ListVendorFacilityStatusesResponse$inboundSchema: z.ZodType<
|
|
185
|
+
ListVendorFacilityStatusesResponse,
|
|
186
|
+
z.ZodTypeDef,
|
|
187
|
+
unknown
|
|
188
|
+
> = z.object({
|
|
189
|
+
Result: z.lazy(() => ListVendorFacilityStatusesResponseBody$inboundSchema),
|
|
190
|
+
}).transform((v) => {
|
|
191
|
+
return remap$(v, {
|
|
192
|
+
"Result": "result",
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
/** @internal */
|
|
197
|
+
export type ListVendorFacilityStatusesResponse$Outbound = {
|
|
198
|
+
Result: ListVendorFacilityStatusesResponseBody$Outbound;
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
/** @internal */
|
|
202
|
+
export const ListVendorFacilityStatusesResponse$outboundSchema: z.ZodType<
|
|
203
|
+
ListVendorFacilityStatusesResponse$Outbound,
|
|
204
|
+
z.ZodTypeDef,
|
|
205
|
+
ListVendorFacilityStatusesResponse
|
|
206
|
+
> = z.object({
|
|
207
|
+
result: z.lazy(() => ListVendorFacilityStatusesResponseBody$outboundSchema),
|
|
208
|
+
}).transform((v) => {
|
|
209
|
+
return remap$(v, {
|
|
210
|
+
result: "Result",
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* @internal
|
|
216
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
217
|
+
*/
|
|
218
|
+
export namespace ListVendorFacilityStatusesResponse$ {
|
|
219
|
+
/** @deprecated use `ListVendorFacilityStatusesResponse$inboundSchema` instead. */
|
|
220
|
+
export const inboundSchema = ListVendorFacilityStatusesResponse$inboundSchema;
|
|
221
|
+
/** @deprecated use `ListVendorFacilityStatusesResponse$outboundSchema` instead. */
|
|
222
|
+
export const outboundSchema =
|
|
223
|
+
ListVendorFacilityStatusesResponse$outboundSchema;
|
|
224
|
+
/** @deprecated use `ListVendorFacilityStatusesResponse$Outbound` instead. */
|
|
225
|
+
export type Outbound = ListVendorFacilityStatusesResponse$Outbound;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export function listVendorFacilityStatusesResponseToJSON(
|
|
229
|
+
listVendorFacilityStatusesResponse: ListVendorFacilityStatusesResponse,
|
|
230
|
+
): string {
|
|
231
|
+
return JSON.stringify(
|
|
232
|
+
ListVendorFacilityStatusesResponse$outboundSchema.parse(
|
|
233
|
+
listVendorFacilityStatusesResponse,
|
|
234
|
+
),
|
|
235
|
+
);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export function listVendorFacilityStatusesResponseFromJSON(
|
|
239
|
+
jsonString: string,
|
|
240
|
+
): SafeParseResult<ListVendorFacilityStatusesResponse, SDKValidationError> {
|
|
241
|
+
return safeParse(
|
|
242
|
+
jsonString,
|
|
243
|
+
(x) =>
|
|
244
|
+
ListVendorFacilityStatusesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
245
|
+
`Failed to parse 'ListVendorFacilityStatusesResponse' from JSON`,
|
|
246
|
+
);
|
|
247
|
+
}
|
package/src/react-query/index.ts
CHANGED
|
@@ -19,5 +19,6 @@ export * from "./vendorsCreateVendorRegistration.js";
|
|
|
19
19
|
export * from "./vendorsExpediteTimeRemaining.js";
|
|
20
20
|
export * from "./vendorsGetVendorInvoiceDetails.js";
|
|
21
21
|
export * from "./vendorsListVendorCredentials.js";
|
|
22
|
+
export * from "./vendorsListVendorFacilityStatuses.js";
|
|
22
23
|
export * from "./vendorsListVendorInvoices.js";
|
|
23
24
|
export * from "./vendorsListVendorJobTitles.js";
|