@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,42 @@
|
|
|
1
|
+
import { GreenSecurityCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { GreenSecurityError } from "../models/errors/greensecurityerror.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
import { PageIterator } from "../types/operations.js";
|
|
12
|
+
/**
|
|
13
|
+
* List company target facilities
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Lists the CompanyTargetFacility links for a company — the facilities the
|
|
17
|
+
* company is targeting. Each row carries the linked facility (with location
|
|
18
|
+
* and parent system), the link status, and per-facility counts of the
|
|
19
|
+
* company's individuals targeting it.
|
|
20
|
+
*
|
|
21
|
+
* When `include_potential_targets=true`, returns ALL non-deleted facilities
|
|
22
|
+
* via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
|
|
23
|
+
* rows have `id: null` and `status: "Not Targeted"`.
|
|
24
|
+
*
|
|
25
|
+
* Access control: the URL's `company_id` must be in the caller's read scope
|
|
26
|
+
* for Company (a company manager's or vendor's own company, or a company
|
|
27
|
+
* whose app is activated for the API user). Callers outside that scope
|
|
28
|
+
* receive `404 Company not found`.
|
|
29
|
+
*
|
|
30
|
+
* Filter with `has_individual` / `has_active_individual` to drive the
|
|
31
|
+
* facility roster views.
|
|
32
|
+
*
|
|
33
|
+
* Available `expand` scopes are:
|
|
34
|
+
*
|
|
35
|
+
* - company_target_facility.facility
|
|
36
|
+
*
|
|
37
|
+
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
38
|
+
*/
|
|
39
|
+
export declare function organizationsListCompanyTargetFacilities(client: GreenSecurityCore, request: operations.ListCompanyTargetFacilitiesRequest, options?: RequestOptions): APIPromise<PageIterator<Result<operations.ListCompanyTargetFacilitiesResponse, errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>, {
|
|
40
|
+
page: number;
|
|
41
|
+
}>>;
|
|
42
|
+
//# sourceMappingURL=organizationsListCompanyTargetFacilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsListCompanyTargetFacilities.d.ts","sourceRoot":"","sources":["../../../src/funcs/organizationsListCompanyTargetFacilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAO/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAGL,YAAY,EAEb,MAAM,wBAAwB,CAAC;AAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,wCAAwC,CACtD,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,kCAAkC,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,YAAY,CACV,MAAM,CACJ,UAAU,CAAC,mCAAmC,EAC5C,MAAM,CAAC,gBAAgB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,EACD;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CACjB,CACF,CAMA"}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.organizationsListCompanyTargetFacilities = organizationsListCompanyTargetFacilities;
|
|
40
|
+
const dlv_js_1 = require("../lib/dlv.js");
|
|
41
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
42
|
+
const http_js_1 = require("../lib/http.js");
|
|
43
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
44
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
45
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
46
|
+
const security_js_1 = require("../lib/security.js");
|
|
47
|
+
const url_js_1 = require("../lib/url.js");
|
|
48
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
49
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
50
|
+
const async_js_1 = require("../types/async.js");
|
|
51
|
+
const operations_js_1 = require("../types/operations.js");
|
|
52
|
+
/**
|
|
53
|
+
* List company target facilities
|
|
54
|
+
*
|
|
55
|
+
* @remarks
|
|
56
|
+
* Lists the CompanyTargetFacility links for a company — the facilities the
|
|
57
|
+
* company is targeting. Each row carries the linked facility (with location
|
|
58
|
+
* and parent system), the link status, and per-facility counts of the
|
|
59
|
+
* company's individuals targeting it.
|
|
60
|
+
*
|
|
61
|
+
* When `include_potential_targets=true`, returns ALL non-deleted facilities
|
|
62
|
+
* via a LEFT JOIN. Targeted rows carry their CTF `id` and `status`; non-targeted
|
|
63
|
+
* rows have `id: null` and `status: "Not Targeted"`.
|
|
64
|
+
*
|
|
65
|
+
* Access control: the URL's `company_id` must be in the caller's read scope
|
|
66
|
+
* for Company (a company manager's or vendor's own company, or a company
|
|
67
|
+
* whose app is activated for the API user). Callers outside that scope
|
|
68
|
+
* receive `404 Company not found`.
|
|
69
|
+
*
|
|
70
|
+
* Filter with `has_individual` / `has_active_individual` to drive the
|
|
71
|
+
* facility roster views.
|
|
72
|
+
*
|
|
73
|
+
* Available `expand` scopes are:
|
|
74
|
+
*
|
|
75
|
+
* - company_target_facility.facility
|
|
76
|
+
*
|
|
77
|
+
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
78
|
+
*/
|
|
79
|
+
function organizationsListCompanyTargetFacilities(client, request, options) {
|
|
80
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
81
|
+
}
|
|
82
|
+
async function $do(client, request, options) {
|
|
83
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.ListCompanyTargetFacilitiesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
84
|
+
if (!parsed.ok) {
|
|
85
|
+
return [(0, operations_js_1.haltIterator)(parsed), { status: "invalid" }];
|
|
86
|
+
}
|
|
87
|
+
const payload = parsed.value;
|
|
88
|
+
const body = null;
|
|
89
|
+
const pathParams = {
|
|
90
|
+
company_id: (0, encodings_js_1.encodeSimple)("company_id", payload.company_id, {
|
|
91
|
+
explode: false,
|
|
92
|
+
charEncoding: "percent",
|
|
93
|
+
}),
|
|
94
|
+
};
|
|
95
|
+
const path = (0, url_js_1.pathToFunc)("/companies/{company_id}/target-facilities")(pathParams);
|
|
96
|
+
const query = (0, encodings_js_1.queryJoin)((0, encodings_js_1.encodeFormQuery)({
|
|
97
|
+
"expand": payload.expand,
|
|
98
|
+
}, { explode: false }), (0, encodings_js_1.encodeFormQuery)({
|
|
99
|
+
"address_like": payload.address_like,
|
|
100
|
+
"city_like": payload.city_like,
|
|
101
|
+
"desc": payload.desc,
|
|
102
|
+
"facility_name_like": payload.facility_name_like,
|
|
103
|
+
"has_active_individual": payload.has_active_individual,
|
|
104
|
+
"has_individual": payload.has_individual,
|
|
105
|
+
"include_potential_targets": payload.include_potential_targets,
|
|
106
|
+
"items_per_page": payload.items_per_page,
|
|
107
|
+
"page": payload.page,
|
|
108
|
+
"sort": payload.sort,
|
|
109
|
+
"status": payload.status,
|
|
110
|
+
"system_name_like": payload.system_name_like,
|
|
111
|
+
}));
|
|
112
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
113
|
+
Accept: "application/json",
|
|
114
|
+
}));
|
|
115
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
116
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput, [1]);
|
|
117
|
+
const context = {
|
|
118
|
+
options: client._options,
|
|
119
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
120
|
+
operationID: "listCompanyTargetFacilities",
|
|
121
|
+
oAuth2Scopes: null,
|
|
122
|
+
resolvedSecurity: requestSecurity,
|
|
123
|
+
securitySource: client._options.security,
|
|
124
|
+
retryConfig: options?.retries
|
|
125
|
+
|| client._options.retryConfig
|
|
126
|
+
|| { strategy: "none" },
|
|
127
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
128
|
+
};
|
|
129
|
+
const requestRes = client._createRequest(context, {
|
|
130
|
+
security: requestSecurity,
|
|
131
|
+
method: "GET",
|
|
132
|
+
baseURL: options?.serverURL,
|
|
133
|
+
path: path,
|
|
134
|
+
headers: headers,
|
|
135
|
+
query: query,
|
|
136
|
+
body: body,
|
|
137
|
+
userAgent: client._options.userAgent,
|
|
138
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
139
|
+
}, options);
|
|
140
|
+
if (!requestRes.ok) {
|
|
141
|
+
return [(0, operations_js_1.haltIterator)(requestRes), { status: "invalid" }];
|
|
142
|
+
}
|
|
143
|
+
const req = requestRes.value;
|
|
144
|
+
const doResult = await client._do(req, {
|
|
145
|
+
context,
|
|
146
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
147
|
+
retryConfig: context.retryConfig,
|
|
148
|
+
retryCodes: context.retryCodes,
|
|
149
|
+
});
|
|
150
|
+
if (!doResult.ok) {
|
|
151
|
+
return [(0, operations_js_1.haltIterator)(doResult), { status: "request-error", request: req }];
|
|
152
|
+
}
|
|
153
|
+
const response = doResult.value;
|
|
154
|
+
const responseFields = {
|
|
155
|
+
HttpMeta: { Response: response, Request: req },
|
|
156
|
+
};
|
|
157
|
+
const [result, raw] = await M.match(M.json(200, operations.ListCompanyTargetFacilitiesResponse$inboundSchema, {
|
|
158
|
+
key: "Result",
|
|
159
|
+
}), M.jsonErr([400, 401, 403, 404, 422], errors.ApiErrorResponse$inboundSchema), M.fail("4XX"), M.fail([500, "5XX"]))(response, req, { extraFields: responseFields });
|
|
160
|
+
if (!result.ok) {
|
|
161
|
+
return [(0, operations_js_1.haltIterator)(result), {
|
|
162
|
+
status: "complete",
|
|
163
|
+
request: req,
|
|
164
|
+
response,
|
|
165
|
+
}];
|
|
166
|
+
}
|
|
167
|
+
const nextFunc = (responseData) => {
|
|
168
|
+
const page = request?.page ?? 1;
|
|
169
|
+
const nextPage = page + 1;
|
|
170
|
+
if (!responseData) {
|
|
171
|
+
return { next: () => null };
|
|
172
|
+
}
|
|
173
|
+
const results = (0, dlv_js_1.dlv)(responseData, "items");
|
|
174
|
+
if (!Array.isArray(results) || !results.length) {
|
|
175
|
+
return { next: () => null };
|
|
176
|
+
}
|
|
177
|
+
const limit = request?.itemsPerPage ?? 0;
|
|
178
|
+
if (results.length < limit) {
|
|
179
|
+
return { next: () => null };
|
|
180
|
+
}
|
|
181
|
+
const nextVal = () => organizationsListCompanyTargetFacilities(client, {
|
|
182
|
+
...request,
|
|
183
|
+
page: nextPage,
|
|
184
|
+
}, options);
|
|
185
|
+
return { next: nextVal, "~next": { page: nextPage } };
|
|
186
|
+
};
|
|
187
|
+
const page = { ...result, ...nextFunc(raw) };
|
|
188
|
+
return [{ ...page, ...(0, operations_js_1.createPageIterator)(page, (v) => !v.ok) }, {
|
|
189
|
+
status: "complete",
|
|
190
|
+
request: req,
|
|
191
|
+
response,
|
|
192
|
+
}];
|
|
193
|
+
}
|
|
194
|
+
//# sourceMappingURL=organizationsListCompanyTargetFacilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsListCompanyTargetFacilities.js","sourceRoot":"","sources":["../../../src/funcs/organizationsListCompanyTargetFacilities.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DH,4FA0BC;AAnFD,0CAAoC;AACpC,sDAA+E;AAC/E,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,kEAAoD;AAGpD,0EAA4D;AAC5D,gDAAwD;AAExD,0DAKgC;AAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,SAAgB,wCAAwC,CACtD,MAAyB,EACzB,OAAsD,EACtD,OAAwB;IAkBxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAyB,EACzB,OAAsD,EACtD,OAAwB;IAqBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,iDAAiD,CAAC,KAAK,CAAC,KAAK,CAAC,EAC3E,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,IAAA,4BAAY,EAAC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACvD,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,UAAU,GAAG;QACjB,UAAU,EAAE,IAAA,2BAAY,EAAC,YAAY,EAAE,OAAO,CAAC,UAAU,EAAE;YACzD,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,SAAS;SACxB,CAAC;KACH,CA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B,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC;QAC9B,CAAC;QACD,MAAM,OAAO,GAAG,IAAA,YAAG,EAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QAC3C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;YAC/C,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC;QAC9B,CAAC;QACD,MAAM,KAAK,GAAG,OAAO,EAAE,YAAY,IAAI,CAAC,CAAC;QACzC,IAAI,OAAO,CAAC,MAAM,GAAG,KAAK,EAAE,CAAC;YAC3B,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC;QAC9B,CAAC;QAED,MAAM,OAAO,GAAG,GAAG,EAAE,CACnB,wCAAwC,CACtC,MAAM,EACN;YACE,GAAG,OAAO;YACV,IAAI,EAAE,QAAQ;SACf,EACD,OAAO,CACR,CAAC;QAEJ,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC;IACxD,CAAC,CAAC;IAEF,MAAM,IAAI,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;IAC7C,OAAO,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,IAAA,kCAAkB,EAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YAC9D,MAAM,EAAE,UAAU;YAClB,OAAO,EAAE,GAAG;YACZ,QAAQ;SACT,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "0.43.5";
|
|
38
|
-
readonly sdkVersion: "0.44.0-beta.
|
|
38
|
+
readonly sdkVersion: "0.44.0-beta.16";
|
|
39
39
|
readonly genVersion: "2.897.1";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.44.0-beta.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.44.0-beta.16 2.897.1 0.43.5 @greensecurity/javascript-sdk";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -43,8 +43,8 @@ function serverURLFromOptions(options) {
|
|
|
43
43
|
exports.SDK_METADATA = {
|
|
44
44
|
language: "typescript",
|
|
45
45
|
openapiDocVersion: "0.43.5",
|
|
46
|
-
sdkVersion: "0.44.0-beta.
|
|
46
|
+
sdkVersion: "0.44.0-beta.16",
|
|
47
47
|
genVersion: "2.897.1",
|
|
48
|
-
userAgent: "speakeasy-sdk/typescript 0.44.0-beta.
|
|
48
|
+
userAgent: "speakeasy-sdk/typescript 0.44.0-beta.16 2.897.1 0.43.5 @greensecurity/javascript-sdk",
|
|
49
49
|
};
|
|
50
50
|
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { Facility } from "./facility.js";
|
|
5
|
+
/**
|
|
6
|
+
* The linked facility. Returns the facility ID by default; pass `company_target_facility.facility` to `expand` to receive the full facility object.
|
|
7
|
+
*/
|
|
8
|
+
export type CompanyTargetFacilityFacility = Facility | number;
|
|
9
|
+
/**
|
|
10
|
+
* Per-facility counts of the company's individuals (vendors) currently targeting this facility.
|
|
11
|
+
*/
|
|
12
|
+
export type IndividualCounts = {
|
|
13
|
+
/**
|
|
14
|
+
* Total individuals from the company targeting this facility.
|
|
15
|
+
*/
|
|
16
|
+
total?: number | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Individuals targeting this facility whose credentialing subscription is active.
|
|
19
|
+
*/
|
|
20
|
+
active?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* 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.
|
|
24
|
+
*/
|
|
25
|
+
export type CompanyTargetFacility = {
|
|
26
|
+
/**
|
|
27
|
+
* CompanyTargetFacility row ID. Null when returned via `include_potential_targets=true` for a facility not yet targeted by the company.
|
|
28
|
+
*/
|
|
29
|
+
id: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* The linked facility. Returns the facility ID by default; pass `company_target_facility.facility` to `expand` to receive the full facility object.
|
|
32
|
+
*/
|
|
33
|
+
facility: Facility | number | null;
|
|
34
|
+
/**
|
|
35
|
+
* 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.
|
|
36
|
+
*/
|
|
37
|
+
status: string | null;
|
|
38
|
+
contracted?: boolean | undefined;
|
|
39
|
+
dateCreated?: Date | null | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Per-facility counts of the company's individuals (vendors) currently targeting this facility.
|
|
42
|
+
*/
|
|
43
|
+
individualCounts?: IndividualCounts | null | undefined;
|
|
44
|
+
};
|
|
45
|
+
/** @internal */
|
|
46
|
+
export declare const CompanyTargetFacilityFacility$inboundSchema: z.ZodType<CompanyTargetFacilityFacility, z.ZodTypeDef, unknown>;
|
|
47
|
+
export declare function companyTargetFacilityFacilityFromJSON(jsonString: string): SafeParseResult<CompanyTargetFacilityFacility, SDKValidationError>;
|
|
48
|
+
/** @internal */
|
|
49
|
+
export declare const IndividualCounts$inboundSchema: z.ZodType<IndividualCounts, z.ZodTypeDef, unknown>;
|
|
50
|
+
export declare function individualCountsFromJSON(jsonString: string): SafeParseResult<IndividualCounts, SDKValidationError>;
|
|
51
|
+
/** @internal */
|
|
52
|
+
export declare const CompanyTargetFacility$inboundSchema: z.ZodType<CompanyTargetFacility, z.ZodTypeDef, unknown>;
|
|
53
|
+
export declare function companyTargetFacilityFromJSON(jsonString: string): SafeParseResult<CompanyTargetFacility, SDKValidationError>;
|
|
54
|
+
//# sourceMappingURL=companytargetfacility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companytargetfacility.d.ts","sourceRoot":"","sources":["../../../../src/models/components/companytargetfacility.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAG9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAA0B,MAAM,eAAe,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI,CAAC;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,CAAC;CACxD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,OAAO,CAC+C,CAAC;AAEzD,wBAAgB,qCAAqC,CACnD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,6BAA6B,EAAE,kBAAkB,CAAC,CAMpE;AAED,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD;AAED,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAgBP,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CompanyTargetFacility$inboundSchema = exports.IndividualCounts$inboundSchema = exports.CompanyTargetFacilityFacility$inboundSchema = void 0;
|
|
40
|
+
exports.companyTargetFacilityFacilityFromJSON = companyTargetFacilityFacilityFromJSON;
|
|
41
|
+
exports.individualCountsFromJSON = individualCountsFromJSON;
|
|
42
|
+
exports.companyTargetFacilityFromJSON = companyTargetFacilityFromJSON;
|
|
43
|
+
const z = __importStar(require("zod/v3"));
|
|
44
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
45
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
46
|
+
const types = __importStar(require("../../types/primitives.js"));
|
|
47
|
+
const smartUnion_js_1 = require("../../types/smartUnion.js");
|
|
48
|
+
const facility_js_1 = require("./facility.js");
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.CompanyTargetFacilityFacility$inboundSchema = (0, smartUnion_js_1.smartUnion)([facility_js_1.Facility$inboundSchema, types.number()]);
|
|
51
|
+
function companyTargetFacilityFacilityFromJSON(jsonString) {
|
|
52
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CompanyTargetFacilityFacility$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CompanyTargetFacilityFacility' from JSON`);
|
|
53
|
+
}
|
|
54
|
+
/** @internal */
|
|
55
|
+
exports.IndividualCounts$inboundSchema = z.object({
|
|
56
|
+
total: types.optional(types.number()),
|
|
57
|
+
active: types.optional(types.number()),
|
|
58
|
+
});
|
|
59
|
+
function individualCountsFromJSON(jsonString) {
|
|
60
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.IndividualCounts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'IndividualCounts' from JSON`);
|
|
61
|
+
}
|
|
62
|
+
/** @internal */
|
|
63
|
+
exports.CompanyTargetFacility$inboundSchema = z.object({
|
|
64
|
+
id: types.nullable(types.number()),
|
|
65
|
+
facility: types.nullable((0, smartUnion_js_1.smartUnion)([facility_js_1.Facility$inboundSchema, types.number()])),
|
|
66
|
+
status: types.nullable(types.string()),
|
|
67
|
+
contracted: types.optional(types.boolean()),
|
|
68
|
+
date_created: z.nullable(types.date()).optional(),
|
|
69
|
+
individual_counts: z.nullable(z.lazy(() => exports.IndividualCounts$inboundSchema))
|
|
70
|
+
.optional(),
|
|
71
|
+
}).transform((v) => {
|
|
72
|
+
return (0, primitives_js_1.remap)(v, {
|
|
73
|
+
"date_created": "dateCreated",
|
|
74
|
+
"individual_counts": "individualCounts",
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
function companyTargetFacilityFromJSON(jsonString) {
|
|
78
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CompanyTargetFacility$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CompanyTargetFacility' from JSON`);
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=companytargetfacility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companytargetfacility.js","sourceRoot":"","sources":["../../../../src/models/components/companytargetfacility.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DH,sFAQC;AAYD,4DAQC;AAwBD,sEAQC;AAvHD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,iEAAmD;AACnD,6DAAuD;AAEvD,+CAAiE;AA6CjE,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,IAAA,0BAAU,EAAC,CAAC,oCAAsB,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAEzD,SAAgB,qCAAqC,CACnD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mDAA2C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,2DAA2D,CAC5D,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACrC,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CACvC,CAAC,CAAC;AAEH,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAClC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CACtB,IAAA,0BAAU,EAAC,CAAC,oCAAsB,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CACrD;IACD,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACtC,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IAC3C,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,sCAA8B,CAAC,CAAC;SACxE,QAAQ,EAAE;CACd,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,mBAAmB,EAAE,kBAAkB;KACxC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
|
@@ -6,6 +6,7 @@ export * from "./company.js";
|
|
|
6
6
|
export * from "./companycredentiallistitem.js";
|
|
7
7
|
export * from "./companylookup.js";
|
|
8
8
|
export * from "./companymanager.js";
|
|
9
|
+
export * from "./companytargetfacility.js";
|
|
9
10
|
export * from "./companyvendorfield.js";
|
|
10
11
|
export * from "./companyvendortyperestriction.js";
|
|
11
12
|
export * from "./contact.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBA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AAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
|
|
@@ -25,6 +25,7 @@ __exportStar(require("./company.js"), exports);
|
|
|
25
25
|
__exportStar(require("./companycredentiallistitem.js"), exports);
|
|
26
26
|
__exportStar(require("./companylookup.js"), exports);
|
|
27
27
|
__exportStar(require("./companymanager.js"), exports);
|
|
28
|
+
__exportStar(require("./companytargetfacility.js"), exports);
|
|
28
29
|
__exportStar(require("./companyvendorfield.js"), exports);
|
|
29
30
|
__exportStar(require("./companyvendortyperestriction.js"), exports);
|
|
30
31
|
__exportStar(require("./contact.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,oDAAkC;AAClC,6CAA2B;AAC3B,0DAAwC;AACxC,6DAA2C;AAC3C,+CAA6B;AAC7B,iEAA+C;AAC/C,qDAAmC;AACnC,sDAAoC;AACpC,0DAAwC;AACxC,oEAAkD;AAClD,+CAA6B;AAC7B,mDAAiC;AACjC,kDAAgC;AAChC,0DAAwC;AACxC,wDAAsC;AACtC,8CAA4B;AAC5B,iEAA+C;AAC/C,mDAAiC;AACjC,yDAAuC;AACvC,kDAAgC;AAChC,4DAA0C;AAC1C,yDAAuC;AACvC,4CAA0B;AAC1B,wDAAsC;AACtC,8CAA4B;AAC5B,gDAA8B;AAC9B,+DAA6C;AAC7C,sDAAoC;AACpC,uDAAqC;AACrC,0DAAwC;AACxC,4CAA0B;AAC1B,kDAAgC;AAChC,wDAAsC;AACtC,+DAA6C;AAC7C,yDAAuC;AACvC,uDAAqC;AACrC,+CAA6B;AAC7B,gDAA8B;AAC9B,+CAA6B;AAC7B,+CAA6B;AAC7B,8DAA4C;AAC5C,mDAAiC;AACjC,0DAAwC;AACxC,6DAA2C;AAC3C,kEAAgD;AAChD,2DAAyC;AACzC,6CAA2B;AAC3B,8DAA4C;AAC5C,gEAA8C;AAC9C,sDAAoC;AACpC,0DAAwC;AACxC,yDAAuC;AACvC,+CAA6B;AAC7B,sDAAoC;AACpC,iEAA+C;AAC/C,gDAA8B;AAC9B,uDAAqC;AACrC,oEAAkD;AAClD,yDAAuC;AACvC,yDAAuC;AACvC,gDAA8B;AAC9B,2DAAyC;AACzC,6CAA2B;AAC3B,oDAAkC;AAClC,kDAAgC;AAChC,sDAAoC;AACpC,qDAAmC;AACnC,yDAAuC;AACvC,4CAA0B;AAC1B,mDAAiC;AACjC,oDAAkC;AAClC,mDAAiC;AACjC,8CAA4B;AAC5B,mEAAiD;AACjD,4DAA0C;AAC1C,mFAAiE;AACjE,wFAAsE;AACtE,kEAAgD;AAChD,+DAA6C;AAC7C,0DAAwC;AACxC,gEAA8C;AAC9C,mDAAiC;AACjC,sDAAoC;AACpC,8DAA4C;AAC5C,gEAA8C;AAC9C,kDAAgC;AAChC,iEAA+C;AAC/C,mEAAiD;AACjD,mEAAiD;AACjD,0DAAwC;AACxC,2DAAyC;AACzC,kDAAgC;AAChC,uDAAqC;AACrC,4CAA0B;AAC1B,kDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,oDAAkC;AAClC,6CAA2B;AAC3B,0DAAwC;AACxC,6DAA2C;AAC3C,+CAA6B;AAC7B,iEAA+C;AAC/C,qDAAmC;AACnC,sDAAoC;AACpC,6DAA2C;AAC3C,0DAAwC;AACxC,oEAAkD;AAClD,+CAA6B;AAC7B,mDAAiC;AACjC,kDAAgC;AAChC,0DAAwC;AACxC,wDAAsC;AACtC,8CAA4B;AAC5B,iEAA+C;AAC/C,mDAAiC;AACjC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types/fp.js";
|
|
3
|
+
import * as components from "../components/index.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
export type CreateCompanyTargetFacilityRequestBody = {
|
|
6
|
+
/**
|
|
7
|
+
* The existing facility to target.
|
|
8
|
+
*/
|
|
9
|
+
facilityId: number;
|
|
10
|
+
};
|
|
11
|
+
export type CreateCompanyTargetFacilityRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* The company that will target the facility.
|
|
14
|
+
*/
|
|
15
|
+
companyId: number;
|
|
16
|
+
/**
|
|
17
|
+
* 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.
|
|
18
|
+
*/
|
|
19
|
+
expand?: Array<components.Expand> | undefined;
|
|
20
|
+
requestBody: CreateCompanyTargetFacilityRequestBody;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The CompanyTargetFacility link was created.
|
|
24
|
+
*/
|
|
25
|
+
export type CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk = {
|
|
26
|
+
/**
|
|
27
|
+
* 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.
|
|
28
|
+
*/
|
|
29
|
+
companyTargetFacility: components.CompanyTargetFacility;
|
|
30
|
+
};
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type CreateCompanyTargetFacilityRequestBody$Outbound = {
|
|
33
|
+
facility_id: number;
|
|
34
|
+
};
|
|
35
|
+
/** @internal */
|
|
36
|
+
export declare const CreateCompanyTargetFacilityRequestBody$outboundSchema: z.ZodType<CreateCompanyTargetFacilityRequestBody$Outbound, z.ZodTypeDef, CreateCompanyTargetFacilityRequestBody>;
|
|
37
|
+
export declare function createCompanyTargetFacilityRequestBodyToJSON(createCompanyTargetFacilityRequestBody: CreateCompanyTargetFacilityRequestBody): string;
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type CreateCompanyTargetFacilityRequest$Outbound = {
|
|
40
|
+
company_id: number;
|
|
41
|
+
expand?: Array<string> | undefined;
|
|
42
|
+
RequestBody: CreateCompanyTargetFacilityRequestBody$Outbound;
|
|
43
|
+
};
|
|
44
|
+
/** @internal */
|
|
45
|
+
export declare const CreateCompanyTargetFacilityRequest$outboundSchema: z.ZodType<CreateCompanyTargetFacilityRequest$Outbound, z.ZodTypeDef, CreateCompanyTargetFacilityRequest>;
|
|
46
|
+
export declare function createCompanyTargetFacilityRequestToJSON(createCompanyTargetFacilityRequest: CreateCompanyTargetFacilityRequest): string;
|
|
47
|
+
/** @internal */
|
|
48
|
+
export declare const CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk$inboundSchema: z.ZodType<CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk, z.ZodTypeDef, unknown>;
|
|
49
|
+
export declare function createCompanyTargetFacilityCreateCompanyTargetFacilityOkFromJSON(jsonString: string): SafeParseResult<CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk, SDKValidationError>;
|
|
50
|
+
//# sourceMappingURL=createcompanytargetfacility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createcompanytargetfacility.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/createcompanytargetfacility.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,sCAAsC,GAAG;IACnD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,G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
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk$inboundSchema = exports.CreateCompanyTargetFacilityRequest$outboundSchema = exports.CreateCompanyTargetFacilityRequestBody$outboundSchema = void 0;
|
|
40
|
+
exports.createCompanyTargetFacilityRequestBodyToJSON = createCompanyTargetFacilityRequestBodyToJSON;
|
|
41
|
+
exports.createCompanyTargetFacilityRequestToJSON = createCompanyTargetFacilityRequestToJSON;
|
|
42
|
+
exports.createCompanyTargetFacilityCreateCompanyTargetFacilityOkFromJSON = createCompanyTargetFacilityCreateCompanyTargetFacilityOkFromJSON;
|
|
43
|
+
const z = __importStar(require("zod/v3"));
|
|
44
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
45
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
46
|
+
const components = __importStar(require("../components/index.js"));
|
|
47
|
+
/** @internal */
|
|
48
|
+
exports.CreateCompanyTargetFacilityRequestBody$outboundSchema = z.object({
|
|
49
|
+
facilityId: z.number().int(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return (0, primitives_js_1.remap)(v, {
|
|
52
|
+
facilityId: "facility_id",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
function createCompanyTargetFacilityRequestBodyToJSON(createCompanyTargetFacilityRequestBody) {
|
|
56
|
+
return JSON.stringify(exports.CreateCompanyTargetFacilityRequestBody$outboundSchema.parse(createCompanyTargetFacilityRequestBody));
|
|
57
|
+
}
|
|
58
|
+
/** @internal */
|
|
59
|
+
exports.CreateCompanyTargetFacilityRequest$outboundSchema = z.object({
|
|
60
|
+
companyId: z.number().int(),
|
|
61
|
+
expand: z.array(components.Expand$outboundSchema).optional(),
|
|
62
|
+
requestBody: z.lazy(() => exports.CreateCompanyTargetFacilityRequestBody$outboundSchema),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return (0, primitives_js_1.remap)(v, {
|
|
65
|
+
companyId: "company_id",
|
|
66
|
+
requestBody: "RequestBody",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
function createCompanyTargetFacilityRequestToJSON(createCompanyTargetFacilityRequest) {
|
|
70
|
+
return JSON.stringify(exports.CreateCompanyTargetFacilityRequest$outboundSchema.parse(createCompanyTargetFacilityRequest));
|
|
71
|
+
}
|
|
72
|
+
/** @internal */
|
|
73
|
+
exports.CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk$inboundSchema = z.object({
|
|
74
|
+
company_target_facility: components.CompanyTargetFacility$inboundSchema,
|
|
75
|
+
}).transform((v) => {
|
|
76
|
+
return (0, primitives_js_1.remap)(v, {
|
|
77
|
+
"company_target_facility": "companyTargetFacility",
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
function createCompanyTargetFacilityCreateCompanyTargetFacilityOkFromJSON(jsonString) {
|
|
81
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk$inboundSchema
|
|
82
|
+
.parse(JSON.parse(x)), `Failed to parse 'CreateCompanyTargetFacilityCreateCompanyTargetFacilityOk' from JSON`);
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=createcompanytargetfacility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createcompanytargetfacility.js","sourceRoot":"","sources":["../../../../src/models/operations/createcompanytargetfacility.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDH,oGASC;AA2BD,4FAQC;AAgBD,4IAaC;AA/HD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAqCrD,gBAAgB;AACH,QAAA,qDAAqD,GAI9D,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC7B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,4CAA4C,CAC1D,sCACwC;IAExC,OAAO,IAAI,CAAC,SAA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
+
export type DeleteCompanyTargetFacilityRequest = {
|
|
3
|
+
/**
|
|
4
|
+
* The company that owns the CompanyTargetFacility link.
|
|
5
|
+
*/
|
|
6
|
+
companyId: number;
|
|
7
|
+
/**
|
|
8
|
+
* CompanyTargetFacility id
|
|
9
|
+
*/
|
|
10
|
+
id: number;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type DeleteCompanyTargetFacilityRequest$Outbound = {
|
|
14
|
+
company_id: number;
|
|
15
|
+
id: number;
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const DeleteCompanyTargetFacilityRequest$outboundSchema: z.ZodType<DeleteCompanyTargetFacilityRequest$Outbound, z.ZodTypeDef, DeleteCompanyTargetFacilityRequest>;
|
|
19
|
+
export declare function deleteCompanyTargetFacilityRequestToJSON(deleteCompanyTargetFacilityRequest: DeleteCompanyTargetFacilityRequest): string;
|
|
20
|
+
//# sourceMappingURL=deletecompanytargetfacility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deletecompanytargetfacility.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/deletecompanytargetfacility.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,2CAA2C,GAAG;IACxD,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,OAAO,CACvE,2CAA2C,EAC3C,CAAC,CAAC,UAAU,EACZ,kCAAkC,CAQlC,CAAC;AAEH,wBAAgB,wCAAwC,CACtD,kCAAkC,EAAE,kCAAkC,GACrE,MAAM,CAMR"}
|