@greensecurity/javascript-sdk 0.35.7 → 0.35.17
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 +137 -58
- package/bin/mcp-server.js.map +14 -13
- package/dist/commonjs/__tests__/zones.test.js +3 -32
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js +1 -0
- package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- 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.js +1 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialDetails.js +2 -1
- package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialDetails.js.map +1 -1
- 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/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/invoicetransaction.d.ts +24 -4
- package/dist/commonjs/models/components/invoicetransaction.d.ts.map +1 -1
- package/dist/commonjs/models/components/invoicetransaction.js +29 -7
- package/dist/commonjs/models/components/invoicetransaction.js.map +1 -1
- package/dist/commonjs/models/components/paymentprofile.d.ts +105 -0
- package/dist/commonjs/models/components/paymentprofile.d.ts.map +1 -0
- package/dist/commonjs/models/components/paymentprofile.js +172 -0
- package/dist/commonjs/models/components/paymentprofile.js.map +1 -0
- package/dist/commonjs/models/components/vendor.d.ts +56 -56
- package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendor.js +73 -74
- package/dist/commonjs/models/components/vendor.js.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +2 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendorcredentialsummary.js +4 -0
- package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts +2 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js +2 -0
- package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/commonjs/sdk/vendors.d.ts +1 -0
- package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
- package/dist/commonjs/sdk/vendors.js +1 -0
- package/dist/commonjs/sdk/vendors.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +3 -32
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts +1 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js +1 -0
- package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- 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.js +1 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialDetails.js +2 -1
- package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialDetails.js.map +1 -1
- 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/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/invoicetransaction.d.ts +24 -4
- package/dist/esm/models/components/invoicetransaction.d.ts.map +1 -1
- package/dist/esm/models/components/invoicetransaction.js +26 -6
- package/dist/esm/models/components/invoicetransaction.js.map +1 -1
- package/dist/esm/models/components/paymentprofile.d.ts +105 -0
- package/dist/esm/models/components/paymentprofile.d.ts.map +1 -0
- package/dist/esm/models/components/paymentprofile.js +128 -0
- package/dist/esm/models/components/paymentprofile.js.map +1 -0
- package/dist/esm/models/components/vendor.d.ts +56 -56
- package/dist/esm/models/components/vendor.d.ts.map +1 -1
- package/dist/esm/models/components/vendor.js +64 -65
- package/dist/esm/models/components/vendor.js.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.d.ts +2 -0
- package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
- package/dist/esm/models/components/vendorcredentialsummary.js +4 -0
- package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts +2 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js +2 -0
- package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js.map +1 -1
- package/dist/esm/sdk/vendors.d.ts +1 -0
- package/dist/esm/sdk/vendors.d.ts.map +1 -1
- package/dist/esm/sdk/vendors.js +1 -0
- package/dist/esm/sdk/vendors.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/zones.test.ts +3 -32
- package/src/funcs/vendorsGetVendorCredentialDetails.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/vendorsGetVendorCredentialDetails.ts +2 -1
- package/src/models/components/expand.ts +2 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/invoicetransaction.ts +70 -10
- package/src/models/components/paymentprofile.ts +247 -0
- package/src/models/components/vendor.ts +130 -103
- package/src/models/components/vendorcredentialsummary.ts +6 -0
- package/src/react-query/vendorsGetVendorCredentialDetails.ts +2 -0
- package/src/sdk/vendors.ts +1 -0
|
@@ -89,11 +89,11 @@ export type VendorJob = VendorJobTitle | number;
|
|
|
89
89
|
|
|
90
90
|
export type VendorVendorType = VendorType | number;
|
|
91
91
|
|
|
92
|
-
export type
|
|
92
|
+
export type Vendor22 = {};
|
|
93
93
|
|
|
94
|
-
export type
|
|
94
|
+
export type VendorPaymentProfile2 = Vendor22 | number;
|
|
95
95
|
|
|
96
|
-
export type
|
|
96
|
+
export type VendorPaymentProfile1 = {
|
|
97
97
|
id?: number | undefined;
|
|
98
98
|
isValid?: boolean | null | undefined;
|
|
99
99
|
cardType?: string | null | undefined;
|
|
@@ -105,9 +105,16 @@ export type PaymentProfile1 = {
|
|
|
105
105
|
/**
|
|
106
106
|
* Reduced list of attributes of the Payment Profile record
|
|
107
107
|
*/
|
|
108
|
-
export type PaymentProfilePaymentProfile =
|
|
108
|
+
export type PaymentProfilePaymentProfile =
|
|
109
|
+
| VendorPaymentProfile1
|
|
110
|
+
| Vendor22
|
|
111
|
+
| number;
|
|
109
112
|
|
|
110
|
-
export type
|
|
113
|
+
export type VendorPaymentProfile =
|
|
114
|
+
| VendorPaymentProfile1
|
|
115
|
+
| Vendor22
|
|
116
|
+
| number
|
|
117
|
+
| number;
|
|
111
118
|
|
|
112
119
|
export type PaymentResponsibility = {
|
|
113
120
|
id?: number | null | undefined;
|
|
@@ -158,7 +165,13 @@ export type Vendor = {
|
|
|
158
165
|
* A set of images in different sizes
|
|
159
166
|
*/
|
|
160
167
|
imageUrls?: ImageSet | null | undefined;
|
|
161
|
-
paymentProfile?:
|
|
168
|
+
paymentProfile?:
|
|
169
|
+
| VendorPaymentProfile1
|
|
170
|
+
| Vendor22
|
|
171
|
+
| number
|
|
172
|
+
| number
|
|
173
|
+
| null
|
|
174
|
+
| undefined;
|
|
162
175
|
/**
|
|
163
176
|
* Describes a facility which typically represents a physical building or logical grouping of offices which act as a single entity.
|
|
164
177
|
*/
|
|
@@ -415,92 +428,100 @@ export function vendorVendorTypeFromJSON(
|
|
|
415
428
|
}
|
|
416
429
|
|
|
417
430
|
/** @internal */
|
|
418
|
-
export const
|
|
419
|
-
|
|
431
|
+
export const Vendor22$inboundSchema: z.ZodType<
|
|
432
|
+
Vendor22,
|
|
433
|
+
z.ZodTypeDef,
|
|
434
|
+
unknown
|
|
435
|
+
> = z.object({});
|
|
420
436
|
|
|
421
437
|
/** @internal */
|
|
422
|
-
export type
|
|
438
|
+
export type Vendor22$Outbound = {};
|
|
423
439
|
|
|
424
440
|
/** @internal */
|
|
425
|
-
export const
|
|
426
|
-
|
|
441
|
+
export const Vendor22$outboundSchema: z.ZodType<
|
|
442
|
+
Vendor22$Outbound,
|
|
443
|
+
z.ZodTypeDef,
|
|
444
|
+
Vendor22
|
|
445
|
+
> = z.object({});
|
|
427
446
|
|
|
428
447
|
/**
|
|
429
448
|
* @internal
|
|
430
449
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
431
450
|
*/
|
|
432
|
-
export namespace
|
|
433
|
-
/** @deprecated use `
|
|
434
|
-
export const inboundSchema =
|
|
435
|
-
/** @deprecated use `
|
|
436
|
-
export const outboundSchema =
|
|
437
|
-
/** @deprecated use `
|
|
438
|
-
export type Outbound =
|
|
451
|
+
export namespace Vendor22$ {
|
|
452
|
+
/** @deprecated use `Vendor22$inboundSchema` instead. */
|
|
453
|
+
export const inboundSchema = Vendor22$inboundSchema;
|
|
454
|
+
/** @deprecated use `Vendor22$outboundSchema` instead. */
|
|
455
|
+
export const outboundSchema = Vendor22$outboundSchema;
|
|
456
|
+
/** @deprecated use `Vendor22$Outbound` instead. */
|
|
457
|
+
export type Outbound = Vendor22$Outbound;
|
|
439
458
|
}
|
|
440
459
|
|
|
441
|
-
export function
|
|
442
|
-
return JSON.stringify(
|
|
460
|
+
export function vendor22ToJSON(vendor22: Vendor22): string {
|
|
461
|
+
return JSON.stringify(Vendor22$outboundSchema.parse(vendor22));
|
|
443
462
|
}
|
|
444
463
|
|
|
445
|
-
export function
|
|
464
|
+
export function vendor22FromJSON(
|
|
446
465
|
jsonString: string,
|
|
447
|
-
): SafeParseResult<
|
|
466
|
+
): SafeParseResult<Vendor22, SDKValidationError> {
|
|
448
467
|
return safeParse(
|
|
449
468
|
jsonString,
|
|
450
|
-
(x) =>
|
|
451
|
-
`Failed to parse '
|
|
469
|
+
(x) => Vendor22$inboundSchema.parse(JSON.parse(x)),
|
|
470
|
+
`Failed to parse 'Vendor22' from JSON`,
|
|
452
471
|
);
|
|
453
472
|
}
|
|
454
473
|
|
|
455
474
|
/** @internal */
|
|
456
|
-
export const
|
|
457
|
-
|
|
475
|
+
export const VendorPaymentProfile2$inboundSchema: z.ZodType<
|
|
476
|
+
VendorPaymentProfile2,
|
|
458
477
|
z.ZodTypeDef,
|
|
459
478
|
unknown
|
|
460
|
-
> = z.union([z.lazy(() =>
|
|
479
|
+
> = z.union([z.lazy(() => Vendor22$inboundSchema), z.number().int()]);
|
|
461
480
|
|
|
462
481
|
/** @internal */
|
|
463
|
-
export type
|
|
482
|
+
export type VendorPaymentProfile2$Outbound = Vendor22$Outbound | number;
|
|
464
483
|
|
|
465
484
|
/** @internal */
|
|
466
|
-
export const
|
|
467
|
-
|
|
485
|
+
export const VendorPaymentProfile2$outboundSchema: z.ZodType<
|
|
486
|
+
VendorPaymentProfile2$Outbound,
|
|
468
487
|
z.ZodTypeDef,
|
|
469
|
-
|
|
470
|
-
> = z.union([z.lazy(() =>
|
|
488
|
+
VendorPaymentProfile2
|
|
489
|
+
> = z.union([z.lazy(() => Vendor22$outboundSchema), z.number().int()]);
|
|
471
490
|
|
|
472
491
|
/**
|
|
473
492
|
* @internal
|
|
474
493
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
475
494
|
*/
|
|
476
|
-
export namespace
|
|
477
|
-
/** @deprecated use `
|
|
478
|
-
export const inboundSchema =
|
|
479
|
-
/** @deprecated use `
|
|
480
|
-
export const outboundSchema =
|
|
481
|
-
/** @deprecated use `
|
|
482
|
-
export type Outbound =
|
|
495
|
+
export namespace VendorPaymentProfile2$ {
|
|
496
|
+
/** @deprecated use `VendorPaymentProfile2$inboundSchema` instead. */
|
|
497
|
+
export const inboundSchema = VendorPaymentProfile2$inboundSchema;
|
|
498
|
+
/** @deprecated use `VendorPaymentProfile2$outboundSchema` instead. */
|
|
499
|
+
export const outboundSchema = VendorPaymentProfile2$outboundSchema;
|
|
500
|
+
/** @deprecated use `VendorPaymentProfile2$Outbound` instead. */
|
|
501
|
+
export type Outbound = VendorPaymentProfile2$Outbound;
|
|
483
502
|
}
|
|
484
503
|
|
|
485
|
-
export function
|
|
486
|
-
|
|
504
|
+
export function vendorPaymentProfile2ToJSON(
|
|
505
|
+
vendorPaymentProfile2: VendorPaymentProfile2,
|
|
487
506
|
): string {
|
|
488
|
-
return JSON.stringify(
|
|
507
|
+
return JSON.stringify(
|
|
508
|
+
VendorPaymentProfile2$outboundSchema.parse(vendorPaymentProfile2),
|
|
509
|
+
);
|
|
489
510
|
}
|
|
490
511
|
|
|
491
|
-
export function
|
|
512
|
+
export function vendorPaymentProfile2FromJSON(
|
|
492
513
|
jsonString: string,
|
|
493
|
-
): SafeParseResult<
|
|
514
|
+
): SafeParseResult<VendorPaymentProfile2, SDKValidationError> {
|
|
494
515
|
return safeParse(
|
|
495
516
|
jsonString,
|
|
496
|
-
(x) =>
|
|
497
|
-
`Failed to parse '
|
|
517
|
+
(x) => VendorPaymentProfile2$inboundSchema.parse(JSON.parse(x)),
|
|
518
|
+
`Failed to parse 'VendorPaymentProfile2' from JSON`,
|
|
498
519
|
);
|
|
499
520
|
}
|
|
500
521
|
|
|
501
522
|
/** @internal */
|
|
502
|
-
export const
|
|
503
|
-
|
|
523
|
+
export const VendorPaymentProfile1$inboundSchema: z.ZodType<
|
|
524
|
+
VendorPaymentProfile1,
|
|
504
525
|
z.ZodTypeDef,
|
|
505
526
|
unknown
|
|
506
527
|
> = z.object({
|
|
@@ -521,7 +542,7 @@ export const PaymentProfile1$inboundSchema: z.ZodType<
|
|
|
521
542
|
});
|
|
522
543
|
|
|
523
544
|
/** @internal */
|
|
524
|
-
export type
|
|
545
|
+
export type VendorPaymentProfile1$Outbound = {
|
|
525
546
|
id?: number | undefined;
|
|
526
547
|
is_valid?: boolean | null | undefined;
|
|
527
548
|
card_type?: string | null | undefined;
|
|
@@ -531,10 +552,10 @@ export type PaymentProfile1$Outbound = {
|
|
|
531
552
|
};
|
|
532
553
|
|
|
533
554
|
/** @internal */
|
|
534
|
-
export const
|
|
535
|
-
|
|
555
|
+
export const VendorPaymentProfile1$outboundSchema: z.ZodType<
|
|
556
|
+
VendorPaymentProfile1$Outbound,
|
|
536
557
|
z.ZodTypeDef,
|
|
537
|
-
|
|
558
|
+
VendorPaymentProfile1
|
|
538
559
|
> = z.object({
|
|
539
560
|
id: z.number().int().optional(),
|
|
540
561
|
isValid: z.nullable(z.boolean()).optional(),
|
|
@@ -556,28 +577,30 @@ export const PaymentProfile1$outboundSchema: z.ZodType<
|
|
|
556
577
|
* @internal
|
|
557
578
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
558
579
|
*/
|
|
559
|
-
export namespace
|
|
560
|
-
/** @deprecated use `
|
|
561
|
-
export const inboundSchema =
|
|
562
|
-
/** @deprecated use `
|
|
563
|
-
export const outboundSchema =
|
|
564
|
-
/** @deprecated use `
|
|
565
|
-
export type Outbound =
|
|
580
|
+
export namespace VendorPaymentProfile1$ {
|
|
581
|
+
/** @deprecated use `VendorPaymentProfile1$inboundSchema` instead. */
|
|
582
|
+
export const inboundSchema = VendorPaymentProfile1$inboundSchema;
|
|
583
|
+
/** @deprecated use `VendorPaymentProfile1$outboundSchema` instead. */
|
|
584
|
+
export const outboundSchema = VendorPaymentProfile1$outboundSchema;
|
|
585
|
+
/** @deprecated use `VendorPaymentProfile1$Outbound` instead. */
|
|
586
|
+
export type Outbound = VendorPaymentProfile1$Outbound;
|
|
566
587
|
}
|
|
567
588
|
|
|
568
|
-
export function
|
|
569
|
-
|
|
589
|
+
export function vendorPaymentProfile1ToJSON(
|
|
590
|
+
vendorPaymentProfile1: VendorPaymentProfile1,
|
|
570
591
|
): string {
|
|
571
|
-
return JSON.stringify(
|
|
592
|
+
return JSON.stringify(
|
|
593
|
+
VendorPaymentProfile1$outboundSchema.parse(vendorPaymentProfile1),
|
|
594
|
+
);
|
|
572
595
|
}
|
|
573
596
|
|
|
574
|
-
export function
|
|
597
|
+
export function vendorPaymentProfile1FromJSON(
|
|
575
598
|
jsonString: string,
|
|
576
|
-
): SafeParseResult<
|
|
599
|
+
): SafeParseResult<VendorPaymentProfile1, SDKValidationError> {
|
|
577
600
|
return safeParse(
|
|
578
601
|
jsonString,
|
|
579
|
-
(x) =>
|
|
580
|
-
`Failed to parse '
|
|
602
|
+
(x) => VendorPaymentProfile1$inboundSchema.parse(JSON.parse(x)),
|
|
603
|
+
`Failed to parse 'VendorPaymentProfile1' from JSON`,
|
|
581
604
|
);
|
|
582
605
|
}
|
|
583
606
|
|
|
@@ -587,14 +610,14 @@ export const PaymentProfilePaymentProfile$inboundSchema: z.ZodType<
|
|
|
587
610
|
z.ZodTypeDef,
|
|
588
611
|
unknown
|
|
589
612
|
> = z.union([
|
|
590
|
-
z.lazy(() =>
|
|
591
|
-
z.union([z.lazy(() =>
|
|
613
|
+
z.lazy(() => VendorPaymentProfile1$inboundSchema),
|
|
614
|
+
z.union([z.lazy(() => Vendor22$inboundSchema), z.number().int()]),
|
|
592
615
|
]);
|
|
593
616
|
|
|
594
617
|
/** @internal */
|
|
595
618
|
export type PaymentProfilePaymentProfile$Outbound =
|
|
596
|
-
|
|
|
597
|
-
|
|
|
619
|
+
| VendorPaymentProfile1$Outbound
|
|
620
|
+
| Vendor22$Outbound
|
|
598
621
|
| number;
|
|
599
622
|
|
|
600
623
|
/** @internal */
|
|
@@ -603,8 +626,8 @@ export const PaymentProfilePaymentProfile$outboundSchema: z.ZodType<
|
|
|
603
626
|
z.ZodTypeDef,
|
|
604
627
|
PaymentProfilePaymentProfile
|
|
605
628
|
> = z.union([
|
|
606
|
-
z.lazy(() =>
|
|
607
|
-
z.union([z.lazy(() =>
|
|
629
|
+
z.lazy(() => VendorPaymentProfile1$outboundSchema),
|
|
630
|
+
z.union([z.lazy(() => Vendor22$outboundSchema), z.number().int()]),
|
|
608
631
|
]);
|
|
609
632
|
|
|
610
633
|
/**
|
|
@@ -641,34 +664,34 @@ export function paymentProfilePaymentProfileFromJSON(
|
|
|
641
664
|
}
|
|
642
665
|
|
|
643
666
|
/** @internal */
|
|
644
|
-
export const
|
|
645
|
-
|
|
667
|
+
export const VendorPaymentProfile$inboundSchema: z.ZodType<
|
|
668
|
+
VendorPaymentProfile,
|
|
646
669
|
z.ZodTypeDef,
|
|
647
670
|
unknown
|
|
648
671
|
> = z.union([
|
|
649
672
|
z.union([
|
|
650
|
-
z.lazy(() =>
|
|
651
|
-
z.union([z.lazy(() =>
|
|
673
|
+
z.lazy(() => VendorPaymentProfile1$inboundSchema),
|
|
674
|
+
z.union([z.lazy(() => Vendor22$inboundSchema), z.number().int()]),
|
|
652
675
|
]),
|
|
653
676
|
z.number().int(),
|
|
654
677
|
]);
|
|
655
678
|
|
|
656
679
|
/** @internal */
|
|
657
|
-
export type
|
|
658
|
-
|
|
|
659
|
-
|
|
|
680
|
+
export type VendorPaymentProfile$Outbound =
|
|
681
|
+
| VendorPaymentProfile1$Outbound
|
|
682
|
+
| Vendor22$Outbound
|
|
660
683
|
| number
|
|
661
684
|
| number;
|
|
662
685
|
|
|
663
686
|
/** @internal */
|
|
664
|
-
export const
|
|
665
|
-
|
|
687
|
+
export const VendorPaymentProfile$outboundSchema: z.ZodType<
|
|
688
|
+
VendorPaymentProfile$Outbound,
|
|
666
689
|
z.ZodTypeDef,
|
|
667
|
-
|
|
690
|
+
VendorPaymentProfile
|
|
668
691
|
> = z.union([
|
|
669
692
|
z.union([
|
|
670
|
-
z.lazy(() =>
|
|
671
|
-
z.union([z.lazy(() =>
|
|
693
|
+
z.lazy(() => VendorPaymentProfile1$outboundSchema),
|
|
694
|
+
z.union([z.lazy(() => Vendor22$outboundSchema), z.number().int()]),
|
|
672
695
|
]),
|
|
673
696
|
z.number().int(),
|
|
674
697
|
]);
|
|
@@ -677,26 +700,30 @@ export const PaymentProfile$outboundSchema: z.ZodType<
|
|
|
677
700
|
* @internal
|
|
678
701
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
679
702
|
*/
|
|
680
|
-
export namespace
|
|
681
|
-
/** @deprecated use `
|
|
682
|
-
export const inboundSchema =
|
|
683
|
-
/** @deprecated use `
|
|
684
|
-
export const outboundSchema =
|
|
685
|
-
/** @deprecated use `
|
|
686
|
-
export type Outbound =
|
|
703
|
+
export namespace VendorPaymentProfile$ {
|
|
704
|
+
/** @deprecated use `VendorPaymentProfile$inboundSchema` instead. */
|
|
705
|
+
export const inboundSchema = VendorPaymentProfile$inboundSchema;
|
|
706
|
+
/** @deprecated use `VendorPaymentProfile$outboundSchema` instead. */
|
|
707
|
+
export const outboundSchema = VendorPaymentProfile$outboundSchema;
|
|
708
|
+
/** @deprecated use `VendorPaymentProfile$Outbound` instead. */
|
|
709
|
+
export type Outbound = VendorPaymentProfile$Outbound;
|
|
687
710
|
}
|
|
688
711
|
|
|
689
|
-
export function
|
|
690
|
-
|
|
712
|
+
export function vendorPaymentProfileToJSON(
|
|
713
|
+
vendorPaymentProfile: VendorPaymentProfile,
|
|
714
|
+
): string {
|
|
715
|
+
return JSON.stringify(
|
|
716
|
+
VendorPaymentProfile$outboundSchema.parse(vendorPaymentProfile),
|
|
717
|
+
);
|
|
691
718
|
}
|
|
692
719
|
|
|
693
|
-
export function
|
|
720
|
+
export function vendorPaymentProfileFromJSON(
|
|
694
721
|
jsonString: string,
|
|
695
|
-
): SafeParseResult<
|
|
722
|
+
): SafeParseResult<VendorPaymentProfile, SDKValidationError> {
|
|
696
723
|
return safeParse(
|
|
697
724
|
jsonString,
|
|
698
|
-
(x) =>
|
|
699
|
-
`Failed to parse '
|
|
725
|
+
(x) => VendorPaymentProfile$inboundSchema.parse(JSON.parse(x)),
|
|
726
|
+
`Failed to parse 'VendorPaymentProfile' from JSON`,
|
|
700
727
|
);
|
|
701
728
|
}
|
|
702
729
|
|
|
@@ -860,8 +887,8 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
|
|
|
860
887
|
payment_profile: z.nullable(
|
|
861
888
|
z.union([
|
|
862
889
|
z.union([
|
|
863
|
-
z.lazy(() =>
|
|
864
|
-
z.union([z.lazy(() =>
|
|
890
|
+
z.lazy(() => VendorPaymentProfile1$inboundSchema),
|
|
891
|
+
z.union([z.lazy(() => Vendor22$inboundSchema), z.number().int()]),
|
|
865
892
|
]),
|
|
866
893
|
z.number().int(),
|
|
867
894
|
]),
|
|
@@ -915,8 +942,8 @@ export type Vendor$Outbound = {
|
|
|
915
942
|
drivers_license?: ImageSet$Outbound | null | undefined;
|
|
916
943
|
image_urls?: ImageSet$Outbound | null | undefined;
|
|
917
944
|
payment_profile?:
|
|
918
|
-
|
|
|
919
|
-
|
|
|
945
|
+
| VendorPaymentProfile1$Outbound
|
|
946
|
+
| Vendor22$Outbound
|
|
920
947
|
| number
|
|
921
948
|
| number
|
|
922
949
|
| null
|
|
@@ -957,8 +984,8 @@ export const Vendor$outboundSchema: z.ZodType<
|
|
|
957
984
|
paymentProfile: z.nullable(
|
|
958
985
|
z.union([
|
|
959
986
|
z.union([
|
|
960
|
-
z.lazy(() =>
|
|
961
|
-
z.union([z.lazy(() =>
|
|
987
|
+
z.lazy(() => VendorPaymentProfile1$outboundSchema),
|
|
988
|
+
z.union([z.lazy(() => Vendor22$outboundSchema), z.number().int()]),
|
|
962
989
|
]),
|
|
963
990
|
z.number().int(),
|
|
964
991
|
]),
|
|
@@ -113,6 +113,7 @@ export type VendorCredentialSummary = {
|
|
|
113
113
|
| undefined;
|
|
114
114
|
credentialVariants?: Array<any> | null | undefined;
|
|
115
115
|
targetsChop?: boolean | null | undefined;
|
|
116
|
+
totalPendingCredentials?: number | undefined;
|
|
116
117
|
};
|
|
117
118
|
|
|
118
119
|
/** @internal */
|
|
@@ -472,6 +473,7 @@ export const VendorCredentialSummary$inboundSchema: z.ZodType<
|
|
|
472
473
|
).optional(),
|
|
473
474
|
credential_variants: z.nullable(z.array(z.any())).optional(),
|
|
474
475
|
targets_chop: z.nullable(z.boolean()).optional(),
|
|
476
|
+
total_pending_credentials: z.number().int().optional(),
|
|
475
477
|
}).transform((v) => {
|
|
476
478
|
return remap$(v, {
|
|
477
479
|
"date_due": "dateDue",
|
|
@@ -492,6 +494,7 @@ export const VendorCredentialSummary$inboundSchema: z.ZodType<
|
|
|
492
494
|
"vendor_credential_data_requests": "vendorCredentialDataRequests",
|
|
493
495
|
"credential_variants": "credentialVariants",
|
|
494
496
|
"targets_chop": "targetsChop",
|
|
497
|
+
"total_pending_credentials": "totalPendingCredentials",
|
|
495
498
|
});
|
|
496
499
|
});
|
|
497
500
|
|
|
@@ -532,6 +535,7 @@ export type VendorCredentialSummary$Outbound = {
|
|
|
532
535
|
| undefined;
|
|
533
536
|
credential_variants?: Array<any> | null | undefined;
|
|
534
537
|
targets_chop?: boolean | null | undefined;
|
|
538
|
+
total_pending_credentials?: number | undefined;
|
|
535
539
|
};
|
|
536
540
|
|
|
537
541
|
/** @internal */
|
|
@@ -581,6 +585,7 @@ export const VendorCredentialSummary$outboundSchema: z.ZodType<
|
|
|
581
585
|
).optional(),
|
|
582
586
|
credentialVariants: z.nullable(z.array(z.any())).optional(),
|
|
583
587
|
targetsChop: z.nullable(z.boolean()).optional(),
|
|
588
|
+
totalPendingCredentials: z.number().int().optional(),
|
|
584
589
|
}).transform((v) => {
|
|
585
590
|
return remap$(v, {
|
|
586
591
|
dateDue: "date_due",
|
|
@@ -601,6 +606,7 @@ export const VendorCredentialSummary$outboundSchema: z.ZodType<
|
|
|
601
606
|
vendorCredentialDataRequests: "vendor_credential_data_requests",
|
|
602
607
|
credentialVariants: "credential_variants",
|
|
603
608
|
targetsChop: "targets_chop",
|
|
609
|
+
totalPendingCredentials: "total_pending_credentials",
|
|
604
610
|
});
|
|
605
611
|
});
|
|
606
612
|
|
|
@@ -51,6 +51,7 @@ export type VendorsGetVendorCredentialDetailsQueryData =
|
|
|
51
51
|
* - vendor_credential.vendor_credential_data_requests
|
|
52
52
|
* - vendor_credential.credential_variants
|
|
53
53
|
* - vendor_credential.targets_chop
|
|
54
|
+
* - vendor_credential.total_pending_credentials
|
|
54
55
|
*/
|
|
55
56
|
export function useVendorsGetVendorCredentialDetails(
|
|
56
57
|
request: operations.GetVendorCredentialDetailsRequest,
|
|
@@ -89,6 +90,7 @@ export function useVendorsGetVendorCredentialDetails(
|
|
|
89
90
|
* - vendor_credential.vendor_credential_data_requests
|
|
90
91
|
* - vendor_credential.credential_variants
|
|
91
92
|
* - vendor_credential.targets_chop
|
|
93
|
+
* - vendor_credential.total_pending_credentials
|
|
92
94
|
*/
|
|
93
95
|
export function useVendorsGetVendorCredentialDetailsSuspense(
|
|
94
96
|
request: operations.GetVendorCredentialDetailsRequest,
|
package/src/sdk/vendors.ts
CHANGED
|
@@ -123,6 +123,7 @@ export class Vendors extends ClientSDK {
|
|
|
123
123
|
* - vendor_credential.vendor_credential_data_requests
|
|
124
124
|
* - vendor_credential.credential_variants
|
|
125
125
|
* - vendor_credential.targets_chop
|
|
126
|
+
* - vendor_credential.total_pending_credentials
|
|
126
127
|
*/
|
|
127
128
|
async getVendorCredentialDetails(
|
|
128
129
|
request: operations.GetVendorCredentialDetailsRequest,
|