@greensecurity/javascript-sdk 0.47.0-beta.9 → 0.48.0-beta.0
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 +1 -1
- package/dist/commonjs/__tests__/users.test.js +2 -0
- package/dist/commonjs/__tests__/users.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendorGetCompanyCredentialsSummary.test.d.ts +2 -0
- package/dist/commonjs/__tests__/vendorGetCompanyCredentialsSummary.test.d.ts.map +1 -0
- package/dist/commonjs/__tests__/vendorGetCompanyCredentialsSummary.test.js +30 -0
- package/dist/commonjs/__tests__/vendorGetCompanyCredentialsSummary.test.js.map +1 -0
- package/dist/commonjs/__tests__/vendors.test.js +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 +35 -7
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/clearVerifications.d.ts +24 -0
- package/dist/commonjs/admin-funcs/clearVerifications.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/clearVerifications.js +30 -0
- package/dist/commonjs/admin-funcs/clearVerifications.js.map +1 -0
- package/dist/commonjs/admin-funcs/companyManagerGetAutopay.d.ts +3 -0
- package/dist/commonjs/admin-funcs/companyManagerGetAutopay.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/companyManagerGetAutopay.js +9 -0
- package/dist/commonjs/admin-funcs/companyManagerGetAutopay.js.map +1 -0
- package/dist/commonjs/admin-funcs/companyManagerUpdateAutopay.d.ts +3 -0
- package/dist/commonjs/admin-funcs/companyManagerUpdateAutopay.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/companyManagerUpdateAutopay.js +12 -0
- package/dist/commonjs/admin-funcs/companyManagerUpdateAutopay.js.map +1 -0
- package/dist/commonjs/admin-funcs/registerGeneralInfo.d.ts +11 -6
- package/dist/commonjs/admin-funcs/registerGeneralInfo.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/registerGeneralInfo.js.map +1 -1
- package/dist/commonjs/admin-funcs/vendorGetCompanyCredentialsSummary.d.ts +1 -1
- package/dist/commonjs/admin-funcs/vendorGetCompanyCredentialsSummary.d.ts.map +1 -1
- package/dist/commonjs/admin-funcs/vendorGetCompanyCredentialsSummary.js +9 -3
- package/dist/commonjs/admin-funcs/vendorGetCompanyCredentialsSummary.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorTargetFacilities.d.ts +4 -0
- package/dist/commonjs/funcs/vendorsGetVendorTargetFacilities.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorTargetFacilities.js +7 -0
- package/dist/commonjs/funcs/vendorsGetVendorTargetFacilities.js.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts +5 -2
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js +5 -2
- package/dist/commonjs/funcs/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/commonjs/index.extras.d.ts +12 -0
- package/dist/commonjs/index.extras.d.ts.map +1 -1
- package/dist/commonjs/index.extras.js +12 -0
- package/dist/commonjs/index.extras.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/components/expand.d.ts +2 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +2 -0
- package/dist/commonjs/models/components/expand.js.map +1 -1
- 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/components/invoice.d.ts +5 -0
- package/dist/commonjs/models/components/invoice.d.ts.map +1 -1
- package/dist/commonjs/models/components/invoice.js +4 -0
- package/dist/commonjs/models/components/invoice.js.map +1 -1
- package/dist/commonjs/models/components/userdetails.d.ts +12 -0
- package/dist/commonjs/models/components/userdetails.d.ts.map +1 -1
- package/dist/commonjs/models/components/userdetails.js +4 -0
- package/dist/commonjs/models/components/userdetails.js.map +1 -1
- package/dist/commonjs/models/components/userlocation.d.ts +5 -0
- package/dist/commonjs/models/components/userlocation.d.ts.map +1 -1
- package/dist/commonjs/models/components/userlocation.js +4 -0
- package/dist/commonjs/models/components/userlocation.js.map +1 -1
- package/dist/commonjs/models/components/vendorpaymentresponsibilityassignments.d.ts +2 -2
- package/dist/commonjs/models/components/vendortargetfacility.d.ts +8 -0
- package/dist/commonjs/models/components/vendortargetfacility.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendortargetfacility.js +4 -0
- package/dist/commonjs/models/components/vendortargetfacility.js.map +1 -1
- package/dist/commonjs/models/components/vendortargetfacilitystatuscounts.d.ts +24 -0
- package/dist/commonjs/models/components/vendortargetfacilitystatuscounts.d.ts.map +1 -0
- package/dist/commonjs/models/components/vendortargetfacilitystatuscounts.js +58 -0
- package/dist/commonjs/models/components/vendortargetfacilitystatuscounts.js.map +1 -0
- package/dist/commonjs/models/operations/getvendortargetfacilities.d.ts +55 -7
- package/dist/commonjs/models/operations/getvendortargetfacilities.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getvendortargetfacilities.js +36 -3
- package/dist/commonjs/models/operations/getvendortargetfacilities.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendorpaymentresponsibility.d.ts +2 -2
- package/dist/commonjs/react-query/vendorsGetVendorTargetFacilities.core.d.ts +6 -0
- package/dist/commonjs/react-query/vendorsGetVendorTargetFacilities.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorTargetFacilities.core.js +6 -0
- package/dist/commonjs/react-query/vendorsGetVendorTargetFacilities.core.js.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorTargetFacilities.d.ts +22 -0
- package/dist/commonjs/react-query/vendorsGetVendorTargetFacilities.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorTargetFacilities.js +16 -0
- package/dist/commonjs/react-query/vendorsGetVendorTargetFacilities.js.map +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts +5 -2
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js +4 -1
- package/dist/commonjs/react-query/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +8 -1
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +8 -1
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/users.test.js +2 -0
- package/dist/esm/__tests__/users.test.js.map +1 -1
- package/dist/esm/__tests__/vendorGetCompanyCredentialsSummary.test.d.ts +2 -0
- package/dist/esm/__tests__/vendorGetCompanyCredentialsSummary.test.d.ts.map +1 -0
- package/dist/esm/__tests__/vendorGetCompanyCredentialsSummary.test.js +28 -0
- package/dist/esm/__tests__/vendorGetCompanyCredentialsSummary.test.js.map +1 -0
- package/dist/esm/__tests__/vendors.test.js +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 +35 -7
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/admin-funcs/clearVerifications.d.ts +24 -0
- package/dist/esm/admin-funcs/clearVerifications.d.ts.map +1 -0
- package/dist/esm/admin-funcs/clearVerifications.js +23 -0
- package/dist/esm/admin-funcs/clearVerifications.js.map +1 -0
- package/dist/esm/admin-funcs/companyManagerGetAutopay.d.ts +3 -0
- package/dist/esm/admin-funcs/companyManagerGetAutopay.d.ts.map +1 -0
- package/dist/esm/admin-funcs/companyManagerGetAutopay.js +6 -0
- package/dist/esm/admin-funcs/companyManagerGetAutopay.js.map +1 -0
- package/dist/esm/admin-funcs/companyManagerUpdateAutopay.d.ts +3 -0
- package/dist/esm/admin-funcs/companyManagerUpdateAutopay.d.ts.map +1 -0
- package/dist/esm/admin-funcs/companyManagerUpdateAutopay.js +9 -0
- package/dist/esm/admin-funcs/companyManagerUpdateAutopay.js.map +1 -0
- package/dist/esm/admin-funcs/registerGeneralInfo.d.ts +11 -6
- package/dist/esm/admin-funcs/registerGeneralInfo.d.ts.map +1 -1
- package/dist/esm/admin-funcs/registerGeneralInfo.js.map +1 -1
- package/dist/esm/admin-funcs/vendorGetCompanyCredentialsSummary.d.ts +1 -1
- package/dist/esm/admin-funcs/vendorGetCompanyCredentialsSummary.d.ts.map +1 -1
- package/dist/esm/admin-funcs/vendorGetCompanyCredentialsSummary.js +10 -4
- package/dist/esm/admin-funcs/vendorGetCompanyCredentialsSummary.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorTargetFacilities.d.ts +4 -0
- package/dist/esm/funcs/vendorsGetVendorTargetFacilities.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorTargetFacilities.js +7 -0
- package/dist/esm/funcs/vendorsGetVendorTargetFacilities.js.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts +5 -2
- package/dist/esm/funcs/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsUpdateVendorDetails.js +5 -2
- package/dist/esm/funcs/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/esm/index.extras.d.ts +12 -0
- package/dist/esm/index.extras.d.ts.map +1 -1
- package/dist/esm/index.extras.js +12 -0
- package/dist/esm/index.extras.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/components/expand.d.ts +2 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +2 -0
- package/dist/esm/models/components/expand.js.map +1 -1
- 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/components/invoice.d.ts +5 -0
- package/dist/esm/models/components/invoice.d.ts.map +1 -1
- package/dist/esm/models/components/invoice.js +4 -0
- package/dist/esm/models/components/invoice.js.map +1 -1
- package/dist/esm/models/components/userdetails.d.ts +12 -0
- package/dist/esm/models/components/userdetails.d.ts.map +1 -1
- package/dist/esm/models/components/userdetails.js +4 -0
- package/dist/esm/models/components/userdetails.js.map +1 -1
- package/dist/esm/models/components/userlocation.d.ts +5 -0
- package/dist/esm/models/components/userlocation.d.ts.map +1 -1
- package/dist/esm/models/components/userlocation.js +4 -0
- package/dist/esm/models/components/userlocation.js.map +1 -1
- package/dist/esm/models/components/vendorpaymentresponsibilityassignments.d.ts +2 -2
- package/dist/esm/models/components/vendortargetfacility.d.ts +8 -0
- package/dist/esm/models/components/vendortargetfacility.d.ts.map +1 -1
- package/dist/esm/models/components/vendortargetfacility.js +4 -0
- package/dist/esm/models/components/vendortargetfacility.js.map +1 -1
- package/dist/esm/models/components/vendortargetfacilitystatuscounts.d.ts +24 -0
- package/dist/esm/models/components/vendortargetfacilitystatuscounts.d.ts.map +1 -0
- package/dist/esm/models/components/vendortargetfacilitystatuscounts.js +21 -0
- package/dist/esm/models/components/vendortargetfacilitystatuscounts.js.map +1 -0
- package/dist/esm/models/operations/getvendortargetfacilities.d.ts +55 -7
- package/dist/esm/models/operations/getvendortargetfacilities.d.ts.map +1 -1
- package/dist/esm/models/operations/getvendortargetfacilities.js +35 -2
- package/dist/esm/models/operations/getvendortargetfacilities.js.map +1 -1
- package/dist/esm/models/operations/updatevendorpaymentresponsibility.d.ts +2 -2
- package/dist/esm/react-query/vendorsGetVendorTargetFacilities.core.d.ts +6 -0
- package/dist/esm/react-query/vendorsGetVendorTargetFacilities.core.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorTargetFacilities.core.js +6 -0
- package/dist/esm/react-query/vendorsGetVendorTargetFacilities.core.js.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorTargetFacilities.d.ts +22 -0
- package/dist/esm/react-query/vendorsGetVendorTargetFacilities.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorTargetFacilities.js +16 -0
- package/dist/esm/react-query/vendorsGetVendorTargetFacilities.js.map +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts +5 -2
- package/dist/esm/react-query/vendorsUpdateVendorDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsUpdateVendorDetails.js +4 -1
- package/dist/esm/react-query/vendorsUpdateVendorDetails.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +8 -1
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +8 -1
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/users.test.ts +2 -0
- package/src/__tests__/vendorGetCompanyCredentialsSummary.test.ts +40 -0
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +35 -7
- package/src/admin-funcs/clearVerifications.ts +42 -0
- package/src/admin-funcs/companyManagerGetAutopay.ts +6 -0
- package/src/admin-funcs/companyManagerUpdateAutopay.ts +12 -0
- package/src/admin-funcs/registerGeneralInfo.ts +11 -6
- package/src/admin-funcs/vendorGetCompanyCredentialsSummary.ts +11 -7
- package/src/funcs/vendorsGetVendorTargetFacilities.ts +7 -0
- package/src/funcs/vendorsUpdateVendorDetails.ts +8 -1
- package/src/index.extras.ts +19 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/expand.ts +3 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/invoice.ts +9 -0
- package/src/models/components/userdetails.ts +16 -0
- package/src/models/components/userlocation.ts +9 -0
- package/src/models/components/vendorpaymentresponsibilityassignments.ts +2 -2
- package/src/models/components/vendortargetfacility.ts +12 -0
- package/src/models/components/vendortargetfacilitystatuscounts.ts +53 -0
- package/src/models/operations/getvendortargetfacilities.ts +77 -7
- package/src/models/operations/updatevendorpaymentresponsibility.ts +2 -2
- package/src/react-query/vendorsGetVendorTargetFacilities.core.ts +12 -0
- package/src/react-query/vendorsGetVendorTargetFacilities.ts +22 -0
- package/src/react-query/vendorsUpdateVendorDetails.ts +5 -1
- package/src/sdk/vendors.ts +8 -1
|
@@ -7,26 +7,52 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as types from "../../types/primitives.js";
|
|
10
11
|
import * as components from "../components/index.js";
|
|
11
12
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
|
-
* Filters to target facilities with this status.
|
|
15
|
+
* Filters to target facilities with this status. `not_approved` matches every status other than `Approved`, including no status.
|
|
15
16
|
*/
|
|
16
17
|
export const GetVendorTargetFacilitiesQueryParamStatus = {
|
|
17
18
|
Pending: "pending",
|
|
18
19
|
Approved: "approved",
|
|
19
20
|
Denied: "denied",
|
|
21
|
+
NotApproved: "not_approved",
|
|
20
22
|
} as const;
|
|
21
23
|
/**
|
|
22
|
-
* Filters to target facilities with this status.
|
|
24
|
+
* Filters to target facilities with this status. `not_approved` matches every status other than `Approved`, including no status.
|
|
23
25
|
*/
|
|
24
26
|
export type GetVendorTargetFacilitiesQueryParamStatus = ClosedEnum<
|
|
25
27
|
typeof GetVendorTargetFacilitiesQueryParamStatus
|
|
26
28
|
>;
|
|
27
29
|
|
|
28
30
|
/**
|
|
29
|
-
*
|
|
31
|
+
* When `true`, leaves out target facilities whose facility is not active.
|
|
32
|
+
*/
|
|
33
|
+
export const ActiveFacilitiesOnly = {
|
|
34
|
+
True: "true",
|
|
35
|
+
False: "false",
|
|
36
|
+
} as const;
|
|
37
|
+
/**
|
|
38
|
+
* When `true`, leaves out target facilities whose facility is not active.
|
|
39
|
+
*/
|
|
40
|
+
export type ActiveFacilitiesOnly = ClosedEnum<typeof ActiveFacilitiesOnly>;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* When `true`, the response also includes `status_counts`.
|
|
44
|
+
*/
|
|
45
|
+
export const IncludeStatusCounts = {
|
|
46
|
+
True: "true",
|
|
47
|
+
False: "false",
|
|
48
|
+
} as const;
|
|
49
|
+
/**
|
|
50
|
+
* When `true`, the response also includes `status_counts`.
|
|
51
|
+
*/
|
|
52
|
+
export type IncludeStatusCounts = ClosedEnum<typeof IncludeStatusCounts>;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The field to sort results by. Defaults to `facility_name`. `not_approved_first` lists the systems with the most rows that are not approved first, then by system name; within a system it puts the rows that are not approved first, then sorts by facility name. `system_and_facility_name` sorts by system name, then by facility name, and lists facilities without a system last. Both ignore `desc`.
|
|
30
56
|
*/
|
|
31
57
|
export const GetVendorTargetFacilitiesQueryParamSort = {
|
|
32
58
|
FacilityName: "facility_name",
|
|
@@ -34,9 +60,11 @@ export const GetVendorTargetFacilitiesQueryParamSort = {
|
|
|
34
60
|
Status: "status",
|
|
35
61
|
QuestionsAnswered: "questions_answered",
|
|
36
62
|
DateCreated: "date_created",
|
|
63
|
+
NotApprovedFirst: "not_approved_first",
|
|
64
|
+
SystemAndFacilityName: "system_and_facility_name",
|
|
37
65
|
} as const;
|
|
38
66
|
/**
|
|
39
|
-
* The field to sort results by. Defaults to `facility_name`.
|
|
67
|
+
* The field to sort results by. Defaults to `facility_name`. `not_approved_first` lists the systems with the most rows that are not approved first, then by system name; within a system it puts the rows that are not approved first, then sorts by facility name. `system_and_facility_name` sorts by system name, then by facility name, and lists facilities without a system last. Both ignore `desc`.
|
|
40
68
|
*/
|
|
41
69
|
export type GetVendorTargetFacilitiesQueryParamSort = ClosedEnum<
|
|
42
70
|
typeof GetVendorTargetFacilitiesQueryParamSort
|
|
@@ -62,13 +90,25 @@ export type GetVendorTargetFacilitiesRequest = {
|
|
|
62
90
|
*/
|
|
63
91
|
systemNameLike?: string | undefined;
|
|
64
92
|
/**
|
|
65
|
-
* Search across facility name and system name.
|
|
93
|
+
* Search across facility name, street address, city, state (code or full name), ZIP code, and system name.
|
|
66
94
|
*/
|
|
67
95
|
searchLike?: string | undefined;
|
|
68
96
|
/**
|
|
69
|
-
* Filters to target facilities with this status.
|
|
97
|
+
* Filters to target facilities with this status. `not_approved` matches every status other than `Approved`, including no status.
|
|
70
98
|
*/
|
|
71
99
|
status?: GetVendorTargetFacilitiesQueryParamStatus | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* Filters to the target facility row of this facility.
|
|
102
|
+
*/
|
|
103
|
+
facilityId?: number | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* When `true`, leaves out target facilities whose facility is not active.
|
|
106
|
+
*/
|
|
107
|
+
activeFacilitiesOnly?: ActiveFacilitiesOnly | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* When `true`, the response also includes `status_counts`.
|
|
110
|
+
*/
|
|
111
|
+
includeStatusCounts?: IncludeStatusCounts | undefined;
|
|
72
112
|
/**
|
|
73
113
|
* The page number of results to return, starting at 1.
|
|
74
114
|
*/
|
|
@@ -78,7 +118,7 @@ export type GetVendorTargetFacilitiesRequest = {
|
|
|
78
118
|
*/
|
|
79
119
|
itemsPerPage?: number | undefined;
|
|
80
120
|
/**
|
|
81
|
-
* The field to sort results by. Defaults to `facility_name`.
|
|
121
|
+
* The field to sort results by. Defaults to `facility_name`. `not_approved_first` lists the systems with the most rows that are not approved first, then by system name; within a system it puts the rows that are not approved first, then sorts by facility name. `system_and_facility_name` sorts by system name, then by facility name, and lists facilities without a system last. Both ignore `desc`.
|
|
82
122
|
*/
|
|
83
123
|
sort?: GetVendorTargetFacilitiesQueryParamSort | undefined;
|
|
84
124
|
/**
|
|
@@ -100,6 +140,10 @@ export type GetVendorTargetFacilitiesGetVendorTargetFacilitiesOk = {
|
|
|
100
140
|
*/
|
|
101
141
|
pager: components.Pager;
|
|
102
142
|
items: Array<components.VendorTargetFacility>;
|
|
143
|
+
/**
|
|
144
|
+
* How many of a vendor's target facility rows are approved and not approved. Returned when you pass `include_status_counts=true`.
|
|
145
|
+
*/
|
|
146
|
+
statusCounts?: components.VendorTargetFacilityStatusCounts | undefined;
|
|
103
147
|
};
|
|
104
148
|
|
|
105
149
|
export type GetVendorTargetFacilitiesResponse = {
|
|
@@ -111,6 +155,16 @@ export const GetVendorTargetFacilitiesQueryParamStatus$outboundSchema:
|
|
|
111
155
|
z.ZodNativeEnum<typeof GetVendorTargetFacilitiesQueryParamStatus> = z
|
|
112
156
|
.nativeEnum(GetVendorTargetFacilitiesQueryParamStatus);
|
|
113
157
|
|
|
158
|
+
/** @internal */
|
|
159
|
+
export const ActiveFacilitiesOnly$outboundSchema: z.ZodNativeEnum<
|
|
160
|
+
typeof ActiveFacilitiesOnly
|
|
161
|
+
> = z.nativeEnum(ActiveFacilitiesOnly);
|
|
162
|
+
|
|
163
|
+
/** @internal */
|
|
164
|
+
export const IncludeStatusCounts$outboundSchema: z.ZodNativeEnum<
|
|
165
|
+
typeof IncludeStatusCounts
|
|
166
|
+
> = z.nativeEnum(IncludeStatusCounts);
|
|
167
|
+
|
|
114
168
|
/** @internal */
|
|
115
169
|
export const GetVendorTargetFacilitiesQueryParamSort$outboundSchema:
|
|
116
170
|
z.ZodNativeEnum<typeof GetVendorTargetFacilitiesQueryParamSort> = z
|
|
@@ -123,6 +177,9 @@ export type GetVendorTargetFacilitiesRequest$Outbound = {
|
|
|
123
177
|
system_name_like?: string | undefined;
|
|
124
178
|
search_like?: string | undefined;
|
|
125
179
|
status?: string | undefined;
|
|
180
|
+
facility_id?: number | undefined;
|
|
181
|
+
active_facilities_only?: string | undefined;
|
|
182
|
+
include_status_counts?: string | undefined;
|
|
126
183
|
page?: number | undefined;
|
|
127
184
|
items_per_page?: number | undefined;
|
|
128
185
|
sort?: string | undefined;
|
|
@@ -141,6 +198,9 @@ export const GetVendorTargetFacilitiesRequest$outboundSchema: z.ZodType<
|
|
|
141
198
|
systemNameLike: z.string().optional(),
|
|
142
199
|
searchLike: z.string().optional(),
|
|
143
200
|
status: GetVendorTargetFacilitiesQueryParamStatus$outboundSchema.optional(),
|
|
201
|
+
facilityId: z.number().int().optional(),
|
|
202
|
+
activeFacilitiesOnly: ActiveFacilitiesOnly$outboundSchema.optional(),
|
|
203
|
+
includeStatusCounts: IncludeStatusCounts$outboundSchema.optional(),
|
|
144
204
|
page: z.number().int().optional(),
|
|
145
205
|
itemsPerPage: z.number().int().optional(),
|
|
146
206
|
sort: GetVendorTargetFacilitiesQueryParamSort$outboundSchema.optional(),
|
|
@@ -152,6 +212,9 @@ export const GetVendorTargetFacilitiesRequest$outboundSchema: z.ZodType<
|
|
|
152
212
|
facilityNameLike: "facility_name_like",
|
|
153
213
|
systemNameLike: "system_name_like",
|
|
154
214
|
searchLike: "search_like",
|
|
215
|
+
facilityId: "facility_id",
|
|
216
|
+
activeFacilitiesOnly: "active_facilities_only",
|
|
217
|
+
includeStatusCounts: "include_status_counts",
|
|
155
218
|
itemsPerPage: "items_per_page",
|
|
156
219
|
});
|
|
157
220
|
});
|
|
@@ -175,6 +238,13 @@ export const GetVendorTargetFacilitiesGetVendorTargetFacilitiesOk$inboundSchema:
|
|
|
175
238
|
> = z.object({
|
|
176
239
|
pager: components.Pager$inboundSchema,
|
|
177
240
|
items: z.array(components.VendorTargetFacility$inboundSchema),
|
|
241
|
+
status_counts: types.optional(
|
|
242
|
+
components.VendorTargetFacilityStatusCounts$inboundSchema,
|
|
243
|
+
),
|
|
244
|
+
}).transform((v) => {
|
|
245
|
+
return remap$(v, {
|
|
246
|
+
"status_counts": "statusCounts",
|
|
247
|
+
});
|
|
178
248
|
});
|
|
179
249
|
|
|
180
250
|
export function getVendorTargetFacilitiesGetVendorTargetFacilitiesOkFromJSON(
|
|
@@ -19,11 +19,11 @@ export type UpdateVendorPaymentResponsibilityRequestBody = {
|
|
|
19
19
|
*/
|
|
20
20
|
credentialingSubscriptionUserId?: number | null | undefined;
|
|
21
21
|
/**
|
|
22
|
-
* User ID responsible for
|
|
22
|
+
* User ID responsible for Badges payments (a vendor's first hard badge). Pass `null` to reset responsibility to the vendor.
|
|
23
23
|
*/
|
|
24
24
|
hardBadgeInitialUserId?: number | null | undefined;
|
|
25
25
|
/**
|
|
26
|
-
* User ID responsible for
|
|
26
|
+
* User ID responsible for Replacement Badges payments (any hard badge after the first). Pass `null` to reset responsibility to the vendor.
|
|
27
27
|
*/
|
|
28
28
|
hardBadgeExtraUserId?: number | null | undefined;
|
|
29
29
|
/**
|
|
@@ -79,6 +79,9 @@ export function buildVendorsGetVendorTargetFacilitiesQuery(
|
|
|
79
79
|
systemNameLike: request.systemNameLike,
|
|
80
80
|
searchLike: request.searchLike,
|
|
81
81
|
status: request.status,
|
|
82
|
+
facilityId: request.facilityId,
|
|
83
|
+
activeFacilitiesOnly: request.activeFacilitiesOnly,
|
|
84
|
+
includeStatusCounts: request.includeStatusCounts,
|
|
82
85
|
page: request.page,
|
|
83
86
|
itemsPerPage: request.itemsPerPage,
|
|
84
87
|
sort: request.sort,
|
|
@@ -129,6 +132,9 @@ export function buildVendorsGetVendorTargetFacilitiesInfiniteQuery(
|
|
|
129
132
|
systemNameLike: request.systemNameLike,
|
|
130
133
|
searchLike: request.searchLike,
|
|
131
134
|
status: request.status,
|
|
135
|
+
facilityId: request.facilityId,
|
|
136
|
+
activeFacilitiesOnly: request.activeFacilitiesOnly,
|
|
137
|
+
includeStatusCounts: request.includeStatusCounts,
|
|
132
138
|
page: request.page,
|
|
133
139
|
itemsPerPage: request.itemsPerPage,
|
|
134
140
|
sort: request.sort,
|
|
@@ -177,6 +183,9 @@ export function queryKeyVendorsGetVendorTargetFacilities(
|
|
|
177
183
|
systemNameLike?: string | undefined;
|
|
178
184
|
searchLike?: string | undefined;
|
|
179
185
|
status?: operations.GetVendorTargetFacilitiesQueryParamStatus | undefined;
|
|
186
|
+
facilityId?: number | undefined;
|
|
187
|
+
activeFacilitiesOnly?: operations.ActiveFacilitiesOnly | undefined;
|
|
188
|
+
includeStatusCounts?: operations.IncludeStatusCounts | undefined;
|
|
180
189
|
page?: number | undefined;
|
|
181
190
|
itemsPerPage?: number | undefined;
|
|
182
191
|
sort?: operations.GetVendorTargetFacilitiesQueryParamSort | undefined;
|
|
@@ -200,6 +209,9 @@ export function queryKeyVendorsGetVendorTargetFacilitiesInfinite(
|
|
|
200
209
|
systemNameLike?: string | undefined;
|
|
201
210
|
searchLike?: string | undefined;
|
|
202
211
|
status?: operations.GetVendorTargetFacilitiesQueryParamStatus | undefined;
|
|
212
|
+
facilityId?: number | undefined;
|
|
213
|
+
activeFacilitiesOnly?: operations.ActiveFacilitiesOnly | undefined;
|
|
214
|
+
includeStatusCounts?: operations.IncludeStatusCounts | undefined;
|
|
203
215
|
page?: number | undefined;
|
|
204
216
|
itemsPerPage?: number | undefined;
|
|
205
217
|
sort?: operations.GetVendorTargetFacilitiesQueryParamSort | undefined;
|
|
@@ -83,8 +83,12 @@ export type VendorsGetVendorTargetFacilitiesQueryError =
|
|
|
83
83
|
*
|
|
84
84
|
* - `vendor_target_facility.facility`
|
|
85
85
|
* - `vendor_target_facility.has_screening_responses`
|
|
86
|
+
* - `vendor_target_facility.expiring_credential_count`
|
|
87
|
+
* - `vendor_target_facility.system_logo_url`
|
|
86
88
|
*
|
|
87
89
|
* The endpoint rejects any other value with `422 Unprocessable Entity`.
|
|
90
|
+
*
|
|
91
|
+
* Pass `include_status_counts=true` to also receive `status_counts`, the number of approved and not approved rows. The counts honor `active_facilities_only` and `facility_id`, and ignore the search, name, and status filters.
|
|
88
92
|
*/
|
|
89
93
|
export function useVendorsGetVendorTargetFacilities(
|
|
90
94
|
request: operations.GetVendorTargetFacilitiesRequest,
|
|
@@ -119,8 +123,12 @@ export function useVendorsGetVendorTargetFacilities(
|
|
|
119
123
|
*
|
|
120
124
|
* - `vendor_target_facility.facility`
|
|
121
125
|
* - `vendor_target_facility.has_screening_responses`
|
|
126
|
+
* - `vendor_target_facility.expiring_credential_count`
|
|
127
|
+
* - `vendor_target_facility.system_logo_url`
|
|
122
128
|
*
|
|
123
129
|
* The endpoint rejects any other value with `422 Unprocessable Entity`.
|
|
130
|
+
*
|
|
131
|
+
* Pass `include_status_counts=true` to also receive `status_counts`, the number of approved and not approved rows. The counts honor `active_facilities_only` and `facility_id`, and ignore the search, name, and status filters.
|
|
124
132
|
*/
|
|
125
133
|
export function useVendorsGetVendorTargetFacilitiesSuspense(
|
|
126
134
|
request: operations.GetVendorTargetFacilitiesRequest,
|
|
@@ -155,8 +163,12 @@ export function useVendorsGetVendorTargetFacilitiesSuspense(
|
|
|
155
163
|
*
|
|
156
164
|
* - `vendor_target_facility.facility`
|
|
157
165
|
* - `vendor_target_facility.has_screening_responses`
|
|
166
|
+
* - `vendor_target_facility.expiring_credential_count`
|
|
167
|
+
* - `vendor_target_facility.system_logo_url`
|
|
158
168
|
*
|
|
159
169
|
* The endpoint rejects any other value with `422 Unprocessable Entity`.
|
|
170
|
+
*
|
|
171
|
+
* Pass `include_status_counts=true` to also receive `status_counts`, the number of approved and not approved rows. The counts honor `active_facilities_only` and `facility_id`, and ignore the search, name, and status filters.
|
|
160
172
|
*/
|
|
161
173
|
export function useVendorsGetVendorTargetFacilitiesInfinite(
|
|
162
174
|
request: operations.GetVendorTargetFacilitiesRequest,
|
|
@@ -205,8 +217,12 @@ export function useVendorsGetVendorTargetFacilitiesInfinite(
|
|
|
205
217
|
*
|
|
206
218
|
* - `vendor_target_facility.facility`
|
|
207
219
|
* - `vendor_target_facility.has_screening_responses`
|
|
220
|
+
* - `vendor_target_facility.expiring_credential_count`
|
|
221
|
+
* - `vendor_target_facility.system_logo_url`
|
|
208
222
|
*
|
|
209
223
|
* The endpoint rejects any other value with `422 Unprocessable Entity`.
|
|
224
|
+
*
|
|
225
|
+
* Pass `include_status_counts=true` to also receive `status_counts`, the number of approved and not approved rows. The counts honor `active_facilities_only` and `facility_id`, and ignore the search, name, and status filters.
|
|
210
226
|
*/
|
|
211
227
|
export function useVendorsGetVendorTargetFacilitiesInfiniteSuspense(
|
|
212
228
|
request: operations.GetVendorTargetFacilitiesRequest,
|
|
@@ -252,6 +268,9 @@ export function setVendorsGetVendorTargetFacilitiesData(
|
|
|
252
268
|
systemNameLike?: string | undefined;
|
|
253
269
|
searchLike?: string | undefined;
|
|
254
270
|
status?: operations.GetVendorTargetFacilitiesQueryParamStatus | undefined;
|
|
271
|
+
facilityId?: number | undefined;
|
|
272
|
+
activeFacilitiesOnly?: operations.ActiveFacilitiesOnly | undefined;
|
|
273
|
+
includeStatusCounts?: operations.IncludeStatusCounts | undefined;
|
|
255
274
|
page?: number | undefined;
|
|
256
275
|
itemsPerPage?: number | undefined;
|
|
257
276
|
sort?: operations.GetVendorTargetFacilitiesQueryParamSort | undefined;
|
|
@@ -281,6 +300,9 @@ export function invalidateVendorsGetVendorTargetFacilities(
|
|
|
281
300
|
status?:
|
|
282
301
|
| operations.GetVendorTargetFacilitiesQueryParamStatus
|
|
283
302
|
| undefined;
|
|
303
|
+
facilityId?: number | undefined;
|
|
304
|
+
activeFacilitiesOnly?: operations.ActiveFacilitiesOnly | undefined;
|
|
305
|
+
includeStatusCounts?: operations.IncludeStatusCounts | undefined;
|
|
284
306
|
page?: number | undefined;
|
|
285
307
|
itemsPerPage?: number | undefined;
|
|
286
308
|
sort?: operations.GetVendorTargetFacilitiesQueryParamSort | undefined;
|
|
@@ -36,6 +36,7 @@ export type VendorsUpdateVendorDetailsMutationData = boolean;
|
|
|
36
36
|
|
|
37
37
|
export type VendorsUpdateVendorDetailsMutationError =
|
|
38
38
|
| errors.ApiErrorResponse
|
|
39
|
+
| errors.UnprocessableEntityOrValidationError
|
|
39
40
|
| GreenSecurityError
|
|
40
41
|
| ResponseValidationError
|
|
41
42
|
| ConnectionError
|
|
@@ -54,12 +55,15 @@ export type VendorsUpdateVendorDetailsMutationError =
|
|
|
54
55
|
* can also remove the vendor from their company by sending `company_id: null`.
|
|
55
56
|
*
|
|
56
57
|
* From `location` this endpoint reads only `timezone`, `address1`, `address2`,
|
|
57
|
-
* `city`, `state`, `zip`, `phone`, `mobile_phone` and `
|
|
58
|
+
* `city`, `state`, `zip`, `phone`, `mobile_phone`, `fax` and `personal_email`. The `address` and
|
|
58
59
|
* `country` properties of the shared `UserLocation` schema have no effect here, and
|
|
59
60
|
* updating them is not supported. `state` accepts a US state or a Canadian
|
|
60
61
|
* province—the vendor's country, set only at registration, is not editable
|
|
61
62
|
* through this endpoint.
|
|
62
63
|
*
|
|
64
|
+
* `location.personal_email` is stored lowercased, and a value that is not a valid
|
|
65
|
+
* email address, or is longer than 255 characters, gets a `422` response.
|
|
66
|
+
*
|
|
63
67
|
* Submitting `location.zip` or `location.state` cross-checks the postal code
|
|
64
68
|
* against the resulting state (using the vendor's existing value for whichever
|
|
65
69
|
* of the two you omit from the request). The server rejects a code that is not shaped like a real
|
package/src/sdk/vendors.ts
CHANGED
|
@@ -1026,12 +1026,15 @@ export class Vendors extends ClientSDK {
|
|
|
1026
1026
|
* can also remove the vendor from their company by sending `company_id: null`.
|
|
1027
1027
|
*
|
|
1028
1028
|
* From `location` this endpoint reads only `timezone`, `address1`, `address2`,
|
|
1029
|
-
* `city`, `state`, `zip`, `phone`, `mobile_phone` and `
|
|
1029
|
+
* `city`, `state`, `zip`, `phone`, `mobile_phone`, `fax` and `personal_email`. The `address` and
|
|
1030
1030
|
* `country` properties of the shared `UserLocation` schema have no effect here, and
|
|
1031
1031
|
* updating them is not supported. `state` accepts a US state or a Canadian
|
|
1032
1032
|
* province—the vendor's country, set only at registration, is not editable
|
|
1033
1033
|
* through this endpoint.
|
|
1034
1034
|
*
|
|
1035
|
+
* `location.personal_email` is stored lowercased, and a value that is not a valid
|
|
1036
|
+
* email address, or is longer than 255 characters, gets a `422` response.
|
|
1037
|
+
*
|
|
1035
1038
|
* Submitting `location.zip` or `location.state` cross-checks the postal code
|
|
1036
1039
|
* against the resulting state (using the vendor's existing value for whichever
|
|
1037
1040
|
* of the two you omit from the request). The server rejects a code that is not shaped like a real
|
|
@@ -1503,8 +1506,12 @@ export class Vendors extends ClientSDK {
|
|
|
1503
1506
|
*
|
|
1504
1507
|
* - `vendor_target_facility.facility`
|
|
1505
1508
|
* - `vendor_target_facility.has_screening_responses`
|
|
1509
|
+
* - `vendor_target_facility.expiring_credential_count`
|
|
1510
|
+
* - `vendor_target_facility.system_logo_url`
|
|
1506
1511
|
*
|
|
1507
1512
|
* The endpoint rejects any other value with `422 Unprocessable Entity`.
|
|
1513
|
+
*
|
|
1514
|
+
* Pass `include_status_counts=true` to also receive `status_counts`, the number of approved and not approved rows. The counts honor `active_facilities_only` and `facility_id`, and ignore the search, name, and status filters.
|
|
1508
1515
|
*/
|
|
1509
1516
|
async getVendorTargetFacilities(
|
|
1510
1517
|
request: operations.GetVendorTargetFacilitiesRequest,
|