@greensecurity/javascript-sdk 0.30.21 → 0.30.25
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/bin/mcp-server.js +46 -29
- package/bin/mcp-server.js.map +13 -12
- package/dist/commonjs/__tests__/vendors.test.js +1 -1
- package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
- package/dist/commonjs/__tests__/webhooks.test.js +1 -1
- package/dist/commonjs/funcs/vendorsListVendorFacilityStatuses.js +1 -0
- package/dist/commonjs/funcs/vendorsListVendorFacilityStatuses.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.js +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/invoice.d.ts +2 -0
- package/dist/commonjs/models/components/invoice.d.ts.map +1 -1
- package/dist/commonjs/models/components/invoice.js +2 -0
- package/dist/commonjs/models/components/invoice.js.map +1 -1
- package/dist/commonjs/models/components/supervisor.d.ts +36 -0
- package/dist/commonjs/models/components/supervisor.d.ts.map +1 -0
- package/dist/commonjs/models/components/supervisor.js +73 -0
- package/dist/commonjs/models/components/supervisor.js.map +1 -0
- package/dist/commonjs/models/components/vendor.d.ts +6 -31
- package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendor.js +4 -34
- package/dist/commonjs/models/components/vendor.js.map +1 -1
- package/dist/commonjs/models/operations/listvendorfacilitystatuses.d.ts +5 -0
- package/dist/commonjs/models/operations/listvendorfacilitystatuses.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listvendorfacilitystatuses.js +4 -0
- package/dist/commonjs/models/operations/listvendorfacilitystatuses.js.map +1 -1
- package/dist/commonjs/models/operations/updatevendordetails.d.ts +5 -0
- package/dist/commonjs/models/operations/updatevendordetails.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatevendordetails.js +2 -0
- package/dist/commonjs/models/operations/updatevendordetails.js.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorFacilityStatuses.d.ts +3 -0
- package/dist/commonjs/react-query/vendorsListVendorFacilityStatuses.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsListVendorFacilityStatuses.js +2 -0
- package/dist/commonjs/react-query/vendorsListVendorFacilityStatuses.js.map +1 -1
- package/dist/esm/__tests__/vendors.test.js +1 -1
- package/dist/esm/__tests__/vendors.test.js.map +1 -1
- package/dist/esm/__tests__/webhooks.test.js +1 -1
- package/dist/esm/funcs/vendorsListVendorFacilityStatuses.js +1 -0
- package/dist/esm/funcs/vendorsListVendorFacilityStatuses.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.js +1 -1
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/invoice.d.ts +2 -0
- package/dist/esm/models/components/invoice.d.ts.map +1 -1
- package/dist/esm/models/components/invoice.js +2 -0
- package/dist/esm/models/components/invoice.js.map +1 -1
- package/dist/esm/models/components/supervisor.d.ts +36 -0
- package/dist/esm/models/components/supervisor.d.ts.map +1 -0
- package/dist/esm/models/components/supervisor.js +35 -0
- package/dist/esm/models/components/supervisor.js.map +1 -0
- package/dist/esm/models/components/vendor.d.ts +6 -31
- package/dist/esm/models/components/vendor.d.ts.map +1 -1
- package/dist/esm/models/components/vendor.js +3 -31
- package/dist/esm/models/components/vendor.js.map +1 -1
- package/dist/esm/models/operations/listvendorfacilitystatuses.d.ts +5 -0
- package/dist/esm/models/operations/listvendorfacilitystatuses.d.ts.map +1 -1
- package/dist/esm/models/operations/listvendorfacilitystatuses.js +4 -0
- package/dist/esm/models/operations/listvendorfacilitystatuses.js.map +1 -1
- package/dist/esm/models/operations/updatevendordetails.d.ts +5 -0
- package/dist/esm/models/operations/updatevendordetails.d.ts.map +1 -1
- package/dist/esm/models/operations/updatevendordetails.js +2 -0
- package/dist/esm/models/operations/updatevendordetails.js.map +1 -1
- package/dist/esm/react-query/vendorsListVendorFacilityStatuses.d.ts +3 -0
- package/dist/esm/react-query/vendorsListVendorFacilityStatuses.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsListVendorFacilityStatuses.js +2 -0
- package/dist/esm/react-query/vendorsListVendorFacilityStatuses.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/vendors.test.ts +1 -1
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/funcs/vendorsListVendorFacilityStatuses.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/invoice.ts +4 -0
- package/src/models/components/supervisor.ts +73 -0
- package/src/models/components/vendor.ts +13 -66
- package/src/models/operations/listvendorfacilitystatuses.ts +9 -0
- package/src/models/operations/updatevendordetails.ts +7 -0
- package/src/react-query/vendorsListVendorFacilityStatuses.ts +5 -0
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@ test("Webhooks List All Webhook Endpoints", async () => {
|
|
|
20
20
|
const testWebhookListForVendorUserResult = await greenSecurity.webhooks
|
|
21
21
|
.listAllWebhookEndpoints({
|
|
22
22
|
itemsPerPage: 25,
|
|
23
|
-
desc:
|
|
23
|
+
desc: 1,
|
|
24
24
|
sort: "",
|
|
25
25
|
});
|
|
26
26
|
expect(testWebhookListForVendorUserResult).toBeDefined();
|
package/src/lib/config.ts
CHANGED
|
@@ -72,8 +72,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
72
72
|
export const SDK_METADATA = {
|
|
73
73
|
language: "typescript",
|
|
74
74
|
openapiDocVersion: "0.0.3",
|
|
75
|
-
sdkVersion: "0.30.
|
|
76
|
-
genVersion: "2.
|
|
75
|
+
sdkVersion: "0.30.25",
|
|
76
|
+
genVersion: "2.570.3",
|
|
77
77
|
userAgent:
|
|
78
|
-
"speakeasy-sdk/typescript 0.30.
|
|
78
|
+
"speakeasy-sdk/typescript 0.30.25 2.570.3 0.0.3 @greensecurity/javascript-sdk",
|
|
79
79
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from "./samlloginrequiredresponse.js";
|
|
|
27
27
|
export * from "./scantype.js";
|
|
28
28
|
export * from "./security.js";
|
|
29
29
|
export * from "./subscription.js";
|
|
30
|
+
export * from "./supervisor.js";
|
|
30
31
|
export * from "./supportarticle.js";
|
|
31
32
|
export * from "./systemsummary.js";
|
|
32
33
|
export * from "./user.js";
|
|
@@ -34,6 +34,7 @@ export type Invoice = {
|
|
|
34
34
|
tax?: number | null | undefined;
|
|
35
35
|
convenienceFee?: number | null | undefined;
|
|
36
36
|
shipping?: number | null | undefined;
|
|
37
|
+
discount?: number | undefined;
|
|
37
38
|
items?: Array<InvoiceItem> | null | undefined;
|
|
38
39
|
transactions?: Array<InvoiceTransaction> | null | undefined;
|
|
39
40
|
};
|
|
@@ -51,6 +52,7 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
|
|
|
51
52
|
tax: z.nullable(z.number().int()).optional(),
|
|
52
53
|
convenience_fee: z.nullable(z.number()).optional(),
|
|
53
54
|
shipping: z.nullable(z.number().int()).optional(),
|
|
55
|
+
discount: z.number().int().optional(),
|
|
54
56
|
items: z.nullable(z.array(InvoiceItem$inboundSchema)).optional(),
|
|
55
57
|
transactions: z.nullable(z.array(InvoiceTransaction$inboundSchema))
|
|
56
58
|
.optional(),
|
|
@@ -76,6 +78,7 @@ export type Invoice$Outbound = {
|
|
|
76
78
|
tax?: number | null | undefined;
|
|
77
79
|
convenience_fee?: number | null | undefined;
|
|
78
80
|
shipping?: number | null | undefined;
|
|
81
|
+
discount?: number | undefined;
|
|
79
82
|
items?: Array<InvoiceItem$Outbound> | null | undefined;
|
|
80
83
|
transactions?: Array<InvoiceTransaction$Outbound> | null | undefined;
|
|
81
84
|
};
|
|
@@ -96,6 +99,7 @@ export const Invoice$outboundSchema: z.ZodType<
|
|
|
96
99
|
tax: z.nullable(z.number().int()).optional(),
|
|
97
100
|
convenienceFee: z.nullable(z.number()).optional(),
|
|
98
101
|
shipping: z.nullable(z.number().int()).optional(),
|
|
102
|
+
discount: z.number().int().optional(),
|
|
99
103
|
items: z.nullable(z.array(InvoiceItem$outboundSchema)).optional(),
|
|
100
104
|
transactions: z.nullable(z.array(InvoiceTransaction$outboundSchema))
|
|
101
105
|
.optional(),
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* list of the vendor supervisor attributes
|
|
12
|
+
*/
|
|
13
|
+
export type Supervisor = {
|
|
14
|
+
name?: string | null | undefined;
|
|
15
|
+
email?: any | undefined;
|
|
16
|
+
phone?: string | null | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const Supervisor$inboundSchema: z.ZodType<
|
|
21
|
+
Supervisor,
|
|
22
|
+
z.ZodTypeDef,
|
|
23
|
+
unknown
|
|
24
|
+
> = z.object({
|
|
25
|
+
name: z.nullable(z.string()).optional(),
|
|
26
|
+
email: z.any().optional(),
|
|
27
|
+
phone: z.nullable(z.string()).optional(),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type Supervisor$Outbound = {
|
|
32
|
+
name?: string | null | undefined;
|
|
33
|
+
email?: any | undefined;
|
|
34
|
+
phone?: string | null | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const Supervisor$outboundSchema: z.ZodType<
|
|
39
|
+
Supervisor$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
Supervisor
|
|
42
|
+
> = z.object({
|
|
43
|
+
name: z.nullable(z.string()).optional(),
|
|
44
|
+
email: z.any().optional(),
|
|
45
|
+
phone: z.nullable(z.string()).optional(),
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
+
*/
|
|
52
|
+
export namespace Supervisor$ {
|
|
53
|
+
/** @deprecated use `Supervisor$inboundSchema` instead. */
|
|
54
|
+
export const inboundSchema = Supervisor$inboundSchema;
|
|
55
|
+
/** @deprecated use `Supervisor$outboundSchema` instead. */
|
|
56
|
+
export const outboundSchema = Supervisor$outboundSchema;
|
|
57
|
+
/** @deprecated use `Supervisor$Outbound` instead. */
|
|
58
|
+
export type Outbound = Supervisor$Outbound;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function supervisorToJSON(supervisor: Supervisor): string {
|
|
62
|
+
return JSON.stringify(Supervisor$outboundSchema.parse(supervisor));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function supervisorFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<Supervisor, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => Supervisor$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'Supervisor' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -37,6 +37,12 @@ import {
|
|
|
37
37
|
Subscription$Outbound,
|
|
38
38
|
Subscription$outboundSchema,
|
|
39
39
|
} from "./subscription.js";
|
|
40
|
+
import {
|
|
41
|
+
Supervisor,
|
|
42
|
+
Supervisor$inboundSchema,
|
|
43
|
+
Supervisor$Outbound,
|
|
44
|
+
Supervisor$outboundSchema,
|
|
45
|
+
} from "./supervisor.js";
|
|
40
46
|
import {
|
|
41
47
|
UserLocation,
|
|
42
48
|
UserLocation$inboundSchema,
|
|
@@ -74,12 +80,6 @@ export type VendorType1 = {
|
|
|
74
80
|
|
|
75
81
|
export type VendorVendorType = VendorType1 | number;
|
|
76
82
|
|
|
77
|
-
export type Supervisor = {
|
|
78
|
-
name?: string | null | undefined;
|
|
79
|
-
email?: string | null | undefined;
|
|
80
|
-
phone?: string | null | undefined;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
83
|
export type PaymentProfile1 = {
|
|
84
84
|
id?: number | undefined;
|
|
85
85
|
isValid?: boolean | null | undefined;
|
|
@@ -125,7 +125,10 @@ export type Vendor = {
|
|
|
125
125
|
title?: string | null | undefined;
|
|
126
126
|
user?: One | number | undefined;
|
|
127
127
|
vendorType?: VendorType1 | number | null | undefined;
|
|
128
|
-
|
|
128
|
+
/**
|
|
129
|
+
* list of the vendor supervisor attributes
|
|
130
|
+
*/
|
|
131
|
+
supervisor?: Supervisor | null | undefined;
|
|
129
132
|
qrCode?: string | null | undefined;
|
|
130
133
|
/**
|
|
131
134
|
* A set of images in different sizes
|
|
@@ -404,62 +407,6 @@ export function vendorVendorTypeFromJSON(
|
|
|
404
407
|
);
|
|
405
408
|
}
|
|
406
409
|
|
|
407
|
-
/** @internal */
|
|
408
|
-
export const Supervisor$inboundSchema: z.ZodType<
|
|
409
|
-
Supervisor,
|
|
410
|
-
z.ZodTypeDef,
|
|
411
|
-
unknown
|
|
412
|
-
> = z.object({
|
|
413
|
-
name: z.nullable(z.string()).optional(),
|
|
414
|
-
email: z.nullable(z.string()).optional(),
|
|
415
|
-
phone: z.nullable(z.string()).optional(),
|
|
416
|
-
});
|
|
417
|
-
|
|
418
|
-
/** @internal */
|
|
419
|
-
export type Supervisor$Outbound = {
|
|
420
|
-
name?: string | null | undefined;
|
|
421
|
-
email?: string | null | undefined;
|
|
422
|
-
phone?: string | null | undefined;
|
|
423
|
-
};
|
|
424
|
-
|
|
425
|
-
/** @internal */
|
|
426
|
-
export const Supervisor$outboundSchema: z.ZodType<
|
|
427
|
-
Supervisor$Outbound,
|
|
428
|
-
z.ZodTypeDef,
|
|
429
|
-
Supervisor
|
|
430
|
-
> = z.object({
|
|
431
|
-
name: z.nullable(z.string()).optional(),
|
|
432
|
-
email: z.nullable(z.string()).optional(),
|
|
433
|
-
phone: z.nullable(z.string()).optional(),
|
|
434
|
-
});
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* @internal
|
|
438
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
439
|
-
*/
|
|
440
|
-
export namespace Supervisor$ {
|
|
441
|
-
/** @deprecated use `Supervisor$inboundSchema` instead. */
|
|
442
|
-
export const inboundSchema = Supervisor$inboundSchema;
|
|
443
|
-
/** @deprecated use `Supervisor$outboundSchema` instead. */
|
|
444
|
-
export const outboundSchema = Supervisor$outboundSchema;
|
|
445
|
-
/** @deprecated use `Supervisor$Outbound` instead. */
|
|
446
|
-
export type Outbound = Supervisor$Outbound;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
export function supervisorToJSON(supervisor: Supervisor): string {
|
|
450
|
-
return JSON.stringify(Supervisor$outboundSchema.parse(supervisor));
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
export function supervisorFromJSON(
|
|
454
|
-
jsonString: string,
|
|
455
|
-
): SafeParseResult<Supervisor, SDKValidationError> {
|
|
456
|
-
return safeParse(
|
|
457
|
-
jsonString,
|
|
458
|
-
(x) => Supervisor$inboundSchema.parse(JSON.parse(x)),
|
|
459
|
-
`Failed to parse 'Supervisor' from JSON`,
|
|
460
|
-
);
|
|
461
|
-
}
|
|
462
|
-
|
|
463
410
|
/** @internal */
|
|
464
411
|
export const PaymentProfile1$inboundSchema: z.ZodType<
|
|
465
412
|
PaymentProfile1,
|
|
@@ -795,7 +742,7 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
|
|
|
795
742
|
vendor_type: z.nullable(
|
|
796
743
|
z.union([z.lazy(() => VendorType1$inboundSchema), z.number().int()]),
|
|
797
744
|
).optional(),
|
|
798
|
-
supervisor: z.
|
|
745
|
+
supervisor: z.nullable(Supervisor$inboundSchema).optional(),
|
|
799
746
|
qr_code: z.nullable(z.string()).optional(),
|
|
800
747
|
head_shot: z.nullable(ImageSet$inboundSchema).optional(),
|
|
801
748
|
drivers_license: z.nullable(ImageSet$inboundSchema).optional(),
|
|
@@ -846,7 +793,7 @@ export type Vendor$Outbound = {
|
|
|
846
793
|
title?: string | null | undefined;
|
|
847
794
|
user?: One$Outbound | number | undefined;
|
|
848
795
|
vendor_type?: VendorType1$Outbound | number | null | undefined;
|
|
849
|
-
supervisor?: Supervisor$Outbound | undefined;
|
|
796
|
+
supervisor?: Supervisor$Outbound | null | undefined;
|
|
850
797
|
qr_code?: string | null | undefined;
|
|
851
798
|
head_shot?: ImageSet$Outbound | null | undefined;
|
|
852
799
|
drivers_license?: ImageSet$Outbound | null | undefined;
|
|
@@ -881,7 +828,7 @@ export const Vendor$outboundSchema: z.ZodType<
|
|
|
881
828
|
vendorType: z.nullable(
|
|
882
829
|
z.union([z.lazy(() => VendorType1$outboundSchema), z.number().int()]),
|
|
883
830
|
).optional(),
|
|
884
|
-
supervisor: z.
|
|
831
|
+
supervisor: z.nullable(Supervisor$outboundSchema).optional(),
|
|
885
832
|
qrCode: z.nullable(z.string()).optional(),
|
|
886
833
|
headShot: z.nullable(ImageSet$outboundSchema).optional(),
|
|
887
834
|
driversLicense: z.nullable(ImageSet$outboundSchema).optional(),
|
|
@@ -30,6 +30,10 @@ export type ListVendorFacilityStatusesRequest = {
|
|
|
30
30
|
* Search for objects in the same scan_type as the search string
|
|
31
31
|
*/
|
|
32
32
|
scanType?: components.ScanType | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* A partial string to search in the facility name. Do not include any wildcard characters. Searches are not case-sensitive by default.
|
|
35
|
+
*/
|
|
36
|
+
facilityNameLike?: string | undefined;
|
|
33
37
|
};
|
|
34
38
|
|
|
35
39
|
/**
|
|
@@ -58,10 +62,12 @@ export const ListVendorFacilityStatusesRequest$inboundSchema: z.ZodType<
|
|
|
58
62
|
page: z.number().int().optional(),
|
|
59
63
|
items_per_page: z.number().int().optional(),
|
|
60
64
|
scan_type: components.ScanType$inboundSchema.optional(),
|
|
65
|
+
facility_name_like: z.string().optional(),
|
|
61
66
|
}).transform((v) => {
|
|
62
67
|
return remap$(v, {
|
|
63
68
|
"items_per_page": "itemsPerPage",
|
|
64
69
|
"scan_type": "scanType",
|
|
70
|
+
"facility_name_like": "facilityNameLike",
|
|
65
71
|
});
|
|
66
72
|
});
|
|
67
73
|
|
|
@@ -72,6 +78,7 @@ export type ListVendorFacilityStatusesRequest$Outbound = {
|
|
|
72
78
|
page?: number | undefined;
|
|
73
79
|
items_per_page?: number | undefined;
|
|
74
80
|
scan_type?: string | undefined;
|
|
81
|
+
facility_name_like?: string | undefined;
|
|
75
82
|
};
|
|
76
83
|
|
|
77
84
|
/** @internal */
|
|
@@ -85,10 +92,12 @@ export const ListVendorFacilityStatusesRequest$outboundSchema: z.ZodType<
|
|
|
85
92
|
page: z.number().int().optional(),
|
|
86
93
|
itemsPerPage: z.number().int().optional(),
|
|
87
94
|
scanType: components.ScanType$outboundSchema.optional(),
|
|
95
|
+
facilityNameLike: z.string().optional(),
|
|
88
96
|
}).transform((v) => {
|
|
89
97
|
return remap$(v, {
|
|
90
98
|
itemsPerPage: "items_per_page",
|
|
91
99
|
scanType: "scan_type",
|
|
100
|
+
facilityNameLike: "facility_name_like",
|
|
92
101
|
});
|
|
93
102
|
});
|
|
94
103
|
|
|
@@ -45,6 +45,10 @@ export type UpdateVendorDetailsRequestBody = {
|
|
|
45
45
|
* Reduced list of attributes of the User Location
|
|
46
46
|
*/
|
|
47
47
|
location?: components.UserLocation | null | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* list of the vendor supervisor attributes
|
|
50
|
+
*/
|
|
51
|
+
supervisor?: components.Supervisor | null | undefined;
|
|
48
52
|
};
|
|
49
53
|
|
|
50
54
|
export type UpdateVendorDetailsRequest = {
|
|
@@ -87,6 +91,7 @@ export const UpdateVendorDetailsRequestBody$inboundSchema: z.ZodType<
|
|
|
87
91
|
send_weekly_summary_email: z.boolean().optional(),
|
|
88
92
|
title: z.string().optional(),
|
|
89
93
|
location: z.nullable(components.UserLocation$inboundSchema).optional(),
|
|
94
|
+
supervisor: z.nullable(components.Supervisor$inboundSchema).optional(),
|
|
90
95
|
}).transform((v) => {
|
|
91
96
|
return remap$(v, {
|
|
92
97
|
"qr_code": "qrCode",
|
|
@@ -102,6 +107,7 @@ export type UpdateVendorDetailsRequestBody$Outbound = {
|
|
|
102
107
|
send_weekly_summary_email?: boolean | undefined;
|
|
103
108
|
title?: string | undefined;
|
|
104
109
|
location?: components.UserLocation$Outbound | null | undefined;
|
|
110
|
+
supervisor?: components.Supervisor$Outbound | null | undefined;
|
|
105
111
|
};
|
|
106
112
|
|
|
107
113
|
/** @internal */
|
|
@@ -115,6 +121,7 @@ export const UpdateVendorDetailsRequestBody$outboundSchema: z.ZodType<
|
|
|
115
121
|
sendWeeklySummaryEmail: z.boolean().optional(),
|
|
116
122
|
title: z.string().optional(),
|
|
117
123
|
location: z.nullable(components.UserLocation$outboundSchema).optional(),
|
|
124
|
+
supervisor: z.nullable(components.Supervisor$outboundSchema).optional(),
|
|
118
125
|
}).transform((v) => {
|
|
119
126
|
return remap$(v, {
|
|
120
127
|
qrCode: "qr_code",
|
|
@@ -193,6 +193,7 @@ export function setVendorsListVendorFacilityStatusesData(
|
|
|
193
193
|
page?: number | undefined;
|
|
194
194
|
itemsPerPage?: number | undefined;
|
|
195
195
|
scanType?: components.ScanType | undefined;
|
|
196
|
+
facilityNameLike?: string | undefined;
|
|
196
197
|
},
|
|
197
198
|
],
|
|
198
199
|
data: VendorsListVendorFacilityStatusesQueryData,
|
|
@@ -214,6 +215,7 @@ export function invalidateVendorsListVendorFacilityStatuses(
|
|
|
214
215
|
page?: number | undefined;
|
|
215
216
|
itemsPerPage?: number | undefined;
|
|
216
217
|
scanType?: components.ScanType | undefined;
|
|
218
|
+
facilityNameLike?: string | undefined;
|
|
217
219
|
}]
|
|
218
220
|
>,
|
|
219
221
|
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
@@ -260,6 +262,7 @@ export function buildVendorsListVendorFacilityStatusesQuery(
|
|
|
260
262
|
page: request.page,
|
|
261
263
|
itemsPerPage: request.itemsPerPage,
|
|
262
264
|
scanType: request.scanType,
|
|
265
|
+
facilityNameLike: request.facilityNameLike,
|
|
263
266
|
}),
|
|
264
267
|
queryFn: async function vendorsListVendorFacilityStatusesQueryFn(
|
|
265
268
|
ctx,
|
|
@@ -299,6 +302,7 @@ export function buildVendorsListVendorFacilityStatusesInfiniteQuery(
|
|
|
299
302
|
page: request.page,
|
|
300
303
|
itemsPerPage: request.itemsPerPage,
|
|
301
304
|
scanType: request.scanType,
|
|
305
|
+
facilityNameLike: request.facilityNameLike,
|
|
302
306
|
}),
|
|
303
307
|
queryFn: async function vendorsListVendorFacilityStatusesQuery(
|
|
304
308
|
ctx,
|
|
@@ -336,6 +340,7 @@ export function queryKeyVendorsListVendorFacilityStatuses(
|
|
|
336
340
|
page?: number | undefined;
|
|
337
341
|
itemsPerPage?: number | undefined;
|
|
338
342
|
scanType?: components.ScanType | undefined;
|
|
343
|
+
facilityNameLike?: string | undefined;
|
|
339
344
|
},
|
|
340
345
|
): QueryKey {
|
|
341
346
|
return [
|