@greensecurity/javascript-sdk 0.30.7 → 0.30.11
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 +352 -86
- package/bin/mcp-server.js.map +18 -13
- package/dist/commonjs/__tests__/vendors.test.js +34 -2
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/funcs/vendorsListVendorCredentials.js +1 -0
- package/dist/commonjs/funcs/vendorsListVendorCredentials.js.map +1 -1
- package/dist/commonjs/funcs/vendorsListVendorScrubPackages.d.ts +20 -0
- package/dist/commonjs/funcs/vendorsListVendorScrubPackages.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsListVendorScrubPackages.js +160 -0
- package/dist/commonjs/funcs/vendorsListVendorScrubPackages.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 +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsListVendorScrubPackages.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsListVendorScrubPackages.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsListVendorScrubPackages.js +64 -0
- package/dist/commonjs/mcp-server/tools/vendorsListVendorScrubPackages.js.map +1 -0
- package/dist/commonjs/models/components/credentialstatus.d.ts +3 -0
- package/dist/commonjs/models/components/credentialstatus.d.ts.map +1 -1
- package/dist/commonjs/models/components/credentialstatus.js +1 -0
- package/dist/commonjs/models/components/credentialstatus.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +3 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +3 -1
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/productvariant.d.ts +36 -0
- package/dist/commonjs/models/components/productvariant.d.ts.map +1 -0
- package/dist/commonjs/models/components/productvariant.js +73 -0
- package/dist/commonjs/models/components/productvariant.js.map +1 -0
- package/dist/commonjs/models/components/vendorcredentialscontainer.d.ts +41 -0
- package/dist/commonjs/models/components/vendorcredentialscontainer.d.ts.map +1 -0
- package/dist/commonjs/models/components/vendorcredentialscontainer.js +81 -0
- package/dist/commonjs/models/components/vendorcredentialscontainer.js.map +1 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +48 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -0
- package/dist/commonjs/models/components/{vendorcredentialslim.js → vendorcredentialsummary.js} +30 -31
- package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -0
- package/dist/commonjs/models/components/vendorrequiredcredential.d.ts +10 -10
- package/dist/commonjs/models/components/vendorrequiredcredential.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorrequiredcredential.js +10 -10
- package/dist/commonjs/models/components/vendorrequiredcredential.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/listvendorcredentials.d.ts +22 -10
- package/dist/commonjs/models/operations/listvendorcredentials.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorcredentials.js +12 -10
- package/dist/commonjs/models/operations/listvendorcredentials.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorscrubpackages.d.ts +111 -0
- package/dist/commonjs/models/operations/listvendorscrubpackages.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listvendorscrubpackages.js +153 -0
- package/dist/commonjs/models/operations/listvendorscrubpackages.js.map +1 -0
- 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/vendorsListVendorCredentials.d.ts +3 -0
- package/dist/commonjs/react-query/vendorsListVendorCredentials.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorCredentials.js +2 -0
- package/dist/commonjs/react-query/vendorsListVendorCredentials.js.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorScrubPackages.d.ts +77 -0
- package/dist/commonjs/react-query/vendorsListVendorScrubPackages.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsListVendorScrubPackages.js +160 -0
- package/dist/commonjs/react-query/vendorsListVendorScrubPackages.js.map +1 -0
- package/dist/commonjs/sdk/vendors.d.ts +9 -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__/vendors.test.js +34 -2
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/funcs/vendorsListVendorCredentials.js +1 -0
- package/dist/esm/funcs/vendorsListVendorCredentials.js.map +1 -1
- package/dist/esm/funcs/vendorsListVendorScrubPackages.d.ts +20 -0
- package/dist/esm/funcs/vendorsListVendorScrubPackages.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsListVendorScrubPackages.js +124 -0
- package/dist/esm/funcs/vendorsListVendorScrubPackages.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 +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsListVendorScrubPackages.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsListVendorScrubPackages.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsListVendorScrubPackages.js +28 -0
- package/dist/esm/mcp-server/tools/vendorsListVendorScrubPackages.js.map +1 -0
- package/dist/esm/models/components/credentialstatus.d.ts +3 -0
- package/dist/esm/models/components/credentialstatus.d.ts.map +1 -1
- package/dist/esm/models/components/credentialstatus.js +1 -0
- package/dist/esm/models/components/credentialstatus.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +3 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +3 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/productvariant.d.ts +36 -0
- package/dist/esm/models/components/productvariant.d.ts.map +1 -0
- package/dist/esm/models/components/productvariant.js +35 -0
- package/dist/esm/models/components/productvariant.js.map +1 -0
- package/dist/esm/models/components/vendorcredentialscontainer.d.ts +41 -0
- package/dist/esm/models/components/vendorcredentialscontainer.d.ts.map +1 -0
- package/dist/esm/models/components/vendorcredentialscontainer.js +43 -0
- package/dist/esm/models/components/vendorcredentialscontainer.js.map +1 -0
- package/dist/esm/models/components/vendorcredentialsummary.d.ts +48 -0
- package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -0
- package/dist/esm/models/components/vendorcredentialsummary.js +55 -0
- package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -0
- package/dist/esm/models/components/vendorrequiredcredential.d.ts +10 -10
- package/dist/esm/models/components/vendorrequiredcredential.d.ts.map +1 -1
- package/dist/esm/models/components/vendorrequiredcredential.js +10 -10
- package/dist/esm/models/components/vendorrequiredcredential.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/listvendorcredentials.d.ts +22 -10
- package/dist/esm/models/operations/listvendorcredentials.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorcredentials.js +12 -10
- package/dist/esm/models/operations/listvendorcredentials.js.map +1 -1
- package/dist/esm/models/operations/listvendorscrubpackages.d.ts +111 -0
- package/dist/esm/models/operations/listvendorscrubpackages.d.ts.map +1 -0
- package/dist/esm/models/operations/listvendorscrubpackages.js +111 -0
- package/dist/esm/models/operations/listvendorscrubpackages.js.map +1 -0
- 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/vendorsListVendorCredentials.d.ts +3 -0
- package/dist/esm/react-query/vendorsListVendorCredentials.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsListVendorCredentials.js +2 -0
- package/dist/esm/react-query/vendorsListVendorCredentials.js.map +1 -1
- package/dist/esm/react-query/vendorsListVendorScrubPackages.d.ts +77 -0
- package/dist/esm/react-query/vendorsListVendorScrubPackages.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsListVendorScrubPackages.js +147 -0
- package/dist/esm/react-query/vendorsListVendorScrubPackages.js.map +1 -0
- package/dist/esm/sdk/vendors.d.ts +9 -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/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendors.test.ts +37 -2
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/funcs/vendorsListVendorCredentials.ts +1 -0
- package/src/funcs/vendorsListVendorScrubPackages.ts +254 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/vendorsListVendorScrubPackages.ts +38 -0
- package/src/models/components/credentialstatus.ts +1 -0
- package/src/models/components/index.ts +3 -1
- package/src/models/components/productvariant.ts +73 -0
- package/src/models/components/vendorcredentialscontainer.ts +94 -0
- package/src/models/components/vendorcredentialsummary.ts +113 -0
- package/src/models/components/vendorrequiredcredential.ts +20 -20
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listvendorcredentials.ts +48 -24
- package/src/models/operations/listvendorscrubpackages.ts +252 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/vendorsListVendorCredentials.ts +5 -0
- package/src/react-query/vendorsListVendorScrubPackages.ts +346 -0
- package/src/sdk/vendors.ts +20 -0
- package/dist/commonjs/models/components/vendorcredentialslim.d.ts +0 -44
- package/dist/commonjs/models/components/vendorcredentialslim.d.ts.map +0 -1
- package/dist/commonjs/models/components/vendorcredentialslim.js.map +0 -1
- package/dist/esm/models/components/vendorcredentialslim.d.ts +0 -44
- package/dist/esm/models/components/vendorcredentialslim.d.ts.map +0 -1
- package/dist/esm/models/components/vendorcredentialslim.js +0 -56
- package/dist/esm/models/components/vendorcredentialslim.js.map +0 -1
- package/src/models/components/vendorcredentialslim.ts +0 -106
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ListVendorScrubPackagesRequest = {
|
|
13
|
+
/**
|
|
14
|
+
* A comma-separated list of object attributes to sort on.
|
|
15
|
+
*/
|
|
16
|
+
sort?: string | null | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Sort desc
|
|
19
|
+
*/
|
|
20
|
+
desc?: components.Desc | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* A 1-based offset for which page to request (defaults to 1)
|
|
23
|
+
*/
|
|
24
|
+
page?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Number of items to show in a given page
|
|
27
|
+
*/
|
|
28
|
+
itemsPerPage?: number | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Either the ID of the vendor rep or the keyword "me" to represent the current vendor.
|
|
31
|
+
*/
|
|
32
|
+
vendorIdOrMe: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The request was successful, and the server has returned the requested resource in the response body.
|
|
37
|
+
*/
|
|
38
|
+
export type ListVendorScrubPackagesResponseBody = {
|
|
39
|
+
/**
|
|
40
|
+
* Pagination information for a pageable list
|
|
41
|
+
*/
|
|
42
|
+
pager: components.Pager;
|
|
43
|
+
items: Array<components.ProductVariant>;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export type ListVendorScrubPackagesResponse = {
|
|
47
|
+
result: ListVendorScrubPackagesResponseBody;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const ListVendorScrubPackagesRequest$inboundSchema: z.ZodType<
|
|
52
|
+
ListVendorScrubPackagesRequest,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
unknown
|
|
55
|
+
> = z.object({
|
|
56
|
+
sort: z.nullable(z.string()).optional(),
|
|
57
|
+
desc: components.Desc$inboundSchema.optional(),
|
|
58
|
+
page: z.number().int().optional(),
|
|
59
|
+
items_per_page: z.number().int().optional(),
|
|
60
|
+
vendor_id_or_me: z.string(),
|
|
61
|
+
}).transform((v) => {
|
|
62
|
+
return remap$(v, {
|
|
63
|
+
"items_per_page": "itemsPerPage",
|
|
64
|
+
"vendor_id_or_me": "vendorIdOrMe",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export type ListVendorScrubPackagesRequest$Outbound = {
|
|
70
|
+
sort?: string | null | undefined;
|
|
71
|
+
desc?: components.Desc$Outbound | undefined;
|
|
72
|
+
page?: number | undefined;
|
|
73
|
+
items_per_page?: number | undefined;
|
|
74
|
+
vendor_id_or_me: string;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const ListVendorScrubPackagesRequest$outboundSchema: z.ZodType<
|
|
79
|
+
ListVendorScrubPackagesRequest$Outbound,
|
|
80
|
+
z.ZodTypeDef,
|
|
81
|
+
ListVendorScrubPackagesRequest
|
|
82
|
+
> = z.object({
|
|
83
|
+
sort: z.nullable(z.string()).optional(),
|
|
84
|
+
desc: components.Desc$outboundSchema.optional(),
|
|
85
|
+
page: z.number().int().optional(),
|
|
86
|
+
itemsPerPage: z.number().int().optional(),
|
|
87
|
+
vendorIdOrMe: z.string(),
|
|
88
|
+
}).transform((v) => {
|
|
89
|
+
return remap$(v, {
|
|
90
|
+
itemsPerPage: "items_per_page",
|
|
91
|
+
vendorIdOrMe: "vendor_id_or_me",
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
98
|
+
*/
|
|
99
|
+
export namespace ListVendorScrubPackagesRequest$ {
|
|
100
|
+
/** @deprecated use `ListVendorScrubPackagesRequest$inboundSchema` instead. */
|
|
101
|
+
export const inboundSchema = ListVendorScrubPackagesRequest$inboundSchema;
|
|
102
|
+
/** @deprecated use `ListVendorScrubPackagesRequest$outboundSchema` instead. */
|
|
103
|
+
export const outboundSchema = ListVendorScrubPackagesRequest$outboundSchema;
|
|
104
|
+
/** @deprecated use `ListVendorScrubPackagesRequest$Outbound` instead. */
|
|
105
|
+
export type Outbound = ListVendorScrubPackagesRequest$Outbound;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function listVendorScrubPackagesRequestToJSON(
|
|
109
|
+
listVendorScrubPackagesRequest: ListVendorScrubPackagesRequest,
|
|
110
|
+
): string {
|
|
111
|
+
return JSON.stringify(
|
|
112
|
+
ListVendorScrubPackagesRequest$outboundSchema.parse(
|
|
113
|
+
listVendorScrubPackagesRequest,
|
|
114
|
+
),
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function listVendorScrubPackagesRequestFromJSON(
|
|
119
|
+
jsonString: string,
|
|
120
|
+
): SafeParseResult<ListVendorScrubPackagesRequest, SDKValidationError> {
|
|
121
|
+
return safeParse(
|
|
122
|
+
jsonString,
|
|
123
|
+
(x) => ListVendorScrubPackagesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
124
|
+
`Failed to parse 'ListVendorScrubPackagesRequest' from JSON`,
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/** @internal */
|
|
129
|
+
export const ListVendorScrubPackagesResponseBody$inboundSchema: z.ZodType<
|
|
130
|
+
ListVendorScrubPackagesResponseBody,
|
|
131
|
+
z.ZodTypeDef,
|
|
132
|
+
unknown
|
|
133
|
+
> = z.object({
|
|
134
|
+
pager: components.Pager$inboundSchema,
|
|
135
|
+
items: z.array(components.ProductVariant$inboundSchema),
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
/** @internal */
|
|
139
|
+
export type ListVendorScrubPackagesResponseBody$Outbound = {
|
|
140
|
+
pager: components.Pager$Outbound;
|
|
141
|
+
items: Array<components.ProductVariant$Outbound>;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
/** @internal */
|
|
145
|
+
export const ListVendorScrubPackagesResponseBody$outboundSchema: z.ZodType<
|
|
146
|
+
ListVendorScrubPackagesResponseBody$Outbound,
|
|
147
|
+
z.ZodTypeDef,
|
|
148
|
+
ListVendorScrubPackagesResponseBody
|
|
149
|
+
> = z.object({
|
|
150
|
+
pager: components.Pager$outboundSchema,
|
|
151
|
+
items: z.array(components.ProductVariant$outboundSchema),
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @internal
|
|
156
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
157
|
+
*/
|
|
158
|
+
export namespace ListVendorScrubPackagesResponseBody$ {
|
|
159
|
+
/** @deprecated use `ListVendorScrubPackagesResponseBody$inboundSchema` instead. */
|
|
160
|
+
export const inboundSchema =
|
|
161
|
+
ListVendorScrubPackagesResponseBody$inboundSchema;
|
|
162
|
+
/** @deprecated use `ListVendorScrubPackagesResponseBody$outboundSchema` instead. */
|
|
163
|
+
export const outboundSchema =
|
|
164
|
+
ListVendorScrubPackagesResponseBody$outboundSchema;
|
|
165
|
+
/** @deprecated use `ListVendorScrubPackagesResponseBody$Outbound` instead. */
|
|
166
|
+
export type Outbound = ListVendorScrubPackagesResponseBody$Outbound;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function listVendorScrubPackagesResponseBodyToJSON(
|
|
170
|
+
listVendorScrubPackagesResponseBody: ListVendorScrubPackagesResponseBody,
|
|
171
|
+
): string {
|
|
172
|
+
return JSON.stringify(
|
|
173
|
+
ListVendorScrubPackagesResponseBody$outboundSchema.parse(
|
|
174
|
+
listVendorScrubPackagesResponseBody,
|
|
175
|
+
),
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export function listVendorScrubPackagesResponseBodyFromJSON(
|
|
180
|
+
jsonString: string,
|
|
181
|
+
): SafeParseResult<ListVendorScrubPackagesResponseBody, SDKValidationError> {
|
|
182
|
+
return safeParse(
|
|
183
|
+
jsonString,
|
|
184
|
+
(x) =>
|
|
185
|
+
ListVendorScrubPackagesResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
186
|
+
`Failed to parse 'ListVendorScrubPackagesResponseBody' from JSON`,
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/** @internal */
|
|
191
|
+
export const ListVendorScrubPackagesResponse$inboundSchema: z.ZodType<
|
|
192
|
+
ListVendorScrubPackagesResponse,
|
|
193
|
+
z.ZodTypeDef,
|
|
194
|
+
unknown
|
|
195
|
+
> = z.object({
|
|
196
|
+
Result: z.lazy(() => ListVendorScrubPackagesResponseBody$inboundSchema),
|
|
197
|
+
}).transform((v) => {
|
|
198
|
+
return remap$(v, {
|
|
199
|
+
"Result": "result",
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
/** @internal */
|
|
204
|
+
export type ListVendorScrubPackagesResponse$Outbound = {
|
|
205
|
+
Result: ListVendorScrubPackagesResponseBody$Outbound;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
/** @internal */
|
|
209
|
+
export const ListVendorScrubPackagesResponse$outboundSchema: z.ZodType<
|
|
210
|
+
ListVendorScrubPackagesResponse$Outbound,
|
|
211
|
+
z.ZodTypeDef,
|
|
212
|
+
ListVendorScrubPackagesResponse
|
|
213
|
+
> = z.object({
|
|
214
|
+
result: z.lazy(() => ListVendorScrubPackagesResponseBody$outboundSchema),
|
|
215
|
+
}).transform((v) => {
|
|
216
|
+
return remap$(v, {
|
|
217
|
+
result: "Result",
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @internal
|
|
223
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
224
|
+
*/
|
|
225
|
+
export namespace ListVendorScrubPackagesResponse$ {
|
|
226
|
+
/** @deprecated use `ListVendorScrubPackagesResponse$inboundSchema` instead. */
|
|
227
|
+
export const inboundSchema = ListVendorScrubPackagesResponse$inboundSchema;
|
|
228
|
+
/** @deprecated use `ListVendorScrubPackagesResponse$outboundSchema` instead. */
|
|
229
|
+
export const outboundSchema = ListVendorScrubPackagesResponse$outboundSchema;
|
|
230
|
+
/** @deprecated use `ListVendorScrubPackagesResponse$Outbound` instead. */
|
|
231
|
+
export type Outbound = ListVendorScrubPackagesResponse$Outbound;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export function listVendorScrubPackagesResponseToJSON(
|
|
235
|
+
listVendorScrubPackagesResponse: ListVendorScrubPackagesResponse,
|
|
236
|
+
): string {
|
|
237
|
+
return JSON.stringify(
|
|
238
|
+
ListVendorScrubPackagesResponse$outboundSchema.parse(
|
|
239
|
+
listVendorScrubPackagesResponse,
|
|
240
|
+
),
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export function listVendorScrubPackagesResponseFromJSON(
|
|
245
|
+
jsonString: string,
|
|
246
|
+
): SafeParseResult<ListVendorScrubPackagesResponse, SDKValidationError> {
|
|
247
|
+
return safeParse(
|
|
248
|
+
jsonString,
|
|
249
|
+
(x) => ListVendorScrubPackagesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
250
|
+
`Failed to parse 'ListVendorScrubPackagesResponse' from JSON`,
|
|
251
|
+
);
|
|
252
|
+
}
|
package/src/react-query/index.ts
CHANGED
|
@@ -31,6 +31,7 @@ export * from "./vendorsListVendorInvoices.js";
|
|
|
31
31
|
export * from "./vendorsListVendorJobTitles.js";
|
|
32
32
|
export * from "./vendorsListVendorManagedByCompanies.js";
|
|
33
33
|
export * from "./vendorsListVendorScrubDetails.js";
|
|
34
|
+
export * from "./vendorsListVendorScrubPackages.js";
|
|
34
35
|
export * from "./vendorsListVendorScrubPurchases.js";
|
|
35
36
|
export * from "./vendorsUpdateVendorManagedByCompany.js";
|
|
36
37
|
export * from "./vendorsUpdateVendorScrubDetails.js";
|
|
@@ -195,6 +195,7 @@ export function setVendorsListVendorCredentialsData(
|
|
|
195
195
|
facilityId?: number | undefined;
|
|
196
196
|
includeVc?: number | undefined;
|
|
197
197
|
includeCc?: number | undefined;
|
|
198
|
+
expedited?: number | undefined;
|
|
198
199
|
urgent?: number | undefined;
|
|
199
200
|
},
|
|
200
201
|
],
|
|
@@ -219,6 +220,7 @@ export function invalidateVendorsListVendorCredentials(
|
|
|
219
220
|
facilityId?: number | undefined;
|
|
220
221
|
includeVc?: number | undefined;
|
|
221
222
|
includeCc?: number | undefined;
|
|
223
|
+
expedited?: number | undefined;
|
|
222
224
|
urgent?: number | undefined;
|
|
223
225
|
},
|
|
224
226
|
]
|
|
@@ -270,6 +272,7 @@ export function buildVendorsListVendorCredentialsQuery(
|
|
|
270
272
|
facilityId: request.facilityId,
|
|
271
273
|
includeVc: request.includeVc,
|
|
272
274
|
includeCc: request.includeCc,
|
|
275
|
+
expedited: request.expedited,
|
|
273
276
|
urgent: request.urgent,
|
|
274
277
|
}),
|
|
275
278
|
queryFn: async function vendorsListVendorCredentialsQueryFn(
|
|
@@ -313,6 +316,7 @@ export function buildVendorsListVendorCredentialsInfiniteQuery(
|
|
|
313
316
|
facilityId: request.facilityId,
|
|
314
317
|
includeVc: request.includeVc,
|
|
315
318
|
includeCc: request.includeCc,
|
|
319
|
+
expedited: request.expedited,
|
|
316
320
|
urgent: request.urgent,
|
|
317
321
|
}),
|
|
318
322
|
queryFn: async function vendorsListVendorCredentialsQuery(
|
|
@@ -355,6 +359,7 @@ export function queryKeyVendorsListVendorCredentials(
|
|
|
355
359
|
facilityId?: number | undefined;
|
|
356
360
|
includeVc?: number | undefined;
|
|
357
361
|
includeCc?: number | undefined;
|
|
362
|
+
expedited?: number | undefined;
|
|
358
363
|
urgent?: number | undefined;
|
|
359
364
|
},
|
|
360
365
|
): QueryKey {
|
|
@@ -0,0 +1,346 @@
|
|
|
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 { vendorsListVendorScrubPackages } from "../funcs/vendorsListVendorScrubPackages.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 VendorsListVendorScrubPackagesQueryData =
|
|
38
|
+
operations.ListVendorScrubPackagesResponse;
|
|
39
|
+
|
|
40
|
+
export type VendorsListVendorScrubPackagesInfiniteQueryData = PageIterator<
|
|
41
|
+
operations.ListVendorScrubPackagesResponse,
|
|
42
|
+
{ page: number }
|
|
43
|
+
>;
|
|
44
|
+
|
|
45
|
+
export type VendorsListVendorScrubPackagesPageParams = PageIterator<
|
|
46
|
+
operations.ListVendorScrubPackagesResponse,
|
|
47
|
+
{ page: number }
|
|
48
|
+
>["~next"];
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* List vendor scrub packages
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* List vendor scrub packages
|
|
55
|
+
*/
|
|
56
|
+
export function useVendorsListVendorScrubPackages(
|
|
57
|
+
request: operations.ListVendorScrubPackagesRequest,
|
|
58
|
+
options?: QueryHookOptions<VendorsListVendorScrubPackagesQueryData>,
|
|
59
|
+
): UseQueryResult<VendorsListVendorScrubPackagesQueryData, Error> {
|
|
60
|
+
const client = useGreenSecurityContext();
|
|
61
|
+
return useQuery({
|
|
62
|
+
...buildVendorsListVendorScrubPackagesQuery(
|
|
63
|
+
client,
|
|
64
|
+
request,
|
|
65
|
+
options,
|
|
66
|
+
),
|
|
67
|
+
...options,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* List vendor scrub packages
|
|
73
|
+
*
|
|
74
|
+
* @remarks
|
|
75
|
+
* List vendor scrub packages
|
|
76
|
+
*/
|
|
77
|
+
export function useVendorsListVendorScrubPackagesSuspense(
|
|
78
|
+
request: operations.ListVendorScrubPackagesRequest,
|
|
79
|
+
options?: SuspenseQueryHookOptions<VendorsListVendorScrubPackagesQueryData>,
|
|
80
|
+
): UseSuspenseQueryResult<VendorsListVendorScrubPackagesQueryData, Error> {
|
|
81
|
+
const client = useGreenSecurityContext();
|
|
82
|
+
return useSuspenseQuery({
|
|
83
|
+
...buildVendorsListVendorScrubPackagesQuery(
|
|
84
|
+
client,
|
|
85
|
+
request,
|
|
86
|
+
options,
|
|
87
|
+
),
|
|
88
|
+
...options,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* List vendor scrub packages
|
|
94
|
+
*
|
|
95
|
+
* @remarks
|
|
96
|
+
* List vendor scrub packages
|
|
97
|
+
*/
|
|
98
|
+
export function useVendorsListVendorScrubPackagesInfinite(
|
|
99
|
+
request: operations.ListVendorScrubPackagesRequest,
|
|
100
|
+
options?: InfiniteQueryHookOptions<
|
|
101
|
+
VendorsListVendorScrubPackagesInfiniteQueryData
|
|
102
|
+
>,
|
|
103
|
+
): UseInfiniteQueryResult<
|
|
104
|
+
InfiniteData<
|
|
105
|
+
VendorsListVendorScrubPackagesInfiniteQueryData,
|
|
106
|
+
VendorsListVendorScrubPackagesPageParams
|
|
107
|
+
>,
|
|
108
|
+
Error
|
|
109
|
+
> {
|
|
110
|
+
const client = useGreenSecurityContext();
|
|
111
|
+
return useInfiniteQuery<
|
|
112
|
+
VendorsListVendorScrubPackagesInfiniteQueryData,
|
|
113
|
+
Error,
|
|
114
|
+
InfiniteData<
|
|
115
|
+
VendorsListVendorScrubPackagesInfiniteQueryData,
|
|
116
|
+
VendorsListVendorScrubPackagesPageParams
|
|
117
|
+
>,
|
|
118
|
+
QueryKey,
|
|
119
|
+
VendorsListVendorScrubPackagesPageParams
|
|
120
|
+
>({
|
|
121
|
+
...buildVendorsListVendorScrubPackagesInfiniteQuery(
|
|
122
|
+
client,
|
|
123
|
+
request,
|
|
124
|
+
options,
|
|
125
|
+
),
|
|
126
|
+
initialPageParam: options?.initialPageParam,
|
|
127
|
+
getNextPageParam: (previousPage) => previousPage["~next"],
|
|
128
|
+
...options,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* List vendor scrub packages
|
|
134
|
+
*
|
|
135
|
+
* @remarks
|
|
136
|
+
* List vendor scrub packages
|
|
137
|
+
*/
|
|
138
|
+
export function useVendorsListVendorScrubPackagesInfiniteSuspense(
|
|
139
|
+
request: operations.ListVendorScrubPackagesRequest,
|
|
140
|
+
options?: SuspenseInfiniteQueryHookOptions<
|
|
141
|
+
VendorsListVendorScrubPackagesInfiniteQueryData
|
|
142
|
+
>,
|
|
143
|
+
): UseSuspenseInfiniteQueryResult<
|
|
144
|
+
InfiniteData<
|
|
145
|
+
VendorsListVendorScrubPackagesInfiniteQueryData,
|
|
146
|
+
VendorsListVendorScrubPackagesPageParams
|
|
147
|
+
>,
|
|
148
|
+
Error
|
|
149
|
+
> {
|
|
150
|
+
const client = useGreenSecurityContext();
|
|
151
|
+
return useSuspenseInfiniteQuery<
|
|
152
|
+
VendorsListVendorScrubPackagesInfiniteQueryData,
|
|
153
|
+
Error,
|
|
154
|
+
InfiniteData<
|
|
155
|
+
VendorsListVendorScrubPackagesInfiniteQueryData,
|
|
156
|
+
VendorsListVendorScrubPackagesPageParams
|
|
157
|
+
>,
|
|
158
|
+
QueryKey,
|
|
159
|
+
VendorsListVendorScrubPackagesPageParams
|
|
160
|
+
>({
|
|
161
|
+
...buildVendorsListVendorScrubPackagesInfiniteQuery(
|
|
162
|
+
client,
|
|
163
|
+
request,
|
|
164
|
+
options,
|
|
165
|
+
),
|
|
166
|
+
initialPageParam: options?.initialPageParam,
|
|
167
|
+
getNextPageParam: (previousPage) => previousPage["~next"],
|
|
168
|
+
...options,
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export function prefetchVendorsListVendorScrubPackages(
|
|
173
|
+
queryClient: QueryClient,
|
|
174
|
+
client$: GreenSecurityCore,
|
|
175
|
+
request: operations.ListVendorScrubPackagesRequest,
|
|
176
|
+
): Promise<void> {
|
|
177
|
+
return queryClient.prefetchQuery({
|
|
178
|
+
...buildVendorsListVendorScrubPackagesQuery(
|
|
179
|
+
client$,
|
|
180
|
+
request,
|
|
181
|
+
),
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export function setVendorsListVendorScrubPackagesData(
|
|
186
|
+
client: QueryClient,
|
|
187
|
+
queryKeyBase: [
|
|
188
|
+
vendorIdOrMe: string,
|
|
189
|
+
parameters: {
|
|
190
|
+
sort?: string | null | undefined;
|
|
191
|
+
desc?: components.Desc | undefined;
|
|
192
|
+
page?: number | undefined;
|
|
193
|
+
itemsPerPage?: number | undefined;
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
data: VendorsListVendorScrubPackagesQueryData,
|
|
197
|
+
): VendorsListVendorScrubPackagesQueryData | undefined {
|
|
198
|
+
const key = queryKeyVendorsListVendorScrubPackages(...queryKeyBase);
|
|
199
|
+
|
|
200
|
+
return client.setQueryData<VendorsListVendorScrubPackagesQueryData>(
|
|
201
|
+
key,
|
|
202
|
+
data,
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export function invalidateVendorsListVendorScrubPackages(
|
|
207
|
+
client: QueryClient,
|
|
208
|
+
queryKeyBase: TupleToPrefixes<
|
|
209
|
+
[
|
|
210
|
+
vendorIdOrMe: string,
|
|
211
|
+
parameters: {
|
|
212
|
+
sort?: string | null | undefined;
|
|
213
|
+
desc?: components.Desc | undefined;
|
|
214
|
+
page?: number | undefined;
|
|
215
|
+
itemsPerPage?: number | undefined;
|
|
216
|
+
},
|
|
217
|
+
]
|
|
218
|
+
>,
|
|
219
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
220
|
+
): Promise<void> {
|
|
221
|
+
return client.invalidateQueries({
|
|
222
|
+
...filters,
|
|
223
|
+
queryKey: [
|
|
224
|
+
"@greensecurity/javascript-sdk",
|
|
225
|
+
"vendors",
|
|
226
|
+
"listVendorScrubPackages",
|
|
227
|
+
...queryKeyBase,
|
|
228
|
+
],
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export function invalidateAllVendorsListVendorScrubPackages(
|
|
233
|
+
client: QueryClient,
|
|
234
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
235
|
+
): Promise<void> {
|
|
236
|
+
return client.invalidateQueries({
|
|
237
|
+
...filters,
|
|
238
|
+
queryKey: [
|
|
239
|
+
"@greensecurity/javascript-sdk",
|
|
240
|
+
"vendors",
|
|
241
|
+
"listVendorScrubPackages",
|
|
242
|
+
],
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export function buildVendorsListVendorScrubPackagesQuery(
|
|
247
|
+
client$: GreenSecurityCore,
|
|
248
|
+
request: operations.ListVendorScrubPackagesRequest,
|
|
249
|
+
options?: RequestOptions,
|
|
250
|
+
): {
|
|
251
|
+
queryKey: QueryKey;
|
|
252
|
+
queryFn: (
|
|
253
|
+
context: QueryFunctionContext,
|
|
254
|
+
) => Promise<VendorsListVendorScrubPackagesQueryData>;
|
|
255
|
+
} {
|
|
256
|
+
return {
|
|
257
|
+
queryKey: queryKeyVendorsListVendorScrubPackages(request.vendorIdOrMe, {
|
|
258
|
+
sort: request.sort,
|
|
259
|
+
desc: request.desc,
|
|
260
|
+
page: request.page,
|
|
261
|
+
itemsPerPage: request.itemsPerPage,
|
|
262
|
+
}),
|
|
263
|
+
queryFn: async function vendorsListVendorScrubPackagesQueryFn(
|
|
264
|
+
ctx,
|
|
265
|
+
): Promise<VendorsListVendorScrubPackagesQueryData> {
|
|
266
|
+
const sig = combineSignals(ctx.signal, options?.fetchOptions?.signal);
|
|
267
|
+
const mergedOptions = {
|
|
268
|
+
...options,
|
|
269
|
+
fetchOptions: { ...options?.fetchOptions, signal: sig },
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
return unwrapAsync(vendorsListVendorScrubPackages(
|
|
273
|
+
client$,
|
|
274
|
+
request,
|
|
275
|
+
mergedOptions,
|
|
276
|
+
));
|
|
277
|
+
},
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export function buildVendorsListVendorScrubPackagesInfiniteQuery(
|
|
282
|
+
client$: GreenSecurityCore,
|
|
283
|
+
request: operations.ListVendorScrubPackagesRequest,
|
|
284
|
+
options?: RequestOptions,
|
|
285
|
+
): {
|
|
286
|
+
queryKey: QueryKey;
|
|
287
|
+
queryFn: (
|
|
288
|
+
context: QueryFunctionContext<
|
|
289
|
+
QueryKey,
|
|
290
|
+
VendorsListVendorScrubPackagesPageParams
|
|
291
|
+
>,
|
|
292
|
+
) => Promise<VendorsListVendorScrubPackagesInfiniteQueryData>;
|
|
293
|
+
} {
|
|
294
|
+
return {
|
|
295
|
+
queryKey: queryKeyVendorsListVendorScrubPackages(request.vendorIdOrMe, {
|
|
296
|
+
sort: request.sort,
|
|
297
|
+
desc: request.desc,
|
|
298
|
+
page: request.page,
|
|
299
|
+
itemsPerPage: request.itemsPerPage,
|
|
300
|
+
}),
|
|
301
|
+
queryFn: async function vendorsListVendorScrubPackagesQuery(
|
|
302
|
+
ctx,
|
|
303
|
+
): Promise<VendorsListVendorScrubPackagesInfiniteQueryData> {
|
|
304
|
+
const sig = combineSignals(ctx.signal, options?.fetchOptions?.signal);
|
|
305
|
+
const mergedOptions = {
|
|
306
|
+
...options,
|
|
307
|
+
fetchOptions: { ...options?.fetchOptions, signal: sig },
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
if (!ctx.pageParam) {
|
|
311
|
+
return unwrapResultIterator(vendorsListVendorScrubPackages(
|
|
312
|
+
client$,
|
|
313
|
+
request,
|
|
314
|
+
mergedOptions,
|
|
315
|
+
));
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
return unwrapResultIterator(vendorsListVendorScrubPackages(
|
|
319
|
+
client$,
|
|
320
|
+
{
|
|
321
|
+
...request,
|
|
322
|
+
page: ctx.pageParam.page,
|
|
323
|
+
},
|
|
324
|
+
mergedOptions,
|
|
325
|
+
));
|
|
326
|
+
},
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export function queryKeyVendorsListVendorScrubPackages(
|
|
331
|
+
vendorIdOrMe: string,
|
|
332
|
+
parameters: {
|
|
333
|
+
sort?: string | null | undefined;
|
|
334
|
+
desc?: components.Desc | undefined;
|
|
335
|
+
page?: number | undefined;
|
|
336
|
+
itemsPerPage?: number | undefined;
|
|
337
|
+
},
|
|
338
|
+
): QueryKey {
|
|
339
|
+
return [
|
|
340
|
+
"@greensecurity/javascript-sdk",
|
|
341
|
+
"vendors",
|
|
342
|
+
"listVendorScrubPackages",
|
|
343
|
+
vendorIdOrMe,
|
|
344
|
+
parameters,
|
|
345
|
+
];
|
|
346
|
+
}
|
package/src/sdk/vendors.ts
CHANGED
|
@@ -16,6 +16,7 @@ import { vendorsListVendorInvoices } from "../funcs/vendorsListVendorInvoices.js
|
|
|
16
16
|
import { vendorsListVendorJobTitles } from "../funcs/vendorsListVendorJobTitles.js";
|
|
17
17
|
import { vendorsListVendorManagedByCompanies } from "../funcs/vendorsListVendorManagedByCompanies.js";
|
|
18
18
|
import { vendorsListVendorScrubDetails } from "../funcs/vendorsListVendorScrubDetails.js";
|
|
19
|
+
import { vendorsListVendorScrubPackages } from "../funcs/vendorsListVendorScrubPackages.js";
|
|
19
20
|
import { vendorsListVendorScrubPurchases } from "../funcs/vendorsListVendorScrubPurchases.js";
|
|
20
21
|
import { vendorsUpdateVendorManagedByCompany } from "../funcs/vendorsUpdateVendorManagedByCompany.js";
|
|
21
22
|
import { vendorsUpdateVendorScrubDetails } from "../funcs/vendorsUpdateVendorScrubDetails.js";
|
|
@@ -222,6 +223,25 @@ export class Vendors extends ClientSDK {
|
|
|
222
223
|
));
|
|
223
224
|
}
|
|
224
225
|
|
|
226
|
+
/**
|
|
227
|
+
* List vendor scrub packages
|
|
228
|
+
*
|
|
229
|
+
* @remarks
|
|
230
|
+
* List vendor scrub packages
|
|
231
|
+
*/
|
|
232
|
+
async listVendorScrubPackages(
|
|
233
|
+
request: operations.ListVendorScrubPackagesRequest,
|
|
234
|
+
options?: RequestOptions,
|
|
235
|
+
): Promise<
|
|
236
|
+
PageIterator<operations.ListVendorScrubPackagesResponse, { page: number }>
|
|
237
|
+
> {
|
|
238
|
+
return unwrapResultIterator(vendorsListVendorScrubPackages(
|
|
239
|
+
this,
|
|
240
|
+
request,
|
|
241
|
+
options,
|
|
242
|
+
));
|
|
243
|
+
}
|
|
244
|
+
|
|
225
245
|
/**
|
|
226
246
|
* Get vendors details
|
|
227
247
|
*
|