@greensecurity/javascript-sdk 0.30.35 → 0.30.39
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 +9 -0
- package/bin/mcp-server.js +1037 -16
- package/bin/mcp-server.js.map +18 -9
- package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js +1 -1
- package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +1 -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.d.ts +2 -0
- package/dist/commonjs/__tests__/zones.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/zones.test.js +64 -0
- package/dist/commonjs/__tests__/zones.test.js.map +1 -0
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts +20 -0
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -0
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js +160 -0
- package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js.map +1 -0
- package/dist/commonjs/funcs/zonesSecurityZoneCheckin.d.ts +18 -0
- package/dist/commonjs/funcs/zonesSecurityZoneCheckin.d.ts.map +1 -0
- package/dist/commonjs/funcs/zonesSecurityZoneCheckin.js +116 -0
- package/dist/commonjs/funcs/zonesSecurityZoneCheckin.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/sdks.d.ts +3 -1
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +6 -11
- package/dist/commonjs/lib/sdks.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 +5 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/zonesListOrSearchSecurityZones.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/zonesListOrSearchSecurityZones.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/zonesListOrSearchSecurityZones.js +64 -0
- package/dist/commonjs/mcp-server/tools/zonesListOrSearchSecurityZones.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/zonesSecurityZoneCheckin.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/zonesSecurityZoneCheckin.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/zonesSecurityZoneCheckin.js +64 -0
- package/dist/commonjs/mcp-server/tools/zonesSecurityZoneCheckin.js.map +1 -0
- package/dist/commonjs/models/components/handoff.d.ts +50 -0
- package/dist/commonjs/models/components/handoff.d.ts.map +1 -0
- package/dist/commonjs/models/components/handoff.js +101 -0
- package/dist/commonjs/models/components/handoff.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +3 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +3 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/zone.d.ts +354 -0
- package/dist/commonjs/models/components/zone.d.ts.map +1 -0
- package/dist/commonjs/models/components/zone.js +538 -0
- package/dist/commonjs/models/components/zone.js.map +1 -0
- package/dist/commonjs/models/components/zoneconfig.d.ts +298 -0
- package/dist/commonjs/models/components/zoneconfig.d.ts.map +1 -0
- package/dist/commonjs/models/components/zoneconfig.js +454 -0
- package/dist/commonjs/models/components/zoneconfig.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts +136 -0
- package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listorsearchsecurityzones.js +169 -0
- package/dist/commonjs/models/operations/listorsearchsecurityzones.js.map +1 -0
- package/dist/commonjs/models/operations/securityzonecheckin.d.ts +85 -0
- package/dist/commonjs/models/operations/securityzonecheckin.d.ts.map +1 -0
- package/dist/commonjs/models/operations/securityzonecheckin.js +147 -0
- package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +2 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +2 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts +93 -0
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -0
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js +171 -0
- package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js.map +1 -0
- package/dist/commonjs/react-query/zonesSecurityZoneCheckin.d.ts +24 -0
- package/dist/commonjs/react-query/zonesSecurityZoneCheckin.d.ts.map +1 -0
- package/dist/commonjs/react-query/zonesSecurityZoneCheckin.js +47 -0
- package/dist/commonjs/react-query/zonesSecurityZoneCheckin.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/zones.d.ts +23 -0
- package/dist/commonjs/sdk/zones.d.ts.map +1 -0
- package/dist/commonjs/sdk/zones.js +33 -0
- package/dist/commonjs/sdk/zones.js.map +1 -0
- package/dist/esm/__tests__/vendormanagedbycompanies.test.js +1 -1
- package/dist/esm/__tests__/vendormanagedbycompanies.test.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +1 -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.d.ts +2 -0
- package/dist/esm/__tests__/zones.test.d.ts.map +1 -0
- package/dist/esm/__tests__/zones.test.js +62 -0
- package/dist/esm/__tests__/zones.test.js.map +1 -0
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts +20 -0
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -0
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.js +124 -0
- package/dist/esm/funcs/zonesListOrSearchSecurityZones.js.map +1 -0
- package/dist/esm/funcs/zonesSecurityZoneCheckin.d.ts +18 -0
- package/dist/esm/funcs/zonesSecurityZoneCheckin.d.ts.map +1 -0
- package/dist/esm/funcs/zonesSecurityZoneCheckin.js +80 -0
- package/dist/esm/funcs/zonesSecurityZoneCheckin.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/sdks.d.ts +3 -1
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +6 -11
- package/dist/esm/lib/sdks.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 +5 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/zonesListOrSearchSecurityZones.d.ts +8 -0
- package/dist/esm/mcp-server/tools/zonesListOrSearchSecurityZones.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/zonesListOrSearchSecurityZones.js +28 -0
- package/dist/esm/mcp-server/tools/zonesListOrSearchSecurityZones.js.map +1 -0
- package/dist/esm/mcp-server/tools/zonesSecurityZoneCheckin.d.ts +8 -0
- package/dist/esm/mcp-server/tools/zonesSecurityZoneCheckin.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/zonesSecurityZoneCheckin.js +28 -0
- package/dist/esm/mcp-server/tools/zonesSecurityZoneCheckin.js.map +1 -0
- package/dist/esm/models/components/handoff.d.ts +50 -0
- package/dist/esm/models/components/handoff.d.ts.map +1 -0
- package/dist/esm/models/components/handoff.js +63 -0
- package/dist/esm/models/components/handoff.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +3 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +3 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/zone.d.ts +354 -0
- package/dist/esm/models/components/zone.d.ts.map +1 -0
- package/dist/esm/models/components/zone.js +482 -0
- package/dist/esm/models/components/zone.js.map +1 -0
- package/dist/esm/models/components/zoneconfig.d.ts +298 -0
- package/dist/esm/models/components/zoneconfig.d.ts.map +1 -0
- package/dist/esm/models/components/zoneconfig.js +400 -0
- package/dist/esm/models/components/zoneconfig.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listorsearchsecurityzones.d.ts +136 -0
- package/dist/esm/models/operations/listorsearchsecurityzones.d.ts.map +1 -0
- package/dist/esm/models/operations/listorsearchsecurityzones.js +127 -0
- package/dist/esm/models/operations/listorsearchsecurityzones.js.map +1 -0
- package/dist/esm/models/operations/securityzonecheckin.d.ts +85 -0
- package/dist/esm/models/operations/securityzonecheckin.d.ts.map +1 -0
- package/dist/esm/models/operations/securityzonecheckin.js +105 -0
- package/dist/esm/models/operations/securityzonecheckin.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +2 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +2 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts +93 -0
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -0
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.js +158 -0
- package/dist/esm/react-query/zonesListOrSearchSecurityZones.js.map +1 -0
- package/dist/esm/react-query/zonesSecurityZoneCheckin.d.ts +24 -0
- package/dist/esm/react-query/zonesSecurityZoneCheckin.d.ts.map +1 -0
- package/dist/esm/react-query/zonesSecurityZoneCheckin.js +42 -0
- package/dist/esm/react-query/zonesSecurityZoneCheckin.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/zones.d.ts +23 -0
- package/dist/esm/sdk/zones.d.ts.map +1 -0
- package/dist/esm/sdk/zones.js +29 -0
- package/dist/esm/sdk/zones.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendormanagedbycompanies.test.ts +1 -1
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +68 -0
- package/src/funcs/zonesListOrSearchSecurityZones.ts +246 -0
- package/src/funcs/zonesSecurityZoneCheckin.ts +168 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +11 -11
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/zonesListOrSearchSecurityZones.ts +38 -0
- package/src/mcp-server/tools/zonesSecurityZoneCheckin.ts +37 -0
- package/src/models/components/handoff.ts +116 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/zone.ts +907 -0
- package/src/models/components/zoneconfig.ts +761 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listorsearchsecurityzones.ts +294 -0
- package/src/models/operations/securityzonecheckin.ts +192 -0
- package/src/react-query/index.ts +2 -0
- package/src/react-query/zonesListOrSearchSecurityZones.ts +370 -0
- package/src/react-query/zonesSecurityZoneCheckin.ts +89 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/zones.ts +49 -0
|
@@ -17,6 +17,7 @@ export * from "./getwebhookendpoint.js";
|
|
|
17
17
|
export * from "./listallwebhookendpoints.js";
|
|
18
18
|
export * from "./listorsearchcompanies.js";
|
|
19
19
|
export * from "./listorsearchfacilities.js";
|
|
20
|
+
export * from "./listorsearchsecurityzones.js";
|
|
20
21
|
export * from "./listorsearchsupportarticles.js";
|
|
21
22
|
export * from "./listvendoradditionalfacilityfields.js";
|
|
22
23
|
export * from "./listvendorcredentials.js";
|
|
@@ -33,6 +34,7 @@ export * from "./magiclink.js";
|
|
|
33
34
|
export * from "./password.js";
|
|
34
35
|
export * from "./passwordresetrequest.js";
|
|
35
36
|
export * from "./purchasescrubcredits.js";
|
|
37
|
+
export * from "./securityzonecheckin.js";
|
|
36
38
|
export * from "./updatevendordetails.js";
|
|
37
39
|
export * from "./updatevendormanagedbycompany.js";
|
|
38
40
|
export * from "./updatevendorscrubdetails.js";
|
|
@@ -0,0 +1,294 @@
|
|
|
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 ListOrSearchSecurityZonesRequest = {
|
|
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
|
+
* The latitude of the current Geo coordinates
|
|
31
|
+
*/
|
|
32
|
+
latitude?: number | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* The longitude of the current Geo coordinates
|
|
35
|
+
*/
|
|
36
|
+
longitude?: number | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* A partial string to search in the object name. Do not include any wildcard characters. Searches are not case-sensitive by default.
|
|
39
|
+
*/
|
|
40
|
+
nameLike?: string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* The contact_id value
|
|
43
|
+
*/
|
|
44
|
+
contactId?: number | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The ID associated with a medical facility
|
|
47
|
+
*/
|
|
48
|
+
facilityId?: number | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* The green_location_id associated with a medical facility
|
|
51
|
+
*/
|
|
52
|
+
greenLocationId?: number | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The request was successful, and the server has returned the requested resource in the response body.
|
|
57
|
+
*/
|
|
58
|
+
export type ListOrSearchSecurityZonesResponseBody = {
|
|
59
|
+
/**
|
|
60
|
+
* Pagination information for a pageable list
|
|
61
|
+
*/
|
|
62
|
+
pager: components.Pager;
|
|
63
|
+
items: Array<components.Zone>;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export type ListOrSearchSecurityZonesResponse = {
|
|
67
|
+
result: ListOrSearchSecurityZonesResponseBody;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const ListOrSearchSecurityZonesRequest$inboundSchema: z.ZodType<
|
|
72
|
+
ListOrSearchSecurityZonesRequest,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
unknown
|
|
75
|
+
> = z.object({
|
|
76
|
+
sort: z.nullable(z.string()).optional(),
|
|
77
|
+
desc: components.Desc$inboundSchema.optional(),
|
|
78
|
+
page: z.number().int().optional(),
|
|
79
|
+
items_per_page: z.number().int().optional(),
|
|
80
|
+
latitude: z.number().optional(),
|
|
81
|
+
longitude: z.number().optional(),
|
|
82
|
+
name_like: z.string().optional(),
|
|
83
|
+
contact_id: z.number().optional(),
|
|
84
|
+
facility_id: z.number().optional(),
|
|
85
|
+
green_location_id: z.number().optional(),
|
|
86
|
+
}).transform((v) => {
|
|
87
|
+
return remap$(v, {
|
|
88
|
+
"items_per_page": "itemsPerPage",
|
|
89
|
+
"name_like": "nameLike",
|
|
90
|
+
"contact_id": "contactId",
|
|
91
|
+
"facility_id": "facilityId",
|
|
92
|
+
"green_location_id": "greenLocationId",
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export type ListOrSearchSecurityZonesRequest$Outbound = {
|
|
98
|
+
sort?: string | null | undefined;
|
|
99
|
+
desc?: components.Desc$Outbound | undefined;
|
|
100
|
+
page?: number | undefined;
|
|
101
|
+
items_per_page?: number | undefined;
|
|
102
|
+
latitude?: number | undefined;
|
|
103
|
+
longitude?: number | undefined;
|
|
104
|
+
name_like?: string | undefined;
|
|
105
|
+
contact_id?: number | undefined;
|
|
106
|
+
facility_id?: number | undefined;
|
|
107
|
+
green_location_id?: number | undefined;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
/** @internal */
|
|
111
|
+
export const ListOrSearchSecurityZonesRequest$outboundSchema: z.ZodType<
|
|
112
|
+
ListOrSearchSecurityZonesRequest$Outbound,
|
|
113
|
+
z.ZodTypeDef,
|
|
114
|
+
ListOrSearchSecurityZonesRequest
|
|
115
|
+
> = z.object({
|
|
116
|
+
sort: z.nullable(z.string()).optional(),
|
|
117
|
+
desc: components.Desc$outboundSchema.optional(),
|
|
118
|
+
page: z.number().int().optional(),
|
|
119
|
+
itemsPerPage: z.number().int().optional(),
|
|
120
|
+
latitude: z.number().optional(),
|
|
121
|
+
longitude: z.number().optional(),
|
|
122
|
+
nameLike: z.string().optional(),
|
|
123
|
+
contactId: z.number().optional(),
|
|
124
|
+
facilityId: z.number().optional(),
|
|
125
|
+
greenLocationId: z.number().optional(),
|
|
126
|
+
}).transform((v) => {
|
|
127
|
+
return remap$(v, {
|
|
128
|
+
itemsPerPage: "items_per_page",
|
|
129
|
+
nameLike: "name_like",
|
|
130
|
+
contactId: "contact_id",
|
|
131
|
+
facilityId: "facility_id",
|
|
132
|
+
greenLocationId: "green_location_id",
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* @internal
|
|
138
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
139
|
+
*/
|
|
140
|
+
export namespace ListOrSearchSecurityZonesRequest$ {
|
|
141
|
+
/** @deprecated use `ListOrSearchSecurityZonesRequest$inboundSchema` instead. */
|
|
142
|
+
export const inboundSchema = ListOrSearchSecurityZonesRequest$inboundSchema;
|
|
143
|
+
/** @deprecated use `ListOrSearchSecurityZonesRequest$outboundSchema` instead. */
|
|
144
|
+
export const outboundSchema = ListOrSearchSecurityZonesRequest$outboundSchema;
|
|
145
|
+
/** @deprecated use `ListOrSearchSecurityZonesRequest$Outbound` instead. */
|
|
146
|
+
export type Outbound = ListOrSearchSecurityZonesRequest$Outbound;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function listOrSearchSecurityZonesRequestToJSON(
|
|
150
|
+
listOrSearchSecurityZonesRequest: ListOrSearchSecurityZonesRequest,
|
|
151
|
+
): string {
|
|
152
|
+
return JSON.stringify(
|
|
153
|
+
ListOrSearchSecurityZonesRequest$outboundSchema.parse(
|
|
154
|
+
listOrSearchSecurityZonesRequest,
|
|
155
|
+
),
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function listOrSearchSecurityZonesRequestFromJSON(
|
|
160
|
+
jsonString: string,
|
|
161
|
+
): SafeParseResult<ListOrSearchSecurityZonesRequest, SDKValidationError> {
|
|
162
|
+
return safeParse(
|
|
163
|
+
jsonString,
|
|
164
|
+
(x) => ListOrSearchSecurityZonesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
165
|
+
`Failed to parse 'ListOrSearchSecurityZonesRequest' from JSON`,
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/** @internal */
|
|
170
|
+
export const ListOrSearchSecurityZonesResponseBody$inboundSchema: z.ZodType<
|
|
171
|
+
ListOrSearchSecurityZonesResponseBody,
|
|
172
|
+
z.ZodTypeDef,
|
|
173
|
+
unknown
|
|
174
|
+
> = z.object({
|
|
175
|
+
pager: components.Pager$inboundSchema,
|
|
176
|
+
items: z.array(components.Zone$inboundSchema),
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
/** @internal */
|
|
180
|
+
export type ListOrSearchSecurityZonesResponseBody$Outbound = {
|
|
181
|
+
pager: components.Pager$Outbound;
|
|
182
|
+
items: Array<components.Zone$Outbound>;
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
/** @internal */
|
|
186
|
+
export const ListOrSearchSecurityZonesResponseBody$outboundSchema: z.ZodType<
|
|
187
|
+
ListOrSearchSecurityZonesResponseBody$Outbound,
|
|
188
|
+
z.ZodTypeDef,
|
|
189
|
+
ListOrSearchSecurityZonesResponseBody
|
|
190
|
+
> = z.object({
|
|
191
|
+
pager: components.Pager$outboundSchema,
|
|
192
|
+
items: z.array(components.Zone$outboundSchema),
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @internal
|
|
197
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
198
|
+
*/
|
|
199
|
+
export namespace ListOrSearchSecurityZonesResponseBody$ {
|
|
200
|
+
/** @deprecated use `ListOrSearchSecurityZonesResponseBody$inboundSchema` instead. */
|
|
201
|
+
export const inboundSchema =
|
|
202
|
+
ListOrSearchSecurityZonesResponseBody$inboundSchema;
|
|
203
|
+
/** @deprecated use `ListOrSearchSecurityZonesResponseBody$outboundSchema` instead. */
|
|
204
|
+
export const outboundSchema =
|
|
205
|
+
ListOrSearchSecurityZonesResponseBody$outboundSchema;
|
|
206
|
+
/** @deprecated use `ListOrSearchSecurityZonesResponseBody$Outbound` instead. */
|
|
207
|
+
export type Outbound = ListOrSearchSecurityZonesResponseBody$Outbound;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export function listOrSearchSecurityZonesResponseBodyToJSON(
|
|
211
|
+
listOrSearchSecurityZonesResponseBody: ListOrSearchSecurityZonesResponseBody,
|
|
212
|
+
): string {
|
|
213
|
+
return JSON.stringify(
|
|
214
|
+
ListOrSearchSecurityZonesResponseBody$outboundSchema.parse(
|
|
215
|
+
listOrSearchSecurityZonesResponseBody,
|
|
216
|
+
),
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export function listOrSearchSecurityZonesResponseBodyFromJSON(
|
|
221
|
+
jsonString: string,
|
|
222
|
+
): SafeParseResult<ListOrSearchSecurityZonesResponseBody, SDKValidationError> {
|
|
223
|
+
return safeParse(
|
|
224
|
+
jsonString,
|
|
225
|
+
(x) =>
|
|
226
|
+
ListOrSearchSecurityZonesResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
227
|
+
`Failed to parse 'ListOrSearchSecurityZonesResponseBody' from JSON`,
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/** @internal */
|
|
232
|
+
export const ListOrSearchSecurityZonesResponse$inboundSchema: z.ZodType<
|
|
233
|
+
ListOrSearchSecurityZonesResponse,
|
|
234
|
+
z.ZodTypeDef,
|
|
235
|
+
unknown
|
|
236
|
+
> = z.object({
|
|
237
|
+
Result: z.lazy(() => ListOrSearchSecurityZonesResponseBody$inboundSchema),
|
|
238
|
+
}).transform((v) => {
|
|
239
|
+
return remap$(v, {
|
|
240
|
+
"Result": "result",
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
/** @internal */
|
|
245
|
+
export type ListOrSearchSecurityZonesResponse$Outbound = {
|
|
246
|
+
Result: ListOrSearchSecurityZonesResponseBody$Outbound;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
/** @internal */
|
|
250
|
+
export const ListOrSearchSecurityZonesResponse$outboundSchema: z.ZodType<
|
|
251
|
+
ListOrSearchSecurityZonesResponse$Outbound,
|
|
252
|
+
z.ZodTypeDef,
|
|
253
|
+
ListOrSearchSecurityZonesResponse
|
|
254
|
+
> = z.object({
|
|
255
|
+
result: z.lazy(() => ListOrSearchSecurityZonesResponseBody$outboundSchema),
|
|
256
|
+
}).transform((v) => {
|
|
257
|
+
return remap$(v, {
|
|
258
|
+
result: "Result",
|
|
259
|
+
});
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @internal
|
|
264
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
265
|
+
*/
|
|
266
|
+
export namespace ListOrSearchSecurityZonesResponse$ {
|
|
267
|
+
/** @deprecated use `ListOrSearchSecurityZonesResponse$inboundSchema` instead. */
|
|
268
|
+
export const inboundSchema = ListOrSearchSecurityZonesResponse$inboundSchema;
|
|
269
|
+
/** @deprecated use `ListOrSearchSecurityZonesResponse$outboundSchema` instead. */
|
|
270
|
+
export const outboundSchema =
|
|
271
|
+
ListOrSearchSecurityZonesResponse$outboundSchema;
|
|
272
|
+
/** @deprecated use `ListOrSearchSecurityZonesResponse$Outbound` instead. */
|
|
273
|
+
export type Outbound = ListOrSearchSecurityZonesResponse$Outbound;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export function listOrSearchSecurityZonesResponseToJSON(
|
|
277
|
+
listOrSearchSecurityZonesResponse: ListOrSearchSecurityZonesResponse,
|
|
278
|
+
): string {
|
|
279
|
+
return JSON.stringify(
|
|
280
|
+
ListOrSearchSecurityZonesResponse$outboundSchema.parse(
|
|
281
|
+
listOrSearchSecurityZonesResponse,
|
|
282
|
+
),
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export function listOrSearchSecurityZonesResponseFromJSON(
|
|
287
|
+
jsonString: string,
|
|
288
|
+
): SafeParseResult<ListOrSearchSecurityZonesResponse, SDKValidationError> {
|
|
289
|
+
return safeParse(
|
|
290
|
+
jsonString,
|
|
291
|
+
(x) => ListOrSearchSecurityZonesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
292
|
+
`Failed to parse 'ListOrSearchSecurityZonesResponse' from JSON`,
|
|
293
|
+
);
|
|
294
|
+
}
|
|
@@ -0,0 +1,192 @@
|
|
|
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
|
+
export type Two = {
|
|
12
|
+
/**
|
|
13
|
+
* QR code representing an existing handoff
|
|
14
|
+
*/
|
|
15
|
+
qrCode: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type One = {
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the zone
|
|
21
|
+
*/
|
|
22
|
+
zoneId: number;
|
|
23
|
+
longitude?: any | undefined;
|
|
24
|
+
latitude?: any | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type SecurityZoneCheckinRequestBody = Two | One;
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z
|
|
31
|
+
.object({
|
|
32
|
+
qr_code: z.string(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"qr_code": "qrCode",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type Two$Outbound = {
|
|
41
|
+
qr_code: string;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
|
|
46
|
+
.object({
|
|
47
|
+
qrCode: z.string(),
|
|
48
|
+
}).transform((v) => {
|
|
49
|
+
return remap$(v, {
|
|
50
|
+
qrCode: "qr_code",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export namespace Two$ {
|
|
59
|
+
/** @deprecated use `Two$inboundSchema` instead. */
|
|
60
|
+
export const inboundSchema = Two$inboundSchema;
|
|
61
|
+
/** @deprecated use `Two$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema = Two$outboundSchema;
|
|
63
|
+
/** @deprecated use `Two$Outbound` instead. */
|
|
64
|
+
export type Outbound = Two$Outbound;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function twoToJSON(two: Two): string {
|
|
68
|
+
return JSON.stringify(Two$outboundSchema.parse(two));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function twoFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<Two, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) => Two$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
+
`Failed to parse 'Two' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
|
|
83
|
+
.object({
|
|
84
|
+
zone_id: z.number().int(),
|
|
85
|
+
longitude: z.any().optional(),
|
|
86
|
+
latitude: z.any().optional(),
|
|
87
|
+
}).transform((v) => {
|
|
88
|
+
return remap$(v, {
|
|
89
|
+
"zone_id": "zoneId",
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export type One$Outbound = {
|
|
95
|
+
zone_id: number;
|
|
96
|
+
longitude?: any | undefined;
|
|
97
|
+
latitude?: any | undefined;
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
|
|
102
|
+
.object({
|
|
103
|
+
zoneId: z.number().int(),
|
|
104
|
+
longitude: z.any().optional(),
|
|
105
|
+
latitude: z.any().optional(),
|
|
106
|
+
}).transform((v) => {
|
|
107
|
+
return remap$(v, {
|
|
108
|
+
zoneId: "zone_id",
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* @internal
|
|
114
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
115
|
+
*/
|
|
116
|
+
export namespace One$ {
|
|
117
|
+
/** @deprecated use `One$inboundSchema` instead. */
|
|
118
|
+
export const inboundSchema = One$inboundSchema;
|
|
119
|
+
/** @deprecated use `One$outboundSchema` instead. */
|
|
120
|
+
export const outboundSchema = One$outboundSchema;
|
|
121
|
+
/** @deprecated use `One$Outbound` instead. */
|
|
122
|
+
export type Outbound = One$Outbound;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function oneToJSON(one: One): string {
|
|
126
|
+
return JSON.stringify(One$outboundSchema.parse(one));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function oneFromJSON(
|
|
130
|
+
jsonString: string,
|
|
131
|
+
): SafeParseResult<One, SDKValidationError> {
|
|
132
|
+
return safeParse(
|
|
133
|
+
jsonString,
|
|
134
|
+
(x) => One$inboundSchema.parse(JSON.parse(x)),
|
|
135
|
+
`Failed to parse 'One' from JSON`,
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/** @internal */
|
|
140
|
+
export const SecurityZoneCheckinRequestBody$inboundSchema: z.ZodType<
|
|
141
|
+
SecurityZoneCheckinRequestBody,
|
|
142
|
+
z.ZodTypeDef,
|
|
143
|
+
unknown
|
|
144
|
+
> = z.union([z.lazy(() => Two$inboundSchema), z.lazy(() => One$inboundSchema)]);
|
|
145
|
+
|
|
146
|
+
/** @internal */
|
|
147
|
+
export type SecurityZoneCheckinRequestBody$Outbound =
|
|
148
|
+
| Two$Outbound
|
|
149
|
+
| One$Outbound;
|
|
150
|
+
|
|
151
|
+
/** @internal */
|
|
152
|
+
export const SecurityZoneCheckinRequestBody$outboundSchema: z.ZodType<
|
|
153
|
+
SecurityZoneCheckinRequestBody$Outbound,
|
|
154
|
+
z.ZodTypeDef,
|
|
155
|
+
SecurityZoneCheckinRequestBody
|
|
156
|
+
> = z.union([
|
|
157
|
+
z.lazy(() => Two$outboundSchema),
|
|
158
|
+
z.lazy(() => One$outboundSchema),
|
|
159
|
+
]);
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @internal
|
|
163
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
164
|
+
*/
|
|
165
|
+
export namespace SecurityZoneCheckinRequestBody$ {
|
|
166
|
+
/** @deprecated use `SecurityZoneCheckinRequestBody$inboundSchema` instead. */
|
|
167
|
+
export const inboundSchema = SecurityZoneCheckinRequestBody$inboundSchema;
|
|
168
|
+
/** @deprecated use `SecurityZoneCheckinRequestBody$outboundSchema` instead. */
|
|
169
|
+
export const outboundSchema = SecurityZoneCheckinRequestBody$outboundSchema;
|
|
170
|
+
/** @deprecated use `SecurityZoneCheckinRequestBody$Outbound` instead. */
|
|
171
|
+
export type Outbound = SecurityZoneCheckinRequestBody$Outbound;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function securityZoneCheckinRequestBodyToJSON(
|
|
175
|
+
securityZoneCheckinRequestBody: SecurityZoneCheckinRequestBody,
|
|
176
|
+
): string {
|
|
177
|
+
return JSON.stringify(
|
|
178
|
+
SecurityZoneCheckinRequestBody$outboundSchema.parse(
|
|
179
|
+
securityZoneCheckinRequestBody,
|
|
180
|
+
),
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export function securityZoneCheckinRequestBodyFromJSON(
|
|
185
|
+
jsonString: string,
|
|
186
|
+
): SafeParseResult<SecurityZoneCheckinRequestBody, SDKValidationError> {
|
|
187
|
+
return safeParse(
|
|
188
|
+
jsonString,
|
|
189
|
+
(x) => SecurityZoneCheckinRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
190
|
+
`Failed to parse 'SecurityZoneCheckinRequestBody' from JSON`,
|
|
191
|
+
);
|
|
192
|
+
}
|
package/src/react-query/index.ts
CHANGED
|
@@ -41,3 +41,5 @@ export * from "./vendorsUpdateVendorManagedByCompany.js";
|
|
|
41
41
|
export * from "./vendorsUpdateVendorScrubDetails.js";
|
|
42
42
|
export * from "./webhooksGetWebhookEndpoint.js";
|
|
43
43
|
export * from "./webhooksListAllWebhookEndpoints.js";
|
|
44
|
+
export * from "./zonesListOrSearchSecurityZones.js";
|
|
45
|
+
export * from "./zonesSecurityZoneCheckin.js";
|