@greensecurity/javascript-sdk 0.46.0-beta.3 → 0.46.0-beta.5

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 (59) hide show
  1. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  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 +10 -9
  5. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  6. package/dist/commonjs/admin-funcs/networksCreate.d.ts +1 -1
  7. package/dist/commonjs/admin-funcs/networksCreate.d.ts.map +1 -1
  8. package/dist/commonjs/lib/config.d.ts +2 -2
  9. package/dist/commonjs/lib/config.js +2 -2
  10. package/dist/commonjs/models/components/companymanager.d.ts +1 -2
  11. package/dist/commonjs/models/components/companymanager.d.ts.map +1 -1
  12. package/dist/commonjs/models/components/companymanager.js +0 -2
  13. package/dist/commonjs/models/components/companymanager.js.map +1 -1
  14. package/dist/commonjs/models/components/facility.d.ts +1 -1
  15. package/dist/commonjs/models/components/imageset.d.ts +1 -1
  16. package/dist/commonjs/models/components/userdetails.d.ts +1 -1
  17. package/dist/commonjs/models/components/vendor.d.ts +4 -6
  18. package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
  19. package/dist/commonjs/models/components/vendor.js +0 -4
  20. package/dist/commonjs/models/components/vendor.js.map +1 -1
  21. package/dist/commonjs/models/operations/securityzonecheckin.d.ts +30 -0
  22. package/dist/commonjs/models/operations/securityzonecheckin.d.ts.map +1 -1
  23. package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -1
  24. package/dist/esm/__tests__/vendors.test.js +1 -1
  25. package/dist/esm/__tests__/webhooks.test.js +1 -1
  26. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  27. package/dist/esm/__tests__/zones.test.js +10 -9
  28. package/dist/esm/__tests__/zones.test.js.map +1 -1
  29. package/dist/esm/admin-funcs/networksCreate.d.ts +1 -1
  30. package/dist/esm/admin-funcs/networksCreate.d.ts.map +1 -1
  31. package/dist/esm/lib/config.d.ts +2 -2
  32. package/dist/esm/lib/config.js +2 -2
  33. package/dist/esm/models/components/companymanager.d.ts +1 -2
  34. package/dist/esm/models/components/companymanager.d.ts.map +1 -1
  35. package/dist/esm/models/components/companymanager.js +0 -2
  36. package/dist/esm/models/components/companymanager.js.map +1 -1
  37. package/dist/esm/models/components/facility.d.ts +1 -1
  38. package/dist/esm/models/components/imageset.d.ts +1 -1
  39. package/dist/esm/models/components/userdetails.d.ts +1 -1
  40. package/dist/esm/models/components/vendor.d.ts +4 -6
  41. package/dist/esm/models/components/vendor.d.ts.map +1 -1
  42. package/dist/esm/models/components/vendor.js +0 -4
  43. package/dist/esm/models/components/vendor.js.map +1 -1
  44. package/dist/esm/models/operations/securityzonecheckin.d.ts +30 -0
  45. package/dist/esm/models/operations/securityzonecheckin.d.ts.map +1 -1
  46. package/dist/esm/models/operations/securityzonecheckin.js.map +1 -1
  47. package/jsr.json +1 -1
  48. package/package.json +1 -1
  49. package/src/__tests__/vendors.test.ts +1 -1
  50. package/src/__tests__/webhooks.test.ts +1 -1
  51. package/src/__tests__/zones.test.ts +10 -9
  52. package/src/admin-funcs/networksCreate.ts +1 -1
  53. package/src/lib/config.ts +2 -2
  54. package/src/models/components/companymanager.ts +1 -4
  55. package/src/models/components/facility.ts +1 -1
  56. package/src/models/components/imageset.ts +1 -1
  57. package/src/models/components/userdetails.ts +1 -1
  58. package/src/models/components/vendor.ts +4 -10
  59. package/src/models/operations/securityzonecheckin.ts +30 -0
@@ -121,7 +121,7 @@ test("Vendors List Vendor Credits", async () => {
121
121
  page: 1,
122
122
  useUrlParams: false,
123
123
  },
124
- creditBalance: 6030.32,
124
+ creditBalance: 9732.08,
125
125
  });
126
126
  });
127
127
 
@@ -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();
@@ -42,20 +42,20 @@ test("Zones List Or Search Security Zones", async () => {
42
42
  facility: {
43
43
  contacts: {
44
44
  contact: {
45
- status: "Active",
46
- department: 123,
45
+ status: "Deleted",
46
+ department: null,
47
47
  },
48
- adminContact: {
48
+ adminContact: null,
49
+ techContact: {
49
50
  status: "Deleted",
50
51
  department: 123,
51
52
  },
52
- techContact: null,
53
53
  greenSecurityCsm: {
54
- status: "Active",
55
- department: 123,
54
+ status: "Inactive",
55
+ department: null,
56
56
  },
57
57
  accountManager: {
58
- status: "Active",
58
+ status: "Inactive",
59
59
  department: 123,
60
60
  },
61
61
  },
@@ -82,8 +82,9 @@ test("Zones Security Zone Checkin", async () => {
82
82
  });
83
83
 
84
84
  const result = await greenSecurity.zones.securityZoneCheckin({
85
- qrCode: "<value>",
86
- zoneId: 641156,
85
+ longitude: 1088.53,
86
+ latitude: 6020.88,
87
+ zoneId: 654096,
87
88
  });
88
89
  expect(result).toBeDefined();
89
90
  expect(result).toEqual({});
@@ -2,7 +2,7 @@ import { APIPromise } from "../types/async.js";
2
2
  import { $doPost, $doPostForm, internalApiResult } from "./doAdmin.js";
3
3
 
4
4
  export type networkIpConfig = "DHCP" | "Static";
5
- export type networkEncryptionType = "WPA2-PSK" | "WPA2-EAP";
5
+ export type networkEncryptionType = "WPA2-PSK" | "WPA2-EAP" | "None";
6
6
  export type networkAuthMethod = "EAP-TLS" | "PEAP" | "EAP-TTLS" | "EAP-GTC";
7
7
 
8
8
  export type networkEthernetSettings = {
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.45.0",
83
- sdkVersion: "0.46.0-beta.3",
83
+ sdkVersion: "0.46.0-beta.5",
84
84
  genVersion: "2.941.0",
85
85
  userAgent:
86
- "speakeasy-sdk/typescript 0.46.0-beta.3 2.941.0 0.45.0 @greensecurity/javascript-sdk",
86
+ "speakeasy-sdk/typescript 0.46.0-beta.5 2.941.0 0.45.0 @greensecurity/javascript-sdk",
87
87
  } as const;
@@ -42,9 +42,8 @@ export type User1 = {
42
42
  fax?: string | null | undefined;
43
43
  userType?: "Company Manager" | undefined;
44
44
  timezone?: string | null | undefined;
45
- qrCode?: string | null | undefined;
46
45
  /**
47
- * A set of images in different sizes
46
+ * A set of images in different sizes. URLs for private images (such as headshots, driver's licenses and visitor faces) are signed and expire after one to two hours, so fetch the record again for fresh URLs instead of storing them.
48
47
  */
49
48
  imageUrls?: ImageSet | null | undefined;
50
49
  /**
@@ -89,7 +88,6 @@ export const User1$inboundSchema: z.ZodType<User1, z.ZodTypeDef, unknown> = z
89
88
  fax: z.nullable(types.string()).optional(),
90
89
  user_type: types.optional(types.literal("Company Manager")),
91
90
  timezone: z.nullable(types.string()).optional(),
92
- qr_code: z.nullable(types.string()).optional(),
93
91
  image_urls: z.nullable(ImageSet$inboundSchema).optional(),
94
92
  location: z.nullable(UserLocation$inboundSchema).optional(),
95
93
  }).transform((v) => {
@@ -98,7 +96,6 @@ export const User1$inboundSchema: z.ZodType<User1, z.ZodTypeDef, unknown> = z
98
96
  "last_name": "lastName",
99
97
  "mobile_phone": "mobilePhone",
100
98
  "user_type": "userType",
101
- "qr_code": "qrCode",
102
99
  "image_urls": "imageUrls",
103
100
  });
104
101
  });
@@ -184,7 +184,7 @@ export type Facility = {
184
184
  fluCredential?: FluCredential | undefined;
185
185
  id?: number | undefined;
186
186
  /**
187
- * A set of images in different sizes
187
+ * A set of images in different sizes. URLs for private images (such as headshots, driver's licenses and visitor faces) are signed and expire after one to two hours, so fetch the record again for fresh URLs instead of storing them.
188
188
  */
189
189
  imageUrls?: ImageSet | null | undefined;
190
190
  location?: FacilityLocation | undefined;
@@ -9,7 +9,7 @@ import * as types from "../../types/primitives.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  /**
12
- * A set of images in different sizes
12
+ * A set of images in different sizes. URLs for private images (such as headshots, driver's licenses and visitor faces) are signed and expire after one to two hours, so fetch the record again for fresh URLs instead of storing them.
13
13
  */
14
14
  export type ImageSet = {
15
15
  tiny?: string | undefined;
@@ -89,7 +89,7 @@ export type UserDetails = {
89
89
  */
90
90
  timezone?: string | null | undefined;
91
91
  /**
92
- * A set of images in different sizes
92
+ * A set of images in different sizes. URLs for private images (such as headshots, driver's licenses and visitor faces) are signed and expire after one to two hours, so fetch the record again for fresh URLs instead of storing them.
93
93
  */
94
94
  imageUrls?: ImageSet | null | undefined;
95
95
  /**
@@ -116,9 +116,8 @@ export type One = {
116
116
  fax?: string | null | undefined;
117
117
  userType?: string | null | undefined;
118
118
  timezone?: string | null | undefined;
119
- qrCode?: string | null | undefined;
120
119
  /**
121
- * A set of images in different sizes
120
+ * A set of images in different sizes. URLs for private images (such as headshots, driver's licenses and visitor faces) are signed and expire after one to two hours, so fetch the record again for fresh URLs instead of storing them.
122
121
  */
123
122
  imageUrls?: ImageSet | null | undefined;
124
123
  /**
@@ -207,15 +206,15 @@ export type Vendor = {
207
206
  supervisor?: Supervisor | null | undefined;
208
207
  qrCode?: string | null | undefined;
209
208
  /**
210
- * A set of images in different sizes
209
+ * A set of images in different sizes. URLs for private images (such as headshots, driver's licenses and visitor faces) are signed and expire after one to two hours, so fetch the record again for fresh URLs instead of storing them.
211
210
  */
212
211
  headShot?: ImageSet | null | undefined;
213
212
  /**
214
- * A set of images in different sizes
213
+ * A set of images in different sizes. URLs for private images (such as headshots, driver's licenses and visitor faces) are signed and expire after one to two hours, so fetch the record again for fresh URLs instead of storing them.
215
214
  */
216
215
  driversLicense?: ImageSet | null | undefined;
217
216
  /**
218
- * A set of images in different sizes
217
+ * A set of images in different sizes. URLs for private images (such as headshots, driver's licenses and visitor faces) are signed and expire after one to two hours, so fetch the record again for fresh URLs instead of storing them.
219
218
  */
220
219
  imageUrls?: ImageSet | null | undefined;
221
220
  paymentProfile?: PaymentProfile | number | null | undefined;
@@ -321,7 +320,6 @@ export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
321
320
  fax: z.nullable(types.string()).optional(),
322
321
  user_type: z.nullable(types.string()).optional(),
323
322
  timezone: z.nullable(types.string()).optional(),
324
- qr_code: z.nullable(types.string()).optional(),
325
323
  image_urls: z.nullable(ImageSet$inboundSchema).optional(),
326
324
  location: z.nullable(UserLocation$inboundSchema).optional(),
327
325
  }).transform((v) => {
@@ -330,7 +328,6 @@ export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
330
328
  "last_name": "lastName",
331
329
  "mobile_phone": "mobilePhone",
332
330
  "user_type": "userType",
333
- "qr_code": "qrCode",
334
331
  "image_urls": "imageUrls",
335
332
  });
336
333
  });
@@ -345,7 +342,6 @@ export type One$Outbound = {
345
342
  fax?: string | null | undefined;
346
343
  user_type?: string | null | undefined;
347
344
  timezone?: string | null | undefined;
348
- qr_code?: string | null | undefined;
349
345
  image_urls?: ImageSet$Outbound | null | undefined;
350
346
  location?: UserLocation$Outbound | null | undefined;
351
347
  };
@@ -362,7 +358,6 @@ export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
362
358
  fax: z.nullable(z.string()).optional(),
363
359
  userType: z.nullable(z.string()).optional(),
364
360
  timezone: z.nullable(z.string()).optional(),
365
- qrCode: z.nullable(z.string()).optional(),
366
361
  imageUrls: z.nullable(ImageSet$outboundSchema).optional(),
367
362
  location: z.nullable(UserLocation$outboundSchema).optional(),
368
363
  }).transform((v) => {
@@ -371,7 +366,6 @@ export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
371
366
  lastName: "last_name",
372
367
  mobilePhone: "mobile_phone",
373
368
  userType: "user_type",
374
- qrCode: "qr_code",
375
369
  imageUrls: "image_urls",
376
370
  });
377
371
  });
@@ -33,8 +33,23 @@ export type RequestBody2 = {
33
33
  zoneId: number;
34
34
  handoffId?: number | undefined;
35
35
  vendorId?: number | undefined;
36
+ /**
37
+ * Ignored. A check-in is always for the authenticated vendor.
38
+ *
39
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
40
+ */
36
41
  pin?: string | undefined;
42
+ /**
43
+ * Ignored. A check-in is always for the authenticated vendor.
44
+ *
45
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
46
+ */
37
47
  email?: string | undefined;
48
+ /**
49
+ * Ignored. A check-in is always for the authenticated vendor.
50
+ *
51
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
52
+ */
38
53
  password?: string | undefined;
39
54
  deviceId?: number | undefined;
40
55
  departmentId?: string | undefined;
@@ -70,8 +85,23 @@ export type One = {
70
85
  zoneId: number;
71
86
  handoffId?: number | undefined;
72
87
  vendorId?: number | undefined;
88
+ /**
89
+ * Ignored. A check-in is always for the authenticated vendor.
90
+ *
91
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
92
+ */
73
93
  pin?: string | undefined;
94
+ /**
95
+ * Ignored. A check-in is always for the authenticated vendor.
96
+ *
97
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
98
+ */
74
99
  email?: string | undefined;
100
+ /**
101
+ * Ignored. A check-in is always for the authenticated vendor.
102
+ *
103
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
104
+ */
75
105
  password?: string | undefined;
76
106
  deviceId?: number | undefined;
77
107
  departmentId?: string | undefined;