@greensecurity/javascript-sdk 0.44.0-beta.12 → 0.44.0-beta.14
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 +3 -0
- package/dist/commonjs/__tests__/organizations.test.js +29 -0
- 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 +30 -2
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/companyManagerGetPaymentForm.d.ts +3 -0
- package/dist/commonjs/admin-funcs/companyManagerGetPaymentForm.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/companyManagerGetPaymentForm.js +9 -0
- package/dist/commonjs/admin-funcs/companyManagerGetPaymentForm.js.map +1 -0
- package/dist/commonjs/admin-funcs/vendorGetPaymentForm.d.ts +3 -0
- package/dist/commonjs/admin-funcs/vendorGetPaymentForm.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/vendorGetPaymentForm.js +9 -0
- package/dist/commonjs/admin-funcs/vendorGetPaymentForm.js.map +1 -0
- package/dist/commonjs/funcs/organizationsListFacilityVendors.d.ts +42 -0
- package/dist/commonjs/funcs/organizationsListFacilityVendors.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsListFacilityVendors.js +187 -0
- package/dist/commonjs/funcs/organizationsListFacilityVendors.js.map +1 -0
- package/dist/commonjs/hooks/types.d.ts +1 -0
- package/dist/commonjs/hooks/types.d.ts.map +1 -1
- package/dist/commonjs/index.extras.d.ts +8 -0
- package/dist/commonjs/index.extras.d.ts.map +1 -1
- package/dist/commonjs/index.extras.js +8 -0
- package/dist/commonjs/index.extras.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +4 -4
- package/dist/commonjs/lib/config.js +4 -4
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +13 -4
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.d.ts +4 -4
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.d.ts.map +1 -1
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.js +6 -4
- package/dist/commonjs/models/operations/exportcompanytargetfacilities.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listfacilityvendors.d.ts +162 -0
- package/dist/commonjs/models/operations/listfacilityvendors.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listfacilityvendors.js +150 -0
- package/dist/commonjs/models/operations/listfacilityvendors.js.map +1 -0
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.d.ts +4 -4
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.js +6 -7
- package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/organizationsExportCompanyTargetFacilities.core.d.ts +1 -1
- 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 +2 -2
- 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/organizationsListFacilityVendors.core.d.ts +42 -0
- package/dist/commonjs/react-query/organizationsListFacilityVendors.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsListFacilityVendors.core.js +99 -0
- package/dist/commonjs/react-query/organizationsListFacilityVendors.core.js.map +1 -0
- package/dist/commonjs/react-query/organizationsListFacilityVendors.d.ts +142 -0
- package/dist/commonjs/react-query/organizationsListFacilityVendors.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsListFacilityVendors.js +180 -0
- package/dist/commonjs/react-query/organizationsListFacilityVendors.js.map +1 -0
- package/dist/commonjs/sdk/organizations.d.ts +28 -0
- package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.js +29 -0
- package/dist/commonjs/sdk/organizations.js.map +1 -1
- package/dist/esm/__tests__/organizations.test.js +29 -0
- 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 +30 -2
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/admin-funcs/companyManagerGetPaymentForm.d.ts +3 -0
- package/dist/esm/admin-funcs/companyManagerGetPaymentForm.d.ts.map +1 -0
- package/dist/esm/admin-funcs/companyManagerGetPaymentForm.js +6 -0
- package/dist/esm/admin-funcs/companyManagerGetPaymentForm.js.map +1 -0
- package/dist/esm/admin-funcs/vendorGetPaymentForm.d.ts +3 -0
- package/dist/esm/admin-funcs/vendorGetPaymentForm.d.ts.map +1 -0
- package/dist/esm/admin-funcs/vendorGetPaymentForm.js +6 -0
- package/dist/esm/admin-funcs/vendorGetPaymentForm.js.map +1 -0
- package/dist/esm/funcs/organizationsListFacilityVendors.d.ts +42 -0
- package/dist/esm/funcs/organizationsListFacilityVendors.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsListFacilityVendors.js +151 -0
- package/dist/esm/funcs/organizationsListFacilityVendors.js.map +1 -0
- package/dist/esm/hooks/types.d.ts +1 -0
- package/dist/esm/hooks/types.d.ts.map +1 -1
- package/dist/esm/index.extras.d.ts +8 -0
- package/dist/esm/index.extras.d.ts.map +1 -1
- package/dist/esm/index.extras.js +8 -0
- package/dist/esm/index.extras.js.map +1 -1
- package/dist/esm/lib/config.d.ts +4 -4
- package/dist/esm/lib/config.js +4 -4
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +13 -4
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/models/operations/exportcompanytargetfacilities.d.ts +4 -4
- package/dist/esm/models/operations/exportcompanytargetfacilities.d.ts.map +1 -1
- package/dist/esm/models/operations/exportcompanytargetfacilities.js +5 -3
- package/dist/esm/models/operations/exportcompanytargetfacilities.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listfacilityvendors.d.ts +162 -0
- package/dist/esm/models/operations/listfacilityvendors.d.ts.map +1 -0
- package/dist/esm/models/operations/listfacilityvendors.js +109 -0
- package/dist/esm/models/operations/listfacilityvendors.js.map +1 -0
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.d.ts +4 -4
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.js +4 -5
- package/dist/esm/models/operations/listvendoradditionalfacilityfields.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/organizationsExportCompanyTargetFacilities.core.d.ts +1 -1
- 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 +2 -2
- 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/organizationsListFacilityVendors.core.d.ts +42 -0
- package/dist/esm/react-query/organizationsListFacilityVendors.core.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsListFacilityVendors.core.js +91 -0
- package/dist/esm/react-query/organizationsListFacilityVendors.core.js.map +1 -0
- package/dist/esm/react-query/organizationsListFacilityVendors.d.ts +142 -0
- package/dist/esm/react-query/organizationsListFacilityVendors.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsListFacilityVendors.js +165 -0
- package/dist/esm/react-query/organizationsListFacilityVendors.js.map +1 -0
- package/dist/esm/sdk/organizations.d.ts +28 -0
- package/dist/esm/sdk/organizations.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.js +29 -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 +32 -0
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +30 -2
- package/src/admin-funcs/companyManagerGetPaymentForm.ts +6 -0
- package/src/admin-funcs/vendorGetPaymentForm.ts +6 -0
- package/src/funcs/organizationsListFacilityVendors.ts +279 -0
- package/src/hooks/types.ts +1 -0
- package/src/index.extras.ts +13 -3
- package/src/lib/config.ts +4 -4
- package/src/lib/sdks.ts +13 -4
- package/src/models/operations/exportcompanytargetfacilities.ts +10 -7
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listfacilityvendors.ts +307 -0
- package/src/models/operations/listvendoradditionalfacilityfields.ts +26 -15
- package/src/react-query/index.ts +1 -0
- package/src/react-query/organizationsExportCompanyTargetFacilities.core.ts +3 -1
- package/src/react-query/organizationsExportCompanyTargetFacilities.ts +6 -2
- package/src/react-query/organizationsListFacilityVendors.core.ts +207 -0
- package/src/react-query/organizationsListFacilityVendors.ts +351 -0
- package/src/sdk/organizations.ts +39 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.queryKeyOrganizationsListFacilityVendorsInfinite = exports.queryKeyOrganizationsListFacilityVendors = exports.prefetchOrganizationsListFacilityVendorsInfinite = exports.prefetchOrganizationsListFacilityVendors = exports.buildOrganizationsListFacilityVendorsQuery = exports.buildOrganizationsListFacilityVendorsInfiniteQuery = void 0;
|
|
7
|
+
exports.useOrganizationsListFacilityVendors = useOrganizationsListFacilityVendors;
|
|
8
|
+
exports.useOrganizationsListFacilityVendorsSuspense = useOrganizationsListFacilityVendorsSuspense;
|
|
9
|
+
exports.useOrganizationsListFacilityVendorsInfinite = useOrganizationsListFacilityVendorsInfinite;
|
|
10
|
+
exports.useOrganizationsListFacilityVendorsInfiniteSuspense = useOrganizationsListFacilityVendorsInfiniteSuspense;
|
|
11
|
+
exports.setOrganizationsListFacilityVendorsData = setOrganizationsListFacilityVendorsData;
|
|
12
|
+
exports.invalidateOrganizationsListFacilityVendors = invalidateOrganizationsListFacilityVendors;
|
|
13
|
+
exports.invalidateAllOrganizationsListFacilityVendors = invalidateAllOrganizationsListFacilityVendors;
|
|
14
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
15
|
+
const _context_js_1 = require("./_context.js");
|
|
16
|
+
const organizationsListFacilityVendors_core_js_1 = require("./organizationsListFacilityVendors.core.js");
|
|
17
|
+
Object.defineProperty(exports, "buildOrganizationsListFacilityVendorsInfiniteQuery", { enumerable: true, get: function () { return organizationsListFacilityVendors_core_js_1.buildOrganizationsListFacilityVendorsInfiniteQuery; } });
|
|
18
|
+
Object.defineProperty(exports, "buildOrganizationsListFacilityVendorsQuery", { enumerable: true, get: function () { return organizationsListFacilityVendors_core_js_1.buildOrganizationsListFacilityVendorsQuery; } });
|
|
19
|
+
Object.defineProperty(exports, "prefetchOrganizationsListFacilityVendors", { enumerable: true, get: function () { return organizationsListFacilityVendors_core_js_1.prefetchOrganizationsListFacilityVendors; } });
|
|
20
|
+
Object.defineProperty(exports, "prefetchOrganizationsListFacilityVendorsInfinite", { enumerable: true, get: function () { return organizationsListFacilityVendors_core_js_1.prefetchOrganizationsListFacilityVendorsInfinite; } });
|
|
21
|
+
Object.defineProperty(exports, "queryKeyOrganizationsListFacilityVendors", { enumerable: true, get: function () { return organizationsListFacilityVendors_core_js_1.queryKeyOrganizationsListFacilityVendors; } });
|
|
22
|
+
Object.defineProperty(exports, "queryKeyOrganizationsListFacilityVendorsInfinite", { enumerable: true, get: function () { return organizationsListFacilityVendors_core_js_1.queryKeyOrganizationsListFacilityVendorsInfinite; } });
|
|
23
|
+
/**
|
|
24
|
+
* List vendors targeting a facility
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* Powers the Company Portal → Facility Details page. Returns the
|
|
28
|
+
* paginated list of company-scoped vendor reps that are targeting the
|
|
29
|
+
* given facility, with each row carrying the rep's name + email, their
|
|
30
|
+
* last visit to this facility, their facility access status, and any
|
|
31
|
+
* company custom fields the company has flagged `show_to_vendor` (which
|
|
32
|
+
* is where the "Employee ID" column on the UI lives).
|
|
33
|
+
*
|
|
34
|
+
* Filtering: pass `status=approved|pending|denied` to scope the rows to a
|
|
35
|
+
* single status tab. Pass `search=<term>` for a single search box that
|
|
36
|
+
* matches first name, last name, full name, email, OR any visible custom
|
|
37
|
+
* field value (covering the "search by name / email / Employee ID"
|
|
38
|
+
* requirement).
|
|
39
|
+
*
|
|
40
|
+
* Access control:
|
|
41
|
+
* * Regular users: the URL's `:id` must be in the caller's read scope for
|
|
42
|
+
* Facility (resolved via `has_facility_access_policy`). Out-of-scope or
|
|
43
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
44
|
+
* * API users: must pass `company_id`. Both the company and the facility
|
|
45
|
+
* must be activated for the caller's marketplace app
|
|
46
|
+
* (`MarketplaceAppActivation`).
|
|
47
|
+
*/
|
|
48
|
+
function useOrganizationsListFacilityVendors(request, options) {
|
|
49
|
+
const client = (0, _context_js_1.useGreenSecurityContext)();
|
|
50
|
+
return (0, react_query_1.useQuery)({
|
|
51
|
+
...(0, organizationsListFacilityVendors_core_js_1.buildOrganizationsListFacilityVendorsQuery)(client, request, options),
|
|
52
|
+
...options,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* List vendors targeting a facility
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
* Powers the Company Portal → Facility Details page. Returns the
|
|
60
|
+
* paginated list of company-scoped vendor reps that are targeting the
|
|
61
|
+
* given facility, with each row carrying the rep's name + email, their
|
|
62
|
+
* last visit to this facility, their facility access status, and any
|
|
63
|
+
* company custom fields the company has flagged `show_to_vendor` (which
|
|
64
|
+
* is where the "Employee ID" column on the UI lives).
|
|
65
|
+
*
|
|
66
|
+
* Filtering: pass `status=approved|pending|denied` to scope the rows to a
|
|
67
|
+
* single status tab. Pass `search=<term>` for a single search box that
|
|
68
|
+
* matches first name, last name, full name, email, OR any visible custom
|
|
69
|
+
* field value (covering the "search by name / email / Employee ID"
|
|
70
|
+
* requirement).
|
|
71
|
+
*
|
|
72
|
+
* Access control:
|
|
73
|
+
* * Regular users: the URL's `:id` must be in the caller's read scope for
|
|
74
|
+
* Facility (resolved via `has_facility_access_policy`). Out-of-scope or
|
|
75
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
76
|
+
* * API users: must pass `company_id`. Both the company and the facility
|
|
77
|
+
* must be activated for the caller's marketplace app
|
|
78
|
+
* (`MarketplaceAppActivation`).
|
|
79
|
+
*/
|
|
80
|
+
function useOrganizationsListFacilityVendorsSuspense(request, options) {
|
|
81
|
+
const client = (0, _context_js_1.useGreenSecurityContext)();
|
|
82
|
+
return (0, react_query_1.useSuspenseQuery)({
|
|
83
|
+
...(0, organizationsListFacilityVendors_core_js_1.buildOrganizationsListFacilityVendorsQuery)(client, request, options),
|
|
84
|
+
...options,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* List vendors targeting a facility
|
|
89
|
+
*
|
|
90
|
+
* @remarks
|
|
91
|
+
* Powers the Company Portal → Facility Details page. Returns the
|
|
92
|
+
* paginated list of company-scoped vendor reps that are targeting the
|
|
93
|
+
* given facility, with each row carrying the rep's name + email, their
|
|
94
|
+
* last visit to this facility, their facility access status, and any
|
|
95
|
+
* company custom fields the company has flagged `show_to_vendor` (which
|
|
96
|
+
* is where the "Employee ID" column on the UI lives).
|
|
97
|
+
*
|
|
98
|
+
* Filtering: pass `status=approved|pending|denied` to scope the rows to a
|
|
99
|
+
* single status tab. Pass `search=<term>` for a single search box that
|
|
100
|
+
* matches first name, last name, full name, email, OR any visible custom
|
|
101
|
+
* field value (covering the "search by name / email / Employee ID"
|
|
102
|
+
* requirement).
|
|
103
|
+
*
|
|
104
|
+
* Access control:
|
|
105
|
+
* * Regular users: the URL's `:id` must be in the caller's read scope for
|
|
106
|
+
* Facility (resolved via `has_facility_access_policy`). Out-of-scope or
|
|
107
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
108
|
+
* * API users: must pass `company_id`. Both the company and the facility
|
|
109
|
+
* must be activated for the caller's marketplace app
|
|
110
|
+
* (`MarketplaceAppActivation`).
|
|
111
|
+
*/
|
|
112
|
+
function useOrganizationsListFacilityVendorsInfinite(request, options) {
|
|
113
|
+
const client = (0, _context_js_1.useGreenSecurityContext)();
|
|
114
|
+
return (0, react_query_1.useInfiniteQuery)({
|
|
115
|
+
...(0, organizationsListFacilityVendors_core_js_1.buildOrganizationsListFacilityVendorsInfiniteQuery)(client, request, options),
|
|
116
|
+
initialPageParam: options?.initialPageParam,
|
|
117
|
+
getNextPageParam: (previousPage) => previousPage["~next"],
|
|
118
|
+
...options,
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* List vendors targeting a facility
|
|
123
|
+
*
|
|
124
|
+
* @remarks
|
|
125
|
+
* Powers the Company Portal → Facility Details page. Returns the
|
|
126
|
+
* paginated list of company-scoped vendor reps that are targeting the
|
|
127
|
+
* given facility, with each row carrying the rep's name + email, their
|
|
128
|
+
* last visit to this facility, their facility access status, and any
|
|
129
|
+
* company custom fields the company has flagged `show_to_vendor` (which
|
|
130
|
+
* is where the "Employee ID" column on the UI lives).
|
|
131
|
+
*
|
|
132
|
+
* Filtering: pass `status=approved|pending|denied` to scope the rows to a
|
|
133
|
+
* single status tab. Pass `search=<term>` for a single search box that
|
|
134
|
+
* matches first name, last name, full name, email, OR any visible custom
|
|
135
|
+
* field value (covering the "search by name / email / Employee ID"
|
|
136
|
+
* requirement).
|
|
137
|
+
*
|
|
138
|
+
* Access control:
|
|
139
|
+
* * Regular users: the URL's `:id` must be in the caller's read scope for
|
|
140
|
+
* Facility (resolved via `has_facility_access_policy`). Out-of-scope or
|
|
141
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
142
|
+
* * API users: must pass `company_id`. Both the company and the facility
|
|
143
|
+
* must be activated for the caller's marketplace app
|
|
144
|
+
* (`MarketplaceAppActivation`).
|
|
145
|
+
*/
|
|
146
|
+
function useOrganizationsListFacilityVendorsInfiniteSuspense(request, options) {
|
|
147
|
+
const client = (0, _context_js_1.useGreenSecurityContext)();
|
|
148
|
+
return (0, react_query_1.useSuspenseInfiniteQuery)({
|
|
149
|
+
...(0, organizationsListFacilityVendors_core_js_1.buildOrganizationsListFacilityVendorsInfiniteQuery)(client, request, options),
|
|
150
|
+
initialPageParam: options?.initialPageParam,
|
|
151
|
+
getNextPageParam: (previousPage) => previousPage["~next"],
|
|
152
|
+
...options,
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
function setOrganizationsListFacilityVendorsData(client, queryKeyBase, data) {
|
|
156
|
+
const key = (0, organizationsListFacilityVendors_core_js_1.queryKeyOrganizationsListFacilityVendors)(...queryKeyBase);
|
|
157
|
+
return client.setQueryData(key, data);
|
|
158
|
+
}
|
|
159
|
+
function invalidateOrganizationsListFacilityVendors(client, queryKeyBase, filters) {
|
|
160
|
+
return client.invalidateQueries({
|
|
161
|
+
...filters,
|
|
162
|
+
queryKey: [
|
|
163
|
+
"@greensecurity/javascript-sdk",
|
|
164
|
+
"organizations",
|
|
165
|
+
"listFacilityVendors",
|
|
166
|
+
...queryKeyBase,
|
|
167
|
+
],
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
function invalidateAllOrganizationsListFacilityVendors(client, filters) {
|
|
171
|
+
return client.invalidateQueries({
|
|
172
|
+
...filters,
|
|
173
|
+
queryKey: [
|
|
174
|
+
"@greensecurity/javascript-sdk",
|
|
175
|
+
"organizations",
|
|
176
|
+
"listFacilityVendors",
|
|
177
|
+
],
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
//# sourceMappingURL=organizationsListFacilityVendors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsListFacilityVendors.js","sourceRoot":"","sources":["../../../src/react-query/organizationsListFacilityVendors.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAgGH,kFAmBC;AA2BD,kGAmBC;AA2BD,kGAiCC;AA2BD,kHAiCC;AAED,0FAsBC;AAED,gGA2BC;AAED,sGAYC;AA1VD,uDAa+B;AAc/B,+CAAwD;AAQxD,yGAUoD;AAElD,mIAXA,6FAAkD,OAWA;AAClD,2HAXA,qFAA0C,OAWA;AAI1C,yHAXA,mFAAwC,OAWA;AACxC,iIAXA,2FAAgD,OAWA;AAChD,yHAXA,mFAAwC,OAWA;AACxC,iIAXA,2FAAgD,OAWA;AAclD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAgB,mCAAmC,CACjD,OAA8C,EAC9C,OAGC;IAKD,MAAM,MAAM,GAAG,IAAA,qCAAuB,GAAE,CAAC;IACzC,OAAO,IAAA,sBAAQ,EAAC;QACd,GAAG,IAAA,qF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GAAG,GAAG,IAAA,mFAAwC,EAAC,GAAG,YAAY,CAAC,CAAC;IAEtE,OAAO,MAAM,CAAC,YAAY,CACxB,GAAG,EACH,IAAI,CACL,CAAC;AACJ,CAAC;AAED,SAAgB,0CAA0C,CACxD,MAAmB,EACnB,YAaC,EACD,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE;YACR,+BAA+B;YAC/B,eAAe;YACf,qBAAqB;YACrB,GAAG,YAAY;SAChB;KACF,CAAC,CAAC;AACL,CAAC;AAED,SAAgB,6CAA6C,CAC3D,MAAmB,EACnB,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE;YACR,+BAA+B;YAC/B,eAAe;YACf,qBAAqB;SACtB;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -71,6 +71,34 @@ export declare class Organizations extends ClientSDK {
|
|
|
71
71
|
* If the export is still being generated, returns 202 with a JSON `{ ready: false }` payload.
|
|
72
72
|
*/
|
|
73
73
|
downloadCompanyTargetFacilitiesExport(request: operations.DownloadCompanyTargetFacilitiesExportRequest, options?: RequestOptions): Promise<operations.DownloadCompanyTargetFacilitiesExportResponse | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* List vendors targeting a facility
|
|
76
|
+
*
|
|
77
|
+
* @remarks
|
|
78
|
+
* Powers the Company Portal → Facility Details page. Returns the
|
|
79
|
+
* paginated list of company-scoped vendor reps that are targeting the
|
|
80
|
+
* given facility, with each row carrying the rep's name + email, their
|
|
81
|
+
* last visit to this facility, their facility access status, and any
|
|
82
|
+
* company custom fields the company has flagged `show_to_vendor` (which
|
|
83
|
+
* is where the "Employee ID" column on the UI lives).
|
|
84
|
+
*
|
|
85
|
+
* Filtering: pass `status=approved|pending|denied` to scope the rows to a
|
|
86
|
+
* single status tab. Pass `search=<term>` for a single search box that
|
|
87
|
+
* matches first name, last name, full name, email, OR any visible custom
|
|
88
|
+
* field value (covering the "search by name / email / Employee ID"
|
|
89
|
+
* requirement).
|
|
90
|
+
*
|
|
91
|
+
* Access control:
|
|
92
|
+
* * Regular users: the URL's `:id` must be in the caller's read scope for
|
|
93
|
+
* Facility (resolved via `has_facility_access_policy`). Out-of-scope or
|
|
94
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
95
|
+
* * API users: must pass `company_id`. Both the company and the facility
|
|
96
|
+
* must be activated for the caller's marketplace app
|
|
97
|
+
* (`MarketplaceAppActivation`).
|
|
98
|
+
*/
|
|
99
|
+
listFacilityVendors(request: operations.ListFacilityVendorsRequest, options?: RequestOptions): Promise<PageIterator<operations.ListFacilityVendorsResponse, {
|
|
100
|
+
page: number;
|
|
101
|
+
}>>;
|
|
74
102
|
/**
|
|
75
103
|
* List or search department contacts
|
|
76
104
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;;;;;;;;;;;;;;;;;OAkBG;IACG,sBAAsB,CAC1B,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,YAAY,CAAC,UAAU,CAAC,8BAA8B,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAC1E;IAQD;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,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CompanyTargetFacilitiesExport_js_1 = require("../func
|
|
|
8
8
|
const organizationsExportCompanyTargetFacilities_js_1 = require("../funcs/organizationsExportCompanyTargetFacilities.js");
|
|
9
9
|
const organizationsGetCompanyTargetFacilitiesExportStatus_js_1 = require("../funcs/organizationsGetCompanyTargetFacilitiesExportStatus.js");
|
|
10
10
|
const organizationsGetFacility_js_1 = require("../funcs/organizationsGetFacility.js");
|
|
11
|
+
const organizationsListFacilityVendors_js_1 = require("../funcs/organizationsListFacilityVendors.js");
|
|
11
12
|
const organizationsListOrSearchDepartmentContacts_js_1 = require("../funcs/organizationsListOrSearchDepartmentContacts.js");
|
|
12
13
|
const organizationsListOrSearchDepartments_js_1 = require("../funcs/organizationsListOrSearchDepartments.js");
|
|
13
14
|
const organizationsListOrSearchFacilities_js_1 = require("../funcs/organizationsListOrSearchFacilities.js");
|
|
@@ -91,6 +92,34 @@ class Organizations extends sdks_js_1.ClientSDK {
|
|
|
91
92
|
async downloadCompanyTargetFacilitiesExport(request, options) {
|
|
92
93
|
return (0, fp_js_1.unwrapAsync)((0, organizationsDownloadCompanyTargetFacilitiesExport_js_1.organizationsDownloadCompanyTargetFacilitiesExport)(this, request, options));
|
|
93
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* List vendors targeting a facility
|
|
97
|
+
*
|
|
98
|
+
* @remarks
|
|
99
|
+
* Powers the Company Portal → Facility Details page. Returns the
|
|
100
|
+
* paginated list of company-scoped vendor reps that are targeting the
|
|
101
|
+
* given facility, with each row carrying the rep's name + email, their
|
|
102
|
+
* last visit to this facility, their facility access status, and any
|
|
103
|
+
* company custom fields the company has flagged `show_to_vendor` (which
|
|
104
|
+
* is where the "Employee ID" column on the UI lives).
|
|
105
|
+
*
|
|
106
|
+
* Filtering: pass `status=approved|pending|denied` to scope the rows to a
|
|
107
|
+
* single status tab. Pass `search=<term>` for a single search box that
|
|
108
|
+
* matches first name, last name, full name, email, OR any visible custom
|
|
109
|
+
* field value (covering the "search by name / email / Employee ID"
|
|
110
|
+
* requirement).
|
|
111
|
+
*
|
|
112
|
+
* Access control:
|
|
113
|
+
* * Regular users: the URL's `:id` must be in the caller's read scope for
|
|
114
|
+
* Facility (resolved via `has_facility_access_policy`). Out-of-scope or
|
|
115
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
116
|
+
* * API users: must pass `company_id`. Both the company and the facility
|
|
117
|
+
* must be activated for the caller's marketplace app
|
|
118
|
+
* (`MarketplaceAppActivation`).
|
|
119
|
+
*/
|
|
120
|
+
async listFacilityVendors(request, options) {
|
|
121
|
+
return (0, operations_js_1.unwrapResultIterator)((0, organizationsListFacilityVendors_js_1.organizationsListFacilityVendors)(this, request, options));
|
|
122
|
+
}
|
|
94
123
|
/**
|
|
95
124
|
* List or search department contacts
|
|
96
125
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0IAAoI;AACpI,0HAAoH;AACpH,4IAAsI;AACtI,sFAAgF;AAChF,4HAAsH;AACtH,8GAAwG;AACxG,4GAAsG;AACtG,4CAA2D;AAG3D,0CAA6C;AAC7C,0DAA4E;AAE5E,MAAa,aAAc,SAAQ,mBAAS;IAC1C;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAiD,EACjD,OAAwB;QAIxB,OAAO,IAAA,oCAAoB,EAAC,IAAA,4EAAmC,EAC7D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,uBAAuB,CAC3B,OAAkD,EAClD,OAAwB;QAIxB,OAAO,IAAA,oCAAoB,EAAC,IAAA,8EAAoC,EAC9D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,6BAA6B,CACjC,OAAwD,EACxD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0FAA0C,EAC3D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,sCAAsC,CAC1C,OAAiE,EACjE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4GAAmD,EACpE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,qCAAqC,CACzC,OAAgE,EAChE,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,0GAAkD,EACnE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,8BAA8B,CAClC,OAAyD,EACzD,OAAwB;QAOxB,OAAO,IAAA,oCAAoB,EAAC,IAAA,4FAA2C,EACrE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["../../../src/sdk/organizations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0IAAoI;AACpI,0HAAoH;AACpH,4IAAsI;AACtI,sFAAgF;AAChF,sGAAgG;AAChG,4HAAsH;AACtH,8GAAwG;AACxG,4GAAsG;AACtG,4CAA2D;AAG3D,0CAA6C;AAC7C,0DAA4E;AAE5E,MAAa,aAAc,SAAQ,mBAAS;IAC1C;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAiD,EACjD,OAAwB;QAIxB,OAAO,I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C,8BAA8B,CAClC,OAAyD,EACzD,OAAwB;QAOxB,OAAO,IAAA,oCAAoB,EAAC,IAAA,4FAA2C,EACrE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAnMD,sCAmMC"}
|
|
@@ -143,4 +143,33 @@ test("Organizations Download Company Target Facilities Export", async () => {
|
|
|
143
143
|
expect(result.result).toBeDefined();
|
|
144
144
|
expect(result.result).toEqual({});
|
|
145
145
|
});
|
|
146
|
+
test("Organizations List Facility Vendors", async () => {
|
|
147
|
+
const testHttpClient = createTestHTTPClient("listFacilityVendors");
|
|
148
|
+
const greenSecurity = new GreenSecurity({
|
|
149
|
+
serverURL: process.env["TEST_SERVER_URL"] ?? "https://localhost:3000/api",
|
|
150
|
+
httpClient: testHttpClient,
|
|
151
|
+
security: {
|
|
152
|
+
token: process.env["GREEN_SECURITY_TOKEN"] ?? "value",
|
|
153
|
+
},
|
|
154
|
+
});
|
|
155
|
+
const result = await greenSecurity.organizations.listFacilityVendors({
|
|
156
|
+
id: 970801,
|
|
157
|
+
itemsPerPage: 25,
|
|
158
|
+
desc: true,
|
|
159
|
+
});
|
|
160
|
+
expect(result).toBeDefined();
|
|
161
|
+
expect(result.result).toBeDefined();
|
|
162
|
+
expect(result.result).toEqual({
|
|
163
|
+
pager: {
|
|
164
|
+
baseUrl: "api/vendors/job_titles",
|
|
165
|
+
sort: "job,title",
|
|
166
|
+
desc: 0,
|
|
167
|
+
itemCount: 228,
|
|
168
|
+
itemsPerPage: 557,
|
|
169
|
+
page: 1,
|
|
170
|
+
useUrlParams: true,
|
|
171
|
+
},
|
|
172
|
+
items: [],
|
|
173
|
+
});
|
|
174
|
+
});
|
|
146
175
|
//# sourceMappingURL=organizations.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.test.js","sourceRoot":"","sources":["../../../src/__tests__/organizations.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,M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,IAAI,4BAA4B;QACzE,UAAU,EAAE,cAAc;QAC1B,QAAQ,EAAE;YACR,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,OAAO;SACtD;KACF,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,aAAa,CAAC,mBAAmB,CAAC;QACnE,EAAE,EAAE,MAAM;QACV,YAAY,EAAE,EAAE;QAChB,IAAI,EAAE,IAAI;KACX,CAAC,CAAC;IACH,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7B,MAAM,CAAC,MAAO,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IACrC,MAAM,CAAC,MAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;QAC7B,KAAK,EAAE;YACL,OAAO,EAAE,wBAAwB;YACjC,IAAI,EAAE,WAAW;YACjB,IAAI,EAAE,CAAC;YACP,SAAS,EAAE,GAAG;YACd,YAAY,EAAE,GAAG;YACjB,IAAI,EAAE,CAAC;YACP,YAAY,EAAE,IAAI;SACnB;QACD,KAAK,EAAE,EAAE;KACV,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ test("Webhooks List All Webhook Endpoints", async () => {
|
|
|
16
16
|
const testWebhookListForVendorUserResult = await greenSecurity.webhooks
|
|
17
17
|
.listAllWebhookEndpoints({
|
|
18
18
|
itemsPerPage: 25,
|
|
19
|
-
desc:
|
|
19
|
+
desc: true,
|
|
20
20
|
sort: "",
|
|
21
21
|
});
|
|
22
22
|
expect(testWebhookListForVendorUserResult).toBeDefined();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.test.js","sourceRoot":"","sources":["../../../src/__tests__/webhooks.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,M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AU,EAAE,sCAAsC;YAClD,aAAa,EAAE;gBACb,WAAW;gBACX,WAAW;aACZ;YACD,SAAS,EAAE;gBACT,QAAQ,EAAE,CAAC;gBACX,UAAU,EAAE,CAAC;gBACb,SAAS,EAAE,CAAC;gBACZ,MAAM,EAAE,CAAC;aACV;SACF;KACF,CAAC,CAAC;IACL,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7B,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;QACrB,EAAE,EAAE,CAAC;QACL,UAAU,EAAE,sCAAsC;QAClD,aAAa,EAAE,iBAAiB;QAChC,aAAa,EAAE;YACb,WAAW;YACX,WAAW;SACZ;QACD,SAAS,EAAE;YACT,QAAQ,EAAE,CAAC;YACX,UAAU,EAAE,CAAC;YACb,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,CAAC;SACV;KACF,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -35,7 +35,35 @@ test("Zones List Or Search Security Zones", async () => {
|
|
|
35
35
|
facility: {},
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
facility: {
|
|
38
|
+
facility: {
|
|
39
|
+
contacts: {
|
|
40
|
+
contact: {
|
|
41
|
+
status: "Inactive",
|
|
42
|
+
department: 123,
|
|
43
|
+
},
|
|
44
|
+
adminContact: {
|
|
45
|
+
status: "Active",
|
|
46
|
+
department: 123,
|
|
47
|
+
},
|
|
48
|
+
techContact: {
|
|
49
|
+
status: "Deleted",
|
|
50
|
+
department: 123,
|
|
51
|
+
},
|
|
52
|
+
greenSecurityCsm: {
|
|
53
|
+
status: "Deleted",
|
|
54
|
+
department: 123,
|
|
55
|
+
},
|
|
56
|
+
accountManager: {
|
|
57
|
+
status: "Inactive",
|
|
58
|
+
department: 123,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
vendorGuestPolicy: {
|
|
62
|
+
enabled: true,
|
|
63
|
+
vendorGuestLimitAndOr: "and",
|
|
64
|
+
vendorGuestRequireEmail: false,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
39
67
|
},
|
|
40
68
|
],
|
|
41
69
|
});
|
|
@@ -51,7 +79,7 @@ test("Zones Security Zone Checkin", async () => {
|
|
|
51
79
|
});
|
|
52
80
|
const result = await greenSecurity.zones.securityZoneCheckin({
|
|
53
81
|
qrCode: "<value>",
|
|
54
|
-
zoneId:
|
|
82
|
+
zoneId: 714947,
|
|
55
83
|
});
|
|
56
84
|
expect(result).toBeDefined();
|
|
57
85
|
expect(result).toEqual({});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zones.test.js","sourceRoot":"","sources":["../../../src/__tests__/zones.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,IAAI,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;IACrD,MAAM,cAAc,GAAG,oBAAoB,CAAC,2BAA2B,CAAC,CAAC;IAEzE,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC;QACtC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,4BAA4B;QACzE,UAAU,EAAE,cAAc;QAC1B,QAAQ,EAAE;YACR,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,OAAO;SACtD;KACF,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,KAAK,CAAC,yBAAyB,CAAC;QACjE,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,CAAC;QACP,YAAY,EAAE,EAAE;KACjB,CAAC,CAAC;IACH,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7B,MAAM,CAAC,MAAO,CAAC,MAAM,C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|
1
|
+
import { APIPromise } from "../types/async.js";
|
|
2
|
+
import { $doGetSingle } from "./doAdmin.js";
|
|
3
|
+
export function companyManagerGetPaymentForm() {
|
|
4
|
+
return new APIPromise($doGetSingle("/company_managers/me/payment_form", {}));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=companyManagerGetPaymentForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companyManagerGetPaymentForm.js","sourceRoot":"","sources":["../../../src/admin-funcs/companyManagerGetPaymentForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAqB,MAAM,cAAc,CAAC;AAE/D,MAAM,UAAU,4BAA4B;IAC1C,OAAO,IAAI,UAAU,CAAC,YAAY,CAAC,mCAAmC,EAAE,EAAE,CAAC,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorGetPaymentForm.d.ts","sourceRoot":"","sources":["../../../src/admin-funcs/vendorGetPaymentForm.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAE/D,wBAAgB,oBAAoB,IAAI,iBAAiB,CAExD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendorGetPaymentForm.js","sourceRoot":"","sources":["../../../src/admin-funcs/vendorGetPaymentForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAqB,MAAM,cAAc,CAAC;AAE/D,MAAM,UAAU,oBAAoB;IAClC,OAAO,IAAI,UAAU,CAAC,YAAY,CAAC,0BAA0B,EAAE,EAAE,CAAC,CAAC,CAAC;AACtE,CAAC"}
|
|
@@ -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 vendors targeting a facility
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Powers the Company Portal → Facility Details page. Returns the
|
|
17
|
+
* paginated list of company-scoped vendor reps that are targeting the
|
|
18
|
+
* given facility, with each row carrying the rep's name + email, their
|
|
19
|
+
* last visit to this facility, their facility access status, and any
|
|
20
|
+
* company custom fields the company has flagged `show_to_vendor` (which
|
|
21
|
+
* is where the "Employee ID" column on the UI lives).
|
|
22
|
+
*
|
|
23
|
+
* Filtering: pass `status=approved|pending|denied` to scope the rows to a
|
|
24
|
+
* single status tab. Pass `search=<term>` for a single search box that
|
|
25
|
+
* matches first name, last name, full name, email, OR any visible custom
|
|
26
|
+
* field value (covering the "search by name / email / Employee ID"
|
|
27
|
+
* requirement).
|
|
28
|
+
*
|
|
29
|
+
* Access control:
|
|
30
|
+
* * Regular users: the URL's `:id` must be in the caller's read scope for
|
|
31
|
+
* Facility (resolved via `has_facility_access_policy`). Out-of-scope or
|
|
32
|
+
* soft-deleted facilities return `404 Facility not found`.
|
|
33
|
+
* * API users: must pass `company_id`. Both the company and the facility
|
|
34
|
+
* must be activated for the caller's marketplace app
|
|
35
|
+
* (`MarketplaceAppActivation`).
|
|
36
|
+
*
|
|
37
|
+
* If set, this operation will use {@link Security.bearerJwt} from the global security.
|
|
38
|
+
*/
|
|
39
|
+
export declare function organizationsListFacilityVendors(client: GreenSecurityCore, request: operations.ListFacilityVendorsRequest, options?: RequestOptions): APIPromise<PageIterator<Result<operations.ListFacilityVendorsResponse, errors.ApiErrorResponse | GreenSecurityError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>, {
|
|
40
|
+
page: number;
|
|
41
|
+
}>>;
|
|
42
|
+
//# sourceMappingURL=organizationsListFacilityVendors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizationsListFacilityVendors.d.ts","sourceRoot":"","sources":["../../../src/funcs/organizationsListFacilityVendors.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,gCAAgC,CAC9C,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,YAAY,CACV,MAAM,CACJ,UAAU,CAAC,2BAA2B,EACpC,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"}
|