@greensecurity/javascript-sdk 0.40.8-beta.32 → 0.40.8-beta.33
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/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 +6 -4
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/components/paymentprofile.d.ts +4 -4
- package/dist/commonjs/models/components/paymentprofile.d.ts.map +1 -1
- package/dist/commonjs/models/components/paymentprofile.js +4 -4
- package/dist/commonjs/models/components/paymentprofile.js.map +1 -1
- package/dist/commonjs/models/components/vendor.d.ts +8 -8
- package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
- package/dist/commonjs/models/components/vendor.js +14 -8
- package/dist/commonjs/models/components/vendor.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 +6 -4
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/components/paymentprofile.d.ts +4 -4
- package/dist/esm/models/components/paymentprofile.d.ts.map +1 -1
- package/dist/esm/models/components/paymentprofile.js +4 -4
- package/dist/esm/models/components/paymentprofile.js.map +1 -1
- package/dist/esm/models/components/vendor.d.ts +8 -8
- package/dist/esm/models/components/vendor.d.ts.map +1 -1
- package/dist/esm/models/components/vendor.js +14 -8
- package/dist/esm/models/components/vendor.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/webhooks.test.ts +1 -1
- package/src/__tests__/zones.test.ts +6 -4
- package/src/lib/config.ts +3 -3
- package/src/models/components/paymentprofile.ts +9 -9
- package/src/models/components/vendor.ts +24 -18
|
@@ -115,7 +115,7 @@ export type VendorVendorType = VendorType | number;
|
|
|
115
115
|
|
|
116
116
|
export type Vendor22 = {};
|
|
117
117
|
|
|
118
|
-
export type VendorPaymentProfile2 =
|
|
118
|
+
export type VendorPaymentProfile2 = number | Vendor22;
|
|
119
119
|
|
|
120
120
|
export type VendorPaymentProfile1 = {
|
|
121
121
|
id?: number | undefined;
|
|
@@ -131,13 +131,13 @@ export type VendorPaymentProfile1 = {
|
|
|
131
131
|
*/
|
|
132
132
|
export type PaymentProfilePaymentProfile =
|
|
133
133
|
| VendorPaymentProfile1
|
|
134
|
-
|
|
|
135
|
-
|
|
|
134
|
+
| number
|
|
135
|
+
| Vendor22;
|
|
136
136
|
|
|
137
137
|
export type VendorPaymentProfile =
|
|
138
138
|
| VendorPaymentProfile1
|
|
139
|
-
| Vendor22
|
|
140
139
|
| number
|
|
140
|
+
| Vendor22
|
|
141
141
|
| number;
|
|
142
142
|
|
|
143
143
|
export type CompanySummary = {
|
|
@@ -201,8 +201,8 @@ export type Vendor = {
|
|
|
201
201
|
imageUrls?: ImageSet | null | undefined;
|
|
202
202
|
paymentProfile?:
|
|
203
203
|
| VendorPaymentProfile1
|
|
204
|
-
| Vendor22
|
|
205
204
|
| number
|
|
205
|
+
| Vendor22
|
|
206
206
|
| number
|
|
207
207
|
| null
|
|
208
208
|
| undefined;
|
|
@@ -517,17 +517,17 @@ export const VendorPaymentProfile2$inboundSchema: z.ZodType<
|
|
|
517
517
|
VendorPaymentProfile2,
|
|
518
518
|
z.ZodTypeDef,
|
|
519
519
|
unknown
|
|
520
|
-
> = z.union([z.lazy(() => Vendor22$inboundSchema)
|
|
520
|
+
> = z.union([z.number().int(), z.lazy(() => Vendor22$inboundSchema)]);
|
|
521
521
|
|
|
522
522
|
/** @internal */
|
|
523
|
-
export type VendorPaymentProfile2$Outbound = Vendor22$Outbound
|
|
523
|
+
export type VendorPaymentProfile2$Outbound = number | Vendor22$Outbound;
|
|
524
524
|
|
|
525
525
|
/** @internal */
|
|
526
526
|
export const VendorPaymentProfile2$outboundSchema: z.ZodType<
|
|
527
527
|
VendorPaymentProfile2$Outbound,
|
|
528
528
|
z.ZodTypeDef,
|
|
529
529
|
VendorPaymentProfile2
|
|
530
|
-
> = z.union([z.lazy(() => Vendor22$outboundSchema)
|
|
530
|
+
> = z.union([z.number().int(), z.lazy(() => Vendor22$outboundSchema)]);
|
|
531
531
|
|
|
532
532
|
/**
|
|
533
533
|
* @internal
|
|
@@ -652,14 +652,14 @@ export const PaymentProfilePaymentProfile$inboundSchema: z.ZodType<
|
|
|
652
652
|
unknown
|
|
653
653
|
> = z.union([
|
|
654
654
|
z.lazy(() => VendorPaymentProfile1$inboundSchema),
|
|
655
|
-
z.union([z.lazy(() => Vendor22$inboundSchema)
|
|
655
|
+
z.union([z.number().int(), z.lazy(() => Vendor22$inboundSchema)]),
|
|
656
656
|
]);
|
|
657
657
|
|
|
658
658
|
/** @internal */
|
|
659
659
|
export type PaymentProfilePaymentProfile$Outbound =
|
|
660
660
|
| VendorPaymentProfile1$Outbound
|
|
661
|
-
|
|
|
662
|
-
|
|
|
661
|
+
| number
|
|
662
|
+
| Vendor22$Outbound;
|
|
663
663
|
|
|
664
664
|
/** @internal */
|
|
665
665
|
export const PaymentProfilePaymentProfile$outboundSchema: z.ZodType<
|
|
@@ -668,7 +668,7 @@ export const PaymentProfilePaymentProfile$outboundSchema: z.ZodType<
|
|
|
668
668
|
PaymentProfilePaymentProfile
|
|
669
669
|
> = z.union([
|
|
670
670
|
z.lazy(() => VendorPaymentProfile1$outboundSchema),
|
|
671
|
-
z.union([z.lazy(() => Vendor22$outboundSchema)
|
|
671
|
+
z.union([z.number().int(), z.lazy(() => Vendor22$outboundSchema)]),
|
|
672
672
|
]);
|
|
673
673
|
|
|
674
674
|
/**
|
|
@@ -712,7 +712,7 @@ export const VendorPaymentProfile$inboundSchema: z.ZodType<
|
|
|
712
712
|
> = z.union([
|
|
713
713
|
z.union([
|
|
714
714
|
z.lazy(() => VendorPaymentProfile1$inboundSchema),
|
|
715
|
-
z.union([z.lazy(() => Vendor22$inboundSchema)
|
|
715
|
+
z.union([z.number().int(), z.lazy(() => Vendor22$inboundSchema)]),
|
|
716
716
|
]),
|
|
717
717
|
z.number().int(),
|
|
718
718
|
]);
|
|
@@ -720,8 +720,8 @@ export const VendorPaymentProfile$inboundSchema: z.ZodType<
|
|
|
720
720
|
/** @internal */
|
|
721
721
|
export type VendorPaymentProfile$Outbound =
|
|
722
722
|
| VendorPaymentProfile1$Outbound
|
|
723
|
-
| Vendor22$Outbound
|
|
724
723
|
| number
|
|
724
|
+
| Vendor22$Outbound
|
|
725
725
|
| number;
|
|
726
726
|
|
|
727
727
|
/** @internal */
|
|
@@ -732,7 +732,7 @@ export const VendorPaymentProfile$outboundSchema: z.ZodType<
|
|
|
732
732
|
> = z.union([
|
|
733
733
|
z.union([
|
|
734
734
|
z.lazy(() => VendorPaymentProfile1$outboundSchema),
|
|
735
|
-
z.union([z.lazy(() => Vendor22$outboundSchema)
|
|
735
|
+
z.union([z.number().int(), z.lazy(() => Vendor22$outboundSchema)]),
|
|
736
736
|
]),
|
|
737
737
|
z.number().int(),
|
|
738
738
|
]);
|
|
@@ -1077,7 +1077,10 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
|
|
|
1077
1077
|
z.union([
|
|
1078
1078
|
z.union([
|
|
1079
1079
|
z.lazy(() => VendorPaymentProfile1$inboundSchema),
|
|
1080
|
-
z.union([
|
|
1080
|
+
z.union([
|
|
1081
|
+
z.number().int(),
|
|
1082
|
+
z.lazy(() => Vendor22$inboundSchema),
|
|
1083
|
+
]),
|
|
1081
1084
|
]),
|
|
1082
1085
|
z.number().int(),
|
|
1083
1086
|
]),
|
|
@@ -1159,8 +1162,8 @@ export type Vendor$Outbound = {
|
|
|
1159
1162
|
image_urls?: ImageSet$Outbound | null | undefined;
|
|
1160
1163
|
payment_profile?:
|
|
1161
1164
|
| VendorPaymentProfile1$Outbound
|
|
1162
|
-
| Vendor22$Outbound
|
|
1163
1165
|
| number
|
|
1166
|
+
| Vendor22$Outbound
|
|
1164
1167
|
| number
|
|
1165
1168
|
| null
|
|
1166
1169
|
| undefined;
|
|
@@ -1212,7 +1215,10 @@ export const Vendor$outboundSchema: z.ZodType<
|
|
|
1212
1215
|
z.union([
|
|
1213
1216
|
z.union([
|
|
1214
1217
|
z.lazy(() => VendorPaymentProfile1$outboundSchema),
|
|
1215
|
-
z.union([
|
|
1218
|
+
z.union([
|
|
1219
|
+
z.number().int(),
|
|
1220
|
+
z.lazy(() => Vendor22$outboundSchema),
|
|
1221
|
+
]),
|
|
1216
1222
|
]),
|
|
1217
1223
|
z.number().int(),
|
|
1218
1224
|
]),
|