aves-sdk 1.2.0 → 1.2.2
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +528 -2466
- package/dist/index.d.ts +528 -2466
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,89 @@
|
|
|
1
|
-
import { z, ZodSchema, ZodError } from 'zod';
|
|
2
1
|
import { DynamicModule, ModuleMetadata, Type } from '@nestjs/common';
|
|
3
2
|
import { AxiosRequestConfig } from 'axios';
|
|
4
|
-
import
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
|
|
5
|
+
declare enum AvesStatus {
|
|
6
|
+
OK = "OK",
|
|
7
|
+
ERROR = "ERROR",
|
|
8
|
+
WARNING = "WARNING",
|
|
9
|
+
TIMEOUT = "TIMEOUT"
|
|
10
|
+
}
|
|
11
|
+
interface RsStatus {
|
|
12
|
+
'@Status': AvesStatus;
|
|
13
|
+
ErrorCode?: string;
|
|
14
|
+
ErrorDescription?: string;
|
|
15
|
+
Warnings?: {
|
|
16
|
+
Warning: string | string[];
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
declare enum AvesSeverity {
|
|
20
|
+
ERROR = "ERROR",
|
|
21
|
+
WARNING = "WARNING",
|
|
22
|
+
INFO = "INFO"
|
|
23
|
+
}
|
|
24
|
+
interface AvesError {
|
|
25
|
+
code: string;
|
|
26
|
+
message: string;
|
|
27
|
+
severity: AvesSeverity;
|
|
28
|
+
timestamp: string;
|
|
29
|
+
requestId: string;
|
|
30
|
+
context?: Record<string, any>;
|
|
31
|
+
}
|
|
32
|
+
declare enum AvesErrorCodes {
|
|
33
|
+
INVALID_TOKEN = "AVES_001",
|
|
34
|
+
TOKEN_EXPIRED = "AVES_002",
|
|
35
|
+
INSUFFICIENT_PERMISSIONS = "AVES_003",
|
|
36
|
+
INVALID_REQUEST_FORMAT = "AVES_100",
|
|
37
|
+
MISSING_REQUIRED_FIELD = "AVES_101",
|
|
38
|
+
INVALID_FIELD_VALUE = "AVES_102",
|
|
39
|
+
INVALID_DATE_FORMAT = "AVES_103",
|
|
40
|
+
BOOKING_NOT_FOUND = "AVES_200",
|
|
41
|
+
BOOKING_ALREADY_CANCELLED = "AVES_201",
|
|
42
|
+
INVALID_BOOKING_STATUS = "AVES_202",
|
|
43
|
+
PAYMENT_FAILED = "AVES_203",
|
|
44
|
+
INSUFFICIENT_INVENTORY = "AVES_204",
|
|
45
|
+
INTERNAL_SERVER_ERROR = "AVES_500",
|
|
46
|
+
SERVICE_UNAVAILABLE = "AVES_501",
|
|
47
|
+
TIMEOUT = "AVES_502",
|
|
48
|
+
RATE_LIMIT_EXCEEDED = "AVES_503"
|
|
49
|
+
}
|
|
50
|
+
interface AvesResponseRoot<TBody> {
|
|
51
|
+
Response: {
|
|
52
|
+
RsStatus: RsStatus;
|
|
53
|
+
Body?: TBody;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
type LanguageCode = '01' | '02';
|
|
57
|
+
interface AvesSdkConfig {
|
|
58
|
+
baseUrl: string;
|
|
59
|
+
hostId: string;
|
|
60
|
+
xtoken: string;
|
|
61
|
+
languageCode?: LanguageCode;
|
|
62
|
+
timeout?: number;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
declare class AvesModule {
|
|
66
|
+
static readonly MODULE_NAME = "AvesModule";
|
|
67
|
+
static readonly VERSION = "1.0.0";
|
|
68
|
+
static forRoot(config: AvesSdkConfig): DynamicModule;
|
|
69
|
+
static forRootAsync(options: AvesModuleAsyncOptions): DynamicModule;
|
|
70
|
+
private static createXmlHttpClientProvider;
|
|
71
|
+
private static createAsyncProviders;
|
|
72
|
+
private static validateConfig;
|
|
73
|
+
}
|
|
74
|
+
interface AvesOptionsFactory {
|
|
75
|
+
createAvesOptions(): Promise<AvesSdkConfig> | AvesSdkConfig;
|
|
76
|
+
}
|
|
77
|
+
interface AvesModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
|
|
78
|
+
useExisting?: Type<AvesOptionsFactory>;
|
|
79
|
+
useClass?: Type<AvesOptionsFactory>;
|
|
80
|
+
useFactory?: (...args: any[]) => Promise<AvesSdkConfig> | AvesSdkConfig;
|
|
81
|
+
inject?: (string | symbol | Type<any>)[];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
interface IXmlHttpClient {
|
|
85
|
+
postXml<TRequest extends object, TResponse = unknown>(endpoint: string, rootElementName: string, request: TRequest, config?: AxiosRequestConfig): Promise<TResponse>;
|
|
86
|
+
}
|
|
5
87
|
|
|
6
88
|
declare const PassengerType: {
|
|
7
89
|
readonly ADULT: "adult";
|
|
@@ -126,12 +208,6 @@ declare const emailTypeSchema: z.ZodEnum<{
|
|
|
126
208
|
home: "home";
|
|
127
209
|
work: "work";
|
|
128
210
|
}>;
|
|
129
|
-
declare const passengerTypeSchema: z.ZodEnum<{
|
|
130
|
-
adult: "adult";
|
|
131
|
-
child: "child";
|
|
132
|
-
infant: "infant";
|
|
133
|
-
senior: "senior";
|
|
134
|
-
}>;
|
|
135
211
|
declare const titleTypeSchema: z.ZodEnum<{
|
|
136
212
|
mr: "mr";
|
|
137
213
|
mrs: "mrs";
|
|
@@ -139,39 +215,6 @@ declare const titleTypeSchema: z.ZodEnum<{
|
|
|
139
215
|
dr: "dr";
|
|
140
216
|
prof: "prof";
|
|
141
217
|
}>;
|
|
142
|
-
declare const genderTypeSchema: z.ZodEnum<{
|
|
143
|
-
male: "male";
|
|
144
|
-
female: "female";
|
|
145
|
-
}>;
|
|
146
|
-
declare const serviceTypeSchema: z.ZodEnum<{
|
|
147
|
-
flight: "flight";
|
|
148
|
-
hotel: "hotel";
|
|
149
|
-
car: "car";
|
|
150
|
-
transfer: "transfer";
|
|
151
|
-
insurance: "insurance";
|
|
152
|
-
}>;
|
|
153
|
-
declare const serviceStatusTypeSchema: z.ZodEnum<{
|
|
154
|
-
confirmed: "confirmed";
|
|
155
|
-
pending: "pending";
|
|
156
|
-
cancelled: "cancelled";
|
|
157
|
-
}>;
|
|
158
|
-
declare const paymentTypeSchema: z.ZodEnum<{
|
|
159
|
-
credit_card: "credit_card";
|
|
160
|
-
debit_card: "debit_card";
|
|
161
|
-
bank_transfer: "bank_transfer";
|
|
162
|
-
cash: "cash";
|
|
163
|
-
}>;
|
|
164
|
-
declare const paymentStatusTypeSchema: z.ZodEnum<{
|
|
165
|
-
confirmed: "confirmed";
|
|
166
|
-
pending: "pending";
|
|
167
|
-
failed: "failed";
|
|
168
|
-
}>;
|
|
169
|
-
declare const customerTypeSchema: z.ZodEnum<{
|
|
170
|
-
customer: "customer";
|
|
171
|
-
supplier: "supplier";
|
|
172
|
-
voucher: "voucher";
|
|
173
|
-
supplier_voucher: "supplier_voucher";
|
|
174
|
-
}>;
|
|
175
218
|
declare const searchOperatorTypeSchema: z.ZodEnum<{
|
|
176
219
|
equals: "equals";
|
|
177
220
|
contains: "contains";
|
|
@@ -195,68 +238,6 @@ declare const specialRequestTypeSchema: z.ZodEnum<{
|
|
|
195
238
|
seat: "seat";
|
|
196
239
|
wheelchair: "wheelchair";
|
|
197
240
|
}>;
|
|
198
|
-
declare const cancelReasonTypeSchema: z.ZodEnum<{
|
|
199
|
-
customer_request: "customer_request";
|
|
200
|
-
no_show: "no_show";
|
|
201
|
-
operational: "operational";
|
|
202
|
-
other: "other";
|
|
203
|
-
}>;
|
|
204
|
-
declare const refundMethodTypeSchema: z.ZodEnum<{
|
|
205
|
-
cash: "cash";
|
|
206
|
-
original_payment: "original_payment";
|
|
207
|
-
credit: "credit";
|
|
208
|
-
}>;
|
|
209
|
-
declare const documentTypeSchema: z.ZodEnum<{
|
|
210
|
-
voucher: "voucher";
|
|
211
|
-
visa_request: "visa_request";
|
|
212
|
-
travel_information: "travel_information";
|
|
213
|
-
booking_contract: "booking_contract";
|
|
214
|
-
booking_confirmation: "booking_confirmation";
|
|
215
|
-
supplier_service_list: "supplier_service_list";
|
|
216
|
-
invoice: "invoice";
|
|
217
|
-
proforma_invoice: "proforma_invoice";
|
|
218
|
-
adeguamento: "adeguamento";
|
|
219
|
-
reservation_form: "reservation_form";
|
|
220
|
-
open_xml: "open_xml";
|
|
221
|
-
sales_invoice: "sales_invoice";
|
|
222
|
-
ticketing_tmaster: "ticketing_tmaster";
|
|
223
|
-
summary_form: "summary_form";
|
|
224
|
-
}>;
|
|
225
|
-
declare const documentFormatTypeSchema: z.ZodEnum<{
|
|
226
|
-
pdf: "pdf";
|
|
227
|
-
html: "html";
|
|
228
|
-
xml: "xml";
|
|
229
|
-
}>;
|
|
230
|
-
declare const deliveryMethodTypeSchema: z.ZodEnum<{
|
|
231
|
-
email: "email";
|
|
232
|
-
sms: "sms";
|
|
233
|
-
download: "download";
|
|
234
|
-
}>;
|
|
235
|
-
declare const bookingStatusTypeSchema: z.ZodEnum<{
|
|
236
|
-
confirmed: "confirmed";
|
|
237
|
-
quotation: "quotation";
|
|
238
|
-
work_in_progress: "work_in_progress";
|
|
239
|
-
optioned: "optioned";
|
|
240
|
-
nullified: "nullified";
|
|
241
|
-
canceled: "canceled";
|
|
242
|
-
}>;
|
|
243
|
-
declare const pricingItemTypeSchema: z.ZodEnum<{
|
|
244
|
-
service: "service";
|
|
245
|
-
tax: "tax";
|
|
246
|
-
fee: "fee";
|
|
247
|
-
discount: "discount";
|
|
248
|
-
}>;
|
|
249
|
-
declare const deliveryStatusTypeSchema: z.ZodEnum<{
|
|
250
|
-
pending: "pending";
|
|
251
|
-
failed: "failed";
|
|
252
|
-
sent: "sent";
|
|
253
|
-
}>;
|
|
254
|
-
declare const customerStatusTypeSchema: z.ZodEnum<{
|
|
255
|
-
enabled: "enabled";
|
|
256
|
-
warning: "warning";
|
|
257
|
-
blacklisted: "blacklisted";
|
|
258
|
-
disabled: "disabled";
|
|
259
|
-
}>;
|
|
260
241
|
declare const communicationMethodTypeSchema: z.ZodEnum<{
|
|
261
242
|
email: "email";
|
|
262
243
|
sms: "sms";
|
|
@@ -301,6 +282,16 @@ declare const customerContactSchema: z.ZodObject<{
|
|
|
301
282
|
}>>;
|
|
302
283
|
number: z.ZodString;
|
|
303
284
|
}, z.core.$strip>>;
|
|
285
|
+
fax: z.ZodOptional<z.ZodObject<{
|
|
286
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
287
|
+
home: "home";
|
|
288
|
+
work: "work";
|
|
289
|
+
mobile: "mobile";
|
|
290
|
+
fax: "fax";
|
|
291
|
+
}>>;
|
|
292
|
+
number: z.ZodString;
|
|
293
|
+
}, z.core.$strip>>;
|
|
294
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
304
295
|
}, z.core.$strip>;
|
|
305
296
|
declare const customerSchema: z.ZodObject<{
|
|
306
297
|
id: z.ZodString;
|
|
@@ -326,6 +317,8 @@ declare const customerSchema: z.ZodObject<{
|
|
|
326
317
|
female: "female";
|
|
327
318
|
}>>;
|
|
328
319
|
nationality: z.ZodOptional<z.ZodString>;
|
|
320
|
+
birthCity: z.ZodOptional<z.ZodString>;
|
|
321
|
+
birthCounty: z.ZodOptional<z.ZodString>;
|
|
329
322
|
}, z.core.$strip>>;
|
|
330
323
|
contact: z.ZodOptional<z.ZodObject<{
|
|
331
324
|
phone: z.ZodOptional<z.ZodObject<{
|
|
@@ -353,6 +346,16 @@ declare const customerSchema: z.ZodObject<{
|
|
|
353
346
|
}>>;
|
|
354
347
|
number: z.ZodString;
|
|
355
348
|
}, z.core.$strip>>;
|
|
349
|
+
fax: z.ZodOptional<z.ZodObject<{
|
|
350
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
351
|
+
home: "home";
|
|
352
|
+
work: "work";
|
|
353
|
+
mobile: "mobile";
|
|
354
|
+
fax: "fax";
|
|
355
|
+
}>>;
|
|
356
|
+
number: z.ZodString;
|
|
357
|
+
}, z.core.$strip>>;
|
|
358
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
356
359
|
}, z.core.$strip>>;
|
|
357
360
|
address: z.ZodOptional<z.ZodObject<{
|
|
358
361
|
type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -373,6 +376,7 @@ declare const customerSchema: z.ZodObject<{
|
|
|
373
376
|
vatCode: z.ZodOptional<z.ZodString>;
|
|
374
377
|
fiscalCode: z.ZodOptional<z.ZodString>;
|
|
375
378
|
licenseNumber: z.ZodOptional<z.ZodString>;
|
|
379
|
+
priceListCode: z.ZodOptional<z.ZodString>;
|
|
376
380
|
}, z.core.$strip>>;
|
|
377
381
|
preferences: z.ZodOptional<z.ZodObject<{
|
|
378
382
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -383,6 +387,29 @@ declare const customerSchema: z.ZodObject<{
|
|
|
383
387
|
phone: "phone";
|
|
384
388
|
}>>;
|
|
385
389
|
}, z.core.$strip>>;
|
|
390
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
391
|
+
createdDate: z.ZodOptional<z.ZodString>;
|
|
392
|
+
modifiedDate: z.ZodOptional<z.ZodString>;
|
|
393
|
+
loginType: z.ZodOptional<z.ZodEnum<{
|
|
394
|
+
SUPPLIER: "SUPPLIER";
|
|
395
|
+
WEB_BOOKING: "WEB_BOOKING";
|
|
396
|
+
BUSINESS_TRAVEL: "BUSINESS_TRAVEL";
|
|
397
|
+
GROUP_TRAVEL: "GROUP_TRAVEL";
|
|
398
|
+
ADMINISTRATOR: "ADMINISTRATOR";
|
|
399
|
+
}>>;
|
|
400
|
+
thirdPartRecordCode: z.ZodOptional<z.ZodString>;
|
|
401
|
+
searchField: z.ZodOptional<z.ZodString>;
|
|
402
|
+
extraInfo: z.ZodOptional<z.ZodString>;
|
|
403
|
+
}, z.core.$strip>>;
|
|
404
|
+
codes: z.ZodOptional<z.ZodObject<{
|
|
405
|
+
zoneCode: z.ZodOptional<z.ZodString>;
|
|
406
|
+
areaCode: z.ZodOptional<z.ZodString>;
|
|
407
|
+
branchOfficeCode: z.ZodOptional<z.ZodString>;
|
|
408
|
+
categoryCode: z.ZodOptional<z.ZodString>;
|
|
409
|
+
activityCode: z.ZodOptional<z.ZodString>;
|
|
410
|
+
promoterCode: z.ZodOptional<z.ZodString>;
|
|
411
|
+
networkCode: z.ZodOptional<z.ZodString>;
|
|
412
|
+
}, z.core.$strip>>;
|
|
386
413
|
}, z.core.$strip>;
|
|
387
414
|
declare const bookingPassengerSchema: z.ZodObject<{
|
|
388
415
|
id: z.ZodString;
|
|
@@ -451,6 +478,16 @@ declare const bookingPassengerSchema: z.ZodObject<{
|
|
|
451
478
|
}>>;
|
|
452
479
|
number: z.ZodString;
|
|
453
480
|
}, z.core.$strip>>;
|
|
481
|
+
fax: z.ZodOptional<z.ZodObject<{
|
|
482
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
483
|
+
home: "home";
|
|
484
|
+
work: "work";
|
|
485
|
+
mobile: "mobile";
|
|
486
|
+
fax: "fax";
|
|
487
|
+
}>>;
|
|
488
|
+
number: z.ZodString;
|
|
489
|
+
}, z.core.$strip>>;
|
|
490
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
454
491
|
}, z.core.$strip>>;
|
|
455
492
|
}, z.core.$strip>;
|
|
456
493
|
declare const bookingServiceSchema: z.ZodObject<{
|
|
@@ -570,10 +607,26 @@ declare const searchCustomerRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
570
607
|
}, z.core.$strip>>;
|
|
571
608
|
}, z.core.$strip>], "type">;
|
|
572
609
|
declare const createBookingRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
610
|
+
createDate: z.ZodOptional<z.ZodString>;
|
|
611
|
+
bookingFileRefCode: z.ZodOptional<z.ZodString>;
|
|
612
|
+
travelAgentCode: z.ZodOptional<z.ZodString>;
|
|
613
|
+
clerkName: z.ZodOptional<z.ZodString>;
|
|
573
614
|
description: z.ZodOptional<z.ZodString>;
|
|
574
615
|
startDate: z.ZodString;
|
|
575
616
|
endDate: z.ZodString;
|
|
576
617
|
currency: z.ZodOptional<z.ZodString>;
|
|
618
|
+
markupCode: z.ZodOptional<z.ZodString>;
|
|
619
|
+
bookingFileStatus: z.ZodOptional<z.ZodObject<{
|
|
620
|
+
value: z.ZodEnum<{
|
|
621
|
+
confirmed: "confirmed";
|
|
622
|
+
quotation: "quotation";
|
|
623
|
+
work_in_progress: "work_in_progress";
|
|
624
|
+
optioned: "optioned";
|
|
625
|
+
nullified: "nullified";
|
|
626
|
+
canceled: "canceled";
|
|
627
|
+
}>;
|
|
628
|
+
expiredDate: z.ZodOptional<z.ZodString>;
|
|
629
|
+
}, z.core.$strip>>;
|
|
577
630
|
passengers: z.ZodArray<z.ZodObject<{
|
|
578
631
|
id: z.ZodString;
|
|
579
632
|
type: z.ZodEnum<{
|
|
@@ -641,6 +694,16 @@ declare const createBookingRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
641
694
|
}>>;
|
|
642
695
|
number: z.ZodString;
|
|
643
696
|
}, z.core.$strip>>;
|
|
697
|
+
fax: z.ZodOptional<z.ZodObject<{
|
|
698
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
699
|
+
home: "home";
|
|
700
|
+
work: "work";
|
|
701
|
+
mobile: "mobile";
|
|
702
|
+
fax: "fax";
|
|
703
|
+
}>>;
|
|
704
|
+
number: z.ZodString;
|
|
705
|
+
}, z.core.$strip>>;
|
|
706
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
644
707
|
}, z.core.$strip>>;
|
|
645
708
|
}, z.core.$strip>>;
|
|
646
709
|
services: z.ZodArray<z.ZodObject<{
|
|
@@ -680,6 +743,12 @@ declare const createBookingRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
680
743
|
iataCode: z.ZodOptional<z.ZodString>;
|
|
681
744
|
nationCode: z.ZodOptional<z.ZodString>;
|
|
682
745
|
}, z.core.$strip>>;
|
|
746
|
+
earlyBookingDate: z.ZodOptional<z.ZodString>;
|
|
747
|
+
cupCode: z.ZodOptional<z.ZodString>;
|
|
748
|
+
cigCode: z.ZodOptional<z.ZodString>;
|
|
749
|
+
customerPromoterCode: z.ZodOptional<z.ZodString>;
|
|
750
|
+
billingReferenceCode: z.ZodOptional<z.ZodString>;
|
|
751
|
+
paymentReferenceCode: z.ZodOptional<z.ZodString>;
|
|
683
752
|
deadlines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
684
753
|
code: z.ZodString;
|
|
685
754
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -687,13 +756,52 @@ declare const createBookingRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
687
756
|
}, z.core.$strip>>>;
|
|
688
757
|
printDocument: z.ZodOptional<z.ZodBoolean>;
|
|
689
758
|
sendDocumentViaEmail: z.ZodOptional<z.ZodBoolean>;
|
|
759
|
+
bookingFinancialInfo: z.ZodOptional<z.ZodObject<{
|
|
760
|
+
customerPaymentType: z.ZodOptional<z.ZodEnum<{
|
|
761
|
+
CASH: "CASH";
|
|
762
|
+
BANK: "BANK";
|
|
763
|
+
RID: "RID";
|
|
764
|
+
RIBA: "RIBA";
|
|
765
|
+
SPECIFIC_CODE: "SPECIFIC_CODE";
|
|
766
|
+
NOT_SET: "NOT_SET";
|
|
767
|
+
}>>;
|
|
768
|
+
customerSpecPaymentTypeCode: z.ZodOptional<z.ZodString>;
|
|
769
|
+
}, z.core.$strip>>;
|
|
770
|
+
groupingPaxPolicy: z.ZodOptional<z.ZodEnum<{
|
|
771
|
+
GROUPED_PAX: "GROUPED_PAX";
|
|
772
|
+
NOT_GROUPED_PAX: "NOT_GROUPED_PAX";
|
|
773
|
+
ONE_PAX_ONLY: "ONE_PAX_ONLY";
|
|
774
|
+
}>>;
|
|
775
|
+
groupBookingFile: z.ZodOptional<z.ZodBoolean>;
|
|
776
|
+
typeDownloadFile: z.ZodOptional<z.ZodEnum<{
|
|
777
|
+
AVES2AVES: "AVES2AVES";
|
|
778
|
+
AVES2AVESVIA: "AVES2AVESVIA";
|
|
779
|
+
AVES2AVESITA: "AVES2AVESITA";
|
|
780
|
+
}>>;
|
|
781
|
+
setBookingFileCodeFromStartDate: z.ZodOptional<z.ZodBoolean>;
|
|
690
782
|
customerId: z.ZodString;
|
|
691
783
|
customerDetails: z.ZodOptional<z.ZodNever>;
|
|
692
784
|
}, z.core.$strip>, z.ZodObject<{
|
|
785
|
+
createDate: z.ZodOptional<z.ZodString>;
|
|
786
|
+
bookingFileRefCode: z.ZodOptional<z.ZodString>;
|
|
787
|
+
travelAgentCode: z.ZodOptional<z.ZodString>;
|
|
788
|
+
clerkName: z.ZodOptional<z.ZodString>;
|
|
693
789
|
description: z.ZodOptional<z.ZodString>;
|
|
694
790
|
startDate: z.ZodString;
|
|
695
791
|
endDate: z.ZodString;
|
|
696
792
|
currency: z.ZodOptional<z.ZodString>;
|
|
793
|
+
markupCode: z.ZodOptional<z.ZodString>;
|
|
794
|
+
bookingFileStatus: z.ZodOptional<z.ZodObject<{
|
|
795
|
+
value: z.ZodEnum<{
|
|
796
|
+
confirmed: "confirmed";
|
|
797
|
+
quotation: "quotation";
|
|
798
|
+
work_in_progress: "work_in_progress";
|
|
799
|
+
optioned: "optioned";
|
|
800
|
+
nullified: "nullified";
|
|
801
|
+
canceled: "canceled";
|
|
802
|
+
}>;
|
|
803
|
+
expiredDate: z.ZodOptional<z.ZodString>;
|
|
804
|
+
}, z.core.$strip>>;
|
|
697
805
|
passengers: z.ZodArray<z.ZodObject<{
|
|
698
806
|
id: z.ZodString;
|
|
699
807
|
type: z.ZodEnum<{
|
|
@@ -761,6 +869,16 @@ declare const createBookingRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
761
869
|
}>>;
|
|
762
870
|
number: z.ZodString;
|
|
763
871
|
}, z.core.$strip>>;
|
|
872
|
+
fax: z.ZodOptional<z.ZodObject<{
|
|
873
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
874
|
+
home: "home";
|
|
875
|
+
work: "work";
|
|
876
|
+
mobile: "mobile";
|
|
877
|
+
fax: "fax";
|
|
878
|
+
}>>;
|
|
879
|
+
number: z.ZodString;
|
|
880
|
+
}, z.core.$strip>>;
|
|
881
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
764
882
|
}, z.core.$strip>>;
|
|
765
883
|
}, z.core.$strip>>;
|
|
766
884
|
services: z.ZodArray<z.ZodObject<{
|
|
@@ -800,6 +918,12 @@ declare const createBookingRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
800
918
|
iataCode: z.ZodOptional<z.ZodString>;
|
|
801
919
|
nationCode: z.ZodOptional<z.ZodString>;
|
|
802
920
|
}, z.core.$strip>>;
|
|
921
|
+
earlyBookingDate: z.ZodOptional<z.ZodString>;
|
|
922
|
+
cupCode: z.ZodOptional<z.ZodString>;
|
|
923
|
+
cigCode: z.ZodOptional<z.ZodString>;
|
|
924
|
+
customerPromoterCode: z.ZodOptional<z.ZodString>;
|
|
925
|
+
billingReferenceCode: z.ZodOptional<z.ZodString>;
|
|
926
|
+
paymentReferenceCode: z.ZodOptional<z.ZodString>;
|
|
803
927
|
deadlines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
804
928
|
code: z.ZodString;
|
|
805
929
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -807,6 +931,29 @@ declare const createBookingRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
807
931
|
}, z.core.$strip>>>;
|
|
808
932
|
printDocument: z.ZodOptional<z.ZodBoolean>;
|
|
809
933
|
sendDocumentViaEmail: z.ZodOptional<z.ZodBoolean>;
|
|
934
|
+
bookingFinancialInfo: z.ZodOptional<z.ZodObject<{
|
|
935
|
+
customerPaymentType: z.ZodOptional<z.ZodEnum<{
|
|
936
|
+
CASH: "CASH";
|
|
937
|
+
BANK: "BANK";
|
|
938
|
+
RID: "RID";
|
|
939
|
+
RIBA: "RIBA";
|
|
940
|
+
SPECIFIC_CODE: "SPECIFIC_CODE";
|
|
941
|
+
NOT_SET: "NOT_SET";
|
|
942
|
+
}>>;
|
|
943
|
+
customerSpecPaymentTypeCode: z.ZodOptional<z.ZodString>;
|
|
944
|
+
}, z.core.$strip>>;
|
|
945
|
+
groupingPaxPolicy: z.ZodOptional<z.ZodEnum<{
|
|
946
|
+
GROUPED_PAX: "GROUPED_PAX";
|
|
947
|
+
NOT_GROUPED_PAX: "NOT_GROUPED_PAX";
|
|
948
|
+
ONE_PAX_ONLY: "ONE_PAX_ONLY";
|
|
949
|
+
}>>;
|
|
950
|
+
groupBookingFile: z.ZodOptional<z.ZodBoolean>;
|
|
951
|
+
typeDownloadFile: z.ZodOptional<z.ZodEnum<{
|
|
952
|
+
AVES2AVES: "AVES2AVES";
|
|
953
|
+
AVES2AVESVIA: "AVES2AVESVIA";
|
|
954
|
+
AVES2AVESITA: "AVES2AVESITA";
|
|
955
|
+
}>>;
|
|
956
|
+
setBookingFileCodeFromStartDate: z.ZodOptional<z.ZodBoolean>;
|
|
810
957
|
customerId: z.ZodOptional<z.ZodNever>;
|
|
811
958
|
customerDetails: z.ZodObject<{
|
|
812
959
|
id: z.ZodString;
|
|
@@ -832,6 +979,8 @@ declare const createBookingRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
832
979
|
female: "female";
|
|
833
980
|
}>>;
|
|
834
981
|
nationality: z.ZodOptional<z.ZodString>;
|
|
982
|
+
birthCity: z.ZodOptional<z.ZodString>;
|
|
983
|
+
birthCounty: z.ZodOptional<z.ZodString>;
|
|
835
984
|
}, z.core.$strip>>;
|
|
836
985
|
contact: z.ZodOptional<z.ZodObject<{
|
|
837
986
|
phone: z.ZodOptional<z.ZodObject<{
|
|
@@ -859,6 +1008,16 @@ declare const createBookingRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
859
1008
|
}>>;
|
|
860
1009
|
number: z.ZodString;
|
|
861
1010
|
}, z.core.$strip>>;
|
|
1011
|
+
fax: z.ZodOptional<z.ZodObject<{
|
|
1012
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1013
|
+
home: "home";
|
|
1014
|
+
work: "work";
|
|
1015
|
+
mobile: "mobile";
|
|
1016
|
+
fax: "fax";
|
|
1017
|
+
}>>;
|
|
1018
|
+
number: z.ZodString;
|
|
1019
|
+
}, z.core.$strip>>;
|
|
1020
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
862
1021
|
}, z.core.$strip>>;
|
|
863
1022
|
address: z.ZodOptional<z.ZodObject<{
|
|
864
1023
|
type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -879,6 +1038,7 @@ declare const createBookingRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
879
1038
|
vatCode: z.ZodOptional<z.ZodString>;
|
|
880
1039
|
fiscalCode: z.ZodOptional<z.ZodString>;
|
|
881
1040
|
licenseNumber: z.ZodOptional<z.ZodString>;
|
|
1041
|
+
priceListCode: z.ZodOptional<z.ZodString>;
|
|
882
1042
|
}, z.core.$strip>>;
|
|
883
1043
|
preferences: z.ZodOptional<z.ZodObject<{
|
|
884
1044
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -889,6 +1049,29 @@ declare const createBookingRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
889
1049
|
phone: "phone";
|
|
890
1050
|
}>>;
|
|
891
1051
|
}, z.core.$strip>>;
|
|
1052
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
1053
|
+
createdDate: z.ZodOptional<z.ZodString>;
|
|
1054
|
+
modifiedDate: z.ZodOptional<z.ZodString>;
|
|
1055
|
+
loginType: z.ZodOptional<z.ZodEnum<{
|
|
1056
|
+
SUPPLIER: "SUPPLIER";
|
|
1057
|
+
WEB_BOOKING: "WEB_BOOKING";
|
|
1058
|
+
BUSINESS_TRAVEL: "BUSINESS_TRAVEL";
|
|
1059
|
+
GROUP_TRAVEL: "GROUP_TRAVEL";
|
|
1060
|
+
ADMINISTRATOR: "ADMINISTRATOR";
|
|
1061
|
+
}>>;
|
|
1062
|
+
thirdPartRecordCode: z.ZodOptional<z.ZodString>;
|
|
1063
|
+
searchField: z.ZodOptional<z.ZodString>;
|
|
1064
|
+
extraInfo: z.ZodOptional<z.ZodString>;
|
|
1065
|
+
}, z.core.$strip>>;
|
|
1066
|
+
codes: z.ZodOptional<z.ZodObject<{
|
|
1067
|
+
zoneCode: z.ZodOptional<z.ZodString>;
|
|
1068
|
+
areaCode: z.ZodOptional<z.ZodString>;
|
|
1069
|
+
branchOfficeCode: z.ZodOptional<z.ZodString>;
|
|
1070
|
+
categoryCode: z.ZodOptional<z.ZodString>;
|
|
1071
|
+
activityCode: z.ZodOptional<z.ZodString>;
|
|
1072
|
+
promoterCode: z.ZodOptional<z.ZodString>;
|
|
1073
|
+
networkCode: z.ZodOptional<z.ZodString>;
|
|
1074
|
+
}, z.core.$strip>>;
|
|
892
1075
|
}, z.core.$strip>;
|
|
893
1076
|
}, z.core.$strip>]>;
|
|
894
1077
|
declare const cancelBookingRequestSchema: z.ZodObject<{
|
|
@@ -1010,50 +1193,51 @@ declare const addPaymentRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1010
1193
|
final_no_controls: "final_no_controls";
|
|
1011
1194
|
}>>;
|
|
1012
1195
|
}, z.core.$strip>]>;
|
|
1013
|
-
declare const
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1196
|
+
declare const bookingResponseSchema: z.ZodObject<{
|
|
1197
|
+
id: z.ZodString;
|
|
1198
|
+
status: z.ZodEnum<{
|
|
1199
|
+
confirmed: "confirmed";
|
|
1200
|
+
quotation: "quotation";
|
|
1201
|
+
work_in_progress: "work_in_progress";
|
|
1202
|
+
optioned: "optioned";
|
|
1203
|
+
nullified: "nullified";
|
|
1204
|
+
canceled: "canceled";
|
|
1205
|
+
}>;
|
|
1206
|
+
createdAt: z.ZodString;
|
|
1207
|
+
updatedAt: z.ZodString;
|
|
1208
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1209
|
+
nation: z.ZodOptional<z.ZodString>;
|
|
1210
|
+
destination: z.ZodOptional<z.ZodString>;
|
|
1211
|
+
firstConfirmationDate: z.ZodOptional<z.ZodString>;
|
|
1212
|
+
paxNumber: z.ZodOptional<z.ZodNumber>;
|
|
1213
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
1214
|
+
clerkName: z.ZodOptional<z.ZodString>;
|
|
1215
|
+
customer: z.ZodObject<{
|
|
1018
1216
|
id: z.ZodString;
|
|
1019
1217
|
type: z.ZodEnum<{
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1218
|
+
customer: "customer";
|
|
1219
|
+
supplier: "supplier";
|
|
1220
|
+
voucher: "voucher";
|
|
1221
|
+
supplier_voucher: "supplier_voucher";
|
|
1024
1222
|
}>;
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
nationality: z.ZodOptional<z.ZodString>;
|
|
1040
|
-
passport: z.ZodOptional<z.ZodObject<{
|
|
1041
|
-
number: z.ZodString;
|
|
1042
|
-
expiryDate: z.ZodString;
|
|
1043
|
-
issuingCountry: z.ZodString;
|
|
1044
|
-
}, z.core.$strip>>;
|
|
1045
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
1046
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1047
|
-
home: "home";
|
|
1048
|
-
work: "work";
|
|
1049
|
-
billing: "billing";
|
|
1050
|
-
delivery: "delivery";
|
|
1223
|
+
status: z.ZodEnum<{
|
|
1224
|
+
enabled: "enabled";
|
|
1225
|
+
warning: "warning";
|
|
1226
|
+
blacklisted: "blacklisted";
|
|
1227
|
+
disabled: "disabled";
|
|
1228
|
+
}>;
|
|
1229
|
+
personalInfo: z.ZodOptional<z.ZodObject<{
|
|
1230
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1231
|
+
firstName: z.ZodString;
|
|
1232
|
+
lastName: z.ZodString;
|
|
1233
|
+
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
1234
|
+
gender: z.ZodOptional<z.ZodEnum<{
|
|
1235
|
+
male: "male";
|
|
1236
|
+
female: "female";
|
|
1051
1237
|
}>>;
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
1056
|
-
country: z.ZodOptional<z.ZodString>;
|
|
1238
|
+
nationality: z.ZodOptional<z.ZodString>;
|
|
1239
|
+
birthCity: z.ZodOptional<z.ZodString>;
|
|
1240
|
+
birthCounty: z.ZodOptional<z.ZodString>;
|
|
1057
1241
|
}, z.core.$strip>>;
|
|
1058
1242
|
contact: z.ZodOptional<z.ZodObject<{
|
|
1059
1243
|
phone: z.ZodOptional<z.ZodObject<{
|
|
@@ -1081,114 +1265,7 @@ declare const updateBookingHeaderSchema: z.ZodObject<{
|
|
|
1081
1265
|
}>>;
|
|
1082
1266
|
number: z.ZodString;
|
|
1083
1267
|
}, z.core.$strip>>;
|
|
1084
|
-
|
|
1085
|
-
}, z.core.$strip>>>;
|
|
1086
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
1087
|
-
statisticCodes: z.ZodOptional<z.ZodObject<{
|
|
1088
|
-
code1: z.ZodOptional<z.ZodString>;
|
|
1089
|
-
code2: z.ZodOptional<z.ZodString>;
|
|
1090
|
-
code3: z.ZodOptional<z.ZodString>;
|
|
1091
|
-
code4: z.ZodOptional<z.ZodString>;
|
|
1092
|
-
code5: z.ZodOptional<z.ZodString>;
|
|
1093
|
-
code6: z.ZodOptional<z.ZodString>;
|
|
1094
|
-
}, z.core.$strip>>;
|
|
1095
|
-
}, z.core.$strip>;
|
|
1096
|
-
declare const updateBookingServicesSchema: z.ZodObject<{
|
|
1097
|
-
bookingId: z.ZodString;
|
|
1098
|
-
customerId: z.ZodString;
|
|
1099
|
-
services: z.ZodArray<z.ZodObject<{
|
|
1100
|
-
id: z.ZodString;
|
|
1101
|
-
type: z.ZodEnum<{
|
|
1102
|
-
flight: "flight";
|
|
1103
|
-
hotel: "hotel";
|
|
1104
|
-
car: "car";
|
|
1105
|
-
transfer: "transfer";
|
|
1106
|
-
insurance: "insurance";
|
|
1107
|
-
}>;
|
|
1108
|
-
status: z.ZodEnum<{
|
|
1109
|
-
confirmed: "confirmed";
|
|
1110
|
-
pending: "pending";
|
|
1111
|
-
cancelled: "cancelled";
|
|
1112
|
-
}>;
|
|
1113
|
-
code: z.ZodOptional<z.ZodString>;
|
|
1114
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1115
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1116
|
-
startDate: z.ZodOptional<z.ZodString>;
|
|
1117
|
-
endDate: z.ZodOptional<z.ZodString>;
|
|
1118
|
-
price: z.ZodOptional<z.ZodObject<{
|
|
1119
|
-
currency: z.ZodString;
|
|
1120
|
-
amount: z.ZodNumber;
|
|
1121
|
-
}, z.core.$strip>>;
|
|
1122
|
-
}, z.core.$strip>>;
|
|
1123
|
-
}, z.core.$strip>;
|
|
1124
|
-
declare const setBookingStatusSchema: z.ZodObject<{
|
|
1125
|
-
bookingId: z.ZodString;
|
|
1126
|
-
customerId: z.ZodString;
|
|
1127
|
-
status: z.ZodEnum<{
|
|
1128
|
-
confirmed: "confirmed";
|
|
1129
|
-
quotation: "quotation";
|
|
1130
|
-
work_in_progress: "work_in_progress";
|
|
1131
|
-
optioned: "optioned";
|
|
1132
|
-
nullified: "nullified";
|
|
1133
|
-
canceled: "canceled";
|
|
1134
|
-
}>;
|
|
1135
|
-
expireDate: z.ZodOptional<z.ZodString>;
|
|
1136
|
-
}, z.core.$strip>;
|
|
1137
|
-
declare const bookingResponseSchema: z.ZodObject<{
|
|
1138
|
-
id: z.ZodString;
|
|
1139
|
-
status: z.ZodEnum<{
|
|
1140
|
-
confirmed: "confirmed";
|
|
1141
|
-
quotation: "quotation";
|
|
1142
|
-
work_in_progress: "work_in_progress";
|
|
1143
|
-
optioned: "optioned";
|
|
1144
|
-
nullified: "nullified";
|
|
1145
|
-
canceled: "canceled";
|
|
1146
|
-
}>;
|
|
1147
|
-
createdAt: z.ZodString;
|
|
1148
|
-
updatedAt: z.ZodString;
|
|
1149
|
-
customer: z.ZodObject<{
|
|
1150
|
-
id: z.ZodString;
|
|
1151
|
-
type: z.ZodEnum<{
|
|
1152
|
-
customer: "customer";
|
|
1153
|
-
supplier: "supplier";
|
|
1154
|
-
voucher: "voucher";
|
|
1155
|
-
supplier_voucher: "supplier_voucher";
|
|
1156
|
-
}>;
|
|
1157
|
-
status: z.ZodEnum<{
|
|
1158
|
-
enabled: "enabled";
|
|
1159
|
-
warning: "warning";
|
|
1160
|
-
blacklisted: "blacklisted";
|
|
1161
|
-
disabled: "disabled";
|
|
1162
|
-
}>;
|
|
1163
|
-
personalInfo: z.ZodOptional<z.ZodObject<{
|
|
1164
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1165
|
-
firstName: z.ZodString;
|
|
1166
|
-
lastName: z.ZodString;
|
|
1167
|
-
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
1168
|
-
gender: z.ZodOptional<z.ZodEnum<{
|
|
1169
|
-
male: "male";
|
|
1170
|
-
female: "female";
|
|
1171
|
-
}>>;
|
|
1172
|
-
nationality: z.ZodOptional<z.ZodString>;
|
|
1173
|
-
}, z.core.$strip>>;
|
|
1174
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
1175
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
1176
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1177
|
-
home: "home";
|
|
1178
|
-
work: "work";
|
|
1179
|
-
mobile: "mobile";
|
|
1180
|
-
fax: "fax";
|
|
1181
|
-
}>>;
|
|
1182
|
-
number: z.ZodString;
|
|
1183
|
-
}, z.core.$strip>>;
|
|
1184
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
1185
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1186
|
-
home: "home";
|
|
1187
|
-
work: "work";
|
|
1188
|
-
}>>;
|
|
1189
|
-
address: z.ZodString;
|
|
1190
|
-
}, z.core.$strip>>;
|
|
1191
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
1268
|
+
fax: z.ZodOptional<z.ZodObject<{
|
|
1192
1269
|
type: z.ZodOptional<z.ZodEnum<{
|
|
1193
1270
|
home: "home";
|
|
1194
1271
|
work: "work";
|
|
@@ -1197,6 +1274,7 @@ declare const bookingResponseSchema: z.ZodObject<{
|
|
|
1197
1274
|
}>>;
|
|
1198
1275
|
number: z.ZodString;
|
|
1199
1276
|
}, z.core.$strip>>;
|
|
1277
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
1200
1278
|
}, z.core.$strip>>;
|
|
1201
1279
|
address: z.ZodOptional<z.ZodObject<{
|
|
1202
1280
|
type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1217,6 +1295,7 @@ declare const bookingResponseSchema: z.ZodObject<{
|
|
|
1217
1295
|
vatCode: z.ZodOptional<z.ZodString>;
|
|
1218
1296
|
fiscalCode: z.ZodOptional<z.ZodString>;
|
|
1219
1297
|
licenseNumber: z.ZodOptional<z.ZodString>;
|
|
1298
|
+
priceListCode: z.ZodOptional<z.ZodString>;
|
|
1220
1299
|
}, z.core.$strip>>;
|
|
1221
1300
|
preferences: z.ZodOptional<z.ZodObject<{
|
|
1222
1301
|
language: z.ZodOptional<z.ZodString>;
|
|
@@ -1227,6 +1306,29 @@ declare const bookingResponseSchema: z.ZodObject<{
|
|
|
1227
1306
|
phone: "phone";
|
|
1228
1307
|
}>>;
|
|
1229
1308
|
}, z.core.$strip>>;
|
|
1309
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
1310
|
+
createdDate: z.ZodOptional<z.ZodString>;
|
|
1311
|
+
modifiedDate: z.ZodOptional<z.ZodString>;
|
|
1312
|
+
loginType: z.ZodOptional<z.ZodEnum<{
|
|
1313
|
+
SUPPLIER: "SUPPLIER";
|
|
1314
|
+
WEB_BOOKING: "WEB_BOOKING";
|
|
1315
|
+
BUSINESS_TRAVEL: "BUSINESS_TRAVEL";
|
|
1316
|
+
GROUP_TRAVEL: "GROUP_TRAVEL";
|
|
1317
|
+
ADMINISTRATOR: "ADMINISTRATOR";
|
|
1318
|
+
}>>;
|
|
1319
|
+
thirdPartRecordCode: z.ZodOptional<z.ZodString>;
|
|
1320
|
+
searchField: z.ZodOptional<z.ZodString>;
|
|
1321
|
+
extraInfo: z.ZodOptional<z.ZodString>;
|
|
1322
|
+
}, z.core.$strip>>;
|
|
1323
|
+
codes: z.ZodOptional<z.ZodObject<{
|
|
1324
|
+
zoneCode: z.ZodOptional<z.ZodString>;
|
|
1325
|
+
areaCode: z.ZodOptional<z.ZodString>;
|
|
1326
|
+
branchOfficeCode: z.ZodOptional<z.ZodString>;
|
|
1327
|
+
categoryCode: z.ZodOptional<z.ZodString>;
|
|
1328
|
+
activityCode: z.ZodOptional<z.ZodString>;
|
|
1329
|
+
promoterCode: z.ZodOptional<z.ZodString>;
|
|
1330
|
+
networkCode: z.ZodOptional<z.ZodString>;
|
|
1331
|
+
}, z.core.$strip>>;
|
|
1230
1332
|
}, z.core.$strip>;
|
|
1231
1333
|
passengers: z.ZodArray<z.ZodObject<{
|
|
1232
1334
|
id: z.ZodString;
|
|
@@ -1270,1110 +1372,110 @@ declare const bookingResponseSchema: z.ZodObject<{
|
|
|
1270
1372
|
country: z.ZodOptional<z.ZodString>;
|
|
1271
1373
|
}, z.core.$strip>>;
|
|
1272
1374
|
contact: z.ZodOptional<z.ZodObject<{
|
|
1273
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
1274
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1275
|
-
home: "home";
|
|
1276
|
-
work: "work";
|
|
1277
|
-
mobile: "mobile";
|
|
1278
|
-
fax: "fax";
|
|
1279
|
-
}>>;
|
|
1280
|
-
number: z.ZodString;
|
|
1281
|
-
}, z.core.$strip>>;
|
|
1282
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
1283
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1284
|
-
home: "home";
|
|
1285
|
-
work: "work";
|
|
1286
|
-
}>>;
|
|
1287
|
-
address: z.ZodString;
|
|
1288
|
-
}, z.core.$strip>>;
|
|
1289
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
1290
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1291
|
-
home: "home";
|
|
1292
|
-
work: "work";
|
|
1293
|
-
mobile: "mobile";
|
|
1294
|
-
fax: "fax";
|
|
1295
|
-
}>>;
|
|
1296
|
-
number: z.ZodString;
|
|
1297
|
-
}, z.core.$strip>>;
|
|
1298
|
-
}, z.core.$strip>>;
|
|
1299
|
-
}, z.core.$strip>>;
|
|
1300
|
-
services: z.ZodArray<z.ZodObject<{
|
|
1301
|
-
id: z.ZodString;
|
|
1302
|
-
type: z.ZodEnum<{
|
|
1303
|
-
flight: "flight";
|
|
1304
|
-
hotel: "hotel";
|
|
1305
|
-
car: "car";
|
|
1306
|
-
transfer: "transfer";
|
|
1307
|
-
insurance: "insurance";
|
|
1308
|
-
}>;
|
|
1309
|
-
status: z.ZodEnum<{
|
|
1310
|
-
confirmed: "confirmed";
|
|
1311
|
-
pending: "pending";
|
|
1312
|
-
cancelled: "cancelled";
|
|
1313
|
-
}>;
|
|
1314
|
-
code: z.ZodOptional<z.ZodString>;
|
|
1315
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1316
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1317
|
-
startDate: z.ZodOptional<z.ZodString>;
|
|
1318
|
-
endDate: z.ZodOptional<z.ZodString>;
|
|
1319
|
-
price: z.ZodOptional<z.ZodObject<{
|
|
1320
|
-
currency: z.ZodString;
|
|
1321
|
-
amount: z.ZodNumber;
|
|
1322
|
-
}, z.core.$strip>>;
|
|
1323
|
-
}, z.core.$strip>>;
|
|
1324
|
-
pricing: z.ZodObject<{
|
|
1325
|
-
totalAmount: z.ZodObject<{
|
|
1326
|
-
currency: z.ZodString;
|
|
1327
|
-
amount: z.ZodNumber;
|
|
1328
|
-
}, z.core.$strip>;
|
|
1329
|
-
breakdowns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1330
|
-
type: z.ZodEnum<{
|
|
1331
|
-
service: "service";
|
|
1332
|
-
tax: "tax";
|
|
1333
|
-
fee: "fee";
|
|
1334
|
-
discount: "discount";
|
|
1335
|
-
}>;
|
|
1336
|
-
description: z.ZodString;
|
|
1337
|
-
amount: z.ZodNumber;
|
|
1338
|
-
}, z.core.$strip>>>;
|
|
1339
|
-
}, z.core.$strip>;
|
|
1340
|
-
}, z.core.$strip>;
|
|
1341
|
-
declare const customerSearchResultSchema: z.ZodObject<{
|
|
1342
|
-
customers: z.ZodArray<z.ZodObject<{
|
|
1343
|
-
id: z.ZodString;
|
|
1344
|
-
type: z.ZodEnum<{
|
|
1345
|
-
customer: "customer";
|
|
1346
|
-
supplier: "supplier";
|
|
1347
|
-
voucher: "voucher";
|
|
1348
|
-
supplier_voucher: "supplier_voucher";
|
|
1349
|
-
}>;
|
|
1350
|
-
status: z.ZodEnum<{
|
|
1351
|
-
enabled: "enabled";
|
|
1352
|
-
warning: "warning";
|
|
1353
|
-
blacklisted: "blacklisted";
|
|
1354
|
-
disabled: "disabled";
|
|
1355
|
-
}>;
|
|
1356
|
-
personalInfo: z.ZodOptional<z.ZodObject<{
|
|
1357
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1358
|
-
firstName: z.ZodString;
|
|
1359
|
-
lastName: z.ZodString;
|
|
1360
|
-
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
1361
|
-
gender: z.ZodOptional<z.ZodEnum<{
|
|
1362
|
-
male: "male";
|
|
1363
|
-
female: "female";
|
|
1364
|
-
}>>;
|
|
1365
|
-
nationality: z.ZodOptional<z.ZodString>;
|
|
1366
|
-
}, z.core.$strip>>;
|
|
1367
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
1368
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
1369
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1370
|
-
home: "home";
|
|
1371
|
-
work: "work";
|
|
1372
|
-
mobile: "mobile";
|
|
1373
|
-
fax: "fax";
|
|
1374
|
-
}>>;
|
|
1375
|
-
number: z.ZodString;
|
|
1376
|
-
}, z.core.$strip>>;
|
|
1377
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
1378
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1379
|
-
home: "home";
|
|
1380
|
-
work: "work";
|
|
1381
|
-
}>>;
|
|
1382
|
-
address: z.ZodString;
|
|
1383
|
-
}, z.core.$strip>>;
|
|
1384
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
1385
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1386
|
-
home: "home";
|
|
1387
|
-
work: "work";
|
|
1388
|
-
mobile: "mobile";
|
|
1389
|
-
fax: "fax";
|
|
1390
|
-
}>>;
|
|
1391
|
-
number: z.ZodString;
|
|
1392
|
-
}, z.core.$strip>>;
|
|
1393
|
-
}, z.core.$strip>>;
|
|
1394
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
1395
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1396
|
-
home: "home";
|
|
1397
|
-
work: "work";
|
|
1398
|
-
billing: "billing";
|
|
1399
|
-
delivery: "delivery";
|
|
1400
|
-
}>>;
|
|
1401
|
-
street: z.ZodOptional<z.ZodString>;
|
|
1402
|
-
city: z.ZodOptional<z.ZodString>;
|
|
1403
|
-
state: z.ZodOptional<z.ZodString>;
|
|
1404
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
1405
|
-
country: z.ZodOptional<z.ZodString>;
|
|
1406
|
-
}, z.core.$strip>>;
|
|
1407
|
-
businessInfo: z.ZodOptional<z.ZodObject<{
|
|
1408
|
-
companyName: z.ZodOptional<z.ZodString>;
|
|
1409
|
-
taxId: z.ZodOptional<z.ZodString>;
|
|
1410
|
-
vatCode: z.ZodOptional<z.ZodString>;
|
|
1411
|
-
fiscalCode: z.ZodOptional<z.ZodString>;
|
|
1412
|
-
licenseNumber: z.ZodOptional<z.ZodString>;
|
|
1413
|
-
}, z.core.$strip>>;
|
|
1414
|
-
preferences: z.ZodOptional<z.ZodObject<{
|
|
1415
|
-
language: z.ZodOptional<z.ZodString>;
|
|
1416
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
1417
|
-
communicationMethod: z.ZodOptional<z.ZodEnum<{
|
|
1418
|
-
email: "email";
|
|
1419
|
-
sms: "sms";
|
|
1420
|
-
phone: "phone";
|
|
1421
|
-
}>>;
|
|
1422
|
-
}, z.core.$strip>>;
|
|
1423
|
-
}, z.core.$strip>>;
|
|
1424
|
-
pagination: z.ZodObject<{
|
|
1425
|
-
page: z.ZodNumber;
|
|
1426
|
-
pages: z.ZodNumber;
|
|
1427
|
-
totalItems: z.ZodNumber;
|
|
1428
|
-
hasMore: z.ZodBoolean;
|
|
1429
|
-
}, z.core.$strip>;
|
|
1430
|
-
}, z.core.$strip>;
|
|
1431
|
-
declare const printedDocumentSchema: z.ZodObject<{
|
|
1432
|
-
fileName: z.ZodString;
|
|
1433
|
-
content: z.ZodOptional<z.ZodString>;
|
|
1434
|
-
contentSize: z.ZodNumber;
|
|
1435
|
-
}, z.core.$strip>;
|
|
1436
|
-
declare const documentPrintResultSchema: z.ZodObject<{
|
|
1437
|
-
emailRecipient: z.ZodOptional<z.ZodEmail>;
|
|
1438
|
-
documents: z.ZodArray<z.ZodObject<{
|
|
1439
|
-
fileName: z.ZodString;
|
|
1440
|
-
content: z.ZodOptional<z.ZodString>;
|
|
1441
|
-
contentSize: z.ZodNumber;
|
|
1442
|
-
}, z.core.$strip>>;
|
|
1443
|
-
additionalDocuments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1444
|
-
emailRecipient: z.ZodString;
|
|
1445
|
-
documents: z.ZodArray<z.ZodObject<{
|
|
1446
|
-
fileName: z.ZodString;
|
|
1447
|
-
content: z.ZodOptional<z.ZodString>;
|
|
1448
|
-
contentSize: z.ZodNumber;
|
|
1449
|
-
}, z.core.$strip>>;
|
|
1450
|
-
}, z.core.$strip>>>;
|
|
1451
|
-
}, z.core.$strip>;
|
|
1452
|
-
declare const operationResponseSchema: z.ZodObject<{
|
|
1453
|
-
success: z.ZodBoolean;
|
|
1454
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1455
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
1456
|
-
}, z.core.$strip>;
|
|
1457
|
-
declare const apiSchemas: {
|
|
1458
|
-
readonly addressType: z.ZodEnum<{
|
|
1459
|
-
home: "home";
|
|
1460
|
-
work: "work";
|
|
1461
|
-
billing: "billing";
|
|
1462
|
-
delivery: "delivery";
|
|
1463
|
-
}>;
|
|
1464
|
-
readonly contactType: z.ZodEnum<{
|
|
1465
|
-
home: "home";
|
|
1466
|
-
work: "work";
|
|
1467
|
-
mobile: "mobile";
|
|
1468
|
-
fax: "fax";
|
|
1469
|
-
}>;
|
|
1470
|
-
readonly emailType: z.ZodEnum<{
|
|
1471
|
-
home: "home";
|
|
1472
|
-
work: "work";
|
|
1473
|
-
}>;
|
|
1474
|
-
readonly passengerType: z.ZodEnum<{
|
|
1475
|
-
adult: "adult";
|
|
1476
|
-
child: "child";
|
|
1477
|
-
infant: "infant";
|
|
1478
|
-
senior: "senior";
|
|
1479
|
-
}>;
|
|
1480
|
-
readonly titleType: z.ZodEnum<{
|
|
1481
|
-
mr: "mr";
|
|
1482
|
-
mrs: "mrs";
|
|
1483
|
-
ms: "ms";
|
|
1484
|
-
dr: "dr";
|
|
1485
|
-
prof: "prof";
|
|
1486
|
-
}>;
|
|
1487
|
-
readonly genderType: z.ZodEnum<{
|
|
1488
|
-
male: "male";
|
|
1489
|
-
female: "female";
|
|
1490
|
-
}>;
|
|
1491
|
-
readonly serviceType: z.ZodEnum<{
|
|
1492
|
-
flight: "flight";
|
|
1493
|
-
hotel: "hotel";
|
|
1494
|
-
car: "car";
|
|
1495
|
-
transfer: "transfer";
|
|
1496
|
-
insurance: "insurance";
|
|
1497
|
-
}>;
|
|
1498
|
-
readonly serviceStatusType: z.ZodEnum<{
|
|
1499
|
-
confirmed: "confirmed";
|
|
1500
|
-
pending: "pending";
|
|
1501
|
-
cancelled: "cancelled";
|
|
1502
|
-
}>;
|
|
1503
|
-
readonly paymentType: z.ZodEnum<{
|
|
1504
|
-
credit_card: "credit_card";
|
|
1505
|
-
debit_card: "debit_card";
|
|
1506
|
-
bank_transfer: "bank_transfer";
|
|
1507
|
-
cash: "cash";
|
|
1508
|
-
}>;
|
|
1509
|
-
readonly paymentStatusType: z.ZodEnum<{
|
|
1510
|
-
confirmed: "confirmed";
|
|
1511
|
-
pending: "pending";
|
|
1512
|
-
failed: "failed";
|
|
1513
|
-
}>;
|
|
1514
|
-
readonly customerType: z.ZodEnum<{
|
|
1515
|
-
customer: "customer";
|
|
1516
|
-
supplier: "supplier";
|
|
1517
|
-
voucher: "voucher";
|
|
1518
|
-
supplier_voucher: "supplier_voucher";
|
|
1519
|
-
}>;
|
|
1520
|
-
readonly searchOperatorType: z.ZodEnum<{
|
|
1521
|
-
equals: "equals";
|
|
1522
|
-
contains: "contains";
|
|
1523
|
-
starts_with: "starts_with";
|
|
1524
|
-
ends_with: "ends_with";
|
|
1525
|
-
}>;
|
|
1526
|
-
readonly bookingType: z.ZodEnum<{
|
|
1527
|
-
individual: "individual";
|
|
1528
|
-
group: "group";
|
|
1529
|
-
corporate: "corporate";
|
|
1530
|
-
}>;
|
|
1531
|
-
readonly priorityType: z.ZodEnum<{
|
|
1532
|
-
low: "low";
|
|
1533
|
-
normal: "normal";
|
|
1534
|
-
high: "high";
|
|
1535
|
-
urgent: "urgent";
|
|
1536
|
-
}>;
|
|
1537
|
-
readonly specialRequestType: z.ZodEnum<{
|
|
1538
|
-
other: "other";
|
|
1539
|
-
meal: "meal";
|
|
1540
|
-
seat: "seat";
|
|
1541
|
-
wheelchair: "wheelchair";
|
|
1542
|
-
}>;
|
|
1543
|
-
readonly cancelReasonType: z.ZodEnum<{
|
|
1544
|
-
customer_request: "customer_request";
|
|
1545
|
-
no_show: "no_show";
|
|
1546
|
-
operational: "operational";
|
|
1547
|
-
other: "other";
|
|
1548
|
-
}>;
|
|
1549
|
-
readonly refundMethodType: z.ZodEnum<{
|
|
1550
|
-
cash: "cash";
|
|
1551
|
-
original_payment: "original_payment";
|
|
1552
|
-
credit: "credit";
|
|
1553
|
-
}>;
|
|
1554
|
-
readonly documentType: z.ZodEnum<{
|
|
1555
|
-
voucher: "voucher";
|
|
1556
|
-
visa_request: "visa_request";
|
|
1557
|
-
travel_information: "travel_information";
|
|
1558
|
-
booking_contract: "booking_contract";
|
|
1559
|
-
booking_confirmation: "booking_confirmation";
|
|
1560
|
-
supplier_service_list: "supplier_service_list";
|
|
1561
|
-
invoice: "invoice";
|
|
1562
|
-
proforma_invoice: "proforma_invoice";
|
|
1563
|
-
adeguamento: "adeguamento";
|
|
1564
|
-
reservation_form: "reservation_form";
|
|
1565
|
-
open_xml: "open_xml";
|
|
1566
|
-
sales_invoice: "sales_invoice";
|
|
1567
|
-
ticketing_tmaster: "ticketing_tmaster";
|
|
1568
|
-
summary_form: "summary_form";
|
|
1569
|
-
}>;
|
|
1570
|
-
readonly documentFormatType: z.ZodEnum<{
|
|
1571
|
-
pdf: "pdf";
|
|
1572
|
-
html: "html";
|
|
1573
|
-
xml: "xml";
|
|
1574
|
-
}>;
|
|
1575
|
-
readonly deliveryMethodType: z.ZodEnum<{
|
|
1576
|
-
email: "email";
|
|
1577
|
-
sms: "sms";
|
|
1578
|
-
download: "download";
|
|
1579
|
-
}>;
|
|
1580
|
-
readonly bookingStatusType: z.ZodEnum<{
|
|
1581
|
-
confirmed: "confirmed";
|
|
1582
|
-
quotation: "quotation";
|
|
1583
|
-
work_in_progress: "work_in_progress";
|
|
1584
|
-
optioned: "optioned";
|
|
1585
|
-
nullified: "nullified";
|
|
1586
|
-
canceled: "canceled";
|
|
1587
|
-
}>;
|
|
1588
|
-
readonly pricingItemType: z.ZodEnum<{
|
|
1589
|
-
service: "service";
|
|
1590
|
-
tax: "tax";
|
|
1591
|
-
fee: "fee";
|
|
1592
|
-
discount: "discount";
|
|
1593
|
-
}>;
|
|
1594
|
-
readonly deliveryStatusType: z.ZodEnum<{
|
|
1595
|
-
pending: "pending";
|
|
1596
|
-
failed: "failed";
|
|
1597
|
-
sent: "sent";
|
|
1598
|
-
}>;
|
|
1599
|
-
readonly customerStatusType: z.ZodEnum<{
|
|
1600
|
-
enabled: "enabled";
|
|
1601
|
-
warning: "warning";
|
|
1602
|
-
blacklisted: "blacklisted";
|
|
1603
|
-
disabled: "disabled";
|
|
1604
|
-
}>;
|
|
1605
|
-
readonly communicationMethodType: z.ZodEnum<{
|
|
1606
|
-
email: "email";
|
|
1607
|
-
sms: "sms";
|
|
1608
|
-
phone: "phone";
|
|
1609
|
-
}>;
|
|
1610
|
-
readonly customerAddress: z.ZodObject<{
|
|
1611
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1612
|
-
home: "home";
|
|
1613
|
-
work: "work";
|
|
1614
|
-
billing: "billing";
|
|
1615
|
-
delivery: "delivery";
|
|
1616
|
-
}>>;
|
|
1617
|
-
street: z.ZodOptional<z.ZodString>;
|
|
1618
|
-
city: z.ZodOptional<z.ZodString>;
|
|
1619
|
-
state: z.ZodOptional<z.ZodString>;
|
|
1620
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
1621
|
-
country: z.ZodOptional<z.ZodString>;
|
|
1622
|
-
}, z.core.$strip>;
|
|
1623
|
-
readonly customerContact: z.ZodObject<{
|
|
1624
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
1625
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1626
|
-
home: "home";
|
|
1627
|
-
work: "work";
|
|
1628
|
-
mobile: "mobile";
|
|
1629
|
-
fax: "fax";
|
|
1630
|
-
}>>;
|
|
1631
|
-
number: z.ZodString;
|
|
1632
|
-
}, z.core.$strip>>;
|
|
1633
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
1634
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1635
|
-
home: "home";
|
|
1636
|
-
work: "work";
|
|
1637
|
-
}>>;
|
|
1638
|
-
address: z.ZodString;
|
|
1639
|
-
}, z.core.$strip>>;
|
|
1640
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
1641
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1642
|
-
home: "home";
|
|
1643
|
-
work: "work";
|
|
1644
|
-
mobile: "mobile";
|
|
1645
|
-
fax: "fax";
|
|
1646
|
-
}>>;
|
|
1647
|
-
number: z.ZodString;
|
|
1648
|
-
}, z.core.$strip>>;
|
|
1649
|
-
}, z.core.$strip>;
|
|
1650
|
-
readonly customer: z.ZodObject<{
|
|
1651
|
-
id: z.ZodString;
|
|
1652
|
-
type: z.ZodEnum<{
|
|
1653
|
-
customer: "customer";
|
|
1654
|
-
supplier: "supplier";
|
|
1655
|
-
voucher: "voucher";
|
|
1656
|
-
supplier_voucher: "supplier_voucher";
|
|
1657
|
-
}>;
|
|
1658
|
-
status: z.ZodEnum<{
|
|
1659
|
-
enabled: "enabled";
|
|
1660
|
-
warning: "warning";
|
|
1661
|
-
blacklisted: "blacklisted";
|
|
1662
|
-
disabled: "disabled";
|
|
1663
|
-
}>;
|
|
1664
|
-
personalInfo: z.ZodOptional<z.ZodObject<{
|
|
1665
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1666
|
-
firstName: z.ZodString;
|
|
1667
|
-
lastName: z.ZodString;
|
|
1668
|
-
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
1669
|
-
gender: z.ZodOptional<z.ZodEnum<{
|
|
1670
|
-
male: "male";
|
|
1671
|
-
female: "female";
|
|
1672
|
-
}>>;
|
|
1673
|
-
nationality: z.ZodOptional<z.ZodString>;
|
|
1674
|
-
}, z.core.$strip>>;
|
|
1675
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
1676
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
1677
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1678
|
-
home: "home";
|
|
1679
|
-
work: "work";
|
|
1680
|
-
mobile: "mobile";
|
|
1681
|
-
fax: "fax";
|
|
1682
|
-
}>>;
|
|
1683
|
-
number: z.ZodString;
|
|
1684
|
-
}, z.core.$strip>>;
|
|
1685
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
1686
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1687
|
-
home: "home";
|
|
1688
|
-
work: "work";
|
|
1689
|
-
}>>;
|
|
1690
|
-
address: z.ZodString;
|
|
1691
|
-
}, z.core.$strip>>;
|
|
1692
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
1693
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1694
|
-
home: "home";
|
|
1695
|
-
work: "work";
|
|
1696
|
-
mobile: "mobile";
|
|
1697
|
-
fax: "fax";
|
|
1698
|
-
}>>;
|
|
1699
|
-
number: z.ZodString;
|
|
1700
|
-
}, z.core.$strip>>;
|
|
1701
|
-
}, z.core.$strip>>;
|
|
1702
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
1703
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1704
|
-
home: "home";
|
|
1705
|
-
work: "work";
|
|
1706
|
-
billing: "billing";
|
|
1707
|
-
delivery: "delivery";
|
|
1708
|
-
}>>;
|
|
1709
|
-
street: z.ZodOptional<z.ZodString>;
|
|
1710
|
-
city: z.ZodOptional<z.ZodString>;
|
|
1711
|
-
state: z.ZodOptional<z.ZodString>;
|
|
1712
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
1713
|
-
country: z.ZodOptional<z.ZodString>;
|
|
1714
|
-
}, z.core.$strip>>;
|
|
1715
|
-
businessInfo: z.ZodOptional<z.ZodObject<{
|
|
1716
|
-
companyName: z.ZodOptional<z.ZodString>;
|
|
1717
|
-
taxId: z.ZodOptional<z.ZodString>;
|
|
1718
|
-
vatCode: z.ZodOptional<z.ZodString>;
|
|
1719
|
-
fiscalCode: z.ZodOptional<z.ZodString>;
|
|
1720
|
-
licenseNumber: z.ZodOptional<z.ZodString>;
|
|
1721
|
-
}, z.core.$strip>>;
|
|
1722
|
-
preferences: z.ZodOptional<z.ZodObject<{
|
|
1723
|
-
language: z.ZodOptional<z.ZodString>;
|
|
1724
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
1725
|
-
communicationMethod: z.ZodOptional<z.ZodEnum<{
|
|
1726
|
-
email: "email";
|
|
1727
|
-
sms: "sms";
|
|
1728
|
-
phone: "phone";
|
|
1729
|
-
}>>;
|
|
1730
|
-
}, z.core.$strip>>;
|
|
1731
|
-
}, z.core.$strip>;
|
|
1732
|
-
readonly bookingPassenger: z.ZodObject<{
|
|
1733
|
-
id: z.ZodString;
|
|
1734
|
-
type: z.ZodEnum<{
|
|
1735
|
-
adult: "adult";
|
|
1736
|
-
child: "child";
|
|
1737
|
-
infant: "infant";
|
|
1738
|
-
senior: "senior";
|
|
1739
|
-
}>;
|
|
1740
|
-
title: z.ZodOptional<z.ZodEnum<{
|
|
1741
|
-
mr: "mr";
|
|
1742
|
-
mrs: "mrs";
|
|
1743
|
-
ms: "ms";
|
|
1744
|
-
dr: "dr";
|
|
1745
|
-
prof: "prof";
|
|
1746
|
-
}>>;
|
|
1747
|
-
firstName: z.ZodString;
|
|
1748
|
-
lastName: z.ZodString;
|
|
1749
|
-
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
1750
|
-
gender: z.ZodOptional<z.ZodEnum<{
|
|
1751
|
-
male: "male";
|
|
1752
|
-
female: "female";
|
|
1753
|
-
}>>;
|
|
1754
|
-
nationality: z.ZodOptional<z.ZodString>;
|
|
1755
|
-
passport: z.ZodOptional<z.ZodObject<{
|
|
1756
|
-
number: z.ZodString;
|
|
1757
|
-
expiryDate: z.ZodString;
|
|
1758
|
-
issuingCountry: z.ZodString;
|
|
1759
|
-
}, z.core.$strip>>;
|
|
1760
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
1761
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1762
|
-
home: "home";
|
|
1763
|
-
work: "work";
|
|
1764
|
-
billing: "billing";
|
|
1765
|
-
delivery: "delivery";
|
|
1766
|
-
}>>;
|
|
1767
|
-
street: z.ZodOptional<z.ZodString>;
|
|
1768
|
-
city: z.ZodOptional<z.ZodString>;
|
|
1769
|
-
state: z.ZodOptional<z.ZodString>;
|
|
1770
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
1771
|
-
country: z.ZodOptional<z.ZodString>;
|
|
1772
|
-
}, z.core.$strip>>;
|
|
1773
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
1774
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
1775
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1776
|
-
home: "home";
|
|
1777
|
-
work: "work";
|
|
1778
|
-
mobile: "mobile";
|
|
1779
|
-
fax: "fax";
|
|
1780
|
-
}>>;
|
|
1781
|
-
number: z.ZodString;
|
|
1782
|
-
}, z.core.$strip>>;
|
|
1783
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
1784
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1785
|
-
home: "home";
|
|
1786
|
-
work: "work";
|
|
1787
|
-
}>>;
|
|
1788
|
-
address: z.ZodString;
|
|
1789
|
-
}, z.core.$strip>>;
|
|
1790
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
1791
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1792
|
-
home: "home";
|
|
1793
|
-
work: "work";
|
|
1794
|
-
mobile: "mobile";
|
|
1795
|
-
fax: "fax";
|
|
1796
|
-
}>>;
|
|
1797
|
-
number: z.ZodString;
|
|
1798
|
-
}, z.core.$strip>>;
|
|
1799
|
-
}, z.core.$strip>>;
|
|
1800
|
-
}, z.core.$strip>;
|
|
1801
|
-
readonly bookingService: z.ZodObject<{
|
|
1802
|
-
id: z.ZodString;
|
|
1803
|
-
type: z.ZodEnum<{
|
|
1804
|
-
flight: "flight";
|
|
1805
|
-
hotel: "hotel";
|
|
1806
|
-
car: "car";
|
|
1807
|
-
transfer: "transfer";
|
|
1808
|
-
insurance: "insurance";
|
|
1809
|
-
}>;
|
|
1810
|
-
status: z.ZodEnum<{
|
|
1811
|
-
confirmed: "confirmed";
|
|
1812
|
-
pending: "pending";
|
|
1813
|
-
cancelled: "cancelled";
|
|
1814
|
-
}>;
|
|
1815
|
-
code: z.ZodOptional<z.ZodString>;
|
|
1816
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1817
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1818
|
-
startDate: z.ZodOptional<z.ZodString>;
|
|
1819
|
-
endDate: z.ZodOptional<z.ZodString>;
|
|
1820
|
-
price: z.ZodOptional<z.ZodObject<{
|
|
1821
|
-
currency: z.ZodString;
|
|
1822
|
-
amount: z.ZodNumber;
|
|
1823
|
-
}, z.core.$strip>>;
|
|
1824
|
-
}, z.core.$strip>;
|
|
1825
|
-
readonly bookingPayment: z.ZodObject<{
|
|
1826
|
-
id: z.ZodString;
|
|
1827
|
-
type: z.ZodEnum<{
|
|
1828
|
-
credit_card: "credit_card";
|
|
1829
|
-
debit_card: "debit_card";
|
|
1830
|
-
bank_transfer: "bank_transfer";
|
|
1831
|
-
cash: "cash";
|
|
1832
|
-
}>;
|
|
1833
|
-
status: z.ZodEnum<{
|
|
1834
|
-
confirmed: "confirmed";
|
|
1835
|
-
pending: "pending";
|
|
1836
|
-
failed: "failed";
|
|
1837
|
-
}>;
|
|
1838
|
-
amount: z.ZodObject<{
|
|
1839
|
-
currency: z.ZodString;
|
|
1840
|
-
amount: z.ZodNumber;
|
|
1841
|
-
}, z.core.$strip>;
|
|
1842
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
1843
|
-
cardNumber: z.ZodOptional<z.ZodString>;
|
|
1844
|
-
expiryDate: z.ZodOptional<z.ZodString>;
|
|
1845
|
-
cardHolderName: z.ZodOptional<z.ZodString>;
|
|
1846
|
-
}, z.core.$strip>>;
|
|
1847
|
-
}, z.core.$strip>;
|
|
1848
|
-
readonly searchCustomerRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1849
|
-
type: z.ZodLiteral<"code">;
|
|
1850
|
-
code: z.ZodString;
|
|
1851
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
1852
|
-
pages: z.ZodNumber;
|
|
1853
|
-
page: z.ZodNumber;
|
|
1854
|
-
}, z.core.$strip>>;
|
|
1855
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1856
|
-
type: z.ZodLiteral<"name">;
|
|
1857
|
-
name: z.ZodString;
|
|
1858
|
-
city: z.ZodOptional<z.ZodString>;
|
|
1859
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
1860
|
-
pages: z.ZodNumber;
|
|
1861
|
-
page: z.ZodNumber;
|
|
1862
|
-
}, z.core.$strip>>;
|
|
1863
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1864
|
-
type: z.ZodLiteral<"vat_code">;
|
|
1865
|
-
vatCode: z.ZodString;
|
|
1866
|
-
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
1867
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
1868
|
-
pages: z.ZodNumber;
|
|
1869
|
-
page: z.ZodNumber;
|
|
1870
|
-
}, z.core.$strip>>;
|
|
1871
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1872
|
-
type: z.ZodLiteral<"zone">;
|
|
1873
|
-
zipCode: z.ZodString;
|
|
1874
|
-
city: z.ZodOptional<z.ZodString>;
|
|
1875
|
-
countyCode: z.ZodOptional<z.ZodString>;
|
|
1876
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
1877
|
-
pages: z.ZodNumber;
|
|
1878
|
-
page: z.ZodNumber;
|
|
1879
|
-
}, z.core.$strip>>;
|
|
1880
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1881
|
-
type: z.ZodLiteral<"category">;
|
|
1882
|
-
categoryCode: z.ZodString;
|
|
1883
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
1884
|
-
pages: z.ZodNumber;
|
|
1885
|
-
page: z.ZodNumber;
|
|
1886
|
-
}, z.core.$strip>>;
|
|
1887
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1888
|
-
type: z.ZodLiteral<"email">;
|
|
1889
|
-
email: z.ZodEmail;
|
|
1890
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
1891
|
-
pages: z.ZodNumber;
|
|
1892
|
-
page: z.ZodNumber;
|
|
1893
|
-
}, z.core.$strip>>;
|
|
1894
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1895
|
-
type: z.ZodLiteral<"last_mod_date">;
|
|
1896
|
-
from: z.ZodString;
|
|
1897
|
-
to: z.ZodString;
|
|
1898
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
1899
|
-
pages: z.ZodNumber;
|
|
1900
|
-
page: z.ZodNumber;
|
|
1901
|
-
}, z.core.$strip>>;
|
|
1902
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1903
|
-
type: z.ZodLiteral<"search_field">;
|
|
1904
|
-
searchField: z.ZodString;
|
|
1905
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
1906
|
-
pages: z.ZodNumber;
|
|
1907
|
-
page: z.ZodNumber;
|
|
1908
|
-
}, z.core.$strip>>;
|
|
1909
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1910
|
-
type: z.ZodLiteral<"external_ref_code">;
|
|
1911
|
-
externalRefCode: z.ZodString;
|
|
1912
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
1913
|
-
pages: z.ZodNumber;
|
|
1914
|
-
page: z.ZodNumber;
|
|
1915
|
-
}, z.core.$strip>>;
|
|
1916
|
-
}, z.core.$strip>], "type">;
|
|
1917
|
-
readonly createBookingRequest: z.ZodUnion<readonly [z.ZodObject<{
|
|
1918
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1919
|
-
startDate: z.ZodString;
|
|
1920
|
-
endDate: z.ZodString;
|
|
1921
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
1922
|
-
passengers: z.ZodArray<z.ZodObject<{
|
|
1923
|
-
id: z.ZodString;
|
|
1924
|
-
type: z.ZodEnum<{
|
|
1925
|
-
adult: "adult";
|
|
1926
|
-
child: "child";
|
|
1927
|
-
infant: "infant";
|
|
1928
|
-
senior: "senior";
|
|
1929
|
-
}>;
|
|
1930
|
-
title: z.ZodOptional<z.ZodEnum<{
|
|
1931
|
-
mr: "mr";
|
|
1932
|
-
mrs: "mrs";
|
|
1933
|
-
ms: "ms";
|
|
1934
|
-
dr: "dr";
|
|
1935
|
-
prof: "prof";
|
|
1936
|
-
}>>;
|
|
1937
|
-
firstName: z.ZodString;
|
|
1938
|
-
lastName: z.ZodString;
|
|
1939
|
-
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
1940
|
-
gender: z.ZodOptional<z.ZodEnum<{
|
|
1941
|
-
male: "male";
|
|
1942
|
-
female: "female";
|
|
1943
|
-
}>>;
|
|
1944
|
-
nationality: z.ZodOptional<z.ZodString>;
|
|
1945
|
-
passport: z.ZodOptional<z.ZodObject<{
|
|
1946
|
-
number: z.ZodString;
|
|
1947
|
-
expiryDate: z.ZodString;
|
|
1948
|
-
issuingCountry: z.ZodString;
|
|
1949
|
-
}, z.core.$strip>>;
|
|
1950
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
1951
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1952
|
-
home: "home";
|
|
1953
|
-
work: "work";
|
|
1954
|
-
billing: "billing";
|
|
1955
|
-
delivery: "delivery";
|
|
1956
|
-
}>>;
|
|
1957
|
-
street: z.ZodOptional<z.ZodString>;
|
|
1958
|
-
city: z.ZodOptional<z.ZodString>;
|
|
1959
|
-
state: z.ZodOptional<z.ZodString>;
|
|
1960
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
1961
|
-
country: z.ZodOptional<z.ZodString>;
|
|
1962
|
-
}, z.core.$strip>>;
|
|
1963
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
1964
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
1965
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1966
|
-
home: "home";
|
|
1967
|
-
work: "work";
|
|
1968
|
-
mobile: "mobile";
|
|
1969
|
-
fax: "fax";
|
|
1970
|
-
}>>;
|
|
1971
|
-
number: z.ZodString;
|
|
1972
|
-
}, z.core.$strip>>;
|
|
1973
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
1974
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1975
|
-
home: "home";
|
|
1976
|
-
work: "work";
|
|
1977
|
-
}>>;
|
|
1978
|
-
address: z.ZodString;
|
|
1979
|
-
}, z.core.$strip>>;
|
|
1980
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
1981
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1982
|
-
home: "home";
|
|
1983
|
-
work: "work";
|
|
1984
|
-
mobile: "mobile";
|
|
1985
|
-
fax: "fax";
|
|
1986
|
-
}>>;
|
|
1987
|
-
number: z.ZodString;
|
|
1988
|
-
}, z.core.$strip>>;
|
|
1989
|
-
}, z.core.$strip>>;
|
|
1990
|
-
}, z.core.$strip>>;
|
|
1991
|
-
services: z.ZodArray<z.ZodObject<{
|
|
1992
|
-
id: z.ZodString;
|
|
1993
|
-
type: z.ZodEnum<{
|
|
1994
|
-
flight: "flight";
|
|
1995
|
-
hotel: "hotel";
|
|
1996
|
-
car: "car";
|
|
1997
|
-
transfer: "transfer";
|
|
1998
|
-
insurance: "insurance";
|
|
1999
|
-
}>;
|
|
2000
|
-
status: z.ZodEnum<{
|
|
2001
|
-
confirmed: "confirmed";
|
|
2002
|
-
pending: "pending";
|
|
2003
|
-
cancelled: "cancelled";
|
|
2004
|
-
}>;
|
|
2005
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2006
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2007
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2008
|
-
startDate: z.ZodOptional<z.ZodString>;
|
|
2009
|
-
endDate: z.ZodOptional<z.ZodString>;
|
|
2010
|
-
price: z.ZodOptional<z.ZodObject<{
|
|
2011
|
-
currency: z.ZodString;
|
|
2012
|
-
amount: z.ZodNumber;
|
|
2013
|
-
}, z.core.$strip>>;
|
|
2014
|
-
}, z.core.$strip>>;
|
|
2015
|
-
statisticCodes: z.ZodOptional<z.ZodObject<{
|
|
2016
|
-
code1: z.ZodOptional<z.ZodString>;
|
|
2017
|
-
code2: z.ZodOptional<z.ZodString>;
|
|
2018
|
-
code3: z.ZodOptional<z.ZodString>;
|
|
2019
|
-
code4: z.ZodOptional<z.ZodString>;
|
|
2020
|
-
code5: z.ZodOptional<z.ZodString>;
|
|
2021
|
-
code6: z.ZodOptional<z.ZodString>;
|
|
2022
|
-
}, z.core.$strip>>;
|
|
2023
|
-
destination: z.ZodOptional<z.ZodObject<{
|
|
2024
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2025
|
-
iataCode: z.ZodOptional<z.ZodString>;
|
|
2026
|
-
nationCode: z.ZodOptional<z.ZodString>;
|
|
2027
|
-
}, z.core.$strip>>;
|
|
2028
|
-
deadlines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2029
|
-
code: z.ZodString;
|
|
2030
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2031
|
-
expireDate: z.ZodOptional<z.ZodString>;
|
|
2032
|
-
}, z.core.$strip>>>;
|
|
2033
|
-
printDocument: z.ZodOptional<z.ZodBoolean>;
|
|
2034
|
-
sendDocumentViaEmail: z.ZodOptional<z.ZodBoolean>;
|
|
2035
|
-
customerId: z.ZodString;
|
|
2036
|
-
customerDetails: z.ZodOptional<z.ZodNever>;
|
|
2037
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2038
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2039
|
-
startDate: z.ZodString;
|
|
2040
|
-
endDate: z.ZodString;
|
|
2041
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
2042
|
-
passengers: z.ZodArray<z.ZodObject<{
|
|
2043
|
-
id: z.ZodString;
|
|
2044
|
-
type: z.ZodEnum<{
|
|
2045
|
-
adult: "adult";
|
|
2046
|
-
child: "child";
|
|
2047
|
-
infant: "infant";
|
|
2048
|
-
senior: "senior";
|
|
2049
|
-
}>;
|
|
2050
|
-
title: z.ZodOptional<z.ZodEnum<{
|
|
2051
|
-
mr: "mr";
|
|
2052
|
-
mrs: "mrs";
|
|
2053
|
-
ms: "ms";
|
|
2054
|
-
dr: "dr";
|
|
2055
|
-
prof: "prof";
|
|
2056
|
-
}>>;
|
|
2057
|
-
firstName: z.ZodString;
|
|
2058
|
-
lastName: z.ZodString;
|
|
2059
|
-
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
2060
|
-
gender: z.ZodOptional<z.ZodEnum<{
|
|
2061
|
-
male: "male";
|
|
2062
|
-
female: "female";
|
|
2063
|
-
}>>;
|
|
2064
|
-
nationality: z.ZodOptional<z.ZodString>;
|
|
2065
|
-
passport: z.ZodOptional<z.ZodObject<{
|
|
2066
|
-
number: z.ZodString;
|
|
2067
|
-
expiryDate: z.ZodString;
|
|
2068
|
-
issuingCountry: z.ZodString;
|
|
2069
|
-
}, z.core.$strip>>;
|
|
2070
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
1375
|
+
phone: z.ZodOptional<z.ZodObject<{
|
|
2071
1376
|
type: z.ZodOptional<z.ZodEnum<{
|
|
2072
1377
|
home: "home";
|
|
2073
1378
|
work: "work";
|
|
2074
|
-
|
|
2075
|
-
|
|
1379
|
+
mobile: "mobile";
|
|
1380
|
+
fax: "fax";
|
|
2076
1381
|
}>>;
|
|
2077
|
-
|
|
2078
|
-
city: z.ZodOptional<z.ZodString>;
|
|
2079
|
-
state: z.ZodOptional<z.ZodString>;
|
|
2080
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
2081
|
-
country: z.ZodOptional<z.ZodString>;
|
|
2082
|
-
}, z.core.$strip>>;
|
|
2083
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
2084
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
2085
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2086
|
-
home: "home";
|
|
2087
|
-
work: "work";
|
|
2088
|
-
mobile: "mobile";
|
|
2089
|
-
fax: "fax";
|
|
2090
|
-
}>>;
|
|
2091
|
-
number: z.ZodString;
|
|
2092
|
-
}, z.core.$strip>>;
|
|
2093
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
2094
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2095
|
-
home: "home";
|
|
2096
|
-
work: "work";
|
|
2097
|
-
}>>;
|
|
2098
|
-
address: z.ZodString;
|
|
2099
|
-
}, z.core.$strip>>;
|
|
2100
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
2101
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2102
|
-
home: "home";
|
|
2103
|
-
work: "work";
|
|
2104
|
-
mobile: "mobile";
|
|
2105
|
-
fax: "fax";
|
|
2106
|
-
}>>;
|
|
2107
|
-
number: z.ZodString;
|
|
2108
|
-
}, z.core.$strip>>;
|
|
2109
|
-
}, z.core.$strip>>;
|
|
2110
|
-
}, z.core.$strip>>;
|
|
2111
|
-
services: z.ZodArray<z.ZodObject<{
|
|
2112
|
-
id: z.ZodString;
|
|
2113
|
-
type: z.ZodEnum<{
|
|
2114
|
-
flight: "flight";
|
|
2115
|
-
hotel: "hotel";
|
|
2116
|
-
car: "car";
|
|
2117
|
-
transfer: "transfer";
|
|
2118
|
-
insurance: "insurance";
|
|
2119
|
-
}>;
|
|
2120
|
-
status: z.ZodEnum<{
|
|
2121
|
-
confirmed: "confirmed";
|
|
2122
|
-
pending: "pending";
|
|
2123
|
-
cancelled: "cancelled";
|
|
2124
|
-
}>;
|
|
2125
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2126
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2127
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2128
|
-
startDate: z.ZodOptional<z.ZodString>;
|
|
2129
|
-
endDate: z.ZodOptional<z.ZodString>;
|
|
2130
|
-
price: z.ZodOptional<z.ZodObject<{
|
|
2131
|
-
currency: z.ZodString;
|
|
2132
|
-
amount: z.ZodNumber;
|
|
1382
|
+
number: z.ZodString;
|
|
2133
1383
|
}, z.core.$strip>>;
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
code3: z.ZodOptional<z.ZodString>;
|
|
2139
|
-
code4: z.ZodOptional<z.ZodString>;
|
|
2140
|
-
code5: z.ZodOptional<z.ZodString>;
|
|
2141
|
-
code6: z.ZodOptional<z.ZodString>;
|
|
2142
|
-
}, z.core.$strip>>;
|
|
2143
|
-
destination: z.ZodOptional<z.ZodObject<{
|
|
2144
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2145
|
-
iataCode: z.ZodOptional<z.ZodString>;
|
|
2146
|
-
nationCode: z.ZodOptional<z.ZodString>;
|
|
2147
|
-
}, z.core.$strip>>;
|
|
2148
|
-
deadlines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2149
|
-
code: z.ZodString;
|
|
2150
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2151
|
-
expireDate: z.ZodOptional<z.ZodString>;
|
|
2152
|
-
}, z.core.$strip>>>;
|
|
2153
|
-
printDocument: z.ZodOptional<z.ZodBoolean>;
|
|
2154
|
-
sendDocumentViaEmail: z.ZodOptional<z.ZodBoolean>;
|
|
2155
|
-
customerId: z.ZodOptional<z.ZodNever>;
|
|
2156
|
-
customerDetails: z.ZodObject<{
|
|
2157
|
-
id: z.ZodString;
|
|
2158
|
-
type: z.ZodEnum<{
|
|
2159
|
-
customer: "customer";
|
|
2160
|
-
supplier: "supplier";
|
|
2161
|
-
voucher: "voucher";
|
|
2162
|
-
supplier_voucher: "supplier_voucher";
|
|
2163
|
-
}>;
|
|
2164
|
-
status: z.ZodEnum<{
|
|
2165
|
-
enabled: "enabled";
|
|
2166
|
-
warning: "warning";
|
|
2167
|
-
blacklisted: "blacklisted";
|
|
2168
|
-
disabled: "disabled";
|
|
2169
|
-
}>;
|
|
2170
|
-
personalInfo: z.ZodOptional<z.ZodObject<{
|
|
2171
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2172
|
-
firstName: z.ZodString;
|
|
2173
|
-
lastName: z.ZodString;
|
|
2174
|
-
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
2175
|
-
gender: z.ZodOptional<z.ZodEnum<{
|
|
2176
|
-
male: "male";
|
|
2177
|
-
female: "female";
|
|
1384
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
1385
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1386
|
+
home: "home";
|
|
1387
|
+
work: "work";
|
|
2178
1388
|
}>>;
|
|
2179
|
-
|
|
2180
|
-
}, z.core.$strip>>;
|
|
2181
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
2182
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
2183
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2184
|
-
home: "home";
|
|
2185
|
-
work: "work";
|
|
2186
|
-
mobile: "mobile";
|
|
2187
|
-
fax: "fax";
|
|
2188
|
-
}>>;
|
|
2189
|
-
number: z.ZodString;
|
|
2190
|
-
}, z.core.$strip>>;
|
|
2191
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
2192
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2193
|
-
home: "home";
|
|
2194
|
-
work: "work";
|
|
2195
|
-
}>>;
|
|
2196
|
-
address: z.ZodString;
|
|
2197
|
-
}, z.core.$strip>>;
|
|
2198
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
2199
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2200
|
-
home: "home";
|
|
2201
|
-
work: "work";
|
|
2202
|
-
mobile: "mobile";
|
|
2203
|
-
fax: "fax";
|
|
2204
|
-
}>>;
|
|
2205
|
-
number: z.ZodString;
|
|
2206
|
-
}, z.core.$strip>>;
|
|
1389
|
+
address: z.ZodString;
|
|
2207
1390
|
}, z.core.$strip>>;
|
|
2208
|
-
|
|
1391
|
+
mobile: z.ZodOptional<z.ZodObject<{
|
|
2209
1392
|
type: z.ZodOptional<z.ZodEnum<{
|
|
2210
1393
|
home: "home";
|
|
2211
1394
|
work: "work";
|
|
2212
|
-
|
|
2213
|
-
|
|
1395
|
+
mobile: "mobile";
|
|
1396
|
+
fax: "fax";
|
|
2214
1397
|
}>>;
|
|
2215
|
-
|
|
2216
|
-
city: z.ZodOptional<z.ZodString>;
|
|
2217
|
-
state: z.ZodOptional<z.ZodString>;
|
|
2218
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
2219
|
-
country: z.ZodOptional<z.ZodString>;
|
|
2220
|
-
}, z.core.$strip>>;
|
|
2221
|
-
businessInfo: z.ZodOptional<z.ZodObject<{
|
|
2222
|
-
companyName: z.ZodOptional<z.ZodString>;
|
|
2223
|
-
taxId: z.ZodOptional<z.ZodString>;
|
|
2224
|
-
vatCode: z.ZodOptional<z.ZodString>;
|
|
2225
|
-
fiscalCode: z.ZodOptional<z.ZodString>;
|
|
2226
|
-
licenseNumber: z.ZodOptional<z.ZodString>;
|
|
1398
|
+
number: z.ZodString;
|
|
2227
1399
|
}, z.core.$strip>>;
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
phone: "phone";
|
|
1400
|
+
fax: z.ZodOptional<z.ZodObject<{
|
|
1401
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1402
|
+
home: "home";
|
|
1403
|
+
work: "work";
|
|
1404
|
+
mobile: "mobile";
|
|
1405
|
+
fax: "fax";
|
|
2235
1406
|
}>>;
|
|
1407
|
+
number: z.ZodString;
|
|
2236
1408
|
}, z.core.$strip>>;
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
1409
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
1410
|
+
}, z.core.$strip>>;
|
|
1411
|
+
}, z.core.$strip>>;
|
|
1412
|
+
services: z.ZodArray<z.ZodObject<{
|
|
1413
|
+
id: z.ZodString;
|
|
1414
|
+
type: z.ZodEnum<{
|
|
1415
|
+
flight: "flight";
|
|
1416
|
+
hotel: "hotel";
|
|
1417
|
+
car: "car";
|
|
1418
|
+
transfer: "transfer";
|
|
1419
|
+
insurance: "insurance";
|
|
1420
|
+
}>;
|
|
1421
|
+
status: z.ZodEnum<{
|
|
1422
|
+
confirmed: "confirmed";
|
|
1423
|
+
pending: "pending";
|
|
1424
|
+
cancelled: "cancelled";
|
|
2247
1425
|
}>;
|
|
1426
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1427
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2248
1428
|
description: z.ZodOptional<z.ZodString>;
|
|
2249
|
-
|
|
1429
|
+
startDate: z.ZodOptional<z.ZodString>;
|
|
1430
|
+
endDate: z.ZodOptional<z.ZodString>;
|
|
1431
|
+
price: z.ZodOptional<z.ZodObject<{
|
|
1432
|
+
currency: z.ZodString;
|
|
2250
1433
|
amount: z.ZodNumber;
|
|
1434
|
+
}, z.core.$strip>>;
|
|
1435
|
+
}, z.core.$strip>>;
|
|
1436
|
+
pricing: z.ZodObject<{
|
|
1437
|
+
totalAmount: z.ZodObject<{
|
|
2251
1438
|
currency: z.ZodString;
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
1439
|
+
amount: z.ZodNumber;
|
|
1440
|
+
}, z.core.$strip>;
|
|
1441
|
+
breakdowns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1442
|
+
type: z.ZodEnum<{
|
|
1443
|
+
service: "service";
|
|
1444
|
+
tax: "tax";
|
|
1445
|
+
fee: "fee";
|
|
1446
|
+
discount: "discount";
|
|
2256
1447
|
}>;
|
|
1448
|
+
description: z.ZodString;
|
|
1449
|
+
amount: z.ZodNumber;
|
|
1450
|
+
}, z.core.$strip>>>;
|
|
1451
|
+
totals: z.ZodOptional<z.ZodObject<{
|
|
1452
|
+
beforeDiscount: z.ZodOptional<z.ZodNumber>;
|
|
1453
|
+
afterDiscount: z.ZodOptional<z.ZodNumber>;
|
|
1454
|
+
discount: z.ZodOptional<z.ZodNumber>;
|
|
1455
|
+
withoutVat: z.ZodOptional<z.ZodNumber>;
|
|
1456
|
+
dueAmount: z.ZodOptional<z.ZodNumber>;
|
|
1457
|
+
paidAmount: z.ZodOptional<z.ZodNumber>;
|
|
1458
|
+
balance: z.ZodOptional<z.ZodNumber>;
|
|
2257
1459
|
}, z.core.$strip>>;
|
|
2258
1460
|
}, z.core.$strip>;
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
1461
|
+
}, z.core.$strip>;
|
|
1462
|
+
declare const customerSearchResultSchema: z.ZodObject<{
|
|
1463
|
+
customers: z.ZodArray<z.ZodObject<{
|
|
1464
|
+
id: z.ZodString;
|
|
1465
|
+
type: z.ZodEnum<{
|
|
1466
|
+
customer: "customer";
|
|
1467
|
+
supplier: "supplier";
|
|
2263
1468
|
voucher: "voucher";
|
|
2264
|
-
|
|
2265
|
-
travel_information: "travel_information";
|
|
2266
|
-
booking_contract: "booking_contract";
|
|
2267
|
-
booking_confirmation: "booking_confirmation";
|
|
2268
|
-
supplier_service_list: "supplier_service_list";
|
|
2269
|
-
invoice: "invoice";
|
|
2270
|
-
proforma_invoice: "proforma_invoice";
|
|
2271
|
-
adeguamento: "adeguamento";
|
|
2272
|
-
reservation_form: "reservation_form";
|
|
2273
|
-
open_xml: "open_xml";
|
|
2274
|
-
sales_invoice: "sales_invoice";
|
|
2275
|
-
ticketing_tmaster: "ticketing_tmaster";
|
|
2276
|
-
summary_form: "summary_form";
|
|
1469
|
+
supplier_voucher: "supplier_voucher";
|
|
2277
1470
|
}>;
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
email: "email";
|
|
2287
|
-
sms: "sms";
|
|
2288
|
-
download: "download";
|
|
2289
|
-
}>;
|
|
2290
|
-
address: z.ZodOptional<z.ZodString>;
|
|
2291
|
-
}, z.core.$strip>>;
|
|
2292
|
-
}, z.core.$strip>;
|
|
2293
|
-
readonly addPaymentRequest: z.ZodUnion<readonly [z.ZodObject<{
|
|
2294
|
-
bookingId: z.ZodString;
|
|
2295
|
-
bookingRefCode: z.ZodOptional<z.ZodNever>;
|
|
2296
|
-
payments: z.ZodArray<z.ZodObject<{
|
|
2297
|
-
id: z.ZodString;
|
|
2298
|
-
type: z.ZodEnum<{
|
|
2299
|
-
credit_card: "credit_card";
|
|
2300
|
-
debit_card: "debit_card";
|
|
2301
|
-
bank_transfer: "bank_transfer";
|
|
2302
|
-
cash: "cash";
|
|
2303
|
-
}>;
|
|
2304
|
-
status: z.ZodEnum<{
|
|
2305
|
-
confirmed: "confirmed";
|
|
2306
|
-
pending: "pending";
|
|
2307
|
-
failed: "failed";
|
|
2308
|
-
}>;
|
|
2309
|
-
amount: z.ZodObject<{
|
|
2310
|
-
currency: z.ZodString;
|
|
2311
|
-
amount: z.ZodNumber;
|
|
2312
|
-
}, z.core.$strip>;
|
|
2313
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
2314
|
-
cardNumber: z.ZodOptional<z.ZodString>;
|
|
2315
|
-
expiryDate: z.ZodOptional<z.ZodString>;
|
|
2316
|
-
cardHolderName: z.ZodOptional<z.ZodString>;
|
|
2317
|
-
}, z.core.$strip>>;
|
|
2318
|
-
}, z.core.$strip>>;
|
|
2319
|
-
enableMultiple: z.ZodOptional<z.ZodBoolean>;
|
|
2320
|
-
operationType: z.ZodOptional<z.ZodEnum<{
|
|
2321
|
-
absolute: "absolute";
|
|
2322
|
-
final: "final";
|
|
2323
|
-
final_no_controls: "final_no_controls";
|
|
2324
|
-
}>>;
|
|
2325
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2326
|
-
bookingId: z.ZodOptional<z.ZodNever>;
|
|
2327
|
-
bookingRefCode: z.ZodString;
|
|
2328
|
-
payments: z.ZodArray<z.ZodObject<{
|
|
2329
|
-
id: z.ZodString;
|
|
2330
|
-
type: z.ZodEnum<{
|
|
2331
|
-
credit_card: "credit_card";
|
|
2332
|
-
debit_card: "debit_card";
|
|
2333
|
-
bank_transfer: "bank_transfer";
|
|
2334
|
-
cash: "cash";
|
|
2335
|
-
}>;
|
|
2336
|
-
status: z.ZodEnum<{
|
|
2337
|
-
confirmed: "confirmed";
|
|
2338
|
-
pending: "pending";
|
|
2339
|
-
failed: "failed";
|
|
2340
|
-
}>;
|
|
2341
|
-
amount: z.ZodObject<{
|
|
2342
|
-
currency: z.ZodString;
|
|
2343
|
-
amount: z.ZodNumber;
|
|
2344
|
-
}, z.core.$strip>;
|
|
2345
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
2346
|
-
cardNumber: z.ZodOptional<z.ZodString>;
|
|
2347
|
-
expiryDate: z.ZodOptional<z.ZodString>;
|
|
2348
|
-
cardHolderName: z.ZodOptional<z.ZodString>;
|
|
2349
|
-
}, z.core.$strip>>;
|
|
2350
|
-
}, z.core.$strip>>;
|
|
2351
|
-
enableMultiple: z.ZodOptional<z.ZodBoolean>;
|
|
2352
|
-
operationType: z.ZodOptional<z.ZodEnum<{
|
|
2353
|
-
absolute: "absolute";
|
|
2354
|
-
final: "final";
|
|
2355
|
-
final_no_controls: "final_no_controls";
|
|
2356
|
-
}>>;
|
|
2357
|
-
}, z.core.$strip>]>;
|
|
2358
|
-
readonly updateBookingHeader: z.ZodObject<{
|
|
2359
|
-
bookingId: z.ZodString;
|
|
2360
|
-
customerId: z.ZodString;
|
|
2361
|
-
startDate: z.ZodString;
|
|
2362
|
-
passengers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2363
|
-
id: z.ZodString;
|
|
2364
|
-
type: z.ZodEnum<{
|
|
2365
|
-
adult: "adult";
|
|
2366
|
-
child: "child";
|
|
2367
|
-
infant: "infant";
|
|
2368
|
-
senior: "senior";
|
|
2369
|
-
}>;
|
|
2370
|
-
title: z.ZodOptional<z.ZodEnum<{
|
|
2371
|
-
mr: "mr";
|
|
2372
|
-
mrs: "mrs";
|
|
2373
|
-
ms: "ms";
|
|
2374
|
-
dr: "dr";
|
|
2375
|
-
prof: "prof";
|
|
2376
|
-
}>>;
|
|
1471
|
+
status: z.ZodEnum<{
|
|
1472
|
+
enabled: "enabled";
|
|
1473
|
+
warning: "warning";
|
|
1474
|
+
blacklisted: "blacklisted";
|
|
1475
|
+
disabled: "disabled";
|
|
1476
|
+
}>;
|
|
1477
|
+
personalInfo: z.ZodOptional<z.ZodObject<{
|
|
1478
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2377
1479
|
firstName: z.ZodString;
|
|
2378
1480
|
lastName: z.ZodString;
|
|
2379
1481
|
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
@@ -2382,424 +1484,128 @@ declare const apiSchemas: {
|
|
|
2382
1484
|
female: "female";
|
|
2383
1485
|
}>>;
|
|
2384
1486
|
nationality: z.ZodOptional<z.ZodString>;
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
1487
|
+
birthCity: z.ZodOptional<z.ZodString>;
|
|
1488
|
+
birthCounty: z.ZodOptional<z.ZodString>;
|
|
1489
|
+
}, z.core.$strip>>;
|
|
1490
|
+
contact: z.ZodOptional<z.ZodObject<{
|
|
1491
|
+
phone: z.ZodOptional<z.ZodObject<{
|
|
2391
1492
|
type: z.ZodOptional<z.ZodEnum<{
|
|
2392
1493
|
home: "home";
|
|
2393
1494
|
work: "work";
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
}>>;
|
|
2397
|
-
street: z.ZodOptional<z.ZodString>;
|
|
2398
|
-
city: z.ZodOptional<z.ZodString>;
|
|
2399
|
-
state: z.ZodOptional<z.ZodString>;
|
|
2400
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
2401
|
-
country: z.ZodOptional<z.ZodString>;
|
|
2402
|
-
}, z.core.$strip>>;
|
|
2403
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
2404
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
2405
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2406
|
-
home: "home";
|
|
2407
|
-
work: "work";
|
|
2408
|
-
mobile: "mobile";
|
|
2409
|
-
fax: "fax";
|
|
2410
|
-
}>>;
|
|
2411
|
-
number: z.ZodString;
|
|
2412
|
-
}, z.core.$strip>>;
|
|
2413
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
2414
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2415
|
-
home: "home";
|
|
2416
|
-
work: "work";
|
|
2417
|
-
}>>;
|
|
2418
|
-
address: z.ZodString;
|
|
2419
|
-
}, z.core.$strip>>;
|
|
2420
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
2421
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2422
|
-
home: "home";
|
|
2423
|
-
work: "work";
|
|
2424
|
-
mobile: "mobile";
|
|
2425
|
-
fax: "fax";
|
|
2426
|
-
}>>;
|
|
2427
|
-
number: z.ZodString;
|
|
2428
|
-
}, z.core.$strip>>;
|
|
2429
|
-
}, z.core.$strip>>;
|
|
2430
|
-
}, z.core.$strip>>>;
|
|
2431
|
-
notes: z.ZodOptional<z.ZodString>;
|
|
2432
|
-
statisticCodes: z.ZodOptional<z.ZodObject<{
|
|
2433
|
-
code1: z.ZodOptional<z.ZodString>;
|
|
2434
|
-
code2: z.ZodOptional<z.ZodString>;
|
|
2435
|
-
code3: z.ZodOptional<z.ZodString>;
|
|
2436
|
-
code4: z.ZodOptional<z.ZodString>;
|
|
2437
|
-
code5: z.ZodOptional<z.ZodString>;
|
|
2438
|
-
code6: z.ZodOptional<z.ZodString>;
|
|
2439
|
-
}, z.core.$strip>>;
|
|
2440
|
-
}, z.core.$strip>;
|
|
2441
|
-
readonly updateBookingServices: z.ZodObject<{
|
|
2442
|
-
bookingId: z.ZodString;
|
|
2443
|
-
customerId: z.ZodString;
|
|
2444
|
-
services: z.ZodArray<z.ZodObject<{
|
|
2445
|
-
id: z.ZodString;
|
|
2446
|
-
type: z.ZodEnum<{
|
|
2447
|
-
flight: "flight";
|
|
2448
|
-
hotel: "hotel";
|
|
2449
|
-
car: "car";
|
|
2450
|
-
transfer: "transfer";
|
|
2451
|
-
insurance: "insurance";
|
|
2452
|
-
}>;
|
|
2453
|
-
status: z.ZodEnum<{
|
|
2454
|
-
confirmed: "confirmed";
|
|
2455
|
-
pending: "pending";
|
|
2456
|
-
cancelled: "cancelled";
|
|
2457
|
-
}>;
|
|
2458
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2459
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2460
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2461
|
-
startDate: z.ZodOptional<z.ZodString>;
|
|
2462
|
-
endDate: z.ZodOptional<z.ZodString>;
|
|
2463
|
-
price: z.ZodOptional<z.ZodObject<{
|
|
2464
|
-
currency: z.ZodString;
|
|
2465
|
-
amount: z.ZodNumber;
|
|
2466
|
-
}, z.core.$strip>>;
|
|
2467
|
-
}, z.core.$strip>>;
|
|
2468
|
-
}, z.core.$strip>;
|
|
2469
|
-
readonly setBookingStatus: z.ZodObject<{
|
|
2470
|
-
bookingId: z.ZodString;
|
|
2471
|
-
customerId: z.ZodString;
|
|
2472
|
-
status: z.ZodEnum<{
|
|
2473
|
-
confirmed: "confirmed";
|
|
2474
|
-
quotation: "quotation";
|
|
2475
|
-
work_in_progress: "work_in_progress";
|
|
2476
|
-
optioned: "optioned";
|
|
2477
|
-
nullified: "nullified";
|
|
2478
|
-
canceled: "canceled";
|
|
2479
|
-
}>;
|
|
2480
|
-
expireDate: z.ZodOptional<z.ZodString>;
|
|
2481
|
-
}, z.core.$strip>;
|
|
2482
|
-
readonly bookingResponse: z.ZodObject<{
|
|
2483
|
-
id: z.ZodString;
|
|
2484
|
-
status: z.ZodEnum<{
|
|
2485
|
-
confirmed: "confirmed";
|
|
2486
|
-
quotation: "quotation";
|
|
2487
|
-
work_in_progress: "work_in_progress";
|
|
2488
|
-
optioned: "optioned";
|
|
2489
|
-
nullified: "nullified";
|
|
2490
|
-
canceled: "canceled";
|
|
2491
|
-
}>;
|
|
2492
|
-
createdAt: z.ZodString;
|
|
2493
|
-
updatedAt: z.ZodString;
|
|
2494
|
-
customer: z.ZodObject<{
|
|
2495
|
-
id: z.ZodString;
|
|
2496
|
-
type: z.ZodEnum<{
|
|
2497
|
-
customer: "customer";
|
|
2498
|
-
supplier: "supplier";
|
|
2499
|
-
voucher: "voucher";
|
|
2500
|
-
supplier_voucher: "supplier_voucher";
|
|
2501
|
-
}>;
|
|
2502
|
-
status: z.ZodEnum<{
|
|
2503
|
-
enabled: "enabled";
|
|
2504
|
-
warning: "warning";
|
|
2505
|
-
blacklisted: "blacklisted";
|
|
2506
|
-
disabled: "disabled";
|
|
2507
|
-
}>;
|
|
2508
|
-
personalInfo: z.ZodOptional<z.ZodObject<{
|
|
2509
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2510
|
-
firstName: z.ZodString;
|
|
2511
|
-
lastName: z.ZodString;
|
|
2512
|
-
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
2513
|
-
gender: z.ZodOptional<z.ZodEnum<{
|
|
2514
|
-
male: "male";
|
|
2515
|
-
female: "female";
|
|
1495
|
+
mobile: "mobile";
|
|
1496
|
+
fax: "fax";
|
|
2516
1497
|
}>>;
|
|
2517
|
-
|
|
2518
|
-
}, z.core.$strip>>;
|
|
2519
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
2520
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
2521
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2522
|
-
home: "home";
|
|
2523
|
-
work: "work";
|
|
2524
|
-
mobile: "mobile";
|
|
2525
|
-
fax: "fax";
|
|
2526
|
-
}>>;
|
|
2527
|
-
number: z.ZodString;
|
|
2528
|
-
}, z.core.$strip>>;
|
|
2529
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
2530
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2531
|
-
home: "home";
|
|
2532
|
-
work: "work";
|
|
2533
|
-
}>>;
|
|
2534
|
-
address: z.ZodString;
|
|
2535
|
-
}, z.core.$strip>>;
|
|
2536
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
2537
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2538
|
-
home: "home";
|
|
2539
|
-
work: "work";
|
|
2540
|
-
mobile: "mobile";
|
|
2541
|
-
fax: "fax";
|
|
2542
|
-
}>>;
|
|
2543
|
-
number: z.ZodString;
|
|
2544
|
-
}, z.core.$strip>>;
|
|
1498
|
+
number: z.ZodString;
|
|
2545
1499
|
}, z.core.$strip>>;
|
|
2546
|
-
|
|
1500
|
+
email: z.ZodOptional<z.ZodObject<{
|
|
2547
1501
|
type: z.ZodOptional<z.ZodEnum<{
|
|
2548
1502
|
home: "home";
|
|
2549
1503
|
work: "work";
|
|
2550
|
-
billing: "billing";
|
|
2551
|
-
delivery: "delivery";
|
|
2552
|
-
}>>;
|
|
2553
|
-
street: z.ZodOptional<z.ZodString>;
|
|
2554
|
-
city: z.ZodOptional<z.ZodString>;
|
|
2555
|
-
state: z.ZodOptional<z.ZodString>;
|
|
2556
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
2557
|
-
country: z.ZodOptional<z.ZodString>;
|
|
2558
|
-
}, z.core.$strip>>;
|
|
2559
|
-
businessInfo: z.ZodOptional<z.ZodObject<{
|
|
2560
|
-
companyName: z.ZodOptional<z.ZodString>;
|
|
2561
|
-
taxId: z.ZodOptional<z.ZodString>;
|
|
2562
|
-
vatCode: z.ZodOptional<z.ZodString>;
|
|
2563
|
-
fiscalCode: z.ZodOptional<z.ZodString>;
|
|
2564
|
-
licenseNumber: z.ZodOptional<z.ZodString>;
|
|
2565
|
-
}, z.core.$strip>>;
|
|
2566
|
-
preferences: z.ZodOptional<z.ZodObject<{
|
|
2567
|
-
language: z.ZodOptional<z.ZodString>;
|
|
2568
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
2569
|
-
communicationMethod: z.ZodOptional<z.ZodEnum<{
|
|
2570
|
-
email: "email";
|
|
2571
|
-
sms: "sms";
|
|
2572
|
-
phone: "phone";
|
|
2573
1504
|
}>>;
|
|
1505
|
+
address: z.ZodString;
|
|
2574
1506
|
}, z.core.$strip>>;
|
|
2575
|
-
|
|
2576
|
-
passengers: z.ZodArray<z.ZodObject<{
|
|
2577
|
-
id: z.ZodString;
|
|
2578
|
-
type: z.ZodEnum<{
|
|
2579
|
-
adult: "adult";
|
|
2580
|
-
child: "child";
|
|
2581
|
-
infant: "infant";
|
|
2582
|
-
senior: "senior";
|
|
2583
|
-
}>;
|
|
2584
|
-
title: z.ZodOptional<z.ZodEnum<{
|
|
2585
|
-
mr: "mr";
|
|
2586
|
-
mrs: "mrs";
|
|
2587
|
-
ms: "ms";
|
|
2588
|
-
dr: "dr";
|
|
2589
|
-
prof: "prof";
|
|
2590
|
-
}>>;
|
|
2591
|
-
firstName: z.ZodString;
|
|
2592
|
-
lastName: z.ZodString;
|
|
2593
|
-
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
2594
|
-
gender: z.ZodOptional<z.ZodEnum<{
|
|
2595
|
-
male: "male";
|
|
2596
|
-
female: "female";
|
|
2597
|
-
}>>;
|
|
2598
|
-
nationality: z.ZodOptional<z.ZodString>;
|
|
2599
|
-
passport: z.ZodOptional<z.ZodObject<{
|
|
2600
|
-
number: z.ZodString;
|
|
2601
|
-
expiryDate: z.ZodString;
|
|
2602
|
-
issuingCountry: z.ZodString;
|
|
2603
|
-
}, z.core.$strip>>;
|
|
2604
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
1507
|
+
mobile: z.ZodOptional<z.ZodObject<{
|
|
2605
1508
|
type: z.ZodOptional<z.ZodEnum<{
|
|
2606
1509
|
home: "home";
|
|
2607
1510
|
work: "work";
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
}>>;
|
|
2611
|
-
street: z.ZodOptional<z.ZodString>;
|
|
2612
|
-
city: z.ZodOptional<z.ZodString>;
|
|
2613
|
-
state: z.ZodOptional<z.ZodString>;
|
|
2614
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
2615
|
-
country: z.ZodOptional<z.ZodString>;
|
|
2616
|
-
}, z.core.$strip>>;
|
|
2617
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
2618
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
2619
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2620
|
-
home: "home";
|
|
2621
|
-
work: "work";
|
|
2622
|
-
mobile: "mobile";
|
|
2623
|
-
fax: "fax";
|
|
2624
|
-
}>>;
|
|
2625
|
-
number: z.ZodString;
|
|
2626
|
-
}, z.core.$strip>>;
|
|
2627
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
2628
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2629
|
-
home: "home";
|
|
2630
|
-
work: "work";
|
|
2631
|
-
}>>;
|
|
2632
|
-
address: z.ZodString;
|
|
2633
|
-
}, z.core.$strip>>;
|
|
2634
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
2635
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2636
|
-
home: "home";
|
|
2637
|
-
work: "work";
|
|
2638
|
-
mobile: "mobile";
|
|
2639
|
-
fax: "fax";
|
|
2640
|
-
}>>;
|
|
2641
|
-
number: z.ZodString;
|
|
2642
|
-
}, z.core.$strip>>;
|
|
2643
|
-
}, z.core.$strip>>;
|
|
2644
|
-
}, z.core.$strip>>;
|
|
2645
|
-
services: z.ZodArray<z.ZodObject<{
|
|
2646
|
-
id: z.ZodString;
|
|
2647
|
-
type: z.ZodEnum<{
|
|
2648
|
-
flight: "flight";
|
|
2649
|
-
hotel: "hotel";
|
|
2650
|
-
car: "car";
|
|
2651
|
-
transfer: "transfer";
|
|
2652
|
-
insurance: "insurance";
|
|
2653
|
-
}>;
|
|
2654
|
-
status: z.ZodEnum<{
|
|
2655
|
-
confirmed: "confirmed";
|
|
2656
|
-
pending: "pending";
|
|
2657
|
-
cancelled: "cancelled";
|
|
2658
|
-
}>;
|
|
2659
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2660
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2661
|
-
description: z.ZodOptional<z.ZodString>;
|
|
2662
|
-
startDate: z.ZodOptional<z.ZodString>;
|
|
2663
|
-
endDate: z.ZodOptional<z.ZodString>;
|
|
2664
|
-
price: z.ZodOptional<z.ZodObject<{
|
|
2665
|
-
currency: z.ZodString;
|
|
2666
|
-
amount: z.ZodNumber;
|
|
2667
|
-
}, z.core.$strip>>;
|
|
2668
|
-
}, z.core.$strip>>;
|
|
2669
|
-
pricing: z.ZodObject<{
|
|
2670
|
-
totalAmount: z.ZodObject<{
|
|
2671
|
-
currency: z.ZodString;
|
|
2672
|
-
amount: z.ZodNumber;
|
|
2673
|
-
}, z.core.$strip>;
|
|
2674
|
-
breakdowns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2675
|
-
type: z.ZodEnum<{
|
|
2676
|
-
service: "service";
|
|
2677
|
-
tax: "tax";
|
|
2678
|
-
fee: "fee";
|
|
2679
|
-
discount: "discount";
|
|
2680
|
-
}>;
|
|
2681
|
-
description: z.ZodString;
|
|
2682
|
-
amount: z.ZodNumber;
|
|
2683
|
-
}, z.core.$strip>>>;
|
|
2684
|
-
}, z.core.$strip>;
|
|
2685
|
-
}, z.core.$strip>;
|
|
2686
|
-
readonly customerSearchResult: z.ZodObject<{
|
|
2687
|
-
customers: z.ZodArray<z.ZodObject<{
|
|
2688
|
-
id: z.ZodString;
|
|
2689
|
-
type: z.ZodEnum<{
|
|
2690
|
-
customer: "customer";
|
|
2691
|
-
supplier: "supplier";
|
|
2692
|
-
voucher: "voucher";
|
|
2693
|
-
supplier_voucher: "supplier_voucher";
|
|
2694
|
-
}>;
|
|
2695
|
-
status: z.ZodEnum<{
|
|
2696
|
-
enabled: "enabled";
|
|
2697
|
-
warning: "warning";
|
|
2698
|
-
blacklisted: "blacklisted";
|
|
2699
|
-
disabled: "disabled";
|
|
2700
|
-
}>;
|
|
2701
|
-
personalInfo: z.ZodOptional<z.ZodObject<{
|
|
2702
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2703
|
-
firstName: z.ZodString;
|
|
2704
|
-
lastName: z.ZodString;
|
|
2705
|
-
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
2706
|
-
gender: z.ZodOptional<z.ZodEnum<{
|
|
2707
|
-
male: "male";
|
|
2708
|
-
female: "female";
|
|
1511
|
+
mobile: "mobile";
|
|
1512
|
+
fax: "fax";
|
|
2709
1513
|
}>>;
|
|
2710
|
-
|
|
2711
|
-
}, z.core.$strip>>;
|
|
2712
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
2713
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
2714
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2715
|
-
home: "home";
|
|
2716
|
-
work: "work";
|
|
2717
|
-
mobile: "mobile";
|
|
2718
|
-
fax: "fax";
|
|
2719
|
-
}>>;
|
|
2720
|
-
number: z.ZodString;
|
|
2721
|
-
}, z.core.$strip>>;
|
|
2722
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
2723
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2724
|
-
home: "home";
|
|
2725
|
-
work: "work";
|
|
2726
|
-
}>>;
|
|
2727
|
-
address: z.ZodString;
|
|
2728
|
-
}, z.core.$strip>>;
|
|
2729
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
2730
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
2731
|
-
home: "home";
|
|
2732
|
-
work: "work";
|
|
2733
|
-
mobile: "mobile";
|
|
2734
|
-
fax: "fax";
|
|
2735
|
-
}>>;
|
|
2736
|
-
number: z.ZodString;
|
|
2737
|
-
}, z.core.$strip>>;
|
|
1514
|
+
number: z.ZodString;
|
|
2738
1515
|
}, z.core.$strip>>;
|
|
2739
|
-
|
|
1516
|
+
fax: z.ZodOptional<z.ZodObject<{
|
|
2740
1517
|
type: z.ZodOptional<z.ZodEnum<{
|
|
2741
1518
|
home: "home";
|
|
2742
1519
|
work: "work";
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
}>>;
|
|
2746
|
-
street: z.ZodOptional<z.ZodString>;
|
|
2747
|
-
city: z.ZodOptional<z.ZodString>;
|
|
2748
|
-
state: z.ZodOptional<z.ZodString>;
|
|
2749
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
2750
|
-
country: z.ZodOptional<z.ZodString>;
|
|
2751
|
-
}, z.core.$strip>>;
|
|
2752
|
-
businessInfo: z.ZodOptional<z.ZodObject<{
|
|
2753
|
-
companyName: z.ZodOptional<z.ZodString>;
|
|
2754
|
-
taxId: z.ZodOptional<z.ZodString>;
|
|
2755
|
-
vatCode: z.ZodOptional<z.ZodString>;
|
|
2756
|
-
fiscalCode: z.ZodOptional<z.ZodString>;
|
|
2757
|
-
licenseNumber: z.ZodOptional<z.ZodString>;
|
|
2758
|
-
}, z.core.$strip>>;
|
|
2759
|
-
preferences: z.ZodOptional<z.ZodObject<{
|
|
2760
|
-
language: z.ZodOptional<z.ZodString>;
|
|
2761
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
2762
|
-
communicationMethod: z.ZodOptional<z.ZodEnum<{
|
|
2763
|
-
email: "email";
|
|
2764
|
-
sms: "sms";
|
|
2765
|
-
phone: "phone";
|
|
1520
|
+
mobile: "mobile";
|
|
1521
|
+
fax: "fax";
|
|
2766
1522
|
}>>;
|
|
1523
|
+
number: z.ZodString;
|
|
2767
1524
|
}, z.core.$strip>>;
|
|
1525
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
2768
1526
|
}, z.core.$strip>>;
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
1527
|
+
address: z.ZodOptional<z.ZodObject<{
|
|
1528
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1529
|
+
home: "home";
|
|
1530
|
+
work: "work";
|
|
1531
|
+
billing: "billing";
|
|
1532
|
+
delivery: "delivery";
|
|
1533
|
+
}>>;
|
|
1534
|
+
street: z.ZodOptional<z.ZodString>;
|
|
1535
|
+
city: z.ZodOptional<z.ZodString>;
|
|
1536
|
+
state: z.ZodOptional<z.ZodString>;
|
|
1537
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
1538
|
+
country: z.ZodOptional<z.ZodString>;
|
|
1539
|
+
}, z.core.$strip>>;
|
|
1540
|
+
businessInfo: z.ZodOptional<z.ZodObject<{
|
|
1541
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
1542
|
+
taxId: z.ZodOptional<z.ZodString>;
|
|
1543
|
+
vatCode: z.ZodOptional<z.ZodString>;
|
|
1544
|
+
fiscalCode: z.ZodOptional<z.ZodString>;
|
|
1545
|
+
licenseNumber: z.ZodOptional<z.ZodString>;
|
|
1546
|
+
priceListCode: z.ZodOptional<z.ZodString>;
|
|
1547
|
+
}, z.core.$strip>>;
|
|
1548
|
+
preferences: z.ZodOptional<z.ZodObject<{
|
|
1549
|
+
language: z.ZodOptional<z.ZodString>;
|
|
1550
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
1551
|
+
communicationMethod: z.ZodOptional<z.ZodEnum<{
|
|
1552
|
+
email: "email";
|
|
1553
|
+
sms: "sms";
|
|
1554
|
+
phone: "phone";
|
|
1555
|
+
}>>;
|
|
1556
|
+
}, z.core.$strip>>;
|
|
1557
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
1558
|
+
createdDate: z.ZodOptional<z.ZodString>;
|
|
1559
|
+
modifiedDate: z.ZodOptional<z.ZodString>;
|
|
1560
|
+
loginType: z.ZodOptional<z.ZodEnum<{
|
|
1561
|
+
SUPPLIER: "SUPPLIER";
|
|
1562
|
+
WEB_BOOKING: "WEB_BOOKING";
|
|
1563
|
+
BUSINESS_TRAVEL: "BUSINESS_TRAVEL";
|
|
1564
|
+
GROUP_TRAVEL: "GROUP_TRAVEL";
|
|
1565
|
+
ADMINISTRATOR: "ADMINISTRATOR";
|
|
1566
|
+
}>>;
|
|
1567
|
+
thirdPartRecordCode: z.ZodOptional<z.ZodString>;
|
|
1568
|
+
searchField: z.ZodOptional<z.ZodString>;
|
|
1569
|
+
extraInfo: z.ZodOptional<z.ZodString>;
|
|
1570
|
+
}, z.core.$strip>>;
|
|
1571
|
+
codes: z.ZodOptional<z.ZodObject<{
|
|
1572
|
+
zoneCode: z.ZodOptional<z.ZodString>;
|
|
1573
|
+
areaCode: z.ZodOptional<z.ZodString>;
|
|
1574
|
+
branchOfficeCode: z.ZodOptional<z.ZodString>;
|
|
1575
|
+
categoryCode: z.ZodOptional<z.ZodString>;
|
|
1576
|
+
activityCode: z.ZodOptional<z.ZodString>;
|
|
1577
|
+
promoterCode: z.ZodOptional<z.ZodString>;
|
|
1578
|
+
networkCode: z.ZodOptional<z.ZodString>;
|
|
1579
|
+
}, z.core.$strip>>;
|
|
1580
|
+
}, z.core.$strip>>;
|
|
1581
|
+
pagination: z.ZodObject<{
|
|
1582
|
+
page: z.ZodNumber;
|
|
1583
|
+
pages: z.ZodNumber;
|
|
1584
|
+
totalItems: z.ZodNumber;
|
|
1585
|
+
hasMore: z.ZodBoolean;
|
|
2775
1586
|
}, z.core.$strip>;
|
|
2776
|
-
|
|
1587
|
+
}, z.core.$strip>;
|
|
1588
|
+
declare const printedDocumentSchema: z.ZodObject<{
|
|
1589
|
+
fileName: z.ZodString;
|
|
1590
|
+
content: z.ZodOptional<z.ZodString>;
|
|
1591
|
+
contentSize: z.ZodNumber;
|
|
1592
|
+
}, z.core.$strip>;
|
|
1593
|
+
declare const documentPrintResultSchema: z.ZodObject<{
|
|
1594
|
+
emailRecipient: z.ZodOptional<z.ZodEmail>;
|
|
1595
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
2777
1596
|
fileName: z.ZodString;
|
|
2778
1597
|
content: z.ZodOptional<z.ZodString>;
|
|
2779
1598
|
contentSize: z.ZodNumber;
|
|
2780
|
-
}, z.core.$strip
|
|
2781
|
-
|
|
2782
|
-
emailRecipient: z.
|
|
1599
|
+
}, z.core.$strip>>;
|
|
1600
|
+
additionalDocuments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1601
|
+
emailRecipient: z.ZodString;
|
|
2783
1602
|
documents: z.ZodArray<z.ZodObject<{
|
|
2784
1603
|
fileName: z.ZodString;
|
|
2785
1604
|
content: z.ZodOptional<z.ZodString>;
|
|
2786
1605
|
contentSize: z.ZodNumber;
|
|
2787
1606
|
}, z.core.$strip>>;
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
documents: z.ZodArray<z.ZodObject<{
|
|
2791
|
-
fileName: z.ZodString;
|
|
2792
|
-
content: z.ZodOptional<z.ZodString>;
|
|
2793
|
-
contentSize: z.ZodNumber;
|
|
2794
|
-
}, z.core.$strip>>;
|
|
2795
|
-
}, z.core.$strip>>>;
|
|
2796
|
-
}, z.core.$strip>;
|
|
2797
|
-
readonly operationResponse: z.ZodObject<{
|
|
2798
|
-
success: z.ZodBoolean;
|
|
2799
|
-
message: z.ZodOptional<z.ZodString>;
|
|
2800
|
-
data: z.ZodOptional<z.ZodAny>;
|
|
2801
|
-
}, z.core.$strip>;
|
|
2802
|
-
};
|
|
1607
|
+
}, z.core.$strip>>>;
|
|
1608
|
+
}, z.core.$strip>;
|
|
2803
1609
|
type AddressType = z.infer<typeof addressTypeSchema>;
|
|
2804
1610
|
type ContactType = z.infer<typeof contactTypeSchema>;
|
|
2805
1611
|
type EmailType = z.infer<typeof emailTypeSchema>;
|
|
@@ -2824,9 +1630,6 @@ type CreateBookingRequest = z.infer<typeof createBookingRequestSchema>;
|
|
|
2824
1630
|
type CancelBookingRequest = z.infer<typeof cancelBookingRequestSchema>;
|
|
2825
1631
|
type PrintDocumentRequest = z.infer<typeof printDocumentRequestSchema>;
|
|
2826
1632
|
type AddPaymentRequest = z.infer<typeof addPaymentRequestSchema>;
|
|
2827
|
-
type UpdateBookingHeaderRequest = z.infer<typeof updateBookingHeaderSchema>;
|
|
2828
|
-
type UpdateBookingServicesRequest = z.infer<typeof updateBookingServicesSchema>;
|
|
2829
|
-
type SetBookingStatusRequest = z.infer<typeof setBookingStatusSchema>;
|
|
2830
1633
|
type BookingResponse = z.infer<typeof bookingResponseSchema>;
|
|
2831
1634
|
type CustomerSearchResult = z.infer<typeof customerSearchResultSchema>;
|
|
2832
1635
|
type PrintedDocument = z.infer<typeof printedDocumentSchema>;
|
|
@@ -3085,7 +1888,7 @@ interface BookFileRQ {
|
|
|
3085
1888
|
CurrencyCode?: string;
|
|
3086
1889
|
MarkupCode?: string;
|
|
3087
1890
|
BookingFileStatus: {
|
|
3088
|
-
'@Value': 'QUOTATION' | 'WORK_IN_PROGRESS' | 'CONFIRMED' | 'OPTIONED' | 'CANCELED';
|
|
1891
|
+
'@Value': 'QUOTATION' | 'WORK_IN_PROGRESS' | 'CONFIRMED' | 'OPTIONED' | 'NULLIFIED' | 'CANCELED';
|
|
3089
1892
|
'@ExpiredDate'?: string;
|
|
3090
1893
|
};
|
|
3091
1894
|
StatisticCodes?: {
|
|
@@ -3315,108 +2118,6 @@ interface BookingFileRS {
|
|
|
3315
2118
|
'@BookingFileID'?: string;
|
|
3316
2119
|
};
|
|
3317
2120
|
}
|
|
3318
|
-
interface ModiFileHeaderRQ {
|
|
3319
|
-
BookingFileCode: string;
|
|
3320
|
-
BookingFileStartDate: string;
|
|
3321
|
-
CustomerRecordCode: string;
|
|
3322
|
-
NewCustomerRecordCode?: string;
|
|
3323
|
-
BookingFileReferenceName?: string;
|
|
3324
|
-
TravelAgentCode?: string;
|
|
3325
|
-
BillingReferenceCode?: string;
|
|
3326
|
-
PaymentReferenceCode?: string;
|
|
3327
|
-
CupCode?: string;
|
|
3328
|
-
CigCode?: string;
|
|
3329
|
-
CustomerPromoterCode?: string;
|
|
3330
|
-
BookingNote?: string;
|
|
3331
|
-
PassengerList?: {
|
|
3332
|
-
PassengerDetail: PassengerDetail[];
|
|
3333
|
-
};
|
|
3334
|
-
StatisticCodes?: {
|
|
3335
|
-
'@sCode1'?: string;
|
|
3336
|
-
'@sCode2'?: string;
|
|
3337
|
-
'@sCode3'?: string;
|
|
3338
|
-
'@sCode4'?: string;
|
|
3339
|
-
'@sCode5'?: string;
|
|
3340
|
-
'@sCode6'?: string;
|
|
3341
|
-
};
|
|
3342
|
-
BookingFinancialInfo?: {
|
|
3343
|
-
'@Customer_PaymentType': 'CASH' | 'BANK' | 'RID' | 'RIBA' | 'SPECIFIC_CODE' | 'NOT_SET';
|
|
3344
|
-
'@Customer_SpecPaymentTypeCode'?: string;
|
|
3345
|
-
};
|
|
3346
|
-
FinancialDeadlineList?: {
|
|
3347
|
-
DeadlineDetail: {
|
|
3348
|
-
'@ReschedulingCode': string;
|
|
3349
|
-
'@ExpireDate': string;
|
|
3350
|
-
'@TotalAmount': string;
|
|
3351
|
-
}[];
|
|
3352
|
-
};
|
|
3353
|
-
}
|
|
3354
|
-
interface ModiFileHeaderRS {
|
|
3355
|
-
}
|
|
3356
|
-
interface ModFileServicesRQ {
|
|
3357
|
-
CustomerRecordCode: string;
|
|
3358
|
-
BookingFileCode: string;
|
|
3359
|
-
DeadlineList?: {
|
|
3360
|
-
DeadlineDetail: {
|
|
3361
|
-
ReschedulingCode: string;
|
|
3362
|
-
Description?: string;
|
|
3363
|
-
ExpireDate?: string;
|
|
3364
|
-
}[];
|
|
3365
|
-
};
|
|
3366
|
-
CancellableBookedServiceList?: {
|
|
3367
|
-
CancellableBookedServiceDetail: {
|
|
3368
|
-
'@CancelOperationType': 'NULLIFY' | 'DELETE';
|
|
3369
|
-
'@ServiceRefType': 'RPH' | 'FILE';
|
|
3370
|
-
'@ServiceRefValue': string;
|
|
3371
|
-
}[];
|
|
3372
|
-
};
|
|
3373
|
-
SelectedPackageDetail?: {
|
|
3374
|
-
'@pCode': string;
|
|
3375
|
-
'@StartDate': string;
|
|
3376
|
-
'@EndDate': string;
|
|
3377
|
-
'@GetServicesFromPackage'?: boolean;
|
|
3378
|
-
};
|
|
3379
|
-
SelectedServiceList: {
|
|
3380
|
-
SelectedServiceDetail: SelectedServiceDetail[];
|
|
3381
|
-
};
|
|
3382
|
-
PassengerList?: {
|
|
3383
|
-
PassengerDetail: PassengerDetail[];
|
|
3384
|
-
};
|
|
3385
|
-
}
|
|
3386
|
-
interface SetStatusRQ {
|
|
3387
|
-
CustomerRecordCode: string;
|
|
3388
|
-
BookingFileCode: string;
|
|
3389
|
-
FileStatus: {
|
|
3390
|
-
'@Value': 'QUOTATION' | 'WORK_IN_PROGRESS' | 'CONFIRMED' | 'OPTIONED' | 'NULLIFIED' | 'CANCELED';
|
|
3391
|
-
'@ExpiredDate'?: string;
|
|
3392
|
-
'@OptionedFileExpireDatePolicy'?: 'NOT_SET' | 'CONSIDER_HOLIDAY' | 'CONSIDER_HOLIDAY_AND_SATURDAY';
|
|
3393
|
-
};
|
|
3394
|
-
BackOfficeRequest?: boolean;
|
|
3395
|
-
BookingFileDocument?: {
|
|
3396
|
-
'@PrintDoc': boolean;
|
|
3397
|
-
'@SendDocViaEmail': boolean;
|
|
3398
|
-
};
|
|
3399
|
-
Penalty?: {
|
|
3400
|
-
'@Apply': boolean;
|
|
3401
|
-
'@SpecificCode'?: string;
|
|
3402
|
-
};
|
|
3403
|
-
SimulateCancelAndGetPenaltyAmount?: boolean;
|
|
3404
|
-
}
|
|
3405
|
-
interface SetStatusServiceRQ {
|
|
3406
|
-
CustomerRecordCode: string;
|
|
3407
|
-
BookingFileCode: string;
|
|
3408
|
-
BookingServiceRef: string;
|
|
3409
|
-
BookingFileServiceStatus: 'NULLIFIED';
|
|
3410
|
-
BookingFileServiceStatusDate?: string;
|
|
3411
|
-
}
|
|
3412
|
-
interface SetStatusServiceRS {
|
|
3413
|
-
BookingFile: BookingFile;
|
|
3414
|
-
OperationResult: {
|
|
3415
|
-
'@Status': 'SUCCESS' | 'FAILED';
|
|
3416
|
-
'@Message'?: string;
|
|
3417
|
-
'@PreviousStatus'?: string;
|
|
3418
|
-
};
|
|
3419
|
-
}
|
|
3420
2121
|
interface CancelFileRQ {
|
|
3421
2122
|
BookingFileCode: string;
|
|
3422
2123
|
CustomerRecordCode: string;
|
|
@@ -3434,25 +2135,6 @@ interface CancelFileRS {
|
|
|
3434
2135
|
};
|
|
3435
2136
|
};
|
|
3436
2137
|
}
|
|
3437
|
-
interface FilePaymentListRQ {
|
|
3438
|
-
BookingFileCode?: string;
|
|
3439
|
-
BookingFileRefCode?: string;
|
|
3440
|
-
PaymentUser?: string;
|
|
3441
|
-
EnableMultiplePayments: boolean;
|
|
3442
|
-
OperationType: 'AbsoluteAmountsInsertion' | 'FinalAmountToAchieve' | 'FinalAmountToAchieveWithoutControls';
|
|
3443
|
-
FilePaymentList: {
|
|
3444
|
-
FilePaymentDetail: {
|
|
3445
|
-
'@PaymentDate': string;
|
|
3446
|
-
'@PaymentNote'?: string;
|
|
3447
|
-
'@PayerMasterCode'?: string;
|
|
3448
|
-
'@PayerName'?: string;
|
|
3449
|
-
'@Amount': string;
|
|
3450
|
-
'@PaymentType': 'C' | 'B' | 'D' | 'T' | 'P' | 'R' | 'A' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'Q' | 'S' | 'U' | 'V';
|
|
3451
|
-
}[];
|
|
3452
|
-
};
|
|
3453
|
-
}
|
|
3454
|
-
interface FilePaymentListRS {
|
|
3455
|
-
}
|
|
3456
2138
|
interface PrintBookingDocumentRQ {
|
|
3457
2139
|
RefMasterRecordCode: string;
|
|
3458
2140
|
LanguageCode: string;
|
|
@@ -3498,206 +2180,6 @@ interface PrintBookingDocumentRS {
|
|
|
3498
2180
|
};
|
|
3499
2181
|
}
|
|
3500
2182
|
|
|
3501
|
-
declare function mapSearchCustomerToXml(request: SearchCustomerRequest): SearchMasterRecordRQ;
|
|
3502
|
-
declare function mapCustomerToXml(data: Customer): MasterRecordDetail;
|
|
3503
|
-
declare function mapCreateBookingToXml(data: CreateBookingRequest): BookFileRQ;
|
|
3504
|
-
declare function mapCancelBookingToXml(data: CancelBookingRequest): CancelFileRQ;
|
|
3505
|
-
declare function mapPrintDocumentToXml(data: PrintDocumentRequest): PrintBookingDocumentRQ;
|
|
3506
|
-
declare function mapAddPaymentToXml(data: AddPaymentRequest): FilePaymentListRQ;
|
|
3507
|
-
declare function mapCreateCustomerToXml(customer: Customer): ManageMasterRecordRQ;
|
|
3508
|
-
declare function mapUpdateCustomerToXml(customer: Customer): ManageMasterRecordRQ;
|
|
3509
|
-
declare function mapUpsertCustomerToXml(customer: Customer): ManageMasterRecordRQ;
|
|
3510
|
-
declare function mapUpdateBookingHeaderToXml(customerRecordCode: string, bookingFileCode: string, bookingFileStartDate: string, updates?: {
|
|
3511
|
-
newCustomerRecordCode?: string;
|
|
3512
|
-
passengers?: BookingPassenger[];
|
|
3513
|
-
notes?: string;
|
|
3514
|
-
}): ModiFileHeaderRQ;
|
|
3515
|
-
declare function mapUpdateBookingServicesToXml(customerRecordCode: string, bookingFileCode: string, services: BookingService[]): ModFileServicesRQ;
|
|
3516
|
-
declare function mapSetBookingStatusToXml(customerRecordCode: string, bookingFileCode: string, status: BookingStatusTypeValue, options?: {
|
|
3517
|
-
expiredDate?: string;
|
|
3518
|
-
optionedFileExpireDatePolicy?: 'NOT_SET' | 'CONSIDER_HOLIDAY' | 'CONSIDER_HOLIDAY_AND_SATURDAY';
|
|
3519
|
-
backOfficeRequest?: boolean;
|
|
3520
|
-
printDoc?: boolean;
|
|
3521
|
-
sendDocViaEmail?: boolean;
|
|
3522
|
-
applyPenalty?: boolean;
|
|
3523
|
-
penaltyCode?: string;
|
|
3524
|
-
simulateCancelAndGetPenalty?: boolean;
|
|
3525
|
-
}): SetStatusRQ;
|
|
3526
|
-
declare function mapSetBookingServiceStatusToXml(customerRecordCode: string, bookingFileCode: string, serviceRef: string, statusDate?: string): SetStatusServiceRQ;
|
|
3527
|
-
|
|
3528
|
-
declare function mapCustomerResponseFromXml(xml: CustomerRecordRS | undefined): OperationResponse<Customer>;
|
|
3529
|
-
declare function mapBookingFromXml(xml: BookingFile): BookingResponse;
|
|
3530
|
-
declare function mapBookingResponseFromXml(xml: BookingFileRS | undefined): OperationResponse<BookingResponse>;
|
|
3531
|
-
declare function mapSearchResponseFromXml(xml: SearchMasterRecordRS | undefined, requestPagination?: {
|
|
3532
|
-
pages: number;
|
|
3533
|
-
page: number;
|
|
3534
|
-
}): CustomerSearchResult;
|
|
3535
|
-
declare function mapDocumentResponseFromXml(xml: PrintBookingDocumentRS | undefined): OperationResponse<DocumentPrintResult>;
|
|
3536
|
-
declare function mapCancelResponseFromXml(xml: CancelFileRS | undefined): OperationResponse<CancelResponseData>;
|
|
3537
|
-
declare function mapPaymentResponseFromXml(xml: FilePaymentListRS | undefined): OperationResponse<PaymentResponseData>;
|
|
3538
|
-
|
|
3539
|
-
declare function mapCustomerTypeToXml(type: string): 'CUSTOMER' | 'SUPPLIER' | 'VOUCHER' | 'SUPPLIER_VOUCHER';
|
|
3540
|
-
declare function mapCustomerStatusToXml(status: string): 'ENABLED' | 'WARNING' | 'BLACKLISTED' | 'DISABLED';
|
|
3541
|
-
declare function mapBookingStatusToXml(status: string): 'QUOTATION' | 'WORK_IN_PROGRESS' | 'CONFIRMED' | 'OPTIONED' | 'NULLIFIED' | 'CANCELED';
|
|
3542
|
-
declare function mapDocumentTypeToXml(type: string): PrintBookingDocumentRQ['InfoDocumentsToPrint']['InfoDocumentToPrint'][number]['DocumentType'];
|
|
3543
|
-
declare function mapGenderToXml(gender: string): 'M' | 'F';
|
|
3544
|
-
|
|
3545
|
-
declare const createDateString: (date: string | Date) => string;
|
|
3546
|
-
declare const createDateTimeString: (dateTime: string | Date) => string;
|
|
3547
|
-
declare const createTimeString: (time: string) => string;
|
|
3548
|
-
|
|
3549
|
-
interface RqHeader {
|
|
3550
|
-
'@HostID': string;
|
|
3551
|
-
'@Xtoken': string;
|
|
3552
|
-
'@Interface': 'WEB';
|
|
3553
|
-
'@UserName': 'WEB';
|
|
3554
|
-
'@LanguageCode'?: string;
|
|
3555
|
-
}
|
|
3556
|
-
declare enum AvesStatus {
|
|
3557
|
-
OK = "OK",
|
|
3558
|
-
ERROR = "ERROR",
|
|
3559
|
-
WARNING = "WARNING",
|
|
3560
|
-
TIMEOUT = "TIMEOUT"
|
|
3561
|
-
}
|
|
3562
|
-
interface RsStatus {
|
|
3563
|
-
'@Status': AvesStatus;
|
|
3564
|
-
ErrorCode?: string;
|
|
3565
|
-
ErrorDescription?: string;
|
|
3566
|
-
Warnings?: {
|
|
3567
|
-
Warning: string | string[];
|
|
3568
|
-
};
|
|
3569
|
-
}
|
|
3570
|
-
declare enum AvesSeverity {
|
|
3571
|
-
ERROR = "ERROR",
|
|
3572
|
-
WARNING = "WARNING",
|
|
3573
|
-
INFO = "INFO"
|
|
3574
|
-
}
|
|
3575
|
-
interface AvesError {
|
|
3576
|
-
code: string;
|
|
3577
|
-
message: string;
|
|
3578
|
-
severity: AvesSeverity;
|
|
3579
|
-
timestamp: string;
|
|
3580
|
-
requestId: string;
|
|
3581
|
-
context?: Record<string, any>;
|
|
3582
|
-
}
|
|
3583
|
-
declare enum AvesErrorCodes {
|
|
3584
|
-
INVALID_TOKEN = "AVES_001",
|
|
3585
|
-
TOKEN_EXPIRED = "AVES_002",
|
|
3586
|
-
INSUFFICIENT_PERMISSIONS = "AVES_003",
|
|
3587
|
-
INVALID_REQUEST_FORMAT = "AVES_100",
|
|
3588
|
-
MISSING_REQUIRED_FIELD = "AVES_101",
|
|
3589
|
-
INVALID_FIELD_VALUE = "AVES_102",
|
|
3590
|
-
INVALID_DATE_FORMAT = "AVES_103",
|
|
3591
|
-
BOOKING_NOT_FOUND = "AVES_200",
|
|
3592
|
-
BOOKING_ALREADY_CANCELLED = "AVES_201",
|
|
3593
|
-
INVALID_BOOKING_STATUS = "AVES_202",
|
|
3594
|
-
PAYMENT_FAILED = "AVES_203",
|
|
3595
|
-
INSUFFICIENT_INVENTORY = "AVES_204",
|
|
3596
|
-
INTERNAL_SERVER_ERROR = "AVES_500",
|
|
3597
|
-
SERVICE_UNAVAILABLE = "AVES_501",
|
|
3598
|
-
TIMEOUT = "AVES_502",
|
|
3599
|
-
RATE_LIMIT_EXCEEDED = "AVES_503"
|
|
3600
|
-
}
|
|
3601
|
-
declare enum InsertCriteria {
|
|
3602
|
-
INSERT = "INSERT",
|
|
3603
|
-
UPDATE = "UPDATE",
|
|
3604
|
-
UPSERT = "UPSERT"
|
|
3605
|
-
}
|
|
3606
|
-
interface AvesRequestRoot<TBody> {
|
|
3607
|
-
Request: {
|
|
3608
|
-
RqHeader: RqHeader;
|
|
3609
|
-
Body: TBody;
|
|
3610
|
-
};
|
|
3611
|
-
}
|
|
3612
|
-
interface AvesResponseRoot<TBody> {
|
|
3613
|
-
Response: {
|
|
3614
|
-
RsStatus: RsStatus;
|
|
3615
|
-
Body?: TBody;
|
|
3616
|
-
};
|
|
3617
|
-
}
|
|
3618
|
-
interface AvesXmlResponse {
|
|
3619
|
-
Response?: {
|
|
3620
|
-
RsStatus?: {
|
|
3621
|
-
'@Status'?: AvesStatus;
|
|
3622
|
-
ErrorCode?: string;
|
|
3623
|
-
ErrorDescription?: string;
|
|
3624
|
-
Warnings?: {
|
|
3625
|
-
Warning: string | string[];
|
|
3626
|
-
};
|
|
3627
|
-
};
|
|
3628
|
-
};
|
|
3629
|
-
}
|
|
3630
|
-
interface HttpError extends Error {
|
|
3631
|
-
response?: {
|
|
3632
|
-
status: number;
|
|
3633
|
-
statusText: string;
|
|
3634
|
-
data?: any;
|
|
3635
|
-
headers?: Record<string, string>;
|
|
3636
|
-
config?: {
|
|
3637
|
-
url?: string;
|
|
3638
|
-
method?: string;
|
|
3639
|
-
timeout?: number;
|
|
3640
|
-
headers?: Record<string, string>;
|
|
3641
|
-
};
|
|
3642
|
-
};
|
|
3643
|
-
request?: {
|
|
3644
|
-
path?: string;
|
|
3645
|
-
method?: string;
|
|
3646
|
-
headers?: Record<string, string>;
|
|
3647
|
-
timeout?: number;
|
|
3648
|
-
data?: any;
|
|
3649
|
-
};
|
|
3650
|
-
config?: {
|
|
3651
|
-
url?: string;
|
|
3652
|
-
method?: string;
|
|
3653
|
-
timeout?: number;
|
|
3654
|
-
headers?: Record<string, string>;
|
|
3655
|
-
baseURL?: string;
|
|
3656
|
-
params?: Record<string, any>;
|
|
3657
|
-
};
|
|
3658
|
-
code?: string;
|
|
3659
|
-
isAxiosError?: boolean;
|
|
3660
|
-
}
|
|
3661
|
-
type LanguageCode = '01' | '02';
|
|
3662
|
-
interface AvesSdkConfig {
|
|
3663
|
-
baseUrl: string;
|
|
3664
|
-
hostId: string;
|
|
3665
|
-
xtoken: string;
|
|
3666
|
-
languageCode?: LanguageCode;
|
|
3667
|
-
timeout?: number;
|
|
3668
|
-
}
|
|
3669
|
-
|
|
3670
|
-
declare class AvesModule {
|
|
3671
|
-
static readonly MODULE_NAME = "AvesModule";
|
|
3672
|
-
static readonly VERSION = "1.0.0";
|
|
3673
|
-
static forRoot(config: AvesSdkConfig): DynamicModule;
|
|
3674
|
-
static forRootAsync(options: AvesModuleAsyncOptions): DynamicModule;
|
|
3675
|
-
private static createXmlHttpClientProvider;
|
|
3676
|
-
private static createAsyncProviders;
|
|
3677
|
-
private static validateConfig;
|
|
3678
|
-
}
|
|
3679
|
-
interface AvesOptionsFactory {
|
|
3680
|
-
createAvesOptions(): Promise<AvesSdkConfig> | AvesSdkConfig;
|
|
3681
|
-
}
|
|
3682
|
-
interface AvesModuleAsyncOptions extends Pick<ModuleMetadata, 'imports'> {
|
|
3683
|
-
useExisting?: Type<AvesOptionsFactory>;
|
|
3684
|
-
useClass?: Type<AvesOptionsFactory>;
|
|
3685
|
-
useFactory?: (...args: any[]) => Promise<AvesSdkConfig> | AvesSdkConfig;
|
|
3686
|
-
inject?: (string | symbol | Type<any>)[];
|
|
3687
|
-
}
|
|
3688
|
-
|
|
3689
|
-
interface IXmlHttpClient {
|
|
3690
|
-
postXml<TRequest extends object, TResponse = unknown>(endpoint: string, rootElementName: string, request: TRequest, config?: AxiosRequestConfig): Promise<TResponse>;
|
|
3691
|
-
}
|
|
3692
|
-
declare class XmlHttpClient implements IXmlHttpClient {
|
|
3693
|
-
private readonly config;
|
|
3694
|
-
private readonly httpClient;
|
|
3695
|
-
private readonly xmlBuilder;
|
|
3696
|
-
private readonly xmlParser;
|
|
3697
|
-
constructor(config: AvesSdkConfig);
|
|
3698
|
-
postXml<TRequest extends object, TResponse = unknown>(endpoint: string, rootElementName: string, request: TRequest, config?: AxiosRequestConfig): Promise<TResponse>;
|
|
3699
|
-
}
|
|
3700
|
-
|
|
3701
2183
|
declare class AvesService {
|
|
3702
2184
|
private readonly config;
|
|
3703
2185
|
private readonly http;
|
|
@@ -3736,426 +2218,6 @@ declare class AvesService {
|
|
|
3736
2218
|
printBookingDocument(payload: PrintBookingDocumentRQ): Promise<AvesResponseRoot<PrintBookingDocumentRS>>;
|
|
3737
2219
|
}
|
|
3738
2220
|
|
|
3739
|
-
declare const AVES_CONFIG_NAMESPACE = "aves";
|
|
3740
|
-
interface AvesEnvConfig {
|
|
3741
|
-
AVES_BASE_URL: string;
|
|
3742
|
-
AVES_HOST_ID: string;
|
|
3743
|
-
AVES_XTOKEN: string;
|
|
3744
|
-
AVES_LANGUAGE_CODE?: string;
|
|
3745
|
-
AVES_TIMEOUT?: string;
|
|
3746
|
-
}
|
|
3747
|
-
declare const avesConfig: (() => {
|
|
3748
|
-
baseUrl: string;
|
|
3749
|
-
hostId: string;
|
|
3750
|
-
xtoken: string;
|
|
3751
|
-
languageCode: string | undefined;
|
|
3752
|
-
timeout: number | undefined;
|
|
3753
|
-
}) & _nestjs_config.ConfigFactoryKeyHost<{
|
|
3754
|
-
baseUrl: string;
|
|
3755
|
-
hostId: string;
|
|
3756
|
-
xtoken: string;
|
|
3757
|
-
languageCode: string | undefined;
|
|
3758
|
-
timeout: number | undefined;
|
|
3759
|
-
}>;
|
|
3760
|
-
type AvesRegisteredConfig = ReturnType<typeof avesConfig>;
|
|
3761
|
-
|
|
3762
|
-
declare const RootElementNames: {
|
|
3763
|
-
readonly SEARCH_MASTER_RECORD: "SearchMasterRecordRQ";
|
|
3764
|
-
readonly MANAGE_MASTER_RECORD: "ManageMasterRecordRQ";
|
|
3765
|
-
readonly BOOK_FILE: "BookFileRQ";
|
|
3766
|
-
readonly MODI_FILE_HEADER: "ModiFileHeaderRQ";
|
|
3767
|
-
readonly MOD_FILE_SERVICES: "ModFileServicesRQ";
|
|
3768
|
-
readonly SET_STATUS: "SetStatusRQ";
|
|
3769
|
-
readonly SET_STATUS_SERVICE: "SetStatusServiceRQ";
|
|
3770
|
-
readonly CANCEL_FILE: "CancelFileRQ";
|
|
3771
|
-
readonly FILE_PAYMENT_LIST: "FilePaymentListRQ";
|
|
3772
|
-
readonly PRINT_BOOKING_DOCUMENT: "PrintBookingDocumentRQ";
|
|
3773
|
-
};
|
|
3774
|
-
type RootElementName = (typeof RootElementNames)[keyof typeof RootElementNames];
|
|
3775
|
-
|
|
3776
|
-
declare const AvesEndpoints: {
|
|
3777
|
-
readonly SEARCH_MASTER_RECORDS: "/interop/masterRecords/v2/rest/Search";
|
|
3778
|
-
readonly INSERT_OR_UPDATE_MASTER_RECORD: "/interop/masterRecords/v2/rest/InsertOrUpdate";
|
|
3779
|
-
readonly CREATE_BOOKING_FILE: "/interop/booking/v2/rest/CreateBookingFile";
|
|
3780
|
-
readonly MOD_BOOKING_FILE_HEADER: "/interop/booking/v2/rest/ModBookingFileHeader";
|
|
3781
|
-
readonly MOD_BOOKING_FILE_SERVICES: "/interop/booking/v2/rest/ModBookingFileServices";
|
|
3782
|
-
readonly SET_BOOKING_FILE_STATUS: "/interop/booking/v2/rest/SetBookingFileStatus";
|
|
3783
|
-
readonly SET_BOOKING_FILE_SERVICE_STATUS: "/interop/booking/v2/rest/SetBookingFileServiceStatus";
|
|
3784
|
-
readonly CANCEL_BOOKING_FILE: "/interop/booking/v2/rest/CancelBookingFile";
|
|
3785
|
-
readonly INSERT_FILE_PAYMENT_LIST: "/interop/booking/v2/rest/InsertFilePaymentList";
|
|
3786
|
-
readonly PRINT_BOOKING_DOCUMENT: "/interop/document/v2/rest/PrintBookingDocument";
|
|
3787
|
-
};
|
|
3788
|
-
type AvesEndpoint = (typeof AvesEndpoints)[keyof typeof AvesEndpoints];
|
|
3789
|
-
|
|
3790
|
-
declare const AVES_SDK_CONFIG: unique symbol;
|
|
3791
|
-
declare const XML_HTTP_CLIENT: unique symbol;
|
|
3792
|
-
|
|
3793
|
-
declare const LanguageCodeValidation: z.ZodEnum<{
|
|
3794
|
-
"01": "01";
|
|
3795
|
-
"02": "02";
|
|
3796
|
-
}>;
|
|
3797
|
-
declare const configValidationSchema: z.ZodObject<{
|
|
3798
|
-
baseUrl: z.ZodURL;
|
|
3799
|
-
hostId: z.ZodString;
|
|
3800
|
-
xtoken: z.ZodString;
|
|
3801
|
-
languageCode: z.ZodOptional<z.ZodEnum<{
|
|
3802
|
-
"01": "01";
|
|
3803
|
-
"02": "02";
|
|
3804
|
-
}>>;
|
|
3805
|
-
timeout: z.ZodOptional<z.ZodNumber>;
|
|
3806
|
-
}, z.core.$strip>;
|
|
3807
|
-
declare const AddressValidation: z.ZodObject<{
|
|
3808
|
-
'@Type': z.ZodOptional<z.ZodEnum<{
|
|
3809
|
-
HOME: "HOME";
|
|
3810
|
-
WORK: "WORK";
|
|
3811
|
-
BILLING: "BILLING";
|
|
3812
|
-
DELIVERY: "DELIVERY";
|
|
3813
|
-
}>>;
|
|
3814
|
-
Street: z.ZodOptional<z.ZodString>;
|
|
3815
|
-
City: z.ZodOptional<z.ZodString>;
|
|
3816
|
-
State: z.ZodOptional<z.ZodString>;
|
|
3817
|
-
PostalCode: z.ZodOptional<z.ZodString>;
|
|
3818
|
-
Country: z.ZodOptional<z.ZodString>;
|
|
3819
|
-
}, z.core.$strip>;
|
|
3820
|
-
declare const ContactInfoValidation: z.ZodObject<{
|
|
3821
|
-
Phone: z.ZodOptional<z.ZodObject<{
|
|
3822
|
-
'@Type': z.ZodOptional<z.ZodEnum<{
|
|
3823
|
-
HOME: "HOME";
|
|
3824
|
-
WORK: "WORK";
|
|
3825
|
-
MOBILE: "MOBILE";
|
|
3826
|
-
FAX: "FAX";
|
|
3827
|
-
}>>;
|
|
3828
|
-
'@Number': z.ZodString;
|
|
3829
|
-
}, z.core.$strip>>;
|
|
3830
|
-
Email: z.ZodOptional<z.ZodObject<{
|
|
3831
|
-
'@Type': z.ZodOptional<z.ZodEnum<{
|
|
3832
|
-
HOME: "HOME";
|
|
3833
|
-
WORK: "WORK";
|
|
3834
|
-
}>>;
|
|
3835
|
-
'@Address': z.ZodString;
|
|
3836
|
-
}, z.core.$strip>>;
|
|
3837
|
-
}, z.core.$strip>;
|
|
3838
|
-
declare const PassengerValidation: z.ZodObject<{
|
|
3839
|
-
'@PassengerID': z.ZodString;
|
|
3840
|
-
'@Type': z.ZodEnum<{
|
|
3841
|
-
ADT: "ADT";
|
|
3842
|
-
CHD: "CHD";
|
|
3843
|
-
INF: "INF";
|
|
3844
|
-
}>;
|
|
3845
|
-
'@Title': z.ZodOptional<z.ZodEnum<{
|
|
3846
|
-
MR: "MR";
|
|
3847
|
-
MRS: "MRS";
|
|
3848
|
-
MS: "MS";
|
|
3849
|
-
DR: "DR";
|
|
3850
|
-
PROF: "PROF";
|
|
3851
|
-
}>>;
|
|
3852
|
-
FirstName: z.ZodString;
|
|
3853
|
-
LastName: z.ZodString;
|
|
3854
|
-
DateOfBirth: z.ZodOptional<z.ZodDate>;
|
|
3855
|
-
Gender: z.ZodOptional<z.ZodEnum<{
|
|
3856
|
-
M: "M";
|
|
3857
|
-
F: "F";
|
|
3858
|
-
}>>;
|
|
3859
|
-
Nationality: z.ZodOptional<z.ZodString>;
|
|
3860
|
-
Address: z.ZodOptional<z.ZodObject<{
|
|
3861
|
-
'@Type': z.ZodOptional<z.ZodEnum<{
|
|
3862
|
-
HOME: "HOME";
|
|
3863
|
-
WORK: "WORK";
|
|
3864
|
-
BILLING: "BILLING";
|
|
3865
|
-
DELIVERY: "DELIVERY";
|
|
3866
|
-
}>>;
|
|
3867
|
-
Street: z.ZodOptional<z.ZodString>;
|
|
3868
|
-
City: z.ZodOptional<z.ZodString>;
|
|
3869
|
-
State: z.ZodOptional<z.ZodString>;
|
|
3870
|
-
PostalCode: z.ZodOptional<z.ZodString>;
|
|
3871
|
-
Country: z.ZodOptional<z.ZodString>;
|
|
3872
|
-
}, z.core.$strip>>;
|
|
3873
|
-
ContactInfo: z.ZodOptional<z.ZodObject<{
|
|
3874
|
-
Phone: z.ZodOptional<z.ZodObject<{
|
|
3875
|
-
'@Type': z.ZodOptional<z.ZodEnum<{
|
|
3876
|
-
HOME: "HOME";
|
|
3877
|
-
WORK: "WORK";
|
|
3878
|
-
MOBILE: "MOBILE";
|
|
3879
|
-
FAX: "FAX";
|
|
3880
|
-
}>>;
|
|
3881
|
-
'@Number': z.ZodString;
|
|
3882
|
-
}, z.core.$strip>>;
|
|
3883
|
-
Email: z.ZodOptional<z.ZodObject<{
|
|
3884
|
-
'@Type': z.ZodOptional<z.ZodEnum<{
|
|
3885
|
-
HOME: "HOME";
|
|
3886
|
-
WORK: "WORK";
|
|
3887
|
-
}>>;
|
|
3888
|
-
'@Address': z.ZodString;
|
|
3889
|
-
}, z.core.$strip>>;
|
|
3890
|
-
}, z.core.$strip>>;
|
|
3891
|
-
}, z.core.$strip>;
|
|
3892
|
-
declare const ServiceValidation: z.ZodObject<{
|
|
3893
|
-
'@ServiceID': z.ZodString;
|
|
3894
|
-
'@Type': z.ZodEnum<{
|
|
3895
|
-
FLIGHT: "FLIGHT";
|
|
3896
|
-
HOTEL: "HOTEL";
|
|
3897
|
-
CAR: "CAR";
|
|
3898
|
-
TRANSFER: "TRANSFER";
|
|
3899
|
-
INSURANCE: "INSURANCE";
|
|
3900
|
-
}>;
|
|
3901
|
-
'@Status': z.ZodEnum<{
|
|
3902
|
-
CONFIRMED: "CONFIRMED";
|
|
3903
|
-
PENDING: "PENDING";
|
|
3904
|
-
CANCELLED: "CANCELLED";
|
|
3905
|
-
}>;
|
|
3906
|
-
ServiceDetails: z.ZodObject<{
|
|
3907
|
-
Code: z.ZodOptional<z.ZodString>;
|
|
3908
|
-
Name: z.ZodOptional<z.ZodString>;
|
|
3909
|
-
Description: z.ZodOptional<z.ZodString>;
|
|
3910
|
-
StartDate: z.ZodOptional<z.ZodString>;
|
|
3911
|
-
EndDate: z.ZodOptional<z.ZodString>;
|
|
3912
|
-
Price: z.ZodOptional<z.ZodObject<{
|
|
3913
|
-
'@Currency': z.ZodString;
|
|
3914
|
-
'@Amount': z.ZodNumber;
|
|
3915
|
-
}, z.core.$strip>>;
|
|
3916
|
-
}, z.core.$strip>;
|
|
3917
|
-
}, z.core.$strip>;
|
|
3918
|
-
declare const PaymentValidation: z.ZodObject<{
|
|
3919
|
-
'@PaymentID': z.ZodString;
|
|
3920
|
-
'@Type': z.ZodEnum<{
|
|
3921
|
-
CREDIT_CARD: "CREDIT_CARD";
|
|
3922
|
-
DEBIT_CARD: "DEBIT_CARD";
|
|
3923
|
-
BANK_TRANSFER: "BANK_TRANSFER";
|
|
3924
|
-
CASH: "CASH";
|
|
3925
|
-
}>;
|
|
3926
|
-
'@Status': z.ZodEnum<{
|
|
3927
|
-
CONFIRMED: "CONFIRMED";
|
|
3928
|
-
PENDING: "PENDING";
|
|
3929
|
-
FAILED: "FAILED";
|
|
3930
|
-
}>;
|
|
3931
|
-
Amount: z.ZodObject<{
|
|
3932
|
-
'@Currency': z.ZodString;
|
|
3933
|
-
'@Amount': z.ZodNumber;
|
|
3934
|
-
}, z.core.$strip>;
|
|
3935
|
-
PaymentDetails: z.ZodOptional<z.ZodObject<{
|
|
3936
|
-
CardNumber: z.ZodOptional<z.ZodString>;
|
|
3937
|
-
ExpiryDate: z.ZodOptional<z.ZodString>;
|
|
3938
|
-
CardHolderName: z.ZodOptional<z.ZodString>;
|
|
3939
|
-
}, z.core.$strip>>;
|
|
3940
|
-
}, z.core.$strip>;
|
|
3941
|
-
declare const SearchMasterRecordRQValidation: z.ZodObject<{
|
|
3942
|
-
SearchCriteria: z.ZodObject<{
|
|
3943
|
-
MasterRecordType: z.ZodEnum<{
|
|
3944
|
-
CUSTOMER: "CUSTOMER";
|
|
3945
|
-
SUPPLIER: "SUPPLIER";
|
|
3946
|
-
AGENT: "AGENT";
|
|
3947
|
-
}>;
|
|
3948
|
-
SearchFields: z.ZodObject<{
|
|
3949
|
-
Field: z.ZodArray<z.ZodObject<{
|
|
3950
|
-
'@Name': z.ZodString;
|
|
3951
|
-
'@Value': z.ZodString;
|
|
3952
|
-
'@Operator': z.ZodOptional<z.ZodEnum<{
|
|
3953
|
-
EQUALS: "EQUALS";
|
|
3954
|
-
CONTAINS: "CONTAINS";
|
|
3955
|
-
STARTS_WITH: "STARTS_WITH";
|
|
3956
|
-
ENDS_WITH: "ENDS_WITH";
|
|
3957
|
-
}>>;
|
|
3958
|
-
}, z.core.$strip>>;
|
|
3959
|
-
}, z.core.$strip>;
|
|
3960
|
-
Pagination: z.ZodOptional<z.ZodObject<{
|
|
3961
|
-
'@PageSize': z.ZodNumber;
|
|
3962
|
-
'@PageNumber': z.ZodNumber;
|
|
3963
|
-
}, z.core.$strip>>;
|
|
3964
|
-
}, z.core.$strip>;
|
|
3965
|
-
}, z.core.$strip>;
|
|
3966
|
-
declare const BookFileRQValidation: z.ZodObject<{
|
|
3967
|
-
BookingDetails: z.ZodObject<{
|
|
3968
|
-
'@BookingType': z.ZodEnum<{
|
|
3969
|
-
INDIVIDUAL: "INDIVIDUAL";
|
|
3970
|
-
GROUP: "GROUP";
|
|
3971
|
-
CORPORATE: "CORPORATE";
|
|
3972
|
-
}>;
|
|
3973
|
-
'@Priority': z.ZodEnum<{
|
|
3974
|
-
LOW: "LOW";
|
|
3975
|
-
NORMAL: "NORMAL";
|
|
3976
|
-
HIGH: "HIGH";
|
|
3977
|
-
URGENT: "URGENT";
|
|
3978
|
-
}>;
|
|
3979
|
-
CustomerInfo: z.ZodObject<{
|
|
3980
|
-
'@CustomerID': z.ZodOptional<z.ZodString>;
|
|
3981
|
-
CustomerDetails: z.ZodOptional<z.ZodAny>;
|
|
3982
|
-
}, z.core.$strip>;
|
|
3983
|
-
PassengerList: z.ZodObject<{
|
|
3984
|
-
Passenger: z.ZodArray<z.ZodObject<{
|
|
3985
|
-
'@PassengerID': z.ZodString;
|
|
3986
|
-
'@Type': z.ZodEnum<{
|
|
3987
|
-
ADT: "ADT";
|
|
3988
|
-
CHD: "CHD";
|
|
3989
|
-
INF: "INF";
|
|
3990
|
-
}>;
|
|
3991
|
-
'@Title': z.ZodOptional<z.ZodEnum<{
|
|
3992
|
-
MR: "MR";
|
|
3993
|
-
MRS: "MRS";
|
|
3994
|
-
MS: "MS";
|
|
3995
|
-
DR: "DR";
|
|
3996
|
-
PROF: "PROF";
|
|
3997
|
-
}>>;
|
|
3998
|
-
FirstName: z.ZodString;
|
|
3999
|
-
LastName: z.ZodString;
|
|
4000
|
-
DateOfBirth: z.ZodOptional<z.ZodDate>;
|
|
4001
|
-
Gender: z.ZodOptional<z.ZodEnum<{
|
|
4002
|
-
M: "M";
|
|
4003
|
-
F: "F";
|
|
4004
|
-
}>>;
|
|
4005
|
-
Nationality: z.ZodOptional<z.ZodString>;
|
|
4006
|
-
Address: z.ZodOptional<z.ZodObject<{
|
|
4007
|
-
'@Type': z.ZodOptional<z.ZodEnum<{
|
|
4008
|
-
HOME: "HOME";
|
|
4009
|
-
WORK: "WORK";
|
|
4010
|
-
BILLING: "BILLING";
|
|
4011
|
-
DELIVERY: "DELIVERY";
|
|
4012
|
-
}>>;
|
|
4013
|
-
Street: z.ZodOptional<z.ZodString>;
|
|
4014
|
-
City: z.ZodOptional<z.ZodString>;
|
|
4015
|
-
State: z.ZodOptional<z.ZodString>;
|
|
4016
|
-
PostalCode: z.ZodOptional<z.ZodString>;
|
|
4017
|
-
Country: z.ZodOptional<z.ZodString>;
|
|
4018
|
-
}, z.core.$strip>>;
|
|
4019
|
-
ContactInfo: z.ZodOptional<z.ZodObject<{
|
|
4020
|
-
Phone: z.ZodOptional<z.ZodObject<{
|
|
4021
|
-
'@Type': z.ZodOptional<z.ZodEnum<{
|
|
4022
|
-
HOME: "HOME";
|
|
4023
|
-
WORK: "WORK";
|
|
4024
|
-
MOBILE: "MOBILE";
|
|
4025
|
-
FAX: "FAX";
|
|
4026
|
-
}>>;
|
|
4027
|
-
'@Number': z.ZodString;
|
|
4028
|
-
}, z.core.$strip>>;
|
|
4029
|
-
Email: z.ZodOptional<z.ZodObject<{
|
|
4030
|
-
'@Type': z.ZodOptional<z.ZodEnum<{
|
|
4031
|
-
HOME: "HOME";
|
|
4032
|
-
WORK: "WORK";
|
|
4033
|
-
}>>;
|
|
4034
|
-
'@Address': z.ZodString;
|
|
4035
|
-
}, z.core.$strip>>;
|
|
4036
|
-
}, z.core.$strip>>;
|
|
4037
|
-
}, z.core.$strip>>;
|
|
4038
|
-
}, z.core.$strip>;
|
|
4039
|
-
SelectedServiceList: z.ZodObject<{
|
|
4040
|
-
Service: z.ZodArray<z.ZodObject<{
|
|
4041
|
-
'@ServiceID': z.ZodString;
|
|
4042
|
-
'@Type': z.ZodEnum<{
|
|
4043
|
-
FLIGHT: "FLIGHT";
|
|
4044
|
-
HOTEL: "HOTEL";
|
|
4045
|
-
CAR: "CAR";
|
|
4046
|
-
TRANSFER: "TRANSFER";
|
|
4047
|
-
INSURANCE: "INSURANCE";
|
|
4048
|
-
}>;
|
|
4049
|
-
'@Status': z.ZodEnum<{
|
|
4050
|
-
CONFIRMED: "CONFIRMED";
|
|
4051
|
-
PENDING: "PENDING";
|
|
4052
|
-
CANCELLED: "CANCELLED";
|
|
4053
|
-
}>;
|
|
4054
|
-
ServiceDetails: z.ZodObject<{
|
|
4055
|
-
Code: z.ZodOptional<z.ZodString>;
|
|
4056
|
-
Name: z.ZodOptional<z.ZodString>;
|
|
4057
|
-
Description: z.ZodOptional<z.ZodString>;
|
|
4058
|
-
StartDate: z.ZodOptional<z.ZodString>;
|
|
4059
|
-
EndDate: z.ZodOptional<z.ZodString>;
|
|
4060
|
-
Price: z.ZodOptional<z.ZodObject<{
|
|
4061
|
-
'@Currency': z.ZodString;
|
|
4062
|
-
'@Amount': z.ZodNumber;
|
|
4063
|
-
}, z.core.$strip>>;
|
|
4064
|
-
}, z.core.$strip>;
|
|
4065
|
-
}, z.core.$strip>>;
|
|
4066
|
-
}, z.core.$strip>;
|
|
4067
|
-
SpecialRequests: z.ZodOptional<z.ZodObject<{
|
|
4068
|
-
Request: z.ZodArray<z.ZodObject<{
|
|
4069
|
-
'@Type': z.ZodEnum<{
|
|
4070
|
-
OTHER: "OTHER";
|
|
4071
|
-
MEAL: "MEAL";
|
|
4072
|
-
SEAT: "SEAT";
|
|
4073
|
-
WHEELCHAIR: "WHEELCHAIR";
|
|
4074
|
-
}>;
|
|
4075
|
-
'@Description': z.ZodString;
|
|
4076
|
-
}, z.core.$strip>>;
|
|
4077
|
-
}, z.core.$strip>>;
|
|
4078
|
-
}, z.core.$strip>;
|
|
4079
|
-
}, z.core.$strip>;
|
|
4080
|
-
declare const CancelFileRQValidation: z.ZodObject<{
|
|
4081
|
-
'@BookingFileID': z.ZodString;
|
|
4082
|
-
CancellationDetails: z.ZodObject<{
|
|
4083
|
-
'@Reason': z.ZodEnum<{
|
|
4084
|
-
CUSTOMER_REQUEST: "CUSTOMER_REQUEST";
|
|
4085
|
-
NO_SHOW: "NO_SHOW";
|
|
4086
|
-
OPERATIONAL: "OPERATIONAL";
|
|
4087
|
-
OTHER: "OTHER";
|
|
4088
|
-
}>;
|
|
4089
|
-
'@Description': z.ZodOptional<z.ZodString>;
|
|
4090
|
-
RefundRequest: z.ZodOptional<z.ZodObject<{
|
|
4091
|
-
'@Amount': z.ZodNumber;
|
|
4092
|
-
'@Currency': z.ZodString;
|
|
4093
|
-
'@Method': z.ZodEnum<{
|
|
4094
|
-
CASH: "CASH";
|
|
4095
|
-
ORIGINAL_PAYMENT: "ORIGINAL_PAYMENT";
|
|
4096
|
-
CREDIT: "CREDIT";
|
|
4097
|
-
}>;
|
|
4098
|
-
}, z.core.$strip>>;
|
|
4099
|
-
}, z.core.$strip>;
|
|
4100
|
-
}, z.core.$strip>;
|
|
4101
|
-
declare const PrintBookingDocumentRQValidation: z.ZodObject<{
|
|
4102
|
-
'@BookingFileID': z.ZodString;
|
|
4103
|
-
DocumentRequest: z.ZodObject<{
|
|
4104
|
-
'@DocumentType': z.ZodEnum<{
|
|
4105
|
-
VOUCHER: "VOUCHER";
|
|
4106
|
-
INVOICE: "INVOICE";
|
|
4107
|
-
CONFIRMATION: "CONFIRMATION";
|
|
4108
|
-
TICKET: "TICKET";
|
|
4109
|
-
ALL: "ALL";
|
|
4110
|
-
}>;
|
|
4111
|
-
'@Format': z.ZodEnum<{
|
|
4112
|
-
PDF: "PDF";
|
|
4113
|
-
HTML: "HTML";
|
|
4114
|
-
XML: "XML";
|
|
4115
|
-
}>;
|
|
4116
|
-
'@Language': z.ZodOptional<z.ZodString>;
|
|
4117
|
-
DeliveryMethod: z.ZodOptional<z.ZodObject<{
|
|
4118
|
-
'@Type': z.ZodEnum<{
|
|
4119
|
-
EMAIL: "EMAIL";
|
|
4120
|
-
SMS: "SMS";
|
|
4121
|
-
DOWNLOAD: "DOWNLOAD";
|
|
4122
|
-
}>;
|
|
4123
|
-
'@Address': z.ZodOptional<z.ZodString>;
|
|
4124
|
-
}, z.core.$strip>>;
|
|
4125
|
-
}, z.core.$strip>;
|
|
4126
|
-
}, z.core.$strip>;
|
|
4127
|
-
type AddressValidationType = z.infer<typeof AddressValidation>;
|
|
4128
|
-
type ContactInfoValidationType = z.infer<typeof ContactInfoValidation>;
|
|
4129
|
-
type PassengerValidationType = z.infer<typeof PassengerValidation>;
|
|
4130
|
-
type ServiceValidationType = z.infer<typeof ServiceValidation>;
|
|
4131
|
-
type PaymentValidationType = z.infer<typeof PaymentValidation>;
|
|
4132
|
-
type SearchMasterRecordRQValidationType = z.infer<typeof SearchMasterRecordRQValidation>;
|
|
4133
|
-
type BookFileRQValidationType = z.infer<typeof BookFileRQValidation>;
|
|
4134
|
-
type CancelFileRQValidationType = z.infer<typeof CancelFileRQValidation>;
|
|
4135
|
-
type PrintBookingDocumentRQValidationType = z.infer<typeof PrintBookingDocumentRQValidation>;
|
|
4136
|
-
|
|
4137
|
-
declare class AvesValidator<T = unknown> {
|
|
4138
|
-
private schema;
|
|
4139
|
-
constructor(schema: ZodSchema<T>);
|
|
4140
|
-
validate(data: unknown): T;
|
|
4141
|
-
asyncValidate(data: unknown): Promise<T>;
|
|
4142
|
-
safeValidateAndParse(data: unknown): {
|
|
4143
|
-
success: false;
|
|
4144
|
-
error: ZodError;
|
|
4145
|
-
} | z.ZodSafeParseSuccess<T>;
|
|
4146
|
-
safeAsyncValidateAndParse(data: unknown): Promise<{
|
|
4147
|
-
success: true;
|
|
4148
|
-
data: T;
|
|
4149
|
-
} | {
|
|
4150
|
-
success: false;
|
|
4151
|
-
error: ZodError;
|
|
4152
|
-
}>;
|
|
4153
|
-
getErrorMessage(error: ZodError, separator?: string): string;
|
|
4154
|
-
private createError;
|
|
4155
|
-
static withSchema<U>(schema: ZodSchema<U>): AvesValidator<U>;
|
|
4156
|
-
}
|
|
4157
|
-
declare function createAvesValidator<T>(schema: ZodSchema<T>): AvesValidator<T>;
|
|
4158
|
-
|
|
4159
2221
|
declare class AvesException extends Error {
|
|
4160
2222
|
readonly code: string;
|
|
4161
2223
|
readonly severity: AvesSeverity;
|
|
@@ -4190,4 +2252,4 @@ declare class AvesErrorHandler {
|
|
|
4190
2252
|
private isAvesXmlResponse;
|
|
4191
2253
|
}
|
|
4192
2254
|
|
|
4193
|
-
export {
|
|
2255
|
+
export { type AddPaymentRequest, type AddressType, AvesErrorHandler, AvesException, AvesModule, type AvesModuleAsyncOptions, type AvesOptionsFactory, AvesService, type BookingPassenger, type BookingPayment, type BookingResponse, type BookingService, BookingStatusType, type BookingStatusTypeValue, type BookingType, type CancelBookingRequest, CancelReasonType, type CancelReasonTypeValue, type CancelResponseData, type CommunicationMethodType, type ContactType, type CreateBookingRequest, type Customer, type CustomerAddress, type CustomerContact, type CustomerSearchResult, CustomerStatusType, type CustomerStatusTypeValue, CustomerType, type CustomerTypeValue, DeliveryMethodType, type DeliveryMethodTypeValue, DeliveryStatusType, type DeliveryStatusTypeValue, DocumentFormatType, type DocumentFormatTypeValue, type DocumentPrintResult, DocumentType, type DocumentTypeValue, type EmailType, GenderType, type GenderTypeValue, type OperationResponse, PassengerType, type PassengerTypeValue, type PaymentResponseData, PaymentStatusType, type PaymentStatusTypeValue, PaymentType, type PaymentTypeValue, type Price, PricingItemType, type PricingItemTypeValue, type PrintDocumentRequest, type PrintedDocument, type PriorityType, RefundMethodType, type RefundMethodTypeValue, type SearchCustomerRequest, type SearchOperatorType, ServiceStatusType, type ServiceStatusTypeValue, ServiceType, type ServiceTypeValue, type SpecialRequestType, type TitleType };
|