@greensecurity/javascript-sdk 0.44.0-beta.15 → 0.44.0-beta.16
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/dist/commonjs/__tests__/organizations.test.js +72 -6
- package/dist/commonjs/__tests__/organizations.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.js +4 -31
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts +34 -0
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js +145 -0
- package/dist/commonjs/funcs/organizationsCreateCompanyTargetFacility.js.map +1 -0
- package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.d.ts +28 -0
- package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.js +138 -0
- package/dist/commonjs/funcs/organizationsDeleteCompanyTargetFacility.js.map +1 -0
- package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.d.ts +42 -0
- package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.js +194 -0
- package/dist/commonjs/funcs/organizationsListCompanyTargetFacilities.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/companytargetfacility.d.ts +54 -0
- package/dist/commonjs/models/components/companytargetfacility.d.ts.map +1 -0
- package/dist/commonjs/models/components/companytargetfacility.js +80 -0
- package/dist/commonjs/models/components/companytargetfacility.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/createcompanytargetfacility.d.ts +50 -0
- package/dist/commonjs/models/operations/createcompanytargetfacility.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createcompanytargetfacility.js +84 -0
- package/dist/commonjs/models/operations/createcompanytargetfacility.js.map +1 -0
- package/dist/commonjs/models/operations/deletecompanytargetfacility.d.ts +20 -0
- package/dist/commonjs/models/operations/deletecompanytargetfacility.d.ts.map +1 -0
- package/dist/commonjs/models/operations/deletecompanytargetfacility.js +55 -0
- package/dist/commonjs/models/operations/deletecompanytargetfacility.js.map +1 -0
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.d.ts +16 -16
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.d.ts.map +1 -1
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.js +14 -15
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts +173 -0
- package/dist/commonjs/models/operations/listcompanytargetfacilities.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listcompanytargetfacilities.js +150 -0
- package/dist/commonjs/models/operations/listcompanytargetfacilities.js.map +1 -0
- package/dist/commonjs/models/operations/listfacilityvendors.d.ts +4 -4
- package/dist/commonjs/models/operations/listfacilityvendors.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listfacilityvendors.js +4 -4
- package/dist/commonjs/models/operations/listfacilityvendors.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +3 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +3 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts +43 -0
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js +65 -0
- package/dist/commonjs/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -0
- package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.d.ts +37 -0
- package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.js +59 -0
- package/dist/commonjs/react-query/organizationsDeleteCompanyTargetFacility.js.map +1 -0
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.d.ts +4 -4
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.js.map +1 -1
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.d.ts +8 -8
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.d.ts.map +1 -1
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.js.map +1 -1
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts +54 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js +111 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.core.js.map +1 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts +154 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js +180 -0
- package/dist/commonjs/react-query/organizationsListCompanyTargetFacilities.js.map +1 -0
- package/dist/commonjs/react-query/organizationsListFacilityVendors.core.d.ts +2 -2
- package/dist/commonjs/react-query/organizationsListFacilityVendors.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/organizationsListFacilityVendors.d.ts +2 -2
- package/dist/commonjs/react-query/organizationsListFacilityVendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.d.ts +64 -0
- package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.js +71 -0
- package/dist/commonjs/sdk/organizations.js.map +1 -1
- package/dist/esm/__tests__/organizations.test.js +73 -7
- package/dist/esm/__tests__/organizations.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.js +4 -31
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts +34 -0
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js +109 -0
- package/dist/esm/funcs/organizationsCreateCompanyTargetFacility.js.map +1 -0
- package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.d.ts +28 -0
- package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.js +102 -0
- package/dist/esm/funcs/organizationsDeleteCompanyTargetFacility.js.map +1 -0
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts +42 -0
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js +158 -0
- package/dist/esm/funcs/organizationsListCompanyTargetFacilities.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/companytargetfacility.d.ts +54 -0
- package/dist/esm/models/components/companytargetfacility.d.ts.map +1 -0
- package/dist/esm/models/components/companytargetfacility.js +41 -0
- package/dist/esm/models/components/companytargetfacility.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/createcompanytargetfacility.d.ts +50 -0
- package/dist/esm/models/operations/createcompanytargetfacility.d.ts.map +1 -0
- package/dist/esm/models/operations/createcompanytargetfacility.js +45 -0
- package/dist/esm/models/operations/createcompanytargetfacility.js.map +1 -0
- package/dist/esm/models/operations/deletecompanytargetfacility.d.ts +20 -0
- package/dist/esm/models/operations/deletecompanytargetfacility.d.ts.map +1 -0
- package/dist/esm/models/operations/deletecompanytargetfacility.js +18 -0
- package/dist/esm/models/operations/deletecompanytargetfacility.js.map +1 -0
- package/dist/esm/models/operations/exportcompanytargetfacilities.d.ts +16 -16
- package/dist/esm/models/operations/exportcompanytargetfacilities.d.ts.map +1 -1
- package/dist/esm/models/operations/exportcompanytargetfacilities.js +13 -14
- package/dist/esm/models/operations/exportcompanytargetfacilities.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listcompanytargetfacilities.d.ts +173 -0
- package/dist/esm/models/operations/listcompanytargetfacilities.d.ts.map +1 -0
- package/dist/esm/models/operations/listcompanytargetfacilities.js +111 -0
- package/dist/esm/models/operations/listcompanytargetfacilities.js.map +1 -0
- package/dist/esm/models/operations/listfacilityvendors.d.ts +4 -4
- package/dist/esm/models/operations/listfacilityvendors.d.ts.map +1 -1
- package/dist/esm/models/operations/listfacilityvendors.js +3 -3
- package/dist/esm/models/operations/listfacilityvendors.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +3 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +3 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts +43 -0
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js +60 -0
- package/dist/esm/react-query/organizationsCreateCompanyTargetFacility.js.map +1 -0
- package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.d.ts +37 -0
- package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.js +54 -0
- package/dist/esm/react-query/organizationsDeleteCompanyTargetFacility.js.map +1 -0
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.d.ts +4 -4
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.d.ts.map +1 -1
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.js.map +1 -1
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.d.ts +8 -8
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.d.ts.map +1 -1
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.js.map +1 -1
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts +54 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js +103 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.core.js.map +1 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts +154 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js +165 -0
- package/dist/esm/react-query/organizationsListCompanyTargetFacilities.js.map +1 -0
- package/dist/esm/react-query/organizationsListFacilityVendors.core.d.ts +2 -2
- package/dist/esm/react-query/organizationsListFacilityVendors.core.d.ts.map +1 -1
- package/dist/esm/react-query/organizationsListFacilityVendors.d.ts +2 -2
- package/dist/esm/react-query/organizationsListFacilityVendors.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.d.ts +64 -0
- package/dist/esm/sdk/organizations.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.js +71 -0
- package/dist/esm/sdk/organizations.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/organizations.test.ts +79 -13
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +4 -31
- package/src/funcs/organizationsCreateCompanyTargetFacility.ts +204 -0
- package/src/funcs/organizationsDeleteCompanyTargetFacility.ts +193 -0
- package/src/funcs/organizationsListCompanyTargetFacilities.ts +291 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/companytargetfacility.ts +124 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/operations/createcompanytargetfacility.ts +132 -0
- package/src/models/operations/deletecompanytargetfacility.ts +47 -0
- package/src/models/operations/exportcompanytargetfacilities.ts +34 -31
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/listcompanytargetfacilities.ts +293 -0
- package/src/models/operations/listfacilityvendors.ts +10 -7
- package/src/react-query/index.ts +3 -0
- package/src/react-query/organizationsCreateCompanyTargetFacility.ts +129 -0
- package/src/react-query/organizationsDeleteCompanyTargetFacility.ts +122 -0
- package/src/react-query/organizationsExportCompanyTargetFacilities.core.ts +4 -6
- package/src/react-query/organizationsExportCompanyTargetFacilities.ts +12 -10
- package/src/react-query/organizationsListCompanyTargetFacilities.core.ts +239 -0
- package/src/react-query/organizationsListCompanyTargetFacilities.ts +369 -0
- package/src/react-query/organizationsListFacilityVendors.core.ts +2 -2
- package/src/react-query/organizationsListFacilityVendors.ts +2 -2
- package/src/sdk/organizations.ts +102 -0
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { GreenSecurityCore } from "../core.js";
|
|
6
|
+
import { dlv } from "../lib/dlv.js";
|
|
7
|
+
import { encodeFormQuery, encodeSimple, queryJoin } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
16
|
+
import {
|
|
17
|
+
ConnectionError,
|
|
18
|
+
InvalidRequestError,
|
|
19
|
+
RequestAbortedError,
|
|
20
|
+
RequestTimeoutError,
|
|
21
|
+
UnexpectedClientError,
|
|
22
|
+
} from "../models/errors/httpclienterrors.js";
|
|
23
|
+
import * as errors from "../models/errors/index.js";
|
|
24
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
import {
|
|
30
|
+
createPageIterator,
|
|
31
|
+
haltIterator,
|
|
32
|
+
PageIterator,
|
|
33
|
+
Paginator,
|
|
34
|
+
} from "../types/operations.js";
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* List company target facilities
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* Lists the CompanyTargetFacility links for a company — the facilities the
|
|
41
|
+
* company is targeting. Each row carries the linked facility (with location
|
|
42
|
+
* and parent system), the link status, and per-facility counts of the
|
|
43
|
+
* company's individuals targeting it.
|
|
44
|
+
*
|
|
45
|
+
* When `include_potential_targets=true`, returns ALL non-deleted facilities
|
|
46
|
+
* via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
|
|
47
|
+
* rows have `id: null` and `status: "Not Targeted"`.
|
|
48
|
+
*
|
|
49
|
+
* Access control: the URL's `company_id` must be in the caller's read scope
|
|
50
|
+
* for Company (a company manager's or vendor's own company, or a company
|
|
51
|
+
* whose app is activated for the API user). Callers outside that scope
|
|
52
|
+
* receive `404 Company not found`.
|
|
53
|
+
*
|
|
54
|
+
* Filter with `has_individual` / `has_active_individual` to drive the
|
|
55
|
+
* facility roster views.
|
|
56
|
+
*
|
|
57
|
+
* Available `expand` scopes are:
|
|
58
|
+
*
|
|
59
|
+
* - company_target_facility.facility
|
|
60
|
+
*
|
|
61
|
+
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
62
|
+
*/
|
|
63
|
+
export function organizationsListCompanyTargetFacilities(
|
|
64
|
+
client: GreenSecurityCore,
|
|
65
|
+
request: operations.ListCompanyTargetFacilitiesRequest,
|
|
66
|
+
options?: RequestOptions,
|
|
67
|
+
): APIPromise<
|
|
68
|
+
PageIterator<
|
|
69
|
+
Result<
|
|
70
|
+
operations.ListCompanyTargetFacilitiesResponse,
|
|
71
|
+
| errors.ApiErrorResponse
|
|
72
|
+
| GreenSecurityError
|
|
73
|
+
| ResponseValidationError
|
|
74
|
+
| ConnectionError
|
|
75
|
+
| RequestAbortedError
|
|
76
|
+
| RequestTimeoutError
|
|
77
|
+
| InvalidRequestError
|
|
78
|
+
| UnexpectedClientError
|
|
79
|
+
| SDKValidationError
|
|
80
|
+
>,
|
|
81
|
+
{ page: number }
|
|
82
|
+
>
|
|
83
|
+
> {
|
|
84
|
+
return new APIPromise($do(
|
|
85
|
+
client,
|
|
86
|
+
request,
|
|
87
|
+
options,
|
|
88
|
+
));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
async function $do(
|
|
92
|
+
client: GreenSecurityCore,
|
|
93
|
+
request: operations.ListCompanyTargetFacilitiesRequest,
|
|
94
|
+
options?: RequestOptions,
|
|
95
|
+
): Promise<
|
|
96
|
+
[
|
|
97
|
+
PageIterator<
|
|
98
|
+
Result<
|
|
99
|
+
operations.ListCompanyTargetFacilitiesResponse,
|
|
100
|
+
| errors.ApiErrorResponse
|
|
101
|
+
| GreenSecurityError
|
|
102
|
+
| ResponseValidationError
|
|
103
|
+
| ConnectionError
|
|
104
|
+
| RequestAbortedError
|
|
105
|
+
| RequestTimeoutError
|
|
106
|
+
| InvalidRequestError
|
|
107
|
+
| UnexpectedClientError
|
|
108
|
+
| SDKValidationError
|
|
109
|
+
>,
|
|
110
|
+
{ page: number }
|
|
111
|
+
>,
|
|
112
|
+
APICall,
|
|
113
|
+
]
|
|
114
|
+
> {
|
|
115
|
+
const parsed = safeParse(
|
|
116
|
+
request,
|
|
117
|
+
(value) =>
|
|
118
|
+
operations.ListCompanyTargetFacilitiesRequest$outboundSchema.parse(value),
|
|
119
|
+
"Input validation failed",
|
|
120
|
+
);
|
|
121
|
+
if (!parsed.ok) {
|
|
122
|
+
return [haltIterator(parsed), { status: "invalid" }];
|
|
123
|
+
}
|
|
124
|
+
const payload = parsed.value;
|
|
125
|
+
const body = null;
|
|
126
|
+
|
|
127
|
+
const pathParams = {
|
|
128
|
+
company_id: encodeSimple("company_id", payload.company_id, {
|
|
129
|
+
explode: false,
|
|
130
|
+
charEncoding: "percent",
|
|
131
|
+
}),
|
|
132
|
+
};
|
|
133
|
+
const path = pathToFunc("/companies/{company_id}/target-facilities")(
|
|
134
|
+
pathParams,
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
const query = queryJoin(
|
|
138
|
+
encodeFormQuery({
|
|
139
|
+
"expand": payload.expand,
|
|
140
|
+
}, { explode: false }),
|
|
141
|
+
encodeFormQuery({
|
|
142
|
+
"address_like": payload.address_like,
|
|
143
|
+
"city_like": payload.city_like,
|
|
144
|
+
"desc": payload.desc,
|
|
145
|
+
"facility_name_like": payload.facility_name_like,
|
|
146
|
+
"has_active_individual": payload.has_active_individual,
|
|
147
|
+
"has_individual": payload.has_individual,
|
|
148
|
+
"include_potential_targets": payload.include_potential_targets,
|
|
149
|
+
"items_per_page": payload.items_per_page,
|
|
150
|
+
"page": payload.page,
|
|
151
|
+
"sort": payload.sort,
|
|
152
|
+
"status": payload.status,
|
|
153
|
+
"system_name_like": payload.system_name_like,
|
|
154
|
+
}),
|
|
155
|
+
);
|
|
156
|
+
|
|
157
|
+
const headers = new Headers(compactMap({
|
|
158
|
+
Accept: "application/json",
|
|
159
|
+
}));
|
|
160
|
+
|
|
161
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
162
|
+
const requestSecurity = resolveGlobalSecurity(securityInput, [1]);
|
|
163
|
+
|
|
164
|
+
const context = {
|
|
165
|
+
options: client._options,
|
|
166
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
167
|
+
operationID: "listCompanyTargetFacilities",
|
|
168
|
+
oAuth2Scopes: null,
|
|
169
|
+
|
|
170
|
+
resolvedSecurity: requestSecurity,
|
|
171
|
+
|
|
172
|
+
securitySource: client._options.security,
|
|
173
|
+
retryConfig: options?.retries
|
|
174
|
+
|| client._options.retryConfig
|
|
175
|
+
|| { strategy: "none" },
|
|
176
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
const requestRes = client._createRequest(context, {
|
|
180
|
+
security: requestSecurity,
|
|
181
|
+
method: "GET",
|
|
182
|
+
baseURL: options?.serverURL,
|
|
183
|
+
path: path,
|
|
184
|
+
headers: headers,
|
|
185
|
+
query: query,
|
|
186
|
+
body: body,
|
|
187
|
+
userAgent: client._options.userAgent,
|
|
188
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
189
|
+
}, options);
|
|
190
|
+
if (!requestRes.ok) {
|
|
191
|
+
return [haltIterator(requestRes), { status: "invalid" }];
|
|
192
|
+
}
|
|
193
|
+
const req = requestRes.value;
|
|
194
|
+
|
|
195
|
+
const doResult = await client._do(req, {
|
|
196
|
+
context,
|
|
197
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
198
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
199
|
+
retryConfig: context.retryConfig,
|
|
200
|
+
retryCodes: context.retryCodes,
|
|
201
|
+
});
|
|
202
|
+
if (!doResult.ok) {
|
|
203
|
+
return [haltIterator(doResult), { status: "request-error", request: req }];
|
|
204
|
+
}
|
|
205
|
+
const response = doResult.value;
|
|
206
|
+
|
|
207
|
+
const responseFields = {
|
|
208
|
+
HttpMeta: { Response: response, Request: req },
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
const [result, raw] = await M.match<
|
|
212
|
+
operations.ListCompanyTargetFacilitiesResponse,
|
|
213
|
+
| errors.ApiErrorResponse
|
|
214
|
+
| GreenSecurityError
|
|
215
|
+
| ResponseValidationError
|
|
216
|
+
| ConnectionError
|
|
217
|
+
| RequestAbortedError
|
|
218
|
+
| RequestTimeoutError
|
|
219
|
+
| InvalidRequestError
|
|
220
|
+
| UnexpectedClientError
|
|
221
|
+
| SDKValidationError
|
|
222
|
+
>(
|
|
223
|
+
M.json(200, operations.ListCompanyTargetFacilitiesResponse$inboundSchema, {
|
|
224
|
+
key: "Result",
|
|
225
|
+
}),
|
|
226
|
+
M.jsonErr([400, 401, 403, 404, 422], errors.ApiErrorResponse$inboundSchema),
|
|
227
|
+
M.fail("4XX"),
|
|
228
|
+
M.fail([500, "5XX"]),
|
|
229
|
+
)(response, req, { extraFields: responseFields });
|
|
230
|
+
if (!result.ok) {
|
|
231
|
+
return [haltIterator(result), {
|
|
232
|
+
status: "complete",
|
|
233
|
+
request: req,
|
|
234
|
+
response,
|
|
235
|
+
}];
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
const nextFunc = (
|
|
239
|
+
responseData: unknown,
|
|
240
|
+
): {
|
|
241
|
+
next: Paginator<
|
|
242
|
+
Result<
|
|
243
|
+
operations.ListCompanyTargetFacilitiesResponse,
|
|
244
|
+
| errors.ApiErrorResponse
|
|
245
|
+
| GreenSecurityError
|
|
246
|
+
| ResponseValidationError
|
|
247
|
+
| ConnectionError
|
|
248
|
+
| RequestAbortedError
|
|
249
|
+
| RequestTimeoutError
|
|
250
|
+
| InvalidRequestError
|
|
251
|
+
| UnexpectedClientError
|
|
252
|
+
| SDKValidationError
|
|
253
|
+
>
|
|
254
|
+
>;
|
|
255
|
+
"~next"?: { page: number };
|
|
256
|
+
} => {
|
|
257
|
+
const page = request?.page ?? 1;
|
|
258
|
+
const nextPage = page + 1;
|
|
259
|
+
|
|
260
|
+
if (!responseData) {
|
|
261
|
+
return { next: () => null };
|
|
262
|
+
}
|
|
263
|
+
const results = dlv(responseData, "items");
|
|
264
|
+
if (!Array.isArray(results) || !results.length) {
|
|
265
|
+
return { next: () => null };
|
|
266
|
+
}
|
|
267
|
+
const limit = request?.itemsPerPage ?? 0;
|
|
268
|
+
if (results.length < limit) {
|
|
269
|
+
return { next: () => null };
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
const nextVal = () =>
|
|
273
|
+
organizationsListCompanyTargetFacilities(
|
|
274
|
+
client,
|
|
275
|
+
{
|
|
276
|
+
...request,
|
|
277
|
+
page: nextPage,
|
|
278
|
+
},
|
|
279
|
+
options,
|
|
280
|
+
);
|
|
281
|
+
|
|
282
|
+
return { next: nextVal, "~next": { page: nextPage } };
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
286
|
+
return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, {
|
|
287
|
+
status: "complete",
|
|
288
|
+
request: req,
|
|
289
|
+
response,
|
|
290
|
+
}];
|
|
291
|
+
}
|
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.43.5",
|
|
83
|
-
sdkVersion: "0.44.0-beta.
|
|
83
|
+
sdkVersion: "0.44.0-beta.16",
|
|
84
84
|
genVersion: "2.897.1",
|
|
85
85
|
userAgent:
|
|
86
|
-
"speakeasy-sdk/typescript 0.44.0-beta.
|
|
86
|
+
"speakeasy-sdk/typescript 0.44.0-beta.16 2.897.1 0.43.5 @greensecurity/javascript-sdk",
|
|
87
87
|
} as const;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { smartUnion } from "../../types/smartUnion.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
import { Facility, Facility$inboundSchema } from "./facility.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The linked facility. Returns the facility ID by default; pass `company_target_facility.facility` to `expand` to receive the full facility object.
|
|
16
|
+
*/
|
|
17
|
+
export type CompanyTargetFacilityFacility = Facility | number;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Per-facility counts of the company's individuals (vendors) currently targeting this facility.
|
|
21
|
+
*/
|
|
22
|
+
export type IndividualCounts = {
|
|
23
|
+
/**
|
|
24
|
+
* Total individuals from the company targeting this facility.
|
|
25
|
+
*/
|
|
26
|
+
total?: number | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Individuals targeting this facility whose credentialing subscription is active.
|
|
29
|
+
*/
|
|
30
|
+
active?: number | undefined;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Describes the facilities that a company would like to do business with. These are called "target facilities" for the company. A company may target/untarget any number of facilities which will kick off the process of becoming compliant with that facility's vendor policies.
|
|
35
|
+
*/
|
|
36
|
+
export type CompanyTargetFacility = {
|
|
37
|
+
/**
|
|
38
|
+
* CompanyTargetFacility row ID. Null when returned via `include_potential_targets=true` for a facility not yet targeted by the company.
|
|
39
|
+
*/
|
|
40
|
+
id: number | null;
|
|
41
|
+
/**
|
|
42
|
+
* The linked facility. Returns the facility ID by default; pass `company_target_facility.facility` to `expand` to receive the full facility object.
|
|
43
|
+
*/
|
|
44
|
+
facility: Facility | number | null;
|
|
45
|
+
/**
|
|
46
|
+
* Link status (Approved, Pending, or Denied). This value is computed by the daily background job from the company's credential state — it is not directly settable through the API.
|
|
47
|
+
*/
|
|
48
|
+
status: string | null;
|
|
49
|
+
contracted?: boolean | undefined;
|
|
50
|
+
dateCreated?: Date | null | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Per-facility counts of the company's individuals (vendors) currently targeting this facility.
|
|
53
|
+
*/
|
|
54
|
+
individualCounts?: IndividualCounts | null | undefined;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const CompanyTargetFacilityFacility$inboundSchema: z.ZodType<
|
|
59
|
+
CompanyTargetFacilityFacility,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
unknown
|
|
62
|
+
> = smartUnion([Facility$inboundSchema, types.number()]);
|
|
63
|
+
|
|
64
|
+
export function companyTargetFacilityFacilityFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<CompanyTargetFacilityFacility, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => CompanyTargetFacilityFacility$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'CompanyTargetFacilityFacility' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const IndividualCounts$inboundSchema: z.ZodType<
|
|
76
|
+
IndividualCounts,
|
|
77
|
+
z.ZodTypeDef,
|
|
78
|
+
unknown
|
|
79
|
+
> = z.object({
|
|
80
|
+
total: types.optional(types.number()),
|
|
81
|
+
active: types.optional(types.number()),
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
export function individualCountsFromJSON(
|
|
85
|
+
jsonString: string,
|
|
86
|
+
): SafeParseResult<IndividualCounts, SDKValidationError> {
|
|
87
|
+
return safeParse(
|
|
88
|
+
jsonString,
|
|
89
|
+
(x) => IndividualCounts$inboundSchema.parse(JSON.parse(x)),
|
|
90
|
+
`Failed to parse 'IndividualCounts' from JSON`,
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const CompanyTargetFacility$inboundSchema: z.ZodType<
|
|
96
|
+
CompanyTargetFacility,
|
|
97
|
+
z.ZodTypeDef,
|
|
98
|
+
unknown
|
|
99
|
+
> = z.object({
|
|
100
|
+
id: types.nullable(types.number()),
|
|
101
|
+
facility: types.nullable(
|
|
102
|
+
smartUnion([Facility$inboundSchema, types.number()]),
|
|
103
|
+
),
|
|
104
|
+
status: types.nullable(types.string()),
|
|
105
|
+
contracted: types.optional(types.boolean()),
|
|
106
|
+
date_created: z.nullable(types.date()).optional(),
|
|
107
|
+
individual_counts: z.nullable(z.lazy(() => IndividualCounts$inboundSchema))
|
|
108
|
+
.optional(),
|
|
109
|
+
}).transform((v) => {
|
|
110
|
+
return remap$(v, {
|
|
111
|
+
"date_created": "dateCreated",
|
|
112
|
+
"individual_counts": "individualCounts",
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
export function companyTargetFacilityFromJSON(
|
|
117
|
+
jsonString: string,
|
|
118
|
+
): SafeParseResult<CompanyTargetFacility, SDKValidationError> {
|
|
119
|
+
return safeParse(
|
|
120
|
+
jsonString,
|
|
121
|
+
(x) => CompanyTargetFacility$inboundSchema.parse(JSON.parse(x)),
|
|
122
|
+
`Failed to parse 'CompanyTargetFacility' from JSON`,
|
|
123
|
+
);
|
|
124
|
+
}
|
|
@@ -10,6 +10,7 @@ export * from "./company.js";
|
|
|
10
10
|
export * from "./companycredentiallistitem.js";
|
|
11
11
|
export * from "./companylookup.js";
|
|
12
12
|
export * from "./companymanager.js";
|
|
13
|
+
export * from "./companytargetfacility.js";
|
|
13
14
|
export * from "./companyvendorfield.js";
|
|
14
15
|
export * from "./companyvendortyperestriction.js";
|
|
15
16
|
export * from "./contact.js";
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type CreateCompanyTargetFacilityRequestBody = {
|
|
13
|
+
/**
|
|
14
|
+
* The existing facility to target.
|
|
15
|
+
*/
|
|
16
|
+
facilityId: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type CreateCompanyTargetFacilityRequest = {
|
|
20
|
+
/**
|
|
21
|
+
* The company that will target the facility.
|
|
22
|
+
*/
|
|
23
|
+
companyId: number;
|
|
24
|
+
/**
|
|
25
|
+
* An array-style parameter to identify which sections of an object to expand. See documentation for the endpoint for a list of valid expansion values.
|
|
26
|
+
*/
|
|
27
|
+
expand?: Array<components.Expand> | undefined;
|
|
28
|
+
requestBody: CreateCompanyTargetFacilityRequestBody;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* The CompanyTargetFacility link was created.
|
|
33
|
+
*/
|
|
34
|
+
export type CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk = {
|
|
35
|
+
/**
|
|
36
|
+
* Describes the facilities that a company would like to do business with. These are called "target facilities" for the company. A company may target/untarget any number of facilities which will kick off the process of becoming compliant with that facility's vendor policies.
|
|
37
|
+
*/
|
|
38
|
+
companyTargetFacility: components.CompanyTargetFacility;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type CreateCompanyTargetFacilityRequestBody$Outbound = {
|
|
43
|
+
facility_id: number;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const CreateCompanyTargetFacilityRequestBody$outboundSchema: z.ZodType<
|
|
48
|
+
CreateCompanyTargetFacilityRequestBody$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
CreateCompanyTargetFacilityRequestBody
|
|
51
|
+
> = z.object({
|
|
52
|
+
facilityId: z.number().int(),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return remap$(v, {
|
|
55
|
+
facilityId: "facility_id",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export function createCompanyTargetFacilityRequestBodyToJSON(
|
|
60
|
+
createCompanyTargetFacilityRequestBody:
|
|
61
|
+
CreateCompanyTargetFacilityRequestBody,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
CreateCompanyTargetFacilityRequestBody$outboundSchema.parse(
|
|
65
|
+
createCompanyTargetFacilityRequestBody,
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export type CreateCompanyTargetFacilityRequest$Outbound = {
|
|
72
|
+
company_id: number;
|
|
73
|
+
expand?: Array<string> | undefined;
|
|
74
|
+
RequestBody: CreateCompanyTargetFacilityRequestBody$Outbound;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const CreateCompanyTargetFacilityRequest$outboundSchema: z.ZodType<
|
|
79
|
+
CreateCompanyTargetFacilityRequest$Outbound,
|
|
80
|
+
z.ZodTypeDef,
|
|
81
|
+
CreateCompanyTargetFacilityRequest
|
|
82
|
+
> = z.object({
|
|
83
|
+
companyId: z.number().int(),
|
|
84
|
+
expand: z.array(components.Expand$outboundSchema).optional(),
|
|
85
|
+
requestBody: z.lazy(() =>
|
|
86
|
+
CreateCompanyTargetFacilityRequestBody$outboundSchema
|
|
87
|
+
),
|
|
88
|
+
}).transform((v) => {
|
|
89
|
+
return remap$(v, {
|
|
90
|
+
companyId: "company_id",
|
|
91
|
+
requestBody: "RequestBody",
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export function createCompanyTargetFacilityRequestToJSON(
|
|
96
|
+
createCompanyTargetFacilityRequest: CreateCompanyTargetFacilityRequest,
|
|
97
|
+
): string {
|
|
98
|
+
return JSON.stringify(
|
|
99
|
+
CreateCompanyTargetFacilityRequest$outboundSchema.parse(
|
|
100
|
+
createCompanyTargetFacilityRequest,
|
|
101
|
+
),
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/** @internal */
|
|
106
|
+
export const CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk$inboundSchema:
|
|
107
|
+
z.ZodType<
|
|
108
|
+
CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
unknown
|
|
111
|
+
> = z.object({
|
|
112
|
+
company_target_facility: components.CompanyTargetFacility$inboundSchema,
|
|
113
|
+
}).transform((v) => {
|
|
114
|
+
return remap$(v, {
|
|
115
|
+
"company_target_facility": "companyTargetFacility",
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
export function createCompanyTargetFacilityCreateCompanyTargetFacilityOkFromJSON(
|
|
120
|
+
jsonString: string,
|
|
121
|
+
): SafeParseResult<
|
|
122
|
+
CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk,
|
|
123
|
+
SDKValidationError
|
|
124
|
+
> {
|
|
125
|
+
return safeParse(
|
|
126
|
+
jsonString,
|
|
127
|
+
(x) =>
|
|
128
|
+
CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk$inboundSchema
|
|
129
|
+
.parse(JSON.parse(x)),
|
|
130
|
+
`Failed to parse 'CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk' from JSON`,
|
|
131
|
+
);
|
|
132
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type DeleteCompanyTargetFacilityRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* The company that owns the CompanyTargetFacility link.
|
|
11
|
+
*/
|
|
12
|
+
companyId: number;
|
|
13
|
+
/**
|
|
14
|
+
* CompanyTargetFacility id
|
|
15
|
+
*/
|
|
16
|
+
id: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type DeleteCompanyTargetFacilityRequest$Outbound = {
|
|
21
|
+
company_id: number;
|
|
22
|
+
id: number;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const DeleteCompanyTargetFacilityRequest$outboundSchema: z.ZodType<
|
|
27
|
+
DeleteCompanyTargetFacilityRequest$Outbound,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
DeleteCompanyTargetFacilityRequest
|
|
30
|
+
> = z.object({
|
|
31
|
+
companyId: z.number().int(),
|
|
32
|
+
id: z.number().int(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
companyId: "company_id",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function deleteCompanyTargetFacilityRequestToJSON(
|
|
40
|
+
deleteCompanyTargetFacilityRequest: DeleteCompanyTargetFacilityRequest,
|
|
41
|
+
): string {
|
|
42
|
+
return JSON.stringify(
|
|
43
|
+
DeleteCompanyTargetFacilityRequest$outboundSchema.parse(
|
|
44
|
+
deleteCompanyTargetFacilityRequest,
|
|
45
|
+
),
|
|
46
|
+
);
|
|
47
|
+
}
|