aves-sdk 1.3.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts DELETED
@@ -1,1571 +0,0 @@
1
- import * as v from 'valibot';
2
- import { InferInput, InferOutput } from 'valibot';
3
-
4
- declare const ERROR_KINDS: {
5
- readonly VALIDATION: "validation";
6
- readonly API: "api";
7
- readonly UNKNOWN: "unknown";
8
- };
9
- type ErrorKind = (typeof ERROR_KINDS)[keyof typeof ERROR_KINDS];
10
- /**
11
- * Error thrown by AVES API operations
12
- */
13
- declare class AvesError extends Error {
14
- readonly kind: ErrorKind;
15
- readonly message: string;
16
- readonly status?: string | undefined;
17
- readonly code?: number | string | undefined;
18
- constructor(kind: ErrorKind, message: string, status?: string | undefined, code?: number | string | undefined);
19
- private parseCode;
20
- }
21
-
22
- /**
23
- * Request header schema with authentication credentials
24
- */
25
- declare const RqHeaderSchema: v.ObjectSchema<{
26
- readonly "@HostID": v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 6, undefined>, v.MaxLengthAction<string, 6, undefined>]>;
27
- readonly "@Xtoken": v.StringSchema<undefined>;
28
- readonly "@Interface": v.LiteralSchema<"WEB", undefined>;
29
- readonly "@UserName": v.LiteralSchema<"WEB", undefined>;
30
- readonly "@LanguageCode": v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
31
- }, undefined>;
32
- /**
33
- * Response status schema indicating success, error, or warning
34
- */
35
- declare const RsStatusSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
36
- readonly "@Status": v.UnionSchema<[v.LiteralSchema<"OK", undefined>, v.LiteralSchema<"ERROR", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"TIMEOUT", undefined>], undefined>;
37
- readonly ErrorCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>]>, undefined>;
38
- readonly ErrorDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
39
- readonly Warnings: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, string[]>]>, undefined>;
40
- }, undefined>, v.TransformAction<{
41
- "@Status": "WARNING" | "OK" | "ERROR" | "TIMEOUT";
42
- ErrorCode?: number | undefined;
43
- ErrorDescription?: string | undefined;
44
- Warnings?: string[] | undefined;
45
- }, {
46
- status: "WARNING" | "OK" | "ERROR" | "TIMEOUT";
47
- errorCode: number | undefined;
48
- errorDescription: string | undefined;
49
- warnings: string[] | undefined;
50
- }>]>;
51
-
52
- /**
53
- * Financial detail schema for API requests (transforms to PascalCase)
54
- */
55
- declare const FinancialDetailSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
56
- readonly currencyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
57
- readonly creditLimit: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
58
- 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>;
59
- readonly c_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
60
- 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>;
61
- readonly s_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
62
- readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
63
- readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
64
- }, undefined>, v.TransformAction<{
65
- currencyCode?: string | undefined;
66
- creditLimit?: string | undefined;
67
- c_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
68
- c_SpecPaymentTypeCode?: string | undefined;
69
- s_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
70
- s_SpecPaymentTypeCode?: string | undefined;
71
- enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
72
- electronicInvoicingType?: string | undefined;
73
- }, {
74
- CurrencyCode?: string | undefined;
75
- CreditLimit?: string | undefined;
76
- CPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
77
- CSpecPaymentTypeCode?: string | undefined;
78
- SPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
79
- SSpecPaymentTypeCode?: string | undefined;
80
- EnableElectronicInvoicing?: boolean | "true" | "false" | undefined;
81
- ElectronicInvoicingType?: string | undefined;
82
- }>]>;
83
- /**
84
- * ID document detail schema for API requests (transforms to PascalCase)
85
- */
86
- declare const IdDocumentDetailSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
87
- readonly idType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
88
- readonly idCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
89
- readonly idIssueLocation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
90
- readonly idIssueCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
91
- readonly idIssueDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
92
- readonly idExpireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
93
- }, undefined>, v.TransformAction<{
94
- idType?: string | undefined;
95
- idCode?: string | undefined;
96
- idIssueLocation?: string | undefined;
97
- idIssueCounty?: string | undefined;
98
- idIssueDate?: string | undefined;
99
- idExpireDate?: string | undefined;
100
- }, {
101
- IdType?: string | undefined;
102
- IdCode?: string | undefined;
103
- IdIssueLocation?: string | undefined;
104
- IdIssueCounty?: string | undefined;
105
- IdIssueDate?: string | undefined;
106
- IdExpireDate?: string | undefined;
107
- }>]>;
108
- /**
109
- * Dynamic fields schema for API requests (transforms to PascalCase)
110
- */
111
- declare const DynamicFieldsSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
112
- readonly key: v.StringSchema<undefined>;
113
- readonly value: v.StringSchema<undefined>;
114
- }, undefined>, v.TransformAction<{
115
- key: string;
116
- value: string;
117
- }, {
118
- Key: string;
119
- Value: string;
120
- }>]>;
121
- /**
122
- * Account policies schema for API requests (transforms to PascalCase with @ attributes)
123
- */
124
- declare const AccountPoliciesSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
125
- readonly acceptProfilingPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
126
- readonly acceptPrivacyPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
127
- readonly acceptNewsletterPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
128
- }, undefined>, v.TransformAction<{
129
- acceptProfilingPolicies?: 0 | 1 | undefined;
130
- acceptPrivacyPolicies?: 0 | 1 | undefined;
131
- acceptNewsletterPolicies?: 0 | 1 | undefined;
132
- }, {
133
- AcceptProfilingPolicies?: 0 | 1 | undefined;
134
- AcceptPrivacyPolicies?: 0 | 1 | undefined;
135
- AcceptNewsletterPolicies?: 0 | 1 | undefined;
136
- }>]>;
137
- /**
138
- * Master record detail input schema (camelCase)
139
- */
140
- declare const MasterRecordDetailSchema: v.ObjectSchema<{
141
- readonly recordCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 6, undefined>, v.MaxLengthAction<string, 6, undefined>]>, undefined>;
142
- readonly insertCriteria: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"S", undefined>, v.LiteralSchema<"N", undefined>, v.LiteralSchema<"T", undefined>, v.LiteralSchema<"M", undefined>], undefined>, undefined>;
143
- readonly createdDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
144
- readonly recordType: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.LiteralSchema<"CUSTOMER", undefined>, v.LiteralSchema<"SUPPLIER", undefined>, v.LiteralSchema<"GENERAL", undefined>], undefined>], "CUSTOMER">, undefined>;
145
- 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>;
146
- readonly moniker: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
147
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
148
- readonly extraInfo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
149
- readonly languageCode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>;
150
- readonly address: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
151
- readonly zipCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
152
- readonly cityName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
153
- readonly countyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
154
- readonly stateCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
155
- readonly categoryCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
156
- readonly firstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
157
- readonly mobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
158
- readonly email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
159
- readonly gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
160
- readonly birthDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
161
- readonly birthCity: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
162
- readonly birthCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
163
- readonly fiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
164
- readonly vatCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
165
- readonly thirdPartRecordCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
166
- readonly idDocumentDetail: v.OptionalSchema<v.ObjectSchema<{
167
- readonly idType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
168
- readonly idCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
169
- readonly idIssueLocation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
170
- readonly idIssueCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
171
- readonly idIssueDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
172
- readonly idExpireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
173
- }, undefined>, undefined>;
174
- readonly accountPolicies: v.OptionalSchema<v.ObjectSchema<{
175
- readonly acceptProfilingPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
176
- readonly acceptPrivacyPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
177
- readonly acceptNewsletterPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
178
- }, undefined>, undefined>;
179
- readonly financialDetail: v.OptionalSchema<v.ObjectSchema<{
180
- readonly currencyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
181
- readonly creditLimit: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
182
- 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>;
183
- readonly c_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
184
- 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>;
185
- readonly s_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
186
- readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
187
- readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
188
- }, undefined>, undefined>;
189
- readonly dynamicFields: v.OptionalSchema<v.ObjectSchema<{
190
- readonly key: v.StringSchema<undefined>;
191
- readonly value: v.StringSchema<undefined>;
192
- }, undefined>, undefined>;
193
- }, undefined>;
194
- /**
195
- * Master record detail response schema (transforms to camelCase)
196
- */
197
- declare const MasterRecordDetailResponseSchema: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
198
- readonly recordCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 6, undefined>, v.MaxLengthAction<string, 6, undefined>]>, undefined>;
199
- readonly insertCriteria: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"S", undefined>, v.LiteralSchema<"N", undefined>, v.LiteralSchema<"T", undefined>, v.LiteralSchema<"M", undefined>], undefined>, undefined>;
200
- readonly createdDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
201
- readonly recordType: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.LiteralSchema<"CUSTOMER", undefined>, v.LiteralSchema<"SUPPLIER", undefined>, v.LiteralSchema<"GENERAL", undefined>], undefined>], "CUSTOMER">, undefined>;
202
- 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>;
203
- readonly moniker: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
204
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
205
- readonly extraInfo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
206
- readonly languageCode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>;
207
- readonly address: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
208
- readonly zipCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
209
- readonly cityName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
210
- readonly countyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
211
- readonly stateCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
212
- readonly categoryCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
213
- readonly firstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
214
- readonly mobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
215
- readonly email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
216
- readonly gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
217
- readonly birthDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
218
- readonly birthCity: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
219
- readonly birthCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
220
- readonly fiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
221
- readonly vatCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
222
- readonly thirdPartRecordCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
223
- readonly idDocumentDetail: v.OptionalSchema<v.ObjectSchema<{
224
- readonly idType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
225
- readonly idCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
226
- readonly idIssueLocation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
227
- readonly idIssueCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
228
- readonly idIssueDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
229
- readonly idExpireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
230
- }, undefined>, undefined>;
231
- readonly accountPolicies: v.OptionalSchema<v.ObjectSchema<{
232
- readonly acceptProfilingPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
233
- readonly acceptPrivacyPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
234
- readonly acceptNewsletterPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
235
- }, undefined>, undefined>;
236
- readonly financialDetail: v.OptionalSchema<v.ObjectSchema<{
237
- readonly currencyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
238
- readonly creditLimit: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
239
- 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>;
240
- readonly c_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
241
- 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>;
242
- readonly s_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
243
- readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
244
- readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
245
- }, undefined>, undefined>;
246
- readonly dynamicFields: v.OptionalSchema<v.ObjectSchema<{
247
- readonly key: v.StringSchema<undefined>;
248
- readonly value: v.StringSchema<undefined>;
249
- }, undefined>, undefined>;
250
- }, undefined>, v.TransformAction<{
251
- recordCode?: string | undefined;
252
- insertCriteria?: "S" | "N" | "T" | "M" | undefined;
253
- createdDate?: string | undefined;
254
- recordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
255
- recordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
256
- moniker?: string | undefined;
257
- name?: string | undefined;
258
- extraInfo?: string | undefined;
259
- languageCode: string;
260
- address?: string | undefined;
261
- zipCode?: string | undefined;
262
- cityName?: string | undefined;
263
- countyCode?: string | undefined;
264
- stateCode?: string | undefined;
265
- categoryCode?: string | undefined;
266
- firstPhoneNumber?: string | undefined;
267
- mobilePhoneNumber?: string | undefined;
268
- email?: string | undefined;
269
- gender?: "M" | "F" | undefined;
270
- birthDate?: string | undefined;
271
- birthCity?: string | undefined;
272
- birthCounty?: string | undefined;
273
- fiscalCode?: string | undefined;
274
- vatCode?: string | undefined;
275
- thirdPartRecordCode?: string | undefined;
276
- idDocumentDetail?: {
277
- idType?: string | undefined;
278
- idCode?: string | undefined;
279
- idIssueLocation?: string | undefined;
280
- idIssueCounty?: string | undefined;
281
- idIssueDate?: string | undefined;
282
- idExpireDate?: string | undefined;
283
- } | undefined;
284
- accountPolicies?: {
285
- acceptProfilingPolicies?: 0 | 1 | undefined;
286
- acceptPrivacyPolicies?: 0 | 1 | undefined;
287
- acceptNewsletterPolicies?: 0 | 1 | undefined;
288
- } | undefined;
289
- financialDetail?: {
290
- currencyCode?: string | undefined;
291
- creditLimit?: string | undefined;
292
- c_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
293
- c_SpecPaymentTypeCode?: string | undefined;
294
- s_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
295
- s_SpecPaymentTypeCode?: string | undefined;
296
- enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
297
- electronicInvoicingType?: string | undefined;
298
- } | undefined;
299
- dynamicFields?: {
300
- key: string;
301
- value: string;
302
- } | undefined;
303
- }, {
304
- RecordCode?: string | undefined;
305
- InsertCriteria?: "S" | "N" | "T" | "M" | undefined;
306
- CreatedDate?: string | undefined;
307
- RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
308
- RecordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
309
- Moniker?: string | undefined;
310
- Name?: string | undefined;
311
- ExtraInfo?: string | undefined;
312
- LanguageCode: string;
313
- Address?: string | undefined;
314
- ZipCode?: string | undefined;
315
- CityName?: string | undefined;
316
- CountyCode?: string | undefined;
317
- StateCode?: string | undefined;
318
- CategoryCode?: string | undefined;
319
- FirstPhoneNumber?: string | undefined;
320
- MobilePhoneNumber?: string | undefined;
321
- Email?: string | undefined;
322
- Gender?: "M" | "F" | undefined;
323
- BirthDate?: string | undefined;
324
- BirthCity?: string | undefined;
325
- BirthCounty?: string | undefined;
326
- FiscalCode?: string | undefined;
327
- VatCode?: string | undefined;
328
- ThirdPartRecordCode?: string | undefined;
329
- IdDocumentDetail?: {
330
- IdType?: string | undefined;
331
- IdCode?: string | undefined;
332
- IdIssueLocation?: string | undefined;
333
- IdIssueCounty?: string | undefined;
334
- IdIssueDate?: string | undefined;
335
- IdExpireDate?: string | undefined;
336
- } | undefined;
337
- AccountPolicies?: {
338
- AcceptProfilingPolicies?: 0 | 1 | undefined;
339
- AcceptPrivacyPolicies?: 0 | 1 | undefined;
340
- AcceptNewsletterPolicies?: 0 | 1 | undefined;
341
- } | undefined;
342
- FinancialDetail?: {
343
- CurrencyCode?: string | undefined;
344
- CreditLimit?: string | undefined;
345
- CPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
346
- CSpecPaymentTypeCode?: string | undefined;
347
- SPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
348
- SSpecPaymentTypeCode?: string | undefined;
349
- EnableElectronicInvoicing?: boolean | "true" | "false" | undefined;
350
- ElectronicInvoicingType?: string | undefined;
351
- } | undefined;
352
- DynamicFields?: {
353
- Key: string;
354
- Value: string;
355
- } | undefined;
356
- }>]>, v.TransformAction<{
357
- RecordCode?: string | undefined;
358
- InsertCriteria?: "S" | "N" | "T" | "M" | undefined;
359
- CreatedDate?: string | undefined;
360
- RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
361
- RecordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
362
- Moniker?: string | undefined;
363
- Name?: string | undefined;
364
- ExtraInfo?: string | undefined;
365
- LanguageCode: string;
366
- Address?: string | undefined;
367
- ZipCode?: string | undefined;
368
- CityName?: string | undefined;
369
- CountyCode?: string | undefined;
370
- StateCode?: string | undefined;
371
- CategoryCode?: string | undefined;
372
- FirstPhoneNumber?: string | undefined;
373
- MobilePhoneNumber?: string | undefined;
374
- Email?: string | undefined;
375
- Gender?: "M" | "F" | undefined;
376
- BirthDate?: string | undefined;
377
- BirthCity?: string | undefined;
378
- BirthCounty?: string | undefined;
379
- FiscalCode?: string | undefined;
380
- VatCode?: string | undefined;
381
- ThirdPartRecordCode?: string | undefined;
382
- IdDocumentDetail?: {
383
- IdType?: string | undefined;
384
- IdCode?: string | undefined;
385
- IdIssueLocation?: string | undefined;
386
- IdIssueCounty?: string | undefined;
387
- IdIssueDate?: string | undefined;
388
- IdExpireDate?: string | undefined;
389
- } | undefined;
390
- AccountPolicies?: {
391
- AcceptProfilingPolicies?: 0 | 1 | undefined;
392
- AcceptPrivacyPolicies?: 0 | 1 | undefined;
393
- AcceptNewsletterPolicies?: 0 | 1 | undefined;
394
- } | undefined;
395
- FinancialDetail?: {
396
- CurrencyCode?: string | undefined;
397
- CreditLimit?: string | undefined;
398
- CPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
399
- CSpecPaymentTypeCode?: string | undefined;
400
- SPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
401
- SSpecPaymentTypeCode?: string | undefined;
402
- EnableElectronicInvoicing?: boolean | "true" | "false" | undefined;
403
- ElectronicInvoicingType?: string | undefined;
404
- } | undefined;
405
- DynamicFields?: {
406
- Key: string;
407
- Value: string;
408
- } | undefined;
409
- }, {
410
- recordCode?: string | undefined;
411
- insertCriteria?: "S" | "N" | "T" | "M" | undefined;
412
- createdDate?: string | undefined;
413
- recordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
414
- recordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
415
- moniker?: string | undefined;
416
- name?: string | undefined;
417
- extraInfo?: string | undefined;
418
- languageCode: string;
419
- address?: string | undefined;
420
- zipCode?: string | undefined;
421
- cityName?: string | undefined;
422
- countyCode?: string | undefined;
423
- stateCode?: string | undefined;
424
- categoryCode?: string | undefined;
425
- firstPhoneNumber?: string | undefined;
426
- mobilePhoneNumber?: string | undefined;
427
- email?: string | undefined;
428
- gender?: "M" | "F" | undefined;
429
- birthDate?: string | undefined;
430
- birthCity?: string | undefined;
431
- birthCounty?: string | undefined;
432
- fiscalCode?: string | undefined;
433
- vatCode?: string | undefined;
434
- thirdPartRecordCode?: string | undefined;
435
- idDocumentDetail?: {
436
- idType?: string | undefined;
437
- idCode?: string | undefined;
438
- idIssueLocation?: string | undefined;
439
- idIssueCounty?: string | undefined;
440
- idIssueDate?: string | undefined;
441
- idExpireDate?: string | undefined;
442
- } | undefined;
443
- accountPolicies?: {
444
- acceptProfilingPolicies?: 0 | 1 | undefined;
445
- acceptPrivacyPolicies?: 0 | 1 | undefined;
446
- acceptNewsletterPolicies?: 0 | 1 | undefined;
447
- } | undefined;
448
- financialDetail?: {
449
- currencyCode?: string | undefined;
450
- creditLimit?: string | undefined;
451
- cPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
452
- cSpecPaymentTypeCode?: string | undefined;
453
- sPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
454
- sSpecPaymentTypeCode?: string | undefined;
455
- enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
456
- electronicInvoicingType?: string | undefined;
457
- } | undefined;
458
- dynamicFields?: {
459
- key: string;
460
- value: string;
461
- } | undefined;
462
- }>]>;
463
-
464
- /**
465
- * Search master record input schema (camelCase)
466
- * Conditional fields based on searchType
467
- */
468
- declare const SearchMasterRecordSchema: v.UnionSchema<[v.ObjectSchema<{
469
- readonly searchType: v.LiteralSchema<"CODE", undefined>;
470
- readonly recordCode: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 6, undefined>]>;
471
- readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
472
- }, undefined>, v.ObjectSchema<{
473
- readonly searchType: v.LiteralSchema<"NAME", undefined>;
474
- readonly name: v.StringSchema<undefined>;
475
- readonly city: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
476
- readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
477
- }, undefined>, v.ObjectSchema<{
478
- readonly searchType: v.LiteralSchema<"VATCODE", undefined>;
479
- readonly vatCode: v.StringSchema<undefined>;
480
- readonly phoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
481
- readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
482
- }, undefined>, v.ObjectSchema<{
483
- readonly searchType: v.LiteralSchema<"ZONE", undefined>;
484
- readonly zipCode: v.StringSchema<undefined>;
485
- readonly countyCode: v.StringSchema<undefined>;
486
- readonly city: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
487
- readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
488
- }, undefined>, v.ObjectSchema<{
489
- readonly searchType: v.LiteralSchema<"CATEGORY", undefined>;
490
- readonly categoryCode: v.StringSchema<undefined>;
491
- readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
492
- }, undefined>, v.ObjectSchema<{
493
- readonly searchType: v.LiteralSchema<"EMAIL", undefined>;
494
- readonly email: v.StringSchema<undefined>;
495
- readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
496
- }, undefined>, v.ObjectSchema<{
497
- readonly searchType: v.LiteralSchema<"LASTMODDATE", undefined>;
498
- readonly lastModificationDate: v.ObjectSchema<{
499
- readonly minDate: v.StringSchema<undefined>;
500
- readonly maxDate: v.StringSchema<undefined>;
501
- }, undefined>;
502
- readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
503
- }, undefined>, v.ObjectSchema<{
504
- readonly searchType: v.LiteralSchema<"SEARCH_FIELD", undefined>;
505
- readonly searchFieldValue: v.StringSchema<undefined>;
506
- readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
507
- }, undefined>, v.ObjectSchema<{
508
- readonly searchType: v.LiteralSchema<"EXTERNAL_REF_CODE", undefined>;
509
- readonly searchFieldValue: v.StringSchema<undefined>;
510
- readonly languageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
511
- }, undefined>], undefined>;
512
- /**
513
- * Search master record response schema (transforms to camelCase)
514
- */
515
- declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
516
- readonly RsStatus: v.SchemaWithPipe<readonly [v.ObjectSchema<{
517
- readonly "@Status": v.UnionSchema<[v.LiteralSchema<"OK", undefined>, v.LiteralSchema<"ERROR", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"TIMEOUT", undefined>], undefined>;
518
- readonly ErrorCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>]>, undefined>;
519
- readonly ErrorDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
520
- readonly Warnings: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, string[]>]>, undefined>;
521
- }, undefined>, v.TransformAction<{
522
- "@Status": "WARNING" | "OK" | "ERROR" | "TIMEOUT";
523
- ErrorCode?: number | undefined;
524
- ErrorDescription?: string | undefined;
525
- Warnings?: string[] | undefined;
526
- }, {
527
- status: "WARNING" | "OK" | "ERROR" | "TIMEOUT";
528
- errorCode: number | undefined;
529
- errorDescription: string | undefined;
530
- warnings: string[] | undefined;
531
- }>]>;
532
- readonly MasterRecordList: v.OptionalSchema<v.ObjectSchema<{
533
- readonly MasterRecordDetail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.ArraySchema<v.ObjectSchema<{
534
- readonly "@RecordCode": v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 6, undefined>, v.MaxLengthAction<string, 6, undefined>]>, undefined>;
535
- readonly "@InsertCriteria": v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"S", undefined>, v.LiteralSchema<"N", undefined>, v.LiteralSchema<"T", undefined>, v.LiteralSchema<"M", undefined>], undefined>, undefined>;
536
- readonly CreatedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
537
- readonly ModifiedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
538
- readonly RecordType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CUSTOMER", undefined>, v.LiteralSchema<"SUPPLIER", undefined>, v.LiteralSchema<"GENERAL", undefined>], undefined>, undefined>;
539
- readonly LoginType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
540
- readonly RecordStatus: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"ENABLED", undefined>, v.LiteralSchema<"DISABLED", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"BLACKLISTED", undefined>], undefined>, undefined>;
541
- readonly Moniker: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
542
- readonly Name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
543
- readonly ExtraInfo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
544
- readonly LanguageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
545
- readonly Address: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
546
- readonly ZipCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
547
- readonly CityName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
548
- readonly CountyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
549
- readonly StateCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
550
- readonly CategoryCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
551
- readonly PromoterCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
552
- readonly FirstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
553
- readonly MobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
554
- readonly Email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
555
- readonly Gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
556
- readonly BirthDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
557
- readonly BirthCity: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
558
- readonly BirthCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
559
- readonly EncryptedPassword: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
560
- readonly FiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
561
- readonly VatCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
562
- readonly ThirdPartRecordCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
563
- readonly IdDocumentDetail: v.OptionalSchema<v.ObjectSchema<{
564
- readonly idType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
565
- readonly idCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
566
- readonly idIssueLocation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
567
- readonly idIssueCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
568
- readonly idIssueDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
569
- readonly idExpireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
570
- }, undefined>, undefined>;
571
- readonly NewsletterDisabled: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
572
- readonly SupplierRefMasterRecords: v.OptionalSchema<v.AnySchema, undefined>;
573
- readonly AccountPolicies: v.OptionalSchema<v.ObjectSchema<{
574
- readonly acceptProfilingPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
575
- readonly acceptPrivacyPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
576
- readonly acceptNewsletterPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
577
- }, undefined>, undefined>;
578
- readonly FinancialDetail: v.OptionalSchema<v.ObjectSchema<{
579
- readonly currencyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
580
- readonly creditLimit: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
581
- 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>;
582
- readonly c_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
583
- 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>;
584
- readonly s_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
585
- readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
586
- readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
587
- }, undefined>, undefined>;
588
- readonly DynamicFields: v.OptionalSchema<v.ObjectSchema<{
589
- readonly key: v.StringSchema<undefined>;
590
- readonly value: v.StringSchema<undefined>;
591
- }, undefined>, undefined>;
592
- }, undefined>, undefined>, v.ObjectSchema<{
593
- readonly "@RecordCode": v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 6, undefined>, v.MaxLengthAction<string, 6, undefined>]>, undefined>;
594
- readonly "@InsertCriteria": v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"S", undefined>, v.LiteralSchema<"N", undefined>, v.LiteralSchema<"T", undefined>, v.LiteralSchema<"M", undefined>], undefined>, undefined>;
595
- readonly CreatedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
596
- readonly ModifiedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
597
- readonly RecordType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CUSTOMER", undefined>, v.LiteralSchema<"SUPPLIER", undefined>, v.LiteralSchema<"GENERAL", undefined>], undefined>, undefined>;
598
- readonly LoginType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
599
- readonly RecordStatus: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"ENABLED", undefined>, v.LiteralSchema<"DISABLED", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"BLACKLISTED", undefined>], undefined>, undefined>;
600
- readonly Moniker: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
601
- readonly Name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
602
- readonly ExtraInfo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
603
- readonly LanguageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
604
- readonly Address: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
605
- readonly ZipCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
606
- readonly CityName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
607
- readonly CountyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
608
- readonly StateCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
609
- readonly CategoryCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
610
- readonly PromoterCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
611
- readonly FirstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
612
- readonly MobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
613
- readonly Email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
614
- readonly Gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
615
- readonly BirthDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
616
- readonly BirthCity: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
617
- readonly BirthCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
618
- readonly EncryptedPassword: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
619
- readonly FiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
620
- readonly VatCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
621
- readonly ThirdPartRecordCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
622
- readonly IdDocumentDetail: v.OptionalSchema<v.ObjectSchema<{
623
- readonly idType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
624
- readonly idCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
625
- readonly idIssueLocation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
626
- readonly idIssueCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
627
- readonly idIssueDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
628
- readonly idExpireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
629
- }, undefined>, undefined>;
630
- readonly NewsletterDisabled: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
631
- readonly SupplierRefMasterRecords: v.OptionalSchema<v.AnySchema, undefined>;
632
- readonly AccountPolicies: v.OptionalSchema<v.ObjectSchema<{
633
- readonly acceptProfilingPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
634
- readonly acceptPrivacyPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
635
- readonly acceptNewsletterPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
636
- }, undefined>, undefined>;
637
- readonly FinancialDetail: v.OptionalSchema<v.ObjectSchema<{
638
- readonly currencyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
639
- readonly creditLimit: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
640
- 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>;
641
- readonly c_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
642
- 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>;
643
- readonly s_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
644
- readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
645
- readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
646
- }, undefined>, undefined>;
647
- readonly DynamicFields: v.OptionalSchema<v.ObjectSchema<{
648
- readonly key: v.StringSchema<undefined>;
649
- readonly value: v.StringSchema<undefined>;
650
- }, undefined>, undefined>;
651
- }, undefined>], undefined>, v.TransformAction<{
652
- "@RecordCode"?: string | undefined;
653
- "@InsertCriteria"?: "S" | "N" | "T" | "M" | undefined;
654
- CreatedDate?: string | undefined;
655
- ModifiedDate?: string | undefined;
656
- RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
657
- LoginType?: string | undefined;
658
- RecordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
659
- Moniker?: string | undefined;
660
- Name?: string | undefined;
661
- ExtraInfo?: string | undefined;
662
- LanguageCode?: string | undefined;
663
- Address?: string | undefined;
664
- ZipCode?: string | undefined;
665
- CityName?: string | undefined;
666
- CountyCode?: string | undefined;
667
- StateCode?: string | undefined;
668
- CategoryCode?: string | undefined;
669
- PromoterCode?: string | undefined;
670
- FirstPhoneNumber?: string | undefined;
671
- MobilePhoneNumber?: string | undefined;
672
- Email?: string | undefined;
673
- Gender?: "M" | "F" | undefined;
674
- BirthDate?: string | undefined;
675
- BirthCity?: string | undefined;
676
- BirthCounty?: string | undefined;
677
- EncryptedPassword?: boolean | "true" | "false" | undefined;
678
- FiscalCode?: string | undefined;
679
- VatCode?: string | undefined;
680
- ThirdPartRecordCode?: string | undefined;
681
- IdDocumentDetail?: {
682
- idType?: string | undefined;
683
- idCode?: string | undefined;
684
- idIssueLocation?: string | undefined;
685
- idIssueCounty?: string | undefined;
686
- idIssueDate?: string | undefined;
687
- idExpireDate?: string | undefined;
688
- } | undefined;
689
- NewsletterDisabled?: boolean | "true" | "false" | undefined;
690
- SupplierRefMasterRecords?: any;
691
- AccountPolicies?: {
692
- acceptProfilingPolicies?: 0 | 1 | undefined;
693
- acceptPrivacyPolicies?: 0 | 1 | undefined;
694
- acceptNewsletterPolicies?: 0 | 1 | undefined;
695
- } | undefined;
696
- FinancialDetail?: {
697
- currencyCode?: string | undefined;
698
- creditLimit?: string | undefined;
699
- c_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
700
- c_SpecPaymentTypeCode?: string | undefined;
701
- s_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
702
- s_SpecPaymentTypeCode?: string | undefined;
703
- enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
704
- electronicInvoicingType?: string | undefined;
705
- } | undefined;
706
- DynamicFields?: {
707
- key: string;
708
- value: string;
709
- } | undefined;
710
- } | {
711
- "@RecordCode"?: string | undefined;
712
- "@InsertCriteria"?: "S" | "N" | "T" | "M" | undefined;
713
- CreatedDate?: string | undefined;
714
- ModifiedDate?: string | undefined;
715
- RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
716
- LoginType?: string | undefined;
717
- RecordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
718
- Moniker?: string | undefined;
719
- Name?: string | undefined;
720
- ExtraInfo?: string | undefined;
721
- LanguageCode?: string | undefined;
722
- Address?: string | undefined;
723
- ZipCode?: string | undefined;
724
- CityName?: string | undefined;
725
- CountyCode?: string | undefined;
726
- StateCode?: string | undefined;
727
- CategoryCode?: string | undefined;
728
- PromoterCode?: string | undefined;
729
- FirstPhoneNumber?: string | undefined;
730
- MobilePhoneNumber?: string | undefined;
731
- Email?: string | undefined;
732
- Gender?: "M" | "F" | undefined;
733
- BirthDate?: string | undefined;
734
- BirthCity?: string | undefined;
735
- BirthCounty?: string | undefined;
736
- EncryptedPassword?: boolean | "true" | "false" | undefined;
737
- FiscalCode?: string | undefined;
738
- VatCode?: string | undefined;
739
- ThirdPartRecordCode?: string | undefined;
740
- IdDocumentDetail?: {
741
- idType?: string | undefined;
742
- idCode?: string | undefined;
743
- idIssueLocation?: string | undefined;
744
- idIssueCounty?: string | undefined;
745
- idIssueDate?: string | undefined;
746
- idExpireDate?: string | undefined;
747
- } | undefined;
748
- NewsletterDisabled?: boolean | "true" | "false" | undefined;
749
- SupplierRefMasterRecords?: any;
750
- AccountPolicies?: {
751
- acceptProfilingPolicies?: 0 | 1 | undefined;
752
- acceptPrivacyPolicies?: 0 | 1 | undefined;
753
- acceptNewsletterPolicies?: 0 | 1 | undefined;
754
- } | undefined;
755
- FinancialDetail?: {
756
- currencyCode?: string | undefined;
757
- creditLimit?: string | undefined;
758
- c_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
759
- c_SpecPaymentTypeCode?: string | undefined;
760
- s_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
761
- s_SpecPaymentTypeCode?: string | undefined;
762
- enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
763
- electronicInvoicingType?: string | undefined;
764
- } | undefined;
765
- DynamicFields?: {
766
- key: string;
767
- value: string;
768
- } | undefined;
769
- }[], {
770
- "@RecordCode"?: string | undefined;
771
- "@InsertCriteria"?: "S" | "N" | "T" | "M" | undefined;
772
- CreatedDate?: string | undefined;
773
- ModifiedDate?: string | undefined;
774
- RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
775
- LoginType?: string | undefined;
776
- RecordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
777
- Moniker?: string | undefined;
778
- Name?: string | undefined;
779
- ExtraInfo?: string | undefined;
780
- LanguageCode?: string | undefined;
781
- Address?: string | undefined;
782
- ZipCode?: string | undefined;
783
- CityName?: string | undefined;
784
- CountyCode?: string | undefined;
785
- StateCode?: string | undefined;
786
- CategoryCode?: string | undefined;
787
- PromoterCode?: string | undefined;
788
- FirstPhoneNumber?: string | undefined;
789
- MobilePhoneNumber?: string | undefined;
790
- Email?: string | undefined;
791
- Gender?: "M" | "F" | undefined;
792
- BirthDate?: string | undefined;
793
- BirthCity?: string | undefined;
794
- BirthCounty?: string | undefined;
795
- EncryptedPassword?: boolean | "true" | "false" | undefined;
796
- FiscalCode?: string | undefined;
797
- VatCode?: string | undefined;
798
- ThirdPartRecordCode?: string | undefined;
799
- IdDocumentDetail?: {
800
- idType?: string | undefined;
801
- idCode?: string | undefined;
802
- idIssueLocation?: string | undefined;
803
- idIssueCounty?: string | undefined;
804
- idIssueDate?: string | undefined;
805
- idExpireDate?: string | undefined;
806
- } | undefined;
807
- NewsletterDisabled?: boolean | "true" | "false" | undefined;
808
- SupplierRefMasterRecords?: any;
809
- AccountPolicies?: {
810
- acceptProfilingPolicies?: 0 | 1 | undefined;
811
- acceptPrivacyPolicies?: 0 | 1 | undefined;
812
- acceptNewsletterPolicies?: 0 | 1 | undefined;
813
- } | undefined;
814
- FinancialDetail?: {
815
- currencyCode?: string | undefined;
816
- creditLimit?: string | undefined;
817
- c_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
818
- c_SpecPaymentTypeCode?: string | undefined;
819
- s_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
820
- s_SpecPaymentTypeCode?: string | undefined;
821
- enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
822
- electronicInvoicingType?: string | undefined;
823
- } | undefined;
824
- DynamicFields?: {
825
- key: string;
826
- value: string;
827
- } | undefined;
828
- }[] | undefined>]>, undefined>;
829
- }, undefined>, undefined>;
830
- }, undefined>, v.TransformAction<{
831
- RsStatus: {
832
- status: "WARNING" | "OK" | "ERROR" | "TIMEOUT";
833
- errorCode: number | undefined;
834
- errorDescription: string | undefined;
835
- warnings: string[] | undefined;
836
- };
837
- MasterRecordList?: {
838
- MasterRecordDetail?: {
839
- "@RecordCode"?: string | undefined;
840
- "@InsertCriteria"?: "S" | "N" | "T" | "M" | undefined;
841
- CreatedDate?: string | undefined;
842
- ModifiedDate?: string | undefined;
843
- RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
844
- LoginType?: string | undefined;
845
- RecordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
846
- Moniker?: string | undefined;
847
- Name?: string | undefined;
848
- ExtraInfo?: string | undefined;
849
- LanguageCode?: string | undefined;
850
- Address?: string | undefined;
851
- ZipCode?: string | undefined;
852
- CityName?: string | undefined;
853
- CountyCode?: string | undefined;
854
- StateCode?: string | undefined;
855
- CategoryCode?: string | undefined;
856
- PromoterCode?: string | undefined;
857
- FirstPhoneNumber?: string | undefined;
858
- MobilePhoneNumber?: string | undefined;
859
- Email?: string | undefined;
860
- Gender?: "M" | "F" | undefined;
861
- BirthDate?: string | undefined;
862
- BirthCity?: string | undefined;
863
- BirthCounty?: string | undefined;
864
- EncryptedPassword?: boolean | "true" | "false" | undefined;
865
- FiscalCode?: string | undefined;
866
- VatCode?: string | undefined;
867
- ThirdPartRecordCode?: string | undefined;
868
- IdDocumentDetail?: {
869
- idType?: string | undefined;
870
- idCode?: string | undefined;
871
- idIssueLocation?: string | undefined;
872
- idIssueCounty?: string | undefined;
873
- idIssueDate?: string | undefined;
874
- idExpireDate?: string | undefined;
875
- } | undefined;
876
- NewsletterDisabled?: boolean | "true" | "false" | undefined;
877
- SupplierRefMasterRecords?: any;
878
- AccountPolicies?: {
879
- acceptProfilingPolicies?: 0 | 1 | undefined;
880
- acceptPrivacyPolicies?: 0 | 1 | undefined;
881
- acceptNewsletterPolicies?: 0 | 1 | undefined;
882
- } | undefined;
883
- FinancialDetail?: {
884
- currencyCode?: string | undefined;
885
- creditLimit?: string | undefined;
886
- c_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
887
- c_SpecPaymentTypeCode?: string | undefined;
888
- s_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
889
- s_SpecPaymentTypeCode?: string | undefined;
890
- enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
891
- electronicInvoicingType?: string | undefined;
892
- } | undefined;
893
- DynamicFields?: {
894
- key: string;
895
- value: string;
896
- } | undefined;
897
- }[] | undefined;
898
- } | undefined;
899
- }, {
900
- rsStatus: {
901
- status: "WARNING" | "OK" | "ERROR" | "TIMEOUT";
902
- errorCode: number | undefined;
903
- errorDescription: string | undefined;
904
- warnings: string[] | undefined;
905
- };
906
- masterRecordList?: {
907
- masterRecordDetail?: {
908
- recordCode?: string | undefined;
909
- insertCriteria?: "S" | "N" | "T" | "M" | undefined;
910
- createdDate?: string | undefined;
911
- modifiedDate?: string | undefined;
912
- recordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
913
- loginType?: string | undefined;
914
- recordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
915
- moniker?: string | undefined;
916
- name?: string | undefined;
917
- extraInfo?: string | undefined;
918
- languageCode?: string | undefined;
919
- address?: string | undefined;
920
- zipCode?: string | undefined;
921
- cityName?: string | undefined;
922
- countyCode?: string | undefined;
923
- stateCode?: string | undefined;
924
- categoryCode?: string | undefined;
925
- promoterCode?: string | undefined;
926
- firstPhoneNumber?: string | undefined;
927
- mobilePhoneNumber?: string | undefined;
928
- email?: string | undefined;
929
- gender?: "M" | "F" | undefined;
930
- birthDate?: string | undefined;
931
- birthCity?: string | undefined;
932
- birthCounty?: string | undefined;
933
- encryptedPassword?: boolean | "true" | "false" | undefined;
934
- fiscalCode?: string | undefined;
935
- vatCode?: string | undefined;
936
- thirdPartRecordCode?: string | undefined;
937
- idDocumentDetail?: {
938
- idType?: string | undefined;
939
- idCode?: string | undefined;
940
- idIssueLocation?: string | undefined;
941
- idIssueCounty?: string | undefined;
942
- idIssueDate?: string | undefined;
943
- idExpireDate?: string | undefined;
944
- } | undefined;
945
- newsletterDisabled?: boolean | "true" | "false" | undefined;
946
- supplierRefMasterRecords?: any;
947
- accountPolicies?: {
948
- acceptProfilingPolicies?: 0 | 1 | undefined;
949
- acceptPrivacyPolicies?: 0 | 1 | undefined;
950
- acceptNewsletterPolicies?: 0 | 1 | undefined;
951
- } | undefined;
952
- financialDetail?: {
953
- currencyCode?: string | undefined;
954
- creditLimit?: string | undefined;
955
- cPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
956
- cSpecPaymentTypeCode?: string | undefined;
957
- sPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
958
- sSpecPaymentTypeCode?: string | undefined;
959
- enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
960
- electronicInvoicingType?: string | undefined;
961
- } | undefined;
962
- dynamicFields?: {
963
- key: string;
964
- value: string;
965
- } | undefined;
966
- }[] | undefined;
967
- } | undefined;
968
- }>]>;
969
-
970
- /**
971
- * Complete upsert request schema with header and required InsertCriteria
972
- */
973
- declare const ManageMasterRecordRequestSchema: v.ObjectSchema<{
974
- readonly RqHeader: v.ObjectSchema<{
975
- readonly "@HostID": v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 6, undefined>, v.MaxLengthAction<string, 6, undefined>]>;
976
- readonly "@Xtoken": v.StringSchema<undefined>;
977
- readonly "@Interface": v.LiteralSchema<"WEB", undefined>;
978
- readonly "@UserName": v.LiteralSchema<"WEB", undefined>;
979
- readonly "@LanguageCode": v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 2, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
980
- }, undefined>;
981
- readonly MasterRecordDetail: v.ObjectSchema<{
982
- readonly "@RecordCode": v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 6, undefined>, v.MaxLengthAction<string, 6, undefined>]>, undefined>;
983
- readonly "@InsertCriteria": v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"S", undefined>, v.LiteralSchema<"N", undefined>, v.LiteralSchema<"T", undefined>, v.LiteralSchema<"M", undefined>], undefined>, undefined>;
984
- readonly CreatedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
985
- readonly ModifiedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
986
- readonly RecordType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CUSTOMER", undefined>, v.LiteralSchema<"SUPPLIER", undefined>, v.LiteralSchema<"GENERAL", undefined>], undefined>, undefined>;
987
- readonly LoginType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
988
- readonly RecordStatus: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"ENABLED", undefined>, v.LiteralSchema<"DISABLED", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"BLACKLISTED", undefined>], undefined>, undefined>;
989
- readonly Moniker: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
990
- readonly Name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
991
- readonly ExtraInfo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
992
- readonly LanguageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
993
- readonly Address: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
994
- readonly ZipCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
995
- readonly CityName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
996
- readonly CountyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
997
- readonly StateCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
998
- readonly CategoryCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
999
- readonly PromoterCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1000
- readonly FirstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1001
- readonly MobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1002
- readonly Email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1003
- readonly Gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
1004
- readonly BirthDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1005
- readonly BirthCity: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1006
- readonly BirthCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1007
- readonly EncryptedPassword: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
1008
- readonly FiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1009
- readonly VatCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1010
- readonly ThirdPartRecordCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1011
- readonly IdDocumentDetail: v.OptionalSchema<v.ObjectSchema<{
1012
- readonly idType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1013
- readonly idCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1014
- readonly idIssueLocation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1015
- readonly idIssueCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1016
- readonly idIssueDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1017
- readonly idExpireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1018
- }, undefined>, undefined>;
1019
- readonly NewsletterDisabled: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
1020
- readonly SupplierRefMasterRecords: v.OptionalSchema<v.AnySchema, undefined>;
1021
- readonly AccountPolicies: v.OptionalSchema<v.ObjectSchema<{
1022
- readonly acceptProfilingPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
1023
- readonly acceptPrivacyPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
1024
- readonly acceptNewsletterPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
1025
- }, undefined>, undefined>;
1026
- readonly FinancialDetail: v.OptionalSchema<v.ObjectSchema<{
1027
- readonly currencyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1028
- readonly creditLimit: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1029
- 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>;
1030
- readonly c_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1031
- 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>;
1032
- readonly s_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1033
- readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
1034
- readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1035
- }, undefined>, undefined>;
1036
- readonly DynamicFields: v.OptionalSchema<v.ObjectSchema<{
1037
- readonly key: v.StringSchema<undefined>;
1038
- readonly value: v.StringSchema<undefined>;
1039
- }, undefined>, undefined>;
1040
- }, undefined>;
1041
- }, undefined>;
1042
- /**
1043
- * Upsert master record response schema (transforms to camelCase)
1044
- */
1045
- declare const ManageMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1046
- readonly RsStatus: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1047
- readonly "@Status": v.UnionSchema<[v.LiteralSchema<"OK", undefined>, v.LiteralSchema<"ERROR", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"TIMEOUT", undefined>], undefined>;
1048
- readonly ErrorCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>]>, undefined>;
1049
- readonly ErrorDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1050
- readonly Warnings: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, string[]>]>, undefined>;
1051
- }, undefined>, v.TransformAction<{
1052
- "@Status": "WARNING" | "OK" | "ERROR" | "TIMEOUT";
1053
- ErrorCode?: number | undefined;
1054
- ErrorDescription?: string | undefined;
1055
- Warnings?: string[] | undefined;
1056
- }, {
1057
- status: "WARNING" | "OK" | "ERROR" | "TIMEOUT";
1058
- errorCode: number | undefined;
1059
- errorDescription: string | undefined;
1060
- warnings: string[] | undefined;
1061
- }>]>;
1062
- readonly MasterRecordDetail: v.OptionalSchema<v.ObjectSchema<{
1063
- readonly "@RecordCode": v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 6, undefined>, v.MaxLengthAction<string, 6, undefined>]>, undefined>;
1064
- readonly "@InsertCriteria": v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"S", undefined>, v.LiteralSchema<"N", undefined>, v.LiteralSchema<"T", undefined>, v.LiteralSchema<"M", undefined>], undefined>, undefined>;
1065
- readonly CreatedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1066
- readonly ModifiedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1067
- readonly RecordType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CUSTOMER", undefined>, v.LiteralSchema<"SUPPLIER", undefined>, v.LiteralSchema<"GENERAL", undefined>], undefined>, undefined>;
1068
- readonly LoginType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1069
- readonly RecordStatus: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"ENABLED", undefined>, v.LiteralSchema<"DISABLED", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"BLACKLISTED", undefined>], undefined>, undefined>;
1070
- readonly Moniker: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1071
- readonly Name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1072
- readonly ExtraInfo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1073
- readonly LanguageCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 2, undefined>]>, undefined>;
1074
- readonly Address: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1075
- readonly ZipCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1076
- readonly CityName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1077
- readonly CountyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1078
- readonly StateCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1079
- readonly CategoryCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1080
- readonly PromoterCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1081
- readonly FirstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1082
- readonly MobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1083
- readonly Email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1084
- readonly Gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
1085
- readonly BirthDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1086
- readonly BirthCity: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1087
- readonly BirthCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1088
- readonly EncryptedPassword: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
1089
- readonly FiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1090
- readonly VatCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1091
- readonly ThirdPartRecordCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1092
- readonly IdDocumentDetail: v.OptionalSchema<v.ObjectSchema<{
1093
- readonly idType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1094
- readonly idCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1095
- readonly idIssueLocation: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1096
- readonly idIssueCounty: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1097
- readonly idIssueDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1098
- readonly idExpireDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1099
- }, undefined>, undefined>;
1100
- readonly NewsletterDisabled: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
1101
- readonly SupplierRefMasterRecords: v.OptionalSchema<v.AnySchema, undefined>;
1102
- readonly AccountPolicies: v.OptionalSchema<v.ObjectSchema<{
1103
- readonly acceptProfilingPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
1104
- readonly acceptPrivacyPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
1105
- readonly acceptNewsletterPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
1106
- }, undefined>, undefined>;
1107
- readonly FinancialDetail: v.OptionalSchema<v.ObjectSchema<{
1108
- readonly currencyCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1109
- readonly creditLimit: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1110
- 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>;
1111
- readonly c_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1112
- 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>;
1113
- readonly s_SpecPaymentTypeCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1114
- readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
1115
- readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1116
- }, undefined>, undefined>;
1117
- readonly DynamicFields: v.OptionalSchema<v.ObjectSchema<{
1118
- readonly key: v.StringSchema<undefined>;
1119
- readonly value: v.StringSchema<undefined>;
1120
- }, undefined>, undefined>;
1121
- }, undefined>, undefined>;
1122
- }, undefined>, v.TransformAction<{
1123
- RsStatus: {
1124
- status: "WARNING" | "OK" | "ERROR" | "TIMEOUT";
1125
- errorCode: number | undefined;
1126
- errorDescription: string | undefined;
1127
- warnings: string[] | undefined;
1128
- };
1129
- MasterRecordDetail?: {
1130
- "@RecordCode"?: string | undefined;
1131
- "@InsertCriteria"?: "S" | "N" | "T" | "M" | undefined;
1132
- CreatedDate?: string | undefined;
1133
- ModifiedDate?: string | undefined;
1134
- RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
1135
- LoginType?: string | undefined;
1136
- RecordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
1137
- Moniker?: string | undefined;
1138
- Name?: string | undefined;
1139
- ExtraInfo?: string | undefined;
1140
- LanguageCode?: string | undefined;
1141
- Address?: string | undefined;
1142
- ZipCode?: string | undefined;
1143
- CityName?: string | undefined;
1144
- CountyCode?: string | undefined;
1145
- StateCode?: string | undefined;
1146
- CategoryCode?: string | undefined;
1147
- PromoterCode?: string | undefined;
1148
- FirstPhoneNumber?: string | undefined;
1149
- MobilePhoneNumber?: string | undefined;
1150
- Email?: string | undefined;
1151
- Gender?: "M" | "F" | undefined;
1152
- BirthDate?: string | undefined;
1153
- BirthCity?: string | undefined;
1154
- BirthCounty?: string | undefined;
1155
- EncryptedPassword?: boolean | "true" | "false" | undefined;
1156
- FiscalCode?: string | undefined;
1157
- VatCode?: string | undefined;
1158
- ThirdPartRecordCode?: string | undefined;
1159
- IdDocumentDetail?: {
1160
- idType?: string | undefined;
1161
- idCode?: string | undefined;
1162
- idIssueLocation?: string | undefined;
1163
- idIssueCounty?: string | undefined;
1164
- idIssueDate?: string | undefined;
1165
- idExpireDate?: string | undefined;
1166
- } | undefined;
1167
- NewsletterDisabled?: boolean | "true" | "false" | undefined;
1168
- SupplierRefMasterRecords?: any;
1169
- AccountPolicies?: {
1170
- acceptProfilingPolicies?: 0 | 1 | undefined;
1171
- acceptPrivacyPolicies?: 0 | 1 | undefined;
1172
- acceptNewsletterPolicies?: 0 | 1 | undefined;
1173
- } | undefined;
1174
- FinancialDetail?: {
1175
- currencyCode?: string | undefined;
1176
- creditLimit?: string | undefined;
1177
- c_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
1178
- c_SpecPaymentTypeCode?: string | undefined;
1179
- s_PaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
1180
- s_SpecPaymentTypeCode?: string | undefined;
1181
- enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
1182
- electronicInvoicingType?: string | undefined;
1183
- } | undefined;
1184
- DynamicFields?: {
1185
- key: string;
1186
- value: string;
1187
- } | undefined;
1188
- } | undefined;
1189
- }, {
1190
- rsStatus: {
1191
- status: "WARNING" | "OK" | "ERROR" | "TIMEOUT";
1192
- errorCode: number | undefined;
1193
- errorDescription: string | undefined;
1194
- warnings: string[] | undefined;
1195
- };
1196
- masterRecordDetail?: {
1197
- recordCode?: string | undefined;
1198
- insertCriteria?: "S" | "N" | "T" | "M" | undefined;
1199
- createdDate?: string | undefined;
1200
- modifiedDate?: string | undefined;
1201
- recordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
1202
- loginType?: string | undefined;
1203
- recordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
1204
- moniker?: string | undefined;
1205
- name?: string | undefined;
1206
- extraInfo?: string | undefined;
1207
- languageCode?: string | undefined;
1208
- address?: string | undefined;
1209
- zipCode?: string | undefined;
1210
- cityName?: string | undefined;
1211
- countyCode?: string | undefined;
1212
- stateCode?: string | undefined;
1213
- categoryCode?: string | undefined;
1214
- promoterCode?: string | undefined;
1215
- firstPhoneNumber?: string | undefined;
1216
- mobilePhoneNumber?: string | undefined;
1217
- email?: string | undefined;
1218
- gender?: "M" | "F" | undefined;
1219
- birthDate?: string | undefined;
1220
- birthCity?: string | undefined;
1221
- birthCounty?: string | undefined;
1222
- encryptedPassword?: boolean | "true" | "false" | undefined;
1223
- fiscalCode?: string | undefined;
1224
- vatCode?: string | undefined;
1225
- thirdPartRecordCode?: string | undefined;
1226
- idDocumentDetail?: {
1227
- idType?: string | undefined;
1228
- idCode?: string | undefined;
1229
- idIssueLocation?: string | undefined;
1230
- idIssueCounty?: string | undefined;
1231
- idIssueDate?: string | undefined;
1232
- idExpireDate?: string | undefined;
1233
- } | undefined;
1234
- newsletterDisabled?: boolean | "true" | "false" | undefined;
1235
- supplierRefMasterRecords?: any;
1236
- accountPolicies?: {
1237
- acceptProfilingPolicies?: 0 | 1 | undefined;
1238
- acceptPrivacyPolicies?: 0 | 1 | undefined;
1239
- acceptNewsletterPolicies?: 0 | 1 | undefined;
1240
- } | undefined;
1241
- financialDetail?: {
1242
- currencyCode?: string | undefined;
1243
- creditLimit?: string | undefined;
1244
- cPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
1245
- cSpecPaymentTypeCode?: string | undefined;
1246
- sPaymentType?: "CASH" | "BANK" | "RID" | "RIBA" | "SPECIFIC_CODE" | undefined;
1247
- sSpecPaymentTypeCode?: string | undefined;
1248
- enableElectronicInvoicing?: boolean | "true" | "false" | undefined;
1249
- electronicInvoicingType?: string | undefined;
1250
- } | undefined;
1251
- dynamicFields?: {
1252
- key: string;
1253
- value: string;
1254
- } | undefined;
1255
- } | undefined;
1256
- }>]>;
1257
-
1258
- 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;
1259
- type ToCamelCase<S extends string> = CamelFromDelimiter<S> extends `${infer F}${infer R}` ? `${Lowercase<F>}${R}` : CamelFromDelimiter<S>;
1260
- type Camelize<T> = T extends readonly (infer U)[] ? Camelize<U>[] : T extends object ? {
1261
- [K in keyof T as K extends `@${infer Rest}` ? ToCamelCase<Rest> : ToCamelCase<K & string>]: Camelize<T[K]>;
1262
- } : T;
1263
-
1264
- /**
1265
- * Request header containing authentication credentials for AVES API calls.
1266
- *
1267
- * @property hostID - 6-digit identification code assigned to your organization
1268
- * @property xtoken - Authentication token for API access
1269
- * @property interface - Interface type, always 'WEB'
1270
- * @property userName - Username for the request, always 'WEB'
1271
- * @property languageCode - Optional 2-character ISO language code (e.g., '02' for Italian)
1272
- */
1273
- type RqHeader = InferInput<typeof RqHeaderSchema>;
1274
- /**
1275
- * Response status returned by all AVES API operations.
1276
- *
1277
- * @property status - Result status: 'OK' (success), 'ERROR' (failure), 'WARNING' (partial success), 'TIMEOUT'
1278
- * @property errorCode - Numeric error code when status is 'ERROR' (e.g., 1001, 1002)
1279
- * @property errorDescription - Human-readable error message
1280
- * @property warnings - Array of warning messages when status is 'WARNING'
1281
- *
1282
- * @example
1283
- * ```typescript
1284
- * if (response.rsStatus.status === 'OK') {
1285
- * // Process successful response
1286
- * } else {
1287
- * console.error(response.rsStatus.errorDescription);
1288
- * }
1289
- * ```
1290
- */
1291
- type RsStatus = Camelize<InferOutput<typeof RsStatusSchema>>;
1292
- /**
1293
- * Financial and payment details for a master record.
1294
- *
1295
- * @property currencyCode - ISO currency code (e.g., 'EUR', 'USD')
1296
- * @property creditLimit - Maximum credit amount as a string
1297
- * @property c_PaymentType - Customer payment type: 'CASH' | 'BANK' | 'RID' | 'RIBA' | 'SPECIFIC_CODE'
1298
- * @property c_SpecPaymentTypeCode - Specific payment code when c_PaymentType is 'SPECIFIC_CODE'
1299
- * @property s_PaymentType - Supplier payment type: 'CASH' | 'BANK' | 'RID' | 'RIBA' | 'SPECIFIC_CODE'
1300
- * @property s_SpecPaymentTypeCode - Specific payment code when s_PaymentType is 'SPECIFIC_CODE'
1301
- * @property enableElectronicInvoicing - Enable electronic invoicing (accepts boolean or 'true'/'false' string)
1302
- * @property electronicInvoicingType - Type of electronic invoicing when enabled
1303
- */
1304
- type FinancialDetail = InferInput<typeof FinancialDetailSchema>;
1305
- /**
1306
- * Identity document details for a master record.
1307
- *
1308
- * @property idType - Document type code (e.g., 'PASSPORT', 'ID_CARD')
1309
- * @property idCode - Document number/identifier
1310
- * @property idIssueLocation - Location where the document was issued
1311
- * @property idIssueCounty - County/region code where issued
1312
- * @property idIssueDate - Issue date in ISO format (YYYY-MM-DD)
1313
- * @property idExpireDate - Expiration date in ISO format (YYYY-MM-DD)
1314
- */
1315
- type IdDocumentDetail = InferInput<typeof IdDocumentDetailSchema>;
1316
- /**
1317
- * Privacy and marketing policy acceptance flags.
1318
- *
1319
- * @property acceptProfilingPolicies - User consent for profiling (0 = not accepted, 1 = accepted)
1320
- * @property acceptPrivacyPolicies - User consent for privacy policy (0 = not accepted, 1 = accepted)
1321
- * @property acceptNewsletterPolicies - User consent for newsletter (0 = not accepted, 1 = accepted)
1322
- */
1323
- type AccountPolicies = InferInput<typeof AccountPoliciesSchema>;
1324
- /**
1325
- * Custom key-value field for extending master record data.
1326
- *
1327
- * @property key - Unique identifier for the dynamic field
1328
- * @property value - Value associated with the key
1329
- *
1330
- * @example
1331
- * ```typescript
1332
- * const dynamicField: DynamicFields = {
1333
- * key: 'loyalty_tier',
1334
- * value: 'gold'
1335
- * };
1336
- * ```
1337
- */
1338
- type DynamicFields = InferInput<typeof DynamicFieldsSchema>;
1339
- /**
1340
- * Master record detail for creating or updating customer, supplier, or general records.
1341
- *
1342
- * This is the primary input type for the `upsertRecord` method.
1343
- *
1344
- * @property recordCode - 6-character unique identifier (auto-generated if not provided)
1345
- * @property insertCriteria - Duplicate handling strategy:
1346
- * - 'S' (Skip): Skip if duplicate exists
1347
- * - 'N' (New): Always create new record
1348
- * - 'T' (Throw): Error if duplicate exists
1349
- * - 'M' (Merge): Merge with existing record
1350
- * @property createdDate - Record creation date in ISO format
1351
- * @property recordType - Classification: 'CUSTOMER' | 'SUPPLIER' | 'GENERAL' (defaults to 'CUSTOMER')
1352
- * @property recordStatus - Status: 'ENABLED' | 'DISABLED' | 'WARNING' | 'BLACKLISTED' (defaults to 'ENABLED')
1353
- * @property moniker - Short display name or alias
1354
- * @property name - Full name (person or company)
1355
- * @property extraInfo - Additional information field
1356
- * @property languageCode - Required 2-character ISO language code (e.g., '02' for Italian, '01' for English)
1357
- * @property address - Street address
1358
- * @property zipCode - Postal/ZIP code
1359
- * @property cityName - City name
1360
- * @property countyCode - County/province code
1361
- * @property stateCode - Country/state code
1362
- * @property categoryCode - Category classification code
1363
- * @property firstPhoneNumber - Primary phone number
1364
- * @property mobilePhoneNumber - Mobile phone number
1365
- * @property email - Email address
1366
- * @property gender - Gender: 'M' (male) | 'F' (female)
1367
- * @property birthDate - Date of birth in ISO format (YYYY-MM-DD)
1368
- * @property birthCity - City of birth
1369
- * @property birthCounty - County of birth
1370
- * @property fiscalCode - Tax/fiscal identification code
1371
- * @property vatCode - VAT number
1372
- * @property thirdPartRecordCode - External system reference code
1373
- * @property idDocumentDetail - Identity document information
1374
- * @property accountPolicies - Privacy and marketing consent flags
1375
- * @property financialDetail - Financial and payment details
1376
- * @property dynamicFields - Custom key-value fields
1377
- *
1378
- * @example
1379
- * ```typescript
1380
- * const record: MasterRecordDetail = {
1381
- * languageCode: '02',
1382
- * name: 'Mario Rossi',
1383
- * email: 'mario.rossi@example.com',
1384
- * recordType: 'CUSTOMER',
1385
- * insertCriteria: 'M',
1386
- * accountPolicies: {
1387
- * acceptPrivacyPolicies: 1,
1388
- * acceptNewsletterPolicies: 0,
1389
- * },
1390
- * };
1391
- * ```
1392
- */
1393
- type MasterRecordDetail = InferInput<typeof MasterRecordDetailSchema>;
1394
- /**
1395
- * Master record detail as returned by the API (camelCase transformed).
1396
- *
1397
- * Contains all fields from {@link MasterRecordDetail} plus additional read-only fields
1398
- * populated by the server (e.g., `modifiedDate`, `loginType`).
1399
- */
1400
- type MasterRecordDetailResponse = InferOutput<typeof MasterRecordDetailResponseSchema>;
1401
- /**
1402
- * Search parameters for finding master records.
1403
- *
1404
- * This is a discriminated union based on `searchType`. Each search type requires
1405
- * different parameters:
1406
- *
1407
- * | searchType | Required Fields | Optional Fields |
1408
- * |------------|-----------------|-----------------|
1409
- * | 'CODE' | recordCode | languageCode |
1410
- * | 'NAME' | name | city, languageCode |
1411
- * | 'VATCODE' | vatCode | phoneNumber, languageCode |
1412
- * | 'ZONE' | zipCode, countyCode | city, languageCode |
1413
- * | 'CATEGORY' | categoryCode | languageCode |
1414
- * | 'EMAIL' | email | languageCode |
1415
- * | 'LASTMODDATE' | lastModificationDate | languageCode |
1416
- * | 'SEARCH_FIELD' | searchFieldValue | languageCode |
1417
- * | 'EXTERNAL_REF_CODE' | searchFieldValue | languageCode |
1418
- *
1419
- * @example
1420
- * ```typescript
1421
- * // Search by customer code
1422
- * const byCode: SearchMasterRecord = {
1423
- * searchType: 'CODE',
1424
- * recordCode: '508558',
1425
- * };
1426
- *
1427
- * // Search by name and city
1428
- * const byName: SearchMasterRecord = {
1429
- * searchType: 'NAME',
1430
- * name: 'Rossi',
1431
- * city: 'Milano',
1432
- * };
1433
- *
1434
- * // Search by last modification date range
1435
- * const byDate: SearchMasterRecord = {
1436
- * searchType: 'LASTMODDATE',
1437
- * lastModificationDate: {
1438
- * minDate: '2024-01-01',
1439
- * maxDate: '2024-12-31',
1440
- * },
1441
- * };
1442
- * ```
1443
- */
1444
- type SearchMasterRecord = InferInput<typeof SearchMasterRecordSchema>;
1445
- /**
1446
- * Response from a master record search operation.
1447
- *
1448
- * @property rsStatus - Operation status (check for 'OK' before accessing results)
1449
- * @property masterRecordList - Object containing array of matching records
1450
- * @property masterRecordList.masterRecordDetail - Array of {@link MasterRecordDetailResponse} objects
1451
- *
1452
- * @example
1453
- * ```typescript
1454
- * const result = await client.search({ searchType: 'CODE', recordCode: '508558' });
1455
- * if (result.success && result.data.rsStatus.status === 'OK') {
1456
- * const records = result.data.masterRecordList?.masterRecordDetail ?? [];
1457
- * records.forEach(record => console.log(record.name));
1458
- * }
1459
- * ```
1460
- */
1461
- type SearchMasterRecordRS = InferOutput<typeof SearchMasterRecordResponseSchema>;
1462
- /**
1463
- * Complete request structure for insert/update operations (internal use).
1464
- *
1465
- * @property RqHeader - Authentication header
1466
- * @property MasterRecordDetail - Record data to insert or update
1467
- *
1468
- * @internal This type is primarily for internal SDK use. Use {@link MasterRecordDetail}
1469
- * as the input type for `client.upsertRecord()`.
1470
- */
1471
- type ManageMasterRecordRequest = InferInput<typeof ManageMasterRecordRequestSchema>;
1472
- /**
1473
- * Response from an insert/update operation.
1474
- *
1475
- * @property rsStatus - Operation status (check for 'OK' to confirm success)
1476
- * @property masterRecordDetail - The created/updated record with server-assigned values
1477
- * (e.g., `recordCode` for new records)
1478
- *
1479
- * @example
1480
- * ```typescript
1481
- * const result = await client.upsertRecord({
1482
- * languageCode: '02',
1483
- * name: 'New Customer',
1484
- * insertCriteria: 'N',
1485
- * });
1486
- *
1487
- * if (result.success) {
1488
- * const newCode = result.data.masterRecordDetail?.recordCode;
1489
- * console.log(`Created record with code: ${newCode}`);
1490
- * }
1491
- * ```
1492
- */
1493
- type ManageMasterRecordRS = InferOutput<typeof ManageMasterRecordResponseSchema>;
1494
- /**
1495
- * Configuration options for the AVES API client.
1496
- *
1497
- * @property baseURL - Base URL of the AVES API (e.g., 'https://api.aves.example.com')
1498
- * @property hostID - 6-digit identification code assigned to your organization
1499
- * @property xtoken - Authentication token for API access
1500
- * @property languageCode - Optional default 2-character language code for all requests
1501
- * @property timeoutMs - Optional request timeout in milliseconds (default: 30000)
1502
- *
1503
- * @example
1504
- * ```typescript
1505
- * const client = new AvesClient({
1506
- * baseURL: 'https://api.aves.example.com',
1507
- * hostID: '025706',
1508
- * xtoken: 'TOKEN025706',
1509
- * languageCode: '02',
1510
- * timeoutMs: 10000,
1511
- * });
1512
- * ```
1513
- */
1514
- interface AvesClientOptions {
1515
- /** Base URL of the AVES API (e.g., 'https://api.aves.example.com') */
1516
- baseURL: string;
1517
- /** 6-digit identification code assigned to your organization */
1518
- hostID: string;
1519
- /** Authentication token for API access */
1520
- xtoken: string;
1521
- /** Optional default 2-character language code for all requests */
1522
- languageCode?: string;
1523
- /** Optional request timeout in milliseconds (default: 30000) */
1524
- timeoutMs?: number;
1525
- }
1526
-
1527
- /**
1528
- * Result type for functional error handling
1529
- */
1530
- type Result<T, E = Error> = {
1531
- success: true;
1532
- data: T;
1533
- } | {
1534
- success: false;
1535
- error: E;
1536
- };
1537
-
1538
- /**
1539
- * AVES XML REST API client
1540
- */
1541
- declare class AvesClient {
1542
- private readonly options;
1543
- /**
1544
- * @param options - Client configuration options
1545
- * @param options.baseURL - Base URL of the AVES API
1546
- * @param options.hostID - 6-digit identification code
1547
- * @param options.xtoken - Authentication token
1548
- * @param options.languageCode - Optional 2-digit language code
1549
- * @param options.timeoutMs - Optional request timeout in milliseconds
1550
- */
1551
- constructor(options: AvesClientOptions);
1552
- private createRqHeader;
1553
- private createUrl;
1554
- private get endpoints();
1555
- private handleApiStatus;
1556
- private toAvesError;
1557
- private request;
1558
- /**
1559
- * Search for master records
1560
- * @returns Result containing list of matching master records in camelCase or error
1561
- */
1562
- search(params: SearchMasterRecord): Promise<Result<SearchMasterRecordRS, AvesError>>;
1563
- /**
1564
- * Insert or update a master record
1565
- * @param record - Master record data in camelCase
1566
- * @returns Result containing response with customer record code in camelCase or error
1567
- */
1568
- upsertRecord(record: MasterRecordDetail): Promise<Result<ManageMasterRecordRS, AvesError>>;
1569
- }
1570
-
1571
- export { type AccountPolicies, AvesClient, type AvesClientOptions, AvesError, type DynamicFields, type FinancialDetail, type IdDocumentDetail, type ManageMasterRecordRS, type ManageMasterRecordRequest, type MasterRecordDetail, type MasterRecordDetailResponse, type RqHeader, type RsStatus, type SearchMasterRecord, type SearchMasterRecordRS };