@lifeaz/lors-helper 1.0.0
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 +14 -0
- package/dist/main.d.ts +569 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +321 -0
- package/package.json +59 -0
- package/src/main.ts +443 -0
package/README.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# 🛒 LORS Helper
|
|
2
|
+
**1.0.0** Lifeaz Online Retail Solution Helper
|
|
3
|
+
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## 🛠️ Usage
|
|
7
|
+
Helper developed to accompany the LORS environment generally.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
### 🪴EOD
|
|
12
|
+
> **OFFICIAL REPOSITORY**
|
|
13
|
+
This repository is PROPRIETARY. No part of this repository
|
|
14
|
+
may be disclosed in any manner without the prior written consent of Lifeaz. https://lifeaz.co
|
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { Dayjs } from "dayjs";
|
|
3
|
+
import type { UUID } from "uuidv7";
|
|
4
|
+
export type Lang = 'fr' | 'en' | 'nl' | 'de' | 'it' | 'es';
|
|
5
|
+
export declare const LangSchema: z.ZodUnion<readonly [z.ZodLiteral<"fr">, z.ZodLiteral<"en">, z.ZodLiteral<"nl">, z.ZodLiteral<"de">, z.ZodLiteral<"it">, z.ZodLiteral<"es">]>;
|
|
6
|
+
export type ProfileType = '_Individual_' | '_Small_Business_' | '_Company_';
|
|
7
|
+
export declare const ProfileTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Individual_">, z.ZodLiteral<"_Small_Business_">, z.ZodLiteral<"_Company_">]>;
|
|
8
|
+
export type CartStep = '_Profile_' | '_Offers_' | '_Information_' | '_Options_' | '_Delivery_' | '_Payment_';
|
|
9
|
+
export declare const CartStepSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Profile_">, z.ZodLiteral<"_Offers_">, z.ZodLiteral<"_Information_">, z.ZodLiteral<"_Options_">, z.ZodLiteral<"_Delivery_">, z.ZodLiteral<"_Payment_">]>;
|
|
10
|
+
export type CartStatus = '_Draft_' | '_Pending_' | '_Paid_' | '_Abandoned_' | '_Cancelled_';
|
|
11
|
+
export declare const CartStatusSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Draft_">, z.ZodLiteral<"_Pending_">, z.ZodLiteral<"_Paid_">, z.ZodLiteral<"_Abandoned_">, z.ZodLiteral<"_Cancelled_">]>;
|
|
12
|
+
export type OrderStatus = '_Pending_' | '_Paid_' | '_In_Production_' | '_In_Delivery_' | '_Delivered_' | '_Cancelled_' | '_Refunded_';
|
|
13
|
+
export declare const OrderStatusSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Pending_">, z.ZodLiteral<"_Paid_">, z.ZodLiteral<"_In_Production_">, z.ZodLiteral<"_In_Delivery_">, z.ZodLiteral<"_Delivered_">, z.ZodLiteral<"_Cancelled_">, z.ZodLiteral<"_Refunded_">]>;
|
|
14
|
+
export type PaymentStatus = '_Open_' | '_Pending_' | '_Authorized_' | '_Paid_' | '_Failed_' | '_Cancelled_' | '_Expired_' | '_Refunded_' | '_Chargeback_';
|
|
15
|
+
export declare const PaymentStatusSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Open_">, z.ZodLiteral<"_Pending_">, z.ZodLiteral<"_Authorized_">, z.ZodLiteral<"_Paid_">, z.ZodLiteral<"_Failed_">, z.ZodLiteral<"_Cancelled_">, z.ZodLiteral<"_Expired_">, z.ZodLiteral<"_Refunded_">, z.ZodLiteral<"_Chargeback_">]>;
|
|
16
|
+
export type ItemCategory = '_Solution_' | '_Warranty_' | '_Accessory_' | '_Training_' | '_Delivery_';
|
|
17
|
+
export declare const ItemCategorySchema: z.ZodUnion<readonly [z.ZodLiteral<"_Solution_">, z.ZodLiteral<"_Warranty_">, z.ZodLiteral<"_Accessory_">, z.ZodLiteral<"_Training_">, z.ZodLiteral<"_Delivery_">]>;
|
|
18
|
+
export type OfferType = '_Purchase_' | '_Rental_';
|
|
19
|
+
export declare const OfferTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Purchase_">, z.ZodLiteral<"_Rental_">]>;
|
|
20
|
+
export type PriceRecurrence = '_One_Time_' | '_Monthly_' | '_Annually_';
|
|
21
|
+
export declare const PriceRecurrenceSchema: z.ZodUnion<readonly [z.ZodLiteral<"_One_Time_">, z.ZodLiteral<"_Monthly_">, z.ZodLiteral<"_Annually_">]>;
|
|
22
|
+
export type PaymentFrequency = '_Monthly_' | '_Annually_';
|
|
23
|
+
export declare const PaymentFrequencySchema: z.ZodUnion<readonly [z.ZodLiteral<"_Monthly_">, z.ZodLiteral<"_Annually_">]>;
|
|
24
|
+
export type PaymentMethod = '_Card_' | '_PayPal_' | '_SEPA_' | '_Alma_4x_';
|
|
25
|
+
export declare const PaymentMethodSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Card_">, z.ZodLiteral<"_PayPal_">, z.ZodLiteral<"_SEPA_">, z.ZodLiteral<"_Alma_4x_">]>;
|
|
26
|
+
export type PaymentProvider = '_Mollie_' | '_Alma_';
|
|
27
|
+
export declare const PaymentProviderSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Mollie_">, z.ZodLiteral<"_Alma_">]>;
|
|
28
|
+
export type DeliveryMethod = '_Standard_' | '_Express_';
|
|
29
|
+
export declare const DeliveryMethodSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Standard_">, z.ZodLiteral<"_Express_">]>;
|
|
30
|
+
export type DiscountValueType = '_Percentage_' | '_Fixed_Amount_';
|
|
31
|
+
export declare const DiscountValueTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Percentage_">, z.ZodLiteral<"_Fixed_Amount_">]>;
|
|
32
|
+
export type DiscountTargetScope = '_Whole_Cart_' | '_Specific_Items_' | '_Item_Category_' | '_Delivery_';
|
|
33
|
+
export declare const DiscountTargetScopeSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Whole_Cart_">, z.ZodLiteral<"_Specific_Items_">, z.ZodLiteral<"_Item_Category_">, z.ZodLiteral<"_Delivery_">]>;
|
|
34
|
+
export type Surface = '_All_' | '_Checkout_' | '_Storefront_';
|
|
35
|
+
export declare const SurfaceSchema: z.ZodUnion<readonly [z.ZodLiteral<"_All_">, z.ZodLiteral<"_Checkout_">, z.ZodLiteral<"_Storefront_">]>;
|
|
36
|
+
export type OperationAssetType = '_Banner_Header_' | '_Banner_Mini_' | '_Banner_Sub_Header_' | '_Hero_' | '_Popup_Welcome_' | '_Popup_Operation_' | '_Popup_Technical_' | '_Strikethrough_Price_' | '_Discount_Section_' | '_Tag_' | '_Text_Banner_' | '_Page_Background_';
|
|
37
|
+
export declare const OperationAssetTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Banner_Header_">, z.ZodLiteral<"_Banner_Mini_">, z.ZodLiteral<"_Banner_Sub_Header_">, z.ZodLiteral<"_Hero_">, z.ZodLiteral<"_Popup_Welcome_">, z.ZodLiteral<"_Popup_Operation_">, z.ZodLiteral<"_Popup_Technical_">, z.ZodLiteral<"_Strikethrough_Price_">, z.ZodLiteral<"_Discount_Section_">, z.ZodLiteral<"_Tag_">, z.ZodLiteral<"_Text_Banner_">, z.ZodLiteral<"_Page_Background_">]>;
|
|
38
|
+
export type AddressType = '_Delivery_' | '_Billing_';
|
|
39
|
+
export declare const AddressTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Delivery_">, z.ZodLiteral<"_Billing_">]>;
|
|
40
|
+
export type AddressConfidence = '_Verified_' | '_Partial_';
|
|
41
|
+
export declare const AddressConfidenceSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Verified_">, z.ZodLiteral<"_Partial_">]>;
|
|
42
|
+
export type TermsType = '_Terms_Of_Use_' | '_Terms_Of_Sales_';
|
|
43
|
+
export declare const TermsTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Terms_Of_Use_">, z.ZodLiteral<"_Terms_Of_Sales_">]>;
|
|
44
|
+
export type TestimonialType = '_Text_' | '_Image_' | '_Video_';
|
|
45
|
+
export declare const TestimonialTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Text_">, z.ZodLiteral<"_Image_">, z.ZodLiteral<"_Video_">]>;
|
|
46
|
+
export type CartItemSource = '_User_' | '_System_';
|
|
47
|
+
export declare const CartItemSourceSchema: z.ZodUnion<readonly [z.ZodLiteral<"_User_">, z.ZodLiteral<"_System_">]>;
|
|
48
|
+
export declare const AmountSchema: z.ZodObject<{
|
|
49
|
+
excl: z.ZodNumber;
|
|
50
|
+
vat: z.ZodNumber;
|
|
51
|
+
incl: z.ZodNumber;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export type Amount = z.infer<typeof AmountSchema>;
|
|
54
|
+
export declare const GeozoneSchema: z.ZodObject<{
|
|
55
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
56
|
+
name: z.ZodString;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type Geozone = z.infer<typeof GeozoneSchema>;
|
|
59
|
+
export declare const CountrySchema: z.ZodObject<{
|
|
60
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
61
|
+
geozone: z.ZodObject<{
|
|
62
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
63
|
+
name: z.ZodString;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
iso: z.ZodString;
|
|
66
|
+
phonePrefix: z.ZodString;
|
|
67
|
+
name: z.ZodString;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
export type Country = z.infer<typeof CountrySchema>;
|
|
70
|
+
export declare const StateSchema: z.ZodObject<{
|
|
71
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
72
|
+
country: z.ZodObject<{
|
|
73
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
74
|
+
geozone: z.ZodObject<{
|
|
75
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
iso: z.ZodString;
|
|
79
|
+
phonePrefix: z.ZodString;
|
|
80
|
+
name: z.ZodString;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
name: z.ZodString;
|
|
83
|
+
iso: z.ZodString;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export type State = z.infer<typeof StateSchema>;
|
|
86
|
+
export declare const CoordinatesSchema: z.ZodObject<{
|
|
87
|
+
lat: z.ZodNumber;
|
|
88
|
+
lng: z.ZodNumber;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export type Coordinates = z.infer<typeof CoordinatesSchema>;
|
|
91
|
+
export declare const AddressSchema: z.ZodObject<{
|
|
92
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
93
|
+
stringified: z.ZodString;
|
|
94
|
+
confidence: z.ZodUnion<readonly [z.ZodLiteral<"_Verified_">, z.ZodLiteral<"_Partial_">]>;
|
|
95
|
+
country: z.ZodNullable<z.ZodObject<{
|
|
96
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
97
|
+
geozone: z.ZodObject<{
|
|
98
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
99
|
+
name: z.ZodString;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
iso: z.ZodString;
|
|
102
|
+
phonePrefix: z.ZodString;
|
|
103
|
+
name: z.ZodString;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
state: z.ZodNullable<z.ZodObject<{
|
|
106
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
107
|
+
country: z.ZodObject<{
|
|
108
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
109
|
+
geozone: z.ZodObject<{
|
|
110
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
111
|
+
name: z.ZodString;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
iso: z.ZodString;
|
|
114
|
+
phonePrefix: z.ZodString;
|
|
115
|
+
name: z.ZodString;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
name: z.ZodString;
|
|
118
|
+
iso: z.ZodString;
|
|
119
|
+
}, z.core.$strip>>;
|
|
120
|
+
alias: z.ZodNullable<z.ZodString>;
|
|
121
|
+
line: z.ZodString;
|
|
122
|
+
details: z.ZodNullable<z.ZodString>;
|
|
123
|
+
postcode: z.ZodNullable<z.ZodString>;
|
|
124
|
+
city: z.ZodNullable<z.ZodString>;
|
|
125
|
+
placeId: z.ZodNullable<z.ZodString>;
|
|
126
|
+
coordinates: z.ZodNullable<z.ZodObject<{
|
|
127
|
+
lat: z.ZodNumber;
|
|
128
|
+
lng: z.ZodNumber;
|
|
129
|
+
}, z.core.$strip>>;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
export type Address = z.infer<typeof AddressSchema>;
|
|
132
|
+
export declare const ContactSchema: z.ZodObject<{
|
|
133
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
134
|
+
firstName: z.ZodString;
|
|
135
|
+
lastName: z.ZodString;
|
|
136
|
+
email: z.ZodNullable<z.ZodString>;
|
|
137
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
138
|
+
company: z.ZodNullable<z.ZodString>;
|
|
139
|
+
vatNumber: z.ZodNullable<z.ZodString>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
export type Contact = z.infer<typeof ContactSchema>;
|
|
142
|
+
export declare const TermsSchema: z.ZodObject<{
|
|
143
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
144
|
+
type: z.ZodUnion<readonly [z.ZodLiteral<"_Terms_Of_Use_">, z.ZodLiteral<"_Terms_Of_Sales_">]>;
|
|
145
|
+
lang: z.ZodUnion<readonly [z.ZodLiteral<"fr">, z.ZodLiteral<"en">, z.ZodLiteral<"nl">, z.ZodLiteral<"de">, z.ZodLiteral<"it">, z.ZodLiteral<"es">]>;
|
|
146
|
+
label: z.ZodString;
|
|
147
|
+
url: z.ZodString;
|
|
148
|
+
version: z.ZodCustom<Dayjs, Dayjs>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
export type Terms = z.infer<typeof TermsSchema>;
|
|
151
|
+
export declare const CartTermsAcceptanceSchema: z.ZodObject<{
|
|
152
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
153
|
+
termsId: z.ZodCustom<UUID, UUID>;
|
|
154
|
+
acceptedAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
export type CartTermsAcceptance = z.infer<typeof CartTermsAcceptanceSchema>;
|
|
157
|
+
export declare const CartTermsViewSchema: z.ZodObject<{
|
|
158
|
+
current: z.ZodArray<z.ZodObject<{
|
|
159
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
160
|
+
type: z.ZodUnion<readonly [z.ZodLiteral<"_Terms_Of_Use_">, z.ZodLiteral<"_Terms_Of_Sales_">]>;
|
|
161
|
+
lang: z.ZodUnion<readonly [z.ZodLiteral<"fr">, z.ZodLiteral<"en">, z.ZodLiteral<"nl">, z.ZodLiteral<"de">, z.ZodLiteral<"it">, z.ZodLiteral<"es">]>;
|
|
162
|
+
label: z.ZodString;
|
|
163
|
+
url: z.ZodString;
|
|
164
|
+
version: z.ZodCustom<Dayjs, Dayjs>;
|
|
165
|
+
}, z.core.$strip>>;
|
|
166
|
+
required: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"_Terms_Of_Use_">, z.ZodLiteral<"_Terms_Of_Sales_">]>>;
|
|
167
|
+
accepted: z.ZodArray<z.ZodObject<{
|
|
168
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
169
|
+
termsId: z.ZodCustom<UUID, UUID>;
|
|
170
|
+
acceptedAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
171
|
+
}, z.core.$strip>>;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
export type CartTermsView = z.infer<typeof CartTermsViewSchema>;
|
|
174
|
+
export declare const ItemPriceSchema: z.ZodObject<{
|
|
175
|
+
recurrence: z.ZodUnion<readonly [z.ZodLiteral<"_One_Time_">, z.ZodLiteral<"_Monthly_">, z.ZodLiteral<"_Annually_">]>;
|
|
176
|
+
amount: z.ZodNumber;
|
|
177
|
+
currency: z.ZodString;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
export type ItemPrice = z.infer<typeof ItemPriceSchema>;
|
|
180
|
+
export declare const ItemSchema: z.ZodObject<{
|
|
181
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
182
|
+
category: z.ZodUnion<readonly [z.ZodLiteral<"_Solution_">, z.ZodLiteral<"_Warranty_">, z.ZodLiteral<"_Accessory_">, z.ZodLiteral<"_Training_">, z.ZodLiteral<"_Delivery_">]>;
|
|
183
|
+
offerType: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Purchase_">, z.ZodLiteral<"_Rental_">]>>;
|
|
184
|
+
sku: z.ZodNullable<z.ZodString>;
|
|
185
|
+
name: z.ZodNullable<z.ZodString>;
|
|
186
|
+
description: z.ZodNullable<z.ZodString>;
|
|
187
|
+
isMainOffer: z.ZodBoolean;
|
|
188
|
+
visible: z.ZodBoolean;
|
|
189
|
+
maxPerCart: z.ZodNullable<z.ZodNumber>;
|
|
190
|
+
prices: z.ZodArray<z.ZodObject<{
|
|
191
|
+
recurrence: z.ZodUnion<readonly [z.ZodLiteral<"_One_Time_">, z.ZodLiteral<"_Monthly_">, z.ZodLiteral<"_Annually_">]>;
|
|
192
|
+
amount: z.ZodNumber;
|
|
193
|
+
currency: z.ZodString;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
allowedProfiles: z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"_Individual_">, z.ZodLiteral<"_Small_Business_">, z.ZodLiteral<"_Company_">]>>;
|
|
196
|
+
}, z.core.$strip>;
|
|
197
|
+
export type Item = z.infer<typeof ItemSchema>;
|
|
198
|
+
export declare const CartItemSchema: z.ZodObject<{
|
|
199
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
200
|
+
cartId: z.ZodCustom<UUID, UUID>;
|
|
201
|
+
itemId: z.ZodCustom<UUID, UUID>;
|
|
202
|
+
quantity: z.ZodNumber;
|
|
203
|
+
addedBy: z.ZodUnion<readonly [z.ZodLiteral<"_User_">, z.ZodLiteral<"_System_">]>;
|
|
204
|
+
category: z.ZodUnion<readonly [z.ZodLiteral<"_Solution_">, z.ZodLiteral<"_Warranty_">, z.ZodLiteral<"_Accessory_">, z.ZodLiteral<"_Training_">, z.ZodLiteral<"_Delivery_">]>;
|
|
205
|
+
offerType: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Purchase_">, z.ZodLiteral<"_Rental_">]>>;
|
|
206
|
+
sku: z.ZodNullable<z.ZodString>;
|
|
207
|
+
isMainOffer: z.ZodBoolean;
|
|
208
|
+
visible: z.ZodBoolean;
|
|
209
|
+
maxPerCart: z.ZodNullable<z.ZodNumber>;
|
|
210
|
+
}, z.core.$strip>;
|
|
211
|
+
export type CartItem = z.infer<typeof CartItemSchema>;
|
|
212
|
+
export declare const PricingContextSchema: z.ZodObject<{
|
|
213
|
+
cartId: z.ZodCustom<UUID, UUID>;
|
|
214
|
+
profile: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Individual_">, z.ZodLiteral<"_Small_Business_">, z.ZodLiteral<"_Company_">]>>;
|
|
215
|
+
offerType: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Purchase_">, z.ZodLiteral<"_Rental_">]>>;
|
|
216
|
+
countryIso: z.ZodString;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
export type PricingContext = z.infer<typeof PricingContextSchema>;
|
|
219
|
+
export declare const PricingLineSchema: z.ZodObject<{
|
|
220
|
+
cartItemId: z.ZodCustom<UUID, UUID>;
|
|
221
|
+
itemId: z.ZodCustom<UUID, UUID>;
|
|
222
|
+
quantity: z.ZodNumber;
|
|
223
|
+
category: z.ZodUnion<readonly [z.ZodLiteral<"_Solution_">, z.ZodLiteral<"_Warranty_">, z.ZodLiteral<"_Accessory_">, z.ZodLiteral<"_Training_">, z.ZodLiteral<"_Delivery_">]>;
|
|
224
|
+
sku: z.ZodNullable<z.ZodString>;
|
|
225
|
+
name: z.ZodNullable<z.ZodString>;
|
|
226
|
+
recurrence: z.ZodUnion<readonly [z.ZodLiteral<"_One_Time_">, z.ZodLiteral<"_Monthly_">, z.ZodLiteral<"_Annually_">]>;
|
|
227
|
+
currency: z.ZodString;
|
|
228
|
+
unit: z.ZodObject<{
|
|
229
|
+
excl: z.ZodNumber;
|
|
230
|
+
vat: z.ZodNumber;
|
|
231
|
+
incl: z.ZodNumber;
|
|
232
|
+
}, z.core.$strip>;
|
|
233
|
+
line: z.ZodObject<{
|
|
234
|
+
excl: z.ZodNumber;
|
|
235
|
+
vat: z.ZodNumber;
|
|
236
|
+
incl: z.ZodNumber;
|
|
237
|
+
}, z.core.$strip>;
|
|
238
|
+
vatRate: z.ZodNumber;
|
|
239
|
+
countryIso: z.ZodString;
|
|
240
|
+
matchKind: z.ZodNullable<z.ZodString>;
|
|
241
|
+
}, z.core.$strip>;
|
|
242
|
+
export type PricingLine = z.infer<typeof PricingLineSchema>;
|
|
243
|
+
export declare const PricingRecurrenceTotalSchema: z.ZodObject<{
|
|
244
|
+
recurrence: z.ZodUnion<readonly [z.ZodLiteral<"_One_Time_">, z.ZodLiteral<"_Monthly_">, z.ZodLiteral<"_Annually_">]>;
|
|
245
|
+
currency: z.ZodString;
|
|
246
|
+
gross: z.ZodObject<{
|
|
247
|
+
excl: z.ZodNumber;
|
|
248
|
+
vat: z.ZodNumber;
|
|
249
|
+
incl: z.ZodNumber;
|
|
250
|
+
}, z.core.$strip>;
|
|
251
|
+
discount: z.ZodObject<{
|
|
252
|
+
excl: z.ZodNumber;
|
|
253
|
+
vat: z.ZodNumber;
|
|
254
|
+
incl: z.ZodNumber;
|
|
255
|
+
}, z.core.$strip>;
|
|
256
|
+
net: z.ZodObject<{
|
|
257
|
+
excl: z.ZodNumber;
|
|
258
|
+
vat: z.ZodNumber;
|
|
259
|
+
incl: z.ZodNumber;
|
|
260
|
+
}, z.core.$strip>;
|
|
261
|
+
countryIso: z.ZodString;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
|
+
export type PricingRecurrenceTotal = z.infer<typeof PricingRecurrenceTotalSchema>;
|
|
264
|
+
export declare const AppliedDiscountBucketSchema: z.ZodObject<{
|
|
265
|
+
excl: z.ZodNumber;
|
|
266
|
+
vat: z.ZodNumber;
|
|
267
|
+
incl: z.ZodNumber;
|
|
268
|
+
}, z.core.$strip>;
|
|
269
|
+
export type AppliedDiscountBucket = z.infer<typeof AppliedDiscountBucketSchema>;
|
|
270
|
+
export declare const AppliedDiscountSchema: z.ZodObject<{
|
|
271
|
+
cartDiscountId: z.ZodCustom<UUID, UUID>;
|
|
272
|
+
discountId: z.ZodCustom<UUID, UUID>;
|
|
273
|
+
code: z.ZodString;
|
|
274
|
+
label: z.ZodNullable<z.ZodString>;
|
|
275
|
+
targetScope: z.ZodUnion<readonly [z.ZodLiteral<"_Whole_Cart_">, z.ZodLiteral<"_Specific_Items_">, z.ZodLiteral<"_Item_Category_">, z.ZodLiteral<"_Delivery_">]>;
|
|
276
|
+
valueType: z.ZodUnion<readonly [z.ZodLiteral<"_Percentage_">, z.ZodLiteral<"_Fixed_Amount_">]>;
|
|
277
|
+
appliesToOneTime: z.ZodBoolean;
|
|
278
|
+
appliesToRecurring: z.ZodBoolean;
|
|
279
|
+
stackable: z.ZodBoolean;
|
|
280
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
281
|
+
byRecurrence: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
282
|
+
excl: z.ZodNumber;
|
|
283
|
+
vat: z.ZodNumber;
|
|
284
|
+
incl: z.ZodNumber;
|
|
285
|
+
}, z.core.$strip>>;
|
|
286
|
+
}, z.core.$strip>;
|
|
287
|
+
export type AppliedDiscount = z.infer<typeof AppliedDiscountSchema>;
|
|
288
|
+
export declare const CartTotalSchema: z.ZodObject<{
|
|
289
|
+
currency: z.ZodString;
|
|
290
|
+
oneTime: z.ZodObject<{
|
|
291
|
+
excl: z.ZodNumber;
|
|
292
|
+
incl: z.ZodNumber;
|
|
293
|
+
}, z.core.$strip>;
|
|
294
|
+
recurring: z.ZodObject<{
|
|
295
|
+
excl: z.ZodNumber;
|
|
296
|
+
incl: z.ZodNumber;
|
|
297
|
+
frequency: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Monthly_">, z.ZodLiteral<"_Annually_">]>>;
|
|
298
|
+
}, z.core.$strip>;
|
|
299
|
+
}, z.core.$strip>;
|
|
300
|
+
export type CartTotal = z.infer<typeof CartTotalSchema>;
|
|
301
|
+
export declare const CartPricingSchema: z.ZodObject<{
|
|
302
|
+
context: z.ZodObject<{
|
|
303
|
+
cartId: z.ZodCustom<UUID, UUID>;
|
|
304
|
+
profile: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Individual_">, z.ZodLiteral<"_Small_Business_">, z.ZodLiteral<"_Company_">]>>;
|
|
305
|
+
offerType: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Purchase_">, z.ZodLiteral<"_Rental_">]>>;
|
|
306
|
+
countryIso: z.ZodString;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
309
|
+
cartItemId: z.ZodCustom<UUID, UUID>;
|
|
310
|
+
itemId: z.ZodCustom<UUID, UUID>;
|
|
311
|
+
quantity: z.ZodNumber;
|
|
312
|
+
category: z.ZodUnion<readonly [z.ZodLiteral<"_Solution_">, z.ZodLiteral<"_Warranty_">, z.ZodLiteral<"_Accessory_">, z.ZodLiteral<"_Training_">, z.ZodLiteral<"_Delivery_">]>;
|
|
313
|
+
sku: z.ZodNullable<z.ZodString>;
|
|
314
|
+
name: z.ZodNullable<z.ZodString>;
|
|
315
|
+
recurrence: z.ZodUnion<readonly [z.ZodLiteral<"_One_Time_">, z.ZodLiteral<"_Monthly_">, z.ZodLiteral<"_Annually_">]>;
|
|
316
|
+
currency: z.ZodString;
|
|
317
|
+
unit: z.ZodObject<{
|
|
318
|
+
excl: z.ZodNumber;
|
|
319
|
+
vat: z.ZodNumber;
|
|
320
|
+
incl: z.ZodNumber;
|
|
321
|
+
}, z.core.$strip>;
|
|
322
|
+
line: z.ZodObject<{
|
|
323
|
+
excl: z.ZodNumber;
|
|
324
|
+
vat: z.ZodNumber;
|
|
325
|
+
incl: z.ZodNumber;
|
|
326
|
+
}, z.core.$strip>;
|
|
327
|
+
vatRate: z.ZodNumber;
|
|
328
|
+
countryIso: z.ZodString;
|
|
329
|
+
matchKind: z.ZodNullable<z.ZodString>;
|
|
330
|
+
}, z.core.$strip>>;
|
|
331
|
+
totalsByRecurrence: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
332
|
+
recurrence: z.ZodUnion<readonly [z.ZodLiteral<"_One_Time_">, z.ZodLiteral<"_Monthly_">, z.ZodLiteral<"_Annually_">]>;
|
|
333
|
+
currency: z.ZodString;
|
|
334
|
+
gross: z.ZodObject<{
|
|
335
|
+
excl: z.ZodNumber;
|
|
336
|
+
vat: z.ZodNumber;
|
|
337
|
+
incl: z.ZodNumber;
|
|
338
|
+
}, z.core.$strip>;
|
|
339
|
+
discount: z.ZodObject<{
|
|
340
|
+
excl: z.ZodNumber;
|
|
341
|
+
vat: z.ZodNumber;
|
|
342
|
+
incl: z.ZodNumber;
|
|
343
|
+
}, z.core.$strip>;
|
|
344
|
+
net: z.ZodObject<{
|
|
345
|
+
excl: z.ZodNumber;
|
|
346
|
+
vat: z.ZodNumber;
|
|
347
|
+
incl: z.ZodNumber;
|
|
348
|
+
}, z.core.$strip>;
|
|
349
|
+
countryIso: z.ZodString;
|
|
350
|
+
}, z.core.$strip>>;
|
|
351
|
+
appliedDiscounts: z.ZodArray<z.ZodObject<{
|
|
352
|
+
cartDiscountId: z.ZodCustom<UUID, UUID>;
|
|
353
|
+
discountId: z.ZodCustom<UUID, UUID>;
|
|
354
|
+
code: z.ZodString;
|
|
355
|
+
label: z.ZodNullable<z.ZodString>;
|
|
356
|
+
targetScope: z.ZodUnion<readonly [z.ZodLiteral<"_Whole_Cart_">, z.ZodLiteral<"_Specific_Items_">, z.ZodLiteral<"_Item_Category_">, z.ZodLiteral<"_Delivery_">]>;
|
|
357
|
+
valueType: z.ZodUnion<readonly [z.ZodLiteral<"_Percentage_">, z.ZodLiteral<"_Fixed_Amount_">]>;
|
|
358
|
+
appliesToOneTime: z.ZodBoolean;
|
|
359
|
+
appliesToRecurring: z.ZodBoolean;
|
|
360
|
+
stackable: z.ZodBoolean;
|
|
361
|
+
value: z.ZodNullable<z.ZodNumber>;
|
|
362
|
+
byRecurrence: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
363
|
+
excl: z.ZodNumber;
|
|
364
|
+
vat: z.ZodNumber;
|
|
365
|
+
incl: z.ZodNumber;
|
|
366
|
+
}, z.core.$strip>>;
|
|
367
|
+
}, z.core.$strip>>;
|
|
368
|
+
total: z.ZodObject<{
|
|
369
|
+
currency: z.ZodString;
|
|
370
|
+
oneTime: z.ZodObject<{
|
|
371
|
+
excl: z.ZodNumber;
|
|
372
|
+
incl: z.ZodNumber;
|
|
373
|
+
}, z.core.$strip>;
|
|
374
|
+
recurring: z.ZodObject<{
|
|
375
|
+
excl: z.ZodNumber;
|
|
376
|
+
incl: z.ZodNumber;
|
|
377
|
+
frequency: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Monthly_">, z.ZodLiteral<"_Annually_">]>>;
|
|
378
|
+
}, z.core.$strip>;
|
|
379
|
+
}, z.core.$strip>;
|
|
380
|
+
}, z.core.$strip>;
|
|
381
|
+
export type CartPricing = z.infer<typeof CartPricingSchema>;
|
|
382
|
+
export declare const CartSchema: z.ZodObject<{
|
|
383
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
384
|
+
reference: z.ZodString;
|
|
385
|
+
secret: z.ZodString;
|
|
386
|
+
status: z.ZodUnion<readonly [z.ZodLiteral<"_Draft_">, z.ZodLiteral<"_Pending_">, z.ZodLiteral<"_Paid_">, z.ZodLiteral<"_Abandoned_">, z.ZodLiteral<"_Cancelled_">]>;
|
|
387
|
+
currentStep: z.ZodUnion<readonly [z.ZodLiteral<"_Profile_">, z.ZodLiteral<"_Offers_">, z.ZodLiteral<"_Information_">, z.ZodLiteral<"_Options_">, z.ZodLiteral<"_Delivery_">, z.ZodLiteral<"_Payment_">]>;
|
|
388
|
+
maxReachedStep: z.ZodUnion<readonly [z.ZodLiteral<"_Profile_">, z.ZodLiteral<"_Offers_">, z.ZodLiteral<"_Information_">, z.ZodLiteral<"_Options_">, z.ZodLiteral<"_Delivery_">, z.ZodLiteral<"_Payment_">]>;
|
|
389
|
+
profile: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Individual_">, z.ZodLiteral<"_Small_Business_">, z.ZodLiteral<"_Company_">]>>;
|
|
390
|
+
offerType: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Purchase_">, z.ZodLiteral<"_Rental_">]>>;
|
|
391
|
+
paymentMethod: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Card_">, z.ZodLiteral<"_PayPal_">, z.ZodLiteral<"_SEPA_">, z.ZodLiteral<"_Alma_4x_">]>>;
|
|
392
|
+
paymentFrequency: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Monthly_">, z.ZodLiteral<"_Annually_">]>>;
|
|
393
|
+
deliveryMethod: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Standard_">, z.ZodLiteral<"_Express_">]>>;
|
|
394
|
+
devices: z.ZodNumber;
|
|
395
|
+
locale: z.ZodUnion<readonly [z.ZodLiteral<"fr">, z.ZodLiteral<"en">, z.ZodLiteral<"nl">, z.ZodLiteral<"de">, z.ZodLiteral<"it">, z.ZodLiteral<"es">]>;
|
|
396
|
+
vatNumber: z.ZodNullable<z.ZodString>;
|
|
397
|
+
multiAddressesCallback: z.ZodBoolean;
|
|
398
|
+
createdAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
399
|
+
updatedAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
400
|
+
}, z.core.$strip>;
|
|
401
|
+
export type Cart = z.infer<typeof CartSchema>;
|
|
402
|
+
export declare const OrderSchema: z.ZodObject<{
|
|
403
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
404
|
+
reference: z.ZodString;
|
|
405
|
+
secret: z.ZodString;
|
|
406
|
+
status: z.ZodUnion<readonly [z.ZodLiteral<"_Pending_">, z.ZodLiteral<"_Paid_">, z.ZodLiteral<"_In_Production_">, z.ZodLiteral<"_In_Delivery_">, z.ZodLiteral<"_Delivered_">, z.ZodLiteral<"_Cancelled_">, z.ZodLiteral<"_Refunded_">]>;
|
|
407
|
+
cartId: z.ZodCustom<UUID, UUID>;
|
|
408
|
+
profile: z.ZodUnion<readonly [z.ZodLiteral<"_Individual_">, z.ZodLiteral<"_Small_Business_">, z.ZodLiteral<"_Company_">]>;
|
|
409
|
+
offerType: z.ZodUnion<readonly [z.ZodLiteral<"_Purchase_">, z.ZodLiteral<"_Rental_">]>;
|
|
410
|
+
paymentFrequency: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Monthly_">, z.ZodLiteral<"_Annually_">]>>;
|
|
411
|
+
deliveryMethod: z.ZodUnion<readonly [z.ZodLiteral<"_Standard_">, z.ZodLiteral<"_Express_">]>;
|
|
412
|
+
currency: z.ZodString;
|
|
413
|
+
oneTime: z.ZodObject<{
|
|
414
|
+
excl: z.ZodNumber;
|
|
415
|
+
vat: z.ZodNumber;
|
|
416
|
+
incl: z.ZodNumber;
|
|
417
|
+
}, z.core.$strip>;
|
|
418
|
+
recurring: z.ZodObject<{
|
|
419
|
+
excl: z.ZodNumber;
|
|
420
|
+
vat: z.ZodNumber;
|
|
421
|
+
incl: z.ZodNumber;
|
|
422
|
+
}, z.core.$strip>;
|
|
423
|
+
createdAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
424
|
+
updatedAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
425
|
+
}, z.core.$strip>;
|
|
426
|
+
export type Order = z.infer<typeof OrderSchema>;
|
|
427
|
+
export declare const OperationSummarySchema: z.ZodObject<{
|
|
428
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
429
|
+
slug: z.ZodString;
|
|
430
|
+
name: z.ZodString;
|
|
431
|
+
description: z.ZodNullable<z.ZodString>;
|
|
432
|
+
startsAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
433
|
+
endsAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
434
|
+
priority: z.ZodNumber;
|
|
435
|
+
autoApplyDiscount: z.ZodBoolean;
|
|
436
|
+
discountId: z.ZodNullable<z.ZodCustom<UUID, UUID>>;
|
|
437
|
+
discountCode: z.ZodNullable<z.ZodString>;
|
|
438
|
+
discountLabel: z.ZodNullable<z.ZodString>;
|
|
439
|
+
discountValueType: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Percentage_">, z.ZodLiteral<"_Fixed_Amount_">]>>;
|
|
440
|
+
discountValue: z.ZodNullable<z.ZodNumber>;
|
|
441
|
+
}, z.core.$strip>;
|
|
442
|
+
export type OperationSummary = z.infer<typeof OperationSummarySchema>;
|
|
443
|
+
export declare const OperationAssetSchema: z.ZodObject<{
|
|
444
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
445
|
+
operationId: z.ZodCustom<UUID, UUID>;
|
|
446
|
+
type: z.ZodUnion<readonly [z.ZodLiteral<"_Banner_Header_">, z.ZodLiteral<"_Banner_Mini_">, z.ZodLiteral<"_Banner_Sub_Header_">, z.ZodLiteral<"_Hero_">, z.ZodLiteral<"_Popup_Welcome_">, z.ZodLiteral<"_Popup_Operation_">, z.ZodLiteral<"_Popup_Technical_">, z.ZodLiteral<"_Strikethrough_Price_">, z.ZodLiteral<"_Discount_Section_">, z.ZodLiteral<"_Tag_">, z.ZodLiteral<"_Text_Banner_">, z.ZodLiteral<"_Page_Background_">]>;
|
|
447
|
+
surface: z.ZodUnion<readonly [z.ZodLiteral<"_All_">, z.ZodLiteral<"_Checkout_">, z.ZodLiteral<"_Storefront_">]>;
|
|
448
|
+
lang: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"fr">, z.ZodLiteral<"en">, z.ZodLiteral<"nl">, z.ZodLiteral<"de">, z.ZodLiteral<"it">, z.ZodLiteral<"es">]>>;
|
|
449
|
+
order: z.ZodNumber;
|
|
450
|
+
pageUrlPattern: z.ZodNullable<z.ZodString>;
|
|
451
|
+
content: z.ZodUnknown;
|
|
452
|
+
styles: z.ZodNullable<z.ZodUnknown>;
|
|
453
|
+
createdAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
454
|
+
updatedAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
455
|
+
}, z.core.$strip>;
|
|
456
|
+
export type OperationAsset = z.infer<typeof OperationAssetSchema>;
|
|
457
|
+
export declare const OperationItemPricingSchema: z.ZodObject<{
|
|
458
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
459
|
+
operationId: z.ZodCustom<UUID, UUID>;
|
|
460
|
+
itemId: z.ZodCustom<UUID, UUID>;
|
|
461
|
+
profile: z.ZodUnion<readonly [z.ZodLiteral<"_Individual_">, z.ZodLiteral<"_Small_Business_">, z.ZodLiteral<"_Company_">]>;
|
|
462
|
+
recurrence: z.ZodUnion<readonly [z.ZodLiteral<"_One_Time_">, z.ZodLiteral<"_Monthly_">, z.ZodLiteral<"_Annually_">]>;
|
|
463
|
+
originalExclVat: z.ZodNumber;
|
|
464
|
+
discountedExclVat: z.ZodNumber;
|
|
465
|
+
currency: z.ZodString;
|
|
466
|
+
sku: z.ZodNullable<z.ZodString>;
|
|
467
|
+
}, z.core.$strip>;
|
|
468
|
+
export type OperationItemPricing = z.infer<typeof OperationItemPricingSchema>;
|
|
469
|
+
export declare const OperationDetailSchema: z.ZodObject<{
|
|
470
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
471
|
+
slug: z.ZodString;
|
|
472
|
+
name: z.ZodString;
|
|
473
|
+
description: z.ZodNullable<z.ZodString>;
|
|
474
|
+
startsAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
475
|
+
endsAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
476
|
+
priority: z.ZodNumber;
|
|
477
|
+
autoApplyDiscount: z.ZodBoolean;
|
|
478
|
+
discountId: z.ZodNullable<z.ZodCustom<UUID, UUID>>;
|
|
479
|
+
discountCode: z.ZodNullable<z.ZodString>;
|
|
480
|
+
discountLabel: z.ZodNullable<z.ZodString>;
|
|
481
|
+
discountValueType: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Percentage_">, z.ZodLiteral<"_Fixed_Amount_">]>>;
|
|
482
|
+
discountValue: z.ZodNullable<z.ZodNumber>;
|
|
483
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
484
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
485
|
+
operationId: z.ZodCustom<UUID, UUID>;
|
|
486
|
+
type: z.ZodUnion<readonly [z.ZodLiteral<"_Banner_Header_">, z.ZodLiteral<"_Banner_Mini_">, z.ZodLiteral<"_Banner_Sub_Header_">, z.ZodLiteral<"_Hero_">, z.ZodLiteral<"_Popup_Welcome_">, z.ZodLiteral<"_Popup_Operation_">, z.ZodLiteral<"_Popup_Technical_">, z.ZodLiteral<"_Strikethrough_Price_">, z.ZodLiteral<"_Discount_Section_">, z.ZodLiteral<"_Tag_">, z.ZodLiteral<"_Text_Banner_">, z.ZodLiteral<"_Page_Background_">]>;
|
|
487
|
+
surface: z.ZodUnion<readonly [z.ZodLiteral<"_All_">, z.ZodLiteral<"_Checkout_">, z.ZodLiteral<"_Storefront_">]>;
|
|
488
|
+
lang: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"fr">, z.ZodLiteral<"en">, z.ZodLiteral<"nl">, z.ZodLiteral<"de">, z.ZodLiteral<"it">, z.ZodLiteral<"es">]>>;
|
|
489
|
+
order: z.ZodNumber;
|
|
490
|
+
pageUrlPattern: z.ZodNullable<z.ZodString>;
|
|
491
|
+
content: z.ZodUnknown;
|
|
492
|
+
styles: z.ZodNullable<z.ZodUnknown>;
|
|
493
|
+
createdAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
494
|
+
updatedAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
495
|
+
}, z.core.$strip>>;
|
|
496
|
+
itemsPricing: z.ZodArray<z.ZodObject<{
|
|
497
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
498
|
+
operationId: z.ZodCustom<UUID, UUID>;
|
|
499
|
+
itemId: z.ZodCustom<UUID, UUID>;
|
|
500
|
+
profile: z.ZodUnion<readonly [z.ZodLiteral<"_Individual_">, z.ZodLiteral<"_Small_Business_">, z.ZodLiteral<"_Company_">]>;
|
|
501
|
+
recurrence: z.ZodUnion<readonly [z.ZodLiteral<"_One_Time_">, z.ZodLiteral<"_Monthly_">, z.ZodLiteral<"_Annually_">]>;
|
|
502
|
+
originalExclVat: z.ZodNumber;
|
|
503
|
+
discountedExclVat: z.ZodNumber;
|
|
504
|
+
currency: z.ZodString;
|
|
505
|
+
sku: z.ZodNullable<z.ZodString>;
|
|
506
|
+
}, z.core.$strip>>;
|
|
507
|
+
}, z.core.$strip>;
|
|
508
|
+
export type OperationDetail = z.infer<typeof OperationDetailSchema>;
|
|
509
|
+
export declare const TestimonialSchema: z.ZodObject<{
|
|
510
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
511
|
+
lang: z.ZodUnion<readonly [z.ZodLiteral<"fr">, z.ZodLiteral<"en">, z.ZodLiteral<"nl">, z.ZodLiteral<"de">, z.ZodLiteral<"it">, z.ZodLiteral<"es">]>;
|
|
512
|
+
type: z.ZodUnion<readonly [z.ZodLiteral<"_Text_">, z.ZodLiteral<"_Image_">, z.ZodLiteral<"_Video_">]>;
|
|
513
|
+
author: z.ZodString;
|
|
514
|
+
content: z.ZodNullable<z.ZodString>;
|
|
515
|
+
altText: z.ZodNullable<z.ZodString>;
|
|
516
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
517
|
+
videoUrl: z.ZodNullable<z.ZodString>;
|
|
518
|
+
rating: z.ZodNullable<z.ZodNumber>;
|
|
519
|
+
publishedAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
520
|
+
order: z.ZodNumber;
|
|
521
|
+
}, z.core.$strip>;
|
|
522
|
+
export type Testimonial = z.infer<typeof TestimonialSchema>;
|
|
523
|
+
export declare const TestimonialCategorySchema: z.ZodObject<{
|
|
524
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
525
|
+
lang: z.ZodUnion<readonly [z.ZodLiteral<"fr">, z.ZodLiteral<"en">, z.ZodLiteral<"nl">, z.ZodLiteral<"de">, z.ZodLiteral<"it">, z.ZodLiteral<"es">]>;
|
|
526
|
+
name: z.ZodString;
|
|
527
|
+
order: z.ZodNumber;
|
|
528
|
+
}, z.core.$strip>;
|
|
529
|
+
export type TestimonialCategory = z.infer<typeof TestimonialCategorySchema>;
|
|
530
|
+
export declare const HelpArticleSchema: z.ZodObject<{
|
|
531
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
532
|
+
title: z.ZodString;
|
|
533
|
+
body: z.ZodString;
|
|
534
|
+
order: z.ZodNumber;
|
|
535
|
+
}, z.core.$strip>;
|
|
536
|
+
export type HelpArticle = z.infer<typeof HelpArticleSchema>;
|
|
537
|
+
export type HelpCategory = {
|
|
538
|
+
id: UUID;
|
|
539
|
+
parentId: UUID | null;
|
|
540
|
+
lang: Lang;
|
|
541
|
+
name: string;
|
|
542
|
+
description: string | null;
|
|
543
|
+
logoUrl: string | null;
|
|
544
|
+
order: number;
|
|
545
|
+
articles: HelpArticle[];
|
|
546
|
+
subCategories: HelpCategory[];
|
|
547
|
+
};
|
|
548
|
+
export declare const HelpCategorySchema: z.ZodType<HelpCategory>;
|
|
549
|
+
export declare const HelpPageSchema: z.ZodObject<{
|
|
550
|
+
id: z.ZodCustom<UUID, UUID>;
|
|
551
|
+
slug: z.ZodString;
|
|
552
|
+
name: z.ZodString;
|
|
553
|
+
createdAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
554
|
+
}, z.core.$strip>;
|
|
555
|
+
export type HelpPage = z.infer<typeof HelpPageSchema>;
|
|
556
|
+
export declare const ContactRequestInputSchema: z.ZodObject<{
|
|
557
|
+
firstName: z.ZodString;
|
|
558
|
+
lastName: z.ZodString;
|
|
559
|
+
email: z.ZodString;
|
|
560
|
+
phone: z.ZodString;
|
|
561
|
+
company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
562
|
+
devices: z.ZodOptional<z.ZodNumber>;
|
|
563
|
+
content: z.ZodString;
|
|
564
|
+
captchaToken: z.ZodString;
|
|
565
|
+
profile: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"_Individual_">, z.ZodLiteral<"_Small_Business_">, z.ZodLiteral<"_Company_">]>>;
|
|
566
|
+
locale: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"fr">, z.ZodLiteral<"en">, z.ZodLiteral<"nl">, z.ZodLiteral<"de">, z.ZodLiteral<"it">, z.ZodLiteral<"es">]>>;
|
|
567
|
+
}, z.core.$strip>;
|
|
568
|
+
export type ContactRequestInput = z.infer<typeof ContactRequestInputSchema>;
|
|
569
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAKnC,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC3D,eAAO,MAAM,UAAU,+IAAkH,CAAC;AAE1I,MAAM,MAAM,WAAW,GAAG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