@greensecurity/javascript-sdk 0.40.8-beta.30 → 0.40.8-beta.31

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.
Files changed (45) hide show
  1. package/.devcontainer/README.md +35 -0
  2. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  3. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  4. package/dist/commonjs/__tests__/zones.test.js +5 -19
  5. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  6. package/dist/commonjs/lib/config.d.ts +2 -2
  7. package/dist/commonjs/lib/config.js +2 -2
  8. package/dist/commonjs/models/components/vendor.d.ts +2 -0
  9. package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
  10. package/dist/commonjs/models/components/vendor.js +4 -0
  11. package/dist/commonjs/models/components/vendor.js.map +1 -1
  12. package/dist/esm/__tests__/webhooks.test.js +1 -1
  13. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  14. package/dist/esm/__tests__/zones.test.js +5 -19
  15. package/dist/esm/__tests__/zones.test.js.map +1 -1
  16. package/dist/esm/lib/config.d.ts +2 -2
  17. package/dist/esm/lib/config.js +2 -2
  18. package/dist/esm/models/components/vendor.d.ts +2 -0
  19. package/dist/esm/models/components/vendor.d.ts.map +1 -1
  20. package/dist/esm/models/components/vendor.js +4 -0
  21. package/dist/esm/models/components/vendor.js.map +1 -1
  22. package/docs/sdks/alerts/README.md +219 -0
  23. package/docs/sdks/companies/README.md +126 -0
  24. package/docs/sdks/datarequests/README.md +302 -0
  25. package/docs/sdks/events/README.md +1126 -0
  26. package/docs/sdks/fhirconfigs/README.md +551 -0
  27. package/docs/sdks/greensecurity/README.md +14 -0
  28. package/docs/sdks/invoices/README.md +324 -0
  29. package/docs/sdks/mobiledevices/README.md +100 -0
  30. package/docs/sdks/organizations/README.md +508 -0
  31. package/docs/sdks/supportarticles/README.md +249 -0
  32. package/docs/sdks/systems/README.md +136 -0
  33. package/docs/sdks/users/README.md +831 -0
  34. package/docs/sdks/vendors/README.md +4904 -0
  35. package/docs/sdks/vendorscans/README.md +104 -0
  36. package/docs/sdks/webhooks/README.md +352 -0
  37. package/docs/sdks/zones/README.md +344 -0
  38. package/examples/README.md +31 -0
  39. package/examples/package-lock.json +1 -1
  40. package/jsr.json +1 -1
  41. package/package.json +1 -1
  42. package/src/__tests__/webhooks.test.ts +1 -1
  43. package/src/__tests__/zones.test.ts +5 -19
  44. package/src/lib/config.ts +2 -2
  45. package/src/models/components/vendor.ts +6 -0
@@ -0,0 +1,344 @@
1
+ # Zones
2
+ (*zones*)
3
+
4
+ ## Overview
5
+
6
+ ### Available Operations
7
+
8
+ * [listOrSearchSecurityZones](#listorsearchsecurityzones) - List or search security zones
9
+ * [getSecurityZone](#getsecurityzone) - Get security zone details
10
+ * [securityZoneCheckin](#securityzonecheckin) - Security zone checkin request
11
+
12
+ ## listOrSearchSecurityZones
13
+
14
+ List or search security zones
15
+
16
+ ### Example Usage
17
+
18
+ <!-- UsageSnippet language="typescript" operationID="listOrSearchSecurityZones" method="get" path="/security_zones" -->
19
+ ```typescript
20
+ import { GreenSecurity } from "@greensecurity/javascript-sdk";
21
+
22
+ const greenSecurity = new GreenSecurity({
23
+ security: {
24
+ token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
25
+ },
26
+ });
27
+
28
+ async function run() {
29
+ const result = await greenSecurity.zones.listOrSearchSecurityZones({
30
+ sort: "job",
31
+ desc: true,
32
+ itemsPerPage: 25,
33
+ });
34
+
35
+ for await (const page of result) {
36
+ console.log(page);
37
+ }
38
+ }
39
+
40
+ run();
41
+ ```
42
+
43
+ ### Standalone function
44
+
45
+ The standalone function version of this method:
46
+
47
+ ```typescript
48
+ import { GreenSecurityCore } from "@greensecurity/javascript-sdk/core.js";
49
+ import { zonesListOrSearchSecurityZones } from "@greensecurity/javascript-sdk/funcs/zonesListOrSearchSecurityZones.js";
50
+
51
+ // Use `GreenSecurityCore` for best tree-shaking performance.
52
+ // You can create one instance of it to use across an application.
53
+ const greenSecurity = new GreenSecurityCore({
54
+ security: {
55
+ token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
56
+ },
57
+ });
58
+
59
+ async function run() {
60
+ const res = await zonesListOrSearchSecurityZones(greenSecurity, {
61
+ sort: "job",
62
+ desc: true,
63
+ itemsPerPage: 25,
64
+ });
65
+ if (res.ok) {
66
+ const { value: result } = res;
67
+ for await (const page of result) {
68
+ console.log(page);
69
+ }
70
+ } else {
71
+ console.log("zonesListOrSearchSecurityZones failed:", res.error);
72
+ }
73
+ }
74
+
75
+ run();
76
+ ```
77
+
78
+ ### React hooks and utilities
79
+
80
+ This method can be used in React components through the following hooks and
81
+ associated utilities.
82
+
83
+ > Check out [this guide][hook-guide] for information about each of the utilities
84
+ > below and how to get started using React hooks.
85
+
86
+ [hook-guide]: ../../../REACT_QUERY.md
87
+
88
+ ```tsx
89
+ import {
90
+ // Query hooks for fetching data.
91
+ useZonesListOrSearchSecurityZones,
92
+ useZonesListOrSearchSecurityZonesSuspense,
93
+ // Query hooks suitable for building infinite scrolling or "load more" UIs.
94
+ useZonesListOrSearchSecurityZonesInfinite,
95
+ useZonesListOrSearchSecurityZonesInfiniteSuspense,
96
+
97
+ // Utility for prefetching data during server-side rendering and in React
98
+ // Server Components that will be immediately available to client components
99
+ // using the hooks.
100
+ prefetchZonesListOrSearchSecurityZones,
101
+
102
+ // Utilities to invalidate the query cache for this query in response to
103
+ // mutations and other user actions.
104
+ invalidateZonesListOrSearchSecurityZones,
105
+ invalidateAllZonesListOrSearchSecurityZones,
106
+ } from "@greensecurity/javascript-sdk/react-query/zonesListOrSearchSecurityZones.js";
107
+ ```
108
+
109
+ ### Parameters
110
+
111
+ | Parameter | Type | Required | Description |
112
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
113
+ | `request` | [operations.ListOrSearchSecurityZonesRequest](../../models/operations/listorsearchsecurityzonesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
114
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
115
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
116
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
117
+
118
+ ### Response
119
+
120
+ **Promise\<[operations.ListOrSearchSecurityZonesResponse](../../models/operations/listorsearchsecurityzonesresponse.md)\>**
121
+
122
+ ### Errors
123
+
124
+ | Error Type | Status Code | Content Type |
125
+ | ----------------------- | ----------------------- | ----------------------- |
126
+ | errors.ApiErrorResponse | 400, 401, 403 | application/json |
127
+ | errors.APIError | 4XX, 5XX | \*/\* |
128
+
129
+ ## getSecurityZone
130
+
131
+ Get security zone details
132
+
133
+ Available `expand` scopes are:
134
+
135
+ - zone.facility
136
+ - zone.department
137
+ - zone.rules
138
+
139
+ ### Example Usage
140
+
141
+ <!-- UsageSnippet language="typescript" operationID="getSecurityZone" method="get" path="/security_zones/{id}" -->
142
+ ```typescript
143
+ import { GreenSecurity } from "@greensecurity/javascript-sdk";
144
+
145
+ const greenSecurity = new GreenSecurity({
146
+ security: {
147
+ token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
148
+ },
149
+ });
150
+
151
+ async function run() {
152
+ const result = await greenSecurity.zones.getSecurityZone({
153
+ id: 99489,
154
+ expand: [
155
+ "facility.system",
156
+ ],
157
+ });
158
+
159
+ console.log(result);
160
+ }
161
+
162
+ run();
163
+ ```
164
+
165
+ ### Standalone function
166
+
167
+ The standalone function version of this method:
168
+
169
+ ```typescript
170
+ import { GreenSecurityCore } from "@greensecurity/javascript-sdk/core.js";
171
+ import { zonesGetSecurityZone } from "@greensecurity/javascript-sdk/funcs/zonesGetSecurityZone.js";
172
+
173
+ // Use `GreenSecurityCore` for best tree-shaking performance.
174
+ // You can create one instance of it to use across an application.
175
+ const greenSecurity = new GreenSecurityCore({
176
+ security: {
177
+ token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
178
+ },
179
+ });
180
+
181
+ async function run() {
182
+ const res = await zonesGetSecurityZone(greenSecurity, {
183
+ id: 99489,
184
+ expand: [
185
+ "facility.system",
186
+ ],
187
+ });
188
+ if (res.ok) {
189
+ const { value: result } = res;
190
+ console.log(result);
191
+ } else {
192
+ console.log("zonesGetSecurityZone failed:", res.error);
193
+ }
194
+ }
195
+
196
+ run();
197
+ ```
198
+
199
+ ### React hooks and utilities
200
+
201
+ This method can be used in React components through the following hooks and
202
+ associated utilities.
203
+
204
+ > Check out [this guide][hook-guide] for information about each of the utilities
205
+ > below and how to get started using React hooks.
206
+
207
+ [hook-guide]: ../../../REACT_QUERY.md
208
+
209
+ ```tsx
210
+ import {
211
+ // Query hooks for fetching data.
212
+ useZonesGetSecurityZone,
213
+ useZonesGetSecurityZoneSuspense,
214
+
215
+ // Utility for prefetching data during server-side rendering and in React
216
+ // Server Components that will be immediately available to client components
217
+ // using the hooks.
218
+ prefetchZonesGetSecurityZone,
219
+
220
+ // Utilities to invalidate the query cache for this query in response to
221
+ // mutations and other user actions.
222
+ invalidateZonesGetSecurityZone,
223
+ invalidateAllZonesGetSecurityZone,
224
+ } from "@greensecurity/javascript-sdk/react-query/zonesGetSecurityZone.js";
225
+ ```
226
+
227
+ ### Parameters
228
+
229
+ | Parameter | Type | Required | Description |
230
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
231
+ | `request` | [operations.GetSecurityZoneRequest](../../models/operations/getsecurityzonerequest.md) | :heavy_check_mark: | The request object to use for the request. |
232
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
233
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
234
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
235
+
236
+ ### Response
237
+
238
+ **Promise\<[components.Zone](../../models/components/zone.md)\>**
239
+
240
+ ### Errors
241
+
242
+ | Error Type | Status Code | Content Type |
243
+ | ----------------------- | ----------------------- | ----------------------- |
244
+ | errors.ApiErrorResponse | 400, 401, 403, 404 | application/json |
245
+ | errors.ApiErrorResponse | 500 | application/json |
246
+ | errors.APIError | 4XX, 5XX | \*/\* |
247
+
248
+ ## securityZoneCheckin
249
+
250
+ Security zone checkin request
251
+
252
+ ### Example Usage
253
+
254
+ <!-- UsageSnippet language="typescript" operationID="securityZoneCheckin" method="post" path="/security_zones/checkin_request" -->
255
+ ```typescript
256
+ import { GreenSecurity } from "@greensecurity/javascript-sdk";
257
+
258
+ const greenSecurity = new GreenSecurity({
259
+ security: {
260
+ token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
261
+ },
262
+ });
263
+
264
+ async function run() {
265
+ const result = await greenSecurity.zones.securityZoneCheckin({
266
+ qrCode: "<value>",
267
+ zoneId: 572658,
268
+ });
269
+
270
+ console.log(result);
271
+ }
272
+
273
+ run();
274
+ ```
275
+
276
+ ### Standalone function
277
+
278
+ The standalone function version of this method:
279
+
280
+ ```typescript
281
+ import { GreenSecurityCore } from "@greensecurity/javascript-sdk/core.js";
282
+ import { zonesSecurityZoneCheckin } from "@greensecurity/javascript-sdk/funcs/zonesSecurityZoneCheckin.js";
283
+
284
+ // Use `GreenSecurityCore` for best tree-shaking performance.
285
+ // You can create one instance of it to use across an application.
286
+ const greenSecurity = new GreenSecurityCore({
287
+ security: {
288
+ token: process.env["GREEN_SECURITY_TOKEN"] ?? "",
289
+ },
290
+ });
291
+
292
+ async function run() {
293
+ const res = await zonesSecurityZoneCheckin(greenSecurity, {
294
+ qrCode: "<value>",
295
+ zoneId: 572658,
296
+ });
297
+ if (res.ok) {
298
+ const { value: result } = res;
299
+ console.log(result);
300
+ } else {
301
+ console.log("zonesSecurityZoneCheckin failed:", res.error);
302
+ }
303
+ }
304
+
305
+ run();
306
+ ```
307
+
308
+ ### React hooks and utilities
309
+
310
+ This method can be used in React components through the following hooks and
311
+ associated utilities.
312
+
313
+ > Check out [this guide][hook-guide] for information about each of the utilities
314
+ > below and how to get started using React hooks.
315
+
316
+ [hook-guide]: ../../../REACT_QUERY.md
317
+
318
+ ```tsx
319
+ import {
320
+ // Mutation hook for triggering the API call.
321
+ useZonesSecurityZoneCheckinMutation
322
+ } from "@greensecurity/javascript-sdk/react-query/zonesSecurityZoneCheckin.js";
323
+ ```
324
+
325
+ ### Parameters
326
+
327
+ | Parameter | Type | Required | Description |
328
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
329
+ | `request` | [operations.SecurityZoneCheckinRequestBody](../../models/operations/securityzonecheckinrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
330
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
331
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
332
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
333
+
334
+ ### Response
335
+
336
+ **Promise\<[operations.SecurityZoneCheckinResponseBody](../../models/operations/securityzonecheckinresponsebody.md)\>**
337
+
338
+ ### Errors
339
+
340
+ | Error Type | Status Code | Content Type |
341
+ | ----------------------- | ----------------------- | ----------------------- |
342
+ | errors.ApiErrorResponse | 400, 401, 403, 404 | application/json |
343
+ | errors.ApiErrorResponse | 500 | application/json |
344
+ | errors.APIError | 4XX, 5XX | \*/\* |
@@ -0,0 +1,31 @@
1
+ # @greensecurity/javascript-sdk Examples
2
+
3
+ This directory contains example scripts demonstrating how to use the @greensecurity/javascript-sdk SDK.
4
+
5
+ ## Prerequisites
6
+
7
+ - Node.js (v18 or higher)
8
+ - npm
9
+
10
+ ## Setup
11
+
12
+ 1. Copy `.env.template` to `.env`:
13
+ ```bash
14
+ cp .env.template .env
15
+ ```
16
+
17
+ 2. Edit `.env` and add your actual credentials (API keys, tokens, etc.)
18
+
19
+ ## Running the Examples
20
+
21
+ To run an example file from the examples directory:
22
+
23
+ ```bash
24
+ npm run build && npx tsx example.ts
25
+ ```
26
+
27
+ ## Creating new examples
28
+
29
+ Duplicate an existing example file, they won't be overwritten by the generation process.
30
+
31
+
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "..": {
20
20
  "name": "@greensecurity/javascript-sdk",
21
- "version": "0.40.8-beta.29",
21
+ "version": "0.40.8-beta.31",
22
22
  "dependencies": {
23
23
  "zod": "^3.20.0"
24
24
  },
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@greensecurity/javascript-sdk",
5
- "version": "0.40.8-beta.29",
5
+ "version": "0.40.8-beta.31",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greensecurity/javascript-sdk",
3
- "version": "0.40.8-beta.30",
3
+ "version": "0.40.8-beta.31",
4
4
  "author": "Green Security LLC",
5
5
  "type": "module",
6
6
  "tshy": {
@@ -20,7 +20,7 @@ test("Webhooks List All Webhook Endpoints", async () => {
20
20
  const testWebhookListForVendorUserResult = await greenSecurity.webhooks
21
21
  .listAllWebhookEndpoints({
22
22
  itemsPerPage: 25,
23
- desc: true,
23
+ desc: 0,
24
24
  sort: "",
25
25
  });
26
26
  expect(testWebhookListForVendorUserResult).toBeDefined();
@@ -36,24 +36,10 @@ test("Zones List Or Search Security Zones", async () => {
36
36
  },
37
37
  items: [
38
38
  {
39
- facility: {
40
- contacts: null,
41
- vendorGuestPolicy: {
42
- enabled: false,
43
- vendorGuestLimitAndOr: "and",
44
- vendorGuestRequireEmail: false,
45
- },
46
- },
39
+ facility: {},
47
40
  },
48
41
  {
49
- facility: {
50
- contacts: null,
51
- vendorGuestPolicy: {
52
- enabled: false,
53
- vendorGuestLimitAndOr: "and",
54
- vendorGuestRequireEmail: false,
55
- },
56
- },
42
+ facility: {},
57
43
  },
58
44
  ],
59
45
  });
@@ -71,9 +57,9 @@ test("Zones Security Zone Checkin", async () => {
71
57
  });
72
58
 
73
59
  const result = await greenSecurity.zones.securityZoneCheckin({
74
- longitude: "-35.784",
75
- latitude: "-14.5802",
76
- zoneId: 199208,
60
+ longitude: "89.6981",
61
+ latitude: "68.5943",
62
+ zoneId: 456404,
77
63
  });
78
64
  expect(result).toBeDefined();
79
65
  expect(result).toEqual({});
package/src/lib/config.ts CHANGED
@@ -80,8 +80,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
80
80
  export const SDK_METADATA = {
81
81
  language: "typescript",
82
82
  openapiDocVersion: "0.0.6",
83
- sdkVersion: "0.40.8-beta.29",
83
+ sdkVersion: "0.40.8-beta.31",
84
84
  genVersion: "2.716.10",
85
85
  userAgent:
86
- "speakeasy-sdk/typescript 0.40.8-beta.29 2.716.10 0.0.6 @greensecurity/javascript-sdk",
86
+ "speakeasy-sdk/typescript 0.40.8-beta.31 2.716.10 0.0.6 @greensecurity/javascript-sdk",
87
87
  } as const;
@@ -176,6 +176,7 @@ export type Vendor = {
176
176
  emailRecepient?: string | null | undefined;
177
177
  sendWeeklySummaryEmail?: boolean | null | undefined;
178
178
  title?: string | null | undefined;
179
+ hasEmeraldStatus?: boolean | null | undefined;
179
180
  user?: One | number | undefined;
180
181
  registrationData?: { [k: string]: any } | null | undefined;
181
182
  registrationFinished?: boolean | null | undefined;
@@ -1056,6 +1057,7 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
1056
1057
  email_recepient: z.nullable(z.string()).optional(),
1057
1058
  send_weekly_summary_email: z.nullable(z.boolean()).optional(),
1058
1059
  title: z.nullable(z.string()).optional(),
1060
+ has_emerald_status: z.nullable(z.boolean()).optional(),
1059
1061
  user: z.union([z.lazy(() => One$inboundSchema), z.number().int()])
1060
1062
  .optional(),
1061
1063
  registration_data: z.nullable(z.record(z.any())).optional(),
@@ -1112,6 +1114,7 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
1112
1114
  return remap$(v, {
1113
1115
  "email_recepient": "emailRecepient",
1114
1116
  "send_weekly_summary_email": "sendWeeklySummaryEmail",
1117
+ "has_emerald_status": "hasEmeraldStatus",
1115
1118
  "registration_data": "registrationData",
1116
1119
  "registration_finished": "registrationFinished",
1117
1120
  "vendor_job": "vendorJob",
@@ -1143,6 +1146,7 @@ export type Vendor$Outbound = {
1143
1146
  email_recepient?: string | null | undefined;
1144
1147
  send_weekly_summary_email?: boolean | null | undefined;
1145
1148
  title?: string | null | undefined;
1149
+ has_emerald_status?: boolean | null | undefined;
1146
1150
  user?: One$Outbound | number | undefined;
1147
1151
  registration_data?: { [k: string]: any } | null | undefined;
1148
1152
  registration_finished?: boolean | null | undefined;
@@ -1189,6 +1193,7 @@ export const Vendor$outboundSchema: z.ZodType<
1189
1193
  emailRecepient: z.nullable(z.string()).optional(),
1190
1194
  sendWeeklySummaryEmail: z.nullable(z.boolean()).optional(),
1191
1195
  title: z.nullable(z.string()).optional(),
1196
+ hasEmeraldStatus: z.nullable(z.boolean()).optional(),
1192
1197
  user: z.union([z.lazy(() => One$outboundSchema), z.number().int()])
1193
1198
  .optional(),
1194
1199
  registrationData: z.nullable(z.record(z.any())).optional(),
@@ -1243,6 +1248,7 @@ export const Vendor$outboundSchema: z.ZodType<
1243
1248
  return remap$(v, {
1244
1249
  emailRecepient: "email_recepient",
1245
1250
  sendWeeklySummaryEmail: "send_weekly_summary_email",
1251
+ hasEmeraldStatus: "has_emerald_status",
1246
1252
  registrationData: "registration_data",
1247
1253
  registrationFinished: "registration_finished",
1248
1254
  vendorJob: "vendor_job",