aves-sdk 1.2.15 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +588 -113
- package/dist/index.d.ts +588 -113
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +8 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,42 +1,54 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { InferInput, InferOutput } from 'valibot';
|
|
3
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
|
+
|
|
4
22
|
/**
|
|
5
23
|
* Request header schema with authentication credentials
|
|
6
24
|
*/
|
|
7
25
|
declare const RqHeaderSchema: v.ObjectSchema<{
|
|
8
|
-
readonly
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
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>;
|
|
13
31
|
}, undefined>;
|
|
14
32
|
/**
|
|
15
33
|
* Response status schema indicating success, error, or warning
|
|
16
34
|
*/
|
|
17
35
|
declare const RsStatusSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
18
|
-
readonly
|
|
36
|
+
readonly "@Status": v.UnionSchema<[v.LiteralSchema<"OK", undefined>, v.LiteralSchema<"ERROR", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"TIMEOUT", undefined>], undefined>;
|
|
19
37
|
readonly ErrorCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>]>, undefined>;
|
|
20
38
|
readonly ErrorDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
21
39
|
readonly Warnings: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, string[]>]>, undefined>;
|
|
22
40
|
}, undefined>, v.TransformAction<{
|
|
23
|
-
|
|
41
|
+
"@Status": "WARNING" | "OK" | "ERROR" | "TIMEOUT";
|
|
24
42
|
ErrorCode?: number | undefined;
|
|
25
43
|
ErrorDescription?: string | undefined;
|
|
26
44
|
Warnings?: string[] | undefined;
|
|
27
45
|
}, {
|
|
28
|
-
status: "
|
|
46
|
+
status: "WARNING" | "OK" | "ERROR" | "TIMEOUT";
|
|
29
47
|
errorCode: number | undefined;
|
|
30
48
|
errorDescription: string | undefined;
|
|
31
49
|
warnings: string[] | undefined;
|
|
32
50
|
}>]>;
|
|
33
51
|
|
|
34
|
-
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;
|
|
35
|
-
type ToCamelCase<S extends string> = CamelFromDelimiter<S> extends `${infer F}${infer R}` ? `${Lowercase<F>}${R}` : CamelFromDelimiter<S>;
|
|
36
|
-
type Camelize<T> = T extends readonly (infer U)[] ? Camelize<U>[] : T extends object ? {
|
|
37
|
-
[K in keyof T as K extends `@${infer Rest}` ? ToCamelCase<Rest> : ToCamelCase<K & string>]: Camelize<T[K]>;
|
|
38
|
-
} : T;
|
|
39
|
-
|
|
40
52
|
/**
|
|
41
53
|
* Financial detail schema for API requests (transforms to PascalCase)
|
|
42
54
|
*/
|
|
@@ -68,6 +80,60 @@ declare const FinancialDetailSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
68
80
|
EnableElectronicInvoicing?: boolean | "true" | "false" | undefined;
|
|
69
81
|
ElectronicInvoicingType?: string | undefined;
|
|
70
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
|
+
}>]>;
|
|
71
137
|
/**
|
|
72
138
|
* Master record detail input schema (camelCase)
|
|
73
139
|
*/
|
|
@@ -90,10 +156,21 @@ declare const MasterRecordDetailSchema: v.ObjectSchema<{
|
|
|
90
156
|
readonly firstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
91
157
|
readonly mobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
92
158
|
readonly email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
93
|
-
readonly gender: v.OptionalSchema<v.
|
|
159
|
+
readonly gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
|
|
94
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>;
|
|
95
163
|
readonly fiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
96
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>;
|
|
97
174
|
readonly accountPolicies: v.OptionalSchema<v.ObjectSchema<{
|
|
98
175
|
readonly acceptProfilingPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
99
176
|
readonly acceptPrivacyPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
@@ -136,10 +213,21 @@ declare const MasterRecordDetailResponseSchema: v.SchemaWithPipe<readonly [v.Sch
|
|
|
136
213
|
readonly firstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
137
214
|
readonly mobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
138
215
|
readonly email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
139
|
-
readonly gender: v.OptionalSchema<v.
|
|
216
|
+
readonly gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
|
|
140
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>;
|
|
141
220
|
readonly fiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
142
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>;
|
|
143
231
|
readonly accountPolicies: v.OptionalSchema<v.ObjectSchema<{
|
|
144
232
|
readonly acceptProfilingPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
145
233
|
readonly acceptPrivacyPolicies: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<0, undefined>, v.LiteralSchema<1, undefined>], undefined>, undefined>;
|
|
@@ -164,7 +252,7 @@ declare const MasterRecordDetailResponseSchema: v.SchemaWithPipe<readonly [v.Sch
|
|
|
164
252
|
insertCriteria?: "S" | "N" | "T" | "M" | undefined;
|
|
165
253
|
createdDate?: string | undefined;
|
|
166
254
|
recordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
167
|
-
recordStatus?: "
|
|
255
|
+
recordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
|
|
168
256
|
moniker?: string | undefined;
|
|
169
257
|
name?: string | undefined;
|
|
170
258
|
extraInfo?: string | undefined;
|
|
@@ -178,10 +266,21 @@ declare const MasterRecordDetailResponseSchema: v.SchemaWithPipe<readonly [v.Sch
|
|
|
178
266
|
firstPhoneNumber?: string | undefined;
|
|
179
267
|
mobilePhoneNumber?: string | undefined;
|
|
180
268
|
email?: string | undefined;
|
|
181
|
-
gender?:
|
|
269
|
+
gender?: "M" | "F" | undefined;
|
|
182
270
|
birthDate?: string | undefined;
|
|
271
|
+
birthCity?: string | undefined;
|
|
272
|
+
birthCounty?: string | undefined;
|
|
183
273
|
fiscalCode?: string | undefined;
|
|
184
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;
|
|
185
284
|
accountPolicies?: {
|
|
186
285
|
acceptProfilingPolicies?: 0 | 1 | undefined;
|
|
187
286
|
acceptPrivacyPolicies?: 0 | 1 | undefined;
|
|
@@ -206,7 +305,7 @@ declare const MasterRecordDetailResponseSchema: v.SchemaWithPipe<readonly [v.Sch
|
|
|
206
305
|
InsertCriteria?: "S" | "N" | "T" | "M" | undefined;
|
|
207
306
|
CreatedDate?: string | undefined;
|
|
208
307
|
RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
209
|
-
RecordStatus?: "
|
|
308
|
+
RecordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
|
|
210
309
|
Moniker?: string | undefined;
|
|
211
310
|
Name?: string | undefined;
|
|
212
311
|
ExtraInfo?: string | undefined;
|
|
@@ -220,10 +319,21 @@ declare const MasterRecordDetailResponseSchema: v.SchemaWithPipe<readonly [v.Sch
|
|
|
220
319
|
FirstPhoneNumber?: string | undefined;
|
|
221
320
|
MobilePhoneNumber?: string | undefined;
|
|
222
321
|
Email?: string | undefined;
|
|
223
|
-
Gender?:
|
|
322
|
+
Gender?: "M" | "F" | undefined;
|
|
224
323
|
BirthDate?: string | undefined;
|
|
324
|
+
BirthCity?: string | undefined;
|
|
325
|
+
BirthCounty?: string | undefined;
|
|
225
326
|
FiscalCode?: string | undefined;
|
|
226
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;
|
|
227
337
|
AccountPolicies?: {
|
|
228
338
|
AcceptProfilingPolicies?: 0 | 1 | undefined;
|
|
229
339
|
AcceptPrivacyPolicies?: 0 | 1 | undefined;
|
|
@@ -248,7 +358,7 @@ declare const MasterRecordDetailResponseSchema: v.SchemaWithPipe<readonly [v.Sch
|
|
|
248
358
|
InsertCriteria?: "S" | "N" | "T" | "M" | undefined;
|
|
249
359
|
CreatedDate?: string | undefined;
|
|
250
360
|
RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
251
|
-
RecordStatus?: "
|
|
361
|
+
RecordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
|
|
252
362
|
Moniker?: string | undefined;
|
|
253
363
|
Name?: string | undefined;
|
|
254
364
|
ExtraInfo?: string | undefined;
|
|
@@ -262,10 +372,21 @@ declare const MasterRecordDetailResponseSchema: v.SchemaWithPipe<readonly [v.Sch
|
|
|
262
372
|
FirstPhoneNumber?: string | undefined;
|
|
263
373
|
MobilePhoneNumber?: string | undefined;
|
|
264
374
|
Email?: string | undefined;
|
|
265
|
-
Gender?:
|
|
375
|
+
Gender?: "M" | "F" | undefined;
|
|
266
376
|
BirthDate?: string | undefined;
|
|
377
|
+
BirthCity?: string | undefined;
|
|
378
|
+
BirthCounty?: string | undefined;
|
|
267
379
|
FiscalCode?: string | undefined;
|
|
268
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;
|
|
269
390
|
AccountPolicies?: {
|
|
270
391
|
AcceptProfilingPolicies?: 0 | 1 | undefined;
|
|
271
392
|
AcceptPrivacyPolicies?: 0 | 1 | undefined;
|
|
@@ -290,7 +411,7 @@ declare const MasterRecordDetailResponseSchema: v.SchemaWithPipe<readonly [v.Sch
|
|
|
290
411
|
insertCriteria?: "S" | "N" | "T" | "M" | undefined;
|
|
291
412
|
createdDate?: string | undefined;
|
|
292
413
|
recordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
293
|
-
recordStatus?: "
|
|
414
|
+
recordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
|
|
294
415
|
moniker?: string | undefined;
|
|
295
416
|
name?: string | undefined;
|
|
296
417
|
extraInfo?: string | undefined;
|
|
@@ -304,10 +425,21 @@ declare const MasterRecordDetailResponseSchema: v.SchemaWithPipe<readonly [v.Sch
|
|
|
304
425
|
firstPhoneNumber?: string | undefined;
|
|
305
426
|
mobilePhoneNumber?: string | undefined;
|
|
306
427
|
email?: string | undefined;
|
|
307
|
-
gender?:
|
|
428
|
+
gender?: "M" | "F" | undefined;
|
|
308
429
|
birthDate?: string | undefined;
|
|
430
|
+
birthCity?: string | undefined;
|
|
431
|
+
birthCounty?: string | undefined;
|
|
309
432
|
fiscalCode?: string | undefined;
|
|
310
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;
|
|
311
443
|
accountPolicies?: {
|
|
312
444
|
acceptProfilingPolicies?: 0 | 1 | undefined;
|
|
313
445
|
acceptPrivacyPolicies?: 0 | 1 | undefined;
|
|
@@ -382,25 +514,25 @@ declare const SearchMasterRecordSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
382
514
|
*/
|
|
383
515
|
declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
384
516
|
readonly RsStatus: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
385
|
-
readonly
|
|
517
|
+
readonly "@Status": v.UnionSchema<[v.LiteralSchema<"OK", undefined>, v.LiteralSchema<"ERROR", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"TIMEOUT", undefined>], undefined>;
|
|
386
518
|
readonly ErrorCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>]>, undefined>;
|
|
387
519
|
readonly ErrorDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
388
520
|
readonly Warnings: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, string[]>]>, undefined>;
|
|
389
521
|
}, undefined>, v.TransformAction<{
|
|
390
|
-
|
|
522
|
+
"@Status": "WARNING" | "OK" | "ERROR" | "TIMEOUT";
|
|
391
523
|
ErrorCode?: number | undefined;
|
|
392
524
|
ErrorDescription?: string | undefined;
|
|
393
525
|
Warnings?: string[] | undefined;
|
|
394
526
|
}, {
|
|
395
|
-
status: "
|
|
527
|
+
status: "WARNING" | "OK" | "ERROR" | "TIMEOUT";
|
|
396
528
|
errorCode: number | undefined;
|
|
397
529
|
errorDescription: string | undefined;
|
|
398
530
|
warnings: string[] | undefined;
|
|
399
531
|
}>]>;
|
|
400
532
|
readonly MasterRecordList: v.OptionalSchema<v.ObjectSchema<{
|
|
401
533
|
readonly MasterRecordDetail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.ArraySchema<v.ObjectSchema<{
|
|
402
|
-
readonly
|
|
403
|
-
readonly
|
|
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>;
|
|
404
536
|
readonly CreatedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
405
537
|
readonly ModifiedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
406
538
|
readonly RecordType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CUSTOMER", undefined>, v.LiteralSchema<"SUPPLIER", undefined>, v.LiteralSchema<"GENERAL", undefined>], undefined>, undefined>;
|
|
@@ -420,11 +552,22 @@ declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
420
552
|
readonly FirstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
421
553
|
readonly MobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
422
554
|
readonly Email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
423
|
-
readonly Gender: v.OptionalSchema<v.
|
|
555
|
+
readonly Gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
|
|
424
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>;
|
|
425
559
|
readonly EncryptedPassword: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
426
560
|
readonly FiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
427
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>;
|
|
428
571
|
readonly NewsletterDisabled: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
429
572
|
readonly SupplierRefMasterRecords: v.OptionalSchema<v.AnySchema, undefined>;
|
|
430
573
|
readonly AccountPolicies: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -442,13 +585,13 @@ declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
442
585
|
readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
443
586
|
readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
444
587
|
}, undefined>, undefined>;
|
|
445
|
-
readonly DynamicFields: v.OptionalSchema<v.
|
|
588
|
+
readonly DynamicFields: v.OptionalSchema<v.ObjectSchema<{
|
|
446
589
|
readonly key: v.StringSchema<undefined>;
|
|
447
590
|
readonly value: v.StringSchema<undefined>;
|
|
448
|
-
}, undefined>, undefined
|
|
591
|
+
}, undefined>, undefined>;
|
|
449
592
|
}, undefined>, undefined>, v.ObjectSchema<{
|
|
450
|
-
readonly
|
|
451
|
-
readonly
|
|
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>;
|
|
452
595
|
readonly CreatedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
453
596
|
readonly ModifiedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
454
597
|
readonly RecordType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CUSTOMER", undefined>, v.LiteralSchema<"SUPPLIER", undefined>, v.LiteralSchema<"GENERAL", undefined>], undefined>, undefined>;
|
|
@@ -468,11 +611,22 @@ declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
468
611
|
readonly FirstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
469
612
|
readonly MobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
470
613
|
readonly Email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
471
|
-
readonly Gender: v.OptionalSchema<v.
|
|
614
|
+
readonly Gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
|
|
472
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>;
|
|
473
618
|
readonly EncryptedPassword: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
474
619
|
readonly FiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
475
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>;
|
|
476
630
|
readonly NewsletterDisabled: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
477
631
|
readonly SupplierRefMasterRecords: v.OptionalSchema<v.AnySchema, undefined>;
|
|
478
632
|
readonly AccountPolicies: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -490,18 +644,18 @@ declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
490
644
|
readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
491
645
|
readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
492
646
|
}, undefined>, undefined>;
|
|
493
|
-
readonly DynamicFields: v.OptionalSchema<v.
|
|
647
|
+
readonly DynamicFields: v.OptionalSchema<v.ObjectSchema<{
|
|
494
648
|
readonly key: v.StringSchema<undefined>;
|
|
495
649
|
readonly value: v.StringSchema<undefined>;
|
|
496
|
-
}, undefined>, undefined
|
|
650
|
+
}, undefined>, undefined>;
|
|
497
651
|
}, undefined>], undefined>, v.TransformAction<{
|
|
498
|
-
|
|
499
|
-
|
|
652
|
+
"@RecordCode"?: string | undefined;
|
|
653
|
+
"@InsertCriteria"?: "S" | "N" | "T" | "M" | undefined;
|
|
500
654
|
CreatedDate?: string | undefined;
|
|
501
655
|
ModifiedDate?: string | undefined;
|
|
502
656
|
RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
503
657
|
LoginType?: string | undefined;
|
|
504
|
-
RecordStatus?: "
|
|
658
|
+
RecordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
|
|
505
659
|
Moniker?: string | undefined;
|
|
506
660
|
Name?: string | undefined;
|
|
507
661
|
ExtraInfo?: string | undefined;
|
|
@@ -516,11 +670,22 @@ declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
516
670
|
FirstPhoneNumber?: string | undefined;
|
|
517
671
|
MobilePhoneNumber?: string | undefined;
|
|
518
672
|
Email?: string | undefined;
|
|
519
|
-
Gender?:
|
|
673
|
+
Gender?: "M" | "F" | undefined;
|
|
520
674
|
BirthDate?: string | undefined;
|
|
675
|
+
BirthCity?: string | undefined;
|
|
676
|
+
BirthCounty?: string | undefined;
|
|
521
677
|
EncryptedPassword?: boolean | "true" | "false" | undefined;
|
|
522
678
|
FiscalCode?: string | undefined;
|
|
523
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;
|
|
524
689
|
NewsletterDisabled?: boolean | "true" | "false" | undefined;
|
|
525
690
|
SupplierRefMasterRecords?: any;
|
|
526
691
|
AccountPolicies?: {
|
|
@@ -541,15 +706,15 @@ declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
541
706
|
DynamicFields?: {
|
|
542
707
|
key: string;
|
|
543
708
|
value: string;
|
|
544
|
-
}
|
|
709
|
+
} | undefined;
|
|
545
710
|
} | {
|
|
546
|
-
|
|
547
|
-
|
|
711
|
+
"@RecordCode"?: string | undefined;
|
|
712
|
+
"@InsertCriteria"?: "S" | "N" | "T" | "M" | undefined;
|
|
548
713
|
CreatedDate?: string | undefined;
|
|
549
714
|
ModifiedDate?: string | undefined;
|
|
550
715
|
RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
551
716
|
LoginType?: string | undefined;
|
|
552
|
-
RecordStatus?: "
|
|
717
|
+
RecordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
|
|
553
718
|
Moniker?: string | undefined;
|
|
554
719
|
Name?: string | undefined;
|
|
555
720
|
ExtraInfo?: string | undefined;
|
|
@@ -564,11 +729,22 @@ declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
564
729
|
FirstPhoneNumber?: string | undefined;
|
|
565
730
|
MobilePhoneNumber?: string | undefined;
|
|
566
731
|
Email?: string | undefined;
|
|
567
|
-
Gender?:
|
|
732
|
+
Gender?: "M" | "F" | undefined;
|
|
568
733
|
BirthDate?: string | undefined;
|
|
734
|
+
BirthCity?: string | undefined;
|
|
735
|
+
BirthCounty?: string | undefined;
|
|
569
736
|
EncryptedPassword?: boolean | "true" | "false" | undefined;
|
|
570
737
|
FiscalCode?: string | undefined;
|
|
571
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;
|
|
572
748
|
NewsletterDisabled?: boolean | "true" | "false" | undefined;
|
|
573
749
|
SupplierRefMasterRecords?: any;
|
|
574
750
|
AccountPolicies?: {
|
|
@@ -589,15 +765,15 @@ declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
589
765
|
DynamicFields?: {
|
|
590
766
|
key: string;
|
|
591
767
|
value: string;
|
|
592
|
-
}
|
|
768
|
+
} | undefined;
|
|
593
769
|
}[], {
|
|
594
|
-
|
|
595
|
-
|
|
770
|
+
"@RecordCode"?: string | undefined;
|
|
771
|
+
"@InsertCriteria"?: "S" | "N" | "T" | "M" | undefined;
|
|
596
772
|
CreatedDate?: string | undefined;
|
|
597
773
|
ModifiedDate?: string | undefined;
|
|
598
774
|
RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
599
775
|
LoginType?: string | undefined;
|
|
600
|
-
RecordStatus?: "
|
|
776
|
+
RecordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
|
|
601
777
|
Moniker?: string | undefined;
|
|
602
778
|
Name?: string | undefined;
|
|
603
779
|
ExtraInfo?: string | undefined;
|
|
@@ -612,11 +788,22 @@ declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
612
788
|
FirstPhoneNumber?: string | undefined;
|
|
613
789
|
MobilePhoneNumber?: string | undefined;
|
|
614
790
|
Email?: string | undefined;
|
|
615
|
-
Gender?:
|
|
791
|
+
Gender?: "M" | "F" | undefined;
|
|
616
792
|
BirthDate?: string | undefined;
|
|
793
|
+
BirthCity?: string | undefined;
|
|
794
|
+
BirthCounty?: string | undefined;
|
|
617
795
|
EncryptedPassword?: boolean | "true" | "false" | undefined;
|
|
618
796
|
FiscalCode?: string | undefined;
|
|
619
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;
|
|
620
807
|
NewsletterDisabled?: boolean | "true" | "false" | undefined;
|
|
621
808
|
SupplierRefMasterRecords?: any;
|
|
622
809
|
AccountPolicies?: {
|
|
@@ -637,25 +824,25 @@ declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
637
824
|
DynamicFields?: {
|
|
638
825
|
key: string;
|
|
639
826
|
value: string;
|
|
640
|
-
}
|
|
827
|
+
} | undefined;
|
|
641
828
|
}[] | undefined>]>, undefined>;
|
|
642
829
|
}, undefined>, undefined>;
|
|
643
830
|
}, undefined>, v.TransformAction<{
|
|
644
831
|
RsStatus: {
|
|
645
|
-
status: "
|
|
832
|
+
status: "WARNING" | "OK" | "ERROR" | "TIMEOUT";
|
|
646
833
|
errorCode: number | undefined;
|
|
647
834
|
errorDescription: string | undefined;
|
|
648
835
|
warnings: string[] | undefined;
|
|
649
836
|
};
|
|
650
837
|
MasterRecordList?: {
|
|
651
838
|
MasterRecordDetail?: {
|
|
652
|
-
|
|
653
|
-
|
|
839
|
+
"@RecordCode"?: string | undefined;
|
|
840
|
+
"@InsertCriteria"?: "S" | "N" | "T" | "M" | undefined;
|
|
654
841
|
CreatedDate?: string | undefined;
|
|
655
842
|
ModifiedDate?: string | undefined;
|
|
656
843
|
RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
657
844
|
LoginType?: string | undefined;
|
|
658
|
-
RecordStatus?: "
|
|
845
|
+
RecordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
|
|
659
846
|
Moniker?: string | undefined;
|
|
660
847
|
Name?: string | undefined;
|
|
661
848
|
ExtraInfo?: string | undefined;
|
|
@@ -670,11 +857,22 @@ declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
670
857
|
FirstPhoneNumber?: string | undefined;
|
|
671
858
|
MobilePhoneNumber?: string | undefined;
|
|
672
859
|
Email?: string | undefined;
|
|
673
|
-
Gender?:
|
|
860
|
+
Gender?: "M" | "F" | undefined;
|
|
674
861
|
BirthDate?: string | undefined;
|
|
862
|
+
BirthCity?: string | undefined;
|
|
863
|
+
BirthCounty?: string | undefined;
|
|
675
864
|
EncryptedPassword?: boolean | "true" | "false" | undefined;
|
|
676
865
|
FiscalCode?: string | undefined;
|
|
677
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;
|
|
678
876
|
NewsletterDisabled?: boolean | "true" | "false" | undefined;
|
|
679
877
|
SupplierRefMasterRecords?: any;
|
|
680
878
|
AccountPolicies?: {
|
|
@@ -695,12 +893,12 @@ declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
695
893
|
DynamicFields?: {
|
|
696
894
|
key: string;
|
|
697
895
|
value: string;
|
|
698
|
-
}
|
|
896
|
+
} | undefined;
|
|
699
897
|
}[] | undefined;
|
|
700
898
|
} | undefined;
|
|
701
899
|
}, {
|
|
702
900
|
rsStatus: {
|
|
703
|
-
status: "
|
|
901
|
+
status: "WARNING" | "OK" | "ERROR" | "TIMEOUT";
|
|
704
902
|
errorCode: number | undefined;
|
|
705
903
|
errorDescription: string | undefined;
|
|
706
904
|
warnings: string[] | undefined;
|
|
@@ -713,7 +911,7 @@ declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
713
911
|
modifiedDate?: string | undefined;
|
|
714
912
|
recordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
715
913
|
loginType?: string | undefined;
|
|
716
|
-
recordStatus?: "
|
|
914
|
+
recordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
|
|
717
915
|
moniker?: string | undefined;
|
|
718
916
|
name?: string | undefined;
|
|
719
917
|
extraInfo?: string | undefined;
|
|
@@ -728,11 +926,22 @@ declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
728
926
|
firstPhoneNumber?: string | undefined;
|
|
729
927
|
mobilePhoneNumber?: string | undefined;
|
|
730
928
|
email?: string | undefined;
|
|
731
|
-
gender?:
|
|
929
|
+
gender?: "M" | "F" | undefined;
|
|
732
930
|
birthDate?: string | undefined;
|
|
931
|
+
birthCity?: string | undefined;
|
|
932
|
+
birthCounty?: string | undefined;
|
|
733
933
|
encryptedPassword?: boolean | "true" | "false" | undefined;
|
|
734
934
|
fiscalCode?: string | undefined;
|
|
735
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;
|
|
736
945
|
newsletterDisabled?: boolean | "true" | "false" | undefined;
|
|
737
946
|
supplierRefMasterRecords?: any;
|
|
738
947
|
accountPolicies?: {
|
|
@@ -753,7 +962,7 @@ declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
753
962
|
dynamicFields?: {
|
|
754
963
|
key: string;
|
|
755
964
|
value: string;
|
|
756
|
-
}
|
|
965
|
+
} | undefined;
|
|
757
966
|
}[] | undefined;
|
|
758
967
|
} | undefined;
|
|
759
968
|
}>]>;
|
|
@@ -763,15 +972,15 @@ declare const SearchMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
763
972
|
*/
|
|
764
973
|
declare const ManageMasterRecordRequestSchema: v.ObjectSchema<{
|
|
765
974
|
readonly RqHeader: v.ObjectSchema<{
|
|
766
|
-
readonly
|
|
767
|
-
readonly
|
|
768
|
-
readonly
|
|
769
|
-
readonly
|
|
770
|
-
readonly
|
|
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>;
|
|
771
980
|
}, undefined>;
|
|
772
981
|
readonly MasterRecordDetail: v.ObjectSchema<{
|
|
773
|
-
readonly
|
|
774
|
-
readonly
|
|
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>;
|
|
775
984
|
readonly CreatedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
776
985
|
readonly ModifiedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
777
986
|
readonly RecordType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CUSTOMER", undefined>, v.LiteralSchema<"SUPPLIER", undefined>, v.LiteralSchema<"GENERAL", undefined>], undefined>, undefined>;
|
|
@@ -791,11 +1000,22 @@ declare const ManageMasterRecordRequestSchema: v.ObjectSchema<{
|
|
|
791
1000
|
readonly FirstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
792
1001
|
readonly MobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
793
1002
|
readonly Email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
794
|
-
readonly Gender: v.OptionalSchema<v.
|
|
1003
|
+
readonly Gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
|
|
795
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>;
|
|
796
1007
|
readonly EncryptedPassword: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
797
1008
|
readonly FiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
798
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>;
|
|
799
1019
|
readonly NewsletterDisabled: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
800
1020
|
readonly SupplierRefMasterRecords: v.OptionalSchema<v.AnySchema, undefined>;
|
|
801
1021
|
readonly AccountPolicies: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -813,10 +1033,10 @@ declare const ManageMasterRecordRequestSchema: v.ObjectSchema<{
|
|
|
813
1033
|
readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
814
1034
|
readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
815
1035
|
}, undefined>, undefined>;
|
|
816
|
-
readonly DynamicFields: v.OptionalSchema<v.
|
|
1036
|
+
readonly DynamicFields: v.OptionalSchema<v.ObjectSchema<{
|
|
817
1037
|
readonly key: v.StringSchema<undefined>;
|
|
818
1038
|
readonly value: v.StringSchema<undefined>;
|
|
819
|
-
}, undefined>, undefined
|
|
1039
|
+
}, undefined>, undefined>;
|
|
820
1040
|
}, undefined>;
|
|
821
1041
|
}, undefined>;
|
|
822
1042
|
/**
|
|
@@ -824,24 +1044,24 @@ declare const ManageMasterRecordRequestSchema: v.ObjectSchema<{
|
|
|
824
1044
|
*/
|
|
825
1045
|
declare const ManageMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
826
1046
|
readonly RsStatus: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
827
|
-
readonly
|
|
1047
|
+
readonly "@Status": v.UnionSchema<[v.LiteralSchema<"OK", undefined>, v.LiteralSchema<"ERROR", undefined>, v.LiteralSchema<"WARNING", undefined>, v.LiteralSchema<"TIMEOUT", undefined>], undefined>;
|
|
828
1048
|
readonly ErrorCode: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<string | number, number>]>, undefined>;
|
|
829
1049
|
readonly ErrorDescription: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
830
1050
|
readonly Warnings: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, string[]>]>, undefined>;
|
|
831
1051
|
}, undefined>, v.TransformAction<{
|
|
832
|
-
|
|
1052
|
+
"@Status": "WARNING" | "OK" | "ERROR" | "TIMEOUT";
|
|
833
1053
|
ErrorCode?: number | undefined;
|
|
834
1054
|
ErrorDescription?: string | undefined;
|
|
835
1055
|
Warnings?: string[] | undefined;
|
|
836
1056
|
}, {
|
|
837
|
-
status: "
|
|
1057
|
+
status: "WARNING" | "OK" | "ERROR" | "TIMEOUT";
|
|
838
1058
|
errorCode: number | undefined;
|
|
839
1059
|
errorDescription: string | undefined;
|
|
840
1060
|
warnings: string[] | undefined;
|
|
841
1061
|
}>]>;
|
|
842
1062
|
readonly MasterRecordDetail: v.OptionalSchema<v.ObjectSchema<{
|
|
843
|
-
readonly
|
|
844
|
-
readonly
|
|
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>;
|
|
845
1065
|
readonly CreatedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
846
1066
|
readonly ModifiedDate: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
847
1067
|
readonly RecordType: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"CUSTOMER", undefined>, v.LiteralSchema<"SUPPLIER", undefined>, v.LiteralSchema<"GENERAL", undefined>], undefined>, undefined>;
|
|
@@ -861,11 +1081,22 @@ declare const ManageMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
861
1081
|
readonly FirstPhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
862
1082
|
readonly MobilePhoneNumber: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
863
1083
|
readonly Email: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
864
|
-
readonly Gender: v.OptionalSchema<v.
|
|
1084
|
+
readonly Gender: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"M", undefined>, v.LiteralSchema<"F", undefined>], undefined>, undefined>;
|
|
865
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>;
|
|
866
1088
|
readonly EncryptedPassword: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
867
1089
|
readonly FiscalCode: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
868
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>;
|
|
869
1100
|
readonly NewsletterDisabled: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
870
1101
|
readonly SupplierRefMasterRecords: v.OptionalSchema<v.AnySchema, undefined>;
|
|
871
1102
|
readonly AccountPolicies: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -883,26 +1114,26 @@ declare const ManageMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
883
1114
|
readonly enableElectronicInvoicing: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"true", undefined>, v.LiteralSchema<"false", undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
884
1115
|
readonly electronicInvoicingType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
885
1116
|
}, undefined>, undefined>;
|
|
886
|
-
readonly DynamicFields: v.OptionalSchema<v.
|
|
1117
|
+
readonly DynamicFields: v.OptionalSchema<v.ObjectSchema<{
|
|
887
1118
|
readonly key: v.StringSchema<undefined>;
|
|
888
1119
|
readonly value: v.StringSchema<undefined>;
|
|
889
|
-
}, undefined>, undefined
|
|
1120
|
+
}, undefined>, undefined>;
|
|
890
1121
|
}, undefined>, undefined>;
|
|
891
1122
|
}, undefined>, v.TransformAction<{
|
|
892
1123
|
RsStatus: {
|
|
893
|
-
status: "
|
|
1124
|
+
status: "WARNING" | "OK" | "ERROR" | "TIMEOUT";
|
|
894
1125
|
errorCode: number | undefined;
|
|
895
1126
|
errorDescription: string | undefined;
|
|
896
1127
|
warnings: string[] | undefined;
|
|
897
1128
|
};
|
|
898
1129
|
MasterRecordDetail?: {
|
|
899
|
-
|
|
900
|
-
|
|
1130
|
+
"@RecordCode"?: string | undefined;
|
|
1131
|
+
"@InsertCriteria"?: "S" | "N" | "T" | "M" | undefined;
|
|
901
1132
|
CreatedDate?: string | undefined;
|
|
902
1133
|
ModifiedDate?: string | undefined;
|
|
903
1134
|
RecordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
904
1135
|
LoginType?: string | undefined;
|
|
905
|
-
RecordStatus?: "
|
|
1136
|
+
RecordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
|
|
906
1137
|
Moniker?: string | undefined;
|
|
907
1138
|
Name?: string | undefined;
|
|
908
1139
|
ExtraInfo?: string | undefined;
|
|
@@ -917,11 +1148,22 @@ declare const ManageMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
917
1148
|
FirstPhoneNumber?: string | undefined;
|
|
918
1149
|
MobilePhoneNumber?: string | undefined;
|
|
919
1150
|
Email?: string | undefined;
|
|
920
|
-
Gender?:
|
|
1151
|
+
Gender?: "M" | "F" | undefined;
|
|
921
1152
|
BirthDate?: string | undefined;
|
|
1153
|
+
BirthCity?: string | undefined;
|
|
1154
|
+
BirthCounty?: string | undefined;
|
|
922
1155
|
EncryptedPassword?: boolean | "true" | "false" | undefined;
|
|
923
1156
|
FiscalCode?: string | undefined;
|
|
924
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;
|
|
925
1167
|
NewsletterDisabled?: boolean | "true" | "false" | undefined;
|
|
926
1168
|
SupplierRefMasterRecords?: any;
|
|
927
1169
|
AccountPolicies?: {
|
|
@@ -942,11 +1184,11 @@ declare const ManageMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
942
1184
|
DynamicFields?: {
|
|
943
1185
|
key: string;
|
|
944
1186
|
value: string;
|
|
945
|
-
}
|
|
1187
|
+
} | undefined;
|
|
946
1188
|
} | undefined;
|
|
947
1189
|
}, {
|
|
948
1190
|
rsStatus: {
|
|
949
|
-
status: "
|
|
1191
|
+
status: "WARNING" | "OK" | "ERROR" | "TIMEOUT";
|
|
950
1192
|
errorCode: number | undefined;
|
|
951
1193
|
errorDescription: string | undefined;
|
|
952
1194
|
warnings: string[] | undefined;
|
|
@@ -958,7 +1200,7 @@ declare const ManageMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
958
1200
|
modifiedDate?: string | undefined;
|
|
959
1201
|
recordType?: "CUSTOMER" | "SUPPLIER" | "GENERAL" | undefined;
|
|
960
1202
|
loginType?: string | undefined;
|
|
961
|
-
recordStatus?: "
|
|
1203
|
+
recordStatus?: "ENABLED" | "DISABLED" | "WARNING" | "BLACKLISTED" | undefined;
|
|
962
1204
|
moniker?: string | undefined;
|
|
963
1205
|
name?: string | undefined;
|
|
964
1206
|
extraInfo?: string | undefined;
|
|
@@ -973,11 +1215,22 @@ declare const ManageMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
973
1215
|
firstPhoneNumber?: string | undefined;
|
|
974
1216
|
mobilePhoneNumber?: string | undefined;
|
|
975
1217
|
email?: string | undefined;
|
|
976
|
-
gender?:
|
|
1218
|
+
gender?: "M" | "F" | undefined;
|
|
977
1219
|
birthDate?: string | undefined;
|
|
1220
|
+
birthCity?: string | undefined;
|
|
1221
|
+
birthCounty?: string | undefined;
|
|
978
1222
|
encryptedPassword?: boolean | "true" | "false" | undefined;
|
|
979
1223
|
fiscalCode?: string | undefined;
|
|
980
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;
|
|
981
1234
|
newsletterDisabled?: boolean | "true" | "false" | undefined;
|
|
982
1235
|
supplierRefMasterRecords?: any;
|
|
983
1236
|
accountPolicies?: {
|
|
@@ -998,36 +1251,276 @@ declare const ManageMasterRecordResponseSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
998
1251
|
dynamicFields?: {
|
|
999
1252
|
key: string;
|
|
1000
1253
|
value: string;
|
|
1001
|
-
}
|
|
1254
|
+
} | undefined;
|
|
1002
1255
|
} | undefined;
|
|
1003
1256
|
}>]>;
|
|
1004
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
|
+
|
|
1005
1264
|
/**
|
|
1006
|
-
*
|
|
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)
|
|
1007
1272
|
*/
|
|
1008
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
|
+
*/
|
|
1009
1291
|
type RsStatus = Camelize<InferOutput<typeof RsStatusSchema>>;
|
|
1010
1292
|
/**
|
|
1011
|
-
*
|
|
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
|
|
1012
1303
|
*/
|
|
1013
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
|
+
*/
|
|
1014
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
|
+
*/
|
|
1015
1400
|
type MasterRecordDetailResponse = InferOutput<typeof MasterRecordDetailResponseSchema>;
|
|
1016
1401
|
/**
|
|
1017
|
-
* Search
|
|
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
|
+
* ```
|
|
1018
1443
|
*/
|
|
1019
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
|
+
*/
|
|
1020
1461
|
type SearchMasterRecordRS = InferOutput<typeof SearchMasterRecordResponseSchema>;
|
|
1021
1462
|
/**
|
|
1022
|
-
*
|
|
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()`.
|
|
1023
1470
|
*/
|
|
1024
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
|
+
*/
|
|
1025
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
|
+
*/
|
|
1026
1514
|
interface AvesClientOptions {
|
|
1515
|
+
/** Base URL of the AVES API (e.g., 'https://api.aves.example.com') */
|
|
1027
1516
|
baseURL: string;
|
|
1517
|
+
/** 6-digit identification code assigned to your organization */
|
|
1028
1518
|
hostID: string;
|
|
1519
|
+
/** Authentication token for API access */
|
|
1029
1520
|
xtoken: string;
|
|
1521
|
+
/** Optional default 2-character language code for all requests */
|
|
1030
1522
|
languageCode?: string;
|
|
1523
|
+
/** Optional request timeout in milliseconds (default: 30000) */
|
|
1031
1524
|
timeoutMs?: number;
|
|
1032
1525
|
}
|
|
1033
1526
|
|
|
@@ -1042,24 +1535,6 @@ type Result<T, E = Error> = {
|
|
|
1042
1535
|
error: E;
|
|
1043
1536
|
};
|
|
1044
1537
|
|
|
1045
|
-
declare const ERROR_KINDS: {
|
|
1046
|
-
readonly VALIDATION: "validation";
|
|
1047
|
-
readonly API: "api";
|
|
1048
|
-
readonly UNKNOWN: "unknown";
|
|
1049
|
-
};
|
|
1050
|
-
type ErrorKind = (typeof ERROR_KINDS)[keyof typeof ERROR_KINDS];
|
|
1051
|
-
/**
|
|
1052
|
-
* Error thrown by AVES API operations
|
|
1053
|
-
*/
|
|
1054
|
-
declare class AvesError extends Error {
|
|
1055
|
-
readonly kind: ErrorKind;
|
|
1056
|
-
readonly message: string;
|
|
1057
|
-
readonly status?: string | undefined;
|
|
1058
|
-
readonly code?: number | string | undefined;
|
|
1059
|
-
constructor(kind: ErrorKind, message: string, status?: string | undefined, code?: number | string | undefined);
|
|
1060
|
-
private parseCode;
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
1538
|
/**
|
|
1064
1539
|
* AVES XML REST API client
|
|
1065
1540
|
*/
|
|
@@ -1093,4 +1568,4 @@ declare class AvesClient {
|
|
|
1093
1568
|
upsertRecord(record: MasterRecordDetail): Promise<Result<ManageMasterRecordRS, AvesError>>;
|
|
1094
1569
|
}
|
|
1095
1570
|
|
|
1096
|
-
export { AvesClient, type AvesClientOptions, AvesError, type FinancialDetail, type ManageMasterRecordRS, type ManageMasterRecordRequest, type MasterRecordDetail, type MasterRecordDetailResponse, type RqHeader, type RsStatus, type SearchMasterRecord, type SearchMasterRecordRS };
|
|
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 };
|