@greensecurity/javascript-sdk 0.37.12 → 0.38.2
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 +6 -0
- package/bin/mcp-server.js +858 -436
- package/bin/mcp-server.js.map +18 -10
- package/dist/commonjs/__tests__/organizations.test.js +42 -0
- package/dist/commonjs/__tests__/organizations.test.js.map +1 -1
- package/dist/commonjs/__tests__/vendors.test.js +16 -0
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +4 -19
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/organizationsListOrSearchDepartmentContacts.d.ts +26 -0
- package/dist/commonjs/funcs/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/commonjs/funcs/organizationsListOrSearchDepartmentContacts.js +168 -0
- package/dist/commonjs/funcs/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceReceipt.d.ts +18 -0
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceReceipt.js +125 -0
- package/dist/commonjs/funcs/vendorsGetVendorInvoiceReceipt.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js.map +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +5 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/organizationsListOrSearchDepartmentContacts.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/organizationsListOrSearchDepartmentContacts.js +69 -0
- package/dist/commonjs/mcp-server/tools/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorInvoiceReceipt.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorInvoiceReceipt.js +64 -0
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorInvoiceReceipt.js.map +1 -0
- package/dist/commonjs/models/components/contact.d.ts +30 -4
- package/dist/commonjs/models/components/contact.d.ts.map +1 -1
- package/dist/commonjs/models/components/contact.js +35 -5
- package/dist/commonjs/models/components/contact.js.map +1 -1
- package/dist/commonjs/models/components/departmentmembership.d.ts +80 -0
- package/dist/commonjs/models/components/departmentmembership.d.ts.map +1 -0
- package/dist/commonjs/models/components/departmentmembership.js +123 -0
- package/dist/commonjs/models/components/departmentmembership.js.map +1 -0
- package/dist/commonjs/models/components/expand.d.ts +6 -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 +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/usersummary.d.ts +34 -0
- package/dist/commonjs/models/components/usersummary.d.ts.map +1 -0
- package/dist/commonjs/models/components/usersummary.js +71 -0
- package/dist/commonjs/models/components/usersummary.js.map +1 -0
- package/dist/commonjs/models/operations/getvendorinvoicereceipt.d.ts +32 -0
- package/dist/commonjs/models/operations/getvendorinvoicereceipt.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getvendorinvoicereceipt.js +69 -0
- package/dist/commonjs/models/operations/getvendorinvoicereceipt.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listorsearchdepartmentcontacts.d.ts +121 -0
- package/dist/commonjs/models/operations/listorsearchdepartmentcontacts.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listorsearchdepartmentcontacts.js +155 -0
- package/dist/commonjs/models/operations/listorsearchdepartmentcontacts.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +2 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +2 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/organizationsListOrSearchDepartmentContacts.d.ts +103 -0
- package/dist/commonjs/react-query/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/commonjs/react-query/organizationsListOrSearchDepartmentContacts.js +184 -0
- package/dist/commonjs/react-query/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.d.ts +30 -0
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.js +96 -0
- package/dist/commonjs/react-query/vendorsGetVendorInvoiceReceipt.js.map +1 -0
- package/dist/commonjs/sdk/organizations.d.ts +14 -0
- package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
- package/dist/commonjs/sdk/organizations.js +15 -0
- package/dist/commonjs/sdk/organizations.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +7 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +10 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/organizations.test.js +42 -0
- package/dist/esm/__tests__/organizations.test.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +16 -0
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +4 -19
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/organizationsListOrSearchDepartmentContacts.d.ts +26 -0
- package/dist/esm/funcs/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/esm/funcs/organizationsListOrSearchDepartmentContacts.js +132 -0
- package/dist/esm/funcs/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorInvoiceReceipt.d.ts +18 -0
- package/dist/esm/funcs/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorInvoiceReceipt.js +89 -0
- package/dist/esm/funcs/vendorsGetVendorInvoiceReceipt.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/mcp-server.js.map +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +5 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/organizationsListOrSearchDepartmentContacts.d.ts +8 -0
- package/dist/esm/mcp-server/tools/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/organizationsListOrSearchDepartmentContacts.js +33 -0
- package/dist/esm/mcp-server/tools/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorInvoiceReceipt.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorInvoiceReceipt.js +28 -0
- package/dist/esm/mcp-server/tools/vendorsGetVendorInvoiceReceipt.js.map +1 -0
- package/dist/esm/models/components/contact.d.ts +30 -4
- package/dist/esm/models/components/contact.d.ts.map +1 -1
- package/dist/esm/models/components/contact.js +32 -4
- package/dist/esm/models/components/contact.js.map +1 -1
- package/dist/esm/models/components/departmentmembership.d.ts +80 -0
- package/dist/esm/models/components/departmentmembership.d.ts.map +1 -0
- package/dist/esm/models/components/departmentmembership.js +81 -0
- package/dist/esm/models/components/departmentmembership.js.map +1 -0
- package/dist/esm/models/components/expand.d.ts +6 -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 +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/usersummary.d.ts +34 -0
- package/dist/esm/models/components/usersummary.d.ts.map +1 -0
- package/dist/esm/models/components/usersummary.js +33 -0
- package/dist/esm/models/components/usersummary.js.map +1 -0
- package/dist/esm/models/operations/getvendorinvoicereceipt.d.ts +32 -0
- package/dist/esm/models/operations/getvendorinvoicereceipt.d.ts.map +1 -0
- package/dist/esm/models/operations/getvendorinvoicereceipt.js +31 -0
- package/dist/esm/models/operations/getvendorinvoicereceipt.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listorsearchdepartmentcontacts.d.ts +121 -0
- package/dist/esm/models/operations/listorsearchdepartmentcontacts.d.ts.map +1 -0
- package/dist/esm/models/operations/listorsearchdepartmentcontacts.js +113 -0
- package/dist/esm/models/operations/listorsearchdepartmentcontacts.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +2 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +2 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/organizationsListOrSearchDepartmentContacts.d.ts +103 -0
- package/dist/esm/react-query/organizationsListOrSearchDepartmentContacts.d.ts.map +1 -0
- package/dist/esm/react-query/organizationsListOrSearchDepartmentContacts.js +171 -0
- package/dist/esm/react-query/organizationsListOrSearchDepartmentContacts.js.map +1 -0
- package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.d.ts +30 -0
- package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.js +86 -0
- package/dist/esm/react-query/vendorsGetVendorInvoiceReceipt.js.map +1 -0
- package/dist/esm/sdk/organizations.d.ts +14 -0
- package/dist/esm/sdk/organizations.d.ts.map +1 -1
- package/dist/esm/sdk/organizations.js +15 -0
- package/dist/esm/sdk/organizations.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +7 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +10 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/examples/vendorsCreateVendorRegistration.example.ts +2 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/organizations.test.ts +45 -0
- package/src/__tests__/vendors.test.ts +21 -0
- package/src/__tests__/zones.test.ts +4 -19
- package/src/funcs/organizationsListOrSearchDepartmentContacts.ts +270 -0
- package/src/funcs/vendorsGetVendorInvoiceReceipt.ts +179 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/organizationsListOrSearchDepartmentContacts.ts +44 -0
- package/src/mcp-server/tools/vendorsGetVendorInvoiceReceipt.ts +38 -0
- package/src/models/components/contact.ts +74 -8
- package/src/models/components/departmentmembership.ts +201 -0
- package/src/models/components/expand.ts +2 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/usersummary.ts +69 -0
- package/src/models/operations/getvendorinvoicereceipt.ts +71 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listorsearchdepartmentcontacts.ts +280 -0
- package/src/react-query/index.ts +2 -0
- package/src/react-query/organizationsListOrSearchDepartmentContacts.ts +386 -0
- package/src/react-query/vendorsGetVendorInvoiceReceipt.ts +167 -0
- package/src/sdk/organizations.ts +28 -0
- package/src/sdk/vendors.ts +18 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
InvalidateQueryFilters,
|
|
7
|
+
QueryClient,
|
|
8
|
+
QueryFunctionContext,
|
|
9
|
+
QueryKey,
|
|
10
|
+
useQuery,
|
|
11
|
+
UseQueryResult,
|
|
12
|
+
useSuspenseQuery,
|
|
13
|
+
UseSuspenseQueryResult,
|
|
14
|
+
} from "@tanstack/react-query";
|
|
15
|
+
import { GreenSecurityCore } from "../core.js";
|
|
16
|
+
import { vendorsGetVendorInvoiceReceipt } from "../funcs/vendorsGetVendorInvoiceReceipt.js";
|
|
17
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
18
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
19
|
+
import * as operations from "../models/operations/index.js";
|
|
20
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
21
|
+
import { useGreenSecurityContext } from "./_context.js";
|
|
22
|
+
import {
|
|
23
|
+
QueryHookOptions,
|
|
24
|
+
SuspenseQueryHookOptions,
|
|
25
|
+
TupleToPrefixes,
|
|
26
|
+
} from "./_types.js";
|
|
27
|
+
|
|
28
|
+
export type VendorsGetVendorInvoiceReceiptQueryData = ReadableStream<
|
|
29
|
+
Uint8Array
|
|
30
|
+
>;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Get invoice receipt for vendor
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* Get invoice receipt for vendor
|
|
37
|
+
*/
|
|
38
|
+
export function useVendorsGetVendorInvoiceReceipt(
|
|
39
|
+
request: operations.GetVendorInvoiceReceiptRequest,
|
|
40
|
+
options?: QueryHookOptions<VendorsGetVendorInvoiceReceiptQueryData>,
|
|
41
|
+
): UseQueryResult<VendorsGetVendorInvoiceReceiptQueryData, Error> {
|
|
42
|
+
const client = useGreenSecurityContext();
|
|
43
|
+
return useQuery({
|
|
44
|
+
...buildVendorsGetVendorInvoiceReceiptQuery(
|
|
45
|
+
client,
|
|
46
|
+
request,
|
|
47
|
+
options,
|
|
48
|
+
),
|
|
49
|
+
...options,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Get invoice receipt for vendor
|
|
55
|
+
*
|
|
56
|
+
* @remarks
|
|
57
|
+
* Get invoice receipt for vendor
|
|
58
|
+
*/
|
|
59
|
+
export function useVendorsGetVendorInvoiceReceiptSuspense(
|
|
60
|
+
request: operations.GetVendorInvoiceReceiptRequest,
|
|
61
|
+
options?: SuspenseQueryHookOptions<VendorsGetVendorInvoiceReceiptQueryData>,
|
|
62
|
+
): UseSuspenseQueryResult<VendorsGetVendorInvoiceReceiptQueryData, Error> {
|
|
63
|
+
const client = useGreenSecurityContext();
|
|
64
|
+
return useSuspenseQuery({
|
|
65
|
+
...buildVendorsGetVendorInvoiceReceiptQuery(
|
|
66
|
+
client,
|
|
67
|
+
request,
|
|
68
|
+
options,
|
|
69
|
+
),
|
|
70
|
+
...options,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function prefetchVendorsGetVendorInvoiceReceipt(
|
|
75
|
+
queryClient: QueryClient,
|
|
76
|
+
client$: GreenSecurityCore,
|
|
77
|
+
request: operations.GetVendorInvoiceReceiptRequest,
|
|
78
|
+
): Promise<void> {
|
|
79
|
+
return queryClient.prefetchQuery({
|
|
80
|
+
...buildVendorsGetVendorInvoiceReceiptQuery(
|
|
81
|
+
client$,
|
|
82
|
+
request,
|
|
83
|
+
),
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function setVendorsGetVendorInvoiceReceiptData(
|
|
88
|
+
client: QueryClient,
|
|
89
|
+
queryKeyBase: [id: number],
|
|
90
|
+
data: VendorsGetVendorInvoiceReceiptQueryData,
|
|
91
|
+
): VendorsGetVendorInvoiceReceiptQueryData | undefined {
|
|
92
|
+
const key = queryKeyVendorsGetVendorInvoiceReceipt(...queryKeyBase);
|
|
93
|
+
|
|
94
|
+
return client.setQueryData<VendorsGetVendorInvoiceReceiptQueryData>(
|
|
95
|
+
key,
|
|
96
|
+
data,
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function invalidateVendorsGetVendorInvoiceReceipt(
|
|
101
|
+
client: QueryClient,
|
|
102
|
+
queryKeyBase: TupleToPrefixes<[id: number]>,
|
|
103
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
104
|
+
): Promise<void> {
|
|
105
|
+
return client.invalidateQueries({
|
|
106
|
+
...filters,
|
|
107
|
+
queryKey: [
|
|
108
|
+
"@greensecurity/javascript-sdk",
|
|
109
|
+
"vendors",
|
|
110
|
+
"getVendorInvoiceReceipt",
|
|
111
|
+
...queryKeyBase,
|
|
112
|
+
],
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function invalidateAllVendorsGetVendorInvoiceReceipt(
|
|
117
|
+
client: QueryClient,
|
|
118
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
119
|
+
): Promise<void> {
|
|
120
|
+
return client.invalidateQueries({
|
|
121
|
+
...filters,
|
|
122
|
+
queryKey: [
|
|
123
|
+
"@greensecurity/javascript-sdk",
|
|
124
|
+
"vendors",
|
|
125
|
+
"getVendorInvoiceReceipt",
|
|
126
|
+
],
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function buildVendorsGetVendorInvoiceReceiptQuery(
|
|
131
|
+
client$: GreenSecurityCore,
|
|
132
|
+
request: operations.GetVendorInvoiceReceiptRequest,
|
|
133
|
+
options?: RequestOptions,
|
|
134
|
+
): {
|
|
135
|
+
queryKey: QueryKey;
|
|
136
|
+
queryFn: (
|
|
137
|
+
context: QueryFunctionContext,
|
|
138
|
+
) => Promise<VendorsGetVendorInvoiceReceiptQueryData>;
|
|
139
|
+
} {
|
|
140
|
+
return {
|
|
141
|
+
queryKey: queryKeyVendorsGetVendorInvoiceReceipt(request.id),
|
|
142
|
+
queryFn: async function vendorsGetVendorInvoiceReceiptQueryFn(
|
|
143
|
+
ctx,
|
|
144
|
+
): Promise<VendorsGetVendorInvoiceReceiptQueryData> {
|
|
145
|
+
const sig = combineSignals(ctx.signal, options?.fetchOptions?.signal);
|
|
146
|
+
const mergedOptions = {
|
|
147
|
+
...options,
|
|
148
|
+
fetchOptions: { ...options?.fetchOptions, signal: sig },
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
return unwrapAsync(vendorsGetVendorInvoiceReceipt(
|
|
152
|
+
client$,
|
|
153
|
+
request,
|
|
154
|
+
mergedOptions,
|
|
155
|
+
));
|
|
156
|
+
},
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function queryKeyVendorsGetVendorInvoiceReceipt(id: number): QueryKey {
|
|
161
|
+
return [
|
|
162
|
+
"@greensecurity/javascript-sdk",
|
|
163
|
+
"vendors",
|
|
164
|
+
"getVendorInvoiceReceipt",
|
|
165
|
+
id,
|
|
166
|
+
];
|
|
167
|
+
}
|
package/src/sdk/organizations.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { organizationsGetFacility } from "../funcs/organizationsGetFacility.js";
|
|
6
|
+
import { organizationsListOrSearchDepartmentContacts } from "../funcs/organizationsListOrSearchDepartmentContacts.js";
|
|
6
7
|
import { organizationsListOrSearchDepartments } from "../funcs/organizationsListOrSearchDepartments.js";
|
|
7
8
|
import { organizationsListOrSearchFacilities } from "../funcs/organizationsListOrSearchFacilities.js";
|
|
8
9
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
@@ -79,4 +80,31 @@ export class Organizations extends ClientSDK {
|
|
|
79
80
|
options,
|
|
80
81
|
));
|
|
81
82
|
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* List or search department contacts
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* List or search department contacts.
|
|
89
|
+
*
|
|
90
|
+
* Available `expand` scopes are:
|
|
91
|
+
*
|
|
92
|
+
* - department_membership.contact
|
|
93
|
+
* - department_membership.department
|
|
94
|
+
*/
|
|
95
|
+
async listOrSearchDepartmentContacts(
|
|
96
|
+
request: operations.ListOrSearchDepartmentContactsRequest,
|
|
97
|
+
options?: RequestOptions,
|
|
98
|
+
): Promise<
|
|
99
|
+
PageIterator<
|
|
100
|
+
operations.ListOrSearchDepartmentContactsResponse,
|
|
101
|
+
{ page: number }
|
|
102
|
+
>
|
|
103
|
+
> {
|
|
104
|
+
return unwrapResultIterator(organizationsListOrSearchDepartmentContacts(
|
|
105
|
+
this,
|
|
106
|
+
request,
|
|
107
|
+
options,
|
|
108
|
+
));
|
|
109
|
+
}
|
|
82
110
|
}
|
package/src/sdk/vendors.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { vendorsGetSubscription } from "../funcs/vendorsGetSubscription.js";
|
|
|
20
20
|
import { vendorsGetVendorCredentialDetails } from "../funcs/vendorsGetVendorCredentialDetails.js";
|
|
21
21
|
import { vendorsGetVendorCredentialFile } from "../funcs/vendorsGetVendorCredentialFile.js";
|
|
22
22
|
import { vendorsGetVendorInvoiceDetails } from "../funcs/vendorsGetVendorInvoiceDetails.js";
|
|
23
|
+
import { vendorsGetVendorInvoiceReceipt } from "../funcs/vendorsGetVendorInvoiceReceipt.js";
|
|
23
24
|
import { vendorsGetVendorLegalName } from "../funcs/vendorsGetVendorLegalName.js";
|
|
24
25
|
import { vendorsGetVendorsDetails } from "../funcs/vendorsGetVendorsDetails.js";
|
|
25
26
|
import { vendorsListVendorAdditionalFacilityFields } from "../funcs/vendorsListVendorAdditionalFacilityFields.js";
|
|
@@ -530,6 +531,23 @@ export class Vendors extends ClientSDK {
|
|
|
530
531
|
));
|
|
531
532
|
}
|
|
532
533
|
|
|
534
|
+
/**
|
|
535
|
+
* Get invoice receipt for vendor
|
|
536
|
+
*
|
|
537
|
+
* @remarks
|
|
538
|
+
* Get invoice receipt for vendor
|
|
539
|
+
*/
|
|
540
|
+
async getVendorInvoiceReceipt(
|
|
541
|
+
request: operations.GetVendorInvoiceReceiptRequest,
|
|
542
|
+
options?: RequestOptions,
|
|
543
|
+
): Promise<ReadableStream<Uint8Array>> {
|
|
544
|
+
return unwrapAsync(vendorsGetVendorInvoiceReceipt(
|
|
545
|
+
this,
|
|
546
|
+
request,
|
|
547
|
+
options,
|
|
548
|
+
));
|
|
549
|
+
}
|
|
550
|
+
|
|
533
551
|
/**
|
|
534
552
|
* Get vendor invoice details
|
|
535
553
|
*
|