@greensecurity/javascript-sdk 0.31.1 → 0.31.4
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 +1302 -1154
- package/bin/mcp-server.js.map +28 -16
- package/dist/commonjs/__tests__/vendors.test.js +19 -6
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +59 -3
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/admin-funcs/doAdmin.d.ts +21 -0
- package/dist/commonjs/admin-funcs/doAdmin.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/doAdmin.js +118 -0
- package/dist/commonjs/admin-funcs/doAdmin.js.map +1 -0
- package/dist/commonjs/admin-funcs/facilitiesGetInvoice.d.ts +14 -0
- package/dist/commonjs/admin-funcs/facilitiesGetInvoice.d.ts.map +1 -0
- package/dist/commonjs/admin-funcs/facilitiesGetInvoice.js +15 -0
- package/dist/commonjs/admin-funcs/facilitiesGetInvoice.js.map +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/funcs/vendorsSubmitVendorCredential.d.ts +17 -0
- package/dist/commonjs/funcs/vendorsSubmitVendorCredential.d.ts.map +1 -0
- package/dist/commonjs/funcs/vendorsSubmitVendorCredential.js +119 -0
- package/dist/commonjs/funcs/vendorsSubmitVendorCredential.js.map +1 -0
- package/dist/commonjs/index.d.ts +1 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.extras.d.ts +5 -0
- package/dist/commonjs/index.extras.d.ts.map +1 -0
- package/dist/commonjs/index.extras.js +9 -0
- package/dist/commonjs/index.extras.js.map +1 -0
- package/dist/commonjs/index.js +1 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +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/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js +2 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsSubmitVendorCredential.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/vendorsSubmitVendorCredential.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/vendorsSubmitVendorCredential.js +64 -0
- package/dist/commonjs/mcp-server/tools/vendorsSubmitVendorCredential.js.map +1 -0
- package/dist/commonjs/models/components/expand.d.ts +3 -0
- package/dist/commonjs/models/components/expand.d.ts.map +1 -1
- package/dist/commonjs/models/components/expand.js +1 -0
- package/dist/commonjs/models/components/expand.js.map +1 -1
- package/dist/commonjs/models/components/facility.d.ts +2 -2
- package/dist/commonjs/models/components/facility.d.ts.map +1 -1
- package/dist/commonjs/models/components/facility.js +2 -2
- package/dist/commonjs/models/components/facility.js.map +1 -1
- package/dist/commonjs/models/components/vendor.d.ts +7 -31
- package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendor.js +11 -34
- package/dist/commonjs/models/components/vendor.js.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +2 -2
- package/dist/commonjs/models/components/vendorcredentialsummary.js +2 -2
- package/dist/commonjs/models/components/vendortype.d.ts +4 -42
- package/dist/commonjs/models/components/vendortype.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendortype.js +5 -69
- package/dist/commonjs/models/components/vendortype.js.map +1 -1
- package/dist/commonjs/models/components/zoneconfig.d.ts +15 -15
- package/dist/commonjs/models/components/zoneconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/zoneconfig.js +18 -18
- package/dist/commonjs/models/components/zoneconfig.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/submitvendorcredential.d.ts +61 -0
- package/dist/commonjs/models/operations/submitvendorcredential.d.ts.map +1 -0
- package/dist/commonjs/models/operations/submitvendorcredential.js +119 -0
- package/dist/commonjs/models/operations/submitvendorcredential.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/vendorsGetVendorsDetails.d.ts +2 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js +2 -0
- package/dist/commonjs/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/commonjs/react-query/vendorsSubmitVendorCredential.d.ts +23 -0
- package/dist/commonjs/react-query/vendorsSubmitVendorCredential.d.ts.map +1 -0
- package/dist/commonjs/react-query/vendorsSubmitVendorCredential.js +47 -0
- package/dist/commonjs/react-query/vendorsSubmitVendorCredential.js.map +1 -0
- package/dist/commonjs/sdk/vendors.d.ts +8 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +11 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +19 -6
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/__tests__/webhooks.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +59 -3
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/admin-funcs/doAdmin.d.ts +21 -0
- package/dist/esm/admin-funcs/doAdmin.d.ts.map +1 -0
- package/dist/esm/admin-funcs/doAdmin.js +82 -0
- package/dist/esm/admin-funcs/doAdmin.js.map +1 -0
- package/dist/esm/admin-funcs/facilitiesGetInvoice.d.ts +14 -0
- package/dist/esm/admin-funcs/facilitiesGetInvoice.d.ts.map +1 -0
- package/dist/esm/admin-funcs/facilitiesGetInvoice.js +12 -0
- package/dist/esm/admin-funcs/facilitiesGetInvoice.js.map +1 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts +1 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorsDetails.js +1 -0
- package/dist/esm/funcs/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/funcs/vendorsSubmitVendorCredential.d.ts +17 -0
- package/dist/esm/funcs/vendorsSubmitVendorCredential.d.ts.map +1 -0
- package/dist/esm/funcs/vendorsSubmitVendorCredential.js +83 -0
- package/dist/esm/funcs/vendorsSubmitVendorCredential.js.map +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.extras.d.ts +5 -0
- package/dist/esm/index.extras.d.ts.map +1 -0
- package/dist/esm/index.extras.js +6 -0
- package/dist/esm/index.extras.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +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/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js +2 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsSubmitVendorCredential.d.ts +8 -0
- package/dist/esm/mcp-server/tools/vendorsSubmitVendorCredential.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/vendorsSubmitVendorCredential.js +28 -0
- package/dist/esm/mcp-server/tools/vendorsSubmitVendorCredential.js.map +1 -0
- package/dist/esm/models/components/expand.d.ts +3 -0
- package/dist/esm/models/components/expand.d.ts.map +1 -1
- package/dist/esm/models/components/expand.js +1 -0
- package/dist/esm/models/components/expand.js.map +1 -1
- package/dist/esm/models/components/facility.d.ts +2 -2
- package/dist/esm/models/components/facility.d.ts.map +1 -1
- package/dist/esm/models/components/facility.js +2 -2
- package/dist/esm/models/components/facility.js.map +1 -1
- package/dist/esm/models/components/vendor.d.ts +7 -31
- package/dist/esm/models/components/vendor.d.ts.map +1 -1
- package/dist/esm/models/components/vendor.js +10 -31
- package/dist/esm/models/components/vendor.js.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.d.ts +2 -2
- package/dist/esm/models/components/vendorcredentialsummary.js +2 -2
- package/dist/esm/models/components/vendortype.d.ts +4 -42
- package/dist/esm/models/components/vendortype.d.ts.map +1 -1
- package/dist/esm/models/components/vendortype.js +4 -66
- package/dist/esm/models/components/vendortype.js.map +1 -1
- package/dist/esm/models/components/zoneconfig.d.ts +15 -15
- package/dist/esm/models/components/zoneconfig.d.ts.map +1 -1
- package/dist/esm/models/components/zoneconfig.js +15 -15
- package/dist/esm/models/components/zoneconfig.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/submitvendorcredential.d.ts +61 -0
- package/dist/esm/models/operations/submitvendorcredential.d.ts.map +1 -0
- package/dist/esm/models/operations/submitvendorcredential.js +79 -0
- package/dist/esm/models/operations/submitvendorcredential.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/vendorsGetVendorsDetails.d.ts +2 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorsDetails.js +2 -0
- package/dist/esm/react-query/vendorsGetVendorsDetails.js.map +1 -1
- package/dist/esm/react-query/vendorsSubmitVendorCredential.d.ts +23 -0
- package/dist/esm/react-query/vendorsSubmitVendorCredential.d.ts.map +1 -0
- package/dist/esm/react-query/vendorsSubmitVendorCredential.js +42 -0
- package/dist/esm/react-query/vendorsSubmitVendorCredential.js.map +1 -0
- package/dist/esm/sdk/vendors.d.ts +8 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +11 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/__tests__/vendors.test.ts +22 -6
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +59 -3
- package/src/admin-funcs/doAdmin.ts +164 -0
- package/src/admin-funcs/facilitiesGetInvoice.ts +28 -0
- package/src/funcs/vendorsGetVendorsDetails.ts +1 -0
- package/src/funcs/vendorsSubmitVendorCredential.ts +178 -0
- package/src/index.extras.ts +8 -0
- package/src/index.ts +2 -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/vendorsGetVendorsDetails.ts +2 -1
- package/src/mcp-server/tools/vendorsSubmitVendorCredential.ts +37 -0
- package/src/models/components/expand.ts +1 -0
- package/src/models/components/facility.ts +4 -4
- package/src/models/components/vendor.ts +21 -68
- package/src/models/components/vendorcredentialsummary.ts +4 -4
- package/src/models/components/vendortype.ts +8 -112
- package/src/models/components/zoneconfig.ts +24 -28
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/submitvendorcredential.ts +159 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/vendorsGetVendorsDetails.ts +2 -0
- package/src/react-query/vendorsSubmitVendorCredential.ts +88 -0
- package/src/sdk/vendors.ts +19 -0
|
@@ -3,125 +3,29 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
9
|
|
|
11
|
-
export type AppliesTo = {
|
|
12
|
-
companyId?: number | undefined;
|
|
13
|
-
companyGroupId?: number | undefined;
|
|
14
|
-
vendorGroupId?: number | undefined;
|
|
15
|
-
everyoneElse: boolean;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* An object which represents a specific `level` or type of vendor. These can be customized by `Company`, `VendorGroup`, or `CompanyGroup`.
|
|
20
|
-
*/
|
|
21
10
|
export type VendorType = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
sortOrder: number;
|
|
25
|
-
appliesTo: AppliesTo;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const AppliesTo$inboundSchema: z.ZodType<
|
|
30
|
-
AppliesTo,
|
|
31
|
-
z.ZodTypeDef,
|
|
32
|
-
unknown
|
|
33
|
-
> = z.object({
|
|
34
|
-
company_id: z.number().int().optional(),
|
|
35
|
-
company_group_id: z.number().int().optional(),
|
|
36
|
-
vendor_group_id: z.number().int().optional(),
|
|
37
|
-
everyone_else: z.boolean(),
|
|
38
|
-
}).transform((v) => {
|
|
39
|
-
return remap$(v, {
|
|
40
|
-
"company_id": "companyId",
|
|
41
|
-
"company_group_id": "companyGroupId",
|
|
42
|
-
"vendor_group_id": "vendorGroupId",
|
|
43
|
-
"everyone_else": "everyoneElse",
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export type AppliesTo$Outbound = {
|
|
49
|
-
company_id?: number | undefined;
|
|
50
|
-
company_group_id?: number | undefined;
|
|
51
|
-
vendor_group_id?: number | undefined;
|
|
52
|
-
everyone_else: boolean;
|
|
11
|
+
id?: number | undefined;
|
|
12
|
+
name?: string | undefined;
|
|
53
13
|
};
|
|
54
14
|
|
|
55
|
-
/** @internal */
|
|
56
|
-
export const AppliesTo$outboundSchema: z.ZodType<
|
|
57
|
-
AppliesTo$Outbound,
|
|
58
|
-
z.ZodTypeDef,
|
|
59
|
-
AppliesTo
|
|
60
|
-
> = z.object({
|
|
61
|
-
companyId: z.number().int().optional(),
|
|
62
|
-
companyGroupId: z.number().int().optional(),
|
|
63
|
-
vendorGroupId: z.number().int().optional(),
|
|
64
|
-
everyoneElse: z.boolean(),
|
|
65
|
-
}).transform((v) => {
|
|
66
|
-
return remap$(v, {
|
|
67
|
-
companyId: "company_id",
|
|
68
|
-
companyGroupId: "company_group_id",
|
|
69
|
-
vendorGroupId: "vendor_group_id",
|
|
70
|
-
everyoneElse: "everyone_else",
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
-
*/
|
|
78
|
-
export namespace AppliesTo$ {
|
|
79
|
-
/** @deprecated use `AppliesTo$inboundSchema` instead. */
|
|
80
|
-
export const inboundSchema = AppliesTo$inboundSchema;
|
|
81
|
-
/** @deprecated use `AppliesTo$outboundSchema` instead. */
|
|
82
|
-
export const outboundSchema = AppliesTo$outboundSchema;
|
|
83
|
-
/** @deprecated use `AppliesTo$Outbound` instead. */
|
|
84
|
-
export type Outbound = AppliesTo$Outbound;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export function appliesToToJSON(appliesTo: AppliesTo): string {
|
|
88
|
-
return JSON.stringify(AppliesTo$outboundSchema.parse(appliesTo));
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export function appliesToFromJSON(
|
|
92
|
-
jsonString: string,
|
|
93
|
-
): SafeParseResult<AppliesTo, SDKValidationError> {
|
|
94
|
-
return safeParse(
|
|
95
|
-
jsonString,
|
|
96
|
-
(x) => AppliesTo$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
-
`Failed to parse 'AppliesTo' from JSON`,
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
15
|
/** @internal */
|
|
102
16
|
export const VendorType$inboundSchema: z.ZodType<
|
|
103
17
|
VendorType,
|
|
104
18
|
z.ZodTypeDef,
|
|
105
19
|
unknown
|
|
106
20
|
> = z.object({
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
sort_order: z.number().int(),
|
|
110
|
-
applies_to: z.lazy(() => AppliesTo$inboundSchema),
|
|
111
|
-
}).transform((v) => {
|
|
112
|
-
return remap$(v, {
|
|
113
|
-
"short_name": "shortName",
|
|
114
|
-
"sort_order": "sortOrder",
|
|
115
|
-
"applies_to": "appliesTo",
|
|
116
|
-
});
|
|
21
|
+
id: z.number().int().optional(),
|
|
22
|
+
name: z.string().optional(),
|
|
117
23
|
});
|
|
118
24
|
|
|
119
25
|
/** @internal */
|
|
120
26
|
export type VendorType$Outbound = {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
sort_order: number;
|
|
124
|
-
applies_to: AppliesTo$Outbound;
|
|
27
|
+
id?: number | undefined;
|
|
28
|
+
name?: string | undefined;
|
|
125
29
|
};
|
|
126
30
|
|
|
127
31
|
/** @internal */
|
|
@@ -130,16 +34,8 @@ export const VendorType$outboundSchema: z.ZodType<
|
|
|
130
34
|
z.ZodTypeDef,
|
|
131
35
|
VendorType
|
|
132
36
|
> = z.object({
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
sortOrder: z.number().int(),
|
|
136
|
-
appliesTo: z.lazy(() => AppliesTo$outboundSchema),
|
|
137
|
-
}).transform((v) => {
|
|
138
|
-
return remap$(v, {
|
|
139
|
-
shortName: "short_name",
|
|
140
|
-
sortOrder: "sort_order",
|
|
141
|
-
appliesTo: "applies_to",
|
|
142
|
-
});
|
|
37
|
+
id: z.number().int().optional(),
|
|
38
|
+
name: z.string().optional(),
|
|
143
39
|
});
|
|
144
40
|
|
|
145
41
|
/**
|
|
@@ -26,7 +26,7 @@ export type CompanyGroupId1 = {
|
|
|
26
26
|
|
|
27
27
|
export type CompanyGroupId = CompanyGroupId1 | number;
|
|
28
28
|
|
|
29
|
-
export type
|
|
29
|
+
export type AppliesTo = {
|
|
30
30
|
vendorGroupId?: VendorGroupId1 | number | null | undefined;
|
|
31
31
|
companyGroupId?: CompanyGroupId1 | number | null | undefined;
|
|
32
32
|
visitorType?: string | null | undefined;
|
|
@@ -76,7 +76,7 @@ export type ZoneConfig = {
|
|
|
76
76
|
id?: number | undefined;
|
|
77
77
|
zoneId?: number | undefined;
|
|
78
78
|
sortOrder?: number | null | undefined;
|
|
79
|
-
appliesTo?:
|
|
79
|
+
appliesTo?: AppliesTo | undefined;
|
|
80
80
|
vendorPolicy?: ZoneConfigVendorPolicy | undefined;
|
|
81
81
|
visitorCheckinPolicy?: VisitorCheckinPolicy | undefined;
|
|
82
82
|
visitRequestPolicy?: VisitRequestPolicy | undefined;
|
|
@@ -291,8 +291,8 @@ export function companyGroupIdFromJSON(
|
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
/** @internal */
|
|
294
|
-
export const
|
|
295
|
-
|
|
294
|
+
export const AppliesTo$inboundSchema: z.ZodType<
|
|
295
|
+
AppliesTo,
|
|
296
296
|
z.ZodTypeDef,
|
|
297
297
|
unknown
|
|
298
298
|
> = z.object({
|
|
@@ -314,7 +314,7 @@ export const ZoneConfigAppliesTo$inboundSchema: z.ZodType<
|
|
|
314
314
|
});
|
|
315
315
|
|
|
316
316
|
/** @internal */
|
|
317
|
-
export type
|
|
317
|
+
export type AppliesTo$Outbound = {
|
|
318
318
|
vendor_group_id?: VendorGroupId1$Outbound | number | null | undefined;
|
|
319
319
|
company_group_id?: CompanyGroupId1$Outbound | number | null | undefined;
|
|
320
320
|
visitor_type?: string | null | undefined;
|
|
@@ -322,10 +322,10 @@ export type ZoneConfigAppliesTo$Outbound = {
|
|
|
322
322
|
};
|
|
323
323
|
|
|
324
324
|
/** @internal */
|
|
325
|
-
export const
|
|
326
|
-
|
|
325
|
+
export const AppliesTo$outboundSchema: z.ZodType<
|
|
326
|
+
AppliesTo$Outbound,
|
|
327
327
|
z.ZodTypeDef,
|
|
328
|
-
|
|
328
|
+
AppliesTo
|
|
329
329
|
> = z.object({
|
|
330
330
|
vendorGroupId: z.nullable(
|
|
331
331
|
z.union([z.lazy(() => VendorGroupId1$outboundSchema), z.number().int()]),
|
|
@@ -348,30 +348,26 @@ export const ZoneConfigAppliesTo$outboundSchema: z.ZodType<
|
|
|
348
348
|
* @internal
|
|
349
349
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
350
350
|
*/
|
|
351
|
-
export namespace
|
|
352
|
-
/** @deprecated use `
|
|
353
|
-
export const inboundSchema =
|
|
354
|
-
/** @deprecated use `
|
|
355
|
-
export const outboundSchema =
|
|
356
|
-
/** @deprecated use `
|
|
357
|
-
export type Outbound =
|
|
351
|
+
export namespace AppliesTo$ {
|
|
352
|
+
/** @deprecated use `AppliesTo$inboundSchema` instead. */
|
|
353
|
+
export const inboundSchema = AppliesTo$inboundSchema;
|
|
354
|
+
/** @deprecated use `AppliesTo$outboundSchema` instead. */
|
|
355
|
+
export const outboundSchema = AppliesTo$outboundSchema;
|
|
356
|
+
/** @deprecated use `AppliesTo$Outbound` instead. */
|
|
357
|
+
export type Outbound = AppliesTo$Outbound;
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
-
export function
|
|
361
|
-
|
|
362
|
-
): string {
|
|
363
|
-
return JSON.stringify(
|
|
364
|
-
ZoneConfigAppliesTo$outboundSchema.parse(zoneConfigAppliesTo),
|
|
365
|
-
);
|
|
360
|
+
export function appliesToToJSON(appliesTo: AppliesTo): string {
|
|
361
|
+
return JSON.stringify(AppliesTo$outboundSchema.parse(appliesTo));
|
|
366
362
|
}
|
|
367
363
|
|
|
368
|
-
export function
|
|
364
|
+
export function appliesToFromJSON(
|
|
369
365
|
jsonString: string,
|
|
370
|
-
): SafeParseResult<
|
|
366
|
+
): SafeParseResult<AppliesTo, SDKValidationError> {
|
|
371
367
|
return safeParse(
|
|
372
368
|
jsonString,
|
|
373
|
-
(x) =>
|
|
374
|
-
`Failed to parse '
|
|
369
|
+
(x) => AppliesTo$inboundSchema.parse(JSON.parse(x)),
|
|
370
|
+
`Failed to parse 'AppliesTo' from JSON`,
|
|
375
371
|
);
|
|
376
372
|
}
|
|
377
373
|
|
|
@@ -691,7 +687,7 @@ export const ZoneConfig$inboundSchema: z.ZodType<
|
|
|
691
687
|
id: z.number().int().optional(),
|
|
692
688
|
zone_id: z.number().int().optional(),
|
|
693
689
|
sort_order: z.nullable(z.number().int()).optional(),
|
|
694
|
-
applies_to: z.lazy(() =>
|
|
690
|
+
applies_to: z.lazy(() => AppliesTo$inboundSchema).optional(),
|
|
695
691
|
vendor_policy: z.lazy(() => ZoneConfigVendorPolicy$inboundSchema).optional(),
|
|
696
692
|
visitor_checkin_policy: z.lazy(() => VisitorCheckinPolicy$inboundSchema)
|
|
697
693
|
.optional(),
|
|
@@ -713,7 +709,7 @@ export type ZoneConfig$Outbound = {
|
|
|
713
709
|
id?: number | undefined;
|
|
714
710
|
zone_id?: number | undefined;
|
|
715
711
|
sort_order?: number | null | undefined;
|
|
716
|
-
applies_to?:
|
|
712
|
+
applies_to?: AppliesTo$Outbound | undefined;
|
|
717
713
|
vendor_policy?: ZoneConfigVendorPolicy$Outbound | undefined;
|
|
718
714
|
visitor_checkin_policy?: VisitorCheckinPolicy$Outbound | undefined;
|
|
719
715
|
visit_request_policy?: VisitRequestPolicy$Outbound | undefined;
|
|
@@ -728,7 +724,7 @@ export const ZoneConfig$outboundSchema: z.ZodType<
|
|
|
728
724
|
id: z.number().int().optional(),
|
|
729
725
|
zoneId: z.number().int().optional(),
|
|
730
726
|
sortOrder: z.nullable(z.number().int()).optional(),
|
|
731
|
-
appliesTo: z.lazy(() =>
|
|
727
|
+
appliesTo: z.lazy(() => AppliesTo$outboundSchema).optional(),
|
|
732
728
|
vendorPolicy: z.lazy(() => ZoneConfigVendorPolicy$outboundSchema).optional(),
|
|
733
729
|
visitorCheckinPolicy: z.lazy(() => VisitorCheckinPolicy$outboundSchema)
|
|
734
730
|
.optional(),
|
|
@@ -39,6 +39,7 @@ export * from "./passwordresetrequest.js";
|
|
|
39
39
|
export * from "./postauthenticate.js";
|
|
40
40
|
export * from "./purchasescrubcredits.js";
|
|
41
41
|
export * from "./securityzonecheckin.js";
|
|
42
|
+
export * from "./submitvendorcredential.js";
|
|
42
43
|
export * from "./updatesthewebhookendpointwiththegivenid.js";
|
|
43
44
|
export * from "./updatevendordetails.js";
|
|
44
45
|
export * from "./updatevendormanagedbycompany.js";
|
|
@@ -0,0 +1,159 @@
|
|
|
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type SubmitVendorCredentialRequestBody = {
|
|
12
|
+
notes?: string | undefined;
|
|
13
|
+
jsonData?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type SubmitVendorCredentialRequest = {
|
|
17
|
+
/**
|
|
18
|
+
* ID of the vendor credential rep.
|
|
19
|
+
*/
|
|
20
|
+
vendorCredentialId: number;
|
|
21
|
+
requestBody: SubmitVendorCredentialRequestBody;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const SubmitVendorCredentialRequestBody$inboundSchema: z.ZodType<
|
|
26
|
+
SubmitVendorCredentialRequestBody,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
notes: z.string().optional(),
|
|
31
|
+
json_data: z.string().optional(),
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"json_data": "jsonData",
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type SubmitVendorCredentialRequestBody$Outbound = {
|
|
40
|
+
notes?: string | undefined;
|
|
41
|
+
json_data?: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const SubmitVendorCredentialRequestBody$outboundSchema: z.ZodType<
|
|
46
|
+
SubmitVendorCredentialRequestBody$Outbound,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
SubmitVendorCredentialRequestBody
|
|
49
|
+
> = z.object({
|
|
50
|
+
notes: z.string().optional(),
|
|
51
|
+
jsonData: z.string().optional(),
|
|
52
|
+
}).transform((v) => {
|
|
53
|
+
return remap$(v, {
|
|
54
|
+
jsonData: "json_data",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
export namespace SubmitVendorCredentialRequestBody$ {
|
|
63
|
+
/** @deprecated use `SubmitVendorCredentialRequestBody$inboundSchema` instead. */
|
|
64
|
+
export const inboundSchema = SubmitVendorCredentialRequestBody$inboundSchema;
|
|
65
|
+
/** @deprecated use `SubmitVendorCredentialRequestBody$outboundSchema` instead. */
|
|
66
|
+
export const outboundSchema =
|
|
67
|
+
SubmitVendorCredentialRequestBody$outboundSchema;
|
|
68
|
+
/** @deprecated use `SubmitVendorCredentialRequestBody$Outbound` instead. */
|
|
69
|
+
export type Outbound = SubmitVendorCredentialRequestBody$Outbound;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function submitVendorCredentialRequestBodyToJSON(
|
|
73
|
+
submitVendorCredentialRequestBody: SubmitVendorCredentialRequestBody,
|
|
74
|
+
): string {
|
|
75
|
+
return JSON.stringify(
|
|
76
|
+
SubmitVendorCredentialRequestBody$outboundSchema.parse(
|
|
77
|
+
submitVendorCredentialRequestBody,
|
|
78
|
+
),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function submitVendorCredentialRequestBodyFromJSON(
|
|
83
|
+
jsonString: string,
|
|
84
|
+
): SafeParseResult<SubmitVendorCredentialRequestBody, SDKValidationError> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) => SubmitVendorCredentialRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
88
|
+
`Failed to parse 'SubmitVendorCredentialRequestBody' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** @internal */
|
|
93
|
+
export const SubmitVendorCredentialRequest$inboundSchema: z.ZodType<
|
|
94
|
+
SubmitVendorCredentialRequest,
|
|
95
|
+
z.ZodTypeDef,
|
|
96
|
+
unknown
|
|
97
|
+
> = z.object({
|
|
98
|
+
vendor_credential_id: z.number().int(),
|
|
99
|
+
RequestBody: z.lazy(() => SubmitVendorCredentialRequestBody$inboundSchema),
|
|
100
|
+
}).transform((v) => {
|
|
101
|
+
return remap$(v, {
|
|
102
|
+
"vendor_credential_id": "vendorCredentialId",
|
|
103
|
+
"RequestBody": "requestBody",
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
/** @internal */
|
|
108
|
+
export type SubmitVendorCredentialRequest$Outbound = {
|
|
109
|
+
vendor_credential_id: number;
|
|
110
|
+
RequestBody: SubmitVendorCredentialRequestBody$Outbound;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/** @internal */
|
|
114
|
+
export const SubmitVendorCredentialRequest$outboundSchema: z.ZodType<
|
|
115
|
+
SubmitVendorCredentialRequest$Outbound,
|
|
116
|
+
z.ZodTypeDef,
|
|
117
|
+
SubmitVendorCredentialRequest
|
|
118
|
+
> = z.object({
|
|
119
|
+
vendorCredentialId: z.number().int(),
|
|
120
|
+
requestBody: z.lazy(() => SubmitVendorCredentialRequestBody$outboundSchema),
|
|
121
|
+
}).transform((v) => {
|
|
122
|
+
return remap$(v, {
|
|
123
|
+
vendorCredentialId: "vendor_credential_id",
|
|
124
|
+
requestBody: "RequestBody",
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @internal
|
|
130
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
131
|
+
*/
|
|
132
|
+
export namespace SubmitVendorCredentialRequest$ {
|
|
133
|
+
/** @deprecated use `SubmitVendorCredentialRequest$inboundSchema` instead. */
|
|
134
|
+
export const inboundSchema = SubmitVendorCredentialRequest$inboundSchema;
|
|
135
|
+
/** @deprecated use `SubmitVendorCredentialRequest$outboundSchema` instead. */
|
|
136
|
+
export const outboundSchema = SubmitVendorCredentialRequest$outboundSchema;
|
|
137
|
+
/** @deprecated use `SubmitVendorCredentialRequest$Outbound` instead. */
|
|
138
|
+
export type Outbound = SubmitVendorCredentialRequest$Outbound;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function submitVendorCredentialRequestToJSON(
|
|
142
|
+
submitVendorCredentialRequest: SubmitVendorCredentialRequest,
|
|
143
|
+
): string {
|
|
144
|
+
return JSON.stringify(
|
|
145
|
+
SubmitVendorCredentialRequest$outboundSchema.parse(
|
|
146
|
+
submitVendorCredentialRequest,
|
|
147
|
+
),
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function submitVendorCredentialRequestFromJSON(
|
|
152
|
+
jsonString: string,
|
|
153
|
+
): SafeParseResult<SubmitVendorCredentialRequest, SDKValidationError> {
|
|
154
|
+
return safeParse(
|
|
155
|
+
jsonString,
|
|
156
|
+
(x) => SubmitVendorCredentialRequest$inboundSchema.parse(JSON.parse(x)),
|
|
157
|
+
`Failed to parse 'SubmitVendorCredentialRequest' from JSON`,
|
|
158
|
+
);
|
|
159
|
+
}
|
package/src/react-query/index.ts
CHANGED
|
@@ -40,6 +40,7 @@ export * from "./vendorsListVendorScrubDetails.js";
|
|
|
40
40
|
export * from "./vendorsListVendorScrubPackages.js";
|
|
41
41
|
export * from "./vendorsListVendorScrubPurchases.js";
|
|
42
42
|
export * from "./vendorsPurchaseScrubCredits.js";
|
|
43
|
+
export * from "./vendorsSubmitVendorCredential.js";
|
|
43
44
|
export * from "./vendorsUpdateVendorDetails.js";
|
|
44
45
|
export * from "./vendorsUpdateVendorManagedByCompany.js";
|
|
45
46
|
export * from "./vendorsUpdateVendorScrubDetails.js";
|
|
@@ -49,6 +49,7 @@ export type VendorsGetVendorsDetailsQueryData = components.Vendor;
|
|
|
49
49
|
* vendor.payment_responsibility
|
|
50
50
|
* vendor.background_check_date_expires
|
|
51
51
|
* vendor.registration_data
|
|
52
|
+
* vendor.registration_finished
|
|
52
53
|
*/
|
|
53
54
|
export function useVendorsGetVendorsDetails(
|
|
54
55
|
request: operations.GetVendorsDetailsRequest,
|
|
@@ -86,6 +87,7 @@ export function useVendorsGetVendorsDetails(
|
|
|
86
87
|
* vendor.payment_responsibility
|
|
87
88
|
* vendor.background_check_date_expires
|
|
88
89
|
* vendor.registration_data
|
|
90
|
+
* vendor.registration_finished
|
|
89
91
|
*/
|
|
90
92
|
export function useVendorsGetVendorsDetailsSuspense(
|
|
91
93
|
request: operations.GetVendorsDetailsRequest,
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
MutationKey,
|
|
7
|
+
useMutation,
|
|
8
|
+
UseMutationResult,
|
|
9
|
+
} from "@tanstack/react-query";
|
|
10
|
+
import { GreenSecurityCore } from "../core.js";
|
|
11
|
+
import { vendorsSubmitVendorCredential } from "../funcs/vendorsSubmitVendorCredential.js";
|
|
12
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import * as operations from "../models/operations/index.js";
|
|
15
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
16
|
+
import { useGreenSecurityContext } from "./_context.js";
|
|
17
|
+
import { MutationHookOptions } from "./_types.js";
|
|
18
|
+
|
|
19
|
+
export type VendorsSubmitVendorCredentialMutationVariables = {
|
|
20
|
+
request: operations.SubmitVendorCredentialRequest;
|
|
21
|
+
options?: RequestOptions;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type VendorsSubmitVendorCredentialMutationData = boolean;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Submit vendor credential
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* It will submit vendor credential
|
|
31
|
+
*/
|
|
32
|
+
export function useVendorsSubmitVendorCredentialMutation(
|
|
33
|
+
options?: MutationHookOptions<
|
|
34
|
+
VendorsSubmitVendorCredentialMutationData,
|
|
35
|
+
Error,
|
|
36
|
+
VendorsSubmitVendorCredentialMutationVariables
|
|
37
|
+
>,
|
|
38
|
+
): UseMutationResult<
|
|
39
|
+
VendorsSubmitVendorCredentialMutationData,
|
|
40
|
+
Error,
|
|
41
|
+
VendorsSubmitVendorCredentialMutationVariables
|
|
42
|
+
> {
|
|
43
|
+
const client = useGreenSecurityContext();
|
|
44
|
+
return useMutation({
|
|
45
|
+
...buildVendorsSubmitVendorCredentialMutation(client, options),
|
|
46
|
+
...options,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function mutationKeyVendorsSubmitVendorCredential(): MutationKey {
|
|
51
|
+
return ["@greensecurity/javascript-sdk", "vendors", "submitVendorCredential"];
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function buildVendorsSubmitVendorCredentialMutation(
|
|
55
|
+
client$: GreenSecurityCore,
|
|
56
|
+
hookOptions?: RequestOptions,
|
|
57
|
+
): {
|
|
58
|
+
mutationKey: MutationKey;
|
|
59
|
+
mutationFn: (
|
|
60
|
+
variables: VendorsSubmitVendorCredentialMutationVariables,
|
|
61
|
+
) => Promise<VendorsSubmitVendorCredentialMutationData>;
|
|
62
|
+
} {
|
|
63
|
+
return {
|
|
64
|
+
mutationKey: mutationKeyVendorsSubmitVendorCredential(),
|
|
65
|
+
mutationFn: function vendorsSubmitVendorCredentialMutationFn({
|
|
66
|
+
request,
|
|
67
|
+
options,
|
|
68
|
+
}): Promise<VendorsSubmitVendorCredentialMutationData> {
|
|
69
|
+
const mergedOptions = {
|
|
70
|
+
...hookOptions,
|
|
71
|
+
...options,
|
|
72
|
+
fetchOptions: {
|
|
73
|
+
...hookOptions?.fetchOptions,
|
|
74
|
+
...options?.fetchOptions,
|
|
75
|
+
signal: combineSignals(
|
|
76
|
+
hookOptions?.fetchOptions?.signal,
|
|
77
|
+
options?.fetchOptions?.signal,
|
|
78
|
+
),
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
return unwrapAsync(vendorsSubmitVendorCredential(
|
|
82
|
+
client$,
|
|
83
|
+
request,
|
|
84
|
+
mergedOptions,
|
|
85
|
+
));
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
}
|
package/src/sdk/vendors.ts
CHANGED
|
@@ -24,6 +24,7 @@ import { vendorsListVendorScrubDetails } from "../funcs/vendorsListVendorScrubDe
|
|
|
24
24
|
import { vendorsListVendorScrubPackages } from "../funcs/vendorsListVendorScrubPackages.js";
|
|
25
25
|
import { vendorsListVendorScrubPurchases } from "../funcs/vendorsListVendorScrubPurchases.js";
|
|
26
26
|
import { vendorsPurchaseScrubCredits } from "../funcs/vendorsPurchaseScrubCredits.js";
|
|
27
|
+
import { vendorsSubmitVendorCredential } from "../funcs/vendorsSubmitVendorCredential.js";
|
|
27
28
|
import { vendorsUpdateVendorDetails } from "../funcs/vendorsUpdateVendorDetails.js";
|
|
28
29
|
import { vendorsUpdateVendorManagedByCompany } from "../funcs/vendorsUpdateVendorManagedByCompany.js";
|
|
29
30
|
import { vendorsUpdateVendorScrubDetails } from "../funcs/vendorsUpdateVendorScrubDetails.js";
|
|
@@ -184,6 +185,23 @@ export class Vendors extends ClientSDK {
|
|
|
184
185
|
));
|
|
185
186
|
}
|
|
186
187
|
|
|
188
|
+
/**
|
|
189
|
+
* Submit vendor credential
|
|
190
|
+
*
|
|
191
|
+
* @remarks
|
|
192
|
+
* It will submit vendor credential
|
|
193
|
+
*/
|
|
194
|
+
async submitVendorCredential(
|
|
195
|
+
request: operations.SubmitVendorCredentialRequest,
|
|
196
|
+
options?: RequestOptions,
|
|
197
|
+
): Promise<boolean> {
|
|
198
|
+
return unwrapAsync(vendorsSubmitVendorCredential(
|
|
199
|
+
this,
|
|
200
|
+
request,
|
|
201
|
+
options,
|
|
202
|
+
));
|
|
203
|
+
}
|
|
204
|
+
|
|
187
205
|
/**
|
|
188
206
|
* Expedite time remaining
|
|
189
207
|
*
|
|
@@ -361,6 +379,7 @@ export class Vendors extends ClientSDK {
|
|
|
361
379
|
* vendor.payment_responsibility
|
|
362
380
|
* vendor.background_check_date_expires
|
|
363
381
|
* vendor.registration_data
|
|
382
|
+
* vendor.registration_finished
|
|
364
383
|
*/
|
|
365
384
|
async getVendorsDetails(
|
|
366
385
|
request: operations.GetVendorsDetailsRequest,
|