@greensecurity/javascript-sdk 0.18.2 → 0.19.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 +3 -0
- package/bin/mcp-server.js +290 -41
- package/bin/mcp-server.js.map +30 -26
- package/funcs/vendorsListVendorFacilityStatuses.d.ts +20 -0
- package/funcs/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
- package/funcs/vendorsListVendorFacilityStatuses.js +154 -0
- package/funcs/vendorsListVendorFacilityStatuses.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +2 -8
- package/lib/sdks.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/organizationsGetFacility.js +1 -1
- package/mcp-server/tools/organizationsListOrSearchFacilities.js +1 -1
- package/mcp-server/tools/supportArticlesGetSupportArticle.js +1 -1
- package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js +1 -1
- package/mcp-server/tools/usersGetCurrentUser.js +1 -1
- package/mcp-server/tools/usersGetUserById.js +1 -1
- package/mcp-server/tools/usersLogsUserIntoTheSystem.js +1 -1
- package/mcp-server/tools/usersMagiclink.js +1 -1
- package/mcp-server/tools/usersPassword.js +1 -1
- package/mcp-server/tools/usersPasswordResetRequest.js +1 -1
- package/mcp-server/tools/vendorsCreateVendorRegistration.js +1 -1
- package/mcp-server/tools/vendorsExpediteTimeRemaining.js +1 -1
- package/mcp-server/tools/vendorsGetVendorInvoiceDetails.js +1 -1
- package/mcp-server/tools/vendorsListVendorCredentials.js +1 -1
- package/mcp-server/tools/vendorsListVendorFacilityStatuses.d.ts +8 -0
- package/mcp-server/tools/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
- package/mcp-server/tools/vendorsListVendorFacilityStatuses.js +64 -0
- package/mcp-server/tools/vendorsListVendorFacilityStatuses.js.map +1 -0
- package/mcp-server/tools/vendorsListVendorInvoices.js +1 -1
- package/mcp-server/tools/vendorsListVendorJobTitles.js +1 -1
- package/mcp-server/tools.d.ts.map +1 -1
- package/mcp-server/tools.js +3 -0
- package/mcp-server/tools.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/vendorfacilitystatusview.d.ts +42 -0
- package/models/components/vendorfacilitystatusview.d.ts.map +1 -0
- package/models/components/vendorfacilitystatusview.js +98 -0
- package/models/components/vendorfacilitystatusview.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listvendorfacilitystatuses.d.ts +106 -0
- package/models/operations/listvendorfacilitystatuses.d.ts.map +1 -0
- package/models/operations/listvendorfacilitystatuses.js +149 -0
- package/models/operations/listvendorfacilitystatuses.js.map +1 -0
- package/package.json +1 -1
- package/react-query/index.d.ts +1 -0
- package/react-query/index.d.ts.map +1 -1
- package/react-query/index.js +1 -0
- package/react-query/index.js.map +1 -1
- package/react-query/vendorsListVendorFacilityStatuses.d.ts +75 -0
- package/react-query/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
- package/react-query/vendorsListVendorFacilityStatuses.js +159 -0
- package/react-query/vendorsListVendorFacilityStatuses.js.map +1 -0
- package/sdk/vendors.d.ts +9 -0
- package/sdk/vendors.d.ts.map +1 -1
- package/sdk/vendors.js +10 -0
- package/sdk/vendors.js.map +1 -1
- package/src/__tests__/vendors.test.ts +35 -0
- package/src/funcs/vendorsListVendorFacilityStatuses.ts +240 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +2 -7
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/organizationsGetFacility.ts +1 -1
- package/src/mcp-server/tools/organizationsListOrSearchFacilities.ts +1 -1
- package/src/mcp-server/tools/supportArticlesGetSupportArticle.ts +1 -1
- package/src/mcp-server/tools/supportArticlesListOrSearchSupportArticles.ts +1 -1
- package/src/mcp-server/tools/usersGetCurrentUser.ts +1 -1
- package/src/mcp-server/tools/usersGetUserById.ts +1 -1
- package/src/mcp-server/tools/usersLogsUserIntoTheSystem.ts +1 -1
- package/src/mcp-server/tools/usersMagiclink.ts +1 -1
- package/src/mcp-server/tools/usersPassword.ts +1 -1
- package/src/mcp-server/tools/usersPasswordResetRequest.ts +1 -1
- package/src/mcp-server/tools/vendorsCreateVendorRegistration.ts +1 -1
- package/src/mcp-server/tools/vendorsExpediteTimeRemaining.ts +1 -1
- package/src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts +1 -1
- package/src/mcp-server/tools/vendorsListVendorCredentials.ts +1 -1
- package/src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts +39 -0
- package/src/mcp-server/tools/vendorsListVendorInvoices.ts +1 -1
- package/src/mcp-server/tools/vendorsListVendorJobTitles.ts +1 -1
- package/src/mcp-server/tools.ts +4 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/vendorfacilitystatusview.ts +108 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listvendorfacilitystatuses.ts +247 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/vendorsListVendorFacilityStatuses.ts +342 -0
- package/src/sdk/vendors.ts +23 -0
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
InfiniteData,
|
|
7
|
+
InvalidateQueryFilters,
|
|
8
|
+
QueryClient,
|
|
9
|
+
QueryFunctionContext,
|
|
10
|
+
QueryKey,
|
|
11
|
+
useInfiniteQuery,
|
|
12
|
+
UseInfiniteQueryResult,
|
|
13
|
+
useQuery,
|
|
14
|
+
UseQueryResult,
|
|
15
|
+
useSuspenseInfiniteQuery,
|
|
16
|
+
UseSuspenseInfiniteQueryResult,
|
|
17
|
+
useSuspenseQuery,
|
|
18
|
+
UseSuspenseQueryResult,
|
|
19
|
+
} from "@tanstack/react-query";
|
|
20
|
+
import { GreenSecurityCore } from "../core.js";
|
|
21
|
+
import { vendorsListVendorFacilityStatuses } from "../funcs/vendorsListVendorFacilityStatuses.js";
|
|
22
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
23
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
24
|
+
import * as components from "../models/components/index.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
27
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
28
|
+
import { useGreenSecurityContext } from "./_context.js";
|
|
29
|
+
import {
|
|
30
|
+
InfiniteQueryHookOptions,
|
|
31
|
+
QueryHookOptions,
|
|
32
|
+
SuspenseInfiniteQueryHookOptions,
|
|
33
|
+
SuspenseQueryHookOptions,
|
|
34
|
+
TupleToPrefixes,
|
|
35
|
+
} from "./_types.js";
|
|
36
|
+
|
|
37
|
+
export type VendorsListVendorFacilityStatusesQueryData =
|
|
38
|
+
operations.ListVendorFacilityStatusesResponse;
|
|
39
|
+
|
|
40
|
+
export type VendorsListVendorFacilityStatusesInfiniteQueryData = PageIterator<
|
|
41
|
+
operations.ListVendorFacilityStatusesResponse,
|
|
42
|
+
{ page: number }
|
|
43
|
+
>;
|
|
44
|
+
|
|
45
|
+
export type VendorsListVendorFacilityStatusesPageParams = PageIterator<
|
|
46
|
+
operations.ListVendorFacilityStatusesResponse,
|
|
47
|
+
{ page: number }
|
|
48
|
+
>["~next"];
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* List vendor facility statuses
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* List the facilities for the vendor
|
|
55
|
+
*/
|
|
56
|
+
export function useVendorsListVendorFacilityStatuses(
|
|
57
|
+
request: operations.ListVendorFacilityStatusesRequest,
|
|
58
|
+
options?: QueryHookOptions<VendorsListVendorFacilityStatusesQueryData>,
|
|
59
|
+
): UseQueryResult<VendorsListVendorFacilityStatusesQueryData, Error> {
|
|
60
|
+
const client = useGreenSecurityContext();
|
|
61
|
+
return useQuery({
|
|
62
|
+
...buildVendorsListVendorFacilityStatusesQuery(
|
|
63
|
+
client,
|
|
64
|
+
request,
|
|
65
|
+
options,
|
|
66
|
+
),
|
|
67
|
+
...options,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* List vendor facility statuses
|
|
73
|
+
*
|
|
74
|
+
* @remarks
|
|
75
|
+
* List the facilities for the vendor
|
|
76
|
+
*/
|
|
77
|
+
export function useVendorsListVendorFacilityStatusesSuspense(
|
|
78
|
+
request: operations.ListVendorFacilityStatusesRequest,
|
|
79
|
+
options?: SuspenseQueryHookOptions<
|
|
80
|
+
VendorsListVendorFacilityStatusesQueryData
|
|
81
|
+
>,
|
|
82
|
+
): UseSuspenseQueryResult<VendorsListVendorFacilityStatusesQueryData, Error> {
|
|
83
|
+
const client = useGreenSecurityContext();
|
|
84
|
+
return useSuspenseQuery({
|
|
85
|
+
...buildVendorsListVendorFacilityStatusesQuery(
|
|
86
|
+
client,
|
|
87
|
+
request,
|
|
88
|
+
options,
|
|
89
|
+
),
|
|
90
|
+
...options,
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* List vendor facility statuses
|
|
96
|
+
*
|
|
97
|
+
* @remarks
|
|
98
|
+
* List the facilities for the vendor
|
|
99
|
+
*/
|
|
100
|
+
export function useVendorsListVendorFacilityStatusesInfinite(
|
|
101
|
+
request: operations.ListVendorFacilityStatusesRequest,
|
|
102
|
+
options?: InfiniteQueryHookOptions<
|
|
103
|
+
VendorsListVendorFacilityStatusesInfiniteQueryData
|
|
104
|
+
>,
|
|
105
|
+
): UseInfiniteQueryResult<
|
|
106
|
+
InfiniteData<
|
|
107
|
+
VendorsListVendorFacilityStatusesInfiniteQueryData,
|
|
108
|
+
VendorsListVendorFacilityStatusesPageParams
|
|
109
|
+
>,
|
|
110
|
+
Error
|
|
111
|
+
> {
|
|
112
|
+
const client = useGreenSecurityContext();
|
|
113
|
+
return useInfiniteQuery<
|
|
114
|
+
VendorsListVendorFacilityStatusesInfiniteQueryData,
|
|
115
|
+
Error,
|
|
116
|
+
InfiniteData<
|
|
117
|
+
VendorsListVendorFacilityStatusesInfiniteQueryData,
|
|
118
|
+
VendorsListVendorFacilityStatusesPageParams
|
|
119
|
+
>,
|
|
120
|
+
QueryKey,
|
|
121
|
+
VendorsListVendorFacilityStatusesPageParams
|
|
122
|
+
>({
|
|
123
|
+
...buildVendorsListVendorFacilityStatusesInfiniteQuery(
|
|
124
|
+
client,
|
|
125
|
+
request,
|
|
126
|
+
options,
|
|
127
|
+
),
|
|
128
|
+
initialPageParam: options?.initialPageParam,
|
|
129
|
+
getNextPageParam: (previousPage) => previousPage["~next"],
|
|
130
|
+
...options,
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* List vendor facility statuses
|
|
136
|
+
*
|
|
137
|
+
* @remarks
|
|
138
|
+
* List the facilities for the vendor
|
|
139
|
+
*/
|
|
140
|
+
export function useVendorsListVendorFacilityStatusesInfiniteSuspense(
|
|
141
|
+
request: operations.ListVendorFacilityStatusesRequest,
|
|
142
|
+
options?: SuspenseInfiniteQueryHookOptions<
|
|
143
|
+
VendorsListVendorFacilityStatusesInfiniteQueryData
|
|
144
|
+
>,
|
|
145
|
+
): UseSuspenseInfiniteQueryResult<
|
|
146
|
+
InfiniteData<
|
|
147
|
+
VendorsListVendorFacilityStatusesInfiniteQueryData,
|
|
148
|
+
VendorsListVendorFacilityStatusesPageParams
|
|
149
|
+
>,
|
|
150
|
+
Error
|
|
151
|
+
> {
|
|
152
|
+
const client = useGreenSecurityContext();
|
|
153
|
+
return useSuspenseInfiniteQuery<
|
|
154
|
+
VendorsListVendorFacilityStatusesInfiniteQueryData,
|
|
155
|
+
Error,
|
|
156
|
+
InfiniteData<
|
|
157
|
+
VendorsListVendorFacilityStatusesInfiniteQueryData,
|
|
158
|
+
VendorsListVendorFacilityStatusesPageParams
|
|
159
|
+
>,
|
|
160
|
+
QueryKey,
|
|
161
|
+
VendorsListVendorFacilityStatusesPageParams
|
|
162
|
+
>({
|
|
163
|
+
...buildVendorsListVendorFacilityStatusesInfiniteQuery(
|
|
164
|
+
client,
|
|
165
|
+
request,
|
|
166
|
+
options,
|
|
167
|
+
),
|
|
168
|
+
initialPageParam: options?.initialPageParam,
|
|
169
|
+
getNextPageParam: (previousPage) => previousPage["~next"],
|
|
170
|
+
...options,
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function prefetchVendorsListVendorFacilityStatuses(
|
|
175
|
+
queryClient: QueryClient,
|
|
176
|
+
client$: GreenSecurityCore,
|
|
177
|
+
request: operations.ListVendorFacilityStatusesRequest,
|
|
178
|
+
): Promise<void> {
|
|
179
|
+
return queryClient.prefetchQuery({
|
|
180
|
+
...buildVendorsListVendorFacilityStatusesQuery(
|
|
181
|
+
client$,
|
|
182
|
+
request,
|
|
183
|
+
),
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export function setVendorsListVendorFacilityStatusesData(
|
|
188
|
+
client: QueryClient,
|
|
189
|
+
queryKeyBase: [
|
|
190
|
+
parameters: {
|
|
191
|
+
sort?: string | null | undefined;
|
|
192
|
+
desc?: components.Desc | undefined;
|
|
193
|
+
page?: number | undefined;
|
|
194
|
+
itemsPerPage?: number | undefined;
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
data: VendorsListVendorFacilityStatusesQueryData,
|
|
198
|
+
): VendorsListVendorFacilityStatusesQueryData | undefined {
|
|
199
|
+
const key = queryKeyVendorsListVendorFacilityStatuses(...queryKeyBase);
|
|
200
|
+
|
|
201
|
+
return client.setQueryData<VendorsListVendorFacilityStatusesQueryData>(
|
|
202
|
+
key,
|
|
203
|
+
data,
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export function invalidateVendorsListVendorFacilityStatuses(
|
|
208
|
+
client: QueryClient,
|
|
209
|
+
queryKeyBase: TupleToPrefixes<
|
|
210
|
+
[parameters: {
|
|
211
|
+
sort?: string | null | undefined;
|
|
212
|
+
desc?: components.Desc | undefined;
|
|
213
|
+
page?: number | undefined;
|
|
214
|
+
itemsPerPage?: number | undefined;
|
|
215
|
+
}]
|
|
216
|
+
>,
|
|
217
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
218
|
+
): Promise<void> {
|
|
219
|
+
return client.invalidateQueries({
|
|
220
|
+
...filters,
|
|
221
|
+
queryKey: [
|
|
222
|
+
"@greensecurity/javascript-sdk",
|
|
223
|
+
"vendors",
|
|
224
|
+
"listVendorFacilityStatuses",
|
|
225
|
+
...queryKeyBase,
|
|
226
|
+
],
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export function invalidateAllVendorsListVendorFacilityStatuses(
|
|
231
|
+
client: QueryClient,
|
|
232
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
233
|
+
): Promise<void> {
|
|
234
|
+
return client.invalidateQueries({
|
|
235
|
+
...filters,
|
|
236
|
+
queryKey: [
|
|
237
|
+
"@greensecurity/javascript-sdk",
|
|
238
|
+
"vendors",
|
|
239
|
+
"listVendorFacilityStatuses",
|
|
240
|
+
],
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export function buildVendorsListVendorFacilityStatusesQuery(
|
|
245
|
+
client$: GreenSecurityCore,
|
|
246
|
+
request: operations.ListVendorFacilityStatusesRequest,
|
|
247
|
+
options?: RequestOptions,
|
|
248
|
+
): {
|
|
249
|
+
queryKey: QueryKey;
|
|
250
|
+
queryFn: (
|
|
251
|
+
context: QueryFunctionContext,
|
|
252
|
+
) => Promise<VendorsListVendorFacilityStatusesQueryData>;
|
|
253
|
+
} {
|
|
254
|
+
return {
|
|
255
|
+
queryKey: queryKeyVendorsListVendorFacilityStatuses({
|
|
256
|
+
sort: request.sort,
|
|
257
|
+
desc: request.desc,
|
|
258
|
+
page: request.page,
|
|
259
|
+
itemsPerPage: request.itemsPerPage,
|
|
260
|
+
}),
|
|
261
|
+
queryFn: async function vendorsListVendorFacilityStatusesQueryFn(
|
|
262
|
+
ctx,
|
|
263
|
+
): Promise<VendorsListVendorFacilityStatusesQueryData> {
|
|
264
|
+
const sig = combineSignals(ctx.signal, options?.fetchOptions?.signal);
|
|
265
|
+
const mergedOptions = {
|
|
266
|
+
...options,
|
|
267
|
+
fetchOptions: { ...options?.fetchOptions, signal: sig },
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
return unwrapAsync(vendorsListVendorFacilityStatuses(
|
|
271
|
+
client$,
|
|
272
|
+
request,
|
|
273
|
+
mergedOptions,
|
|
274
|
+
));
|
|
275
|
+
},
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export function buildVendorsListVendorFacilityStatusesInfiniteQuery(
|
|
280
|
+
client$: GreenSecurityCore,
|
|
281
|
+
request: operations.ListVendorFacilityStatusesRequest,
|
|
282
|
+
options?: RequestOptions,
|
|
283
|
+
): {
|
|
284
|
+
queryKey: QueryKey;
|
|
285
|
+
queryFn: (
|
|
286
|
+
context: QueryFunctionContext<
|
|
287
|
+
QueryKey,
|
|
288
|
+
VendorsListVendorFacilityStatusesPageParams
|
|
289
|
+
>,
|
|
290
|
+
) => Promise<VendorsListVendorFacilityStatusesInfiniteQueryData>;
|
|
291
|
+
} {
|
|
292
|
+
return {
|
|
293
|
+
queryKey: queryKeyVendorsListVendorFacilityStatuses({
|
|
294
|
+
sort: request.sort,
|
|
295
|
+
desc: request.desc,
|
|
296
|
+
page: request.page,
|
|
297
|
+
itemsPerPage: request.itemsPerPage,
|
|
298
|
+
}),
|
|
299
|
+
queryFn: async function vendorsListVendorFacilityStatusesQuery(
|
|
300
|
+
ctx,
|
|
301
|
+
): Promise<VendorsListVendorFacilityStatusesInfiniteQueryData> {
|
|
302
|
+
const sig = combineSignals(ctx.signal, options?.fetchOptions?.signal);
|
|
303
|
+
const mergedOptions = {
|
|
304
|
+
...options,
|
|
305
|
+
fetchOptions: { ...options?.fetchOptions, signal: sig },
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
if (!ctx.pageParam) {
|
|
309
|
+
return unwrapResultIterator(vendorsListVendorFacilityStatuses(
|
|
310
|
+
client$,
|
|
311
|
+
request,
|
|
312
|
+
mergedOptions,
|
|
313
|
+
));
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
return unwrapResultIterator(vendorsListVendorFacilityStatuses(
|
|
317
|
+
client$,
|
|
318
|
+
{
|
|
319
|
+
...request,
|
|
320
|
+
page: ctx.pageParam.page,
|
|
321
|
+
},
|
|
322
|
+
mergedOptions,
|
|
323
|
+
));
|
|
324
|
+
},
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export function queryKeyVendorsListVendorFacilityStatuses(
|
|
329
|
+
parameters: {
|
|
330
|
+
sort?: string | null | undefined;
|
|
331
|
+
desc?: components.Desc | undefined;
|
|
332
|
+
page?: number | undefined;
|
|
333
|
+
itemsPerPage?: number | undefined;
|
|
334
|
+
},
|
|
335
|
+
): QueryKey {
|
|
336
|
+
return [
|
|
337
|
+
"@greensecurity/javascript-sdk",
|
|
338
|
+
"vendors",
|
|
339
|
+
"listVendorFacilityStatuses",
|
|
340
|
+
parameters,
|
|
341
|
+
];
|
|
342
|
+
}
|
package/src/sdk/vendors.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { vendorsCreateVendorRegistration } from "../funcs/vendorsCreateVendorReg
|
|
|
6
6
|
import { vendorsExpediteTimeRemaining } from "../funcs/vendorsExpediteTimeRemaining.js";
|
|
7
7
|
import { vendorsGetVendorInvoiceDetails } from "../funcs/vendorsGetVendorInvoiceDetails.js";
|
|
8
8
|
import { vendorsListVendorCredentials } from "../funcs/vendorsListVendorCredentials.js";
|
|
9
|
+
import { vendorsListVendorFacilityStatuses } from "../funcs/vendorsListVendorFacilityStatuses.js";
|
|
9
10
|
import { vendorsListVendorInvoices } from "../funcs/vendorsListVendorInvoices.js";
|
|
10
11
|
import { vendorsListVendorJobTitles } from "../funcs/vendorsListVendorJobTitles.js";
|
|
11
12
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
@@ -131,4 +132,26 @@ export class Vendors extends ClientSDK {
|
|
|
131
132
|
options,
|
|
132
133
|
));
|
|
133
134
|
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* List vendor facility statuses
|
|
138
|
+
*
|
|
139
|
+
* @remarks
|
|
140
|
+
* List the facilities for the vendor
|
|
141
|
+
*/
|
|
142
|
+
async listVendorFacilityStatuses(
|
|
143
|
+
request: operations.ListVendorFacilityStatusesRequest,
|
|
144
|
+
options?: RequestOptions,
|
|
145
|
+
): Promise<
|
|
146
|
+
PageIterator<
|
|
147
|
+
operations.ListVendorFacilityStatusesResponse,
|
|
148
|
+
{ page: number }
|
|
149
|
+
>
|
|
150
|
+
> {
|
|
151
|
+
return unwrapResultIterator(vendorsListVendorFacilityStatuses(
|
|
152
|
+
this,
|
|
153
|
+
request,
|
|
154
|
+
options,
|
|
155
|
+
));
|
|
156
|
+
}
|
|
134
157
|
}
|