@ventrata/octo-types 0.0.10 → 0.0.12
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/index.d.ts +100 -3
- package/dist/models/AdyenGateway.d.ts +9 -0
- package/dist/models/AdyenGatewaySession.d.ts +4 -0
- package/dist/models/AdyenPaymentMethodsConfiguration.d.ts +10 -0
- package/dist/models/AdyenPaymentMethodsConfigurationApplePay.d.ts +3 -0
- package/dist/models/AdyenPaymentMethodsConfigurationCard.d.ts +20 -0
- package/dist/models/AdyenPaymentMethodsConfigurationCardBillingAddressMode.d.ts +5 -0
- package/dist/models/AdyenPaymentMethodsConfigurationGooglePay.d.ts +5 -0
- package/dist/models/AdyenPaymentMethodsConfigurationGooglePayBillingAddressParameters.d.ts +4 -0
- package/dist/models/AdyenPaymentMethodsConfigurationPayPay.d.ts +5 -0
- package/dist/models/Availability.d.ts +19 -7
- package/dist/models/AvailabilityCalendar.d.ts +2 -0
- package/dist/models/AvailabilityCalendarExtras.d.ts +4 -0
- package/dist/models/AvailabilityContent.d.ts +12 -7
- package/dist/models/AvailabilityExtras.d.ts +4 -0
- package/dist/models/AvailabilityResources.d.ts +6 -0
- package/dist/models/Booking.d.ts +30 -6
- package/dist/models/BookingCardPayments.d.ts +5 -0
- package/dist/models/BookingCheckin.d.ts +5 -0
- package/dist/models/BookingContent.d.ts +1 -0
- package/dist/models/BookingExtras.d.ts +2 -0
- package/dist/models/BookingMemberships.d.ts +6 -0
- package/dist/models/BookingPackages.d.ts +2 -1
- package/dist/models/BookingPickups.d.ts +4 -4
- package/dist/models/BookingRentals.d.ts +6 -0
- package/dist/models/BridgepayGateway.d.ts +3 -0
- package/dist/models/Card.d.ts +8 -0
- package/dist/models/CardPayment.d.ts +34 -0
- package/dist/models/Category.d.ts +0 -4
- package/dist/models/CustomerContact.d.ts +3 -0
- package/dist/models/DeliveryFormat.d.ts +2 -1
- package/dist/models/DeliveryOption.d.ts +2 -2
- package/dist/models/Destination.d.ts +8 -5
- package/dist/models/DestinationPricing.d.ts +10 -0
- package/dist/models/ExternalGateway.d.ts +1 -0
- package/dist/models/{Octo_Pricing.d.ts → ExtraPricing.d.ts} +4 -3
- package/dist/models/Gift.d.ts +3 -0
- package/dist/models/GiftCardPayments.d.ts +5 -0
- package/dist/models/GoogleOptions.d.ts +1 -1
- package/dist/models/Include.d.ts +2 -1
- package/dist/models/Membership.d.ts +11 -0
- package/dist/models/MembershipBenefit.d.ts +5 -0
- package/dist/models/Octo_DeliveryFormat.d.ts +6 -0
- package/dist/models/Offer.d.ts +7 -0
- package/dist/models/OfferDiscount.d.ts +2 -2
- package/dist/models/OfferMemberships.d.ts +4 -0
- package/dist/models/{Octo_Tax.d.ts → OfferTax.d.ts} +2 -2
- package/dist/models/OpeningHours.d.ts +4 -3
- package/dist/models/OpeningHoursContent.d.ts +4 -3
- package/dist/models/Option.d.ts +5 -3
- package/dist/models/OptionPricing.d.ts +11 -0
- package/dist/models/OptionRentals.d.ts +4 -0
- package/dist/models/Order.d.ts +28 -8
- package/dist/models/OrderCardPayments.d.ts +5 -0
- package/dist/models/OrderCheckin.d.ts +4 -0
- package/dist/models/OrderContent.d.ts +7 -0
- package/dist/models/OrderGifts.d.ts +2 -0
- package/dist/models/OrderMemberships.d.ts +4 -0
- package/dist/models/OrderPricing.d.ts +4 -0
- package/dist/models/OrderQuestions.d.ts +8 -0
- package/dist/models/PaypalGateway.d.ts +4 -0
- package/dist/models/PaytrGateway.d.ts +5 -0
- package/dist/models/PeachGateway.d.ts +5 -0
- package/dist/models/Pricing.d.ts +3 -1
- package/dist/models/PricingExtras.d.ts +3 -1
- package/dist/models/PricingUnit.d.ts +5 -2
- package/dist/models/PricingUnitExtras.d.ts +3 -2
- package/dist/models/Product.d.ts +6 -4
- package/dist/models/ProductContent.d.ts +4 -4
- package/dist/models/ProductMemberships.d.ts +3 -0
- package/dist/models/ProductRentals.d.ts +3 -0
- package/dist/models/Question.d.ts +0 -4
- package/dist/models/QuestionAnswer.d.ts +3 -45
- package/dist/models/RealaxGateway.d.ts +1 -0
- package/dist/models/RentalDuration.d.ts +9 -0
- package/dist/models/Scan.d.ts +5 -0
- package/dist/models/SettlementMethod.d.ts +5 -5
- package/dist/models/SpreedlyGateway.d.ts +7 -0
- package/dist/models/StripeGateway.d.ts +15 -0
- package/dist/models/Ticket.d.ts +1 -1
- package/dist/models/Unit.d.ts +2 -0
- package/dist/models/UnitItem.d.ts +7 -1
- package/dist/models/UnitItemExtras.d.ts +4 -0
- package/dist/models/UnitItemRedemption.d.ts +4 -0
- package/dist/models/UnitMemberships.d.ts +4 -0
- package/dist/models/VivawalletGateway.d.ts +4 -0
- package/dist/schemas/AdyenGateway.d.ts +285 -0
- package/dist/schemas/AdyenGatewaySession.d.ts +11 -0
- package/dist/schemas/AdyenPaymentMethodsConfiguration.d.ts +188 -0
- package/dist/schemas/AdyenPaymentMethodsConfigurationApplePay.d.ts +8 -0
- package/dist/schemas/AdyenPaymentMethodsConfigurationCard.d.ts +92 -0
- package/dist/schemas/AdyenPaymentMethodsConfigurationCardBillingAddressMode.d.ts +3 -0
- package/dist/schemas/AdyenPaymentMethodsConfigurationGooglePay.d.ts +11 -0
- package/dist/schemas/AdyenPaymentMethodsConfigurationGooglePayBillingAddressParameters.d.ts +3 -0
- package/dist/schemas/AdyenPaymentMethodsConfigurationPayPay.d.ts +14 -0
- package/dist/schemas/Availability.d.ts +644 -161
- package/dist/schemas/AvailabilityCalendar.d.ts +609 -138
- package/dist/schemas/AvailabilityCalendarExtras.d.ts +90 -0
- package/dist/schemas/AvailabilityCalendarOffers.d.ts +86 -0
- package/dist/schemas/AvailabilityCalendarPricing.d.ts +423 -123
- package/dist/schemas/AvailabilityContent.d.ts +25 -19
- package/dist/schemas/AvailabilityExtras.d.ts +90 -0
- package/dist/schemas/AvailabilityOffers.d.ts +86 -0
- package/dist/schemas/AvailabilityPickups.d.ts +4 -4
- package/dist/schemas/AvailabilityPricing.d.ts +423 -123
- package/dist/schemas/AvailabilityResources.d.ts +8 -0
- package/dist/schemas/AvailabilityUpdate.d.ts +856 -306
- package/dist/schemas/BookingCardPayments.d.ts +889 -0
- package/dist/schemas/BookingCart.d.ts +2 -2
- package/dist/schemas/BookingCheckin.d.ts +14 -0
- package/dist/schemas/BookingConfirmationBody.d.ts +6 -6
- package/dist/schemas/BookingConfirmationRequest.d.ts +10 -10
- package/dist/schemas/BookingContact.d.ts +2 -2
- package/dist/schemas/BookingContent.d.ts +3 -0
- package/dist/schemas/BookingExtras.d.ts +1089 -76
- package/dist/schemas/BookingMemberships.d.ts +209 -0
- package/dist/schemas/BookingOffers.d.ts +2077 -261
- package/dist/schemas/BookingPackages.d.ts +16 -8
- package/dist/schemas/BookingPickups.d.ts +16 -7
- package/dist/schemas/BookingPricing.d.ts +228 -12
- package/dist/schemas/BookingQuestions.d.ts +120 -85
- package/dist/schemas/BookingRentals.d.ts +49 -0
- package/dist/schemas/BookingReservationBody.d.ts +8 -8
- package/dist/schemas/BookingReservationRequest.d.ts +14 -14
- package/dist/schemas/BookingUpdate.d.ts +20 -103
- package/dist/schemas/BookingUpdateBody.d.ts +6 -6
- package/dist/schemas/BookingUpdateRequest.d.ts +10 -10
- package/dist/schemas/BridgepayGateway.d.ts +8 -0
- package/dist/schemas/Card.d.ts +23 -0
- package/dist/schemas/CardPayment.d.ts +668 -0
- package/dist/schemas/Category.d.ts +0 -3
- package/dist/schemas/ConfirmOrderBody.d.ts +4 -4
- package/dist/schemas/CreateOrderBody.d.ts +4 -4
- package/dist/schemas/CreateWaitlistRequest.d.ts +4 -4
- package/dist/schemas/CustomerContact.d.ts +11 -2
- package/dist/schemas/DeliveryOption.d.ts +3 -3
- package/dist/schemas/Destination.d.ts +8 -55
- package/dist/schemas/DestinationPricing.d.ts +11 -0
- package/dist/schemas/ExternalGateway.d.ts +2 -0
- package/dist/schemas/Extra.d.ts +456 -24
- package/dist/schemas/ExtraItem.d.ts +839 -79
- package/dist/schemas/ExtraPricing.d.ts +56 -0
- package/dist/schemas/GetYourGuideConnection.d.ts +2 -2
- package/dist/schemas/Gift.d.ts +1180 -50
- package/dist/schemas/GiftCardPayments.d.ts +889 -0
- package/dist/schemas/GoogleOptions.d.ts +3 -3
- package/dist/schemas/Include.d.ts +6 -3
- package/dist/schemas/ItineraryItem.d.ts +2 -2
- package/dist/schemas/Membership.d.ts +124 -0
- package/dist/schemas/MembershipBenefit.d.ts +14 -0
- package/dist/schemas/Octo_DeliveryFormat.d.ts +3 -0
- package/dist/schemas/Offer.d.ts +29 -0
- package/dist/schemas/OfferCombination.d.ts +1611 -169
- package/dist/schemas/OfferComparison.d.ts +1611 -169
- package/dist/schemas/OfferDiscount.d.ts +0 -5
- package/dist/schemas/OfferMemberships.d.ts +28 -0
- package/dist/schemas/OfferTax.d.ts +17 -0
- package/dist/schemas/OpeningHours.d.ts +9 -9
- package/dist/schemas/OpeningHoursContent.d.ts +9 -9
- package/dist/schemas/OptionContent.d.ts +4 -4
- package/dist/schemas/OptionExtras.d.ts +576 -32
- package/dist/schemas/OptionPackages.d.ts +14 -7
- package/dist/schemas/OptionPickups.d.ts +4 -4
- package/dist/schemas/OptionPricing.d.ts +781 -0
- package/dist/schemas/OptionQuestions.d.ts +4 -9
- package/dist/schemas/OptionRentals.d.ts +43 -0
- package/dist/schemas/Order.d.ts +7421 -991
- package/dist/schemas/OrderCardPayments.d.ts +889 -0
- package/dist/schemas/OrderCheckin.d.ts +11 -0
- package/dist/schemas/OrderContent.d.ts +826 -0
- package/dist/schemas/OrderGifts.d.ts +2342 -0
- package/dist/schemas/OrderMemberships.d.ts +186 -0
- package/dist/schemas/OrderOffers.d.ts +2006 -276
- package/dist/schemas/OrderPricing.d.ts +393 -0
- package/dist/schemas/OrderQuestions.d.ts +139 -0
- package/dist/schemas/PackageInclude.d.ts +10 -5
- package/dist/schemas/PartnersConnection.d.ts +2 -2
- package/dist/schemas/PartnersListConnection.d.ts +28 -111
- package/dist/schemas/PaypalGateway.d.ts +11 -0
- package/dist/schemas/PaytrGateway.d.ts +14 -0
- package/dist/schemas/PeachGateway.d.ts +14 -0
- package/dist/schemas/PickupPoint.d.ts +2 -2
- package/dist/schemas/Pricing.d.ts +168 -8
- package/dist/schemas/PricingExtras.d.ts +170 -3
- package/dist/schemas/PricingOffers.d.ts +0 -7
- package/dist/schemas/PricingUnit.d.ts +143 -87
- package/dist/schemas/PricingUnitExtras.d.ts +83 -85
- package/dist/schemas/ProductContent.d.ts +46 -116
- package/dist/schemas/ProductGoogle.d.ts +5 -5
- package/dist/schemas/ProductMemberships.d.ts +8 -0
- package/dist/schemas/ProductRentals.d.ts +8 -0
- package/dist/schemas/Question.d.ts +2 -5
- package/dist/schemas/QuestionAnswer.d.ts +86 -53
- package/dist/schemas/RealaxGateway.d.ts +2 -0
- package/dist/schemas/RentalDuration.d.ts +23 -0
- package/dist/schemas/Scan.d.ts +14 -0
- package/dist/schemas/SpreedlyGateway.d.ts +20 -0
- package/dist/schemas/StripeGateway.d.ts +64 -0
- package/dist/schemas/Supplier.d.ts +14 -79
- package/dist/schemas/SupplierContent.d.ts +14 -79
- package/dist/schemas/Ticket.d.ts +8 -8
- package/dist/schemas/Unit.d.ts +1069 -75
- package/dist/schemas/UnitExtras.d.ts +576 -32
- package/dist/schemas/UnitItem.d.ts +4040 -691
- package/dist/schemas/UnitItemExtras.d.ts +1833 -0
- package/dist/schemas/UnitItemPricing.d.ts +228 -12
- package/dist/schemas/UnitItemQuestions.d.ts +120 -85
- package/dist/schemas/UnitItemRedemption.d.ts +28 -0
- package/dist/schemas/UnitMemberships.d.ts +28 -0
- package/dist/schemas/UnitPricing.d.ts +456 -24
- package/dist/schemas/UnitQuestions.d.ts +4 -9
- package/dist/schemas/UpdateOrderBody.d.ts +4 -4
- package/dist/schemas/VivawalletGateway.d.ts +11 -0
- package/dist/schemas/Waitlist.d.ts +19 -4
- package/dist/schemas/WhoIAm.d.ts +28 -111
- package/package.json +1 -1
- package/dist/models/Octo_PricingUnit.d.ts +0 -7
|
@@ -88,7 +88,7 @@ export declare const googleOptionsSchema: z.ZodObject<{
|
|
|
88
88
|
}, {
|
|
89
89
|
url: string | null;
|
|
90
90
|
}>;
|
|
91
|
-
|
|
91
|
+
inventory_types: z.ZodArray<z.ZodString, "many">;
|
|
92
92
|
landing_page_list_view: z.ZodObject<{
|
|
93
93
|
url: z.ZodNullable<z.ZodString>;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -160,7 +160,7 @@ export declare const googleOptionsSchema: z.ZodObject<{
|
|
|
160
160
|
landing_page: {
|
|
161
161
|
url: string | null;
|
|
162
162
|
};
|
|
163
|
-
|
|
163
|
+
inventory_types: string[];
|
|
164
164
|
landing_page_list_view: {
|
|
165
165
|
url: string | null;
|
|
166
166
|
};
|
|
@@ -198,7 +198,7 @@ export declare const googleOptionsSchema: z.ZodObject<{
|
|
|
198
198
|
landing_page: {
|
|
199
199
|
url: string | null;
|
|
200
200
|
};
|
|
201
|
-
|
|
201
|
+
inventory_types: string[];
|
|
202
202
|
landing_page_list_view: {
|
|
203
203
|
url: string | null;
|
|
204
204
|
};
|
|
@@ -3,7 +3,8 @@ export declare const includeSchema: z.ZodObject<{
|
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
required: z.ZodBoolean;
|
|
5
5
|
limit: z.ZodNumber;
|
|
6
|
-
validityDays: z.
|
|
6
|
+
validityDays: z.ZodNullable<z.ZodNumber>;
|
|
7
|
+
availabilityRequired: z.ZodBoolean;
|
|
7
8
|
productId: z.ZodString;
|
|
8
9
|
product: z.ZodNullable<z.ZodType<import("..").Product, z.ZodTypeDef, import("..").Product>>;
|
|
9
10
|
optionId: z.ZodString;
|
|
@@ -14,16 +15,18 @@ export declare const includeSchema: z.ZodObject<{
|
|
|
14
15
|
optionId: string;
|
|
15
16
|
required: boolean;
|
|
16
17
|
limit: number;
|
|
18
|
+
validityDays: number | null;
|
|
19
|
+
availabilityRequired: boolean;
|
|
17
20
|
product: import("..").Product | null;
|
|
18
21
|
option: import("..").Option | null;
|
|
19
|
-
validityDays?: number | undefined;
|
|
20
22
|
}, {
|
|
21
23
|
id: string;
|
|
22
24
|
productId: string;
|
|
23
25
|
optionId: string;
|
|
24
26
|
required: boolean;
|
|
25
27
|
limit: number;
|
|
28
|
+
validityDays: number | null;
|
|
29
|
+
availabilityRequired: boolean;
|
|
26
30
|
product: import("..").Product | null;
|
|
27
31
|
option: import("..").Option | null;
|
|
28
|
-
validityDays?: number | undefined;
|
|
29
32
|
}>;
|
|
@@ -14,8 +14,8 @@ export declare const itineraryItemSchema: z.ZodObject<{
|
|
|
14
14
|
durationAmount: z.ZodNumber;
|
|
15
15
|
durationUnit: z.ZodNativeEnum<typeof import("..").DurationUnit>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
name: string;
|
|
18
17
|
type: import("..").ItineraryItemType;
|
|
18
|
+
name: string;
|
|
19
19
|
address: string | null;
|
|
20
20
|
latitude: number | null;
|
|
21
21
|
longitude: number | null;
|
|
@@ -28,8 +28,8 @@ export declare const itineraryItemSchema: z.ZodObject<{
|
|
|
28
28
|
durationAmount: number;
|
|
29
29
|
durationUnit: import("..").DurationUnit;
|
|
30
30
|
}, {
|
|
31
|
-
name: string;
|
|
32
31
|
type: import("..").ItineraryItemType;
|
|
32
|
+
name: string;
|
|
33
33
|
address: string | null;
|
|
34
34
|
latitude: number | null;
|
|
35
35
|
longitude: number | null;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const membershipSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
contact: z.ZodObject<{
|
|
6
|
+
fullName: z.ZodNullable<z.ZodString>;
|
|
7
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
8
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
9
|
+
emailAddress: z.ZodNullable<z.ZodString>;
|
|
10
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
11
|
+
locales: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
12
|
+
postalCode: z.ZodNullable<z.ZodString>;
|
|
13
|
+
country: z.ZodNullable<z.ZodString>;
|
|
14
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
15
|
+
taxId: z.ZodNullable<z.ZodString>;
|
|
16
|
+
title: z.ZodNullable<z.ZodString>;
|
|
17
|
+
streetAddress: z.ZodNullable<z.ZodString>;
|
|
18
|
+
city: z.ZodNullable<z.ZodString>;
|
|
19
|
+
state: z.ZodNullable<z.ZodString>;
|
|
20
|
+
allowMarketing: z.ZodBoolean;
|
|
21
|
+
company: z.ZodNullable<z.ZodString>;
|
|
22
|
+
age: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
birthdate: z.ZodNullable<z.ZodString>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
firstName: string | null;
|
|
26
|
+
lastName: string | null;
|
|
27
|
+
emailAddress: string | null;
|
|
28
|
+
phoneNumber: string | null;
|
|
29
|
+
country: string | null;
|
|
30
|
+
notes: string | null;
|
|
31
|
+
locales: string[] | null;
|
|
32
|
+
allowMarketing: boolean;
|
|
33
|
+
postalCode: string | null;
|
|
34
|
+
city: string | null;
|
|
35
|
+
state: string | null;
|
|
36
|
+
title: string | null;
|
|
37
|
+
fullName: string | null;
|
|
38
|
+
taxId: string | null;
|
|
39
|
+
streetAddress: string | null;
|
|
40
|
+
company: string | null;
|
|
41
|
+
age: number | null;
|
|
42
|
+
birthdate: string | null;
|
|
43
|
+
}, {
|
|
44
|
+
firstName: string | null;
|
|
45
|
+
lastName: string | null;
|
|
46
|
+
emailAddress: string | null;
|
|
47
|
+
phoneNumber: string | null;
|
|
48
|
+
country: string | null;
|
|
49
|
+
notes: string | null;
|
|
50
|
+
locales: string[] | null;
|
|
51
|
+
allowMarketing: boolean;
|
|
52
|
+
postalCode: string | null;
|
|
53
|
+
city: string | null;
|
|
54
|
+
state: string | null;
|
|
55
|
+
title: string | null;
|
|
56
|
+
fullName: string | null;
|
|
57
|
+
taxId: string | null;
|
|
58
|
+
streetAddress: string | null;
|
|
59
|
+
company: string | null;
|
|
60
|
+
age: number | null;
|
|
61
|
+
birthdate: string | null;
|
|
62
|
+
}>;
|
|
63
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
64
|
+
resellerReference: z.ZodString;
|
|
65
|
+
supplierReference: z.ZodString;
|
|
66
|
+
availabilityLocalDateStart: z.ZodNullable<z.ZodString>;
|
|
67
|
+
availabilityLocalDateEnd: z.ZodNullable<z.ZodString>;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
id: string;
|
|
70
|
+
reference: string | null;
|
|
71
|
+
title: string;
|
|
72
|
+
contact: {
|
|
73
|
+
firstName: string | null;
|
|
74
|
+
lastName: string | null;
|
|
75
|
+
emailAddress: string | null;
|
|
76
|
+
phoneNumber: string | null;
|
|
77
|
+
country: string | null;
|
|
78
|
+
notes: string | null;
|
|
79
|
+
locales: string[] | null;
|
|
80
|
+
allowMarketing: boolean;
|
|
81
|
+
postalCode: string | null;
|
|
82
|
+
city: string | null;
|
|
83
|
+
state: string | null;
|
|
84
|
+
title: string | null;
|
|
85
|
+
fullName: string | null;
|
|
86
|
+
taxId: string | null;
|
|
87
|
+
streetAddress: string | null;
|
|
88
|
+
company: string | null;
|
|
89
|
+
age: number | null;
|
|
90
|
+
birthdate: string | null;
|
|
91
|
+
};
|
|
92
|
+
availabilityLocalDateStart: string | null;
|
|
93
|
+
availabilityLocalDateEnd: string | null;
|
|
94
|
+
resellerReference: string;
|
|
95
|
+
supplierReference: string;
|
|
96
|
+
}, {
|
|
97
|
+
id: string;
|
|
98
|
+
reference: string | null;
|
|
99
|
+
title: string;
|
|
100
|
+
contact: {
|
|
101
|
+
firstName: string | null;
|
|
102
|
+
lastName: string | null;
|
|
103
|
+
emailAddress: string | null;
|
|
104
|
+
phoneNumber: string | null;
|
|
105
|
+
country: string | null;
|
|
106
|
+
notes: string | null;
|
|
107
|
+
locales: string[] | null;
|
|
108
|
+
allowMarketing: boolean;
|
|
109
|
+
postalCode: string | null;
|
|
110
|
+
city: string | null;
|
|
111
|
+
state: string | null;
|
|
112
|
+
title: string | null;
|
|
113
|
+
fullName: string | null;
|
|
114
|
+
taxId: string | null;
|
|
115
|
+
streetAddress: string | null;
|
|
116
|
+
company: string | null;
|
|
117
|
+
age: number | null;
|
|
118
|
+
birthdate: string | null;
|
|
119
|
+
};
|
|
120
|
+
availabilityLocalDateStart: string | null;
|
|
121
|
+
availabilityLocalDateEnd: string | null;
|
|
122
|
+
resellerReference: string;
|
|
123
|
+
supplierReference: string;
|
|
124
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const membershipBenefitSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
description: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
}, {
|
|
11
|
+
id: string;
|
|
12
|
+
title: string;
|
|
13
|
+
description: string;
|
|
14
|
+
}>;
|
package/dist/schemas/Offer.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const offerSchema: z.ZodObject<{
|
|
3
3
|
title: z.ZodString;
|
|
4
|
+
label: z.ZodString;
|
|
4
5
|
code: z.ZodString;
|
|
5
6
|
description: z.ZodNullable<z.ZodString>;
|
|
6
7
|
netDiscount: z.ZodNullable<z.ZodNativeEnum<typeof import("..").NetDiscount>>;
|
|
@@ -24,10 +25,25 @@ export declare const offerSchema: z.ZodObject<{
|
|
|
24
25
|
unitIds: string[];
|
|
25
26
|
}>;
|
|
26
27
|
usable: z.ZodBoolean;
|
|
28
|
+
unusableReason: z.ZodNullable<z.ZodString>;
|
|
29
|
+
membershipBenefit: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
title: z.ZodString;
|
|
32
|
+
description: z.ZodString;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
id: string;
|
|
35
|
+
title: string;
|
|
36
|
+
description: string;
|
|
37
|
+
}, {
|
|
38
|
+
id: string;
|
|
39
|
+
title: string;
|
|
40
|
+
description: string;
|
|
41
|
+
}>>>;
|
|
27
42
|
}, "strip", z.ZodTypeAny, {
|
|
28
43
|
code: string;
|
|
29
44
|
title: string;
|
|
30
45
|
description: string | null;
|
|
46
|
+
label: string;
|
|
31
47
|
netDiscount: import("..").NetDiscount | null;
|
|
32
48
|
restrictions: {
|
|
33
49
|
minUnits: number | null;
|
|
@@ -37,10 +53,17 @@ export declare const offerSchema: z.ZodObject<{
|
|
|
37
53
|
unitIds: string[];
|
|
38
54
|
};
|
|
39
55
|
usable: boolean;
|
|
56
|
+
unusableReason: string | null;
|
|
57
|
+
membershipBenefit?: {
|
|
58
|
+
id: string;
|
|
59
|
+
title: string;
|
|
60
|
+
description: string;
|
|
61
|
+
} | null | undefined;
|
|
40
62
|
}, {
|
|
41
63
|
code: string;
|
|
42
64
|
title: string;
|
|
43
65
|
description: string | null;
|
|
66
|
+
label: string;
|
|
44
67
|
netDiscount: import("..").NetDiscount | null;
|
|
45
68
|
restrictions: {
|
|
46
69
|
minUnits: number | null;
|
|
@@ -50,4 +73,10 @@ export declare const offerSchema: z.ZodObject<{
|
|
|
50
73
|
unitIds: string[];
|
|
51
74
|
};
|
|
52
75
|
usable: boolean;
|
|
76
|
+
unusableReason: string | null;
|
|
77
|
+
membershipBenefit?: {
|
|
78
|
+
id: string;
|
|
79
|
+
title: string;
|
|
80
|
+
description: string;
|
|
81
|
+
} | null | undefined;
|
|
53
82
|
}>;
|