aves-sdk 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +167 -321
- package/dist/index.cjs +1 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.build.d.cts +22 -0
- package/dist/tsconfig.build.d.ts +22 -0
- package/package.json +7 -35
- package/dist/index.d.cts +0 -2255
- package/dist/index.d.ts +0 -2255
package/dist/index.d.ts
DELETED
|
@@ -1,2255 +0,0 @@
|
|
|
1
|
-
import { DynamicModule, ModuleMetadata, Type } from '@nestjs/common';
|
|
2
|
-
import { AxiosRequestConfig } from 'axios';
|
|
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
|
-
}
|
|
87
|
-
|
|
88
|
-
declare const PassengerType: {
|
|
89
|
-
readonly ADULT: "adult";
|
|
90
|
-
readonly CHILD: "child";
|
|
91
|
-
readonly INFANT: "infant";
|
|
92
|
-
readonly SENIOR: "senior";
|
|
93
|
-
};
|
|
94
|
-
declare const GenderType: {
|
|
95
|
-
readonly MALE: "male";
|
|
96
|
-
readonly FEMALE: "female";
|
|
97
|
-
};
|
|
98
|
-
declare const ServiceType: {
|
|
99
|
-
readonly FLIGHT: "flight";
|
|
100
|
-
readonly HOTEL: "hotel";
|
|
101
|
-
readonly CAR: "car";
|
|
102
|
-
readonly TRANSFER: "transfer";
|
|
103
|
-
readonly INSURANCE: "insurance";
|
|
104
|
-
};
|
|
105
|
-
declare const ServiceStatusType: {
|
|
106
|
-
readonly CONFIRMED: "confirmed";
|
|
107
|
-
readonly PENDING: "pending";
|
|
108
|
-
readonly CANCELLED: "cancelled";
|
|
109
|
-
};
|
|
110
|
-
declare const PaymentType: {
|
|
111
|
-
readonly CREDIT_CARD: "credit_card";
|
|
112
|
-
readonly DEBIT_CARD: "debit_card";
|
|
113
|
-
readonly BANK_TRANSFER: "bank_transfer";
|
|
114
|
-
readonly CASH: "cash";
|
|
115
|
-
};
|
|
116
|
-
declare const PaymentStatusType: {
|
|
117
|
-
readonly PENDING: "pending";
|
|
118
|
-
readonly CONFIRMED: "confirmed";
|
|
119
|
-
readonly FAILED: "failed";
|
|
120
|
-
};
|
|
121
|
-
declare const CustomerType: {
|
|
122
|
-
readonly CUSTOMER: "customer";
|
|
123
|
-
readonly SUPPLIER: "supplier";
|
|
124
|
-
readonly VOUCHER: "voucher";
|
|
125
|
-
readonly SUPPLIER_VOUCHER: "supplier_voucher";
|
|
126
|
-
};
|
|
127
|
-
declare const CustomerStatusType: {
|
|
128
|
-
readonly ENABLED: "enabled";
|
|
129
|
-
readonly WARNING: "warning";
|
|
130
|
-
readonly BLACKLISTED: "blacklisted";
|
|
131
|
-
readonly DISABLED: "disabled";
|
|
132
|
-
};
|
|
133
|
-
declare const BookingStatusType: {
|
|
134
|
-
readonly QUOTATION: "quotation";
|
|
135
|
-
readonly WORK_IN_PROGRESS: "work_in_progress";
|
|
136
|
-
readonly CONFIRMED: "confirmed";
|
|
137
|
-
readonly OPTIONED: "optioned";
|
|
138
|
-
readonly NULLIFIED: "nullified";
|
|
139
|
-
readonly CANCELED: "canceled";
|
|
140
|
-
};
|
|
141
|
-
declare const DocumentType: {
|
|
142
|
-
readonly VISA_REQUEST: "visa_request";
|
|
143
|
-
readonly TRAVEL_INFORMATION: "travel_information";
|
|
144
|
-
readonly VOUCHER: "voucher";
|
|
145
|
-
readonly BOOKING_CONTRACT: "booking_contract";
|
|
146
|
-
readonly BOOKING_CONFIRMATION: "booking_confirmation";
|
|
147
|
-
readonly SUPPLIER_SERVICE_LIST: "supplier_service_list";
|
|
148
|
-
readonly INVOICE: "invoice";
|
|
149
|
-
readonly PROFORMA_INVOICE: "proforma_invoice";
|
|
150
|
-
readonly ADEGUAMENTO: "adeguamento";
|
|
151
|
-
readonly RESERVATION_FORM: "reservation_form";
|
|
152
|
-
readonly OPEN_XML: "open_xml";
|
|
153
|
-
readonly SALES_INVOICE: "sales_invoice";
|
|
154
|
-
readonly TICKETING_TMASTER: "ticketing_tmaster";
|
|
155
|
-
readonly SUMMARY_FORM: "summary_form";
|
|
156
|
-
};
|
|
157
|
-
declare const CancelReasonType: {
|
|
158
|
-
readonly CUSTOMER_REQUEST: "customer_request";
|
|
159
|
-
readonly NO_SHOW: "no_show";
|
|
160
|
-
readonly OPERATIONAL: "operational";
|
|
161
|
-
readonly OTHER: "other";
|
|
162
|
-
};
|
|
163
|
-
declare const RefundMethodType: {
|
|
164
|
-
readonly ORIGINAL_PAYMENT: "original_payment";
|
|
165
|
-
readonly CREDIT: "credit";
|
|
166
|
-
readonly CASH: "cash";
|
|
167
|
-
};
|
|
168
|
-
declare const PricingItemType: {
|
|
169
|
-
readonly SERVICE: "service";
|
|
170
|
-
readonly TAX: "tax";
|
|
171
|
-
readonly FEE: "fee";
|
|
172
|
-
readonly DISCOUNT: "discount";
|
|
173
|
-
};
|
|
174
|
-
declare const DeliveryStatusType: {
|
|
175
|
-
readonly SENT: "sent";
|
|
176
|
-
readonly PENDING: "pending";
|
|
177
|
-
readonly FAILED: "failed";
|
|
178
|
-
};
|
|
179
|
-
type PassengerTypeValue = (typeof PassengerType)[keyof typeof PassengerType];
|
|
180
|
-
type GenderTypeValue = (typeof GenderType)[keyof typeof GenderType];
|
|
181
|
-
type ServiceTypeValue = (typeof ServiceType)[keyof typeof ServiceType];
|
|
182
|
-
type ServiceStatusTypeValue = (typeof ServiceStatusType)[keyof typeof ServiceStatusType];
|
|
183
|
-
type PaymentTypeValue = (typeof PaymentType)[keyof typeof PaymentType];
|
|
184
|
-
type PaymentStatusTypeValue = (typeof PaymentStatusType)[keyof typeof PaymentStatusType];
|
|
185
|
-
type CustomerTypeValue = (typeof CustomerType)[keyof typeof CustomerType];
|
|
186
|
-
type CustomerStatusTypeValue = (typeof CustomerStatusType)[keyof typeof CustomerStatusType];
|
|
187
|
-
type BookingStatusTypeValue = (typeof BookingStatusType)[keyof typeof BookingStatusType];
|
|
188
|
-
type DocumentTypeValue = (typeof DocumentType)[keyof typeof DocumentType];
|
|
189
|
-
type DocumentFormatTypeValue = (typeof DocumentFormatType)[keyof typeof DocumentFormatType];
|
|
190
|
-
type DeliveryMethodTypeValue = (typeof DeliveryMethodType)[keyof typeof DeliveryMethodType];
|
|
191
|
-
type CancelReasonTypeValue = (typeof CancelReasonType)[keyof typeof CancelReasonType];
|
|
192
|
-
type RefundMethodTypeValue = (typeof RefundMethodType)[keyof typeof RefundMethodType];
|
|
193
|
-
type PricingItemTypeValue = (typeof PricingItemType)[keyof typeof PricingItemType];
|
|
194
|
-
type DeliveryStatusTypeValue = (typeof DeliveryStatusType)[keyof typeof DeliveryStatusType];
|
|
195
|
-
declare const addressTypeSchema: z.ZodEnum<{
|
|
196
|
-
home: "home";
|
|
197
|
-
work: "work";
|
|
198
|
-
billing: "billing";
|
|
199
|
-
delivery: "delivery";
|
|
200
|
-
}>;
|
|
201
|
-
declare const contactTypeSchema: z.ZodEnum<{
|
|
202
|
-
home: "home";
|
|
203
|
-
work: "work";
|
|
204
|
-
mobile: "mobile";
|
|
205
|
-
fax: "fax";
|
|
206
|
-
}>;
|
|
207
|
-
declare const emailTypeSchema: z.ZodEnum<{
|
|
208
|
-
home: "home";
|
|
209
|
-
work: "work";
|
|
210
|
-
}>;
|
|
211
|
-
declare const titleTypeSchema: z.ZodEnum<{
|
|
212
|
-
mr: "mr";
|
|
213
|
-
mrs: "mrs";
|
|
214
|
-
ms: "ms";
|
|
215
|
-
dr: "dr";
|
|
216
|
-
prof: "prof";
|
|
217
|
-
}>;
|
|
218
|
-
declare const searchOperatorTypeSchema: z.ZodEnum<{
|
|
219
|
-
equals: "equals";
|
|
220
|
-
contains: "contains";
|
|
221
|
-
starts_with: "starts_with";
|
|
222
|
-
ends_with: "ends_with";
|
|
223
|
-
}>;
|
|
224
|
-
declare const bookingTypeSchema: z.ZodEnum<{
|
|
225
|
-
individual: "individual";
|
|
226
|
-
group: "group";
|
|
227
|
-
corporate: "corporate";
|
|
228
|
-
}>;
|
|
229
|
-
declare const priorityTypeSchema: z.ZodEnum<{
|
|
230
|
-
low: "low";
|
|
231
|
-
normal: "normal";
|
|
232
|
-
high: "high";
|
|
233
|
-
urgent: "urgent";
|
|
234
|
-
}>;
|
|
235
|
-
declare const specialRequestTypeSchema: z.ZodEnum<{
|
|
236
|
-
other: "other";
|
|
237
|
-
meal: "meal";
|
|
238
|
-
seat: "seat";
|
|
239
|
-
wheelchair: "wheelchair";
|
|
240
|
-
}>;
|
|
241
|
-
declare const communicationMethodTypeSchema: z.ZodEnum<{
|
|
242
|
-
email: "email";
|
|
243
|
-
sms: "sms";
|
|
244
|
-
phone: "phone";
|
|
245
|
-
}>;
|
|
246
|
-
declare const customerAddressSchema: z.ZodObject<{
|
|
247
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
248
|
-
home: "home";
|
|
249
|
-
work: "work";
|
|
250
|
-
billing: "billing";
|
|
251
|
-
delivery: "delivery";
|
|
252
|
-
}>>;
|
|
253
|
-
street: z.ZodOptional<z.ZodString>;
|
|
254
|
-
city: z.ZodOptional<z.ZodString>;
|
|
255
|
-
state: z.ZodOptional<z.ZodString>;
|
|
256
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
257
|
-
country: z.ZodOptional<z.ZodString>;
|
|
258
|
-
}, z.core.$strip>;
|
|
259
|
-
declare const customerContactSchema: z.ZodObject<{
|
|
260
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
261
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
262
|
-
home: "home";
|
|
263
|
-
work: "work";
|
|
264
|
-
mobile: "mobile";
|
|
265
|
-
fax: "fax";
|
|
266
|
-
}>>;
|
|
267
|
-
number: z.ZodString;
|
|
268
|
-
}, z.core.$strip>>;
|
|
269
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
270
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
271
|
-
home: "home";
|
|
272
|
-
work: "work";
|
|
273
|
-
}>>;
|
|
274
|
-
address: z.ZodString;
|
|
275
|
-
}, z.core.$strip>>;
|
|
276
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
277
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
278
|
-
home: "home";
|
|
279
|
-
work: "work";
|
|
280
|
-
mobile: "mobile";
|
|
281
|
-
fax: "fax";
|
|
282
|
-
}>>;
|
|
283
|
-
number: z.ZodString;
|
|
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>;
|
|
295
|
-
}, z.core.$strip>;
|
|
296
|
-
declare const customerSchema: z.ZodObject<{
|
|
297
|
-
id: z.ZodString;
|
|
298
|
-
type: z.ZodEnum<{
|
|
299
|
-
customer: "customer";
|
|
300
|
-
supplier: "supplier";
|
|
301
|
-
voucher: "voucher";
|
|
302
|
-
supplier_voucher: "supplier_voucher";
|
|
303
|
-
}>;
|
|
304
|
-
status: z.ZodEnum<{
|
|
305
|
-
enabled: "enabled";
|
|
306
|
-
warning: "warning";
|
|
307
|
-
blacklisted: "blacklisted";
|
|
308
|
-
disabled: "disabled";
|
|
309
|
-
}>;
|
|
310
|
-
personalInfo: z.ZodOptional<z.ZodObject<{
|
|
311
|
-
title: z.ZodOptional<z.ZodString>;
|
|
312
|
-
firstName: z.ZodString;
|
|
313
|
-
lastName: z.ZodString;
|
|
314
|
-
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
315
|
-
gender: z.ZodOptional<z.ZodEnum<{
|
|
316
|
-
male: "male";
|
|
317
|
-
female: "female";
|
|
318
|
-
}>>;
|
|
319
|
-
nationality: z.ZodOptional<z.ZodString>;
|
|
320
|
-
birthCity: z.ZodOptional<z.ZodString>;
|
|
321
|
-
birthCounty: z.ZodOptional<z.ZodString>;
|
|
322
|
-
}, z.core.$strip>>;
|
|
323
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
324
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
325
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
326
|
-
home: "home";
|
|
327
|
-
work: "work";
|
|
328
|
-
mobile: "mobile";
|
|
329
|
-
fax: "fax";
|
|
330
|
-
}>>;
|
|
331
|
-
number: z.ZodString;
|
|
332
|
-
}, z.core.$strip>>;
|
|
333
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
334
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
335
|
-
home: "home";
|
|
336
|
-
work: "work";
|
|
337
|
-
}>>;
|
|
338
|
-
address: z.ZodString;
|
|
339
|
-
}, z.core.$strip>>;
|
|
340
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
341
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
342
|
-
home: "home";
|
|
343
|
-
work: "work";
|
|
344
|
-
mobile: "mobile";
|
|
345
|
-
fax: "fax";
|
|
346
|
-
}>>;
|
|
347
|
-
number: z.ZodString;
|
|
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>;
|
|
359
|
-
}, z.core.$strip>>;
|
|
360
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
361
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
362
|
-
home: "home";
|
|
363
|
-
work: "work";
|
|
364
|
-
billing: "billing";
|
|
365
|
-
delivery: "delivery";
|
|
366
|
-
}>>;
|
|
367
|
-
street: z.ZodOptional<z.ZodString>;
|
|
368
|
-
city: z.ZodOptional<z.ZodString>;
|
|
369
|
-
state: z.ZodOptional<z.ZodString>;
|
|
370
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
371
|
-
country: z.ZodOptional<z.ZodString>;
|
|
372
|
-
}, z.core.$strip>>;
|
|
373
|
-
businessInfo: z.ZodOptional<z.ZodObject<{
|
|
374
|
-
companyName: z.ZodOptional<z.ZodString>;
|
|
375
|
-
taxId: z.ZodOptional<z.ZodString>;
|
|
376
|
-
vatCode: z.ZodOptional<z.ZodString>;
|
|
377
|
-
fiscalCode: z.ZodOptional<z.ZodString>;
|
|
378
|
-
licenseNumber: z.ZodOptional<z.ZodString>;
|
|
379
|
-
priceListCode: z.ZodOptional<z.ZodString>;
|
|
380
|
-
}, z.core.$strip>>;
|
|
381
|
-
preferences: z.ZodOptional<z.ZodObject<{
|
|
382
|
-
language: z.ZodOptional<z.ZodString>;
|
|
383
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
384
|
-
communicationMethod: z.ZodOptional<z.ZodEnum<{
|
|
385
|
-
email: "email";
|
|
386
|
-
sms: "sms";
|
|
387
|
-
phone: "phone";
|
|
388
|
-
}>>;
|
|
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>>;
|
|
413
|
-
}, z.core.$strip>;
|
|
414
|
-
declare const bookingPassengerSchema: z.ZodObject<{
|
|
415
|
-
id: z.ZodString;
|
|
416
|
-
type: z.ZodEnum<{
|
|
417
|
-
adult: "adult";
|
|
418
|
-
child: "child";
|
|
419
|
-
infant: "infant";
|
|
420
|
-
senior: "senior";
|
|
421
|
-
}>;
|
|
422
|
-
title: z.ZodOptional<z.ZodEnum<{
|
|
423
|
-
mr: "mr";
|
|
424
|
-
mrs: "mrs";
|
|
425
|
-
ms: "ms";
|
|
426
|
-
dr: "dr";
|
|
427
|
-
prof: "prof";
|
|
428
|
-
}>>;
|
|
429
|
-
firstName: z.ZodString;
|
|
430
|
-
lastName: z.ZodString;
|
|
431
|
-
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
432
|
-
gender: z.ZodOptional<z.ZodEnum<{
|
|
433
|
-
male: "male";
|
|
434
|
-
female: "female";
|
|
435
|
-
}>>;
|
|
436
|
-
nationality: z.ZodOptional<z.ZodString>;
|
|
437
|
-
passport: z.ZodOptional<z.ZodObject<{
|
|
438
|
-
number: z.ZodString;
|
|
439
|
-
expiryDate: z.ZodString;
|
|
440
|
-
issuingCountry: z.ZodString;
|
|
441
|
-
}, z.core.$strip>>;
|
|
442
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
443
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
444
|
-
home: "home";
|
|
445
|
-
work: "work";
|
|
446
|
-
billing: "billing";
|
|
447
|
-
delivery: "delivery";
|
|
448
|
-
}>>;
|
|
449
|
-
street: z.ZodOptional<z.ZodString>;
|
|
450
|
-
city: z.ZodOptional<z.ZodString>;
|
|
451
|
-
state: z.ZodOptional<z.ZodString>;
|
|
452
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
453
|
-
country: z.ZodOptional<z.ZodString>;
|
|
454
|
-
}, z.core.$strip>>;
|
|
455
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
456
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
457
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
458
|
-
home: "home";
|
|
459
|
-
work: "work";
|
|
460
|
-
mobile: "mobile";
|
|
461
|
-
fax: "fax";
|
|
462
|
-
}>>;
|
|
463
|
-
number: z.ZodString;
|
|
464
|
-
}, z.core.$strip>>;
|
|
465
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
466
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
467
|
-
home: "home";
|
|
468
|
-
work: "work";
|
|
469
|
-
}>>;
|
|
470
|
-
address: z.ZodString;
|
|
471
|
-
}, z.core.$strip>>;
|
|
472
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
473
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
474
|
-
home: "home";
|
|
475
|
-
work: "work";
|
|
476
|
-
mobile: "mobile";
|
|
477
|
-
fax: "fax";
|
|
478
|
-
}>>;
|
|
479
|
-
number: z.ZodString;
|
|
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>;
|
|
491
|
-
}, z.core.$strip>>;
|
|
492
|
-
}, z.core.$strip>;
|
|
493
|
-
declare const bookingServiceSchema: z.ZodObject<{
|
|
494
|
-
id: z.ZodString;
|
|
495
|
-
type: z.ZodEnum<{
|
|
496
|
-
flight: "flight";
|
|
497
|
-
hotel: "hotel";
|
|
498
|
-
car: "car";
|
|
499
|
-
transfer: "transfer";
|
|
500
|
-
insurance: "insurance";
|
|
501
|
-
}>;
|
|
502
|
-
status: z.ZodEnum<{
|
|
503
|
-
confirmed: "confirmed";
|
|
504
|
-
pending: "pending";
|
|
505
|
-
cancelled: "cancelled";
|
|
506
|
-
}>;
|
|
507
|
-
code: z.ZodOptional<z.ZodString>;
|
|
508
|
-
name: z.ZodOptional<z.ZodString>;
|
|
509
|
-
description: z.ZodOptional<z.ZodString>;
|
|
510
|
-
startDate: z.ZodOptional<z.ZodString>;
|
|
511
|
-
endDate: z.ZodOptional<z.ZodString>;
|
|
512
|
-
price: z.ZodOptional<z.ZodObject<{
|
|
513
|
-
currency: z.ZodString;
|
|
514
|
-
amount: z.ZodNumber;
|
|
515
|
-
}, z.core.$strip>>;
|
|
516
|
-
}, z.core.$strip>;
|
|
517
|
-
declare const bookingPaymentSchema: z.ZodObject<{
|
|
518
|
-
id: z.ZodString;
|
|
519
|
-
type: z.ZodEnum<{
|
|
520
|
-
credit_card: "credit_card";
|
|
521
|
-
debit_card: "debit_card";
|
|
522
|
-
bank_transfer: "bank_transfer";
|
|
523
|
-
cash: "cash";
|
|
524
|
-
}>;
|
|
525
|
-
status: z.ZodEnum<{
|
|
526
|
-
confirmed: "confirmed";
|
|
527
|
-
pending: "pending";
|
|
528
|
-
failed: "failed";
|
|
529
|
-
}>;
|
|
530
|
-
amount: z.ZodObject<{
|
|
531
|
-
currency: z.ZodString;
|
|
532
|
-
amount: z.ZodNumber;
|
|
533
|
-
}, z.core.$strip>;
|
|
534
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
535
|
-
cardNumber: z.ZodOptional<z.ZodString>;
|
|
536
|
-
expiryDate: z.ZodOptional<z.ZodString>;
|
|
537
|
-
cardHolderName: z.ZodOptional<z.ZodString>;
|
|
538
|
-
}, z.core.$strip>>;
|
|
539
|
-
}, z.core.$strip>;
|
|
540
|
-
declare const searchCustomerRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
541
|
-
type: z.ZodLiteral<"code">;
|
|
542
|
-
code: z.ZodString;
|
|
543
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
544
|
-
pages: z.ZodNumber;
|
|
545
|
-
page: z.ZodNumber;
|
|
546
|
-
}, z.core.$strip>>;
|
|
547
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
548
|
-
type: z.ZodLiteral<"name">;
|
|
549
|
-
name: z.ZodString;
|
|
550
|
-
city: z.ZodOptional<z.ZodString>;
|
|
551
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
552
|
-
pages: z.ZodNumber;
|
|
553
|
-
page: z.ZodNumber;
|
|
554
|
-
}, z.core.$strip>>;
|
|
555
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
556
|
-
type: z.ZodLiteral<"vat_code">;
|
|
557
|
-
vatCode: z.ZodString;
|
|
558
|
-
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
559
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
560
|
-
pages: z.ZodNumber;
|
|
561
|
-
page: z.ZodNumber;
|
|
562
|
-
}, z.core.$strip>>;
|
|
563
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
564
|
-
type: z.ZodLiteral<"zone">;
|
|
565
|
-
zipCode: z.ZodString;
|
|
566
|
-
city: z.ZodOptional<z.ZodString>;
|
|
567
|
-
countyCode: z.ZodOptional<z.ZodString>;
|
|
568
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
569
|
-
pages: z.ZodNumber;
|
|
570
|
-
page: z.ZodNumber;
|
|
571
|
-
}, z.core.$strip>>;
|
|
572
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
573
|
-
type: z.ZodLiteral<"category">;
|
|
574
|
-
categoryCode: z.ZodString;
|
|
575
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
576
|
-
pages: z.ZodNumber;
|
|
577
|
-
page: z.ZodNumber;
|
|
578
|
-
}, z.core.$strip>>;
|
|
579
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
580
|
-
type: z.ZodLiteral<"email">;
|
|
581
|
-
email: z.ZodEmail;
|
|
582
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
583
|
-
pages: z.ZodNumber;
|
|
584
|
-
page: z.ZodNumber;
|
|
585
|
-
}, z.core.$strip>>;
|
|
586
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
587
|
-
type: z.ZodLiteral<"last_mod_date">;
|
|
588
|
-
from: z.ZodString;
|
|
589
|
-
to: z.ZodString;
|
|
590
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
591
|
-
pages: z.ZodNumber;
|
|
592
|
-
page: z.ZodNumber;
|
|
593
|
-
}, z.core.$strip>>;
|
|
594
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
595
|
-
type: z.ZodLiteral<"search_field">;
|
|
596
|
-
searchField: z.ZodString;
|
|
597
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
598
|
-
pages: z.ZodNumber;
|
|
599
|
-
page: z.ZodNumber;
|
|
600
|
-
}, z.core.$strip>>;
|
|
601
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
602
|
-
type: z.ZodLiteral<"external_ref_code">;
|
|
603
|
-
externalRefCode: z.ZodString;
|
|
604
|
-
pagination: z.ZodOptional<z.ZodObject<{
|
|
605
|
-
pages: z.ZodNumber;
|
|
606
|
-
page: z.ZodNumber;
|
|
607
|
-
}, z.core.$strip>>;
|
|
608
|
-
}, z.core.$strip>], "type">;
|
|
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>;
|
|
614
|
-
description: z.ZodOptional<z.ZodString>;
|
|
615
|
-
startDate: z.ZodString;
|
|
616
|
-
endDate: z.ZodString;
|
|
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>>;
|
|
630
|
-
passengers: z.ZodArray<z.ZodObject<{
|
|
631
|
-
id: z.ZodString;
|
|
632
|
-
type: z.ZodEnum<{
|
|
633
|
-
adult: "adult";
|
|
634
|
-
child: "child";
|
|
635
|
-
infant: "infant";
|
|
636
|
-
senior: "senior";
|
|
637
|
-
}>;
|
|
638
|
-
title: z.ZodOptional<z.ZodEnum<{
|
|
639
|
-
mr: "mr";
|
|
640
|
-
mrs: "mrs";
|
|
641
|
-
ms: "ms";
|
|
642
|
-
dr: "dr";
|
|
643
|
-
prof: "prof";
|
|
644
|
-
}>>;
|
|
645
|
-
firstName: z.ZodString;
|
|
646
|
-
lastName: z.ZodString;
|
|
647
|
-
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
648
|
-
gender: z.ZodOptional<z.ZodEnum<{
|
|
649
|
-
male: "male";
|
|
650
|
-
female: "female";
|
|
651
|
-
}>>;
|
|
652
|
-
nationality: z.ZodOptional<z.ZodString>;
|
|
653
|
-
passport: z.ZodOptional<z.ZodObject<{
|
|
654
|
-
number: z.ZodString;
|
|
655
|
-
expiryDate: z.ZodString;
|
|
656
|
-
issuingCountry: z.ZodString;
|
|
657
|
-
}, z.core.$strip>>;
|
|
658
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
659
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
660
|
-
home: "home";
|
|
661
|
-
work: "work";
|
|
662
|
-
billing: "billing";
|
|
663
|
-
delivery: "delivery";
|
|
664
|
-
}>>;
|
|
665
|
-
street: z.ZodOptional<z.ZodString>;
|
|
666
|
-
city: z.ZodOptional<z.ZodString>;
|
|
667
|
-
state: z.ZodOptional<z.ZodString>;
|
|
668
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
669
|
-
country: z.ZodOptional<z.ZodString>;
|
|
670
|
-
}, z.core.$strip>>;
|
|
671
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
672
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
673
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
674
|
-
home: "home";
|
|
675
|
-
work: "work";
|
|
676
|
-
mobile: "mobile";
|
|
677
|
-
fax: "fax";
|
|
678
|
-
}>>;
|
|
679
|
-
number: z.ZodString;
|
|
680
|
-
}, z.core.$strip>>;
|
|
681
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
682
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
683
|
-
home: "home";
|
|
684
|
-
work: "work";
|
|
685
|
-
}>>;
|
|
686
|
-
address: z.ZodString;
|
|
687
|
-
}, z.core.$strip>>;
|
|
688
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
689
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
690
|
-
home: "home";
|
|
691
|
-
work: "work";
|
|
692
|
-
mobile: "mobile";
|
|
693
|
-
fax: "fax";
|
|
694
|
-
}>>;
|
|
695
|
-
number: z.ZodString;
|
|
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>;
|
|
707
|
-
}, z.core.$strip>>;
|
|
708
|
-
}, z.core.$strip>>;
|
|
709
|
-
services: z.ZodArray<z.ZodObject<{
|
|
710
|
-
id: z.ZodString;
|
|
711
|
-
type: z.ZodEnum<{
|
|
712
|
-
flight: "flight";
|
|
713
|
-
hotel: "hotel";
|
|
714
|
-
car: "car";
|
|
715
|
-
transfer: "transfer";
|
|
716
|
-
insurance: "insurance";
|
|
717
|
-
}>;
|
|
718
|
-
status: z.ZodEnum<{
|
|
719
|
-
confirmed: "confirmed";
|
|
720
|
-
pending: "pending";
|
|
721
|
-
cancelled: "cancelled";
|
|
722
|
-
}>;
|
|
723
|
-
code: z.ZodOptional<z.ZodString>;
|
|
724
|
-
name: z.ZodOptional<z.ZodString>;
|
|
725
|
-
description: z.ZodOptional<z.ZodString>;
|
|
726
|
-
startDate: z.ZodOptional<z.ZodString>;
|
|
727
|
-
endDate: z.ZodOptional<z.ZodString>;
|
|
728
|
-
price: z.ZodOptional<z.ZodObject<{
|
|
729
|
-
currency: z.ZodString;
|
|
730
|
-
amount: z.ZodNumber;
|
|
731
|
-
}, z.core.$strip>>;
|
|
732
|
-
}, z.core.$strip>>;
|
|
733
|
-
statisticCodes: z.ZodOptional<z.ZodObject<{
|
|
734
|
-
code1: z.ZodOptional<z.ZodString>;
|
|
735
|
-
code2: z.ZodOptional<z.ZodString>;
|
|
736
|
-
code3: z.ZodOptional<z.ZodString>;
|
|
737
|
-
code4: z.ZodOptional<z.ZodString>;
|
|
738
|
-
code5: z.ZodOptional<z.ZodString>;
|
|
739
|
-
code6: z.ZodOptional<z.ZodString>;
|
|
740
|
-
}, z.core.$strip>>;
|
|
741
|
-
destination: z.ZodOptional<z.ZodObject<{
|
|
742
|
-
code: z.ZodOptional<z.ZodString>;
|
|
743
|
-
iataCode: z.ZodOptional<z.ZodString>;
|
|
744
|
-
nationCode: z.ZodOptional<z.ZodString>;
|
|
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>;
|
|
752
|
-
deadlines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
753
|
-
code: z.ZodString;
|
|
754
|
-
description: z.ZodOptional<z.ZodString>;
|
|
755
|
-
expireDate: z.ZodOptional<z.ZodString>;
|
|
756
|
-
}, z.core.$strip>>>;
|
|
757
|
-
printDocument: z.ZodOptional<z.ZodBoolean>;
|
|
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>;
|
|
782
|
-
customerId: z.ZodString;
|
|
783
|
-
customerDetails: z.ZodOptional<z.ZodNever>;
|
|
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>;
|
|
789
|
-
description: z.ZodOptional<z.ZodString>;
|
|
790
|
-
startDate: z.ZodString;
|
|
791
|
-
endDate: z.ZodString;
|
|
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>>;
|
|
805
|
-
passengers: z.ZodArray<z.ZodObject<{
|
|
806
|
-
id: z.ZodString;
|
|
807
|
-
type: z.ZodEnum<{
|
|
808
|
-
adult: "adult";
|
|
809
|
-
child: "child";
|
|
810
|
-
infant: "infant";
|
|
811
|
-
senior: "senior";
|
|
812
|
-
}>;
|
|
813
|
-
title: z.ZodOptional<z.ZodEnum<{
|
|
814
|
-
mr: "mr";
|
|
815
|
-
mrs: "mrs";
|
|
816
|
-
ms: "ms";
|
|
817
|
-
dr: "dr";
|
|
818
|
-
prof: "prof";
|
|
819
|
-
}>>;
|
|
820
|
-
firstName: z.ZodString;
|
|
821
|
-
lastName: z.ZodString;
|
|
822
|
-
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
823
|
-
gender: z.ZodOptional<z.ZodEnum<{
|
|
824
|
-
male: "male";
|
|
825
|
-
female: "female";
|
|
826
|
-
}>>;
|
|
827
|
-
nationality: z.ZodOptional<z.ZodString>;
|
|
828
|
-
passport: z.ZodOptional<z.ZodObject<{
|
|
829
|
-
number: z.ZodString;
|
|
830
|
-
expiryDate: z.ZodString;
|
|
831
|
-
issuingCountry: z.ZodString;
|
|
832
|
-
}, z.core.$strip>>;
|
|
833
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
834
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
835
|
-
home: "home";
|
|
836
|
-
work: "work";
|
|
837
|
-
billing: "billing";
|
|
838
|
-
delivery: "delivery";
|
|
839
|
-
}>>;
|
|
840
|
-
street: z.ZodOptional<z.ZodString>;
|
|
841
|
-
city: z.ZodOptional<z.ZodString>;
|
|
842
|
-
state: z.ZodOptional<z.ZodString>;
|
|
843
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
844
|
-
country: z.ZodOptional<z.ZodString>;
|
|
845
|
-
}, z.core.$strip>>;
|
|
846
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
847
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
848
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
849
|
-
home: "home";
|
|
850
|
-
work: "work";
|
|
851
|
-
mobile: "mobile";
|
|
852
|
-
fax: "fax";
|
|
853
|
-
}>>;
|
|
854
|
-
number: z.ZodString;
|
|
855
|
-
}, z.core.$strip>>;
|
|
856
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
857
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
858
|
-
home: "home";
|
|
859
|
-
work: "work";
|
|
860
|
-
}>>;
|
|
861
|
-
address: z.ZodString;
|
|
862
|
-
}, z.core.$strip>>;
|
|
863
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
864
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
865
|
-
home: "home";
|
|
866
|
-
work: "work";
|
|
867
|
-
mobile: "mobile";
|
|
868
|
-
fax: "fax";
|
|
869
|
-
}>>;
|
|
870
|
-
number: z.ZodString;
|
|
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>;
|
|
882
|
-
}, z.core.$strip>>;
|
|
883
|
-
}, z.core.$strip>>;
|
|
884
|
-
services: z.ZodArray<z.ZodObject<{
|
|
885
|
-
id: z.ZodString;
|
|
886
|
-
type: z.ZodEnum<{
|
|
887
|
-
flight: "flight";
|
|
888
|
-
hotel: "hotel";
|
|
889
|
-
car: "car";
|
|
890
|
-
transfer: "transfer";
|
|
891
|
-
insurance: "insurance";
|
|
892
|
-
}>;
|
|
893
|
-
status: z.ZodEnum<{
|
|
894
|
-
confirmed: "confirmed";
|
|
895
|
-
pending: "pending";
|
|
896
|
-
cancelled: "cancelled";
|
|
897
|
-
}>;
|
|
898
|
-
code: z.ZodOptional<z.ZodString>;
|
|
899
|
-
name: z.ZodOptional<z.ZodString>;
|
|
900
|
-
description: z.ZodOptional<z.ZodString>;
|
|
901
|
-
startDate: z.ZodOptional<z.ZodString>;
|
|
902
|
-
endDate: z.ZodOptional<z.ZodString>;
|
|
903
|
-
price: z.ZodOptional<z.ZodObject<{
|
|
904
|
-
currency: z.ZodString;
|
|
905
|
-
amount: z.ZodNumber;
|
|
906
|
-
}, z.core.$strip>>;
|
|
907
|
-
}, z.core.$strip>>;
|
|
908
|
-
statisticCodes: z.ZodOptional<z.ZodObject<{
|
|
909
|
-
code1: z.ZodOptional<z.ZodString>;
|
|
910
|
-
code2: z.ZodOptional<z.ZodString>;
|
|
911
|
-
code3: z.ZodOptional<z.ZodString>;
|
|
912
|
-
code4: z.ZodOptional<z.ZodString>;
|
|
913
|
-
code5: z.ZodOptional<z.ZodString>;
|
|
914
|
-
code6: z.ZodOptional<z.ZodString>;
|
|
915
|
-
}, z.core.$strip>>;
|
|
916
|
-
destination: z.ZodOptional<z.ZodObject<{
|
|
917
|
-
code: z.ZodOptional<z.ZodString>;
|
|
918
|
-
iataCode: z.ZodOptional<z.ZodString>;
|
|
919
|
-
nationCode: z.ZodOptional<z.ZodString>;
|
|
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>;
|
|
927
|
-
deadlines: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
928
|
-
code: z.ZodString;
|
|
929
|
-
description: z.ZodOptional<z.ZodString>;
|
|
930
|
-
expireDate: z.ZodOptional<z.ZodString>;
|
|
931
|
-
}, z.core.$strip>>>;
|
|
932
|
-
printDocument: z.ZodOptional<z.ZodBoolean>;
|
|
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>;
|
|
957
|
-
customerId: z.ZodOptional<z.ZodNever>;
|
|
958
|
-
customerDetails: z.ZodObject<{
|
|
959
|
-
id: z.ZodString;
|
|
960
|
-
type: z.ZodEnum<{
|
|
961
|
-
customer: "customer";
|
|
962
|
-
supplier: "supplier";
|
|
963
|
-
voucher: "voucher";
|
|
964
|
-
supplier_voucher: "supplier_voucher";
|
|
965
|
-
}>;
|
|
966
|
-
status: z.ZodEnum<{
|
|
967
|
-
enabled: "enabled";
|
|
968
|
-
warning: "warning";
|
|
969
|
-
blacklisted: "blacklisted";
|
|
970
|
-
disabled: "disabled";
|
|
971
|
-
}>;
|
|
972
|
-
personalInfo: z.ZodOptional<z.ZodObject<{
|
|
973
|
-
title: z.ZodOptional<z.ZodString>;
|
|
974
|
-
firstName: z.ZodString;
|
|
975
|
-
lastName: z.ZodString;
|
|
976
|
-
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
977
|
-
gender: z.ZodOptional<z.ZodEnum<{
|
|
978
|
-
male: "male";
|
|
979
|
-
female: "female";
|
|
980
|
-
}>>;
|
|
981
|
-
nationality: z.ZodOptional<z.ZodString>;
|
|
982
|
-
birthCity: z.ZodOptional<z.ZodString>;
|
|
983
|
-
birthCounty: z.ZodOptional<z.ZodString>;
|
|
984
|
-
}, z.core.$strip>>;
|
|
985
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
986
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
987
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
988
|
-
home: "home";
|
|
989
|
-
work: "work";
|
|
990
|
-
mobile: "mobile";
|
|
991
|
-
fax: "fax";
|
|
992
|
-
}>>;
|
|
993
|
-
number: z.ZodString;
|
|
994
|
-
}, z.core.$strip>>;
|
|
995
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
996
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
997
|
-
home: "home";
|
|
998
|
-
work: "work";
|
|
999
|
-
}>>;
|
|
1000
|
-
address: z.ZodString;
|
|
1001
|
-
}, z.core.$strip>>;
|
|
1002
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
1003
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1004
|
-
home: "home";
|
|
1005
|
-
work: "work";
|
|
1006
|
-
mobile: "mobile";
|
|
1007
|
-
fax: "fax";
|
|
1008
|
-
}>>;
|
|
1009
|
-
number: z.ZodString;
|
|
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>;
|
|
1021
|
-
}, z.core.$strip>>;
|
|
1022
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
1023
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1024
|
-
home: "home";
|
|
1025
|
-
work: "work";
|
|
1026
|
-
billing: "billing";
|
|
1027
|
-
delivery: "delivery";
|
|
1028
|
-
}>>;
|
|
1029
|
-
street: z.ZodOptional<z.ZodString>;
|
|
1030
|
-
city: z.ZodOptional<z.ZodString>;
|
|
1031
|
-
state: z.ZodOptional<z.ZodString>;
|
|
1032
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
1033
|
-
country: z.ZodOptional<z.ZodString>;
|
|
1034
|
-
}, z.core.$strip>>;
|
|
1035
|
-
businessInfo: z.ZodOptional<z.ZodObject<{
|
|
1036
|
-
companyName: z.ZodOptional<z.ZodString>;
|
|
1037
|
-
taxId: z.ZodOptional<z.ZodString>;
|
|
1038
|
-
vatCode: z.ZodOptional<z.ZodString>;
|
|
1039
|
-
fiscalCode: z.ZodOptional<z.ZodString>;
|
|
1040
|
-
licenseNumber: z.ZodOptional<z.ZodString>;
|
|
1041
|
-
priceListCode: z.ZodOptional<z.ZodString>;
|
|
1042
|
-
}, z.core.$strip>>;
|
|
1043
|
-
preferences: z.ZodOptional<z.ZodObject<{
|
|
1044
|
-
language: z.ZodOptional<z.ZodString>;
|
|
1045
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
1046
|
-
communicationMethod: z.ZodOptional<z.ZodEnum<{
|
|
1047
|
-
email: "email";
|
|
1048
|
-
sms: "sms";
|
|
1049
|
-
phone: "phone";
|
|
1050
|
-
}>>;
|
|
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>>;
|
|
1075
|
-
}, z.core.$strip>;
|
|
1076
|
-
}, z.core.$strip>]>;
|
|
1077
|
-
declare const cancelBookingRequestSchema: z.ZodObject<{
|
|
1078
|
-
bookingId: z.ZodString;
|
|
1079
|
-
customerId: z.ZodOptional<z.ZodString>;
|
|
1080
|
-
reason: z.ZodEnum<{
|
|
1081
|
-
customer_request: "customer_request";
|
|
1082
|
-
no_show: "no_show";
|
|
1083
|
-
operational: "operational";
|
|
1084
|
-
other: "other";
|
|
1085
|
-
}>;
|
|
1086
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1087
|
-
refundRequest: z.ZodOptional<z.ZodObject<{
|
|
1088
|
-
amount: z.ZodNumber;
|
|
1089
|
-
currency: z.ZodString;
|
|
1090
|
-
method: z.ZodEnum<{
|
|
1091
|
-
cash: "cash";
|
|
1092
|
-
original_payment: "original_payment";
|
|
1093
|
-
credit: "credit";
|
|
1094
|
-
}>;
|
|
1095
|
-
}, z.core.$strip>>;
|
|
1096
|
-
}, z.core.$strip>;
|
|
1097
|
-
declare const printDocumentRequestSchema: z.ZodObject<{
|
|
1098
|
-
bookingId: z.ZodString;
|
|
1099
|
-
customerId: z.ZodOptional<z.ZodString>;
|
|
1100
|
-
documentType: z.ZodEnum<{
|
|
1101
|
-
voucher: "voucher";
|
|
1102
|
-
visa_request: "visa_request";
|
|
1103
|
-
travel_information: "travel_information";
|
|
1104
|
-
booking_contract: "booking_contract";
|
|
1105
|
-
booking_confirmation: "booking_confirmation";
|
|
1106
|
-
supplier_service_list: "supplier_service_list";
|
|
1107
|
-
invoice: "invoice";
|
|
1108
|
-
proforma_invoice: "proforma_invoice";
|
|
1109
|
-
adeguamento: "adeguamento";
|
|
1110
|
-
reservation_form: "reservation_form";
|
|
1111
|
-
open_xml: "open_xml";
|
|
1112
|
-
sales_invoice: "sales_invoice";
|
|
1113
|
-
ticketing_tmaster: "ticketing_tmaster";
|
|
1114
|
-
summary_form: "summary_form";
|
|
1115
|
-
}>;
|
|
1116
|
-
format: z.ZodOptional<z.ZodEnum<{
|
|
1117
|
-
pdf: "pdf";
|
|
1118
|
-
html: "html";
|
|
1119
|
-
xml: "xml";
|
|
1120
|
-
}>>;
|
|
1121
|
-
language: z.ZodOptional<z.ZodString>;
|
|
1122
|
-
deliveryMethod: z.ZodOptional<z.ZodObject<{
|
|
1123
|
-
type: z.ZodEnum<{
|
|
1124
|
-
email: "email";
|
|
1125
|
-
sms: "sms";
|
|
1126
|
-
download: "download";
|
|
1127
|
-
}>;
|
|
1128
|
-
address: z.ZodOptional<z.ZodString>;
|
|
1129
|
-
}, z.core.$strip>>;
|
|
1130
|
-
}, z.core.$strip>;
|
|
1131
|
-
declare const addPaymentRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1132
|
-
bookingId: z.ZodString;
|
|
1133
|
-
bookingRefCode: z.ZodOptional<z.ZodNever>;
|
|
1134
|
-
payments: z.ZodArray<z.ZodObject<{
|
|
1135
|
-
id: z.ZodString;
|
|
1136
|
-
type: z.ZodEnum<{
|
|
1137
|
-
credit_card: "credit_card";
|
|
1138
|
-
debit_card: "debit_card";
|
|
1139
|
-
bank_transfer: "bank_transfer";
|
|
1140
|
-
cash: "cash";
|
|
1141
|
-
}>;
|
|
1142
|
-
status: z.ZodEnum<{
|
|
1143
|
-
confirmed: "confirmed";
|
|
1144
|
-
pending: "pending";
|
|
1145
|
-
failed: "failed";
|
|
1146
|
-
}>;
|
|
1147
|
-
amount: z.ZodObject<{
|
|
1148
|
-
currency: z.ZodString;
|
|
1149
|
-
amount: z.ZodNumber;
|
|
1150
|
-
}, z.core.$strip>;
|
|
1151
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
1152
|
-
cardNumber: z.ZodOptional<z.ZodString>;
|
|
1153
|
-
expiryDate: z.ZodOptional<z.ZodString>;
|
|
1154
|
-
cardHolderName: z.ZodOptional<z.ZodString>;
|
|
1155
|
-
}, z.core.$strip>>;
|
|
1156
|
-
}, z.core.$strip>>;
|
|
1157
|
-
enableMultiple: z.ZodOptional<z.ZodBoolean>;
|
|
1158
|
-
operationType: z.ZodOptional<z.ZodEnum<{
|
|
1159
|
-
absolute: "absolute";
|
|
1160
|
-
final: "final";
|
|
1161
|
-
final_no_controls: "final_no_controls";
|
|
1162
|
-
}>>;
|
|
1163
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1164
|
-
bookingId: z.ZodOptional<z.ZodNever>;
|
|
1165
|
-
bookingRefCode: z.ZodString;
|
|
1166
|
-
payments: z.ZodArray<z.ZodObject<{
|
|
1167
|
-
id: z.ZodString;
|
|
1168
|
-
type: z.ZodEnum<{
|
|
1169
|
-
credit_card: "credit_card";
|
|
1170
|
-
debit_card: "debit_card";
|
|
1171
|
-
bank_transfer: "bank_transfer";
|
|
1172
|
-
cash: "cash";
|
|
1173
|
-
}>;
|
|
1174
|
-
status: z.ZodEnum<{
|
|
1175
|
-
confirmed: "confirmed";
|
|
1176
|
-
pending: "pending";
|
|
1177
|
-
failed: "failed";
|
|
1178
|
-
}>;
|
|
1179
|
-
amount: z.ZodObject<{
|
|
1180
|
-
currency: z.ZodString;
|
|
1181
|
-
amount: z.ZodNumber;
|
|
1182
|
-
}, z.core.$strip>;
|
|
1183
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
1184
|
-
cardNumber: z.ZodOptional<z.ZodString>;
|
|
1185
|
-
expiryDate: z.ZodOptional<z.ZodString>;
|
|
1186
|
-
cardHolderName: z.ZodOptional<z.ZodString>;
|
|
1187
|
-
}, z.core.$strip>>;
|
|
1188
|
-
}, z.core.$strip>>;
|
|
1189
|
-
enableMultiple: z.ZodOptional<z.ZodBoolean>;
|
|
1190
|
-
operationType: z.ZodOptional<z.ZodEnum<{
|
|
1191
|
-
absolute: "absolute";
|
|
1192
|
-
final: "final";
|
|
1193
|
-
final_no_controls: "final_no_controls";
|
|
1194
|
-
}>>;
|
|
1195
|
-
}, z.core.$strip>]>;
|
|
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<{
|
|
1216
|
-
id: z.ZodString;
|
|
1217
|
-
type: z.ZodEnum<{
|
|
1218
|
-
customer: "customer";
|
|
1219
|
-
supplier: "supplier";
|
|
1220
|
-
voucher: "voucher";
|
|
1221
|
-
supplier_voucher: "supplier_voucher";
|
|
1222
|
-
}>;
|
|
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";
|
|
1237
|
-
}>>;
|
|
1238
|
-
nationality: z.ZodOptional<z.ZodString>;
|
|
1239
|
-
birthCity: z.ZodOptional<z.ZodString>;
|
|
1240
|
-
birthCounty: z.ZodOptional<z.ZodString>;
|
|
1241
|
-
}, z.core.$strip>>;
|
|
1242
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
1243
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
1244
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1245
|
-
home: "home";
|
|
1246
|
-
work: "work";
|
|
1247
|
-
mobile: "mobile";
|
|
1248
|
-
fax: "fax";
|
|
1249
|
-
}>>;
|
|
1250
|
-
number: z.ZodString;
|
|
1251
|
-
}, z.core.$strip>>;
|
|
1252
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
1253
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1254
|
-
home: "home";
|
|
1255
|
-
work: "work";
|
|
1256
|
-
}>>;
|
|
1257
|
-
address: z.ZodString;
|
|
1258
|
-
}, z.core.$strip>>;
|
|
1259
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
1260
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1261
|
-
home: "home";
|
|
1262
|
-
work: "work";
|
|
1263
|
-
mobile: "mobile";
|
|
1264
|
-
fax: "fax";
|
|
1265
|
-
}>>;
|
|
1266
|
-
number: z.ZodString;
|
|
1267
|
-
}, z.core.$strip>>;
|
|
1268
|
-
fax: z.ZodOptional<z.ZodObject<{
|
|
1269
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1270
|
-
home: "home";
|
|
1271
|
-
work: "work";
|
|
1272
|
-
mobile: "mobile";
|
|
1273
|
-
fax: "fax";
|
|
1274
|
-
}>>;
|
|
1275
|
-
number: z.ZodString;
|
|
1276
|
-
}, z.core.$strip>>;
|
|
1277
|
-
webUrl: z.ZodOptional<z.ZodString>;
|
|
1278
|
-
}, z.core.$strip>>;
|
|
1279
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
1280
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1281
|
-
home: "home";
|
|
1282
|
-
work: "work";
|
|
1283
|
-
billing: "billing";
|
|
1284
|
-
delivery: "delivery";
|
|
1285
|
-
}>>;
|
|
1286
|
-
street: z.ZodOptional<z.ZodString>;
|
|
1287
|
-
city: z.ZodOptional<z.ZodString>;
|
|
1288
|
-
state: z.ZodOptional<z.ZodString>;
|
|
1289
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
1290
|
-
country: z.ZodOptional<z.ZodString>;
|
|
1291
|
-
}, z.core.$strip>>;
|
|
1292
|
-
businessInfo: z.ZodOptional<z.ZodObject<{
|
|
1293
|
-
companyName: z.ZodOptional<z.ZodString>;
|
|
1294
|
-
taxId: z.ZodOptional<z.ZodString>;
|
|
1295
|
-
vatCode: z.ZodOptional<z.ZodString>;
|
|
1296
|
-
fiscalCode: z.ZodOptional<z.ZodString>;
|
|
1297
|
-
licenseNumber: z.ZodOptional<z.ZodString>;
|
|
1298
|
-
priceListCode: z.ZodOptional<z.ZodString>;
|
|
1299
|
-
}, z.core.$strip>>;
|
|
1300
|
-
preferences: z.ZodOptional<z.ZodObject<{
|
|
1301
|
-
language: z.ZodOptional<z.ZodString>;
|
|
1302
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
1303
|
-
communicationMethod: z.ZodOptional<z.ZodEnum<{
|
|
1304
|
-
email: "email";
|
|
1305
|
-
sms: "sms";
|
|
1306
|
-
phone: "phone";
|
|
1307
|
-
}>>;
|
|
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>>;
|
|
1332
|
-
}, z.core.$strip>;
|
|
1333
|
-
passengers: z.ZodArray<z.ZodObject<{
|
|
1334
|
-
id: z.ZodString;
|
|
1335
|
-
type: z.ZodEnum<{
|
|
1336
|
-
adult: "adult";
|
|
1337
|
-
child: "child";
|
|
1338
|
-
infant: "infant";
|
|
1339
|
-
senior: "senior";
|
|
1340
|
-
}>;
|
|
1341
|
-
title: z.ZodOptional<z.ZodEnum<{
|
|
1342
|
-
mr: "mr";
|
|
1343
|
-
mrs: "mrs";
|
|
1344
|
-
ms: "ms";
|
|
1345
|
-
dr: "dr";
|
|
1346
|
-
prof: "prof";
|
|
1347
|
-
}>>;
|
|
1348
|
-
firstName: z.ZodString;
|
|
1349
|
-
lastName: z.ZodString;
|
|
1350
|
-
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
1351
|
-
gender: z.ZodOptional<z.ZodEnum<{
|
|
1352
|
-
male: "male";
|
|
1353
|
-
female: "female";
|
|
1354
|
-
}>>;
|
|
1355
|
-
nationality: z.ZodOptional<z.ZodString>;
|
|
1356
|
-
passport: z.ZodOptional<z.ZodObject<{
|
|
1357
|
-
number: z.ZodString;
|
|
1358
|
-
expiryDate: z.ZodString;
|
|
1359
|
-
issuingCountry: z.ZodString;
|
|
1360
|
-
}, z.core.$strip>>;
|
|
1361
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
1362
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1363
|
-
home: "home";
|
|
1364
|
-
work: "work";
|
|
1365
|
-
billing: "billing";
|
|
1366
|
-
delivery: "delivery";
|
|
1367
|
-
}>>;
|
|
1368
|
-
street: z.ZodOptional<z.ZodString>;
|
|
1369
|
-
city: z.ZodOptional<z.ZodString>;
|
|
1370
|
-
state: z.ZodOptional<z.ZodString>;
|
|
1371
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
1372
|
-
country: z.ZodOptional<z.ZodString>;
|
|
1373
|
-
}, z.core.$strip>>;
|
|
1374
|
-
contact: z.ZodOptional<z.ZodObject<{
|
|
1375
|
-
phone: z.ZodOptional<z.ZodObject<{
|
|
1376
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1377
|
-
home: "home";
|
|
1378
|
-
work: "work";
|
|
1379
|
-
mobile: "mobile";
|
|
1380
|
-
fax: "fax";
|
|
1381
|
-
}>>;
|
|
1382
|
-
number: z.ZodString;
|
|
1383
|
-
}, z.core.$strip>>;
|
|
1384
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
1385
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1386
|
-
home: "home";
|
|
1387
|
-
work: "work";
|
|
1388
|
-
}>>;
|
|
1389
|
-
address: z.ZodString;
|
|
1390
|
-
}, z.core.$strip>>;
|
|
1391
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
1392
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1393
|
-
home: "home";
|
|
1394
|
-
work: "work";
|
|
1395
|
-
mobile: "mobile";
|
|
1396
|
-
fax: "fax";
|
|
1397
|
-
}>>;
|
|
1398
|
-
number: z.ZodString;
|
|
1399
|
-
}, z.core.$strip>>;
|
|
1400
|
-
fax: z.ZodOptional<z.ZodObject<{
|
|
1401
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1402
|
-
home: "home";
|
|
1403
|
-
work: "work";
|
|
1404
|
-
mobile: "mobile";
|
|
1405
|
-
fax: "fax";
|
|
1406
|
-
}>>;
|
|
1407
|
-
number: z.ZodString;
|
|
1408
|
-
}, z.core.$strip>>;
|
|
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";
|
|
1425
|
-
}>;
|
|
1426
|
-
code: z.ZodOptional<z.ZodString>;
|
|
1427
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1428
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1429
|
-
startDate: z.ZodOptional<z.ZodString>;
|
|
1430
|
-
endDate: z.ZodOptional<z.ZodString>;
|
|
1431
|
-
price: z.ZodOptional<z.ZodObject<{
|
|
1432
|
-
currency: z.ZodString;
|
|
1433
|
-
amount: z.ZodNumber;
|
|
1434
|
-
}, z.core.$strip>>;
|
|
1435
|
-
}, z.core.$strip>>;
|
|
1436
|
-
pricing: z.ZodObject<{
|
|
1437
|
-
totalAmount: z.ZodObject<{
|
|
1438
|
-
currency: z.ZodString;
|
|
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";
|
|
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>;
|
|
1459
|
-
}, z.core.$strip>>;
|
|
1460
|
-
}, z.core.$strip>;
|
|
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";
|
|
1468
|
-
voucher: "voucher";
|
|
1469
|
-
supplier_voucher: "supplier_voucher";
|
|
1470
|
-
}>;
|
|
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>;
|
|
1479
|
-
firstName: z.ZodString;
|
|
1480
|
-
lastName: z.ZodString;
|
|
1481
|
-
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
1482
|
-
gender: z.ZodOptional<z.ZodEnum<{
|
|
1483
|
-
male: "male";
|
|
1484
|
-
female: "female";
|
|
1485
|
-
}>>;
|
|
1486
|
-
nationality: z.ZodOptional<z.ZodString>;
|
|
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<{
|
|
1492
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1493
|
-
home: "home";
|
|
1494
|
-
work: "work";
|
|
1495
|
-
mobile: "mobile";
|
|
1496
|
-
fax: "fax";
|
|
1497
|
-
}>>;
|
|
1498
|
-
number: z.ZodString;
|
|
1499
|
-
}, z.core.$strip>>;
|
|
1500
|
-
email: z.ZodOptional<z.ZodObject<{
|
|
1501
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1502
|
-
home: "home";
|
|
1503
|
-
work: "work";
|
|
1504
|
-
}>>;
|
|
1505
|
-
address: z.ZodString;
|
|
1506
|
-
}, z.core.$strip>>;
|
|
1507
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
1508
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1509
|
-
home: "home";
|
|
1510
|
-
work: "work";
|
|
1511
|
-
mobile: "mobile";
|
|
1512
|
-
fax: "fax";
|
|
1513
|
-
}>>;
|
|
1514
|
-
number: z.ZodString;
|
|
1515
|
-
}, z.core.$strip>>;
|
|
1516
|
-
fax: z.ZodOptional<z.ZodObject<{
|
|
1517
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
1518
|
-
home: "home";
|
|
1519
|
-
work: "work";
|
|
1520
|
-
mobile: "mobile";
|
|
1521
|
-
fax: "fax";
|
|
1522
|
-
}>>;
|
|
1523
|
-
number: z.ZodString;
|
|
1524
|
-
}, z.core.$strip>>;
|
|
1525
|
-
webUrl: z.ZodOptional<z.ZodString>;
|
|
1526
|
-
}, z.core.$strip>>;
|
|
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;
|
|
1586
|
-
}, z.core.$strip>;
|
|
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<{
|
|
1596
|
-
fileName: z.ZodString;
|
|
1597
|
-
content: z.ZodOptional<z.ZodString>;
|
|
1598
|
-
contentSize: z.ZodNumber;
|
|
1599
|
-
}, z.core.$strip>>;
|
|
1600
|
-
additionalDocuments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1601
|
-
emailRecipient: z.ZodString;
|
|
1602
|
-
documents: z.ZodArray<z.ZodObject<{
|
|
1603
|
-
fileName: z.ZodString;
|
|
1604
|
-
content: z.ZodOptional<z.ZodString>;
|
|
1605
|
-
contentSize: z.ZodNumber;
|
|
1606
|
-
}, z.core.$strip>>;
|
|
1607
|
-
}, z.core.$strip>>>;
|
|
1608
|
-
}, z.core.$strip>;
|
|
1609
|
-
type AddressType = z.infer<typeof addressTypeSchema>;
|
|
1610
|
-
type ContactType = z.infer<typeof contactTypeSchema>;
|
|
1611
|
-
type EmailType = z.infer<typeof emailTypeSchema>;
|
|
1612
|
-
type TitleType = z.infer<typeof titleTypeSchema>;
|
|
1613
|
-
type SearchOperatorType = z.infer<typeof searchOperatorTypeSchema>;
|
|
1614
|
-
type BookingType = z.infer<typeof bookingTypeSchema>;
|
|
1615
|
-
type PriorityType = z.infer<typeof priorityTypeSchema>;
|
|
1616
|
-
type SpecialRequestType = z.infer<typeof specialRequestTypeSchema>;
|
|
1617
|
-
type CommunicationMethodType = z.infer<typeof communicationMethodTypeSchema>;
|
|
1618
|
-
type CustomerAddress = z.infer<typeof customerAddressSchema>;
|
|
1619
|
-
type CustomerContact = z.infer<typeof customerContactSchema>;
|
|
1620
|
-
type Customer = z.infer<typeof customerSchema>;
|
|
1621
|
-
type Price = {
|
|
1622
|
-
currency: string;
|
|
1623
|
-
amount: number;
|
|
1624
|
-
};
|
|
1625
|
-
type BookingPassenger = z.infer<typeof bookingPassengerSchema>;
|
|
1626
|
-
type BookingService = z.infer<typeof bookingServiceSchema>;
|
|
1627
|
-
type BookingPayment = z.infer<typeof bookingPaymentSchema>;
|
|
1628
|
-
type SearchCustomerRequest = z.infer<typeof searchCustomerRequestSchema>;
|
|
1629
|
-
type CreateBookingRequest = z.infer<typeof createBookingRequestSchema>;
|
|
1630
|
-
type CancelBookingRequest = z.infer<typeof cancelBookingRequestSchema>;
|
|
1631
|
-
type PrintDocumentRequest = z.infer<typeof printDocumentRequestSchema>;
|
|
1632
|
-
type AddPaymentRequest = z.infer<typeof addPaymentRequestSchema>;
|
|
1633
|
-
type BookingResponse = z.infer<typeof bookingResponseSchema>;
|
|
1634
|
-
type CustomerSearchResult = z.infer<typeof customerSearchResultSchema>;
|
|
1635
|
-
type PrintedDocument = z.infer<typeof printedDocumentSchema>;
|
|
1636
|
-
type DocumentPrintResult = z.infer<typeof documentPrintResultSchema>;
|
|
1637
|
-
type OperationResponse<T = unknown> = {
|
|
1638
|
-
success: boolean;
|
|
1639
|
-
message?: string;
|
|
1640
|
-
data?: T;
|
|
1641
|
-
};
|
|
1642
|
-
type CancelResponseData = {
|
|
1643
|
-
refundInfo?: {
|
|
1644
|
-
refundAmount: number;
|
|
1645
|
-
currency: string;
|
|
1646
|
-
refundMethod: string;
|
|
1647
|
-
processingTime: string;
|
|
1648
|
-
};
|
|
1649
|
-
};
|
|
1650
|
-
type PaymentResponseData = {
|
|
1651
|
-
booking: BookingResponse;
|
|
1652
|
-
paymentSummary: {
|
|
1653
|
-
totalPaid: {
|
|
1654
|
-
currency: string;
|
|
1655
|
-
amount: number;
|
|
1656
|
-
};
|
|
1657
|
-
outstandingAmount: {
|
|
1658
|
-
currency: string;
|
|
1659
|
-
amount: number;
|
|
1660
|
-
};
|
|
1661
|
-
paymentHistory: BookingPayment[];
|
|
1662
|
-
};
|
|
1663
|
-
};
|
|
1664
|
-
declare const DocumentFormatType: {
|
|
1665
|
-
readonly PDF: "pdf";
|
|
1666
|
-
readonly HTML: "html";
|
|
1667
|
-
readonly XML: "xml";
|
|
1668
|
-
};
|
|
1669
|
-
type DocumentFormatType = (typeof DocumentFormatType)[keyof typeof DocumentFormatType];
|
|
1670
|
-
declare const DeliveryMethodType: {
|
|
1671
|
-
readonly EMAIL: "email";
|
|
1672
|
-
readonly SMS: "sms";
|
|
1673
|
-
readonly DOWNLOAD: "download";
|
|
1674
|
-
};
|
|
1675
|
-
type DeliveryMethodType = (typeof DeliveryMethodType)[keyof typeof DeliveryMethodType];
|
|
1676
|
-
|
|
1677
|
-
interface PassengerDetail {
|
|
1678
|
-
'@RPH': string;
|
|
1679
|
-
'@RoomRPH'?: string;
|
|
1680
|
-
'@BillingHolder'?: boolean;
|
|
1681
|
-
MasterRecordCode?: string;
|
|
1682
|
-
Name: string;
|
|
1683
|
-
CategoryCode: 'AD' | 'CH' | 'IN' | 'OV';
|
|
1684
|
-
Sex?: 'M' | 'F';
|
|
1685
|
-
BirthDate?: string;
|
|
1686
|
-
BirthPlace?: string;
|
|
1687
|
-
NationCode?: string;
|
|
1688
|
-
CitizenshipCode?: string;
|
|
1689
|
-
FiscalCode?: string;
|
|
1690
|
-
PhoneNumber?: string;
|
|
1691
|
-
eMail?: string;
|
|
1692
|
-
Notes?: {
|
|
1693
|
-
Note: {
|
|
1694
|
-
'@nType': 'ROOMING_LIST' | 'LEAVING_LIST' | 'TRANSFER_LIST' | 'CHECK_LIST';
|
|
1695
|
-
}[];
|
|
1696
|
-
};
|
|
1697
|
-
FlagStatus?: string;
|
|
1698
|
-
OfferCode?: string;
|
|
1699
|
-
IDDocInfo?: {
|
|
1700
|
-
'@IDType'?: string;
|
|
1701
|
-
'@IDCode'?: string;
|
|
1702
|
-
'@IDIssueLocation'?: string;
|
|
1703
|
-
'@IDIssueCounty'?: string;
|
|
1704
|
-
'@IDIssueDate'?: string;
|
|
1705
|
-
'@IDExpireDate'?: string;
|
|
1706
|
-
};
|
|
1707
|
-
}
|
|
1708
|
-
interface SearchMasterRecordRQ {
|
|
1709
|
-
SearchType: 'CODE' | 'NAME' | 'VATCODE' | 'ZONE' | 'CATEGORY' | 'EMAIL' | 'LASTMODDATE' | 'SEARCH_FIELD' | 'EXTERNAL_REF_CODE';
|
|
1710
|
-
RecordCode?: string;
|
|
1711
|
-
Name?: string;
|
|
1712
|
-
VatCode?: string;
|
|
1713
|
-
ZipCode?: string;
|
|
1714
|
-
City?: string;
|
|
1715
|
-
CountyCode?: string;
|
|
1716
|
-
PhoneNumber?: string;
|
|
1717
|
-
CategoryCode?: string;
|
|
1718
|
-
Email?: string;
|
|
1719
|
-
LastModificationDate?: {
|
|
1720
|
-
'@MinDate': string;
|
|
1721
|
-
'@MaxDate': string;
|
|
1722
|
-
};
|
|
1723
|
-
SearchFieldValue?: string;
|
|
1724
|
-
}
|
|
1725
|
-
interface MasterRecordDetail {
|
|
1726
|
-
'@RecordCode': string;
|
|
1727
|
-
'@InsertCriteria'?: 'S' | 'N' | 'T' | 'M';
|
|
1728
|
-
RecordType: 'CUSTOMER' | 'SUPPLIER' | 'VOUCHER' | 'SUPPLIER_VOUCHER';
|
|
1729
|
-
Name: string;
|
|
1730
|
-
LanguageCode: string;
|
|
1731
|
-
CreatedDate?: string;
|
|
1732
|
-
ModifiedDate?: string;
|
|
1733
|
-
LoginType?: 'WEB_BOOKING' | 'BUSINESS_TRAVEL' | 'GROUP_TRAVEL' | 'SUPPLIER' | 'ADMINISTRATOR';
|
|
1734
|
-
RecordStatus?: 'ENABLED' | 'WARNING' | 'BLACKLISTED' | 'DISABLED';
|
|
1735
|
-
ThirdPartRecordCode?: string;
|
|
1736
|
-
Moniker?: string;
|
|
1737
|
-
SearchField?: string;
|
|
1738
|
-
ExtraInfo?: string;
|
|
1739
|
-
Address?: string;
|
|
1740
|
-
ZipCode?: string;
|
|
1741
|
-
CityName?: string;
|
|
1742
|
-
CountyCode?: string;
|
|
1743
|
-
StateCode?: string;
|
|
1744
|
-
CitizenshipCode?: string;
|
|
1745
|
-
ZoneCode?: string;
|
|
1746
|
-
AreaCode?: string;
|
|
1747
|
-
BranchOfficeCode?: string;
|
|
1748
|
-
CategoryCode?: string;
|
|
1749
|
-
ActivityCode?: string;
|
|
1750
|
-
PromoterCode?: string;
|
|
1751
|
-
NetworkCode?: string;
|
|
1752
|
-
FirstPhoneNumber?: string;
|
|
1753
|
-
SecondPhoneNumber?: string;
|
|
1754
|
-
FaxNumber?: string;
|
|
1755
|
-
MobilePhone?: string;
|
|
1756
|
-
Email?: string;
|
|
1757
|
-
WebUrl?: string;
|
|
1758
|
-
Password?: string;
|
|
1759
|
-
EncryptedPassword?: boolean;
|
|
1760
|
-
Gender?: 'M' | 'F';
|
|
1761
|
-
BirthDate?: string;
|
|
1762
|
-
BirthCity?: string;
|
|
1763
|
-
BirthCounty?: string;
|
|
1764
|
-
FiscalCode?: string;
|
|
1765
|
-
VatCode?: string;
|
|
1766
|
-
PriceListCode?: string;
|
|
1767
|
-
CostListCode?: string;
|
|
1768
|
-
DiscountCode?: string;
|
|
1769
|
-
CardNumber?: string;
|
|
1770
|
-
ElectronicInvoiceCertifiedMail?: string;
|
|
1771
|
-
SupplierRefMasterRecords?: {
|
|
1772
|
-
'@BillingRefCode'?: string;
|
|
1773
|
-
'@PaymentRefCode'?: string;
|
|
1774
|
-
'@VoucherRefCode'?: string;
|
|
1775
|
-
'@SupplierRefCode'?: string;
|
|
1776
|
-
'@CompanyMainBusinessType'?: 'NOT_SET' | 'GENERIC' | 'TOURISTIC';
|
|
1777
|
-
'@CarrierType'?: 'NOT_SET' | 'FLIGHT' | 'SHIP' | 'TRAIN' | 'RENTCAR' | 'BUS' | 'DP_HOTEL' | 'TO_HOTEL' | 'TO_TOUR' | 'TO_HOTEL_AND_TOUR' | 'DP_AUTO' | 'DP_GDS_NAVI' | 'DP_GDS_VOLI' | 'TOUR_OPERATOR' | 'TICKETING_EV' | 'OTHER';
|
|
1778
|
-
'@CarrierCompanyCode'?: string;
|
|
1779
|
-
'@CarrierCompanyNumber'?: string;
|
|
1780
|
-
};
|
|
1781
|
-
CustomerRefMasterRecords?: {
|
|
1782
|
-
'@BillingRefCode'?: string;
|
|
1783
|
-
'@PaymentRefCode'?: string;
|
|
1784
|
-
};
|
|
1785
|
-
IdDocumentDetail?: {
|
|
1786
|
-
'@IDType'?: string;
|
|
1787
|
-
'@IDCode'?: string;
|
|
1788
|
-
'@IDIssueLocation'?: string;
|
|
1789
|
-
'@IDIssueCounty'?: string;
|
|
1790
|
-
'@IDIssueDate'?: string;
|
|
1791
|
-
'@IDExpireDate'?: string;
|
|
1792
|
-
};
|
|
1793
|
-
FinancialDetail?: {
|
|
1794
|
-
'@CurrencyCode'?: string;
|
|
1795
|
-
'@CreditLimit'?: string;
|
|
1796
|
-
'@C_PaymentType'?: 'CASH' | 'BANK' | 'RID' | 'RIBA' | 'SPECIFIC_CODE';
|
|
1797
|
-
'@C_SpecPaymentTypeCode'?: string;
|
|
1798
|
-
'@C_BookingPayConditionCode'?: string;
|
|
1799
|
-
'@C_BillingPayConditionCode'?: string;
|
|
1800
|
-
'@C_CodMastro'?: string;
|
|
1801
|
-
'@C_CodConto'?: string;
|
|
1802
|
-
'@S_PaymentType'?: 'CASH' | 'BANK' | 'RID' | 'RIBA' | 'SPECIFIC_CODE';
|
|
1803
|
-
'@S_SpecPaymentTypeCode'?: string;
|
|
1804
|
-
'@S_BookingPayConditionCode'?: string;
|
|
1805
|
-
'@S_BillingPayConditionCode'?: string;
|
|
1806
|
-
'@S_CodMastro'?: string;
|
|
1807
|
-
'@S_CodConto'?: string;
|
|
1808
|
-
'@EInvoicingEnabled'?: boolean;
|
|
1809
|
-
'@ElectronicInvoicingType'?: 'XML_SDI' | 'XML_BAVEL';
|
|
1810
|
-
};
|
|
1811
|
-
BankDetail?: {
|
|
1812
|
-
'@Name'?: string;
|
|
1813
|
-
'@BranchOffice'?: string;
|
|
1814
|
-
'@Location'?: string;
|
|
1815
|
-
'@CountyCode'?: string;
|
|
1816
|
-
'@IbanCode'?: string;
|
|
1817
|
-
'@SwiftCode'?: string;
|
|
1818
|
-
};
|
|
1819
|
-
PaInfo?: {
|
|
1820
|
-
PaOfficeCode?: string;
|
|
1821
|
-
PaAdministrativeRefCode?: string;
|
|
1822
|
-
VatSplitPaymentEnabled?: boolean;
|
|
1823
|
-
InvoiceIntermediateServicesEnabled?: boolean;
|
|
1824
|
-
};
|
|
1825
|
-
CarrierDetail?: {
|
|
1826
|
-
'@CarrierType'?: 'AIRLINE' | 'FERRIES' | 'RAILWAY' | 'OTHER';
|
|
1827
|
-
'@IataCode'?: string;
|
|
1828
|
-
'@CarrierNumber'?: string;
|
|
1829
|
-
'@BSPAssociated'?: boolean;
|
|
1830
|
-
};
|
|
1831
|
-
NatFlightCommission?: {
|
|
1832
|
-
'@SupplierRecordCode'?: string;
|
|
1833
|
-
'@Amount'?: string;
|
|
1834
|
-
};
|
|
1835
|
-
InterFlightCommission?: {
|
|
1836
|
-
'@SupplierRecordCode'?: string;
|
|
1837
|
-
'@Amount'?: string;
|
|
1838
|
-
};
|
|
1839
|
-
NatRailCommission?: {
|
|
1840
|
-
'@SupplierRecordCode'?: string;
|
|
1841
|
-
'@Amount'?: string;
|
|
1842
|
-
};
|
|
1843
|
-
InterRailCommission?: {
|
|
1844
|
-
'@SupplierRecordCode'?: string;
|
|
1845
|
-
'@Amount'?: string;
|
|
1846
|
-
};
|
|
1847
|
-
InterNavalCommission?: {
|
|
1848
|
-
'@SupplierRecordCode'?: string;
|
|
1849
|
-
'@Amount'?: string;
|
|
1850
|
-
};
|
|
1851
|
-
Notes?: {
|
|
1852
|
-
Note: {
|
|
1853
|
-
'@nType': string;
|
|
1854
|
-
'@Title'?: string;
|
|
1855
|
-
Text: string;
|
|
1856
|
-
}[];
|
|
1857
|
-
};
|
|
1858
|
-
AccountPolicies?: {
|
|
1859
|
-
'@AcceptProfilingPolicies'?: boolean;
|
|
1860
|
-
'@AcceptPrivacyPolicies'?: boolean;
|
|
1861
|
-
'@AcceptNewsletterPolicies'?: boolean;
|
|
1862
|
-
};
|
|
1863
|
-
BadgeDetail?: {
|
|
1864
|
-
'@BadgeNumber': string;
|
|
1865
|
-
'@IssueDate'?: string;
|
|
1866
|
-
'@ExpireDate'?: string;
|
|
1867
|
-
};
|
|
1868
|
-
}
|
|
1869
|
-
interface SearchMasterRecordRS {
|
|
1870
|
-
MasterRecordList?: {
|
|
1871
|
-
MasterRecordDetail: MasterRecordDetail[];
|
|
1872
|
-
};
|
|
1873
|
-
}
|
|
1874
|
-
interface ManageMasterRecordRQ {
|
|
1875
|
-
CopyDataToCrm?: boolean;
|
|
1876
|
-
CheckExistenceMasterCodeWithOtherManagement?: 'YES_STRICTLY_THE_SAME' | 'YES_IF_NOT_EXIST_CONTINUE_WITH_THE_OTHER_CHECKS' | 'NO';
|
|
1877
|
-
MasterRecordDetail: MasterRecordDetail;
|
|
1878
|
-
}
|
|
1879
|
-
interface CustomerRecordRS {
|
|
1880
|
-
MasterRecordDetail: MasterRecordDetail;
|
|
1881
|
-
}
|
|
1882
|
-
interface BookFileRQ {
|
|
1883
|
-
CreateDate?: string;
|
|
1884
|
-
BookingFileRefCode?: string;
|
|
1885
|
-
TravelAgentCode?: string;
|
|
1886
|
-
ClerkName?: string;
|
|
1887
|
-
CustomerDetail: MasterRecordDetail;
|
|
1888
|
-
CurrencyCode?: string;
|
|
1889
|
-
MarkupCode?: string;
|
|
1890
|
-
BookingFileStatus: {
|
|
1891
|
-
'@Value': 'QUOTATION' | 'WORK_IN_PROGRESS' | 'CONFIRMED' | 'OPTIONED' | 'NULLIFIED' | 'CANCELED';
|
|
1892
|
-
'@ExpiredDate'?: string;
|
|
1893
|
-
};
|
|
1894
|
-
StatisticCodes?: {
|
|
1895
|
-
'@sCode1'?: string;
|
|
1896
|
-
'@sCode2'?: string;
|
|
1897
|
-
'@sCode3'?: string;
|
|
1898
|
-
'@sCode4'?: string;
|
|
1899
|
-
'@sCode5'?: string;
|
|
1900
|
-
'@sCode6'?: string;
|
|
1901
|
-
};
|
|
1902
|
-
Destination?: {
|
|
1903
|
-
'@Code'?: string;
|
|
1904
|
-
'@IataCode'?: string;
|
|
1905
|
-
'@NationCode'?: string;
|
|
1906
|
-
};
|
|
1907
|
-
BookingFileDescription?: string;
|
|
1908
|
-
StartDate: string;
|
|
1909
|
-
EndDate: string;
|
|
1910
|
-
EarlyBookingDate?: string;
|
|
1911
|
-
CupCode?: string;
|
|
1912
|
-
CigCode?: string;
|
|
1913
|
-
CustomerPromoterCode?: string;
|
|
1914
|
-
BillingReferenceCode?: string;
|
|
1915
|
-
PaymentReferenceCode?: string;
|
|
1916
|
-
BookingFileDocument?: {
|
|
1917
|
-
'@PrintDoc': boolean;
|
|
1918
|
-
'@SendDocViaEmail': boolean;
|
|
1919
|
-
InfoDocumentsToPrint?: {
|
|
1920
|
-
InfoDocumentToPrint: {
|
|
1921
|
-
DocumentType: string;
|
|
1922
|
-
DocumentCustomizablePrintParameters?: any;
|
|
1923
|
-
}[];
|
|
1924
|
-
};
|
|
1925
|
-
};
|
|
1926
|
-
FinancialDeadlineList?: {
|
|
1927
|
-
DeadlineDetail: {
|
|
1928
|
-
'@ReschedulingCode': string;
|
|
1929
|
-
'@ExpireDate'?: string;
|
|
1930
|
-
'@TotalAmount'?: string;
|
|
1931
|
-
}[];
|
|
1932
|
-
};
|
|
1933
|
-
DeadlineList?: {
|
|
1934
|
-
DeadlineDetail: {
|
|
1935
|
-
'@DeadlineCode': string;
|
|
1936
|
-
'@Description'?: string;
|
|
1937
|
-
'@ExpireDate'?: string;
|
|
1938
|
-
}[];
|
|
1939
|
-
};
|
|
1940
|
-
PaymentList?: {
|
|
1941
|
-
PaymentDetail: {
|
|
1942
|
-
'@PaymentDate': string;
|
|
1943
|
-
'@PaumentNote'?: string;
|
|
1944
|
-
'@Amount': string;
|
|
1945
|
-
'@PaymentUser'?: string;
|
|
1946
|
-
'@PaymentType': string;
|
|
1947
|
-
}[];
|
|
1948
|
-
};
|
|
1949
|
-
SelectedPackageList?: {
|
|
1950
|
-
SelectedPackageDetail: {
|
|
1951
|
-
'@pCode': string;
|
|
1952
|
-
'@StartDate': string;
|
|
1953
|
-
'@EndDate': string;
|
|
1954
|
-
'@GetServicesFromPackage'?: boolean;
|
|
1955
|
-
}[];
|
|
1956
|
-
};
|
|
1957
|
-
SelectedServiceList: {
|
|
1958
|
-
SelectedServiceDetail: SelectedServiceDetail[];
|
|
1959
|
-
};
|
|
1960
|
-
ExtraQuotaRefCode?: string;
|
|
1961
|
-
ExtraQuoteServiceList?: {
|
|
1962
|
-
ExtraQuoteServiceDetail: SelectedServiceDetail[];
|
|
1963
|
-
};
|
|
1964
|
-
GetExtraQuoteFromSystem?: boolean;
|
|
1965
|
-
PassengerList: {
|
|
1966
|
-
PassengerDetail: PassengerDetail[];
|
|
1967
|
-
};
|
|
1968
|
-
NoteList?: {
|
|
1969
|
-
NoteDetail: {
|
|
1970
|
-
'@nType': string;
|
|
1971
|
-
'@Title'?: string;
|
|
1972
|
-
Text: string;
|
|
1973
|
-
}[];
|
|
1974
|
-
};
|
|
1975
|
-
BookingFinancialInfo?: {
|
|
1976
|
-
'@Customer_PaymentType': 'CASH' | 'BANK' | 'RID' | 'RIBA' | 'SPECIFIC_CODE' | 'NOT_SET';
|
|
1977
|
-
'@Customer_SpecPaymentTypeCode'?: string;
|
|
1978
|
-
};
|
|
1979
|
-
BookingFileCode?: string;
|
|
1980
|
-
GroupingPaxPolicy?: 'GROUPED_PAX' | 'NOT_GROUPED_PAX' | 'ONE_PAX_ONLY';
|
|
1981
|
-
GroupBookingFile?: boolean;
|
|
1982
|
-
TypeDownloadFile?: 'AVES2AVES' | 'AVES2AVESVIA' | 'AVES2AVESITA';
|
|
1983
|
-
SetBookingFileCodeFromStartDate?: boolean;
|
|
1984
|
-
}
|
|
1985
|
-
interface SelectedServiceDetail {
|
|
1986
|
-
'@sCode': string;
|
|
1987
|
-
'@ssCode'?: string;
|
|
1988
|
-
AvesServiceType: 'TOP' | 'TOP_SS' | 'ADV' | 'GRP' | 'OTHER';
|
|
1989
|
-
TOServiceType?: string;
|
|
1990
|
-
FirstDescription?: string;
|
|
1991
|
-
SecondDescription?: string;
|
|
1992
|
-
StartDate: string;
|
|
1993
|
-
EndDate: string;
|
|
1994
|
-
CreateDate?: string;
|
|
1995
|
-
Qty: number;
|
|
1996
|
-
Pax: number;
|
|
1997
|
-
PaxAssociated?: {
|
|
1998
|
-
Pax: string[];
|
|
1999
|
-
};
|
|
2000
|
-
VoucherMasterCode?: string;
|
|
2001
|
-
SupplierMasterCode?: string;
|
|
2002
|
-
AvesServiceInfo?: {
|
|
2003
|
-
'@PackageCode'?: string;
|
|
2004
|
-
'@PackageReference'?: string;
|
|
2005
|
-
'@SuballotmentCode'?: string;
|
|
2006
|
-
'@PriceListCode'?: string;
|
|
2007
|
-
'@CostListCode'?: string;
|
|
2008
|
-
'@ExternalFileCode'?: string;
|
|
2009
|
-
'@ExternalReference'?: string;
|
|
2010
|
-
'@CreditCard'?: string;
|
|
2011
|
-
'@PaymentAtType'?: 'OUR_AGENCY' | 'OPERATOR' | 'DEPOSIT';
|
|
2012
|
-
'@ServiceStatus'?: string;
|
|
2013
|
-
'@ServiceStatisticCode'?: string;
|
|
2014
|
-
ServiceFare?: any;
|
|
2015
|
-
TransferRouteList?: any;
|
|
2016
|
-
PullmanRouteList?: any;
|
|
2017
|
-
FlightRouteList?: any;
|
|
2018
|
-
};
|
|
2019
|
-
HotelServiceInfo?: any;
|
|
2020
|
-
CarRentalServiceInfo?: any;
|
|
2021
|
-
FlightServiceInfo?: any;
|
|
2022
|
-
ShipServiceInfo?: any;
|
|
2023
|
-
TicketServiceInfo?: any;
|
|
2024
|
-
Commission?: any;
|
|
2025
|
-
NoteList?: {
|
|
2026
|
-
NoteDetail: {
|
|
2027
|
-
'@nType': string;
|
|
2028
|
-
'@Title'?: string;
|
|
2029
|
-
Text: string;
|
|
2030
|
-
}[];
|
|
2031
|
-
};
|
|
2032
|
-
BookedServiceRef?: string;
|
|
2033
|
-
VoucherInfo?: {
|
|
2034
|
-
'@AccomodationCode'?: string;
|
|
2035
|
-
'@BoardCode'?: string;
|
|
2036
|
-
};
|
|
2037
|
-
AvesSession: number;
|
|
2038
|
-
}
|
|
2039
|
-
interface BookedServiceDetail {
|
|
2040
|
-
'@RPH': string;
|
|
2041
|
-
'@ServiceCode': string;
|
|
2042
|
-
'@FromExternalProvider': boolean;
|
|
2043
|
-
AvesServiceType: 'TOP' | 'TOP_SS' | 'ADV' | 'GRP' | 'OTHER';
|
|
2044
|
-
TOServiceType?: string;
|
|
2045
|
-
FirstDescription: string;
|
|
2046
|
-
SecondDescription?: string;
|
|
2047
|
-
ThirdDescription?: string;
|
|
2048
|
-
FourthDescription?: string;
|
|
2049
|
-
ServiceStatus: string;
|
|
2050
|
-
StartDate: string;
|
|
2051
|
-
EndDate: string;
|
|
2052
|
-
Qty: number;
|
|
2053
|
-
Pax: number;
|
|
2054
|
-
PeriodType?: string;
|
|
2055
|
-
PaxMultiplier?: string;
|
|
2056
|
-
ExternalProviderCode?: string;
|
|
2057
|
-
WebStatistic?: {
|
|
2058
|
-
'@Code'?: string;
|
|
2059
|
-
'@Description'?: string;
|
|
2060
|
-
};
|
|
2061
|
-
SupplierInfo?: {
|
|
2062
|
-
'@Code'?: string;
|
|
2063
|
-
'@Name'?: string;
|
|
2064
|
-
'@Email'?: string;
|
|
2065
|
-
'@LanguageCode'?: string;
|
|
2066
|
-
};
|
|
2067
|
-
ServiceTotalAmountDetail?: {
|
|
2068
|
-
CommissionCode?: string;
|
|
2069
|
-
CommissionPercentage?: string;
|
|
2070
|
-
CommissionAmount?: string;
|
|
2071
|
-
PriceListCode?: string;
|
|
2072
|
-
CostListCode?: string;
|
|
2073
|
-
ServiceTotalPrice?: string;
|
|
2074
|
-
};
|
|
2075
|
-
}
|
|
2076
|
-
interface BookingFile {
|
|
2077
|
-
BookingFileCode: string;
|
|
2078
|
-
CustomerRecordCode: string;
|
|
2079
|
-
CustomerName: string;
|
|
2080
|
-
CustomerEmail?: string;
|
|
2081
|
-
BookingFileStatus: {
|
|
2082
|
-
'@Value': string;
|
|
2083
|
-
'@ExpiredDate'?: string;
|
|
2084
|
-
};
|
|
2085
|
-
Description: string;
|
|
2086
|
-
Nation?: string;
|
|
2087
|
-
Destination?: string;
|
|
2088
|
-
CreationDate: string;
|
|
2089
|
-
FirstConfirmationDate?: string;
|
|
2090
|
-
StartDate: string;
|
|
2091
|
-
EndDate: string;
|
|
2092
|
-
PackageCode?: string;
|
|
2093
|
-
BookedServiceList?: {
|
|
2094
|
-
BookedServiceDetail: BookedServiceDetail[];
|
|
2095
|
-
};
|
|
2096
|
-
TotalAmountDetail?: {
|
|
2097
|
-
CurrencyCode: string;
|
|
2098
|
-
TotalAmountBeforeDiscount: string;
|
|
2099
|
-
TotalAmountAfterDiscount: string;
|
|
2100
|
-
TotalDiscount: string;
|
|
2101
|
-
TotalAmountWithoutVat: string;
|
|
2102
|
-
DueAmount: string;
|
|
2103
|
-
PaiedAmount: string;
|
|
2104
|
-
Balance: string;
|
|
2105
|
-
};
|
|
2106
|
-
PaxNumber: number;
|
|
2107
|
-
PassengerList: {
|
|
2108
|
-
PassengerDetail: PassengerDetail[];
|
|
2109
|
-
};
|
|
2110
|
-
Reference?: string;
|
|
2111
|
-
ClerkName?: string;
|
|
2112
|
-
}
|
|
2113
|
-
interface BookingFileRS {
|
|
2114
|
-
BookingFile: BookingFile;
|
|
2115
|
-
OperationResult: {
|
|
2116
|
-
'@Status': 'SUCCESS' | 'FAILED';
|
|
2117
|
-
'@Message'?: string;
|
|
2118
|
-
'@BookingFileID'?: string;
|
|
2119
|
-
};
|
|
2120
|
-
}
|
|
2121
|
-
interface CancelFileRQ {
|
|
2122
|
-
BookingFileCode: string;
|
|
2123
|
-
CustomerRecordCode: string;
|
|
2124
|
-
}
|
|
2125
|
-
interface CancelFileRS {
|
|
2126
|
-
BookingFile: BookingFile;
|
|
2127
|
-
OperationResult: {
|
|
2128
|
-
'@Status': 'SUCCESS' | 'FAILED';
|
|
2129
|
-
'@Message'?: string;
|
|
2130
|
-
RefundInfo?: {
|
|
2131
|
-
'@RefundAmount': number;
|
|
2132
|
-
'@Currency': string;
|
|
2133
|
-
'@RefundMethod': string;
|
|
2134
|
-
'@ProcessingTime': string;
|
|
2135
|
-
};
|
|
2136
|
-
};
|
|
2137
|
-
}
|
|
2138
|
-
interface PrintBookingDocumentRQ {
|
|
2139
|
-
RefMasterRecordCode: string;
|
|
2140
|
-
LanguageCode: string;
|
|
2141
|
-
BookingFileCode: string;
|
|
2142
|
-
InfoDocumentsToPrint: {
|
|
2143
|
-
InfoDocumentToPrint: {
|
|
2144
|
-
DocumentType: 'VISA_REQUEST' | 'TRAVEL_INFORMATION' | 'VOUCHER' | 'BOOKING_CONTRACT' | 'BOOKING_CONFIRMATION' | 'SUPPLIER_SERVICE_LIST' | 'INVOICE' | 'PROFORMA_INVOICE' | 'ADEGUAMENTO' | 'RESERVATION_FORM' | 'OPEN_XML' | 'SALES_INVOICE' | 'TICKETING_TMASTER' | 'SUMMARY_FORM';
|
|
2145
|
-
DocumentCustomizablePrintParameters?: {
|
|
2146
|
-
'@MakeDocumentTo': 'BOOKING_CUSTOMER' | 'FIRST_PASSENGER';
|
|
2147
|
-
} | {
|
|
2148
|
-
FillInCode: string;
|
|
2149
|
-
};
|
|
2150
|
-
}[];
|
|
2151
|
-
};
|
|
2152
|
-
ReprintDocument?: boolean;
|
|
2153
|
-
PrintDocumentWithZeroTotalAmount?: boolean;
|
|
2154
|
-
GetDocumentContent?: boolean;
|
|
2155
|
-
SendDocumentViaEmail?: boolean;
|
|
2156
|
-
SkipCustomerCodeControl?: boolean;
|
|
2157
|
-
}
|
|
2158
|
-
interface PrintBookingDocumentRS {
|
|
2159
|
-
EmailRecipient?: string;
|
|
2160
|
-
DocFileName?: string;
|
|
2161
|
-
Base64DocContent?: string;
|
|
2162
|
-
BaseDocumentAndAttachments?: {
|
|
2163
|
-
SingleBaseDocumentOrAttachment: {
|
|
2164
|
-
DocFileName: string;
|
|
2165
|
-
Base64DocContent?: string;
|
|
2166
|
-
}[];
|
|
2167
|
-
};
|
|
2168
|
-
AdditionalDocuments?: {
|
|
2169
|
-
AdditionalDocument: {
|
|
2170
|
-
EmailRecipient: string;
|
|
2171
|
-
DocFileName: string;
|
|
2172
|
-
Base64DocContent?: string;
|
|
2173
|
-
BaseDocumentAndAttachments?: {
|
|
2174
|
-
SingleBaseDocumentOrAttachment: {
|
|
2175
|
-
DocFileName: string;
|
|
2176
|
-
Base64DocContent?: string;
|
|
2177
|
-
}[];
|
|
2178
|
-
};
|
|
2179
|
-
}[];
|
|
2180
|
-
};
|
|
2181
|
-
}
|
|
2182
|
-
|
|
2183
|
-
declare class AvesService {
|
|
2184
|
-
private readonly config;
|
|
2185
|
-
private readonly http;
|
|
2186
|
-
constructor(config: AvesSdkConfig, http: IXmlHttpClient);
|
|
2187
|
-
private buildHeader;
|
|
2188
|
-
private wrapRequest;
|
|
2189
|
-
searchCustomers(request: SearchCustomerRequest): Promise<CustomerSearchResult>;
|
|
2190
|
-
createCustomer(customer: Customer): Promise<OperationResponse<Customer>>;
|
|
2191
|
-
updateCustomer(customer: Customer): Promise<OperationResponse<Customer>>;
|
|
2192
|
-
upsertCustomer(customer: Customer): Promise<OperationResponse<Customer>>;
|
|
2193
|
-
createBooking(request: CreateBookingRequest): Promise<OperationResponse<BookingResponse>>;
|
|
2194
|
-
updateBookingHeader(customerRecordCode: string, bookingFileCode: string, bookingFileStartDate: string, updates?: {
|
|
2195
|
-
newCustomerRecordCode?: string;
|
|
2196
|
-
passengers?: any[];
|
|
2197
|
-
notes?: string;
|
|
2198
|
-
}): Promise<OperationResponse<void>>;
|
|
2199
|
-
updateBookingServices(customerRecordCode: string, bookingFileCode: string, services: BookingService[]): Promise<OperationResponse<BookingResponse>>;
|
|
2200
|
-
setBookingStatus(customerRecordCode: string, bookingFileCode: string, status: BookingStatusTypeValue, options?: {
|
|
2201
|
-
expiredDate?: string;
|
|
2202
|
-
optionedFileExpireDatePolicy?: 'NOT_SET' | 'CONSIDER_HOLIDAY' | 'CONSIDER_HOLIDAY_AND_SATURDAY';
|
|
2203
|
-
backOfficeRequest?: boolean;
|
|
2204
|
-
printDoc?: boolean;
|
|
2205
|
-
sendDocViaEmail?: boolean;
|
|
2206
|
-
applyPenalty?: boolean;
|
|
2207
|
-
penaltyCode?: string;
|
|
2208
|
-
simulateCancelAndGetPenalty?: boolean;
|
|
2209
|
-
}): Promise<OperationResponse<BookingResponse>>;
|
|
2210
|
-
setBookingServiceStatus(customerRecordCode: string, bookingFileCode: string, serviceRef: string, statusDate?: string): Promise<OperationResponse<BookingResponse>>;
|
|
2211
|
-
cancelBooking(request: CancelBookingRequest): Promise<OperationResponse<CancelResponseData>>;
|
|
2212
|
-
addPayment(request: AddPaymentRequest): Promise<OperationResponse<PaymentResponseData>>;
|
|
2213
|
-
printDocument(request: PrintDocumentRequest): Promise<OperationResponse<DocumentPrintResult>>;
|
|
2214
|
-
searchMasterRecord(payload: SearchMasterRecordRQ): Promise<AvesResponseRoot<SearchMasterRecordRS>>;
|
|
2215
|
-
insertOrUpdateMasterRecord(payload: ManageMasterRecordRQ): Promise<AvesResponseRoot<CustomerRecordRS>>;
|
|
2216
|
-
createBookingFile(payload: BookFileRQ): Promise<AvesResponseRoot<BookingFileRS>>;
|
|
2217
|
-
cancelBookingFile(payload: CancelFileRQ): Promise<AvesResponseRoot<CancelFileRS>>;
|
|
2218
|
-
printBookingDocument(payload: PrintBookingDocumentRQ): Promise<AvesResponseRoot<PrintBookingDocumentRS>>;
|
|
2219
|
-
}
|
|
2220
|
-
|
|
2221
|
-
declare class AvesException extends Error {
|
|
2222
|
-
readonly code: string;
|
|
2223
|
-
readonly severity: AvesSeverity;
|
|
2224
|
-
readonly timestamp: string;
|
|
2225
|
-
readonly requestId: string;
|
|
2226
|
-
readonly context?: Record<string, any>;
|
|
2227
|
-
constructor(code: string | AvesErrorCodes, message: string, options?: {
|
|
2228
|
-
severity?: AvesSeverity;
|
|
2229
|
-
context?: Record<string, any>;
|
|
2230
|
-
requestId?: string;
|
|
2231
|
-
});
|
|
2232
|
-
static fromAvesError(avesError: AvesError): AvesException;
|
|
2233
|
-
isRetryable(): boolean;
|
|
2234
|
-
getUserFriendlyMessage(): string;
|
|
2235
|
-
toJSON(): Record<string, any>;
|
|
2236
|
-
toAvesError(): AvesError;
|
|
2237
|
-
getHttpStatusCode(): number;
|
|
2238
|
-
getCategory(): string;
|
|
2239
|
-
private generateRequestId;
|
|
2240
|
-
}
|
|
2241
|
-
|
|
2242
|
-
declare class AvesErrorHandler {
|
|
2243
|
-
parseError(error: any): AvesException;
|
|
2244
|
-
private parseHttpError;
|
|
2245
|
-
private parseAvesXmlError;
|
|
2246
|
-
isRetryable(error: AvesException): boolean;
|
|
2247
|
-
getUserFriendlyMessage(error: AvesException): string;
|
|
2248
|
-
private buildContext;
|
|
2249
|
-
private isSensitiveKey;
|
|
2250
|
-
private isSerializableValue;
|
|
2251
|
-
private isHttpError;
|
|
2252
|
-
private isAvesXmlResponse;
|
|
2253
|
-
}
|
|
2254
|
-
|
|
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 };
|