@greensecurity/javascript-sdk 0.47.0-beta.13 → 0.47.0-beta.15

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 (74) 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 +15 -9
  5. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  6. package/dist/commonjs/funcs/vendorsGetVendorTargetFacilities.d.ts +1 -0
  7. package/dist/commonjs/funcs/vendorsGetVendorTargetFacilities.d.ts.map +1 -1
  8. package/dist/commonjs/funcs/vendorsGetVendorTargetFacilities.js +1 -0
  9. package/dist/commonjs/funcs/vendorsGetVendorTargetFacilities.js.map +1 -1
  10. package/dist/commonjs/lib/config.d.ts +2 -2
  11. package/dist/commonjs/lib/config.js +2 -2
  12. package/dist/commonjs/models/components/expand.d.ts +1 -0
  13. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  14. package/dist/commonjs/models/components/expand.js +1 -0
  15. package/dist/commonjs/models/components/expand.js.map +1 -1
  16. package/dist/commonjs/models/components/vendortargetfacility.d.ts +4 -0
  17. package/dist/commonjs/models/components/vendortargetfacility.d.ts.map +1 -1
  18. package/dist/commonjs/models/components/vendortargetfacility.js +2 -0
  19. package/dist/commonjs/models/components/vendortargetfacility.js.map +1 -1
  20. package/dist/commonjs/models/operations/getvendortargetfacilities.d.ts +4 -3
  21. package/dist/commonjs/models/operations/getvendortargetfacilities.d.ts.map +1 -1
  22. package/dist/commonjs/models/operations/getvendortargetfacilities.js +2 -1
  23. package/dist/commonjs/models/operations/getvendortargetfacilities.js.map +1 -1
  24. package/dist/commonjs/react-query/vendorsGetVendorTargetFacilities.d.ts +4 -0
  25. package/dist/commonjs/react-query/vendorsGetVendorTargetFacilities.d.ts.map +1 -1
  26. package/dist/commonjs/react-query/vendorsGetVendorTargetFacilities.js +4 -0
  27. package/dist/commonjs/react-query/vendorsGetVendorTargetFacilities.js.map +1 -1
  28. package/dist/commonjs/sdk/vendors.d.ts +1 -0
  29. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  30. package/dist/commonjs/sdk/vendors.js +1 -0
  31. package/dist/commonjs/sdk/vendors.js.map +1 -1
  32. package/dist/esm/__tests__/vendors.test.js +1 -1
  33. package/dist/esm/__tests__/webhooks.test.js +1 -1
  34. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  35. package/dist/esm/__tests__/zones.test.js +15 -9
  36. package/dist/esm/__tests__/zones.test.js.map +1 -1
  37. package/dist/esm/funcs/vendorsGetVendorTargetFacilities.d.ts +1 -0
  38. package/dist/esm/funcs/vendorsGetVendorTargetFacilities.d.ts.map +1 -1
  39. package/dist/esm/funcs/vendorsGetVendorTargetFacilities.js +1 -0
  40. package/dist/esm/funcs/vendorsGetVendorTargetFacilities.js.map +1 -1
  41. package/dist/esm/lib/config.d.ts +2 -2
  42. package/dist/esm/lib/config.js +2 -2
  43. package/dist/esm/models/components/expand.d.ts +1 -0
  44. package/dist/esm/models/components/expand.d.ts.map +1 -1
  45. package/dist/esm/models/components/expand.js +1 -0
  46. package/dist/esm/models/components/expand.js.map +1 -1
  47. package/dist/esm/models/components/vendortargetfacility.d.ts +4 -0
  48. package/dist/esm/models/components/vendortargetfacility.d.ts.map +1 -1
  49. package/dist/esm/models/components/vendortargetfacility.js +2 -0
  50. package/dist/esm/models/components/vendortargetfacility.js.map +1 -1
  51. package/dist/esm/models/operations/getvendortargetfacilities.d.ts +4 -3
  52. package/dist/esm/models/operations/getvendortargetfacilities.d.ts.map +1 -1
  53. package/dist/esm/models/operations/getvendortargetfacilities.js +2 -1
  54. package/dist/esm/models/operations/getvendortargetfacilities.js.map +1 -1
  55. package/dist/esm/react-query/vendorsGetVendorTargetFacilities.d.ts +4 -0
  56. package/dist/esm/react-query/vendorsGetVendorTargetFacilities.d.ts.map +1 -1
  57. package/dist/esm/react-query/vendorsGetVendorTargetFacilities.js +4 -0
  58. package/dist/esm/react-query/vendorsGetVendorTargetFacilities.js.map +1 -1
  59. package/dist/esm/sdk/vendors.d.ts +1 -0
  60. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  61. package/dist/esm/sdk/vendors.js +1 -0
  62. package/dist/esm/sdk/vendors.js.map +1 -1
  63. package/jsr.json +1 -1
  64. package/package.json +1 -1
  65. package/src/__tests__/vendors.test.ts +1 -1
  66. package/src/__tests__/webhooks.test.ts +1 -1
  67. package/src/__tests__/zones.test.ts +15 -9
  68. package/src/funcs/vendorsGetVendorTargetFacilities.ts +1 -0
  69. package/src/lib/config.ts +2 -2
  70. package/src/models/components/expand.ts +1 -0
  71. package/src/models/components/vendortargetfacility.ts +6 -0
  72. package/src/models/operations/getvendortargetfacilities.ts +4 -3
  73. package/src/react-query/vendorsGetVendorTargetFacilities.ts +4 -0
  74. package/src/sdk/vendors.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greensecurity/javascript-sdk",
3
- "version": "0.47.0-beta.13",
3
+ "version": "0.47.0-beta.15",
4
4
  "author": "Green Security LLC",
5
5
  "type": "module",
6
6
  "tshy": {
@@ -121,7 +121,7 @@ test("Vendors List Vendor Credits", async () => {
121
121
  page: 1,
122
122
  useUrlParams: false,
123
123
  },
124
- creditBalance: 8683.29,
124
+ creditBalance: 2082.37,
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();
@@ -35,31 +35,37 @@ test("Zones List Or Search Security Zones", async () => {
35
35
  useUrlParams: false,
36
36
  },
37
37
  items: [
38
+ {
39
+ facility: {},
40
+ },
38
41
  {
39
42
  facility: {
40
43
  contacts: {
41
44
  contact: {
42
- status: "Inactive",
45
+ status: "Active",
43
46
  department: 123,
44
47
  },
45
48
  adminContact: {
49
+ status: "Inactive",
50
+ department: 123,
51
+ },
52
+ techContact: {
46
53
  status: "Active",
47
- department: null,
54
+ department: 123,
55
+ },
56
+ greenSecurityCsm: {
57
+ status: "Active",
58
+ department: 123,
48
59
  },
49
- techContact: null,
50
- greenSecurityCsm: null,
51
60
  accountManager: null,
52
61
  },
53
62
  vendorGuestPolicy: {
54
63
  enabled: false,
55
64
  vendorGuestLimitAndOr: "and",
56
- vendorGuestRequireEmail: false,
65
+ vendorGuestRequireEmail: true,
57
66
  },
58
67
  },
59
68
  },
60
- {
61
- facility: {},
62
- },
63
69
  ],
64
70
  });
65
71
  });
@@ -77,7 +83,7 @@ test("Zones Security Zone Checkin", async () => {
77
83
 
78
84
  const result = await greenSecurity.zones.securityZoneCheckin({
79
85
  qrCode: "<value>",
80
- zoneId: 598772,
86
+ zoneId: 776072,
81
87
  });
82
88
  expect(result).toBeDefined();
83
89
  expect(result).toEqual({});
@@ -45,6 +45,7 @@ import {
45
45
  * - `vendor_target_facility.facility`
46
46
  * - `vendor_target_facility.has_screening_responses`
47
47
  * - `vendor_target_facility.expiring_credential_count`
48
+ * - `vendor_target_facility.system_logo_url`
48
49
  *
49
50
  * The endpoint rejects any other value with `422 Unprocessable Entity`.
50
51
  *
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.46.0",
83
- sdkVersion: "0.47.0-beta.13",
83
+ sdkVersion: "0.47.0-beta.15",
84
84
  genVersion: "2.948.4",
85
85
  userAgent:
86
- "speakeasy-sdk/typescript 0.47.0-beta.13 2.948.4 0.46.0 @greensecurity/javascript-sdk",
86
+ "speakeasy-sdk/typescript 0.47.0-beta.15 2.948.4 0.46.0 @greensecurity/javascript-sdk",
87
87
  } as const;
@@ -21,6 +21,7 @@ export const Expand = {
21
21
  "vendor_target_facility.has_screening_responses",
22
22
  VendorTargetFacilityExpiringCredentialCount:
23
23
  "vendor_target_facility.expiring_credential_count",
24
+ VendorTargetFacilitySystemLogoUrl: "vendor_target_facility.system_logo_url",
24
25
  ContactFacility: "contact.facility",
25
26
  ContactSystem: "contact.system",
26
27
  ContactDepartment: "contact.department",
@@ -44,6 +44,10 @@ export type VendorTargetFacility = {
44
44
  * How many credentials the facility requires from the vendor have an approved version that expires within 30 days, with no newer version approved or waiting for approval. Company-owned credentials are left out when the caller is a vendor whose company has company managers. Present only when you pass `vendor_target_facility.expiring_credential_count` to `expand`.
45
45
  */
46
46
  expiringCredentialCount?: number | undefined;
47
+ /**
48
+ * The URL of the logo of the facility's system, or `null` when the system has no logo or the facility has no system. Present only when you pass `vendor_target_facility.system_logo_url` to `expand`.
49
+ */
50
+ systemLogoUrl?: string | null | undefined;
47
51
  /**
48
52
  * The date and time the target facility was added to the vendor, in ISO 8601 format, or `null` if not available.
49
53
  */
@@ -81,12 +85,14 @@ export const VendorTargetFacility$inboundSchema: z.ZodType<
81
85
  questions_answered: types.nullable(types.boolean()),
82
86
  has_screening_responses: types.optional(types.boolean()),
83
87
  expiring_credential_count: types.optional(types.number()),
88
+ system_logo_url: z.nullable(types.string()).optional(),
84
89
  date_created: z.nullable(types.date()).optional(),
85
90
  }).transform((v) => {
86
91
  return remap$(v, {
87
92
  "questions_answered": "questionsAnswered",
88
93
  "has_screening_responses": "hasScreeningResponses",
89
94
  "expiring_credential_count": "expiringCredentialCount",
95
+ "system_logo_url": "systemLogoUrl",
90
96
  "date_created": "dateCreated",
91
97
  });
92
98
  });
@@ -52,7 +52,7 @@ export const IncludeStatusCounts = {
52
52
  export type IncludeStatusCounts = ClosedEnum<typeof IncludeStatusCounts>;
53
53
 
54
54
  /**
55
- * The field to sort results by. Defaults to `facility_name`. `not_approved_first` lists the systems with the most rows that are not approved first, then by system name; within a system it puts the rows that are not approved first, then sorts by facility name. `not_approved_first` ignores `desc`.
55
+ * The field to sort results by. Defaults to `facility_name`. `not_approved_first` lists the systems with the most rows that are not approved first, then by system name; within a system it puts the rows that are not approved first, then sorts by facility name. `system_and_facility_name` sorts by system name, then by facility name, and lists facilities without a system last. Both ignore `desc`.
56
56
  */
57
57
  export const GetVendorTargetFacilitiesQueryParamSort = {
58
58
  FacilityName: "facility_name",
@@ -61,9 +61,10 @@ export const GetVendorTargetFacilitiesQueryParamSort = {
61
61
  QuestionsAnswered: "questions_answered",
62
62
  DateCreated: "date_created",
63
63
  NotApprovedFirst: "not_approved_first",
64
+ SystemAndFacilityName: "system_and_facility_name",
64
65
  } as const;
65
66
  /**
66
- * The field to sort results by. Defaults to `facility_name`. `not_approved_first` lists the systems with the most rows that are not approved first, then by system name; within a system it puts the rows that are not approved first, then sorts by facility name. `not_approved_first` ignores `desc`.
67
+ * The field to sort results by. Defaults to `facility_name`. `not_approved_first` lists the systems with the most rows that are not approved first, then by system name; within a system it puts the rows that are not approved first, then sorts by facility name. `system_and_facility_name` sorts by system name, then by facility name, and lists facilities without a system last. Both ignore `desc`.
67
68
  */
68
69
  export type GetVendorTargetFacilitiesQueryParamSort = ClosedEnum<
69
70
  typeof GetVendorTargetFacilitiesQueryParamSort
@@ -117,7 +118,7 @@ export type GetVendorTargetFacilitiesRequest = {
117
118
  */
118
119
  itemsPerPage?: number | undefined;
119
120
  /**
120
- * The field to sort results by. Defaults to `facility_name`. `not_approved_first` lists the systems with the most rows that are not approved first, then by system name; within a system it puts the rows that are not approved first, then sorts by facility name. `not_approved_first` ignores `desc`.
121
+ * The field to sort results by. Defaults to `facility_name`. `not_approved_first` lists the systems with the most rows that are not approved first, then by system name; within a system it puts the rows that are not approved first, then sorts by facility name. `system_and_facility_name` sorts by system name, then by facility name, and lists facilities without a system last. Both ignore `desc`.
121
122
  */
122
123
  sort?: GetVendorTargetFacilitiesQueryParamSort | undefined;
123
124
  /**
@@ -84,6 +84,7 @@ export type VendorsGetVendorTargetFacilitiesQueryError =
84
84
  * - `vendor_target_facility.facility`
85
85
  * - `vendor_target_facility.has_screening_responses`
86
86
  * - `vendor_target_facility.expiring_credential_count`
87
+ * - `vendor_target_facility.system_logo_url`
87
88
  *
88
89
  * The endpoint rejects any other value with `422 Unprocessable Entity`.
89
90
  *
@@ -123,6 +124,7 @@ export function useVendorsGetVendorTargetFacilities(
123
124
  * - `vendor_target_facility.facility`
124
125
  * - `vendor_target_facility.has_screening_responses`
125
126
  * - `vendor_target_facility.expiring_credential_count`
127
+ * - `vendor_target_facility.system_logo_url`
126
128
  *
127
129
  * The endpoint rejects any other value with `422 Unprocessable Entity`.
128
130
  *
@@ -162,6 +164,7 @@ export function useVendorsGetVendorTargetFacilitiesSuspense(
162
164
  * - `vendor_target_facility.facility`
163
165
  * - `vendor_target_facility.has_screening_responses`
164
166
  * - `vendor_target_facility.expiring_credential_count`
167
+ * - `vendor_target_facility.system_logo_url`
165
168
  *
166
169
  * The endpoint rejects any other value with `422 Unprocessable Entity`.
167
170
  *
@@ -215,6 +218,7 @@ export function useVendorsGetVendorTargetFacilitiesInfinite(
215
218
  * - `vendor_target_facility.facility`
216
219
  * - `vendor_target_facility.has_screening_responses`
217
220
  * - `vendor_target_facility.expiring_credential_count`
221
+ * - `vendor_target_facility.system_logo_url`
218
222
  *
219
223
  * The endpoint rejects any other value with `422 Unprocessable Entity`.
220
224
  *
@@ -1504,6 +1504,7 @@ export class Vendors extends ClientSDK {
1504
1504
  * - `vendor_target_facility.facility`
1505
1505
  * - `vendor_target_facility.has_screening_responses`
1506
1506
  * - `vendor_target_facility.expiring_credential_count`
1507
+ * - `vendor_target_facility.system_logo_url`
1507
1508
  *
1508
1509
  * The endpoint rejects any other value with `422 Unprocessable Entity`.
1509
1510
  *