@greensecurity/javascript-sdk 0.30.33 → 0.30.37
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 +12 -0
- package/bin/mcp-server.js +1338 -520
- package/bin/mcp-server.js.map +30 -25
- package/dist/commonjs/__tests__/vendors.test.js +2 -2
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +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 +45 -0
- package/dist/commonjs/__tests__/zones.test.js.map +1 -0
- package/dist/commonjs/funcs/vendorsCreateVendorRegistration.d.ts +2 -1
- package/dist/commonjs/funcs/vendorsCreateVendorRegistration.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsCreateVendorRegistration.js +3 -3
- package/dist/commonjs/funcs/vendorsCreateVendorRegistration.js.map +1 -1
- 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/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- 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 +3 -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/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/user.d.ts +6 -6
- package/dist/commonjs/models/components/user.d.ts.map +1 -1
- package/dist/commonjs/models/components/user.js +6 -6
- package/dist/commonjs/models/components/user.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/createvendorregistration.d.ts +0 -49
- package/dist/commonjs/models/operations/createvendorregistration.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createvendorregistration.js +1 -54
- package/dist/commonjs/models/operations/createvendorregistration.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/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/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/vendorsCreateVendorRegistration.d.ts +2 -1
- package/dist/commonjs/react-query/vendorsCreateVendorRegistration.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsCreateVendorRegistration.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/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/vendors.d.ts +1 -1
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/commonjs/sdk/zones.d.ts +15 -0
- package/dist/commonjs/sdk/zones.d.ts.map +1 -0
- package/dist/commonjs/sdk/zones.js +22 -0
- package/dist/commonjs/sdk/zones.js.map +1 -0
- package/dist/esm/__tests__/vendors.test.js +2 -2
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +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 +43 -0
- package/dist/esm/__tests__/zones.test.js.map +1 -0
- package/dist/esm/funcs/vendorsCreateVendorRegistration.d.ts +2 -1
- package/dist/esm/funcs/vendorsCreateVendorRegistration.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsCreateVendorRegistration.js +3 -3
- package/dist/esm/funcs/vendorsCreateVendorRegistration.js.map +1 -1
- 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/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- 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 +3 -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/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/user.d.ts +6 -6
- package/dist/esm/models/components/user.d.ts.map +1 -1
- package/dist/esm/models/components/user.js +6 -6
- package/dist/esm/models/components/user.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/createvendorregistration.d.ts +0 -49
- package/dist/esm/models/operations/createvendorregistration.d.ts.map +1 -1
- package/dist/esm/models/operations/createvendorregistration.js +0 -49
- package/dist/esm/models/operations/createvendorregistration.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/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/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/vendorsCreateVendorRegistration.d.ts +2 -1
- package/dist/esm/react-query/vendorsCreateVendorRegistration.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsCreateVendorRegistration.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/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/vendors.d.ts +1 -1
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/dist/esm/sdk/zones.d.ts +15 -0
- package/dist/esm/sdk/zones.d.ts.map +1 -0
- package/dist/esm/sdk/zones.js +18 -0
- package/dist/esm/sdk/zones.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendors.test.ts +2 -2
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +46 -0
- package/src/funcs/vendorsCreateVendorRegistration.ts +10 -9
- package/src/funcs/zonesListOrSearchSecurityZones.ts +246 -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 +3 -1
- package/src/mcp-server/tools/zonesListOrSearchSecurityZones.ts +38 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/user.ts +12 -12
- package/src/models/components/zone.ts +907 -0
- package/src/models/components/zoneconfig.ts +761 -0
- package/src/models/operations/createvendorregistration.ts +0 -113
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listorsearchsecurityzones.ts +294 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/vendorsCreateVendorRegistration.ts +2 -2
- package/src/react-query/zonesListOrSearchSecurityZones.ts +370 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/vendors.ts +1 -3
- package/src/sdk/zones.ts +29 -0
|
@@ -44,15 +44,6 @@ export type CreateVendorRegistrationRequestBody = {
|
|
|
44
44
|
managingCompanyId?: number | undefined;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
export type Data = {};
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* The request was successful, and a new resource was created.
|
|
51
|
-
*/
|
|
52
|
-
export type CreateVendorRegistrationCreateVendorRegistrationCreated = {
|
|
53
|
-
data: Data;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
47
|
/** @internal */
|
|
57
48
|
export const CreateVendorRegistrationRequestBody$inboundSchema: z.ZodType<
|
|
58
49
|
CreateVendorRegistrationRequestBody,
|
|
@@ -138,107 +129,3 @@ export function createVendorRegistrationRequestBodyFromJSON(
|
|
|
138
129
|
`Failed to parse 'CreateVendorRegistrationRequestBody' from JSON`,
|
|
139
130
|
);
|
|
140
131
|
}
|
|
141
|
-
|
|
142
|
-
/** @internal */
|
|
143
|
-
export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
144
|
-
.object({});
|
|
145
|
-
|
|
146
|
-
/** @internal */
|
|
147
|
-
export type Data$Outbound = {};
|
|
148
|
-
|
|
149
|
-
/** @internal */
|
|
150
|
-
export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
151
|
-
z.object({});
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* @internal
|
|
155
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
156
|
-
*/
|
|
157
|
-
export namespace Data$ {
|
|
158
|
-
/** @deprecated use `Data$inboundSchema` instead. */
|
|
159
|
-
export const inboundSchema = Data$inboundSchema;
|
|
160
|
-
/** @deprecated use `Data$outboundSchema` instead. */
|
|
161
|
-
export const outboundSchema = Data$outboundSchema;
|
|
162
|
-
/** @deprecated use `Data$Outbound` instead. */
|
|
163
|
-
export type Outbound = Data$Outbound;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export function dataToJSON(data: Data): string {
|
|
167
|
-
return JSON.stringify(Data$outboundSchema.parse(data));
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export function dataFromJSON(
|
|
171
|
-
jsonString: string,
|
|
172
|
-
): SafeParseResult<Data, SDKValidationError> {
|
|
173
|
-
return safeParse(
|
|
174
|
-
jsonString,
|
|
175
|
-
(x) => Data$inboundSchema.parse(JSON.parse(x)),
|
|
176
|
-
`Failed to parse 'Data' from JSON`,
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/** @internal */
|
|
181
|
-
export const CreateVendorRegistrationCreateVendorRegistrationCreated$inboundSchema:
|
|
182
|
-
z.ZodType<
|
|
183
|
-
CreateVendorRegistrationCreateVendorRegistrationCreated,
|
|
184
|
-
z.ZodTypeDef,
|
|
185
|
-
unknown
|
|
186
|
-
> = z.object({
|
|
187
|
-
data: z.lazy(() => Data$inboundSchema),
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
/** @internal */
|
|
191
|
-
export type CreateVendorRegistrationCreateVendorRegistrationCreated$Outbound = {
|
|
192
|
-
data: Data$Outbound;
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
/** @internal */
|
|
196
|
-
export const CreateVendorRegistrationCreateVendorRegistrationCreated$outboundSchema:
|
|
197
|
-
z.ZodType<
|
|
198
|
-
CreateVendorRegistrationCreateVendorRegistrationCreated$Outbound,
|
|
199
|
-
z.ZodTypeDef,
|
|
200
|
-
CreateVendorRegistrationCreateVendorRegistrationCreated
|
|
201
|
-
> = z.object({
|
|
202
|
-
data: z.lazy(() => Data$outboundSchema),
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* @internal
|
|
207
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
208
|
-
*/
|
|
209
|
-
export namespace CreateVendorRegistrationCreateVendorRegistrationCreated$ {
|
|
210
|
-
/** @deprecated use `CreateVendorRegistrationCreateVendorRegistrationCreated$inboundSchema` instead. */
|
|
211
|
-
export const inboundSchema =
|
|
212
|
-
CreateVendorRegistrationCreateVendorRegistrationCreated$inboundSchema;
|
|
213
|
-
/** @deprecated use `CreateVendorRegistrationCreateVendorRegistrationCreated$outboundSchema` instead. */
|
|
214
|
-
export const outboundSchema =
|
|
215
|
-
CreateVendorRegistrationCreateVendorRegistrationCreated$outboundSchema;
|
|
216
|
-
/** @deprecated use `CreateVendorRegistrationCreateVendorRegistrationCreated$Outbound` instead. */
|
|
217
|
-
export type Outbound =
|
|
218
|
-
CreateVendorRegistrationCreateVendorRegistrationCreated$Outbound;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
export function createVendorRegistrationCreateVendorRegistrationCreatedToJSON(
|
|
222
|
-
createVendorRegistrationCreateVendorRegistrationCreated:
|
|
223
|
-
CreateVendorRegistrationCreateVendorRegistrationCreated,
|
|
224
|
-
): string {
|
|
225
|
-
return JSON.stringify(
|
|
226
|
-
CreateVendorRegistrationCreateVendorRegistrationCreated$outboundSchema
|
|
227
|
-
.parse(createVendorRegistrationCreateVendorRegistrationCreated),
|
|
228
|
-
);
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
export function createVendorRegistrationCreateVendorRegistrationCreatedFromJSON(
|
|
232
|
-
jsonString: string,
|
|
233
|
-
): SafeParseResult<
|
|
234
|
-
CreateVendorRegistrationCreateVendorRegistrationCreated,
|
|
235
|
-
SDKValidationError
|
|
236
|
-
> {
|
|
237
|
-
return safeParse(
|
|
238
|
-
jsonString,
|
|
239
|
-
(x) =>
|
|
240
|
-
CreateVendorRegistrationCreateVendorRegistrationCreated$inboundSchema
|
|
241
|
-
.parse(JSON.parse(x)),
|
|
242
|
-
`Failed to parse 'CreateVendorRegistrationCreateVendorRegistrationCreated' from JSON`,
|
|
243
|
-
);
|
|
244
|
-
}
|
|
@@ -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";
|
|
@@ -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
|
+
}
|
package/src/react-query/index.ts
CHANGED
|
@@ -41,3 +41,4 @@ 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";
|
|
@@ -11,6 +11,7 @@ import { GreenSecurityCore } from "../core.js";
|
|
|
11
11
|
import { vendorsCreateVendorRegistration } from "../funcs/vendorsCreateVendorRegistration.js";
|
|
12
12
|
import { combineSignals } from "../lib/primitives.js";
|
|
13
13
|
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
14
15
|
import * as operations from "../models/operations/index.js";
|
|
15
16
|
import { unwrapAsync } from "../types/fp.js";
|
|
16
17
|
import { useGreenSecurityContext } from "./_context.js";
|
|
@@ -21,8 +22,7 @@ export type VendorsCreateVendorRegistrationMutationVariables = {
|
|
|
21
22
|
options?: RequestOptions;
|
|
22
23
|
};
|
|
23
24
|
|
|
24
|
-
export type VendorsCreateVendorRegistrationMutationData =
|
|
25
|
-
operations.CreateVendorRegistrationCreateVendorRegistrationCreated;
|
|
25
|
+
export type VendorsCreateVendorRegistrationMutationData = components.User;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Create vendor registration
|