aves-sdk 1.2.16 → 1.3.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.d.mts +2079 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +10 -12
- package/dist/index.cjs +0 -3
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -1130
- package/dist/index.d.ts +0 -1130
- package/dist/index.js +0 -3
- package/dist/index.js.map +0 -1
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,2079 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
import { InferInput, InferOutput } from "valibot";
|
|
3
|
+
|
|
4
|
+
//#region src/error.d.ts
|
|
5
|
+
declare const ERROR_KINDS: {
|
|
6
|
+
readonly VALIDATION: "validation";
|
|
7
|
+
readonly API: "api";
|
|
8
|
+
readonly UNKNOWN: "unknown";
|
|
9
|
+
};
|
|
10
|
+
type ErrorKind = (typeof ERROR_KINDS)[keyof typeof ERROR_KINDS];
|
|
11
|
+
/**
|
|
12
|
+
* Error thrown by AVES API operations
|
|
13
|
+
*/
|
|
14
|
+
declare class AvesError extends Error {
|
|
15
|
+
readonly kind: ErrorKind;
|
|
16
|
+
readonly message: string;
|
|
17
|
+
readonly status?: string | undefined;
|
|
18
|
+
readonly code?: number | string | undefined;
|
|
19
|
+
constructor(kind: ErrorKind, message: string, status?: string | undefined, code?: number | string | undefined);
|
|
20
|
+
private parseCode;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/schemas/booking-file.d.ts
|
|
24
|
+
/**
|
|
25
|
+
* Booking file request body schema (camelCase input).
|
|
26
|
+
* Maps to BookFileRQ in AVES XML 1.8.0 CreateBookingFile.
|
|
27
|
+
*/
|
|
28
|
+
declare const BookingFileSchema: v.ObjectSchema<{
|
|
29
|
+
readonly createDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
30
|
+
readonly bookingFileRefCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
31
|
+
readonly travelAgentCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
32
|
+
readonly clerkName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
33
|
+
readonly customerDetail: v.ObjectSchema<{
|
|
34
|
+
readonly recordCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
35
|
+
}, undefined>;
|
|
36
|
+
readonly currencyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
37
|
+
readonly markupCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
38
|
+
readonly bookingFileStatus: v.ObjectSchema<{
|
|
39
|
+
readonly value: v.UnionSchema<[v.LiteralSchema<"QUOTATION", undefined>, v.LiteralSchema<"WORK_IN_PROGRESS", undefined>, v.LiteralSchema<"CONFIRM", undefined>, v.LiteralSchema<"CONFIRMED", undefined>, v.LiteralSchema<"OPTION", undefined>, v.LiteralSchema<"OPTIONED", undefined>, v.LiteralSchema<"REQUEST", undefined>, v.LiteralSchema<"CANCELED", undefined>], undefined>;
|
|
40
|
+
readonly expiredDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
41
|
+
}, undefined>;
|
|
42
|
+
readonly statisticCodes: v.OptionalSchema<v.ObjectSchema<{
|
|
43
|
+
readonly sCode1: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4, undefined>]>, undefined>;
|
|
44
|
+
readonly sCode2: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4, undefined>]>, undefined>;
|
|
45
|
+
readonly sCode3: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4, undefined>]>, undefined>;
|
|
46
|
+
readonly sCode4: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4, undefined>]>, undefined>;
|
|
47
|
+
readonly sCode5: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4, undefined>]>, undefined>;
|
|
48
|
+
readonly sCode6: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4, undefined>]>, undefined>;
|
|
49
|
+
}, undefined>, undefined>;
|
|
50
|
+
readonly destination: v.OptionalSchema<v.ObjectSchema<{
|
|
51
|
+
readonly code: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
52
|
+
readonly iataCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
53
|
+
readonly nationCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
54
|
+
}, undefined>, undefined>;
|
|
55
|
+
readonly bookingFileDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
56
|
+
readonly startDate: v.StringSchema<undefined>;
|
|
57
|
+
readonly endDate: v.StringSchema<undefined>;
|
|
58
|
+
readonly earlyBookingDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
59
|
+
readonly cupCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
60
|
+
readonly cigCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
61
|
+
readonly customerPromoterCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
62
|
+
readonly billingReferenceCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
63
|
+
readonly paymentReferenceCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
64
|
+
readonly bookingFileDocument: v.OptionalSchema<v.ObjectSchema<{
|
|
65
|
+
readonly printDoc: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
66
|
+
readonly sendDocViaEmail: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
67
|
+
readonly infoDocumentsToPrint: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
68
|
+
readonly documentType: v.UnionSchema<[v.LiteralSchema<"VISA_REQUEST", undefined>, v.LiteralSchema<"TRAVEL_INFORMATION", undefined>, v.LiteralSchema<"VOUCHER", undefined>, v.LiteralSchema<"BOOKING_CONTRACT", undefined>, v.LiteralSchema<"BOOKING_CONFIRMATION", undefined>, v.LiteralSchema<"SUPPLIER_SERVICE_LIST", undefined>, v.LiteralSchema<"INVOICE", undefined>, v.LiteralSchema<"PROFORMA_INVOICE", undefined>, v.LiteralSchema<"ADEGUAMENTO", undefined>, v.LiteralSchema<"RESERVATION_FORM", undefined>, v.LiteralSchema<"OPEN_XML", undefined>, v.LiteralSchema<"SALES_INVOICE", undefined>, v.LiteralSchema<"TICKETING_TMASTER", undefined>, v.LiteralSchema<"SUMMARY_FORM", undefined>], undefined>;
|
|
69
|
+
readonly documentCustomizablePrintParameters: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
70
|
+
readonly makeDocumentTo: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"BOOKING_CUSTOMER", undefined>, v.LiteralSchema<"FIRST_PASSENGER", undefined>], undefined>, undefined>;
|
|
71
|
+
}, undefined>, v.ObjectSchema<{
|
|
72
|
+
readonly fillInCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
73
|
+
}, undefined>], undefined>, undefined>;
|
|
74
|
+
}, undefined>, undefined>, undefined>;
|
|
75
|
+
}, undefined>, undefined>;
|
|
76
|
+
readonly financialDeadlineList: v.OptionalSchema<v.ObjectSchema<{
|
|
77
|
+
readonly deadlineDetail: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
78
|
+
readonly reschedulingCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
79
|
+
readonly expireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
80
|
+
readonly totalAmount: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
81
|
+
}, undefined>, undefined>, undefined>;
|
|
82
|
+
}, undefined>, undefined>;
|
|
83
|
+
readonly deadlineList: v.OptionalSchema<v.ObjectSchema<{
|
|
84
|
+
readonly deadlineDetail: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
85
|
+
readonly deadlineCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
86
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
87
|
+
readonly expireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
88
|
+
}, undefined>, undefined>, undefined>;
|
|
89
|
+
}, undefined>, undefined>;
|
|
90
|
+
readonly paymentList: v.OptionalSchema<v.ObjectSchema<{
|
|
91
|
+
readonly paymentDetail: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
92
|
+
readonly paymentDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
93
|
+
readonly paumentNote: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
94
|
+
readonly amount: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
95
|
+
readonly paymentUser: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
96
|
+
readonly paymentType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"C", undefined>, v.LiteralSchema<"B", undefined>, v.LiteralSchema<"D", undefined>, v.LiteralSchema<"T", undefined>, v.LiteralSchema<"P", undefined>, v.LiteralSchema<"R", undefined>, v.LiteralSchema<"A", undefined>, v.LiteralSchema<"H", undefined>, v.LiteralSchema<"I", undefined>, v.LiteralSchema<"J", undefined>, v.LiteralSchema<"K", undefined>, v.LiteralSchema<"L", undefined>, v.LiteralSchema<"M", undefined>, v.LiteralSchema<"N", undefined>, v.LiteralSchema<"O", undefined>, v.LiteralSchema<"Q", undefined>, v.LiteralSchema<"S", undefined>, v.LiteralSchema<"U", undefined>, v.LiteralSchema<"V", undefined>], undefined>, undefined>;
|
|
97
|
+
}, undefined>, undefined>, undefined>;
|
|
98
|
+
}, undefined>, undefined>;
|
|
99
|
+
readonly selectedPackageList: v.OptionalSchema<v.ObjectSchema<{
|
|
100
|
+
readonly selectedPackageDetail: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
101
|
+
readonly pCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
102
|
+
readonly startDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
103
|
+
readonly endDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
104
|
+
readonly getServicesFromPackage: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
105
|
+
}, undefined>, undefined>, undefined>;
|
|
106
|
+
}, undefined>, undefined>;
|
|
107
|
+
readonly selectedServiceList: v.ObjectSchema<{
|
|
108
|
+
readonly selectedServiceDetail: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ArraySchema<v.ObjectSchema<{
|
|
109
|
+
readonly sCode: v.StringSchema<undefined>;
|
|
110
|
+
readonly ssCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
111
|
+
readonly avesServiceType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"TOP", undefined>, v.LiteralSchema<"TOP_SS", undefined>, v.LiteralSchema<"ADV", undefined>, v.LiteralSchema<"GRP", undefined>, v.LiteralSchema<"OTHER", undefined>], undefined>, undefined>;
|
|
112
|
+
readonly toServiceType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"ACCOMODATION", undefined>, v.LiteralSchema<"TRANSPORT", undefined>, v.LiteralSchema<"CHARTER", undefined>, v.LiteralSchema<"TRANSFER", undefined>, v.LiteralSchema<"PULLMAN", undefined>, v.LiteralSchema<"FERRY", undefined>, v.LiteralSchema<"CRUISE", undefined>, v.LiteralSchema<"INSURANCE", undefined>, v.LiteralSchema<"EXTRAFEE", undefined>, v.LiteralSchema<"PENALTY", undefined>, v.LiteralSchema<"PROMO", undefined>, v.LiteralSchema<"OTHER", undefined>, v.LiteralSchema<"NOT_SET", undefined>, v.LiteralSchema<"RESIDENCE", undefined>], undefined>, undefined>;
|
|
113
|
+
readonly subServiceDesc: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
114
|
+
readonly startDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
115
|
+
readonly endDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
116
|
+
readonly qty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
117
|
+
readonly pax: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
118
|
+
readonly paxAssociated: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
119
|
+
readonly pax: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
120
|
+
}, undefined>, undefined>, undefined>;
|
|
121
|
+
readonly avesSession: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
122
|
+
readonly avesServiceInfo: v.OptionalSchema<v.ObjectSchema<{
|
|
123
|
+
readonly packageCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
124
|
+
readonly packageReference: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
125
|
+
}, undefined>, undefined>;
|
|
126
|
+
readonly supplierMasterCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
127
|
+
readonly supplierName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
128
|
+
readonly supplierMasterSearchField: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
129
|
+
readonly supplierFiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
130
|
+
}, undefined>, undefined>, v.ObjectSchema<{
|
|
131
|
+
readonly sCode: v.StringSchema<undefined>;
|
|
132
|
+
readonly ssCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
133
|
+
readonly avesServiceType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"TOP", undefined>, v.LiteralSchema<"TOP_SS", undefined>, v.LiteralSchema<"ADV", undefined>, v.LiteralSchema<"GRP", undefined>, v.LiteralSchema<"OTHER", undefined>], undefined>, undefined>;
|
|
134
|
+
readonly toServiceType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"ACCOMODATION", undefined>, v.LiteralSchema<"TRANSPORT", undefined>, v.LiteralSchema<"CHARTER", undefined>, v.LiteralSchema<"TRANSFER", undefined>, v.LiteralSchema<"PULLMAN", undefined>, v.LiteralSchema<"FERRY", undefined>, v.LiteralSchema<"CRUISE", undefined>, v.LiteralSchema<"INSURANCE", undefined>, v.LiteralSchema<"EXTRAFEE", undefined>, v.LiteralSchema<"PENALTY", undefined>, v.LiteralSchema<"PROMO", undefined>, v.LiteralSchema<"OTHER", undefined>, v.LiteralSchema<"NOT_SET", undefined>, v.LiteralSchema<"RESIDENCE", undefined>], undefined>, undefined>;
|
|
135
|
+
readonly subServiceDesc: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
136
|
+
readonly startDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
137
|
+
readonly endDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
138
|
+
readonly qty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
139
|
+
readonly pax: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
140
|
+
readonly paxAssociated: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
141
|
+
readonly pax: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
142
|
+
}, undefined>, undefined>, undefined>;
|
|
143
|
+
readonly avesSession: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
144
|
+
readonly avesServiceInfo: v.OptionalSchema<v.ObjectSchema<{
|
|
145
|
+
readonly packageCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
146
|
+
readonly packageReference: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
147
|
+
}, undefined>, undefined>;
|
|
148
|
+
readonly supplierMasterCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
149
|
+
readonly supplierName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
150
|
+
readonly supplierMasterSearchField: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
151
|
+
readonly supplierFiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
152
|
+
}, undefined>], undefined>, v.TransformAction<{
|
|
153
|
+
sCode: string;
|
|
154
|
+
ssCode?: string | undefined;
|
|
155
|
+
avesServiceType?: "TOP" | "TOP_SS" | "ADV" | "GRP" | "OTHER" | undefined;
|
|
156
|
+
toServiceType?: "OTHER" | "ACCOMODATION" | "TRANSPORT" | "CHARTER" | "TRANSFER" | "PULLMAN" | "FERRY" | "CRUISE" | "INSURANCE" | "EXTRAFEE" | "PENALTY" | "PROMO" | "NOT_SET" | "RESIDENCE" | undefined;
|
|
157
|
+
subServiceDesc?: string | undefined;
|
|
158
|
+
startDate?: string | undefined;
|
|
159
|
+
endDate?: string | undefined;
|
|
160
|
+
qty?: string | undefined;
|
|
161
|
+
pax?: string | undefined;
|
|
162
|
+
paxAssociated?: {
|
|
163
|
+
pax?: string | undefined;
|
|
164
|
+
}[] | undefined;
|
|
165
|
+
avesSession?: string | undefined;
|
|
166
|
+
avesServiceInfo?: {
|
|
167
|
+
packageCode?: string | undefined;
|
|
168
|
+
packageReference?: string | undefined;
|
|
169
|
+
} | undefined;
|
|
170
|
+
supplierMasterCode?: string | undefined;
|
|
171
|
+
supplierName?: string | undefined;
|
|
172
|
+
supplierMasterSearchField?: string | undefined;
|
|
173
|
+
supplierFiscalCode?: string | undefined;
|
|
174
|
+
} | {
|
|
175
|
+
sCode: string;
|
|
176
|
+
ssCode?: string | undefined;
|
|
177
|
+
avesServiceType?: "TOP" | "TOP_SS" | "ADV" | "GRP" | "OTHER" | undefined;
|
|
178
|
+
toServiceType?: "OTHER" | "ACCOMODATION" | "TRANSPORT" | "CHARTER" | "TRANSFER" | "PULLMAN" | "FERRY" | "CRUISE" | "INSURANCE" | "EXTRAFEE" | "PENALTY" | "PROMO" | "NOT_SET" | "RESIDENCE" | undefined;
|
|
179
|
+
subServiceDesc?: string | undefined;
|
|
180
|
+
startDate?: string | undefined;
|
|
181
|
+
endDate?: string | undefined;
|
|
182
|
+
qty?: string | undefined;
|
|
183
|
+
pax?: string | undefined;
|
|
184
|
+
paxAssociated?: {
|
|
185
|
+
pax?: string | undefined;
|
|
186
|
+
}[] | undefined;
|
|
187
|
+
avesSession?: string | undefined;
|
|
188
|
+
avesServiceInfo?: {
|
|
189
|
+
packageCode?: string | undefined;
|
|
190
|
+
packageReference?: string | undefined;
|
|
191
|
+
} | undefined;
|
|
192
|
+
supplierMasterCode?: string | undefined;
|
|
193
|
+
supplierName?: string | undefined;
|
|
194
|
+
supplierMasterSearchField?: string | undefined;
|
|
195
|
+
supplierFiscalCode?: string | undefined;
|
|
196
|
+
}[], {
|
|
197
|
+
sCode: string;
|
|
198
|
+
ssCode?: string | undefined;
|
|
199
|
+
avesServiceType?: "TOP" | "TOP_SS" | "ADV" | "GRP" | "OTHER" | undefined;
|
|
200
|
+
toServiceType?: "OTHER" | "ACCOMODATION" | "TRANSPORT" | "CHARTER" | "TRANSFER" | "PULLMAN" | "FERRY" | "CRUISE" | "INSURANCE" | "EXTRAFEE" | "PENALTY" | "PROMO" | "NOT_SET" | "RESIDENCE" | undefined;
|
|
201
|
+
subServiceDesc?: string | undefined;
|
|
202
|
+
startDate?: string | undefined;
|
|
203
|
+
endDate?: string | undefined;
|
|
204
|
+
qty?: string | undefined;
|
|
205
|
+
pax?: string | undefined;
|
|
206
|
+
paxAssociated?: {
|
|
207
|
+
pax?: string | undefined;
|
|
208
|
+
}[] | undefined;
|
|
209
|
+
avesSession?: string | undefined;
|
|
210
|
+
avesServiceInfo?: {
|
|
211
|
+
packageCode?: string | undefined;
|
|
212
|
+
packageReference?: string | undefined;
|
|
213
|
+
} | undefined;
|
|
214
|
+
supplierMasterCode?: string | undefined;
|
|
215
|
+
supplierName?: string | undefined;
|
|
216
|
+
supplierMasterSearchField?: string | undefined;
|
|
217
|
+
supplierFiscalCode?: string | undefined;
|
|
218
|
+
}[]>]>;
|
|
219
|
+
}, undefined>;
|
|
220
|
+
readonly extraQuotaRefCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
221
|
+
readonly extraQuoteServiceList: v.OptionalSchema<v.ObjectSchema<{
|
|
222
|
+
readonly extraQuoteServiceDetail: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
223
|
+
readonly sCode: v.StringSchema<undefined>;
|
|
224
|
+
readonly ssCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
225
|
+
readonly avesServiceType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"TOP", undefined>, v.LiteralSchema<"TOP_SS", undefined>, v.LiteralSchema<"ADV", undefined>, v.LiteralSchema<"GRP", undefined>, v.LiteralSchema<"OTHER", undefined>], undefined>, undefined>;
|
|
226
|
+
readonly toServiceType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"ACCOMODATION", undefined>, v.LiteralSchema<"TRANSPORT", undefined>, v.LiteralSchema<"CHARTER", undefined>, v.LiteralSchema<"TRANSFER", undefined>, v.LiteralSchema<"PULLMAN", undefined>, v.LiteralSchema<"FERRY", undefined>, v.LiteralSchema<"CRUISE", undefined>, v.LiteralSchema<"INSURANCE", undefined>, v.LiteralSchema<"EXTRAFEE", undefined>, v.LiteralSchema<"PENALTY", undefined>, v.LiteralSchema<"PROMO", undefined>, v.LiteralSchema<"OTHER", undefined>, v.LiteralSchema<"NOT_SET", undefined>, v.LiteralSchema<"RESIDENCE", undefined>], undefined>, undefined>;
|
|
227
|
+
readonly subServiceDesc: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
228
|
+
readonly startDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
229
|
+
readonly endDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
230
|
+
readonly qty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
231
|
+
readonly pax: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
232
|
+
readonly paxAssociated: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
233
|
+
readonly pax: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
234
|
+
}, undefined>, undefined>, undefined>;
|
|
235
|
+
readonly avesSession: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
236
|
+
readonly avesServiceInfo: v.OptionalSchema<v.ObjectSchema<{
|
|
237
|
+
readonly packageCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
238
|
+
readonly packageReference: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
239
|
+
}, undefined>, undefined>;
|
|
240
|
+
readonly supplierMasterCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
241
|
+
readonly supplierName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
242
|
+
readonly supplierMasterSearchField: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
243
|
+
readonly supplierFiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
244
|
+
}, undefined>, undefined>, undefined>;
|
|
245
|
+
}, undefined>, undefined>;
|
|
246
|
+
readonly getExtraQuoteFromSystem: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
247
|
+
readonly passengerList: v.ObjectSchema<{
|
|
248
|
+
readonly passengerDetail: v.SchemaWithPipe<readonly [v.UnionSchema<[v.ArraySchema<v.ObjectSchema<{
|
|
249
|
+
readonly rph: v.StringSchema<undefined>;
|
|
250
|
+
readonly roomRph: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
251
|
+
readonly billingHolder: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
252
|
+
readonly masterRecordCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
253
|
+
readonly name: v.StringSchema<undefined>;
|
|
254
|
+
readonly categoryCode: v.UnionSchema<[v.LiteralSchema<"AD", undefined>, v.LiteralSchema<"CH", undefined>, v.LiteralSchema<"IN", undefined>, v.LiteralSchema<"OV", undefined>], undefined>;
|
|
255
|
+
readonly sex: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
|
|
256
|
+
readonly birthDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
257
|
+
readonly birthPlace: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
258
|
+
readonly nationCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
259
|
+
readonly citizenshipCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
260
|
+
readonly fiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
261
|
+
readonly phoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
262
|
+
readonly eMail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
263
|
+
readonly notes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
264
|
+
readonly nType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
265
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
266
|
+
readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
267
|
+
}, undefined>, undefined>, undefined>;
|
|
268
|
+
readonly flagStatus: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
269
|
+
readonly offerCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
270
|
+
readonly idDocInfo: v.OptionalSchema<v.ObjectSchema<{
|
|
271
|
+
readonly idType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
272
|
+
readonly idCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
273
|
+
readonly idIssueLocation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
274
|
+
readonly idIssueCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
275
|
+
readonly idIssueDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
276
|
+
readonly idExpireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
277
|
+
}, undefined>, undefined>;
|
|
278
|
+
}, undefined>, undefined>, v.ObjectSchema<{
|
|
279
|
+
readonly rph: v.StringSchema<undefined>;
|
|
280
|
+
readonly roomRph: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
281
|
+
readonly billingHolder: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
282
|
+
readonly masterRecordCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
283
|
+
readonly name: v.StringSchema<undefined>;
|
|
284
|
+
readonly categoryCode: v.UnionSchema<[v.LiteralSchema<"AD", undefined>, v.LiteralSchema<"CH", undefined>, v.LiteralSchema<"IN", undefined>, v.LiteralSchema<"OV", undefined>], undefined>;
|
|
285
|
+
readonly sex: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
|
|
286
|
+
readonly birthDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
287
|
+
readonly birthPlace: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
288
|
+
readonly nationCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
289
|
+
readonly citizenshipCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
290
|
+
readonly fiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
291
|
+
readonly phoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
292
|
+
readonly eMail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
293
|
+
readonly notes: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
294
|
+
readonly nType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
295
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
296
|
+
readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
297
|
+
}, undefined>, undefined>, undefined>;
|
|
298
|
+
readonly flagStatus: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
299
|
+
readonly offerCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
300
|
+
readonly idDocInfo: v.OptionalSchema<v.ObjectSchema<{
|
|
301
|
+
readonly idType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
302
|
+
readonly idCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
303
|
+
readonly idIssueLocation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
304
|
+
readonly idIssueCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
305
|
+
readonly idIssueDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
306
|
+
readonly idExpireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
307
|
+
}, undefined>, undefined>;
|
|
308
|
+
}, undefined>], undefined>, v.TransformAction<{
|
|
309
|
+
rph: string;
|
|
310
|
+
roomRph?: string | undefined;
|
|
311
|
+
billingHolder?: boolean | "true" | "false" | undefined;
|
|
312
|
+
masterRecordCode?: string | undefined;
|
|
313
|
+
name: string;
|
|
314
|
+
categoryCode: "AD" | "CH" | "IN" | "OV";
|
|
315
|
+
sex?: "M" | "F" | undefined;
|
|
316
|
+
birthDate?: string | undefined;
|
|
317
|
+
birthPlace?: string | undefined;
|
|
318
|
+
nationCode?: string | undefined;
|
|
319
|
+
citizenshipCode?: string | undefined;
|
|
320
|
+
fiscalCode?: string | undefined;
|
|
321
|
+
phoneNumber?: string | undefined;
|
|
322
|
+
eMail?: string | undefined;
|
|
323
|
+
notes?: {
|
|
324
|
+
nType?: string | undefined;
|
|
325
|
+
title?: string | undefined;
|
|
326
|
+
text?: string | undefined;
|
|
327
|
+
}[] | undefined;
|
|
328
|
+
flagStatus?: string | undefined;
|
|
329
|
+
offerCode?: string | undefined;
|
|
330
|
+
idDocInfo?: {
|
|
331
|
+
idType?: string | undefined;
|
|
332
|
+
idCode?: string | undefined;
|
|
333
|
+
idIssueLocation?: string | undefined;
|
|
334
|
+
idIssueCounty?: string | undefined;
|
|
335
|
+
idIssueDate?: string | undefined;
|
|
336
|
+
idExpireDate?: string | undefined;
|
|
337
|
+
} | undefined;
|
|
338
|
+
} | {
|
|
339
|
+
rph: string;
|
|
340
|
+
roomRph?: string | undefined;
|
|
341
|
+
billingHolder?: boolean | "true" | "false" | undefined;
|
|
342
|
+
masterRecordCode?: string | undefined;
|
|
343
|
+
name: string;
|
|
344
|
+
categoryCode: "AD" | "CH" | "IN" | "OV";
|
|
345
|
+
sex?: "M" | "F" | undefined;
|
|
346
|
+
birthDate?: string | undefined;
|
|
347
|
+
birthPlace?: string | undefined;
|
|
348
|
+
nationCode?: string | undefined;
|
|
349
|
+
citizenshipCode?: string | undefined;
|
|
350
|
+
fiscalCode?: string | undefined;
|
|
351
|
+
phoneNumber?: string | undefined;
|
|
352
|
+
eMail?: string | undefined;
|
|
353
|
+
notes?: {
|
|
354
|
+
nType?: string | undefined;
|
|
355
|
+
title?: string | undefined;
|
|
356
|
+
text?: string | undefined;
|
|
357
|
+
}[] | undefined;
|
|
358
|
+
flagStatus?: string | undefined;
|
|
359
|
+
offerCode?: string | undefined;
|
|
360
|
+
idDocInfo?: {
|
|
361
|
+
idType?: string | undefined;
|
|
362
|
+
idCode?: string | undefined;
|
|
363
|
+
idIssueLocation?: string | undefined;
|
|
364
|
+
idIssueCounty?: string | undefined;
|
|
365
|
+
idIssueDate?: string | undefined;
|
|
366
|
+
idExpireDate?: string | undefined;
|
|
367
|
+
} | undefined;
|
|
368
|
+
}[], {
|
|
369
|
+
rph: string;
|
|
370
|
+
roomRph?: string | undefined;
|
|
371
|
+
billingHolder?: boolean | "true" | "false" | undefined;
|
|
372
|
+
masterRecordCode?: string | undefined;
|
|
373
|
+
name: string;
|
|
374
|
+
categoryCode: "AD" | "CH" | "IN" | "OV";
|
|
375
|
+
sex?: "M" | "F" | undefined;
|
|
376
|
+
birthDate?: string | undefined;
|
|
377
|
+
birthPlace?: string | undefined;
|
|
378
|
+
nationCode?: string | undefined;
|
|
379
|
+
citizenshipCode?: string | undefined;
|
|
380
|
+
fiscalCode?: string | undefined;
|
|
381
|
+
phoneNumber?: string | undefined;
|
|
382
|
+
eMail?: string | undefined;
|
|
383
|
+
notes?: {
|
|
384
|
+
nType?: string | undefined;
|
|
385
|
+
title?: string | undefined;
|
|
386
|
+
text?: string | undefined;
|
|
387
|
+
}[] | undefined;
|
|
388
|
+
flagStatus?: string | undefined;
|
|
389
|
+
offerCode?: string | undefined;
|
|
390
|
+
idDocInfo?: {
|
|
391
|
+
idType?: string | undefined;
|
|
392
|
+
idCode?: string | undefined;
|
|
393
|
+
idIssueLocation?: string | undefined;
|
|
394
|
+
idIssueCounty?: string | undefined;
|
|
395
|
+
idIssueDate?: string | undefined;
|
|
396
|
+
idExpireDate?: string | undefined;
|
|
397
|
+
} | undefined;
|
|
398
|
+
}[]>]>;
|
|
399
|
+
}, undefined>;
|
|
400
|
+
readonly noteList: v.OptionalSchema<v.ObjectSchema<{
|
|
401
|
+
readonly noteDetail: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
402
|
+
readonly nType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
403
|
+
readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
404
|
+
readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
405
|
+
}, undefined>, undefined>, undefined>;
|
|
406
|
+
}, undefined>, undefined>;
|
|
407
|
+
readonly bookingFinancialInfo: v.OptionalSchema<v.ObjectSchema<{
|
|
408
|
+
readonly customer_PaymentType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CASH", undefined>, v.LiteralSchema<"BANK", undefined>, v.LiteralSchema<"RID", undefined>, v.LiteralSchema<"RIBA", undefined>, v.LiteralSchema<"SPECIFIC_CODE", undefined>, v.LiteralSchema<"NOT_SET", undefined>], undefined>, undefined>;
|
|
409
|
+
readonly customer_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
410
|
+
}, undefined>, undefined>;
|
|
411
|
+
readonly bookingFileCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
412
|
+
readonly groupingPaxPolicy: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"GROUPED_PAX", undefined>, v.LiteralSchema<"NOT_GROUPED_PAX", undefined>, v.LiteralSchema<"ONE_PAX_ONLY", undefined>], undefined>, undefined>;
|
|
413
|
+
readonly groupBookingFile: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
414
|
+
readonly typeDownloadFile: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"AVES2AVES", undefined>, v.LiteralSchema<"AVES2AVESVIA", undefined>, v.LiteralSchema<"AVES2AVESITA", undefined>], undefined>, undefined>;
|
|
415
|
+
readonly setBookingFileCodeFromStartDate: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
416
|
+
}, undefined>;
|
|
417
|
+
/**
|
|
418
|
+
* BookingFileRS response schema (transforms to camelCase).
|
|
419
|
+
* BookingFileDetail shape follows Common Structures "BOOKEDFILE"; nested content is accepted and key-normalized.
|
|
420
|
+
*/
|
|
421
|
+
declare const BookingFileResponseSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
422
|
+
readonly RsStatus: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
423
|
+
readonly "@Status": v.UnionSchema<[v.LiteralSchema<"OK", undefined>, v.LiteralSchema<"ERROR", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"TIMEOUT", undefined>], undefined>;
|
|
424
|
+
readonly ErrorCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>]>, undefined>;
|
|
425
|
+
readonly ErrorDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
426
|
+
readonly Warnings: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, string[]>]>, undefined>;
|
|
427
|
+
}, undefined>, v.TransformAction<{
|
|
428
|
+
"@Status": "OK" | "ERROR" | "WARNING" | "TIMEOUT";
|
|
429
|
+
ErrorCode?: number | undefined;
|
|
430
|
+
ErrorDescription?: string | undefined;
|
|
431
|
+
Warnings?: string[] | undefined;
|
|
432
|
+
}, {
|
|
433
|
+
status: "OK" | "ERROR" | "WARNING" | "TIMEOUT";
|
|
434
|
+
errorCode: number | undefined;
|
|
435
|
+
errorDescription: string | undefined;
|
|
436
|
+
warnings: string[] | undefined;
|
|
437
|
+
}>]>;
|
|
438
|
+
readonly BookingFileDetail: v.OptionalSchema<v.AnySchema, undefined>;
|
|
439
|
+
}, undefined>, v.TransformAction<{
|
|
440
|
+
RsStatus: {
|
|
441
|
+
status: "OK" | "ERROR" | "WARNING" | "TIMEOUT";
|
|
442
|
+
errorCode: number | undefined;
|
|
443
|
+
errorDescription: string | undefined;
|
|
444
|
+
warnings: string[] | undefined;
|
|
445
|
+
};
|
|
446
|
+
BookingFileDetail?: any;
|
|
447
|
+
}, {
|
|
448
|
+
rsStatus: {
|
|
449
|
+
status: "OK" | "ERROR" | "WARNING" | "TIMEOUT";
|
|
450
|
+
errorCode: number | undefined;
|
|
451
|
+
errorDescription: string | undefined;
|
|
452
|
+
warnings: string[] | undefined;
|
|
453
|
+
};
|
|
454
|
+
bookingFileDetail?: any;
|
|
455
|
+
}>]>;
|
|
456
|
+
//#endregion
|
|
457
|
+
//#region src/schemas/common.d.ts
|
|
458
|
+
/**
|
|
459
|
+
* Request header schema with authentication credentials
|
|
460
|
+
*/
|
|
461
|
+
declare const RqHeaderSchema: v.ObjectSchema<{
|
|
462
|
+
readonly "@HostID": v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 6, undefined>, v.MaxLengthAction<string, 6, undefined>]>;
|
|
463
|
+
readonly "@Xtoken": v.StringSchema<undefined>;
|
|
464
|
+
readonly "@Interface": v.LiteralSchema<"WEB", undefined>;
|
|
465
|
+
readonly "@UserName": v.LiteralSchema<"WEB", undefined>;
|
|
466
|
+
readonly "@LanguageCode": v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
|
|
467
|
+
}, undefined>;
|
|
468
|
+
/**
|
|
469
|
+
* Response status schema indicating success, error, or warning
|
|
470
|
+
*/
|
|
471
|
+
declare const RsStatusSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
472
|
+
readonly "@Status": v.UnionSchema<[v.LiteralSchema<"OK", undefined>, v.LiteralSchema<"ERROR", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"TIMEOUT", undefined>], undefined>;
|
|
473
|
+
readonly ErrorCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>]>, undefined>;
|
|
474
|
+
readonly ErrorDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
475
|
+
readonly Warnings: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, string[]>]>, undefined>;
|
|
476
|
+
}, undefined>, v.TransformAction<{
|
|
477
|
+
"@Status": "OK" | "ERROR" | "WARNING" | "TIMEOUT";
|
|
478
|
+
ErrorCode?: number | undefined;
|
|
479
|
+
ErrorDescription?: string | undefined;
|
|
480
|
+
Warnings?: string[] | undefined;
|
|
481
|
+
}, {
|
|
482
|
+
status: "OK" | "ERROR" | "WARNING" | "TIMEOUT";
|
|
483
|
+
errorCode: number | undefined;
|
|
484
|
+
errorDescription: string | undefined;
|
|
485
|
+
warnings: string[] | undefined;
|
|
486
|
+
}>]>;
|
|
487
|
+
//#endregion
|
|
488
|
+
//#region src/schemas/master-record.d.ts
|
|
489
|
+
/**
|
|
490
|
+
* Financial detail schema for API requests (transforms to PascalCase)
|
|
491
|
+
*/
|
|
492
|
+
declare const FinancialDetailSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
493
|
+
readonly currencyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
494
|
+
readonly creditLimit: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
495
|
+
readonly c_PaymentType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CASH", undefined>, v.LiteralSchema<"BANK", undefined>, v.LiteralSchema<"RID", undefined>, v.LiteralSchema<"RIBA", undefined>, v.LiteralSchema<"SPECIFIC_CODE", undefined>], undefined>, undefined>;
|
|
496
|
+
readonly c_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
497
|
+
readonly s_PaymentType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CASH", undefined>, v.LiteralSchema<"BANK", undefined>, v.LiteralSchema<"RID", undefined>, v.LiteralSchema<"RIBA", undefined>, v.LiteralSchema<"SPECIFIC_CODE", undefined>], undefined>, undefined>;
|
|
498
|
+
readonly s_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
499
|
+
readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
500
|
+
readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
501
|
+
}, undefined>, v.TransformAction<{
|
|
502
|
+
currencyCode?: string | undefined;
|
|
503
|
+
creditLimit?: string | undefined;
|
|
504
|
+
c_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
505
|
+
c_SpecPaymentTypeCode?: string | undefined;
|
|
506
|
+
s_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
507
|
+
s_SpecPaymentTypeCode?: string | undefined;
|
|
508
|
+
enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
|
|
509
|
+
electronicInvoicingType?: string | undefined;
|
|
510
|
+
}, {
|
|
511
|
+
CurrencyCode?: string | undefined;
|
|
512
|
+
CreditLimit?: string | undefined;
|
|
513
|
+
CPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
514
|
+
CSpecPaymentTypeCode?: string | undefined;
|
|
515
|
+
SPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
516
|
+
SSpecPaymentTypeCode?: string | undefined;
|
|
517
|
+
EnableElectronicInvoicing?: boolean | "true" | "false" | undefined;
|
|
518
|
+
ElectronicInvoicingType?: string | undefined;
|
|
519
|
+
}>]>;
|
|
520
|
+
/**
|
|
521
|
+
* ID document detail schema for API requests (transforms to PascalCase)
|
|
522
|
+
*/
|
|
523
|
+
declare const IdDocumentDetailSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
524
|
+
readonly idType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
525
|
+
readonly idCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
526
|
+
readonly idIssueLocation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
527
|
+
readonly idIssueCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
528
|
+
readonly idIssueDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
529
|
+
readonly idExpireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
530
|
+
}, undefined>, v.TransformAction<{
|
|
531
|
+
idType?: string | undefined;
|
|
532
|
+
idCode?: string | undefined;
|
|
533
|
+
idIssueLocation?: string | undefined;
|
|
534
|
+
idIssueCounty?: string | undefined;
|
|
535
|
+
idIssueDate?: string | undefined;
|
|
536
|
+
idExpireDate?: string | undefined;
|
|
537
|
+
}, {
|
|
538
|
+
IdType?: string | undefined;
|
|
539
|
+
IdCode?: string | undefined;
|
|
540
|
+
IdIssueLocation?: string | undefined;
|
|
541
|
+
IdIssueCounty?: string | undefined;
|
|
542
|
+
IdIssueDate?: string | undefined;
|
|
543
|
+
IdExpireDate?: string | undefined;
|
|
544
|
+
}>]>;
|
|
545
|
+
/**
|
|
546
|
+
* Dynamic fields schema for API requests (transforms to PascalCase)
|
|
547
|
+
*/
|
|
548
|
+
declare const DynamicFieldsSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
549
|
+
readonly key: v.StringSchema<undefined>;
|
|
550
|
+
readonly value: v.StringSchema<undefined>;
|
|
551
|
+
}, undefined>, v.TransformAction<{
|
|
552
|
+
key: string;
|
|
553
|
+
value: string;
|
|
554
|
+
}, {
|
|
555
|
+
Key: string;
|
|
556
|
+
Value: string;
|
|
557
|
+
}>]>;
|
|
558
|
+
/**
|
|
559
|
+
* Account policies schema for API requests (transforms to PascalCase with @ attributes)
|
|
560
|
+
*/
|
|
561
|
+
declare const AccountPoliciesSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
562
|
+
readonly acceptProfilingPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
563
|
+
readonly acceptPrivacyPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
564
|
+
readonly acceptNewsletterPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
565
|
+
}, undefined>, v.TransformAction<{
|
|
566
|
+
acceptProfilingPolicies?: 0 | 1 | undefined;
|
|
567
|
+
acceptPrivacyPolicies?: 0 | 1 | undefined;
|
|
568
|
+
acceptNewsletterPolicies?: 0 | 1 | undefined;
|
|
569
|
+
}, {
|
|
570
|
+
AcceptProfilingPolicies?: 0 | 1 | undefined;
|
|
571
|
+
AcceptPrivacyPolicies?: 0 | 1 | undefined;
|
|
572
|
+
AcceptNewsletterPolicies?: 0 | 1 | undefined;
|
|
573
|
+
}>]>;
|
|
574
|
+
/**
|
|
575
|
+
* Master record detail input schema (camelCase)
|
|
576
|
+
*/
|
|
577
|
+
declare const MasterRecordDetailSchema: v.ObjectSchema<{
|
|
578
|
+
readonly recordCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 6, undefined>, v.MaxLengthAction<string, 6, undefined>]>, undefined>;
|
|
579
|
+
readonly insertCriteria: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"S", undefined>, v.LiteralSchema<"N", undefined>, v.LiteralSchema<"T", undefined>, v.LiteralSchema<"M", undefined>], undefined>, undefined>;
|
|
580
|
+
readonly createdDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
581
|
+
readonly recordType: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.LiteralSchema<"CUSTOMER", undefined>, v.LiteralSchema<"SUPPLIER", undefined>, v.LiteralSchema<"GENERAL", undefined>], undefined>], "CUSTOMER">, undefined>;
|
|
582
|
+
readonly recordStatus: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.LiteralSchema<"ENABLED", undefined>, v.LiteralSchema<"DISABLED", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"BLACKLISTED", undefined>], undefined>], "ENABLED">, undefined>;
|
|
583
|
+
readonly moniker: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
584
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
585
|
+
readonly extraInfo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
586
|
+
readonly languageCode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>;
|
|
587
|
+
readonly address: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
588
|
+
readonly zipCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
589
|
+
readonly cityName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
590
|
+
readonly countyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
591
|
+
readonly stateCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
592
|
+
readonly categoryCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
593
|
+
readonly firstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
594
|
+
readonly mobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
595
|
+
readonly email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
596
|
+
readonly gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
|
|
597
|
+
readonly birthDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
598
|
+
readonly birthCity: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
599
|
+
readonly birthCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
600
|
+
readonly fiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
601
|
+
readonly vatCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
602
|
+
readonly thirdPartRecordCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
603
|
+
readonly idDocumentDetail: v.OptionalSchema<v.ObjectSchema<{
|
|
604
|
+
readonly idType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
605
|
+
readonly idCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
606
|
+
readonly idIssueLocation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
607
|
+
readonly idIssueCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
608
|
+
readonly idIssueDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
609
|
+
readonly idExpireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
610
|
+
}, undefined>, undefined>;
|
|
611
|
+
readonly accountPolicies: v.OptionalSchema<v.ObjectSchema<{
|
|
612
|
+
readonly acceptProfilingPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
613
|
+
readonly acceptPrivacyPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
614
|
+
readonly acceptNewsletterPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
615
|
+
}, undefined>, undefined>;
|
|
616
|
+
readonly financialDetail: v.OptionalSchema<v.ObjectSchema<{
|
|
617
|
+
readonly currencyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
618
|
+
readonly creditLimit: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
619
|
+
readonly c_PaymentType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CASH", undefined>, v.LiteralSchema<"BANK", undefined>, v.LiteralSchema<"RID", undefined>, v.LiteralSchema<"RIBA", undefined>, v.LiteralSchema<"SPECIFIC_CODE", undefined>], undefined>, undefined>;
|
|
620
|
+
readonly c_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
621
|
+
readonly s_PaymentType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CASH", undefined>, v.LiteralSchema<"BANK", undefined>, v.LiteralSchema<"RID", undefined>, v.LiteralSchema<"RIBA", undefined>, v.LiteralSchema<"SPECIFIC_CODE", undefined>], undefined>, undefined>;
|
|
622
|
+
readonly s_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
623
|
+
readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
624
|
+
readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
625
|
+
}, undefined>, undefined>;
|
|
626
|
+
readonly dynamicFields: v.OptionalSchema<v.ObjectSchema<{
|
|
627
|
+
readonly key: v.StringSchema<undefined>;
|
|
628
|
+
readonly value: v.StringSchema<undefined>;
|
|
629
|
+
}, undefined>, undefined>;
|
|
630
|
+
}, undefined>;
|
|
631
|
+
/**
|
|
632
|
+
* Master record detail response schema (transforms to camelCase)
|
|
633
|
+
*/
|
|
634
|
+
declare const MasterRecordDetailResponseSchema: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
635
|
+
readonly recordCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 6, undefined>, v.MaxLengthAction<string, 6, undefined>]>, undefined>;
|
|
636
|
+
readonly insertCriteria: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"S", undefined>, v.LiteralSchema<"N", undefined>, v.LiteralSchema<"T", undefined>, v.LiteralSchema<"M", undefined>], undefined>, undefined>;
|
|
637
|
+
readonly createdDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
638
|
+
readonly recordType: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.LiteralSchema<"CUSTOMER", undefined>, v.LiteralSchema<"SUPPLIER", undefined>, v.LiteralSchema<"GENERAL", undefined>], undefined>], "CUSTOMER">, undefined>;
|
|
639
|
+
readonly recordStatus: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.LiteralSchema<"ENABLED", undefined>, v.LiteralSchema<"DISABLED", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"BLACKLISTED", undefined>], undefined>], "ENABLED">, undefined>;
|
|
640
|
+
readonly moniker: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
641
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
642
|
+
readonly extraInfo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
643
|
+
readonly languageCode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>;
|
|
644
|
+
readonly address: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
645
|
+
readonly zipCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
646
|
+
readonly cityName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
647
|
+
readonly countyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
648
|
+
readonly stateCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
649
|
+
readonly categoryCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
650
|
+
readonly firstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
651
|
+
readonly mobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
652
|
+
readonly email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
653
|
+
readonly gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
|
|
654
|
+
readonly birthDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
655
|
+
readonly birthCity: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
656
|
+
readonly birthCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
657
|
+
readonly fiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
658
|
+
readonly vatCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
659
|
+
readonly thirdPartRecordCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
660
|
+
readonly idDocumentDetail: v.OptionalSchema<v.ObjectSchema<{
|
|
661
|
+
readonly idType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
662
|
+
readonly idCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
663
|
+
readonly idIssueLocation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
664
|
+
readonly idIssueCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
665
|
+
readonly idIssueDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
666
|
+
readonly idExpireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
667
|
+
}, undefined>, undefined>;
|
|
668
|
+
readonly accountPolicies: v.OptionalSchema<v.ObjectSchema<{
|
|
669
|
+
readonly acceptProfilingPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
670
|
+
readonly acceptPrivacyPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
671
|
+
readonly acceptNewsletterPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
672
|
+
}, undefined>, undefined>;
|
|
673
|
+
readonly financialDetail: v.OptionalSchema<v.ObjectSchema<{
|
|
674
|
+
readonly currencyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
675
|
+
readonly creditLimit: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
676
|
+
readonly c_PaymentType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CASH", undefined>, v.LiteralSchema<"BANK", undefined>, v.LiteralSchema<"RID", undefined>, v.LiteralSchema<"RIBA", undefined>, v.LiteralSchema<"SPECIFIC_CODE", undefined>], undefined>, undefined>;
|
|
677
|
+
readonly c_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
678
|
+
readonly s_PaymentType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CASH", undefined>, v.LiteralSchema<"BANK", undefined>, v.LiteralSchema<"RID", undefined>, v.LiteralSchema<"RIBA", undefined>, v.LiteralSchema<"SPECIFIC_CODE", undefined>], undefined>, undefined>;
|
|
679
|
+
readonly s_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
680
|
+
readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
681
|
+
readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
682
|
+
}, undefined>, undefined>;
|
|
683
|
+
readonly dynamicFields: v.OptionalSchema<v.ObjectSchema<{
|
|
684
|
+
readonly key: v.StringSchema<undefined>;
|
|
685
|
+
readonly value: v.StringSchema<undefined>;
|
|
686
|
+
}, undefined>, undefined>;
|
|
687
|
+
}, undefined>, v.TransformAction<{
|
|
688
|
+
recordCode?: string | undefined;
|
|
689
|
+
insertCriteria?: "T" | "M" | "N" | "S" | undefined;
|
|
690
|
+
createdDate?: string | undefined;
|
|
691
|
+
recordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
692
|
+
recordStatus?: "WARNING" | "ENABLED" | "DISABLED" | "BLACKLISTED" | undefined;
|
|
693
|
+
moniker?: string | undefined;
|
|
694
|
+
name?: string | undefined;
|
|
695
|
+
extraInfo?: string | undefined;
|
|
696
|
+
languageCode: string;
|
|
697
|
+
address?: string | undefined;
|
|
698
|
+
zipCode?: string | undefined;
|
|
699
|
+
cityName?: string | undefined;
|
|
700
|
+
countyCode?: string | undefined;
|
|
701
|
+
stateCode?: string | undefined;
|
|
702
|
+
categoryCode?: string | undefined;
|
|
703
|
+
firstPhoneNumber?: string | undefined;
|
|
704
|
+
mobilePhoneNumber?: string | undefined;
|
|
705
|
+
email?: string | undefined;
|
|
706
|
+
gender?: "M" | "F" | undefined;
|
|
707
|
+
birthDate?: string | undefined;
|
|
708
|
+
birthCity?: string | undefined;
|
|
709
|
+
birthCounty?: string | undefined;
|
|
710
|
+
fiscalCode?: string | undefined;
|
|
711
|
+
vatCode?: string | undefined;
|
|
712
|
+
thirdPartRecordCode?: string | undefined;
|
|
713
|
+
idDocumentDetail?: {
|
|
714
|
+
idType?: string | undefined;
|
|
715
|
+
idCode?: string | undefined;
|
|
716
|
+
idIssueLocation?: string | undefined;
|
|
717
|
+
idIssueCounty?: string | undefined;
|
|
718
|
+
idIssueDate?: string | undefined;
|
|
719
|
+
idExpireDate?: string | undefined;
|
|
720
|
+
} | undefined;
|
|
721
|
+
accountPolicies?: {
|
|
722
|
+
acceptProfilingPolicies?: 0 | 1 | undefined;
|
|
723
|
+
acceptPrivacyPolicies?: 0 | 1 | undefined;
|
|
724
|
+
acceptNewsletterPolicies?: 0 | 1 | undefined;
|
|
725
|
+
} | undefined;
|
|
726
|
+
financialDetail?: {
|
|
727
|
+
currencyCode?: string | undefined;
|
|
728
|
+
creditLimit?: string | undefined;
|
|
729
|
+
c_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
730
|
+
c_SpecPaymentTypeCode?: string | undefined;
|
|
731
|
+
s_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
732
|
+
s_SpecPaymentTypeCode?: string | undefined;
|
|
733
|
+
enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
|
|
734
|
+
electronicInvoicingType?: string | undefined;
|
|
735
|
+
} | undefined;
|
|
736
|
+
dynamicFields?: {
|
|
737
|
+
key: string;
|
|
738
|
+
value: string;
|
|
739
|
+
} | undefined;
|
|
740
|
+
}, {
|
|
741
|
+
RecordCode?: string | undefined;
|
|
742
|
+
InsertCriteria?: "T" | "M" | "N" | "S" | undefined;
|
|
743
|
+
CreatedDate?: string | undefined;
|
|
744
|
+
RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
745
|
+
RecordStatus?: "WARNING" | "ENABLED" | "DISABLED" | "BLACKLISTED" | undefined;
|
|
746
|
+
Moniker?: string | undefined;
|
|
747
|
+
Name?: string | undefined;
|
|
748
|
+
ExtraInfo?: string | undefined;
|
|
749
|
+
LanguageCode: string;
|
|
750
|
+
Address?: string | undefined;
|
|
751
|
+
ZipCode?: string | undefined;
|
|
752
|
+
CityName?: string | undefined;
|
|
753
|
+
CountyCode?: string | undefined;
|
|
754
|
+
StateCode?: string | undefined;
|
|
755
|
+
CategoryCode?: string | undefined;
|
|
756
|
+
FirstPhoneNumber?: string | undefined;
|
|
757
|
+
MobilePhoneNumber?: string | undefined;
|
|
758
|
+
Email?: string | undefined;
|
|
759
|
+
Gender?: "M" | "F" | undefined;
|
|
760
|
+
BirthDate?: string | undefined;
|
|
761
|
+
BirthCity?: string | undefined;
|
|
762
|
+
BirthCounty?: string | undefined;
|
|
763
|
+
FiscalCode?: string | undefined;
|
|
764
|
+
VatCode?: string | undefined;
|
|
765
|
+
ThirdPartRecordCode?: string | undefined;
|
|
766
|
+
IdDocumentDetail?: {
|
|
767
|
+
IdType?: string | undefined;
|
|
768
|
+
IdCode?: string | undefined;
|
|
769
|
+
IdIssueLocation?: string | undefined;
|
|
770
|
+
IdIssueCounty?: string | undefined;
|
|
771
|
+
IdIssueDate?: string | undefined;
|
|
772
|
+
IdExpireDate?: string | undefined;
|
|
773
|
+
} | undefined;
|
|
774
|
+
AccountPolicies?: {
|
|
775
|
+
AcceptProfilingPolicies?: 0 | 1 | undefined;
|
|
776
|
+
AcceptPrivacyPolicies?: 0 | 1 | undefined;
|
|
777
|
+
AcceptNewsletterPolicies?: 0 | 1 | undefined;
|
|
778
|
+
} | undefined;
|
|
779
|
+
FinancialDetail?: {
|
|
780
|
+
CurrencyCode?: string | undefined;
|
|
781
|
+
CreditLimit?: string | undefined;
|
|
782
|
+
CPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
783
|
+
CSpecPaymentTypeCode?: string | undefined;
|
|
784
|
+
SPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
785
|
+
SSpecPaymentTypeCode?: string | undefined;
|
|
786
|
+
EnableElectronicInvoicing?: boolean | "true" | "false" | undefined;
|
|
787
|
+
ElectronicInvoicingType?: string | undefined;
|
|
788
|
+
} | undefined;
|
|
789
|
+
DynamicFields?: {
|
|
790
|
+
Key: string;
|
|
791
|
+
Value: string;
|
|
792
|
+
} | undefined;
|
|
793
|
+
}>]>, v.TransformAction<{
|
|
794
|
+
RecordCode?: string | undefined;
|
|
795
|
+
InsertCriteria?: "T" | "M" | "N" | "S" | undefined;
|
|
796
|
+
CreatedDate?: string | undefined;
|
|
797
|
+
RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
798
|
+
RecordStatus?: "WARNING" | "ENABLED" | "DISABLED" | "BLACKLISTED" | undefined;
|
|
799
|
+
Moniker?: string | undefined;
|
|
800
|
+
Name?: string | undefined;
|
|
801
|
+
ExtraInfo?: string | undefined;
|
|
802
|
+
LanguageCode: string;
|
|
803
|
+
Address?: string | undefined;
|
|
804
|
+
ZipCode?: string | undefined;
|
|
805
|
+
CityName?: string | undefined;
|
|
806
|
+
CountyCode?: string | undefined;
|
|
807
|
+
StateCode?: string | undefined;
|
|
808
|
+
CategoryCode?: string | undefined;
|
|
809
|
+
FirstPhoneNumber?: string | undefined;
|
|
810
|
+
MobilePhoneNumber?: string | undefined;
|
|
811
|
+
Email?: string | undefined;
|
|
812
|
+
Gender?: "M" | "F" | undefined;
|
|
813
|
+
BirthDate?: string | undefined;
|
|
814
|
+
BirthCity?: string | undefined;
|
|
815
|
+
BirthCounty?: string | undefined;
|
|
816
|
+
FiscalCode?: string | undefined;
|
|
817
|
+
VatCode?: string | undefined;
|
|
818
|
+
ThirdPartRecordCode?: string | undefined;
|
|
819
|
+
IdDocumentDetail?: {
|
|
820
|
+
IdType?: string | undefined;
|
|
821
|
+
IdCode?: string | undefined;
|
|
822
|
+
IdIssueLocation?: string | undefined;
|
|
823
|
+
IdIssueCounty?: string | undefined;
|
|
824
|
+
IdIssueDate?: string | undefined;
|
|
825
|
+
IdExpireDate?: string | undefined;
|
|
826
|
+
} | undefined;
|
|
827
|
+
AccountPolicies?: {
|
|
828
|
+
AcceptProfilingPolicies?: 0 | 1 | undefined;
|
|
829
|
+
AcceptPrivacyPolicies?: 0 | 1 | undefined;
|
|
830
|
+
AcceptNewsletterPolicies?: 0 | 1 | undefined;
|
|
831
|
+
} | undefined;
|
|
832
|
+
FinancialDetail?: {
|
|
833
|
+
CurrencyCode?: string | undefined;
|
|
834
|
+
CreditLimit?: string | undefined;
|
|
835
|
+
CPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
836
|
+
CSpecPaymentTypeCode?: string | undefined;
|
|
837
|
+
SPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
838
|
+
SSpecPaymentTypeCode?: string | undefined;
|
|
839
|
+
EnableElectronicInvoicing?: boolean | "true" | "false" | undefined;
|
|
840
|
+
ElectronicInvoicingType?: string | undefined;
|
|
841
|
+
} | undefined;
|
|
842
|
+
DynamicFields?: {
|
|
843
|
+
Key: string;
|
|
844
|
+
Value: string;
|
|
845
|
+
} | undefined;
|
|
846
|
+
}, {
|
|
847
|
+
recordCode?: string | undefined;
|
|
848
|
+
insertCriteria?: "T" | "M" | "N" | "S" | undefined;
|
|
849
|
+
createdDate?: string | undefined;
|
|
850
|
+
recordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
851
|
+
recordStatus?: "WARNING" | "ENABLED" | "DISABLED" | "BLACKLISTED" | undefined;
|
|
852
|
+
moniker?: string | undefined;
|
|
853
|
+
name?: string | undefined;
|
|
854
|
+
extraInfo?: string | undefined;
|
|
855
|
+
languageCode: string;
|
|
856
|
+
address?: string | undefined;
|
|
857
|
+
zipCode?: string | undefined;
|
|
858
|
+
cityName?: string | undefined;
|
|
859
|
+
countyCode?: string | undefined;
|
|
860
|
+
stateCode?: string | undefined;
|
|
861
|
+
categoryCode?: string | undefined;
|
|
862
|
+
firstPhoneNumber?: string | undefined;
|
|
863
|
+
mobilePhoneNumber?: string | undefined;
|
|
864
|
+
email?: string | undefined;
|
|
865
|
+
gender?: "M" | "F" | undefined;
|
|
866
|
+
birthDate?: string | undefined;
|
|
867
|
+
birthCity?: string | undefined;
|
|
868
|
+
birthCounty?: string | undefined;
|
|
869
|
+
fiscalCode?: string | undefined;
|
|
870
|
+
vatCode?: string | undefined;
|
|
871
|
+
thirdPartRecordCode?: string | undefined;
|
|
872
|
+
idDocumentDetail?: {
|
|
873
|
+
idType?: string | undefined;
|
|
874
|
+
idCode?: string | undefined;
|
|
875
|
+
idIssueLocation?: string | undefined;
|
|
876
|
+
idIssueCounty?: string | undefined;
|
|
877
|
+
idIssueDate?: string | undefined;
|
|
878
|
+
idExpireDate?: string | undefined;
|
|
879
|
+
} | undefined;
|
|
880
|
+
accountPolicies?: {
|
|
881
|
+
acceptProfilingPolicies?: 0 | 1 | undefined;
|
|
882
|
+
acceptPrivacyPolicies?: 0 | 1 | undefined;
|
|
883
|
+
acceptNewsletterPolicies?: 0 | 1 | undefined;
|
|
884
|
+
} | undefined;
|
|
885
|
+
financialDetail?: {
|
|
886
|
+
currencyCode?: string | undefined;
|
|
887
|
+
creditLimit?: string | undefined;
|
|
888
|
+
cPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
889
|
+
cSpecPaymentTypeCode?: string | undefined;
|
|
890
|
+
sPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
891
|
+
sSpecPaymentTypeCode?: string | undefined;
|
|
892
|
+
enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
|
|
893
|
+
electronicInvoicingType?: string | undefined;
|
|
894
|
+
} | undefined;
|
|
895
|
+
dynamicFields?: {
|
|
896
|
+
key: string;
|
|
897
|
+
value: string;
|
|
898
|
+
} | undefined;
|
|
899
|
+
}>]>;
|
|
900
|
+
//#endregion
|
|
901
|
+
//#region src/schemas/search.d.ts
|
|
902
|
+
/**
|
|
903
|
+
* Search master record input schema (camelCase)
|
|
904
|
+
* Conditional fields based on searchType
|
|
905
|
+
*/
|
|
906
|
+
declare const SearchMasterRecordSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
907
|
+
readonly searchType: v.LiteralSchema<"CODE", undefined>;
|
|
908
|
+
readonly recordCode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 6, undefined>]>;
|
|
909
|
+
readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
|
|
910
|
+
}, undefined>, v.ObjectSchema<{
|
|
911
|
+
readonly searchType: v.LiteralSchema<"NAME", undefined>;
|
|
912
|
+
readonly name: v.StringSchema<undefined>;
|
|
913
|
+
readonly city: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
914
|
+
readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
|
|
915
|
+
}, undefined>, v.ObjectSchema<{
|
|
916
|
+
readonly searchType: v.LiteralSchema<"VATCODE", undefined>;
|
|
917
|
+
readonly vatCode: v.StringSchema<undefined>;
|
|
918
|
+
readonly phoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
919
|
+
readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
|
|
920
|
+
}, undefined>, v.ObjectSchema<{
|
|
921
|
+
readonly searchType: v.LiteralSchema<"ZONE", undefined>;
|
|
922
|
+
readonly zipCode: v.StringSchema<undefined>;
|
|
923
|
+
readonly countyCode: v.StringSchema<undefined>;
|
|
924
|
+
readonly city: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
925
|
+
readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
|
|
926
|
+
}, undefined>, v.ObjectSchema<{
|
|
927
|
+
readonly searchType: v.LiteralSchema<"CATEGORY", undefined>;
|
|
928
|
+
readonly categoryCode: v.StringSchema<undefined>;
|
|
929
|
+
readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
|
|
930
|
+
}, undefined>, v.ObjectSchema<{
|
|
931
|
+
readonly searchType: v.LiteralSchema<"EMAIL", undefined>;
|
|
932
|
+
readonly email: v.StringSchema<undefined>;
|
|
933
|
+
readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
|
|
934
|
+
}, undefined>, v.ObjectSchema<{
|
|
935
|
+
readonly searchType: v.LiteralSchema<"LASTMODDATE", undefined>;
|
|
936
|
+
readonly lastModificationDate: v.ObjectSchema<{
|
|
937
|
+
readonly minDate: v.StringSchema<undefined>;
|
|
938
|
+
readonly maxDate: v.StringSchema<undefined>;
|
|
939
|
+
}, undefined>;
|
|
940
|
+
readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
|
|
941
|
+
}, undefined>, v.ObjectSchema<{
|
|
942
|
+
readonly searchType: v.LiteralSchema<"SEARCH_FIELD", undefined>;
|
|
943
|
+
readonly searchFieldValue: v.StringSchema<undefined>;
|
|
944
|
+
readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
|
|
945
|
+
}, undefined>, v.ObjectSchema<{
|
|
946
|
+
readonly searchType: v.LiteralSchema<"EXTERNAL_REF_CODE", undefined>;
|
|
947
|
+
readonly searchFieldValue: v.StringSchema<undefined>;
|
|
948
|
+
readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
|
|
949
|
+
}, undefined>], undefined>;
|
|
950
|
+
/**
|
|
951
|
+
* Search master record response schema (transforms to camelCase)
|
|
952
|
+
*/
|
|
953
|
+
declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
954
|
+
readonly RsStatus: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
955
|
+
readonly "@Status": v.UnionSchema<[v.LiteralSchema<"OK", undefined>, v.LiteralSchema<"ERROR", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"TIMEOUT", undefined>], undefined>;
|
|
956
|
+
readonly ErrorCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>]>, undefined>;
|
|
957
|
+
readonly ErrorDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
958
|
+
readonly Warnings: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, string[]>]>, undefined>;
|
|
959
|
+
}, undefined>, v.TransformAction<{
|
|
960
|
+
"@Status": "OK" | "ERROR" | "WARNING" | "TIMEOUT";
|
|
961
|
+
ErrorCode?: number | undefined;
|
|
962
|
+
ErrorDescription?: string | undefined;
|
|
963
|
+
Warnings?: string[] | undefined;
|
|
964
|
+
}, {
|
|
965
|
+
status: "OK" | "ERROR" | "WARNING" | "TIMEOUT";
|
|
966
|
+
errorCode: number | undefined;
|
|
967
|
+
errorDescription: string | undefined;
|
|
968
|
+
warnings: string[] | undefined;
|
|
969
|
+
}>]>;
|
|
970
|
+
readonly MasterRecordList: v.OptionalSchema<v.ObjectSchema<{
|
|
971
|
+
readonly MasterRecordDetail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.ArraySchema<v.ObjectSchema<{
|
|
972
|
+
readonly "@RecordCode": v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 6, undefined>, v.MaxLengthAction<string, 6, undefined>]>, undefined>;
|
|
973
|
+
readonly "@InsertCriteria": v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"S", undefined>, v.LiteralSchema<"N", undefined>, v.LiteralSchema<"T", undefined>, v.LiteralSchema<"M", undefined>], undefined>, undefined>;
|
|
974
|
+
readonly CreatedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
975
|
+
readonly ModifiedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
976
|
+
readonly RecordType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CUSTOMER", undefined>, v.LiteralSchema<"SUPPLIER", undefined>, v.LiteralSchema<"GENERAL", undefined>], undefined>, undefined>;
|
|
977
|
+
readonly LoginType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
978
|
+
readonly RecordStatus: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"ENABLED", undefined>, v.LiteralSchema<"DISABLED", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"BLACKLISTED", undefined>], undefined>, undefined>;
|
|
979
|
+
readonly Moniker: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
980
|
+
readonly Name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
981
|
+
readonly ExtraInfo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
982
|
+
readonly LanguageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
|
|
983
|
+
readonly Address: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
984
|
+
readonly ZipCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
985
|
+
readonly CityName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
986
|
+
readonly CountyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
987
|
+
readonly StateCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
988
|
+
readonly CategoryCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
989
|
+
readonly PromoterCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
990
|
+
readonly FirstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
991
|
+
readonly MobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
992
|
+
readonly Email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
993
|
+
readonly Gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
|
|
994
|
+
readonly BirthDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
995
|
+
readonly BirthCity: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
996
|
+
readonly BirthCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
997
|
+
readonly EncryptedPassword: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
998
|
+
readonly FiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
999
|
+
readonly VatCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1000
|
+
readonly ThirdPartRecordCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1001
|
+
readonly IdDocumentDetail: v.OptionalSchema<v.ObjectSchema<{
|
|
1002
|
+
readonly idType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1003
|
+
readonly idCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1004
|
+
readonly idIssueLocation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1005
|
+
readonly idIssueCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1006
|
+
readonly idIssueDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1007
|
+
readonly idExpireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1008
|
+
}, undefined>, undefined>;
|
|
1009
|
+
readonly NewsletterDisabled: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
1010
|
+
readonly SupplierRefMasterRecords: v.OptionalSchema<v.AnySchema, undefined>;
|
|
1011
|
+
readonly AccountPolicies: v.OptionalSchema<v.ObjectSchema<{
|
|
1012
|
+
readonly acceptProfilingPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
1013
|
+
readonly acceptPrivacyPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
1014
|
+
readonly acceptNewsletterPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
1015
|
+
}, undefined>, undefined>;
|
|
1016
|
+
readonly FinancialDetail: v.OptionalSchema<v.ObjectSchema<{
|
|
1017
|
+
readonly currencyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1018
|
+
readonly creditLimit: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1019
|
+
readonly c_PaymentType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CASH", undefined>, v.LiteralSchema<"BANK", undefined>, v.LiteralSchema<"RID", undefined>, v.LiteralSchema<"RIBA", undefined>, v.LiteralSchema<"SPECIFIC_CODE", undefined>], undefined>, undefined>;
|
|
1020
|
+
readonly c_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1021
|
+
readonly s_PaymentType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CASH", undefined>, v.LiteralSchema<"BANK", undefined>, v.LiteralSchema<"RID", undefined>, v.LiteralSchema<"RIBA", undefined>, v.LiteralSchema<"SPECIFIC_CODE", undefined>], undefined>, undefined>;
|
|
1022
|
+
readonly s_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1023
|
+
readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
1024
|
+
readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1025
|
+
}, undefined>, undefined>;
|
|
1026
|
+
readonly DynamicFields: v.OptionalSchema<v.ObjectSchema<{
|
|
1027
|
+
readonly key: v.StringSchema<undefined>;
|
|
1028
|
+
readonly value: v.StringSchema<undefined>;
|
|
1029
|
+
}, undefined>, undefined>;
|
|
1030
|
+
}, undefined>, undefined>, v.ObjectSchema<{
|
|
1031
|
+
readonly "@RecordCode": v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 6, undefined>, v.MaxLengthAction<string, 6, undefined>]>, undefined>;
|
|
1032
|
+
readonly "@InsertCriteria": v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"S", undefined>, v.LiteralSchema<"N", undefined>, v.LiteralSchema<"T", undefined>, v.LiteralSchema<"M", undefined>], undefined>, undefined>;
|
|
1033
|
+
readonly CreatedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1034
|
+
readonly ModifiedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1035
|
+
readonly RecordType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CUSTOMER", undefined>, v.LiteralSchema<"SUPPLIER", undefined>, v.LiteralSchema<"GENERAL", undefined>], undefined>, undefined>;
|
|
1036
|
+
readonly LoginType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1037
|
+
readonly RecordStatus: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"ENABLED", undefined>, v.LiteralSchema<"DISABLED", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"BLACKLISTED", undefined>], undefined>, undefined>;
|
|
1038
|
+
readonly Moniker: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1039
|
+
readonly Name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1040
|
+
readonly ExtraInfo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1041
|
+
readonly LanguageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
|
|
1042
|
+
readonly Address: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1043
|
+
readonly ZipCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1044
|
+
readonly CityName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1045
|
+
readonly CountyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1046
|
+
readonly StateCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1047
|
+
readonly CategoryCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1048
|
+
readonly PromoterCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1049
|
+
readonly FirstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1050
|
+
readonly MobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1051
|
+
readonly Email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1052
|
+
readonly Gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
|
|
1053
|
+
readonly BirthDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1054
|
+
readonly BirthCity: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1055
|
+
readonly BirthCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1056
|
+
readonly EncryptedPassword: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
1057
|
+
readonly FiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1058
|
+
readonly VatCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1059
|
+
readonly ThirdPartRecordCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1060
|
+
readonly IdDocumentDetail: v.OptionalSchema<v.ObjectSchema<{
|
|
1061
|
+
readonly idType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1062
|
+
readonly idCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1063
|
+
readonly idIssueLocation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1064
|
+
readonly idIssueCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1065
|
+
readonly idIssueDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1066
|
+
readonly idExpireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1067
|
+
}, undefined>, undefined>;
|
|
1068
|
+
readonly NewsletterDisabled: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
1069
|
+
readonly SupplierRefMasterRecords: v.OptionalSchema<v.AnySchema, undefined>;
|
|
1070
|
+
readonly AccountPolicies: v.OptionalSchema<v.ObjectSchema<{
|
|
1071
|
+
readonly acceptProfilingPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
1072
|
+
readonly acceptPrivacyPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
1073
|
+
readonly acceptNewsletterPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
1074
|
+
}, undefined>, undefined>;
|
|
1075
|
+
readonly FinancialDetail: v.OptionalSchema<v.ObjectSchema<{
|
|
1076
|
+
readonly currencyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1077
|
+
readonly creditLimit: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1078
|
+
readonly c_PaymentType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CASH", undefined>, v.LiteralSchema<"BANK", undefined>, v.LiteralSchema<"RID", undefined>, v.LiteralSchema<"RIBA", undefined>, v.LiteralSchema<"SPECIFIC_CODE", undefined>], undefined>, undefined>;
|
|
1079
|
+
readonly c_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1080
|
+
readonly s_PaymentType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CASH", undefined>, v.LiteralSchema<"BANK", undefined>, v.LiteralSchema<"RID", undefined>, v.LiteralSchema<"RIBA", undefined>, v.LiteralSchema<"SPECIFIC_CODE", undefined>], undefined>, undefined>;
|
|
1081
|
+
readonly s_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1082
|
+
readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
1083
|
+
readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1084
|
+
}, undefined>, undefined>;
|
|
1085
|
+
readonly DynamicFields: v.OptionalSchema<v.ObjectSchema<{
|
|
1086
|
+
readonly key: v.StringSchema<undefined>;
|
|
1087
|
+
readonly value: v.StringSchema<undefined>;
|
|
1088
|
+
}, undefined>, undefined>;
|
|
1089
|
+
}, undefined>], undefined>, v.TransformAction<{
|
|
1090
|
+
"@RecordCode"?: string | undefined;
|
|
1091
|
+
"@InsertCriteria"?: "T" | "M" | "N" | "S" | undefined;
|
|
1092
|
+
CreatedDate?: string | undefined;
|
|
1093
|
+
ModifiedDate?: string | undefined;
|
|
1094
|
+
RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
1095
|
+
LoginType?: string | undefined;
|
|
1096
|
+
RecordStatus?: "WARNING" | "ENABLED" | "DISABLED" | "BLACKLISTED" | undefined;
|
|
1097
|
+
Moniker?: string | undefined;
|
|
1098
|
+
Name?: string | undefined;
|
|
1099
|
+
ExtraInfo?: string | undefined;
|
|
1100
|
+
LanguageCode?: string | undefined;
|
|
1101
|
+
Address?: string | undefined;
|
|
1102
|
+
ZipCode?: string | undefined;
|
|
1103
|
+
CityName?: string | undefined;
|
|
1104
|
+
CountyCode?: string | undefined;
|
|
1105
|
+
StateCode?: string | undefined;
|
|
1106
|
+
CategoryCode?: string | undefined;
|
|
1107
|
+
PromoterCode?: string | undefined;
|
|
1108
|
+
FirstPhoneNumber?: string | undefined;
|
|
1109
|
+
MobilePhoneNumber?: string | undefined;
|
|
1110
|
+
Email?: string | undefined;
|
|
1111
|
+
Gender?: "M" | "F" | undefined;
|
|
1112
|
+
BirthDate?: string | undefined;
|
|
1113
|
+
BirthCity?: string | undefined;
|
|
1114
|
+
BirthCounty?: string | undefined;
|
|
1115
|
+
EncryptedPassword?: boolean | "true" | "false" | undefined;
|
|
1116
|
+
FiscalCode?: string | undefined;
|
|
1117
|
+
VatCode?: string | undefined;
|
|
1118
|
+
ThirdPartRecordCode?: string | undefined;
|
|
1119
|
+
IdDocumentDetail?: {
|
|
1120
|
+
idType?: string | undefined;
|
|
1121
|
+
idCode?: string | undefined;
|
|
1122
|
+
idIssueLocation?: string | undefined;
|
|
1123
|
+
idIssueCounty?: string | undefined;
|
|
1124
|
+
idIssueDate?: string | undefined;
|
|
1125
|
+
idExpireDate?: string | undefined;
|
|
1126
|
+
} | undefined;
|
|
1127
|
+
NewsletterDisabled?: boolean | "true" | "false" | undefined;
|
|
1128
|
+
SupplierRefMasterRecords?: any;
|
|
1129
|
+
AccountPolicies?: {
|
|
1130
|
+
acceptProfilingPolicies?: 0 | 1 | undefined;
|
|
1131
|
+
acceptPrivacyPolicies?: 0 | 1 | undefined;
|
|
1132
|
+
acceptNewsletterPolicies?: 0 | 1 | undefined;
|
|
1133
|
+
} | undefined;
|
|
1134
|
+
FinancialDetail?: {
|
|
1135
|
+
currencyCode?: string | undefined;
|
|
1136
|
+
creditLimit?: string | undefined;
|
|
1137
|
+
c_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
1138
|
+
c_SpecPaymentTypeCode?: string | undefined;
|
|
1139
|
+
s_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
1140
|
+
s_SpecPaymentTypeCode?: string | undefined;
|
|
1141
|
+
enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
|
|
1142
|
+
electronicInvoicingType?: string | undefined;
|
|
1143
|
+
} | undefined;
|
|
1144
|
+
DynamicFields?: {
|
|
1145
|
+
key: string;
|
|
1146
|
+
value: string;
|
|
1147
|
+
} | undefined;
|
|
1148
|
+
} | {
|
|
1149
|
+
"@RecordCode"?: string | undefined;
|
|
1150
|
+
"@InsertCriteria"?: "T" | "M" | "N" | "S" | undefined;
|
|
1151
|
+
CreatedDate?: string | undefined;
|
|
1152
|
+
ModifiedDate?: string | undefined;
|
|
1153
|
+
RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
1154
|
+
LoginType?: string | undefined;
|
|
1155
|
+
RecordStatus?: "WARNING" | "ENABLED" | "DISABLED" | "BLACKLISTED" | undefined;
|
|
1156
|
+
Moniker?: string | undefined;
|
|
1157
|
+
Name?: string | undefined;
|
|
1158
|
+
ExtraInfo?: string | undefined;
|
|
1159
|
+
LanguageCode?: string | undefined;
|
|
1160
|
+
Address?: string | undefined;
|
|
1161
|
+
ZipCode?: string | undefined;
|
|
1162
|
+
CityName?: string | undefined;
|
|
1163
|
+
CountyCode?: string | undefined;
|
|
1164
|
+
StateCode?: string | undefined;
|
|
1165
|
+
CategoryCode?: string | undefined;
|
|
1166
|
+
PromoterCode?: string | undefined;
|
|
1167
|
+
FirstPhoneNumber?: string | undefined;
|
|
1168
|
+
MobilePhoneNumber?: string | undefined;
|
|
1169
|
+
Email?: string | undefined;
|
|
1170
|
+
Gender?: "M" | "F" | undefined;
|
|
1171
|
+
BirthDate?: string | undefined;
|
|
1172
|
+
BirthCity?: string | undefined;
|
|
1173
|
+
BirthCounty?: string | undefined;
|
|
1174
|
+
EncryptedPassword?: boolean | "true" | "false" | undefined;
|
|
1175
|
+
FiscalCode?: string | undefined;
|
|
1176
|
+
VatCode?: string | undefined;
|
|
1177
|
+
ThirdPartRecordCode?: string | undefined;
|
|
1178
|
+
IdDocumentDetail?: {
|
|
1179
|
+
idType?: string | undefined;
|
|
1180
|
+
idCode?: string | undefined;
|
|
1181
|
+
idIssueLocation?: string | undefined;
|
|
1182
|
+
idIssueCounty?: string | undefined;
|
|
1183
|
+
idIssueDate?: string | undefined;
|
|
1184
|
+
idExpireDate?: string | undefined;
|
|
1185
|
+
} | undefined;
|
|
1186
|
+
NewsletterDisabled?: boolean | "true" | "false" | undefined;
|
|
1187
|
+
SupplierRefMasterRecords?: any;
|
|
1188
|
+
AccountPolicies?: {
|
|
1189
|
+
acceptProfilingPolicies?: 0 | 1 | undefined;
|
|
1190
|
+
acceptPrivacyPolicies?: 0 | 1 | undefined;
|
|
1191
|
+
acceptNewsletterPolicies?: 0 | 1 | undefined;
|
|
1192
|
+
} | undefined;
|
|
1193
|
+
FinancialDetail?: {
|
|
1194
|
+
currencyCode?: string | undefined;
|
|
1195
|
+
creditLimit?: string | undefined;
|
|
1196
|
+
c_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
1197
|
+
c_SpecPaymentTypeCode?: string | undefined;
|
|
1198
|
+
s_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
1199
|
+
s_SpecPaymentTypeCode?: string | undefined;
|
|
1200
|
+
enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
|
|
1201
|
+
electronicInvoicingType?: string | undefined;
|
|
1202
|
+
} | undefined;
|
|
1203
|
+
DynamicFields?: {
|
|
1204
|
+
key: string;
|
|
1205
|
+
value: string;
|
|
1206
|
+
} | undefined;
|
|
1207
|
+
}[], {
|
|
1208
|
+
"@RecordCode"?: string | undefined;
|
|
1209
|
+
"@InsertCriteria"?: "T" | "M" | "N" | "S" | undefined;
|
|
1210
|
+
CreatedDate?: string | undefined;
|
|
1211
|
+
ModifiedDate?: string | undefined;
|
|
1212
|
+
RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
1213
|
+
LoginType?: string | undefined;
|
|
1214
|
+
RecordStatus?: "WARNING" | "ENABLED" | "DISABLED" | "BLACKLISTED" | undefined;
|
|
1215
|
+
Moniker?: string | undefined;
|
|
1216
|
+
Name?: string | undefined;
|
|
1217
|
+
ExtraInfo?: string | undefined;
|
|
1218
|
+
LanguageCode?: string | undefined;
|
|
1219
|
+
Address?: string | undefined;
|
|
1220
|
+
ZipCode?: string | undefined;
|
|
1221
|
+
CityName?: string | undefined;
|
|
1222
|
+
CountyCode?: string | undefined;
|
|
1223
|
+
StateCode?: string | undefined;
|
|
1224
|
+
CategoryCode?: string | undefined;
|
|
1225
|
+
PromoterCode?: string | undefined;
|
|
1226
|
+
FirstPhoneNumber?: string | undefined;
|
|
1227
|
+
MobilePhoneNumber?: string | undefined;
|
|
1228
|
+
Email?: string | undefined;
|
|
1229
|
+
Gender?: "M" | "F" | undefined;
|
|
1230
|
+
BirthDate?: string | undefined;
|
|
1231
|
+
BirthCity?: string | undefined;
|
|
1232
|
+
BirthCounty?: string | undefined;
|
|
1233
|
+
EncryptedPassword?: boolean | "true" | "false" | undefined;
|
|
1234
|
+
FiscalCode?: string | undefined;
|
|
1235
|
+
VatCode?: string | undefined;
|
|
1236
|
+
ThirdPartRecordCode?: string | undefined;
|
|
1237
|
+
IdDocumentDetail?: {
|
|
1238
|
+
idType?: string | undefined;
|
|
1239
|
+
idCode?: string | undefined;
|
|
1240
|
+
idIssueLocation?: string | undefined;
|
|
1241
|
+
idIssueCounty?: string | undefined;
|
|
1242
|
+
idIssueDate?: string | undefined;
|
|
1243
|
+
idExpireDate?: string | undefined;
|
|
1244
|
+
} | undefined;
|
|
1245
|
+
NewsletterDisabled?: boolean | "true" | "false" | undefined;
|
|
1246
|
+
SupplierRefMasterRecords?: any;
|
|
1247
|
+
AccountPolicies?: {
|
|
1248
|
+
acceptProfilingPolicies?: 0 | 1 | undefined;
|
|
1249
|
+
acceptPrivacyPolicies?: 0 | 1 | undefined;
|
|
1250
|
+
acceptNewsletterPolicies?: 0 | 1 | undefined;
|
|
1251
|
+
} | undefined;
|
|
1252
|
+
FinancialDetail?: {
|
|
1253
|
+
currencyCode?: string | undefined;
|
|
1254
|
+
creditLimit?: string | undefined;
|
|
1255
|
+
c_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
1256
|
+
c_SpecPaymentTypeCode?: string | undefined;
|
|
1257
|
+
s_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
1258
|
+
s_SpecPaymentTypeCode?: string | undefined;
|
|
1259
|
+
enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
|
|
1260
|
+
electronicInvoicingType?: string | undefined;
|
|
1261
|
+
} | undefined;
|
|
1262
|
+
DynamicFields?: {
|
|
1263
|
+
key: string;
|
|
1264
|
+
value: string;
|
|
1265
|
+
} | undefined;
|
|
1266
|
+
}[] | undefined>]>, undefined>;
|
|
1267
|
+
}, undefined>, undefined>;
|
|
1268
|
+
}, undefined>, v.TransformAction<{
|
|
1269
|
+
RsStatus: {
|
|
1270
|
+
status: "OK" | "ERROR" | "WARNING" | "TIMEOUT";
|
|
1271
|
+
errorCode: number | undefined;
|
|
1272
|
+
errorDescription: string | undefined;
|
|
1273
|
+
warnings: string[] | undefined;
|
|
1274
|
+
};
|
|
1275
|
+
MasterRecordList?: {
|
|
1276
|
+
MasterRecordDetail?: {
|
|
1277
|
+
"@RecordCode"?: string | undefined;
|
|
1278
|
+
"@InsertCriteria"?: "T" | "M" | "N" | "S" | undefined;
|
|
1279
|
+
CreatedDate?: string | undefined;
|
|
1280
|
+
ModifiedDate?: string | undefined;
|
|
1281
|
+
RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
1282
|
+
LoginType?: string | undefined;
|
|
1283
|
+
RecordStatus?: "WARNING" | "ENABLED" | "DISABLED" | "BLACKLISTED" | undefined;
|
|
1284
|
+
Moniker?: string | undefined;
|
|
1285
|
+
Name?: string | undefined;
|
|
1286
|
+
ExtraInfo?: string | undefined;
|
|
1287
|
+
LanguageCode?: string | undefined;
|
|
1288
|
+
Address?: string | undefined;
|
|
1289
|
+
ZipCode?: string | undefined;
|
|
1290
|
+
CityName?: string | undefined;
|
|
1291
|
+
CountyCode?: string | undefined;
|
|
1292
|
+
StateCode?: string | undefined;
|
|
1293
|
+
CategoryCode?: string | undefined;
|
|
1294
|
+
PromoterCode?: string | undefined;
|
|
1295
|
+
FirstPhoneNumber?: string | undefined;
|
|
1296
|
+
MobilePhoneNumber?: string | undefined;
|
|
1297
|
+
Email?: string | undefined;
|
|
1298
|
+
Gender?: "M" | "F" | undefined;
|
|
1299
|
+
BirthDate?: string | undefined;
|
|
1300
|
+
BirthCity?: string | undefined;
|
|
1301
|
+
BirthCounty?: string | undefined;
|
|
1302
|
+
EncryptedPassword?: boolean | "true" | "false" | undefined;
|
|
1303
|
+
FiscalCode?: string | undefined;
|
|
1304
|
+
VatCode?: string | undefined;
|
|
1305
|
+
ThirdPartRecordCode?: string | undefined;
|
|
1306
|
+
IdDocumentDetail?: {
|
|
1307
|
+
idType?: string | undefined;
|
|
1308
|
+
idCode?: string | undefined;
|
|
1309
|
+
idIssueLocation?: string | undefined;
|
|
1310
|
+
idIssueCounty?: string | undefined;
|
|
1311
|
+
idIssueDate?: string | undefined;
|
|
1312
|
+
idExpireDate?: string | undefined;
|
|
1313
|
+
} | undefined;
|
|
1314
|
+
NewsletterDisabled?: boolean | "true" | "false" | undefined;
|
|
1315
|
+
SupplierRefMasterRecords?: any;
|
|
1316
|
+
AccountPolicies?: {
|
|
1317
|
+
acceptProfilingPolicies?: 0 | 1 | undefined;
|
|
1318
|
+
acceptPrivacyPolicies?: 0 | 1 | undefined;
|
|
1319
|
+
acceptNewsletterPolicies?: 0 | 1 | undefined;
|
|
1320
|
+
} | undefined;
|
|
1321
|
+
FinancialDetail?: {
|
|
1322
|
+
currencyCode?: string | undefined;
|
|
1323
|
+
creditLimit?: string | undefined;
|
|
1324
|
+
c_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
1325
|
+
c_SpecPaymentTypeCode?: string | undefined;
|
|
1326
|
+
s_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
1327
|
+
s_SpecPaymentTypeCode?: string | undefined;
|
|
1328
|
+
enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
|
|
1329
|
+
electronicInvoicingType?: string | undefined;
|
|
1330
|
+
} | undefined;
|
|
1331
|
+
DynamicFields?: {
|
|
1332
|
+
key: string;
|
|
1333
|
+
value: string;
|
|
1334
|
+
} | undefined;
|
|
1335
|
+
}[] | undefined;
|
|
1336
|
+
} | undefined;
|
|
1337
|
+
}, {
|
|
1338
|
+
rsStatus: {
|
|
1339
|
+
status: "OK" | "ERROR" | "WARNING" | "TIMEOUT";
|
|
1340
|
+
errorCode: number | undefined;
|
|
1341
|
+
errorDescription: string | undefined;
|
|
1342
|
+
warnings: string[] | undefined;
|
|
1343
|
+
};
|
|
1344
|
+
masterRecordList?: {
|
|
1345
|
+
masterRecordDetail?: {
|
|
1346
|
+
recordCode?: string | undefined;
|
|
1347
|
+
insertCriteria?: "T" | "M" | "N" | "S" | undefined;
|
|
1348
|
+
createdDate?: string | undefined;
|
|
1349
|
+
modifiedDate?: string | undefined;
|
|
1350
|
+
recordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
1351
|
+
loginType?: string | undefined;
|
|
1352
|
+
recordStatus?: "WARNING" | "ENABLED" | "DISABLED" | "BLACKLISTED" | undefined;
|
|
1353
|
+
moniker?: string | undefined;
|
|
1354
|
+
name?: string | undefined;
|
|
1355
|
+
extraInfo?: string | undefined;
|
|
1356
|
+
languageCode?: string | undefined;
|
|
1357
|
+
address?: string | undefined;
|
|
1358
|
+
zipCode?: string | undefined;
|
|
1359
|
+
cityName?: string | undefined;
|
|
1360
|
+
countyCode?: string | undefined;
|
|
1361
|
+
stateCode?: string | undefined;
|
|
1362
|
+
categoryCode?: string | undefined;
|
|
1363
|
+
promoterCode?: string | undefined;
|
|
1364
|
+
firstPhoneNumber?: string | undefined;
|
|
1365
|
+
mobilePhoneNumber?: string | undefined;
|
|
1366
|
+
email?: string | undefined;
|
|
1367
|
+
gender?: "M" | "F" | undefined;
|
|
1368
|
+
birthDate?: string | undefined;
|
|
1369
|
+
birthCity?: string | undefined;
|
|
1370
|
+
birthCounty?: string | undefined;
|
|
1371
|
+
encryptedPassword?: boolean | "true" | "false" | undefined;
|
|
1372
|
+
fiscalCode?: string | undefined;
|
|
1373
|
+
vatCode?: string | undefined;
|
|
1374
|
+
thirdPartRecordCode?: string | undefined;
|
|
1375
|
+
idDocumentDetail?: {
|
|
1376
|
+
idType?: string | undefined;
|
|
1377
|
+
idCode?: string | undefined;
|
|
1378
|
+
idIssueLocation?: string | undefined;
|
|
1379
|
+
idIssueCounty?: string | undefined;
|
|
1380
|
+
idIssueDate?: string | undefined;
|
|
1381
|
+
idExpireDate?: string | undefined;
|
|
1382
|
+
} | undefined;
|
|
1383
|
+
newsletterDisabled?: boolean | "true" | "false" | undefined;
|
|
1384
|
+
supplierRefMasterRecords?: any;
|
|
1385
|
+
accountPolicies?: {
|
|
1386
|
+
acceptProfilingPolicies?: 0 | 1 | undefined;
|
|
1387
|
+
acceptPrivacyPolicies?: 0 | 1 | undefined;
|
|
1388
|
+
acceptNewsletterPolicies?: 0 | 1 | undefined;
|
|
1389
|
+
} | undefined;
|
|
1390
|
+
financialDetail?: {
|
|
1391
|
+
currencyCode?: string | undefined;
|
|
1392
|
+
creditLimit?: string | undefined;
|
|
1393
|
+
cPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
1394
|
+
cSpecPaymentTypeCode?: string | undefined;
|
|
1395
|
+
sPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
1396
|
+
sSpecPaymentTypeCode?: string | undefined;
|
|
1397
|
+
enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
|
|
1398
|
+
electronicInvoicingType?: string | undefined;
|
|
1399
|
+
} | undefined;
|
|
1400
|
+
dynamicFields?: {
|
|
1401
|
+
key: string;
|
|
1402
|
+
value: string;
|
|
1403
|
+
} | undefined;
|
|
1404
|
+
}[] | undefined;
|
|
1405
|
+
} | undefined;
|
|
1406
|
+
}>]>;
|
|
1407
|
+
//#endregion
|
|
1408
|
+
//#region src/schemas/upsert.d.ts
|
|
1409
|
+
/**
|
|
1410
|
+
* Complete upsert request schema with header and required InsertCriteria
|
|
1411
|
+
*/
|
|
1412
|
+
declare const ManageMasterRecordRequestSchema: v.ObjectSchema<{
|
|
1413
|
+
readonly RqHeader: v.ObjectSchema<{
|
|
1414
|
+
readonly "@HostID": v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 6, undefined>, v.MaxLengthAction<string, 6, undefined>]>;
|
|
1415
|
+
readonly "@Xtoken": v.StringSchema<undefined>;
|
|
1416
|
+
readonly "@Interface": v.LiteralSchema<"WEB", undefined>;
|
|
1417
|
+
readonly "@UserName": v.LiteralSchema<"WEB", undefined>;
|
|
1418
|
+
readonly "@LanguageCode": v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
|
|
1419
|
+
}, undefined>;
|
|
1420
|
+
readonly MasterRecordDetail: v.ObjectSchema<{
|
|
1421
|
+
readonly "@RecordCode": v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 6, undefined>, v.MaxLengthAction<string, 6, undefined>]>, undefined>;
|
|
1422
|
+
readonly "@InsertCriteria": v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"S", undefined>, v.LiteralSchema<"N", undefined>, v.LiteralSchema<"T", undefined>, v.LiteralSchema<"M", undefined>], undefined>, undefined>;
|
|
1423
|
+
readonly CreatedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1424
|
+
readonly ModifiedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1425
|
+
readonly RecordType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CUSTOMER", undefined>, v.LiteralSchema<"SUPPLIER", undefined>, v.LiteralSchema<"GENERAL", undefined>], undefined>, undefined>;
|
|
1426
|
+
readonly LoginType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1427
|
+
readonly RecordStatus: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"ENABLED", undefined>, v.LiteralSchema<"DISABLED", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"BLACKLISTED", undefined>], undefined>, undefined>;
|
|
1428
|
+
readonly Moniker: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1429
|
+
readonly Name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1430
|
+
readonly ExtraInfo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1431
|
+
readonly LanguageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
|
|
1432
|
+
readonly Address: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1433
|
+
readonly ZipCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1434
|
+
readonly CityName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1435
|
+
readonly CountyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1436
|
+
readonly StateCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1437
|
+
readonly CategoryCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1438
|
+
readonly PromoterCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1439
|
+
readonly FirstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1440
|
+
readonly MobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1441
|
+
readonly Email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1442
|
+
readonly Gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
|
|
1443
|
+
readonly BirthDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1444
|
+
readonly BirthCity: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1445
|
+
readonly BirthCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1446
|
+
readonly EncryptedPassword: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
1447
|
+
readonly FiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1448
|
+
readonly VatCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1449
|
+
readonly ThirdPartRecordCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1450
|
+
readonly IdDocumentDetail: v.OptionalSchema<v.ObjectSchema<{
|
|
1451
|
+
readonly idType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1452
|
+
readonly idCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1453
|
+
readonly idIssueLocation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1454
|
+
readonly idIssueCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1455
|
+
readonly idIssueDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1456
|
+
readonly idExpireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1457
|
+
}, undefined>, undefined>;
|
|
1458
|
+
readonly NewsletterDisabled: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
1459
|
+
readonly SupplierRefMasterRecords: v.OptionalSchema<v.AnySchema, undefined>;
|
|
1460
|
+
readonly AccountPolicies: v.OptionalSchema<v.ObjectSchema<{
|
|
1461
|
+
readonly acceptProfilingPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
1462
|
+
readonly acceptPrivacyPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
1463
|
+
readonly acceptNewsletterPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
1464
|
+
}, undefined>, undefined>;
|
|
1465
|
+
readonly FinancialDetail: v.OptionalSchema<v.ObjectSchema<{
|
|
1466
|
+
readonly currencyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1467
|
+
readonly creditLimit: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1468
|
+
readonly c_PaymentType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CASH", undefined>, v.LiteralSchema<"BANK", undefined>, v.LiteralSchema<"RID", undefined>, v.LiteralSchema<"RIBA", undefined>, v.LiteralSchema<"SPECIFIC_CODE", undefined>], undefined>, undefined>;
|
|
1469
|
+
readonly c_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1470
|
+
readonly s_PaymentType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CASH", undefined>, v.LiteralSchema<"BANK", undefined>, v.LiteralSchema<"RID", undefined>, v.LiteralSchema<"RIBA", undefined>, v.LiteralSchema<"SPECIFIC_CODE", undefined>], undefined>, undefined>;
|
|
1471
|
+
readonly s_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1472
|
+
readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
1473
|
+
readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1474
|
+
}, undefined>, undefined>;
|
|
1475
|
+
readonly DynamicFields: v.OptionalSchema<v.ObjectSchema<{
|
|
1476
|
+
readonly key: v.StringSchema<undefined>;
|
|
1477
|
+
readonly value: v.StringSchema<undefined>;
|
|
1478
|
+
}, undefined>, undefined>;
|
|
1479
|
+
}, undefined>;
|
|
1480
|
+
}, undefined>;
|
|
1481
|
+
/**
|
|
1482
|
+
* Upsert master record response schema (transforms to camelCase)
|
|
1483
|
+
*/
|
|
1484
|
+
declare const ManageMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1485
|
+
readonly RsStatus: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
1486
|
+
readonly "@Status": v.UnionSchema<[v.LiteralSchema<"OK", undefined>, v.LiteralSchema<"ERROR", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"TIMEOUT", undefined>], undefined>;
|
|
1487
|
+
readonly ErrorCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>]>, undefined>;
|
|
1488
|
+
readonly ErrorDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1489
|
+
readonly Warnings: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, string[]>]>, undefined>;
|
|
1490
|
+
}, undefined>, v.TransformAction<{
|
|
1491
|
+
"@Status": "OK" | "ERROR" | "WARNING" | "TIMEOUT";
|
|
1492
|
+
ErrorCode?: number | undefined;
|
|
1493
|
+
ErrorDescription?: string | undefined;
|
|
1494
|
+
Warnings?: string[] | undefined;
|
|
1495
|
+
}, {
|
|
1496
|
+
status: "OK" | "ERROR" | "WARNING" | "TIMEOUT";
|
|
1497
|
+
errorCode: number | undefined;
|
|
1498
|
+
errorDescription: string | undefined;
|
|
1499
|
+
warnings: string[] | undefined;
|
|
1500
|
+
}>]>;
|
|
1501
|
+
readonly MasterRecordDetail: v.OptionalSchema<v.ObjectSchema<{
|
|
1502
|
+
readonly "@RecordCode": v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 6, undefined>, v.MaxLengthAction<string, 6, undefined>]>, undefined>;
|
|
1503
|
+
readonly "@InsertCriteria": v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"S", undefined>, v.LiteralSchema<"N", undefined>, v.LiteralSchema<"T", undefined>, v.LiteralSchema<"M", undefined>], undefined>, undefined>;
|
|
1504
|
+
readonly CreatedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1505
|
+
readonly ModifiedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1506
|
+
readonly RecordType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CUSTOMER", undefined>, v.LiteralSchema<"SUPPLIER", undefined>, v.LiteralSchema<"GENERAL", undefined>], undefined>, undefined>;
|
|
1507
|
+
readonly LoginType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1508
|
+
readonly RecordStatus: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"ENABLED", undefined>, v.LiteralSchema<"DISABLED", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"BLACKLISTED", undefined>], undefined>, undefined>;
|
|
1509
|
+
readonly Moniker: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1510
|
+
readonly Name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1511
|
+
readonly ExtraInfo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1512
|
+
readonly LanguageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
|
|
1513
|
+
readonly Address: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1514
|
+
readonly ZipCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1515
|
+
readonly CityName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1516
|
+
readonly CountyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1517
|
+
readonly StateCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1518
|
+
readonly CategoryCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1519
|
+
readonly PromoterCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1520
|
+
readonly FirstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1521
|
+
readonly MobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1522
|
+
readonly Email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1523
|
+
readonly Gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
|
|
1524
|
+
readonly BirthDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1525
|
+
readonly BirthCity: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1526
|
+
readonly BirthCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1527
|
+
readonly EncryptedPassword: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
1528
|
+
readonly FiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1529
|
+
readonly VatCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1530
|
+
readonly ThirdPartRecordCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1531
|
+
readonly IdDocumentDetail: v.OptionalSchema<v.ObjectSchema<{
|
|
1532
|
+
readonly idType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1533
|
+
readonly idCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1534
|
+
readonly idIssueLocation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1535
|
+
readonly idIssueCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1536
|
+
readonly idIssueDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1537
|
+
readonly idExpireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1538
|
+
}, undefined>, undefined>;
|
|
1539
|
+
readonly NewsletterDisabled: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
1540
|
+
readonly SupplierRefMasterRecords: v.OptionalSchema<v.AnySchema, undefined>;
|
|
1541
|
+
readonly AccountPolicies: v.OptionalSchema<v.ObjectSchema<{
|
|
1542
|
+
readonly acceptProfilingPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
1543
|
+
readonly acceptPrivacyPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
1544
|
+
readonly acceptNewsletterPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
1545
|
+
}, undefined>, undefined>;
|
|
1546
|
+
readonly FinancialDetail: v.OptionalSchema<v.ObjectSchema<{
|
|
1547
|
+
readonly currencyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1548
|
+
readonly creditLimit: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1549
|
+
readonly c_PaymentType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CASH", undefined>, v.LiteralSchema<"BANK", undefined>, v.LiteralSchema<"RID", undefined>, v.LiteralSchema<"RIBA", undefined>, v.LiteralSchema<"SPECIFIC_CODE", undefined>], undefined>, undefined>;
|
|
1550
|
+
readonly c_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1551
|
+
readonly s_PaymentType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CASH", undefined>, v.LiteralSchema<"BANK", undefined>, v.LiteralSchema<"RID", undefined>, v.LiteralSchema<"RIBA", undefined>, v.LiteralSchema<"SPECIFIC_CODE", undefined>], undefined>, undefined>;
|
|
1552
|
+
readonly s_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1553
|
+
readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
1554
|
+
readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1555
|
+
}, undefined>, undefined>;
|
|
1556
|
+
readonly DynamicFields: v.OptionalSchema<v.ObjectSchema<{
|
|
1557
|
+
readonly key: v.StringSchema<undefined>;
|
|
1558
|
+
readonly value: v.StringSchema<undefined>;
|
|
1559
|
+
}, undefined>, undefined>;
|
|
1560
|
+
}, undefined>, undefined>;
|
|
1561
|
+
}, undefined>, v.TransformAction<{
|
|
1562
|
+
RsStatus: {
|
|
1563
|
+
status: "OK" | "ERROR" | "WARNING" | "TIMEOUT";
|
|
1564
|
+
errorCode: number | undefined;
|
|
1565
|
+
errorDescription: string | undefined;
|
|
1566
|
+
warnings: string[] | undefined;
|
|
1567
|
+
};
|
|
1568
|
+
MasterRecordDetail?: {
|
|
1569
|
+
"@RecordCode"?: string | undefined;
|
|
1570
|
+
"@InsertCriteria"?: "T" | "M" | "N" | "S" | undefined;
|
|
1571
|
+
CreatedDate?: string | undefined;
|
|
1572
|
+
ModifiedDate?: string | undefined;
|
|
1573
|
+
RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
1574
|
+
LoginType?: string | undefined;
|
|
1575
|
+
RecordStatus?: "WARNING" | "ENABLED" | "DISABLED" | "BLACKLISTED" | undefined;
|
|
1576
|
+
Moniker?: string | undefined;
|
|
1577
|
+
Name?: string | undefined;
|
|
1578
|
+
ExtraInfo?: string | undefined;
|
|
1579
|
+
LanguageCode?: string | undefined;
|
|
1580
|
+
Address?: string | undefined;
|
|
1581
|
+
ZipCode?: string | undefined;
|
|
1582
|
+
CityName?: string | undefined;
|
|
1583
|
+
CountyCode?: string | undefined;
|
|
1584
|
+
StateCode?: string | undefined;
|
|
1585
|
+
CategoryCode?: string | undefined;
|
|
1586
|
+
PromoterCode?: string | undefined;
|
|
1587
|
+
FirstPhoneNumber?: string | undefined;
|
|
1588
|
+
MobilePhoneNumber?: string | undefined;
|
|
1589
|
+
Email?: string | undefined;
|
|
1590
|
+
Gender?: "M" | "F" | undefined;
|
|
1591
|
+
BirthDate?: string | undefined;
|
|
1592
|
+
BirthCity?: string | undefined;
|
|
1593
|
+
BirthCounty?: string | undefined;
|
|
1594
|
+
EncryptedPassword?: boolean | "true" | "false" | undefined;
|
|
1595
|
+
FiscalCode?: string | undefined;
|
|
1596
|
+
VatCode?: string | undefined;
|
|
1597
|
+
ThirdPartRecordCode?: string | undefined;
|
|
1598
|
+
IdDocumentDetail?: {
|
|
1599
|
+
idType?: string | undefined;
|
|
1600
|
+
idCode?: string | undefined;
|
|
1601
|
+
idIssueLocation?: string | undefined;
|
|
1602
|
+
idIssueCounty?: string | undefined;
|
|
1603
|
+
idIssueDate?: string | undefined;
|
|
1604
|
+
idExpireDate?: string | undefined;
|
|
1605
|
+
} | undefined;
|
|
1606
|
+
NewsletterDisabled?: boolean | "true" | "false" | undefined;
|
|
1607
|
+
SupplierRefMasterRecords?: any;
|
|
1608
|
+
AccountPolicies?: {
|
|
1609
|
+
acceptProfilingPolicies?: 0 | 1 | undefined;
|
|
1610
|
+
acceptPrivacyPolicies?: 0 | 1 | undefined;
|
|
1611
|
+
acceptNewsletterPolicies?: 0 | 1 | undefined;
|
|
1612
|
+
} | undefined;
|
|
1613
|
+
FinancialDetail?: {
|
|
1614
|
+
currencyCode?: string | undefined;
|
|
1615
|
+
creditLimit?: string | undefined;
|
|
1616
|
+
c_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
1617
|
+
c_SpecPaymentTypeCode?: string | undefined;
|
|
1618
|
+
s_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
1619
|
+
s_SpecPaymentTypeCode?: string | undefined;
|
|
1620
|
+
enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
|
|
1621
|
+
electronicInvoicingType?: string | undefined;
|
|
1622
|
+
} | undefined;
|
|
1623
|
+
DynamicFields?: {
|
|
1624
|
+
key: string;
|
|
1625
|
+
value: string;
|
|
1626
|
+
} | undefined;
|
|
1627
|
+
} | undefined;
|
|
1628
|
+
}, {
|
|
1629
|
+
rsStatus: {
|
|
1630
|
+
status: "OK" | "ERROR" | "WARNING" | "TIMEOUT";
|
|
1631
|
+
errorCode: number | undefined;
|
|
1632
|
+
errorDescription: string | undefined;
|
|
1633
|
+
warnings: string[] | undefined;
|
|
1634
|
+
};
|
|
1635
|
+
masterRecordDetail?: {
|
|
1636
|
+
recordCode?: string | undefined;
|
|
1637
|
+
insertCriteria?: "T" | "M" | "N" | "S" | undefined;
|
|
1638
|
+
createdDate?: string | undefined;
|
|
1639
|
+
modifiedDate?: string | undefined;
|
|
1640
|
+
recordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
1641
|
+
loginType?: string | undefined;
|
|
1642
|
+
recordStatus?: "WARNING" | "ENABLED" | "DISABLED" | "BLACKLISTED" | undefined;
|
|
1643
|
+
moniker?: string | undefined;
|
|
1644
|
+
name?: string | undefined;
|
|
1645
|
+
extraInfo?: string | undefined;
|
|
1646
|
+
languageCode?: string | undefined;
|
|
1647
|
+
address?: string | undefined;
|
|
1648
|
+
zipCode?: string | undefined;
|
|
1649
|
+
cityName?: string | undefined;
|
|
1650
|
+
countyCode?: string | undefined;
|
|
1651
|
+
stateCode?: string | undefined;
|
|
1652
|
+
categoryCode?: string | undefined;
|
|
1653
|
+
promoterCode?: string | undefined;
|
|
1654
|
+
firstPhoneNumber?: string | undefined;
|
|
1655
|
+
mobilePhoneNumber?: string | undefined;
|
|
1656
|
+
email?: string | undefined;
|
|
1657
|
+
gender?: "M" | "F" | undefined;
|
|
1658
|
+
birthDate?: string | undefined;
|
|
1659
|
+
birthCity?: string | undefined;
|
|
1660
|
+
birthCounty?: string | undefined;
|
|
1661
|
+
encryptedPassword?: boolean | "true" | "false" | undefined;
|
|
1662
|
+
fiscalCode?: string | undefined;
|
|
1663
|
+
vatCode?: string | undefined;
|
|
1664
|
+
thirdPartRecordCode?: string | undefined;
|
|
1665
|
+
idDocumentDetail?: {
|
|
1666
|
+
idType?: string | undefined;
|
|
1667
|
+
idCode?: string | undefined;
|
|
1668
|
+
idIssueLocation?: string | undefined;
|
|
1669
|
+
idIssueCounty?: string | undefined;
|
|
1670
|
+
idIssueDate?: string | undefined;
|
|
1671
|
+
idExpireDate?: string | undefined;
|
|
1672
|
+
} | undefined;
|
|
1673
|
+
newsletterDisabled?: boolean | "true" | "false" | undefined;
|
|
1674
|
+
supplierRefMasterRecords?: any;
|
|
1675
|
+
accountPolicies?: {
|
|
1676
|
+
acceptProfilingPolicies?: 0 | 1 | undefined;
|
|
1677
|
+
acceptPrivacyPolicies?: 0 | 1 | undefined;
|
|
1678
|
+
acceptNewsletterPolicies?: 0 | 1 | undefined;
|
|
1679
|
+
} | undefined;
|
|
1680
|
+
financialDetail?: {
|
|
1681
|
+
currencyCode?: string | undefined;
|
|
1682
|
+
creditLimit?: string | undefined;
|
|
1683
|
+
cPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
1684
|
+
cSpecPaymentTypeCode?: string | undefined;
|
|
1685
|
+
sPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
|
|
1686
|
+
sSpecPaymentTypeCode?: string | undefined;
|
|
1687
|
+
enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
|
|
1688
|
+
electronicInvoicingType?: string | undefined;
|
|
1689
|
+
} | undefined;
|
|
1690
|
+
dynamicFields?: {
|
|
1691
|
+
key: string;
|
|
1692
|
+
value: string;
|
|
1693
|
+
} | undefined;
|
|
1694
|
+
} | undefined;
|
|
1695
|
+
}>]>;
|
|
1696
|
+
//#endregion
|
|
1697
|
+
//#region src/utils/case-transform.d.ts
|
|
1698
|
+
type CamelFromDelimiter<S extends string> = S extends `${infer H}_${infer T}` ? `${H}${Capitalize<CamelFromDelimiter<T>>}` : S extends `${infer H}-${infer T}` ? `${H}${Capitalize<CamelFromDelimiter<T>>}` : S;
|
|
1699
|
+
type ToCamelCase<S extends string> = CamelFromDelimiter<S> extends `${infer F}${infer R}` ? `${Lowercase<F>}${R}` : CamelFromDelimiter<S>;
|
|
1700
|
+
/** Keys that are preserved as-is (no recursive transform) at runtime */
|
|
1701
|
+
type Primitive = string | number | boolean | symbol | bigint | null | undefined;
|
|
1702
|
+
type SpecialObject = Date | RegExp | Map<unknown, unknown> | Set<unknown> | Error;
|
|
1703
|
+
/** Maps key K: strips leading @ and converts to camelCase for mapped output key */
|
|
1704
|
+
type CamelizeKey<K extends string> = K extends `@${infer Rest}` ? ToCamelCase<Rest> : ToCamelCase<K>;
|
|
1705
|
+
/** Maps key K: strips leading @ and converts to PascalCase for mapped output key */
|
|
1706
|
+
/**
|
|
1707
|
+
* Recursively maps PascalCase/@-prefixed object keys to camelCase.
|
|
1708
|
+
* Reflects pascalToCamelKeys runtime: primitives and special objects preserved; arrays and plain objects recursively transformed.
|
|
1709
|
+
*/
|
|
1710
|
+
type Camelize<T> = T extends Primitive ? T : T extends SpecialObject ? T : T extends readonly (infer U)[] ? Camelize<U>[] : T extends object ? { [K in keyof T as CamelizeKey<K & string>]: Camelize<T[K]> } : T;
|
|
1711
|
+
//#endregion
|
|
1712
|
+
//#region src/types.d.ts
|
|
1713
|
+
/**
|
|
1714
|
+
* Request header containing authentication credentials for AVES API calls.
|
|
1715
|
+
*
|
|
1716
|
+
* @property hostID - 6-digit identification code assigned to your organization
|
|
1717
|
+
* @property xtoken - Authentication token for API access
|
|
1718
|
+
* @property interface - Interface type, always 'WEB'
|
|
1719
|
+
* @property userName - Username for the request, always 'WEB'
|
|
1720
|
+
* @property languageCode - Optional 2-character ISO language code (e.g., '02' for Italian)
|
|
1721
|
+
*/
|
|
1722
|
+
type RqHeader = InferInput<typeof RqHeaderSchema>;
|
|
1723
|
+
/**
|
|
1724
|
+
* Response status returned by all AVES API operations.
|
|
1725
|
+
*
|
|
1726
|
+
* @property status - Result status: 'OK' (success), 'ERROR' (failure), 'WARNING' (partial success), 'TIMEOUT'
|
|
1727
|
+
* @property errorCode - Numeric error code when status is 'ERROR' (e.g., 1001, 1002)
|
|
1728
|
+
* @property errorDescription - Human-readable error message
|
|
1729
|
+
* @property warnings - Array of warning messages when status is 'WARNING'
|
|
1730
|
+
*
|
|
1731
|
+
* @example
|
|
1732
|
+
* ```typescript
|
|
1733
|
+
* if (response.rsStatus.status === 'OK') {
|
|
1734
|
+
* // Process successful response
|
|
1735
|
+
* } else {
|
|
1736
|
+
* console.error(response.rsStatus.errorDescription);
|
|
1737
|
+
* }
|
|
1738
|
+
* ```
|
|
1739
|
+
*/
|
|
1740
|
+
type RsStatus = Camelize<InferOutput<typeof RsStatusSchema>>;
|
|
1741
|
+
/**
|
|
1742
|
+
* Financial and payment details for a master record.
|
|
1743
|
+
*
|
|
1744
|
+
* @property currencyCode - ISO currency code (e.g., 'EUR', 'USD')
|
|
1745
|
+
* @property creditLimit - Maximum credit amount as a string
|
|
1746
|
+
* @property c_PaymentType - Customer payment type: 'CASH' | 'BANK' | 'RID' | 'RIBA' | 'SPECIFIC_CODE'
|
|
1747
|
+
* @property c_SpecPaymentTypeCode - Specific payment code when c_PaymentType is 'SPECIFIC_CODE'
|
|
1748
|
+
* @property s_PaymentType - Supplier payment type: 'CASH' | 'BANK' | 'RID' | 'RIBA' | 'SPECIFIC_CODE'
|
|
1749
|
+
* @property s_SpecPaymentTypeCode - Specific payment code when s_PaymentType is 'SPECIFIC_CODE'
|
|
1750
|
+
* @property enableElectronicInvoicing - Enable electronic invoicing (accepts boolean or 'true'/'false' string)
|
|
1751
|
+
* @property electronicInvoicingType - Type of electronic invoicing when enabled
|
|
1752
|
+
*/
|
|
1753
|
+
type FinancialDetail = InferInput<typeof FinancialDetailSchema>;
|
|
1754
|
+
/**
|
|
1755
|
+
* Identity document details for a master record.
|
|
1756
|
+
*
|
|
1757
|
+
* @property idType - Document type code (e.g., 'PASSPORT', 'ID_CARD')
|
|
1758
|
+
* @property idCode - Document number/identifier
|
|
1759
|
+
* @property idIssueLocation - Location where the document was issued
|
|
1760
|
+
* @property idIssueCounty - County/region code where issued
|
|
1761
|
+
* @property idIssueDate - Issue date in ISO format (YYYY-MM-DD)
|
|
1762
|
+
* @property idExpireDate - Expiration date in ISO format (YYYY-MM-DD)
|
|
1763
|
+
*/
|
|
1764
|
+
type IdDocumentDetail = InferInput<typeof IdDocumentDetailSchema>;
|
|
1765
|
+
/**
|
|
1766
|
+
* Privacy and marketing policy acceptance flags.
|
|
1767
|
+
*
|
|
1768
|
+
* @property acceptProfilingPolicies - User consent for profiling (0 = not accepted, 1 = accepted)
|
|
1769
|
+
* @property acceptPrivacyPolicies - User consent for privacy policy (0 = not accepted, 1 = accepted)
|
|
1770
|
+
* @property acceptNewsletterPolicies - User consent for newsletter (0 = not accepted, 1 = accepted)
|
|
1771
|
+
*/
|
|
1772
|
+
type AccountPolicies = InferInput<typeof AccountPoliciesSchema>;
|
|
1773
|
+
/**
|
|
1774
|
+
* Custom key-value field for extending master record data.
|
|
1775
|
+
*
|
|
1776
|
+
* @property key - Unique identifier for the dynamic field
|
|
1777
|
+
* @property value - Value associated with the key
|
|
1778
|
+
*
|
|
1779
|
+
* @example
|
|
1780
|
+
* ```typescript
|
|
1781
|
+
* const dynamicField: DynamicFields = {
|
|
1782
|
+
* key: 'loyalty_tier',
|
|
1783
|
+
* value: 'gold'
|
|
1784
|
+
* };
|
|
1785
|
+
* ```
|
|
1786
|
+
*/
|
|
1787
|
+
type DynamicFields = InferInput<typeof DynamicFieldsSchema>;
|
|
1788
|
+
/**
|
|
1789
|
+
* Master record detail for creating or updating customer, supplier, or general records.
|
|
1790
|
+
*
|
|
1791
|
+
* This is the primary input type for the `upsertRecord` method.
|
|
1792
|
+
*
|
|
1793
|
+
* @property recordCode - 6-character unique identifier (auto-generated if not provided)
|
|
1794
|
+
* @property insertCriteria - Duplicate handling strategy:
|
|
1795
|
+
* - 'S' (Skip): Skip if duplicate exists
|
|
1796
|
+
* - 'N' (New): Always create new record
|
|
1797
|
+
* - 'T' (Throw): Error if duplicate exists
|
|
1798
|
+
* - 'M' (Merge): Merge with existing record
|
|
1799
|
+
* @property createdDate - Record creation date in ISO format
|
|
1800
|
+
* @property recordType - Classification: 'CUSTOMER' | 'SUPPLIER' | 'GENERAL' (defaults to 'CUSTOMER')
|
|
1801
|
+
* @property recordStatus - Status: 'ENABLED' | 'DISABLED' | 'WARNING' | 'BLACKLISTED' (defaults to 'ENABLED')
|
|
1802
|
+
* @property moniker - Short display name or alias
|
|
1803
|
+
* @property name - Full name (person or company)
|
|
1804
|
+
* @property extraInfo - Additional information field
|
|
1805
|
+
* @property languageCode - Required 2-character ISO language code (e.g., '02' for Italian, '01' for English)
|
|
1806
|
+
* @property address - Street address
|
|
1807
|
+
* @property zipCode - Postal/ZIP code
|
|
1808
|
+
* @property cityName - City name
|
|
1809
|
+
* @property countyCode - County/province code
|
|
1810
|
+
* @property stateCode - Country/state code
|
|
1811
|
+
* @property categoryCode - Category classification code
|
|
1812
|
+
* @property firstPhoneNumber - Primary phone number
|
|
1813
|
+
* @property mobilePhoneNumber - Mobile phone number
|
|
1814
|
+
* @property email - Email address
|
|
1815
|
+
* @property gender - Gender: 'M' (male) | 'F' (female)
|
|
1816
|
+
* @property birthDate - Date of birth in ISO format (YYYY-MM-DD)
|
|
1817
|
+
* @property birthCity - City of birth
|
|
1818
|
+
* @property birthCounty - County of birth
|
|
1819
|
+
* @property fiscalCode - Tax/fiscal identification code
|
|
1820
|
+
* @property vatCode - VAT number
|
|
1821
|
+
* @property thirdPartRecordCode - External system reference code
|
|
1822
|
+
* @property idDocumentDetail - Identity document information
|
|
1823
|
+
* @property accountPolicies - Privacy and marketing consent flags
|
|
1824
|
+
* @property financialDetail - Financial and payment details
|
|
1825
|
+
* @property dynamicFields - Custom key-value fields
|
|
1826
|
+
*
|
|
1827
|
+
* @example
|
|
1828
|
+
* ```typescript
|
|
1829
|
+
* const record: MasterRecordDetail = {
|
|
1830
|
+
* languageCode: '02',
|
|
1831
|
+
* name: 'Mario Rossi',
|
|
1832
|
+
* email: 'mario.rossi@example.com',
|
|
1833
|
+
* recordType: 'CUSTOMER',
|
|
1834
|
+
* insertCriteria: 'M',
|
|
1835
|
+
* accountPolicies: {
|
|
1836
|
+
* acceptPrivacyPolicies: 1,
|
|
1837
|
+
* acceptNewsletterPolicies: 0,
|
|
1838
|
+
* },
|
|
1839
|
+
* };
|
|
1840
|
+
* ```
|
|
1841
|
+
*/
|
|
1842
|
+
type MasterRecordDetail = InferInput<typeof MasterRecordDetailSchema>;
|
|
1843
|
+
/**
|
|
1844
|
+
* Master record detail as returned by the API (camelCase transformed).
|
|
1845
|
+
*
|
|
1846
|
+
* Contains all fields from {@link MasterRecordDetail} plus additional read-only fields
|
|
1847
|
+
* populated by the server (e.g., `modifiedDate`, `loginType`).
|
|
1848
|
+
*/
|
|
1849
|
+
type MasterRecordDetailResponse = InferOutput<typeof MasterRecordDetailResponseSchema>;
|
|
1850
|
+
/**
|
|
1851
|
+
* Search parameters for finding master records.
|
|
1852
|
+
*
|
|
1853
|
+
* This is a discriminated union based on `searchType`. Each search type requires
|
|
1854
|
+
* different parameters:
|
|
1855
|
+
*
|
|
1856
|
+
* | searchType | Required Fields | Optional Fields |
|
|
1857
|
+
* |------------|-----------------|-----------------|
|
|
1858
|
+
* | 'CODE' | recordCode | languageCode |
|
|
1859
|
+
* | 'NAME' | name | city, languageCode |
|
|
1860
|
+
* | 'VATCODE' | vatCode | phoneNumber, languageCode |
|
|
1861
|
+
* | 'ZONE' | zipCode, countyCode | city, languageCode |
|
|
1862
|
+
* | 'CATEGORY' | categoryCode | languageCode |
|
|
1863
|
+
* | 'EMAIL' | email | languageCode |
|
|
1864
|
+
* | 'LASTMODDATE' | lastModificationDate | languageCode |
|
|
1865
|
+
* | 'SEARCH_FIELD' | searchFieldValue | languageCode |
|
|
1866
|
+
* | 'EXTERNAL_REF_CODE' | searchFieldValue | languageCode |
|
|
1867
|
+
*
|
|
1868
|
+
* @example
|
|
1869
|
+
* ```typescript
|
|
1870
|
+
* // Search by customer code
|
|
1871
|
+
* const byCode: SearchMasterRecord = {
|
|
1872
|
+
* searchType: 'CODE',
|
|
1873
|
+
* recordCode: '508558',
|
|
1874
|
+
* };
|
|
1875
|
+
*
|
|
1876
|
+
* // Search by name and city
|
|
1877
|
+
* const byName: SearchMasterRecord = {
|
|
1878
|
+
* searchType: 'NAME',
|
|
1879
|
+
* name: 'Rossi',
|
|
1880
|
+
* city: 'Milano',
|
|
1881
|
+
* };
|
|
1882
|
+
*
|
|
1883
|
+
* // Search by last modification date range
|
|
1884
|
+
* const byDate: SearchMasterRecord = {
|
|
1885
|
+
* searchType: 'LASTMODDATE',
|
|
1886
|
+
* lastModificationDate: {
|
|
1887
|
+
* minDate: '2024-01-01',
|
|
1888
|
+
* maxDate: '2024-12-31',
|
|
1889
|
+
* },
|
|
1890
|
+
* };
|
|
1891
|
+
* ```
|
|
1892
|
+
*/
|
|
1893
|
+
type SearchMasterRecord = InferInput<typeof SearchMasterRecordSchema>;
|
|
1894
|
+
/**
|
|
1895
|
+
* Response from a master record search operation.
|
|
1896
|
+
*
|
|
1897
|
+
* @property rsStatus - Operation status (check for 'OK' before accessing results)
|
|
1898
|
+
* @property masterRecordList - Object containing array of matching records
|
|
1899
|
+
* @property masterRecordList.masterRecordDetail - Array of {@link MasterRecordDetailResponse} objects
|
|
1900
|
+
*
|
|
1901
|
+
* @example
|
|
1902
|
+
* ```typescript
|
|
1903
|
+
* const result = await client.search({ searchType: 'CODE', recordCode: '508558' });
|
|
1904
|
+
* if (result.success && result.data.rsStatus.status === 'OK') {
|
|
1905
|
+
* const records = result.data.masterRecordList?.masterRecordDetail ?? [];
|
|
1906
|
+
* records.forEach(record => console.log(record.name));
|
|
1907
|
+
* }
|
|
1908
|
+
* ```
|
|
1909
|
+
*/
|
|
1910
|
+
type SearchMasterRecordRS = InferOutput<typeof SearchMasterRecordResponseSchema>;
|
|
1911
|
+
/**
|
|
1912
|
+
* Complete request structure for insert/update operations (internal use).
|
|
1913
|
+
*
|
|
1914
|
+
* @property RqHeader - Authentication header
|
|
1915
|
+
* @property MasterRecordDetail - Record data to insert or update
|
|
1916
|
+
*
|
|
1917
|
+
* @internal This type is primarily for internal SDK use. Use {@link MasterRecordDetail}
|
|
1918
|
+
* as the input type for `client.upsertRecord()`.
|
|
1919
|
+
*/
|
|
1920
|
+
type ManageMasterRecordRequest = InferInput<typeof ManageMasterRecordRequestSchema>;
|
|
1921
|
+
/**
|
|
1922
|
+
* Response from an insert/update operation.
|
|
1923
|
+
*
|
|
1924
|
+
* @property rsStatus - Operation status (check for 'OK' to confirm success)
|
|
1925
|
+
* @property masterRecordDetail - The created/updated record with server-assigned values
|
|
1926
|
+
* (e.g., `recordCode` for new records)
|
|
1927
|
+
*
|
|
1928
|
+
* @example
|
|
1929
|
+
* ```typescript
|
|
1930
|
+
* const result = await client.upsertRecord({
|
|
1931
|
+
* languageCode: '02',
|
|
1932
|
+
* name: 'New Customer',
|
|
1933
|
+
* insertCriteria: 'N',
|
|
1934
|
+
* });
|
|
1935
|
+
*
|
|
1936
|
+
* if (result.success) {
|
|
1937
|
+
* const newCode = result.data.masterRecordDetail?.recordCode;
|
|
1938
|
+
* console.log(`Created record with code: ${newCode}`);
|
|
1939
|
+
* }
|
|
1940
|
+
* ```
|
|
1941
|
+
*/
|
|
1942
|
+
type ManageMasterRecordRS = InferOutput<typeof ManageMasterRecordResponseSchema>;
|
|
1943
|
+
/**
|
|
1944
|
+
* Request body for CreateBookingFile (BookFileRQ).
|
|
1945
|
+
* Maps to AVES XML 1.8.0 "BookingFileRQ" / BookFileRQ structure.
|
|
1946
|
+
*
|
|
1947
|
+
* @property createDate - Creation date of booking file (optional; Aves uses system date if omitted)
|
|
1948
|
+
* @property bookingFileRefCode - Reference code of an external booking system
|
|
1949
|
+
* @property travelAgentCode - Travel agent code
|
|
1950
|
+
* @property clerkName - Clerk name
|
|
1951
|
+
* @property customerDetail - Customer: record code if in Aves DB, or full data to insert (see Common Structures)
|
|
1952
|
+
* @property currencyCode - Currency code
|
|
1953
|
+
* @property markupCode - Markup code applied
|
|
1954
|
+
* @property bookingFileStatus - Status (QUOTATION | WORK_IN_PROGRESS | CONFIRM | CONFIRMED | OPTION | OPTIONED | REQUEST | CANCELED); ExpiredDate only for OPTIONED
|
|
1955
|
+
* @property statisticCodes - Statistic codes (sCode1..sCode6, string up to 4)
|
|
1956
|
+
* @property destination - Destination (code, iataCode, nationCode)
|
|
1957
|
+
* @property bookingFileDescription - Booking file description
|
|
1958
|
+
* @property startDate - Start date of booking file (required)
|
|
1959
|
+
* @property endDate - End date of booking file (required)
|
|
1960
|
+
* @property earlyBookingDate - Early booking date for discount
|
|
1961
|
+
* @property cupCode - CupCode
|
|
1962
|
+
* @property cigCode - CigCode
|
|
1963
|
+
* @property customerPromoterCode - Customer promoter code
|
|
1964
|
+
* @property billingReferenceCode - Aves code for billing
|
|
1965
|
+
* @property paymentReferenceCode - Aves code for payment
|
|
1966
|
+
* @property bookingFileDocument - Print/send document options and infoDocumentsToPrint
|
|
1967
|
+
* @property financialDeadlineList - List of financial deadlines
|
|
1968
|
+
* @property deadlineList - List of deadlines
|
|
1969
|
+
* @property paymentList - List of payments
|
|
1970
|
+
* @property selectedPackageList - List of selected packages (pCode, startDate, endDate, getServicesFromPackage)
|
|
1971
|
+
* @property selectedServiceList - List of selected services (required)
|
|
1972
|
+
* @property extraQuotaRefCode - Code of program with extra services (e.g. insurance)
|
|
1973
|
+
* @property extraQuoteServiceList - List of extra services
|
|
1974
|
+
* @property getExtraQuoteFromSystem - Force Aves to get extra quotes from DB
|
|
1975
|
+
* @property passengerList - List of passengers (required)
|
|
1976
|
+
* @property noteList - Notes
|
|
1977
|
+
* @property bookingFinancialInfo - Payment type (Customer_PaymentType, Customer_SpecPaymentTypeCode)
|
|
1978
|
+
* @property bookingFileCode - Booking file code
|
|
1979
|
+
* @property groupingPaxPolicy - GROUPED_PAX | NOT_GROUPED_PAX | ONE_PAX_ONLY
|
|
1980
|
+
* @property groupBookingFile - true/false for group booking
|
|
1981
|
+
* @property typeDownloadFile - AVES2AVES | AVES2AVESVIA | AVES2AVESITA
|
|
1982
|
+
* @property setBookingFileCodeFromStartDate - Set booking code from departure date
|
|
1983
|
+
*/
|
|
1984
|
+
type BookingFileRQ = InferInput<typeof BookingFileSchema>;
|
|
1985
|
+
/**
|
|
1986
|
+
* Response from CreateBookingFile (BookingFileRS).
|
|
1987
|
+
*
|
|
1988
|
+
* @property rsStatus - Operation status (check for 'OK' before using result)
|
|
1989
|
+
* @property bookingFileDetail - Created booking file detail (camelCase); see Common Structures "BOOKEDFILE"
|
|
1990
|
+
*/
|
|
1991
|
+
type BookingFileRS = InferOutput<typeof BookingFileResponseSchema>;
|
|
1992
|
+
/**
|
|
1993
|
+
* Configuration options for the AVES API client.
|
|
1994
|
+
*
|
|
1995
|
+
* @property baseURL - Base URL of the AVES API (e.g., 'https://api.aves.example.com')
|
|
1996
|
+
* @property hostID - 6-digit identification code assigned to your organization
|
|
1997
|
+
* @property xtoken - Authentication token for API access
|
|
1998
|
+
* @property languageCode - Optional default 2-character language code for all requests
|
|
1999
|
+
* @property timeoutMs - Optional request timeout in milliseconds (default: 30000)
|
|
2000
|
+
*
|
|
2001
|
+
* @example
|
|
2002
|
+
* ```typescript
|
|
2003
|
+
* const client = new AvesClient({
|
|
2004
|
+
* baseURL: 'https://api.aves.example.com',
|
|
2005
|
+
* hostID: '025706',
|
|
2006
|
+
* xtoken: 'TOKEN025706',
|
|
2007
|
+
* languageCode: '02',
|
|
2008
|
+
* timeoutMs: 10000,
|
|
2009
|
+
* });
|
|
2010
|
+
* ```
|
|
2011
|
+
*/
|
|
2012
|
+
interface AvesClientOptions {
|
|
2013
|
+
/** Base URL of the AVES API (e.g., 'https://api.aves.example.com') */
|
|
2014
|
+
baseURL: string;
|
|
2015
|
+
/** 6-digit identification code assigned to your organization */
|
|
2016
|
+
hostID: string;
|
|
2017
|
+
/** Authentication token for API access */
|
|
2018
|
+
xtoken: string;
|
|
2019
|
+
/** Optional default 2-character language code for all requests */
|
|
2020
|
+
languageCode?: string;
|
|
2021
|
+
/** Optional request timeout in milliseconds (default: 30000) */
|
|
2022
|
+
timeoutMs?: number;
|
|
2023
|
+
}
|
|
2024
|
+
//#endregion
|
|
2025
|
+
//#region src/utils/result.d.ts
|
|
2026
|
+
/**
|
|
2027
|
+
* Result type for functional error handling
|
|
2028
|
+
*/
|
|
2029
|
+
type Result<T, E = Error> = {
|
|
2030
|
+
success: true;
|
|
2031
|
+
data: T;
|
|
2032
|
+
} | {
|
|
2033
|
+
success: false;
|
|
2034
|
+
error: E;
|
|
2035
|
+
};
|
|
2036
|
+
//#endregion
|
|
2037
|
+
//#region src/client.d.ts
|
|
2038
|
+
/**
|
|
2039
|
+
* AVES XML REST API client
|
|
2040
|
+
*/
|
|
2041
|
+
declare class AvesClient {
|
|
2042
|
+
private readonly options;
|
|
2043
|
+
/**
|
|
2044
|
+
* @param options - Client configuration options
|
|
2045
|
+
* @param options.baseURL - Base URL of the AVES API
|
|
2046
|
+
* @param options.hostID - 6-digit identification code
|
|
2047
|
+
* @param options.xtoken - Authentication token
|
|
2048
|
+
* @param options.languageCode - Optional 2-digit language code
|
|
2049
|
+
* @param options.timeoutMs - Optional request timeout in milliseconds
|
|
2050
|
+
*/
|
|
2051
|
+
constructor(options: AvesClientOptions);
|
|
2052
|
+
private createRqHeader;
|
|
2053
|
+
private createUrl;
|
|
2054
|
+
private get endpoints();
|
|
2055
|
+
private handleApiStatus;
|
|
2056
|
+
private toAvesError;
|
|
2057
|
+
private request;
|
|
2058
|
+
/**
|
|
2059
|
+
* Search for master records
|
|
2060
|
+
* @param params - Search master record request body in camelCase ({@link SearchMasterRecord})
|
|
2061
|
+
* @returns Result containing list of matching master records in camelCase or error
|
|
2062
|
+
*/
|
|
2063
|
+
search(params: SearchMasterRecord): Promise<Result<SearchMasterRecordRS, AvesError>>;
|
|
2064
|
+
/**
|
|
2065
|
+
* Insert or update a master record
|
|
2066
|
+
* @param record - Master record data in camelCase ({@link MasterRecordDetail})
|
|
2067
|
+
* @returns Result containing response with customer record code in camelCase or error
|
|
2068
|
+
*/
|
|
2069
|
+
upsertRecord(record: MasterRecordDetail): Promise<Result<ManageMasterRecordRS, AvesError>>;
|
|
2070
|
+
/**
|
|
2071
|
+
* Create a booking file (CreateBookingFile).
|
|
2072
|
+
* @param params - Booking file request body in camelCase ({@link BookingFileRQ})
|
|
2073
|
+
* @returns Result containing booking file detail in camelCase or error
|
|
2074
|
+
*/
|
|
2075
|
+
createBooking(params: BookingFileRQ): Promise<Result<BookingFileRS, AvesError>>;
|
|
2076
|
+
}
|
|
2077
|
+
//#endregion
|
|
2078
|
+
export { type AccountPolicies, AvesClient, type AvesClientOptions, AvesError, type BookingFileRQ, type BookingFileRS, type DynamicFields, type FinancialDetail, type IdDocumentDetail, type ManageMasterRecordRS, type ManageMasterRecordRequest, type MasterRecordDetail, type MasterRecordDetailResponse, type RqHeader, type RsStatus, type SearchMasterRecord, type SearchMasterRecordRS };
|
|
2079
|
+
//# sourceMappingURL=index.d.mts.map
|