@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
package/bin/mcp-server.js
CHANGED
|
@@ -34192,9 +34192,9 @@ var init_config = __esm(() => {
|
|
|
34192
34192
|
SDK_METADATA = {
|
|
34193
34193
|
language: "typescript",
|
|
34194
34194
|
openapiDocVersion: "0.0.3",
|
|
34195
|
-
sdkVersion: "0.30.
|
|
34196
|
-
genVersion: "2.
|
|
34197
|
-
userAgent: "speakeasy-sdk/typescript 0.30.
|
|
34195
|
+
sdkVersion: "0.30.39",
|
|
34196
|
+
genVersion: "2.597.9",
|
|
34197
|
+
userAgent: "speakeasy-sdk/typescript 0.30.39 2.597.9 0.0.3 @greensecurity/javascript-sdk"
|
|
34198
34198
|
};
|
|
34199
34199
|
});
|
|
34200
34200
|
|
|
@@ -34820,26 +34820,22 @@ class ClientSDK {
|
|
|
34820
34820
|
}
|
|
34821
34821
|
cookie = cookie.startsWith("; ") ? cookie.slice(2) : cookie;
|
|
34822
34822
|
headers.set("cookie", cookie);
|
|
34823
|
-
const userHeaders = new Headers(options?.fetchOptions?.headers);
|
|
34823
|
+
const userHeaders = new Headers(options?.headers ?? options?.fetchOptions?.headers);
|
|
34824
34824
|
for (const [k2, v2] of userHeaders) {
|
|
34825
34825
|
headers.set(k2, v2);
|
|
34826
34826
|
}
|
|
34827
34827
|
if (!isBrowserLike) {
|
|
34828
34828
|
headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
|
|
34829
34829
|
}
|
|
34830
|
-
|
|
34830
|
+
const fetchOptions = {
|
|
34831
|
+
...options?.fetchOptions,
|
|
34832
|
+
...options
|
|
34833
|
+
};
|
|
34831
34834
|
if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
|
|
34832
34835
|
const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
|
|
34833
|
-
|
|
34834
|
-
fetchOptions = { signal: timeoutSignal };
|
|
34835
|
-
} else {
|
|
34836
|
-
fetchOptions.signal = timeoutSignal;
|
|
34837
|
-
}
|
|
34836
|
+
fetchOptions.signal = timeoutSignal;
|
|
34838
34837
|
}
|
|
34839
34838
|
if (conf.body instanceof ReadableStream) {
|
|
34840
|
-
if (!fetchOptions) {
|
|
34841
|
-
fetchOptions = {};
|
|
34842
|
-
}
|
|
34843
34839
|
Object.assign(fetchOptions, { duplex: "half" });
|
|
34844
34840
|
}
|
|
34845
34841
|
let input;
|
|
@@ -36779,6 +36775,639 @@ var init_facility = __esm(() => {
|
|
|
36779
36775
|
})(Facility$ ||= {});
|
|
36780
36776
|
});
|
|
36781
36777
|
|
|
36778
|
+
// src/models/components/zoneconfig.ts
|
|
36779
|
+
var VendorGroupId1$inboundSchema, VendorGroupId1$outboundSchema, VendorGroupId1$, VendorGroupId$inboundSchema, VendorGroupId$outboundSchema, VendorGroupId$, CompanyGroupId1$inboundSchema, CompanyGroupId1$outboundSchema, CompanyGroupId1$, CompanyGroupId$inboundSchema, CompanyGroupId$outboundSchema, CompanyGroupId$, ZoneConfigAppliesTo$inboundSchema, ZoneConfigAppliesTo$outboundSchema, ZoneConfigAppliesTo$, ZoneConfigVendorPolicy$inboundSchema, ZoneConfigVendorPolicy$outboundSchema, ZoneConfigVendorPolicy$, VisitorCheckinPolicy$inboundSchema, VisitorCheckinPolicy$outboundSchema, VisitorCheckinPolicy$, VisitRequestPolicy$inboundSchema, VisitRequestPolicy$outboundSchema, VisitRequestPolicy$, ZoneConfig$inboundSchema, ZoneConfig$outboundSchema, ZoneConfig$;
|
|
36780
|
+
var init_zoneconfig = __esm(() => {
|
|
36781
|
+
init_lib();
|
|
36782
|
+
init_primitives();
|
|
36783
|
+
VendorGroupId1$inboundSchema = objectType({
|
|
36784
|
+
id: numberType().int().optional(),
|
|
36785
|
+
name: stringType().optional(),
|
|
36786
|
+
description: nullableType(stringType()).optional(),
|
|
36787
|
+
visible: booleanType().optional()
|
|
36788
|
+
});
|
|
36789
|
+
VendorGroupId1$outboundSchema = objectType({
|
|
36790
|
+
id: numberType().int().optional(),
|
|
36791
|
+
name: stringType().optional(),
|
|
36792
|
+
description: nullableType(stringType()).optional(),
|
|
36793
|
+
visible: booleanType().optional()
|
|
36794
|
+
});
|
|
36795
|
+
((VendorGroupId1$) => {
|
|
36796
|
+
VendorGroupId1$.inboundSchema = VendorGroupId1$inboundSchema;
|
|
36797
|
+
VendorGroupId1$.outboundSchema = VendorGroupId1$outboundSchema;
|
|
36798
|
+
})(VendorGroupId1$ ||= {});
|
|
36799
|
+
VendorGroupId$inboundSchema = unionType([lazyType(() => VendorGroupId1$inboundSchema), numberType().int()]);
|
|
36800
|
+
VendorGroupId$outboundSchema = unionType([lazyType(() => VendorGroupId1$outboundSchema), numberType().int()]);
|
|
36801
|
+
((VendorGroupId$) => {
|
|
36802
|
+
VendorGroupId$.inboundSchema = VendorGroupId$inboundSchema;
|
|
36803
|
+
VendorGroupId$.outboundSchema = VendorGroupId$outboundSchema;
|
|
36804
|
+
})(VendorGroupId$ ||= {});
|
|
36805
|
+
CompanyGroupId1$inboundSchema = objectType({
|
|
36806
|
+
id: numberType().int().optional(),
|
|
36807
|
+
name: stringType().optional(),
|
|
36808
|
+
description: nullableType(stringType()).optional(),
|
|
36809
|
+
visible: booleanType().optional()
|
|
36810
|
+
});
|
|
36811
|
+
CompanyGroupId1$outboundSchema = objectType({
|
|
36812
|
+
id: numberType().int().optional(),
|
|
36813
|
+
name: stringType().optional(),
|
|
36814
|
+
description: nullableType(stringType()).optional(),
|
|
36815
|
+
visible: booleanType().optional()
|
|
36816
|
+
});
|
|
36817
|
+
((CompanyGroupId1$) => {
|
|
36818
|
+
CompanyGroupId1$.inboundSchema = CompanyGroupId1$inboundSchema;
|
|
36819
|
+
CompanyGroupId1$.outboundSchema = CompanyGroupId1$outboundSchema;
|
|
36820
|
+
})(CompanyGroupId1$ ||= {});
|
|
36821
|
+
CompanyGroupId$inboundSchema = unionType([lazyType(() => CompanyGroupId1$inboundSchema), numberType().int()]);
|
|
36822
|
+
CompanyGroupId$outboundSchema = unionType([lazyType(() => CompanyGroupId1$outboundSchema), numberType().int()]);
|
|
36823
|
+
((CompanyGroupId$) => {
|
|
36824
|
+
CompanyGroupId$.inboundSchema = CompanyGroupId$inboundSchema;
|
|
36825
|
+
CompanyGroupId$.outboundSchema = CompanyGroupId$outboundSchema;
|
|
36826
|
+
})(CompanyGroupId$ ||= {});
|
|
36827
|
+
ZoneConfigAppliesTo$inboundSchema = objectType({
|
|
36828
|
+
vendor_group_id: nullableType(unionType([lazyType(() => VendorGroupId1$inboundSchema), numberType().int()])).optional(),
|
|
36829
|
+
company_group_id: nullableType(unionType([lazyType(() => CompanyGroupId1$inboundSchema), numberType().int()])).optional(),
|
|
36830
|
+
visitor_type: nullableType(stringType()).optional(),
|
|
36831
|
+
visitor_subtype: nullableType(stringType()).optional()
|
|
36832
|
+
}).transform((v2) => {
|
|
36833
|
+
return remap(v2, {
|
|
36834
|
+
vendor_group_id: "vendorGroupId",
|
|
36835
|
+
company_group_id: "companyGroupId",
|
|
36836
|
+
visitor_type: "visitorType",
|
|
36837
|
+
visitor_subtype: "visitorSubtype"
|
|
36838
|
+
});
|
|
36839
|
+
});
|
|
36840
|
+
ZoneConfigAppliesTo$outboundSchema = objectType({
|
|
36841
|
+
vendorGroupId: nullableType(unionType([lazyType(() => VendorGroupId1$outboundSchema), numberType().int()])).optional(),
|
|
36842
|
+
companyGroupId: nullableType(unionType([lazyType(() => CompanyGroupId1$outboundSchema), numberType().int()])).optional(),
|
|
36843
|
+
visitorType: nullableType(stringType()).optional(),
|
|
36844
|
+
visitorSubtype: nullableType(stringType()).optional()
|
|
36845
|
+
}).transform((v2) => {
|
|
36846
|
+
return remap(v2, {
|
|
36847
|
+
vendorGroupId: "vendor_group_id",
|
|
36848
|
+
companyGroupId: "company_group_id",
|
|
36849
|
+
visitorType: "visitor_type",
|
|
36850
|
+
visitorSubtype: "visitor_subtype"
|
|
36851
|
+
});
|
|
36852
|
+
});
|
|
36853
|
+
((ZoneConfigAppliesTo$) => {
|
|
36854
|
+
ZoneConfigAppliesTo$.inboundSchema = ZoneConfigAppliesTo$inboundSchema;
|
|
36855
|
+
ZoneConfigAppliesTo$.outboundSchema = ZoneConfigAppliesTo$outboundSchema;
|
|
36856
|
+
})(ZoneConfigAppliesTo$ ||= {});
|
|
36857
|
+
ZoneConfigVendorPolicy$inboundSchema = objectType({
|
|
36858
|
+
allow_vendor_scans: booleanType().optional(),
|
|
36859
|
+
print_vendor_badge: booleanType().optional(),
|
|
36860
|
+
mfa: booleanType().optional(),
|
|
36861
|
+
ask_questions: booleanType().optional(),
|
|
36862
|
+
requires_facility_appt: booleanType().optional(),
|
|
36863
|
+
requires_department_appt: booleanType().optional(),
|
|
36864
|
+
requires_credentialed: booleanType().optional(),
|
|
36865
|
+
allow_checkin: booleanType().optional(),
|
|
36866
|
+
allow_checkout: booleanType().optional(),
|
|
36867
|
+
allow_spot_check: booleanType().optional(),
|
|
36868
|
+
requires_checkin: booleanType().optional(),
|
|
36869
|
+
full_checkin: booleanType().optional(),
|
|
36870
|
+
full_checkin_always: booleanType().optional(),
|
|
36871
|
+
verify_face: booleanType().optional()
|
|
36872
|
+
}).transform((v2) => {
|
|
36873
|
+
return remap(v2, {
|
|
36874
|
+
allow_vendor_scans: "allowVendorScans",
|
|
36875
|
+
print_vendor_badge: "printVendorBadge",
|
|
36876
|
+
ask_questions: "askQuestions",
|
|
36877
|
+
requires_facility_appt: "requiresFacilityAppt",
|
|
36878
|
+
requires_department_appt: "requiresDepartmentAppt",
|
|
36879
|
+
requires_credentialed: "requiresCredentialed",
|
|
36880
|
+
allow_checkin: "allowCheckin",
|
|
36881
|
+
allow_checkout: "allowCheckout",
|
|
36882
|
+
allow_spot_check: "allowSpotCheck",
|
|
36883
|
+
requires_checkin: "requiresCheckin",
|
|
36884
|
+
full_checkin: "fullCheckin",
|
|
36885
|
+
full_checkin_always: "fullCheckinAlways",
|
|
36886
|
+
verify_face: "verifyFace"
|
|
36887
|
+
});
|
|
36888
|
+
});
|
|
36889
|
+
ZoneConfigVendorPolicy$outboundSchema = objectType({
|
|
36890
|
+
allowVendorScans: booleanType().optional(),
|
|
36891
|
+
printVendorBadge: booleanType().optional(),
|
|
36892
|
+
mfa: booleanType().optional(),
|
|
36893
|
+
askQuestions: booleanType().optional(),
|
|
36894
|
+
requiresFacilityAppt: booleanType().optional(),
|
|
36895
|
+
requiresDepartmentAppt: booleanType().optional(),
|
|
36896
|
+
requiresCredentialed: booleanType().optional(),
|
|
36897
|
+
allowCheckin: booleanType().optional(),
|
|
36898
|
+
allowCheckout: booleanType().optional(),
|
|
36899
|
+
allowSpotCheck: booleanType().optional(),
|
|
36900
|
+
requiresCheckin: booleanType().optional(),
|
|
36901
|
+
fullCheckin: booleanType().optional(),
|
|
36902
|
+
fullCheckinAlways: booleanType().optional(),
|
|
36903
|
+
verifyFace: booleanType().optional()
|
|
36904
|
+
}).transform((v2) => {
|
|
36905
|
+
return remap(v2, {
|
|
36906
|
+
allowVendorScans: "allow_vendor_scans",
|
|
36907
|
+
printVendorBadge: "print_vendor_badge",
|
|
36908
|
+
askQuestions: "ask_questions",
|
|
36909
|
+
requiresFacilityAppt: "requires_facility_appt",
|
|
36910
|
+
requiresDepartmentAppt: "requires_department_appt",
|
|
36911
|
+
requiresCredentialed: "requires_credentialed",
|
|
36912
|
+
allowCheckin: "allow_checkin",
|
|
36913
|
+
allowCheckout: "allow_checkout",
|
|
36914
|
+
allowSpotCheck: "allow_spot_check",
|
|
36915
|
+
requiresCheckin: "requires_checkin",
|
|
36916
|
+
fullCheckin: "full_checkin",
|
|
36917
|
+
fullCheckinAlways: "full_checkin_always",
|
|
36918
|
+
verifyFace: "verify_face"
|
|
36919
|
+
});
|
|
36920
|
+
});
|
|
36921
|
+
((ZoneConfigVendorPolicy$) => {
|
|
36922
|
+
ZoneConfigVendorPolicy$.inboundSchema = ZoneConfigVendorPolicy$inboundSchema;
|
|
36923
|
+
ZoneConfigVendorPolicy$.outboundSchema = ZoneConfigVendorPolicy$outboundSchema;
|
|
36924
|
+
})(ZoneConfigVendorPolicy$ ||= {});
|
|
36925
|
+
VisitorCheckinPolicy$inboundSchema = objectType({
|
|
36926
|
+
print_visitor_badge: booleanType().optional(),
|
|
36927
|
+
ask_questions_visitor_checkins: booleanType().optional(),
|
|
36928
|
+
full_checkin: booleanType().optional()
|
|
36929
|
+
}).transform((v2) => {
|
|
36930
|
+
return remap(v2, {
|
|
36931
|
+
print_visitor_badge: "printVisitorBadge",
|
|
36932
|
+
ask_questions_visitor_checkins: "askQuestionsVisitorCheckins",
|
|
36933
|
+
full_checkin: "fullCheckin"
|
|
36934
|
+
});
|
|
36935
|
+
});
|
|
36936
|
+
VisitorCheckinPolicy$outboundSchema = objectType({
|
|
36937
|
+
printVisitorBadge: booleanType().optional(),
|
|
36938
|
+
askQuestionsVisitorCheckins: booleanType().optional(),
|
|
36939
|
+
fullCheckin: booleanType().optional()
|
|
36940
|
+
}).transform((v2) => {
|
|
36941
|
+
return remap(v2, {
|
|
36942
|
+
printVisitorBadge: "print_visitor_badge",
|
|
36943
|
+
askQuestionsVisitorCheckins: "ask_questions_visitor_checkins",
|
|
36944
|
+
fullCheckin: "full_checkin"
|
|
36945
|
+
});
|
|
36946
|
+
});
|
|
36947
|
+
((VisitorCheckinPolicy$) => {
|
|
36948
|
+
VisitorCheckinPolicy$.inboundSchema = VisitorCheckinPolicy$inboundSchema;
|
|
36949
|
+
VisitorCheckinPolicy$.outboundSchema = VisitorCheckinPolicy$outboundSchema;
|
|
36950
|
+
})(VisitorCheckinPolicy$ ||= {});
|
|
36951
|
+
VisitRequestPolicy$inboundSchema = objectType({
|
|
36952
|
+
ask_questions_visit_requests: nullableType(booleanType()).optional(),
|
|
36953
|
+
require_website_visit_request_picture: nullableType(booleanType()).optional(),
|
|
36954
|
+
require_kiosk_visit_request_picture: nullableType(booleanType()).optional(),
|
|
36955
|
+
visit_request_use_previous_picture: nullableType(booleanType()).optional(),
|
|
36956
|
+
auto_approve_visit_requests: nullableType(booleanType()).optional(),
|
|
36957
|
+
auto_checkin_visit_requests: nullableType(booleanType()).optional(),
|
|
36958
|
+
auto_approve_visit_requests_with_flags: nullableType(booleanType()).optional(),
|
|
36959
|
+
auto_checkin_visit_requests_with_flags: nullableType(booleanType()).optional()
|
|
36960
|
+
}).transform((v2) => {
|
|
36961
|
+
return remap(v2, {
|
|
36962
|
+
ask_questions_visit_requests: "askQuestionsVisitRequests",
|
|
36963
|
+
require_website_visit_request_picture: "requireWebsiteVisitRequestPicture",
|
|
36964
|
+
require_kiosk_visit_request_picture: "requireKioskVisitRequestPicture",
|
|
36965
|
+
visit_request_use_previous_picture: "visitRequestUsePreviousPicture",
|
|
36966
|
+
auto_approve_visit_requests: "autoApproveVisitRequests",
|
|
36967
|
+
auto_checkin_visit_requests: "autoCheckinVisitRequests",
|
|
36968
|
+
auto_approve_visit_requests_with_flags: "autoApproveVisitRequestsWithFlags",
|
|
36969
|
+
auto_checkin_visit_requests_with_flags: "autoCheckinVisitRequestsWithFlags"
|
|
36970
|
+
});
|
|
36971
|
+
});
|
|
36972
|
+
VisitRequestPolicy$outboundSchema = objectType({
|
|
36973
|
+
askQuestionsVisitRequests: nullableType(booleanType()).optional(),
|
|
36974
|
+
requireWebsiteVisitRequestPicture: nullableType(booleanType()).optional(),
|
|
36975
|
+
requireKioskVisitRequestPicture: nullableType(booleanType()).optional(),
|
|
36976
|
+
visitRequestUsePreviousPicture: nullableType(booleanType()).optional(),
|
|
36977
|
+
autoApproveVisitRequests: nullableType(booleanType()).optional(),
|
|
36978
|
+
autoCheckinVisitRequests: nullableType(booleanType()).optional(),
|
|
36979
|
+
autoApproveVisitRequestsWithFlags: nullableType(booleanType()).optional(),
|
|
36980
|
+
autoCheckinVisitRequestsWithFlags: nullableType(booleanType()).optional()
|
|
36981
|
+
}).transform((v2) => {
|
|
36982
|
+
return remap(v2, {
|
|
36983
|
+
askQuestionsVisitRequests: "ask_questions_visit_requests",
|
|
36984
|
+
requireWebsiteVisitRequestPicture: "require_website_visit_request_picture",
|
|
36985
|
+
requireKioskVisitRequestPicture: "require_kiosk_visit_request_picture",
|
|
36986
|
+
visitRequestUsePreviousPicture: "visit_request_use_previous_picture",
|
|
36987
|
+
autoApproveVisitRequests: "auto_approve_visit_requests",
|
|
36988
|
+
autoCheckinVisitRequests: "auto_checkin_visit_requests",
|
|
36989
|
+
autoApproveVisitRequestsWithFlags: "auto_approve_visit_requests_with_flags",
|
|
36990
|
+
autoCheckinVisitRequestsWithFlags: "auto_checkin_visit_requests_with_flags"
|
|
36991
|
+
});
|
|
36992
|
+
});
|
|
36993
|
+
((VisitRequestPolicy$) => {
|
|
36994
|
+
VisitRequestPolicy$.inboundSchema = VisitRequestPolicy$inboundSchema;
|
|
36995
|
+
VisitRequestPolicy$.outboundSchema = VisitRequestPolicy$outboundSchema;
|
|
36996
|
+
})(VisitRequestPolicy$ ||= {});
|
|
36997
|
+
ZoneConfig$inboundSchema = objectType({
|
|
36998
|
+
id: numberType().int().optional(),
|
|
36999
|
+
zone_id: numberType().int().optional(),
|
|
37000
|
+
sort_order: nullableType(numberType().int()).optional(),
|
|
37001
|
+
applies_to: lazyType(() => ZoneConfigAppliesTo$inboundSchema).optional(),
|
|
37002
|
+
vendor_policy: lazyType(() => ZoneConfigVendorPolicy$inboundSchema).optional(),
|
|
37003
|
+
visitor_checkin_policy: lazyType(() => VisitorCheckinPolicy$inboundSchema).optional(),
|
|
37004
|
+
visit_request_policy: lazyType(() => VisitRequestPolicy$inboundSchema).optional()
|
|
37005
|
+
}).transform((v2) => {
|
|
37006
|
+
return remap(v2, {
|
|
37007
|
+
zone_id: "zoneId",
|
|
37008
|
+
sort_order: "sortOrder",
|
|
37009
|
+
applies_to: "appliesTo",
|
|
37010
|
+
vendor_policy: "vendorPolicy",
|
|
37011
|
+
visitor_checkin_policy: "visitorCheckinPolicy",
|
|
37012
|
+
visit_request_policy: "visitRequestPolicy"
|
|
37013
|
+
});
|
|
37014
|
+
});
|
|
37015
|
+
ZoneConfig$outboundSchema = objectType({
|
|
37016
|
+
id: numberType().int().optional(),
|
|
37017
|
+
zoneId: numberType().int().optional(),
|
|
37018
|
+
sortOrder: nullableType(numberType().int()).optional(),
|
|
37019
|
+
appliesTo: lazyType(() => ZoneConfigAppliesTo$outboundSchema).optional(),
|
|
37020
|
+
vendorPolicy: lazyType(() => ZoneConfigVendorPolicy$outboundSchema).optional(),
|
|
37021
|
+
visitorCheckinPolicy: lazyType(() => VisitorCheckinPolicy$outboundSchema).optional(),
|
|
37022
|
+
visitRequestPolicy: lazyType(() => VisitRequestPolicy$outboundSchema).optional()
|
|
37023
|
+
}).transform((v2) => {
|
|
37024
|
+
return remap(v2, {
|
|
37025
|
+
zoneId: "zone_id",
|
|
37026
|
+
sortOrder: "sort_order",
|
|
37027
|
+
appliesTo: "applies_to",
|
|
37028
|
+
vendorPolicy: "vendor_policy",
|
|
37029
|
+
visitorCheckinPolicy: "visitor_checkin_policy",
|
|
37030
|
+
visitRequestPolicy: "visit_request_policy"
|
|
37031
|
+
});
|
|
37032
|
+
});
|
|
37033
|
+
((ZoneConfig$) => {
|
|
37034
|
+
ZoneConfig$.inboundSchema = ZoneConfig$inboundSchema;
|
|
37035
|
+
ZoneConfig$.outboundSchema = ZoneConfig$outboundSchema;
|
|
37036
|
+
})(ZoneConfig$ ||= {});
|
|
37037
|
+
});
|
|
37038
|
+
|
|
37039
|
+
// src/models/components/zone.ts
|
|
37040
|
+
var ZoneFacility$inboundSchema, ZoneFacility$outboundSchema, ZoneFacility$, ZoneDepartment$inboundSchema, ZoneDepartment$outboundSchema, ZoneDepartment$, ZoneLocation$inboundSchema, ZoneLocation$outboundSchema, ZoneLocation$, KioskOfflineNotification$inboundSchema, KioskOfflineNotification$outboundSchema, KioskOfflineNotification$, ZoneVendorPolicy$inboundSchema, ZoneVendorPolicy$outboundSchema, ZoneVendorPolicy$, ZoneVisitorCheckinPolicy$inboundSchema, ZoneVisitorCheckinPolicy$outboundSchema, ZoneVisitorCheckinPolicy$, ZoneVisitRequestPolicy$inboundSchema, ZoneVisitRequestPolicy$outboundSchema, ZoneVisitRequestPolicy$, PrinterConfig$inboundSchema, PrinterConfig$outboundSchema, PrinterConfig$, GpsCheckinPolicy$inboundSchema, GpsCheckinPolicy$outboundSchema, GpsCheckinPolicy$, Zone$inboundSchema, Zone$outboundSchema, Zone$;
|
|
37041
|
+
var init_zone = __esm(() => {
|
|
37042
|
+
init_lib();
|
|
37043
|
+
init_primitives();
|
|
37044
|
+
init_department();
|
|
37045
|
+
init_facility();
|
|
37046
|
+
init_zoneconfig();
|
|
37047
|
+
ZoneFacility$inboundSchema = unionType([Facility$inboundSchema, numberType().int()]);
|
|
37048
|
+
ZoneFacility$outboundSchema = unionType([Facility$outboundSchema, numberType().int()]);
|
|
37049
|
+
((ZoneFacility$) => {
|
|
37050
|
+
ZoneFacility$.inboundSchema = ZoneFacility$inboundSchema;
|
|
37051
|
+
ZoneFacility$.outboundSchema = ZoneFacility$outboundSchema;
|
|
37052
|
+
})(ZoneFacility$ ||= {});
|
|
37053
|
+
ZoneDepartment$inboundSchema = unionType([Department$inboundSchema, numberType().int()]);
|
|
37054
|
+
ZoneDepartment$outboundSchema = unionType([Department$outboundSchema, numberType().int()]);
|
|
37055
|
+
((ZoneDepartment$) => {
|
|
37056
|
+
ZoneDepartment$.inboundSchema = ZoneDepartment$inboundSchema;
|
|
37057
|
+
ZoneDepartment$.outboundSchema = ZoneDepartment$outboundSchema;
|
|
37058
|
+
})(ZoneDepartment$ ||= {});
|
|
37059
|
+
ZoneLocation$inboundSchema = objectType({
|
|
37060
|
+
street_address: nullableType(stringType()).optional(),
|
|
37061
|
+
city: nullableType(stringType()).optional(),
|
|
37062
|
+
state: nullableType(stringType()).optional(),
|
|
37063
|
+
zip: nullableType(stringType()).optional(),
|
|
37064
|
+
floor_number: nullableType(numberType().int()).optional()
|
|
37065
|
+
}).transform((v2) => {
|
|
37066
|
+
return remap(v2, {
|
|
37067
|
+
street_address: "streetAddress",
|
|
37068
|
+
floor_number: "floorNumber"
|
|
37069
|
+
});
|
|
37070
|
+
});
|
|
37071
|
+
ZoneLocation$outboundSchema = objectType({
|
|
37072
|
+
streetAddress: nullableType(stringType()).optional(),
|
|
37073
|
+
city: nullableType(stringType()).optional(),
|
|
37074
|
+
state: nullableType(stringType()).optional(),
|
|
37075
|
+
zip: nullableType(stringType()).optional(),
|
|
37076
|
+
floorNumber: nullableType(numberType().int()).optional()
|
|
37077
|
+
}).transform((v2) => {
|
|
37078
|
+
return remap(v2, {
|
|
37079
|
+
streetAddress: "street_address",
|
|
37080
|
+
floorNumber: "floor_number"
|
|
37081
|
+
});
|
|
37082
|
+
});
|
|
37083
|
+
((ZoneLocation$) => {
|
|
37084
|
+
ZoneLocation$.inboundSchema = ZoneLocation$inboundSchema;
|
|
37085
|
+
ZoneLocation$.outboundSchema = ZoneLocation$outboundSchema;
|
|
37086
|
+
})(ZoneLocation$ ||= {});
|
|
37087
|
+
KioskOfflineNotification$inboundSchema = objectType({
|
|
37088
|
+
is_offline: nullableType(booleanType()).optional(),
|
|
37089
|
+
message: nullableType(stringType()).optional(),
|
|
37090
|
+
auto_activate: nullableType(stringType()).optional(),
|
|
37091
|
+
auto_deactivate: nullableType(stringType()).optional()
|
|
37092
|
+
}).transform((v2) => {
|
|
37093
|
+
return remap(v2, {
|
|
37094
|
+
is_offline: "isOffline",
|
|
37095
|
+
auto_activate: "autoActivate",
|
|
37096
|
+
auto_deactivate: "autoDeactivate"
|
|
37097
|
+
});
|
|
37098
|
+
});
|
|
37099
|
+
KioskOfflineNotification$outboundSchema = objectType({
|
|
37100
|
+
isOffline: nullableType(booleanType()).optional(),
|
|
37101
|
+
message: nullableType(stringType()).optional(),
|
|
37102
|
+
autoActivate: nullableType(stringType()).optional(),
|
|
37103
|
+
autoDeactivate: nullableType(stringType()).optional()
|
|
37104
|
+
}).transform((v2) => {
|
|
37105
|
+
return remap(v2, {
|
|
37106
|
+
isOffline: "is_offline",
|
|
37107
|
+
autoActivate: "auto_activate",
|
|
37108
|
+
autoDeactivate: "auto_deactivate"
|
|
37109
|
+
});
|
|
37110
|
+
});
|
|
37111
|
+
((KioskOfflineNotification$) => {
|
|
37112
|
+
KioskOfflineNotification$.inboundSchema = KioskOfflineNotification$inboundSchema;
|
|
37113
|
+
KioskOfflineNotification$.outboundSchema = KioskOfflineNotification$outboundSchema;
|
|
37114
|
+
})(KioskOfflineNotification$ ||= {});
|
|
37115
|
+
ZoneVendorPolicy$inboundSchema = objectType({
|
|
37116
|
+
allow_gps_checkin: booleanType().optional(),
|
|
37117
|
+
allow_scrubs: booleanType().optional(),
|
|
37118
|
+
allow_vendor_scans: booleanType().optional(),
|
|
37119
|
+
requires_checkin_for_scrubs: booleanType().optional(),
|
|
37120
|
+
override_limit: nullableType(numberType().int()).optional(),
|
|
37121
|
+
override_limit_days: nullableType(numberType().int()).optional()
|
|
37122
|
+
}).transform((v2) => {
|
|
37123
|
+
return remap(v2, {
|
|
37124
|
+
allow_gps_checkin: "allowGpsCheckin",
|
|
37125
|
+
allow_scrubs: "allowScrubs",
|
|
37126
|
+
allow_vendor_scans: "allowVendorScans",
|
|
37127
|
+
requires_checkin_for_scrubs: "requiresCheckinForScrubs",
|
|
37128
|
+
override_limit: "overrideLimit",
|
|
37129
|
+
override_limit_days: "overrideLimitDays"
|
|
37130
|
+
});
|
|
37131
|
+
});
|
|
37132
|
+
ZoneVendorPolicy$outboundSchema = objectType({
|
|
37133
|
+
allowGpsCheckin: booleanType().optional(),
|
|
37134
|
+
allowScrubs: booleanType().optional(),
|
|
37135
|
+
allowVendorScans: booleanType().optional(),
|
|
37136
|
+
requiresCheckinForScrubs: booleanType().optional(),
|
|
37137
|
+
overrideLimit: nullableType(numberType().int()).optional(),
|
|
37138
|
+
overrideLimitDays: nullableType(numberType().int()).optional()
|
|
37139
|
+
}).transform((v2) => {
|
|
37140
|
+
return remap(v2, {
|
|
37141
|
+
allowGpsCheckin: "allow_gps_checkin",
|
|
37142
|
+
allowScrubs: "allow_scrubs",
|
|
37143
|
+
allowVendorScans: "allow_vendor_scans",
|
|
37144
|
+
requiresCheckinForScrubs: "requires_checkin_for_scrubs",
|
|
37145
|
+
overrideLimit: "override_limit",
|
|
37146
|
+
overrideLimitDays: "override_limit_days"
|
|
37147
|
+
});
|
|
37148
|
+
});
|
|
37149
|
+
((ZoneVendorPolicy$) => {
|
|
37150
|
+
ZoneVendorPolicy$.inboundSchema = ZoneVendorPolicy$inboundSchema;
|
|
37151
|
+
ZoneVendorPolicy$.outboundSchema = ZoneVendorPolicy$outboundSchema;
|
|
37152
|
+
})(ZoneVendorPolicy$ ||= {});
|
|
37153
|
+
ZoneVisitorCheckinPolicy$inboundSchema = objectType({
|
|
37154
|
+
allow_checkin: booleanType().optional(),
|
|
37155
|
+
allow_visiting: booleanType().optional(),
|
|
37156
|
+
allow_visiting_rooms: booleanType().optional(),
|
|
37157
|
+
auto_checkout: booleanType().optional(),
|
|
37158
|
+
max_visitor_count: nullableType(numberType().int()).optional()
|
|
37159
|
+
}).transform((v2) => {
|
|
37160
|
+
return remap(v2, {
|
|
37161
|
+
allow_checkin: "allowCheckin",
|
|
37162
|
+
allow_visiting: "allowVisiting",
|
|
37163
|
+
allow_visiting_rooms: "allowVisitingRooms",
|
|
37164
|
+
auto_checkout: "autoCheckout",
|
|
37165
|
+
max_visitor_count: "maxVisitorCount"
|
|
37166
|
+
});
|
|
37167
|
+
});
|
|
37168
|
+
ZoneVisitorCheckinPolicy$outboundSchema = objectType({
|
|
37169
|
+
allowCheckin: booleanType().optional(),
|
|
37170
|
+
allowVisiting: booleanType().optional(),
|
|
37171
|
+
allowVisitingRooms: booleanType().optional(),
|
|
37172
|
+
autoCheckout: booleanType().optional(),
|
|
37173
|
+
maxVisitorCount: nullableType(numberType().int()).optional()
|
|
37174
|
+
}).transform((v2) => {
|
|
37175
|
+
return remap(v2, {
|
|
37176
|
+
allowCheckin: "allow_checkin",
|
|
37177
|
+
allowVisiting: "allow_visiting",
|
|
37178
|
+
allowVisitingRooms: "allow_visiting_rooms",
|
|
37179
|
+
autoCheckout: "auto_checkout",
|
|
37180
|
+
maxVisitorCount: "max_visitor_count"
|
|
37181
|
+
});
|
|
37182
|
+
});
|
|
37183
|
+
((ZoneVisitorCheckinPolicy$) => {
|
|
37184
|
+
ZoneVisitorCheckinPolicy$.inboundSchema = ZoneVisitorCheckinPolicy$inboundSchema;
|
|
37185
|
+
ZoneVisitorCheckinPolicy$.outboundSchema = ZoneVisitorCheckinPolicy$outboundSchema;
|
|
37186
|
+
})(ZoneVisitorCheckinPolicy$ ||= {});
|
|
37187
|
+
ZoneVisitRequestPolicy$inboundSchema = objectType({
|
|
37188
|
+
allow_visiting: booleanType().optional(),
|
|
37189
|
+
watchlist_hit_message: nullableType(stringType()).optional(),
|
|
37190
|
+
watchdog_hit_message: nullableType(stringType()).optional(),
|
|
37191
|
+
guest_limit_exceeded_message: nullableType(stringType()).optional(),
|
|
37192
|
+
denied_background_vendor_message: nullableType(stringType()).optional(),
|
|
37193
|
+
locked_vendor_message: nullableType(stringType()).optional(),
|
|
37194
|
+
stop_checkin_message: nullableType(stringType()).optional(),
|
|
37195
|
+
success_message: nullableType(stringType()).optional(),
|
|
37196
|
+
show_general_visitor: booleanType().optional(),
|
|
37197
|
+
restrict_to_scan_only: booleanType().optional()
|
|
37198
|
+
}).transform((v2) => {
|
|
37199
|
+
return remap(v2, {
|
|
37200
|
+
allow_visiting: "allowVisiting",
|
|
37201
|
+
watchlist_hit_message: "watchlistHitMessage",
|
|
37202
|
+
watchdog_hit_message: "watchdogHitMessage",
|
|
37203
|
+
guest_limit_exceeded_message: "guestLimitExceededMessage",
|
|
37204
|
+
denied_background_vendor_message: "deniedBackgroundVendorMessage",
|
|
37205
|
+
locked_vendor_message: "lockedVendorMessage",
|
|
37206
|
+
stop_checkin_message: "stopCheckinMessage",
|
|
37207
|
+
success_message: "successMessage",
|
|
37208
|
+
show_general_visitor: "showGeneralVisitor",
|
|
37209
|
+
restrict_to_scan_only: "restrictToScanOnly"
|
|
37210
|
+
});
|
|
37211
|
+
});
|
|
37212
|
+
ZoneVisitRequestPolicy$outboundSchema = objectType({
|
|
37213
|
+
allowVisiting: booleanType().optional(),
|
|
37214
|
+
watchlistHitMessage: nullableType(stringType()).optional(),
|
|
37215
|
+
watchdogHitMessage: nullableType(stringType()).optional(),
|
|
37216
|
+
guestLimitExceededMessage: nullableType(stringType()).optional(),
|
|
37217
|
+
deniedBackgroundVendorMessage: nullableType(stringType()).optional(),
|
|
37218
|
+
lockedVendorMessage: nullableType(stringType()).optional(),
|
|
37219
|
+
stopCheckinMessage: nullableType(stringType()).optional(),
|
|
37220
|
+
successMessage: nullableType(stringType()).optional(),
|
|
37221
|
+
showGeneralVisitor: booleanType().optional(),
|
|
37222
|
+
restrictToScanOnly: booleanType().optional()
|
|
37223
|
+
}).transform((v2) => {
|
|
37224
|
+
return remap(v2, {
|
|
37225
|
+
allowVisiting: "allow_visiting",
|
|
37226
|
+
watchlistHitMessage: "watchlist_hit_message",
|
|
37227
|
+
watchdogHitMessage: "watchdog_hit_message",
|
|
37228
|
+
guestLimitExceededMessage: "guest_limit_exceeded_message",
|
|
37229
|
+
deniedBackgroundVendorMessage: "denied_background_vendor_message",
|
|
37230
|
+
lockedVendorMessage: "locked_vendor_message",
|
|
37231
|
+
stopCheckinMessage: "stop_checkin_message",
|
|
37232
|
+
successMessage: "success_message",
|
|
37233
|
+
showGeneralVisitor: "show_general_visitor",
|
|
37234
|
+
restrictToScanOnly: "restrict_to_scan_only"
|
|
37235
|
+
});
|
|
37236
|
+
});
|
|
37237
|
+
((ZoneVisitRequestPolicy$) => {
|
|
37238
|
+
ZoneVisitRequestPolicy$.inboundSchema = ZoneVisitRequestPolicy$inboundSchema;
|
|
37239
|
+
ZoneVisitRequestPolicy$.outboundSchema = ZoneVisitRequestPolicy$outboundSchema;
|
|
37240
|
+
})(ZoneVisitRequestPolicy$ ||= {});
|
|
37241
|
+
PrinterConfig$inboundSchema = objectType({
|
|
37242
|
+
type: nullableType(stringType()).optional(),
|
|
37243
|
+
name: nullableType(stringType()).optional(),
|
|
37244
|
+
dpi: nullableType(stringType()).optional(),
|
|
37245
|
+
ip: nullableType(stringType()).optional(),
|
|
37246
|
+
port: nullableType(stringType()).optional(),
|
|
37247
|
+
email: nullableType(stringType()).optional(),
|
|
37248
|
+
flip: booleanType().optional(),
|
|
37249
|
+
orientation: nullableType(stringType()).optional(),
|
|
37250
|
+
dymo_brightness_adjust: nullableType(numberType().int()).optional()
|
|
37251
|
+
}).transform((v2) => {
|
|
37252
|
+
return remap(v2, {
|
|
37253
|
+
dymo_brightness_adjust: "dymoBrightnessAdjust"
|
|
37254
|
+
});
|
|
37255
|
+
});
|
|
37256
|
+
PrinterConfig$outboundSchema = objectType({
|
|
37257
|
+
type: nullableType(stringType()).optional(),
|
|
37258
|
+
name: nullableType(stringType()).optional(),
|
|
37259
|
+
dpi: nullableType(stringType()).optional(),
|
|
37260
|
+
ip: nullableType(stringType()).optional(),
|
|
37261
|
+
port: nullableType(stringType()).optional(),
|
|
37262
|
+
email: nullableType(stringType()).optional(),
|
|
37263
|
+
flip: booleanType().optional(),
|
|
37264
|
+
orientation: nullableType(stringType()).optional(),
|
|
37265
|
+
dymoBrightnessAdjust: nullableType(numberType().int()).optional()
|
|
37266
|
+
}).transform((v2) => {
|
|
37267
|
+
return remap(v2, {
|
|
37268
|
+
dymoBrightnessAdjust: "dymo_brightness_adjust"
|
|
37269
|
+
});
|
|
37270
|
+
});
|
|
37271
|
+
((PrinterConfig$) => {
|
|
37272
|
+
PrinterConfig$.inboundSchema = PrinterConfig$inboundSchema;
|
|
37273
|
+
PrinterConfig$.outboundSchema = PrinterConfig$outboundSchema;
|
|
37274
|
+
})(PrinterConfig$ ||= {});
|
|
37275
|
+
GpsCheckinPolicy$inboundSchema = objectType({
|
|
37276
|
+
latitude: nullableType(stringType()).optional(),
|
|
37277
|
+
longitude: nullableType(stringType()).optional(),
|
|
37278
|
+
gps_checkin_radius: nullableType(numberType().int()).optional(),
|
|
37279
|
+
geocode_error: nullableType(stringType()).optional()
|
|
37280
|
+
}).transform((v2) => {
|
|
37281
|
+
return remap(v2, {
|
|
37282
|
+
gps_checkin_radius: "gpsCheckinRadius",
|
|
37283
|
+
geocode_error: "geocodeError"
|
|
37284
|
+
});
|
|
37285
|
+
});
|
|
37286
|
+
GpsCheckinPolicy$outboundSchema = objectType({
|
|
37287
|
+
latitude: nullableType(stringType()).optional(),
|
|
37288
|
+
longitude: nullableType(stringType()).optional(),
|
|
37289
|
+
gpsCheckinRadius: nullableType(numberType().int()).optional(),
|
|
37290
|
+
geocodeError: nullableType(stringType()).optional()
|
|
37291
|
+
}).transform((v2) => {
|
|
37292
|
+
return remap(v2, {
|
|
37293
|
+
gpsCheckinRadius: "gps_checkin_radius",
|
|
37294
|
+
geocodeError: "geocode_error"
|
|
37295
|
+
});
|
|
37296
|
+
});
|
|
37297
|
+
((GpsCheckinPolicy$) => {
|
|
37298
|
+
GpsCheckinPolicy$.inboundSchema = GpsCheckinPolicy$inboundSchema;
|
|
37299
|
+
GpsCheckinPolicy$.outboundSchema = GpsCheckinPolicy$outboundSchema;
|
|
37300
|
+
})(GpsCheckinPolicy$ ||= {});
|
|
37301
|
+
Zone$inboundSchema = objectType({
|
|
37302
|
+
id: numberType().int().optional(),
|
|
37303
|
+
facility: nullableType(unionType([Facility$inboundSchema, numberType().int()])).optional(),
|
|
37304
|
+
department: nullableType(unionType([Department$inboundSchema, numberType().int()])).optional(),
|
|
37305
|
+
name: nullableType(stringType()).optional(),
|
|
37306
|
+
short_name: nullableType(stringType()).optional(),
|
|
37307
|
+
description: nullableType(stringType()).optional(),
|
|
37308
|
+
status: nullableType(stringType()).optional(),
|
|
37309
|
+
notes: nullableType(stringType()).optional(),
|
|
37310
|
+
rules: nullableType(arrayType(nullableType(ZoneConfig$inboundSchema))).optional(),
|
|
37311
|
+
location: lazyType(() => ZoneLocation$inboundSchema).optional(),
|
|
37312
|
+
kiosk_offline_notification: lazyType(() => KioskOfflineNotification$inboundSchema).optional(),
|
|
37313
|
+
vendor_policy: lazyType(() => ZoneVendorPolicy$inboundSchema).optional(),
|
|
37314
|
+
visitor_checkin_policy: lazyType(() => ZoneVisitorCheckinPolicy$inboundSchema).optional(),
|
|
37315
|
+
visit_request_policy: lazyType(() => ZoneVisitRequestPolicy$inboundSchema).optional(),
|
|
37316
|
+
printer_config: lazyType(() => PrinterConfig$inboundSchema).optional(),
|
|
37317
|
+
gps_checkin_policy: lazyType(() => GpsCheckinPolicy$inboundSchema).optional()
|
|
37318
|
+
}).transform((v2) => {
|
|
37319
|
+
return remap(v2, {
|
|
37320
|
+
short_name: "shortName",
|
|
37321
|
+
kiosk_offline_notification: "kioskOfflineNotification",
|
|
37322
|
+
vendor_policy: "vendorPolicy",
|
|
37323
|
+
visitor_checkin_policy: "visitorCheckinPolicy",
|
|
37324
|
+
visit_request_policy: "visitRequestPolicy",
|
|
37325
|
+
printer_config: "printerConfig",
|
|
37326
|
+
gps_checkin_policy: "gpsCheckinPolicy"
|
|
37327
|
+
});
|
|
37328
|
+
});
|
|
37329
|
+
Zone$outboundSchema = objectType({
|
|
37330
|
+
id: numberType().int().optional(),
|
|
37331
|
+
facility: nullableType(unionType([Facility$outboundSchema, numberType().int()])).optional(),
|
|
37332
|
+
department: nullableType(unionType([Department$outboundSchema, numberType().int()])).optional(),
|
|
37333
|
+
name: nullableType(stringType()).optional(),
|
|
37334
|
+
shortName: nullableType(stringType()).optional(),
|
|
37335
|
+
description: nullableType(stringType()).optional(),
|
|
37336
|
+
status: nullableType(stringType()).optional(),
|
|
37337
|
+
notes: nullableType(stringType()).optional(),
|
|
37338
|
+
rules: nullableType(arrayType(nullableType(ZoneConfig$outboundSchema))).optional(),
|
|
37339
|
+
location: lazyType(() => ZoneLocation$outboundSchema).optional(),
|
|
37340
|
+
kioskOfflineNotification: lazyType(() => KioskOfflineNotification$outboundSchema).optional(),
|
|
37341
|
+
vendorPolicy: lazyType(() => ZoneVendorPolicy$outboundSchema).optional(),
|
|
37342
|
+
visitorCheckinPolicy: lazyType(() => ZoneVisitorCheckinPolicy$outboundSchema).optional(),
|
|
37343
|
+
visitRequestPolicy: lazyType(() => ZoneVisitRequestPolicy$outboundSchema).optional(),
|
|
37344
|
+
printerConfig: lazyType(() => PrinterConfig$outboundSchema).optional(),
|
|
37345
|
+
gpsCheckinPolicy: lazyType(() => GpsCheckinPolicy$outboundSchema).optional()
|
|
37346
|
+
}).transform((v2) => {
|
|
37347
|
+
return remap(v2, {
|
|
37348
|
+
shortName: "short_name",
|
|
37349
|
+
kioskOfflineNotification: "kiosk_offline_notification",
|
|
37350
|
+
vendorPolicy: "vendor_policy",
|
|
37351
|
+
visitorCheckinPolicy: "visitor_checkin_policy",
|
|
37352
|
+
visitRequestPolicy: "visit_request_policy",
|
|
37353
|
+
printerConfig: "printer_config",
|
|
37354
|
+
gpsCheckinPolicy: "gps_checkin_policy"
|
|
37355
|
+
});
|
|
37356
|
+
});
|
|
37357
|
+
((Zone$) => {
|
|
37358
|
+
Zone$.inboundSchema = Zone$inboundSchema;
|
|
37359
|
+
Zone$.outboundSchema = Zone$outboundSchema;
|
|
37360
|
+
})(Zone$ ||= {});
|
|
37361
|
+
});
|
|
37362
|
+
|
|
37363
|
+
// src/models/components/handoff.ts
|
|
37364
|
+
var Handoff$inboundSchema, Handoff$outboundSchema, Handoff$;
|
|
37365
|
+
var init_handoff = __esm(() => {
|
|
37366
|
+
init_lib();
|
|
37367
|
+
init_primitives();
|
|
37368
|
+
init_zone();
|
|
37369
|
+
Handoff$inboundSchema = objectType({
|
|
37370
|
+
id: numberType().int().optional(),
|
|
37371
|
+
zone: Zone$inboundSchema.optional(),
|
|
37372
|
+
qr_code: nullableType(stringType()).optional(),
|
|
37373
|
+
date_created: nullableType(stringType()).optional(),
|
|
37374
|
+
date_received: nullableType(stringType()).optional(),
|
|
37375
|
+
date_completed: nullableType(stringType()).optional(),
|
|
37376
|
+
status: nullableType(stringType()).optional(),
|
|
37377
|
+
gps_checkin: booleanType().optional()
|
|
37378
|
+
}).transform((v2) => {
|
|
37379
|
+
return remap(v2, {
|
|
37380
|
+
qr_code: "qrCode",
|
|
37381
|
+
date_created: "dateCreated",
|
|
37382
|
+
date_received: "dateReceived",
|
|
37383
|
+
date_completed: "dateCompleted",
|
|
37384
|
+
gps_checkin: "gpsCheckin"
|
|
37385
|
+
});
|
|
37386
|
+
});
|
|
37387
|
+
Handoff$outboundSchema = objectType({
|
|
37388
|
+
id: numberType().int().optional(),
|
|
37389
|
+
zone: Zone$outboundSchema.optional(),
|
|
37390
|
+
qrCode: nullableType(stringType()).optional(),
|
|
37391
|
+
dateCreated: nullableType(stringType()).optional(),
|
|
37392
|
+
dateReceived: nullableType(stringType()).optional(),
|
|
37393
|
+
dateCompleted: nullableType(stringType()).optional(),
|
|
37394
|
+
status: nullableType(stringType()).optional(),
|
|
37395
|
+
gpsCheckin: booleanType().optional()
|
|
37396
|
+
}).transform((v2) => {
|
|
37397
|
+
return remap(v2, {
|
|
37398
|
+
qrCode: "qr_code",
|
|
37399
|
+
dateCreated: "date_created",
|
|
37400
|
+
dateReceived: "date_received",
|
|
37401
|
+
dateCompleted: "date_completed",
|
|
37402
|
+
gpsCheckin: "gps_checkin"
|
|
37403
|
+
});
|
|
37404
|
+
});
|
|
37405
|
+
((Handoff$) => {
|
|
37406
|
+
Handoff$.inboundSchema = Handoff$inboundSchema;
|
|
37407
|
+
Handoff$.outboundSchema = Handoff$outboundSchema;
|
|
37408
|
+
})(Handoff$ ||= {});
|
|
37409
|
+
});
|
|
37410
|
+
|
|
36782
37411
|
// src/models/components/invoiceitem.ts
|
|
36783
37412
|
var InvoiceItem$inboundSchema, InvoiceItem$outboundSchema, InvoiceItem$;
|
|
36784
37413
|
var init_invoiceitem = __esm(() => {
|
|
@@ -38474,6 +39103,7 @@ var init_components = __esm(() => {
|
|
|
38474
39103
|
init_expand();
|
|
38475
39104
|
init_facility();
|
|
38476
39105
|
init_facilitysummary();
|
|
39106
|
+
init_handoff();
|
|
38477
39107
|
init_imageset();
|
|
38478
39108
|
init_invoice();
|
|
38479
39109
|
init_invoiceitem();
|
|
@@ -38506,6 +39136,8 @@ var init_components = __esm(() => {
|
|
|
38506
39136
|
init_vendorscrubpurchase();
|
|
38507
39137
|
init_vendortype();
|
|
38508
39138
|
init_webhookendpoint();
|
|
39139
|
+
init_zone();
|
|
39140
|
+
init_zoneconfig();
|
|
38509
39141
|
});
|
|
38510
39142
|
|
|
38511
39143
|
// src/models/operations/createvendorcompany.ts
|
|
@@ -39031,6 +39663,88 @@ var init_listorsearchfacilities = __esm(() => {
|
|
|
39031
39663
|
})(ListOrSearchFacilitiesResponse$ ||= {});
|
|
39032
39664
|
});
|
|
39033
39665
|
|
|
39666
|
+
// src/models/operations/listorsearchsecurityzones.ts
|
|
39667
|
+
var ListOrSearchSecurityZonesRequest$inboundSchema, ListOrSearchSecurityZonesRequest$outboundSchema, ListOrSearchSecurityZonesRequest$, ListOrSearchSecurityZonesResponseBody$inboundSchema, ListOrSearchSecurityZonesResponseBody$outboundSchema, ListOrSearchSecurityZonesResponseBody$, ListOrSearchSecurityZonesResponse$inboundSchema, ListOrSearchSecurityZonesResponse$outboundSchema, ListOrSearchSecurityZonesResponse$;
|
|
39668
|
+
var init_listorsearchsecurityzones = __esm(() => {
|
|
39669
|
+
init_lib();
|
|
39670
|
+
init_primitives();
|
|
39671
|
+
init_components();
|
|
39672
|
+
ListOrSearchSecurityZonesRequest$inboundSchema = objectType({
|
|
39673
|
+
sort: nullableType(stringType()).optional(),
|
|
39674
|
+
desc: Desc$inboundSchema.optional(),
|
|
39675
|
+
page: numberType().int().optional(),
|
|
39676
|
+
items_per_page: numberType().int().optional(),
|
|
39677
|
+
latitude: numberType().optional(),
|
|
39678
|
+
longitude: numberType().optional(),
|
|
39679
|
+
name_like: stringType().optional(),
|
|
39680
|
+
contact_id: numberType().optional(),
|
|
39681
|
+
facility_id: numberType().optional(),
|
|
39682
|
+
green_location_id: numberType().optional()
|
|
39683
|
+
}).transform((v2) => {
|
|
39684
|
+
return remap(v2, {
|
|
39685
|
+
items_per_page: "itemsPerPage",
|
|
39686
|
+
name_like: "nameLike",
|
|
39687
|
+
contact_id: "contactId",
|
|
39688
|
+
facility_id: "facilityId",
|
|
39689
|
+
green_location_id: "greenLocationId"
|
|
39690
|
+
});
|
|
39691
|
+
});
|
|
39692
|
+
ListOrSearchSecurityZonesRequest$outboundSchema = objectType({
|
|
39693
|
+
sort: nullableType(stringType()).optional(),
|
|
39694
|
+
desc: Desc$outboundSchema.optional(),
|
|
39695
|
+
page: numberType().int().optional(),
|
|
39696
|
+
itemsPerPage: numberType().int().optional(),
|
|
39697
|
+
latitude: numberType().optional(),
|
|
39698
|
+
longitude: numberType().optional(),
|
|
39699
|
+
nameLike: stringType().optional(),
|
|
39700
|
+
contactId: numberType().optional(),
|
|
39701
|
+
facilityId: numberType().optional(),
|
|
39702
|
+
greenLocationId: numberType().optional()
|
|
39703
|
+
}).transform((v2) => {
|
|
39704
|
+
return remap(v2, {
|
|
39705
|
+
itemsPerPage: "items_per_page",
|
|
39706
|
+
nameLike: "name_like",
|
|
39707
|
+
contactId: "contact_id",
|
|
39708
|
+
facilityId: "facility_id",
|
|
39709
|
+
greenLocationId: "green_location_id"
|
|
39710
|
+
});
|
|
39711
|
+
});
|
|
39712
|
+
((ListOrSearchSecurityZonesRequest$) => {
|
|
39713
|
+
ListOrSearchSecurityZonesRequest$.inboundSchema = ListOrSearchSecurityZonesRequest$inboundSchema;
|
|
39714
|
+
ListOrSearchSecurityZonesRequest$.outboundSchema = ListOrSearchSecurityZonesRequest$outboundSchema;
|
|
39715
|
+
})(ListOrSearchSecurityZonesRequest$ ||= {});
|
|
39716
|
+
ListOrSearchSecurityZonesResponseBody$inboundSchema = objectType({
|
|
39717
|
+
pager: Pager$inboundSchema,
|
|
39718
|
+
items: arrayType(Zone$inboundSchema)
|
|
39719
|
+
});
|
|
39720
|
+
ListOrSearchSecurityZonesResponseBody$outboundSchema = objectType({
|
|
39721
|
+
pager: Pager$outboundSchema,
|
|
39722
|
+
items: arrayType(Zone$outboundSchema)
|
|
39723
|
+
});
|
|
39724
|
+
((ListOrSearchSecurityZonesResponseBody$) => {
|
|
39725
|
+
ListOrSearchSecurityZonesResponseBody$.inboundSchema = ListOrSearchSecurityZonesResponseBody$inboundSchema;
|
|
39726
|
+
ListOrSearchSecurityZonesResponseBody$.outboundSchema = ListOrSearchSecurityZonesResponseBody$outboundSchema;
|
|
39727
|
+
})(ListOrSearchSecurityZonesResponseBody$ ||= {});
|
|
39728
|
+
ListOrSearchSecurityZonesResponse$inboundSchema = objectType({
|
|
39729
|
+
Result: lazyType(() => ListOrSearchSecurityZonesResponseBody$inboundSchema)
|
|
39730
|
+
}).transform((v2) => {
|
|
39731
|
+
return remap(v2, {
|
|
39732
|
+
Result: "result"
|
|
39733
|
+
});
|
|
39734
|
+
});
|
|
39735
|
+
ListOrSearchSecurityZonesResponse$outboundSchema = objectType({
|
|
39736
|
+
result: lazyType(() => ListOrSearchSecurityZonesResponseBody$outboundSchema)
|
|
39737
|
+
}).transform((v2) => {
|
|
39738
|
+
return remap(v2, {
|
|
39739
|
+
result: "Result"
|
|
39740
|
+
});
|
|
39741
|
+
});
|
|
39742
|
+
((ListOrSearchSecurityZonesResponse$) => {
|
|
39743
|
+
ListOrSearchSecurityZonesResponse$.inboundSchema = ListOrSearchSecurityZonesResponse$inboundSchema;
|
|
39744
|
+
ListOrSearchSecurityZonesResponse$.outboundSchema = ListOrSearchSecurityZonesResponse$outboundSchema;
|
|
39745
|
+
})(ListOrSearchSecurityZonesResponse$ ||= {});
|
|
39746
|
+
});
|
|
39747
|
+
|
|
39034
39748
|
// src/models/operations/listorsearchsupportarticles.ts
|
|
39035
39749
|
var ListOrSearchSupportArticlesRequest$inboundSchema, ListOrSearchSupportArticlesRequest$outboundSchema, ListOrSearchSupportArticlesRequest$, ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema, ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema, ListOrSearchSupportArticlesListOrSearchArticlesOk$, ListOrSearchSupportArticlesResponse$inboundSchema, ListOrSearchSupportArticlesResponse$outboundSchema, ListOrSearchSupportArticlesResponse$;
|
|
39036
39750
|
var init_listorsearchsupportarticles = __esm(() => {
|
|
@@ -40057,6 +40771,62 @@ var init_purchasescrubcredits = __esm(() => {
|
|
|
40057
40771
|
})(PurchaseScrubCreditsResponseBody$ ||= {});
|
|
40058
40772
|
});
|
|
40059
40773
|
|
|
40774
|
+
// src/models/operations/securityzonecheckin.ts
|
|
40775
|
+
var Two$inboundSchema, Two$outboundSchema, Two$, One$inboundSchema2, One$outboundSchema2, One$2, SecurityZoneCheckinRequestBody$inboundSchema, SecurityZoneCheckinRequestBody$outboundSchema, SecurityZoneCheckinRequestBody$;
|
|
40776
|
+
var init_securityzonecheckin = __esm(() => {
|
|
40777
|
+
init_lib();
|
|
40778
|
+
init_primitives();
|
|
40779
|
+
Two$inboundSchema = objectType({
|
|
40780
|
+
qr_code: stringType()
|
|
40781
|
+
}).transform((v2) => {
|
|
40782
|
+
return remap(v2, {
|
|
40783
|
+
qr_code: "qrCode"
|
|
40784
|
+
});
|
|
40785
|
+
});
|
|
40786
|
+
Two$outboundSchema = objectType({
|
|
40787
|
+
qrCode: stringType()
|
|
40788
|
+
}).transform((v2) => {
|
|
40789
|
+
return remap(v2, {
|
|
40790
|
+
qrCode: "qr_code"
|
|
40791
|
+
});
|
|
40792
|
+
});
|
|
40793
|
+
((Two$) => {
|
|
40794
|
+
Two$.inboundSchema = Two$inboundSchema;
|
|
40795
|
+
Two$.outboundSchema = Two$outboundSchema;
|
|
40796
|
+
})(Two$ ||= {});
|
|
40797
|
+
One$inboundSchema2 = objectType({
|
|
40798
|
+
zone_id: numberType().int(),
|
|
40799
|
+
longitude: anyType().optional(),
|
|
40800
|
+
latitude: anyType().optional()
|
|
40801
|
+
}).transform((v2) => {
|
|
40802
|
+
return remap(v2, {
|
|
40803
|
+
zone_id: "zoneId"
|
|
40804
|
+
});
|
|
40805
|
+
});
|
|
40806
|
+
One$outboundSchema2 = objectType({
|
|
40807
|
+
zoneId: numberType().int(),
|
|
40808
|
+
longitude: anyType().optional(),
|
|
40809
|
+
latitude: anyType().optional()
|
|
40810
|
+
}).transform((v2) => {
|
|
40811
|
+
return remap(v2, {
|
|
40812
|
+
zoneId: "zone_id"
|
|
40813
|
+
});
|
|
40814
|
+
});
|
|
40815
|
+
((One$) => {
|
|
40816
|
+
One$.inboundSchema = One$inboundSchema2;
|
|
40817
|
+
One$.outboundSchema = One$outboundSchema2;
|
|
40818
|
+
})(One$2 ||= {});
|
|
40819
|
+
SecurityZoneCheckinRequestBody$inboundSchema = unionType([lazyType(() => Two$inboundSchema), lazyType(() => One$inboundSchema2)]);
|
|
40820
|
+
SecurityZoneCheckinRequestBody$outboundSchema = unionType([
|
|
40821
|
+
lazyType(() => Two$outboundSchema),
|
|
40822
|
+
lazyType(() => One$outboundSchema2)
|
|
40823
|
+
]);
|
|
40824
|
+
((SecurityZoneCheckinRequestBody$) => {
|
|
40825
|
+
SecurityZoneCheckinRequestBody$.inboundSchema = SecurityZoneCheckinRequestBody$inboundSchema;
|
|
40826
|
+
SecurityZoneCheckinRequestBody$.outboundSchema = SecurityZoneCheckinRequestBody$outboundSchema;
|
|
40827
|
+
})(SecurityZoneCheckinRequestBody$ ||= {});
|
|
40828
|
+
});
|
|
40829
|
+
|
|
40060
40830
|
// src/models/operations/updatevendordetails.ts
|
|
40061
40831
|
var EmailRecepient, EmailRecepient$inboundSchema, EmailRecepient$outboundSchema, EmailRecepient$, UpdateVendorDetailsRequestBody$inboundSchema, UpdateVendorDetailsRequestBody$outboundSchema, UpdateVendorDetailsRequestBody$, UpdateVendorDetailsRequest$inboundSchema, UpdateVendorDetailsRequest$outboundSchema, UpdateVendorDetailsRequest$;
|
|
40062
40832
|
var init_updatevendordetails = __esm(() => {
|
|
@@ -40353,6 +41123,7 @@ var init_operations = __esm(() => {
|
|
|
40353
41123
|
init_listallwebhookendpoints();
|
|
40354
41124
|
init_listorsearchcompanies();
|
|
40355
41125
|
init_listorsearchfacilities();
|
|
41126
|
+
init_listorsearchsecurityzones();
|
|
40356
41127
|
init_listorsearchsupportarticles();
|
|
40357
41128
|
init_listvendoradditionalfacilityfields();
|
|
40358
41129
|
init_listvendorcredentials();
|
|
@@ -40369,6 +41140,7 @@ var init_operations = __esm(() => {
|
|
|
40369
41140
|
init_password();
|
|
40370
41141
|
init_passwordresetrequest();
|
|
40371
41142
|
init_purchasescrubcredits();
|
|
41143
|
+
init_securityzonecheckin();
|
|
40372
41144
|
init_updatevendordetails();
|
|
40373
41145
|
init_updatevendormanagedbycompany();
|
|
40374
41146
|
init_updatevendorscrubdetails();
|
|
@@ -44584,11 +45356,256 @@ Returns a list of your webhook endpoints.`,
|
|
|
44584
45356
|
};
|
|
44585
45357
|
});
|
|
44586
45358
|
|
|
45359
|
+
// src/funcs/zonesListOrSearchSecurityZones.ts
|
|
45360
|
+
function zonesListOrSearchSecurityZones(client, request, options) {
|
|
45361
|
+
return new APIPromise($do36(client, request, options));
|
|
45362
|
+
}
|
|
45363
|
+
async function $do36(client, request, options) {
|
|
45364
|
+
const parsed = safeParse(request, (value) => ListOrSearchSecurityZonesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
45365
|
+
if (!parsed.ok) {
|
|
45366
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
45367
|
+
}
|
|
45368
|
+
const payload = parsed.value;
|
|
45369
|
+
const body = null;
|
|
45370
|
+
const path = pathToFunc("/security_zones")();
|
|
45371
|
+
const query = encodeFormQuery({
|
|
45372
|
+
contact_id: payload.contact_id,
|
|
45373
|
+
desc: payload.desc,
|
|
45374
|
+
facility_id: payload.facility_id,
|
|
45375
|
+
green_location_id: payload.green_location_id,
|
|
45376
|
+
items_per_page: payload.items_per_page,
|
|
45377
|
+
latitude: payload.latitude,
|
|
45378
|
+
longitude: payload.longitude,
|
|
45379
|
+
name_like: payload.name_like,
|
|
45380
|
+
page: payload.page,
|
|
45381
|
+
sort: payload.sort
|
|
45382
|
+
});
|
|
45383
|
+
const headers = new Headers(compactMap({
|
|
45384
|
+
Accept: "application/json"
|
|
45385
|
+
}));
|
|
45386
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
45387
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45388
|
+
const context = {
|
|
45389
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45390
|
+
operationID: "listOrSearchSecurityZones",
|
|
45391
|
+
oAuth2Scopes: [],
|
|
45392
|
+
resolvedSecurity: requestSecurity,
|
|
45393
|
+
securitySource: client._options.security,
|
|
45394
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
45395
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
45396
|
+
};
|
|
45397
|
+
const requestRes = client._createRequest(context, {
|
|
45398
|
+
security: requestSecurity,
|
|
45399
|
+
method: "GET",
|
|
45400
|
+
baseURL: options?.serverURL,
|
|
45401
|
+
path,
|
|
45402
|
+
headers,
|
|
45403
|
+
query,
|
|
45404
|
+
body,
|
|
45405
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45406
|
+
}, options);
|
|
45407
|
+
if (!requestRes.ok) {
|
|
45408
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
45409
|
+
}
|
|
45410
|
+
const req = requestRes.value;
|
|
45411
|
+
const doResult = await client._do(req, {
|
|
45412
|
+
context,
|
|
45413
|
+
errorCodes: ["400", "401", "403", "4XX", "5XX"],
|
|
45414
|
+
retryConfig: context.retryConfig,
|
|
45415
|
+
retryCodes: context.retryCodes
|
|
45416
|
+
});
|
|
45417
|
+
if (!doResult.ok) {
|
|
45418
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
45419
|
+
}
|
|
45420
|
+
const response = doResult.value;
|
|
45421
|
+
const responseFields = {
|
|
45422
|
+
HttpMeta: { Response: response, Request: req }
|
|
45423
|
+
};
|
|
45424
|
+
const [result, raw] = await match(json(200, ListOrSearchSecurityZonesResponse$inboundSchema, {
|
|
45425
|
+
key: "Result"
|
|
45426
|
+
}), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45427
|
+
if (!result.ok) {
|
|
45428
|
+
return [haltIterator(result), {
|
|
45429
|
+
status: "complete",
|
|
45430
|
+
request: req,
|
|
45431
|
+
response
|
|
45432
|
+
}];
|
|
45433
|
+
}
|
|
45434
|
+
const nextFunc = (responseData) => {
|
|
45435
|
+
const page2 = request?.page ?? 1;
|
|
45436
|
+
const nextPage = page2 + 1;
|
|
45437
|
+
if (!responseData) {
|
|
45438
|
+
return { next: () => null };
|
|
45439
|
+
}
|
|
45440
|
+
const results = dlv(responseData, "items");
|
|
45441
|
+
if (!Array.isArray(results) || !results.length) {
|
|
45442
|
+
return { next: () => null };
|
|
45443
|
+
}
|
|
45444
|
+
const limit = request?.itemsPerPage ?? 0;
|
|
45445
|
+
if (results.length < limit) {
|
|
45446
|
+
return { next: () => null };
|
|
45447
|
+
}
|
|
45448
|
+
const nextVal = () => zonesListOrSearchSecurityZones(client, {
|
|
45449
|
+
...request,
|
|
45450
|
+
page: nextPage
|
|
45451
|
+
}, options);
|
|
45452
|
+
return { next: nextVal, "~next": { page: nextPage } };
|
|
45453
|
+
};
|
|
45454
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
45455
|
+
return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
|
|
45456
|
+
status: "complete",
|
|
45457
|
+
request: req,
|
|
45458
|
+
response
|
|
45459
|
+
}];
|
|
45460
|
+
}
|
|
45461
|
+
var init_zonesListOrSearchSecurityZones = __esm(() => {
|
|
45462
|
+
init_encodings();
|
|
45463
|
+
init_matchers();
|
|
45464
|
+
init_primitives();
|
|
45465
|
+
init_schemas();
|
|
45466
|
+
init_security();
|
|
45467
|
+
init_url();
|
|
45468
|
+
init_errors();
|
|
45469
|
+
init_operations();
|
|
45470
|
+
init_async();
|
|
45471
|
+
init_operations2();
|
|
45472
|
+
});
|
|
45473
|
+
|
|
45474
|
+
// src/mcp-server/tools/zonesListOrSearchSecurityZones.ts
|
|
45475
|
+
var args35, tool$zonesListOrSearchSecurityZones;
|
|
45476
|
+
var init_zonesListOrSearchSecurityZones2 = __esm(() => {
|
|
45477
|
+
init_zonesListOrSearchSecurityZones();
|
|
45478
|
+
init_operations();
|
|
45479
|
+
init_tools();
|
|
45480
|
+
args35 = {
|
|
45481
|
+
request: ListOrSearchSecurityZonesRequest$inboundSchema
|
|
45482
|
+
};
|
|
45483
|
+
tool$zonesListOrSearchSecurityZones = {
|
|
45484
|
+
name: "zones-list-or-search-security-zones",
|
|
45485
|
+
description: `List or search security zones
|
|
45486
|
+
|
|
45487
|
+
List or search security zones`,
|
|
45488
|
+
args: args35,
|
|
45489
|
+
tool: async (client, args36, ctx) => {
|
|
45490
|
+
const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45491
|
+
if (!result.ok) {
|
|
45492
|
+
return {
|
|
45493
|
+
content: [{ type: "text", text: result.error.message }],
|
|
45494
|
+
isError: true
|
|
45495
|
+
};
|
|
45496
|
+
}
|
|
45497
|
+
const value = result.value.result;
|
|
45498
|
+
return formatResult(value, apiCall);
|
|
45499
|
+
}
|
|
45500
|
+
};
|
|
45501
|
+
});
|
|
45502
|
+
|
|
45503
|
+
// src/funcs/zonesSecurityZoneCheckin.ts
|
|
45504
|
+
function zonesSecurityZoneCheckin(client, request, options) {
|
|
45505
|
+
return new APIPromise($do37(client, request, options));
|
|
45506
|
+
}
|
|
45507
|
+
async function $do37(client, request, options) {
|
|
45508
|
+
const parsed = safeParse(request, (value) => SecurityZoneCheckinRequestBody$outboundSchema.parse(value), "Input validation failed");
|
|
45509
|
+
if (!parsed.ok) {
|
|
45510
|
+
return [parsed, { status: "invalid" }];
|
|
45511
|
+
}
|
|
45512
|
+
const payload = parsed.value;
|
|
45513
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
45514
|
+
const path = pathToFunc("/security_zones/checkin_request")();
|
|
45515
|
+
const headers = new Headers(compactMap({
|
|
45516
|
+
"Content-Type": "application/json",
|
|
45517
|
+
Accept: "application/json"
|
|
45518
|
+
}));
|
|
45519
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
45520
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45521
|
+
const context = {
|
|
45522
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
45523
|
+
operationID: "securityZoneCheckin",
|
|
45524
|
+
oAuth2Scopes: [],
|
|
45525
|
+
resolvedSecurity: requestSecurity,
|
|
45526
|
+
securitySource: client._options.security,
|
|
45527
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
45528
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
45529
|
+
};
|
|
45530
|
+
const requestRes = client._createRequest(context, {
|
|
45531
|
+
security: requestSecurity,
|
|
45532
|
+
method: "POST",
|
|
45533
|
+
baseURL: options?.serverURL,
|
|
45534
|
+
path,
|
|
45535
|
+
headers,
|
|
45536
|
+
body,
|
|
45537
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
45538
|
+
}, options);
|
|
45539
|
+
if (!requestRes.ok) {
|
|
45540
|
+
return [requestRes, { status: "invalid" }];
|
|
45541
|
+
}
|
|
45542
|
+
const req = requestRes.value;
|
|
45543
|
+
const doResult = await client._do(req, {
|
|
45544
|
+
context,
|
|
45545
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
45546
|
+
retryConfig: context.retryConfig,
|
|
45547
|
+
retryCodes: context.retryCodes
|
|
45548
|
+
});
|
|
45549
|
+
if (!doResult.ok) {
|
|
45550
|
+
return [doResult, { status: "request-error", request: req }];
|
|
45551
|
+
}
|
|
45552
|
+
const response = doResult.value;
|
|
45553
|
+
const responseFields = {
|
|
45554
|
+
HttpMeta: { Response: response, Request: req }
|
|
45555
|
+
};
|
|
45556
|
+
const [result] = await match(json(200, Handoff$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
45557
|
+
if (!result.ok) {
|
|
45558
|
+
return [result, { status: "complete", request: req, response }];
|
|
45559
|
+
}
|
|
45560
|
+
return [result, { status: "complete", request: req, response }];
|
|
45561
|
+
}
|
|
45562
|
+
var init_zonesSecurityZoneCheckin = __esm(() => {
|
|
45563
|
+
init_encodings();
|
|
45564
|
+
init_matchers();
|
|
45565
|
+
init_primitives();
|
|
45566
|
+
init_schemas();
|
|
45567
|
+
init_security();
|
|
45568
|
+
init_url();
|
|
45569
|
+
init_components();
|
|
45570
|
+
init_errors();
|
|
45571
|
+
init_operations();
|
|
45572
|
+
init_async();
|
|
45573
|
+
});
|
|
45574
|
+
|
|
45575
|
+
// src/mcp-server/tools/zonesSecurityZoneCheckin.ts
|
|
45576
|
+
var args36, tool$zonesSecurityZoneCheckin;
|
|
45577
|
+
var init_zonesSecurityZoneCheckin2 = __esm(() => {
|
|
45578
|
+
init_zonesSecurityZoneCheckin();
|
|
45579
|
+
init_operations();
|
|
45580
|
+
init_tools();
|
|
45581
|
+
args36 = {
|
|
45582
|
+
request: SecurityZoneCheckinRequestBody$inboundSchema
|
|
45583
|
+
};
|
|
45584
|
+
tool$zonesSecurityZoneCheckin = {
|
|
45585
|
+
name: "zones-security-zone-checkin",
|
|
45586
|
+
description: `Security zone checkin request
|
|
45587
|
+
|
|
45588
|
+
It will create a handoff record in the db for security zone check in request`,
|
|
45589
|
+
args: args36,
|
|
45590
|
+
tool: async (client, args37, ctx) => {
|
|
45591
|
+
const [result, apiCall] = await zonesSecurityZoneCheckin(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45592
|
+
if (!result.ok) {
|
|
45593
|
+
return {
|
|
45594
|
+
content: [{ type: "text", text: result.error.message }],
|
|
45595
|
+
isError: true
|
|
45596
|
+
};
|
|
45597
|
+
}
|
|
45598
|
+
const value = result.value;
|
|
45599
|
+
return formatResult(value, apiCall);
|
|
45600
|
+
}
|
|
45601
|
+
};
|
|
45602
|
+
});
|
|
45603
|
+
|
|
44587
45604
|
// src/mcp-server/server.ts
|
|
44588
45605
|
function createMCPServer(deps) {
|
|
44589
45606
|
const server = new McpServer({
|
|
44590
45607
|
name: "GreenSecurity",
|
|
44591
|
-
version: "0.30.
|
|
45608
|
+
version: "0.30.39"
|
|
44592
45609
|
});
|
|
44593
45610
|
const client = new GreenSecurityCore({
|
|
44594
45611
|
security: deps.security,
|
|
@@ -44637,6 +45654,8 @@ function createMCPServer(deps) {
|
|
|
44637
45654
|
tool(tool$webhooksGetWebhookEndpoint);
|
|
44638
45655
|
tool(tool$vendorScansVendorScanOut);
|
|
44639
45656
|
tool(tool$companiesListOrSearchCompanies);
|
|
45657
|
+
tool(tool$zonesListOrSearchSecurityZones);
|
|
45658
|
+
tool(tool$zonesSecurityZoneCheckin);
|
|
44640
45659
|
return server;
|
|
44641
45660
|
}
|
|
44642
45661
|
var init_server2 = __esm(() => {
|
|
@@ -44679,6 +45698,8 @@ var init_server2 = __esm(() => {
|
|
|
44679
45698
|
init_vendorsUpdateVendorScrubDetails2();
|
|
44680
45699
|
init_webhooksGetWebhookEndpoint2();
|
|
44681
45700
|
init_webhooksListAllWebhookEndpoints2();
|
|
45701
|
+
init_zonesListOrSearchSecurityZones2();
|
|
45702
|
+
init_zonesSecurityZoneCheckin2();
|
|
44682
45703
|
});
|
|
44683
45704
|
|
|
44684
45705
|
// src/mcp-server/cli/start/impl.ts
|
|
@@ -45877,7 +46898,7 @@ var routes = an({
|
|
|
45877
46898
|
var app = He(routes, {
|
|
45878
46899
|
name: "mcp",
|
|
45879
46900
|
versionInfo: {
|
|
45880
|
-
currentVersion: "0.30.
|
|
46901
|
+
currentVersion: "0.30.39"
|
|
45881
46902
|
}
|
|
45882
46903
|
});
|
|
45883
46904
|
zt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -45885,5 +46906,5 @@ export {
|
|
|
45885
46906
|
app
|
|
45886
46907
|
};
|
|
45887
46908
|
|
|
45888
|
-
//# debugId=
|
|
46909
|
+
//# debugId=9B787DB528C4EE0764756E2164756E21
|
|
45889
46910
|
//# sourceMappingURL=mcp-server.js.map
|