@socotra/ec-react-schemas 2.35.0-next.0 → 2.35.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +200 -2
- package/dist/index.es.js +2924 -2896
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -89,8 +89,94 @@ export declare const accountConfigSchema: z.ZodObject<{
|
|
|
89
89
|
defaultSearchable: z.ZodOptional<z.ZodBoolean>;
|
|
90
90
|
}, z.core.$strip>;
|
|
91
91
|
|
|
92
|
-
export declare type AccountCreateRequest = z.infer<typeof
|
|
92
|
+
export declare type AccountCreateRequest = z.infer<typeof AccountCreateRequestSchema>;
|
|
93
93
|
|
|
94
|
+
declare const AccountCreateRequestSchema: z.ZodObject<{
|
|
95
|
+
type: z.ZodString;
|
|
96
|
+
autoValidate: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
98
|
+
delinquencyPlanName: z.ZodOptional<z.ZodString>;
|
|
99
|
+
shortfallTolerancePlanName: z.ZodOptional<z.ZodString>;
|
|
100
|
+
autoRenewalPlanName: z.ZodOptional<z.ZodString>;
|
|
101
|
+
excessCreditPlanName: z.ZodOptional<z.ZodString>;
|
|
102
|
+
billingLevel: z.ZodOptional<z.ZodEnum<{
|
|
103
|
+
account: "account";
|
|
104
|
+
inherit: "inherit";
|
|
105
|
+
policy: "policy";
|
|
106
|
+
}>>;
|
|
107
|
+
region: z.ZodOptional<z.ZodString>;
|
|
108
|
+
invoiceDocument: z.ZodOptional<z.ZodString>;
|
|
109
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
110
|
+
contacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
111
|
+
contactLocator: z.ZodString;
|
|
112
|
+
roles: z.ZodArray<z.ZodString>;
|
|
113
|
+
}, z.core.$strip>>>;
|
|
114
|
+
invoicingPlanName: z.ZodOptional<z.ZodString>;
|
|
115
|
+
paymentExecutionRetryPlanName: z.ZodOptional<z.ZodString>;
|
|
116
|
+
preferences: z.ZodOptional<z.ZodObject<{
|
|
117
|
+
installmentPreferences: z.ZodOptional<z.ZodObject<{
|
|
118
|
+
generateLeadDays: z.ZodOptional<z.ZodInt>;
|
|
119
|
+
dueLeadDays: z.ZodOptional<z.ZodInt>;
|
|
120
|
+
maxInstallmentsPerTerm: z.ZodOptional<z.ZodInt>;
|
|
121
|
+
installmentPlanName: z.ZodOptional<z.ZodString>;
|
|
122
|
+
dayOfMonth: z.ZodOptional<z.ZodInt>;
|
|
123
|
+
anchorTime: z.ZodOptional<z.ZodISODateTime>;
|
|
124
|
+
autopayLeadDays: z.ZodOptional<z.ZodNumber>;
|
|
125
|
+
cadence: z.ZodOptional<z.ZodEnum<{
|
|
126
|
+
none: "none";
|
|
127
|
+
fullPay: "fullPay";
|
|
128
|
+
weekly: "weekly";
|
|
129
|
+
everyOtherWeek: "everyOtherWeek";
|
|
130
|
+
monthly: "monthly";
|
|
131
|
+
quarterly: "quarterly";
|
|
132
|
+
semiannually: "semiannually";
|
|
133
|
+
annually: "annually";
|
|
134
|
+
thirtyDays: "thirtyDays";
|
|
135
|
+
everyNDays: "everyNDays";
|
|
136
|
+
}>>;
|
|
137
|
+
anchorMode: z.ZodOptional<z.ZodEnum<{
|
|
138
|
+
generateDay: "generateDay";
|
|
139
|
+
termStartDay: "termStartDay";
|
|
140
|
+
dueDay: "dueDay";
|
|
141
|
+
}>>;
|
|
142
|
+
anchorType: z.ZodOptional<z.ZodEnum<{
|
|
143
|
+
none: "none";
|
|
144
|
+
dayOfMonth: "dayOfMonth";
|
|
145
|
+
anchorTime: "anchorTime";
|
|
146
|
+
dayOfWeek: "dayOfWeek";
|
|
147
|
+
weekOfMonth: "weekOfMonth";
|
|
148
|
+
}>>;
|
|
149
|
+
dayOfWeek: z.ZodOptional<z.ZodEnum<{
|
|
150
|
+
monday: "monday";
|
|
151
|
+
tuesday: "tuesday";
|
|
152
|
+
wednesday: "wednesday";
|
|
153
|
+
thursday: "thursday";
|
|
154
|
+
friday: "friday";
|
|
155
|
+
saturday: "saturday";
|
|
156
|
+
sunday: "sunday";
|
|
157
|
+
}>>;
|
|
158
|
+
weekOfMonth: z.ZodOptional<z.ZodEnum<{
|
|
159
|
+
none: "none";
|
|
160
|
+
first: "first";
|
|
161
|
+
second: "second";
|
|
162
|
+
third: "third";
|
|
163
|
+
fourth: "fourth";
|
|
164
|
+
fifth: "fifth";
|
|
165
|
+
}>>;
|
|
166
|
+
installmentWeights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
167
|
+
}, z.core.$strip>>;
|
|
168
|
+
billingPreferences: z.ZodOptional<z.ZodObject<{
|
|
169
|
+
billingPlanName: z.ZodOptional<z.ZodString>;
|
|
170
|
+
billingLevel: z.ZodEnum<{
|
|
171
|
+
account: "account";
|
|
172
|
+
inherit: "inherit";
|
|
173
|
+
policy: "policy";
|
|
174
|
+
}>;
|
|
175
|
+
}, z.core.$strip>>;
|
|
176
|
+
}, z.core.$strip>>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
|
|
179
|
+
/** @deprecated Use AccountCreateRequestSchema instead */
|
|
94
180
|
export declare const accountCreateSchema: z.ZodObject<{
|
|
95
181
|
type: z.ZodOptional<z.ZodString>;
|
|
96
182
|
autoValidate: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -104,6 +190,7 @@ export declare const accountCreateSchema: z.ZodObject<{
|
|
|
104
190
|
policy: "policy";
|
|
105
191
|
}>>;
|
|
106
192
|
invoiceDocument: z.ZodOptional<z.ZodString>;
|
|
193
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
107
194
|
preferences: z.ZodOptional<z.ZodObject<{
|
|
108
195
|
installmentPreferences: z.ZodOptional<z.ZodObject<{
|
|
109
196
|
generateLeadDays: z.ZodOptional<z.ZodInt>;
|
|
@@ -306,8 +393,90 @@ export declare const accountStateEnumSchema: z.ZodEnum<{
|
|
|
306
393
|
discarded: "discarded";
|
|
307
394
|
}>;
|
|
308
395
|
|
|
309
|
-
export declare type AccountUpdateRequest = z.infer<typeof
|
|
396
|
+
export declare type AccountUpdateRequest = z.infer<typeof AccountUpdateRequestSchema>;
|
|
310
397
|
|
|
398
|
+
declare const AccountUpdateRequestSchema: z.ZodObject<{
|
|
399
|
+
type: z.ZodOptional<z.ZodString>;
|
|
400
|
+
delinquencyPlanName: z.ZodOptional<z.ZodString>;
|
|
401
|
+
shortfallTolerancePlanName: z.ZodOptional<z.ZodString>;
|
|
402
|
+
autoRenewalPlanName: z.ZodOptional<z.ZodString>;
|
|
403
|
+
excessCreditPlanName: z.ZodOptional<z.ZodString>;
|
|
404
|
+
setData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
405
|
+
removeData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
406
|
+
billingLevel: z.ZodOptional<z.ZodEnum<{
|
|
407
|
+
account: "account";
|
|
408
|
+
inherit: "inherit";
|
|
409
|
+
policy: "policy";
|
|
410
|
+
}>>;
|
|
411
|
+
invoiceDocument: z.ZodOptional<z.ZodString>;
|
|
412
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
413
|
+
invoicingPlanName: z.ZodOptional<z.ZodString>;
|
|
414
|
+
paymentExecutionRetryPlanName: z.ZodOptional<z.ZodString>;
|
|
415
|
+
autoValidate: z.ZodOptional<z.ZodBoolean>;
|
|
416
|
+
preferences: z.ZodOptional<z.ZodObject<{
|
|
417
|
+
installmentPreferences: z.ZodOptional<z.ZodObject<{
|
|
418
|
+
generateLeadDays: z.ZodOptional<z.ZodInt>;
|
|
419
|
+
dueLeadDays: z.ZodOptional<z.ZodInt>;
|
|
420
|
+
maxInstallmentsPerTerm: z.ZodOptional<z.ZodInt>;
|
|
421
|
+
installmentPlanName: z.ZodOptional<z.ZodString>;
|
|
422
|
+
dayOfMonth: z.ZodOptional<z.ZodInt>;
|
|
423
|
+
anchorTime: z.ZodOptional<z.ZodISODateTime>;
|
|
424
|
+
autopayLeadDays: z.ZodOptional<z.ZodNumber>;
|
|
425
|
+
cadence: z.ZodOptional<z.ZodEnum<{
|
|
426
|
+
none: "none";
|
|
427
|
+
fullPay: "fullPay";
|
|
428
|
+
weekly: "weekly";
|
|
429
|
+
everyOtherWeek: "everyOtherWeek";
|
|
430
|
+
monthly: "monthly";
|
|
431
|
+
quarterly: "quarterly";
|
|
432
|
+
semiannually: "semiannually";
|
|
433
|
+
annually: "annually";
|
|
434
|
+
thirtyDays: "thirtyDays";
|
|
435
|
+
everyNDays: "everyNDays";
|
|
436
|
+
}>>;
|
|
437
|
+
anchorMode: z.ZodOptional<z.ZodEnum<{
|
|
438
|
+
generateDay: "generateDay";
|
|
439
|
+
termStartDay: "termStartDay";
|
|
440
|
+
dueDay: "dueDay";
|
|
441
|
+
}>>;
|
|
442
|
+
anchorType: z.ZodOptional<z.ZodEnum<{
|
|
443
|
+
none: "none";
|
|
444
|
+
dayOfMonth: "dayOfMonth";
|
|
445
|
+
anchorTime: "anchorTime";
|
|
446
|
+
dayOfWeek: "dayOfWeek";
|
|
447
|
+
weekOfMonth: "weekOfMonth";
|
|
448
|
+
}>>;
|
|
449
|
+
dayOfWeek: z.ZodOptional<z.ZodEnum<{
|
|
450
|
+
monday: "monday";
|
|
451
|
+
tuesday: "tuesday";
|
|
452
|
+
wednesday: "wednesday";
|
|
453
|
+
thursday: "thursday";
|
|
454
|
+
friday: "friday";
|
|
455
|
+
saturday: "saturday";
|
|
456
|
+
sunday: "sunday";
|
|
457
|
+
}>>;
|
|
458
|
+
weekOfMonth: z.ZodOptional<z.ZodEnum<{
|
|
459
|
+
none: "none";
|
|
460
|
+
first: "first";
|
|
461
|
+
second: "second";
|
|
462
|
+
third: "third";
|
|
463
|
+
fourth: "fourth";
|
|
464
|
+
fifth: "fifth";
|
|
465
|
+
}>>;
|
|
466
|
+
installmentWeights: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
467
|
+
}, z.core.$strip>>;
|
|
468
|
+
billingPreferences: z.ZodOptional<z.ZodObject<{
|
|
469
|
+
billingPlanName: z.ZodOptional<z.ZodString>;
|
|
470
|
+
billingLevel: z.ZodEnum<{
|
|
471
|
+
account: "account";
|
|
472
|
+
inherit: "inherit";
|
|
473
|
+
policy: "policy";
|
|
474
|
+
}>;
|
|
475
|
+
}, z.core.$strip>>;
|
|
476
|
+
}, z.core.$strip>>;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
|
|
479
|
+
/** @deprecated Use AccountUpdateRequestSchema instead */
|
|
311
480
|
export declare const accountUpdateSchema: z.ZodObject<{
|
|
312
481
|
type: z.ZodOptional<z.ZodString>;
|
|
313
482
|
autoValidate: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -321,6 +490,7 @@ export declare const accountUpdateSchema: z.ZodObject<{
|
|
|
321
490
|
policy: "policy";
|
|
322
491
|
}>>;
|
|
323
492
|
invoiceDocument: z.ZodOptional<z.ZodString>;
|
|
493
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
324
494
|
preferences: z.ZodOptional<z.ZodObject<{
|
|
325
495
|
installmentPreferences: z.ZodOptional<z.ZodObject<{
|
|
326
496
|
generateLeadDays: z.ZodOptional<z.ZodInt>;
|
|
@@ -586,6 +756,8 @@ export declare const AttachDocumentQuerySchema: z.ZodObject<{
|
|
|
586
756
|
csv: "csv";
|
|
587
757
|
txt: "txt";
|
|
588
758
|
zip: "zip";
|
|
759
|
+
eml: "eml";
|
|
760
|
+
msg: "msg";
|
|
589
761
|
}>;
|
|
590
762
|
metadata: z.ZodOptional<z.ZodString>;
|
|
591
763
|
name: z.ZodString;
|
|
@@ -609,10 +781,12 @@ export declare const AttachDocumentRequestBodySchema: z.ZodObject<{
|
|
|
609
781
|
document: z.ZodObject<{
|
|
610
782
|
mimetype: z.ZodEnum<{
|
|
611
783
|
"application/octet-stream": MimeType_2.applicationOctetStream;
|
|
784
|
+
"application/vnd.ms-outlook": MimeType_2.applicationMsOutlook;
|
|
612
785
|
"application/pdf": MimeType_2.applicationPdf;
|
|
613
786
|
"application/zip": MimeType_2.applicationZip;
|
|
614
787
|
"application/x-zip-compressed": MimeType_2.applicationZipWindows;
|
|
615
788
|
"image/jpeg": MimeType_2.imageJpg;
|
|
789
|
+
"message/rfc822": MimeType_2.messageRfc822;
|
|
616
790
|
"text/csv": MimeType_2.textCsv;
|
|
617
791
|
"text/html": MimeType_2.textHtml;
|
|
618
792
|
"text/plain": MimeType_2.text;
|
|
@@ -642,6 +816,8 @@ export declare const AttachDocumentRequestParamsSchema: z.ZodObject<{
|
|
|
642
816
|
csv: "csv";
|
|
643
817
|
txt: "txt";
|
|
644
818
|
zip: "zip";
|
|
819
|
+
eml: "eml";
|
|
820
|
+
msg: "msg";
|
|
645
821
|
}>;
|
|
646
822
|
metadata: z.ZodOptional<z.ZodString>;
|
|
647
823
|
name: z.ZodString;
|
|
@@ -4788,6 +4964,8 @@ export declare const DocumentFormatEnumSchema: z.ZodEnum<{
|
|
|
4788
4964
|
csv: "csv";
|
|
4789
4965
|
txt: "txt";
|
|
4790
4966
|
zip: "zip";
|
|
4967
|
+
eml: "eml";
|
|
4968
|
+
msg: "msg";
|
|
4791
4969
|
}>;
|
|
4792
4970
|
|
|
4793
4971
|
export declare type DocumentId = z.infer<typeof DocumentIdSchema>;
|
|
@@ -4842,6 +5020,8 @@ export declare const DocumentInstanceResponseSchema: z.ZodObject<{
|
|
|
4842
5020
|
csv: "csv";
|
|
4843
5021
|
txt: "txt";
|
|
4844
5022
|
zip: "zip";
|
|
5023
|
+
eml: "eml";
|
|
5024
|
+
msg: "msg";
|
|
4845
5025
|
}>>;
|
|
4846
5026
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4847
5027
|
createdAt: z.ZodISODateTime;
|
|
@@ -4933,6 +5113,8 @@ export declare const DocumentInstanceSchema: z.ZodObject<{
|
|
|
4933
5113
|
csv: "csv";
|
|
4934
5114
|
txt: "txt";
|
|
4935
5115
|
zip: "zip";
|
|
5116
|
+
eml: "eml";
|
|
5117
|
+
msg: "msg";
|
|
4936
5118
|
}>>;
|
|
4937
5119
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4938
5120
|
createdAt: z.ZodISODateTime;
|
|
@@ -5000,6 +5182,8 @@ export declare const DocumentListResponseSchema: z.ZodObject<{
|
|
|
5000
5182
|
csv: "csv";
|
|
5001
5183
|
txt: "txt";
|
|
5002
5184
|
zip: "zip";
|
|
5185
|
+
eml: "eml";
|
|
5186
|
+
msg: "msg";
|
|
5003
5187
|
}>>;
|
|
5004
5188
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5005
5189
|
createdAt: z.ZodISODateTime;
|
|
@@ -5242,6 +5426,11 @@ export declare const DROPZONE_3GP_ACCEPTED_FILE_TYPES: {
|
|
|
5242
5426
|
readonly 'audio/3gpp': readonly [".3gp"];
|
|
5243
5427
|
};
|
|
5244
5428
|
|
|
5429
|
+
export declare const DROPZONE_EML_ACCEPTED_FILE_TYPES: {
|
|
5430
|
+
readonly 'message/rfc822': readonly [".eml"];
|
|
5431
|
+
readonly 'application/octet-stream': readonly [".eml"];
|
|
5432
|
+
};
|
|
5433
|
+
|
|
5245
5434
|
export declare const DROPZONE_GZIP_ACCEPTED_FILE_TYPES: {
|
|
5246
5435
|
readonly 'application/gzip': readonly [".gz"];
|
|
5247
5436
|
readonly 'application/x-gzip.': readonly [".gz"];
|
|
@@ -5252,6 +5441,11 @@ export declare const DROPZONE_MIDI_ACCEPTED_FILE_TYPES: {
|
|
|
5252
5441
|
readonly 'audio/x-midi': readonly [".midi", ".mid"];
|
|
5253
5442
|
};
|
|
5254
5443
|
|
|
5444
|
+
export declare const DROPZONE_MSG_ACCEPTED_FILE_TYPES: {
|
|
5445
|
+
readonly 'application/vnd.ms-outlook': readonly [".msg"];
|
|
5446
|
+
readonly 'application/octet-stream': readonly [".msg"];
|
|
5447
|
+
};
|
|
5448
|
+
|
|
5255
5449
|
export declare const DROPZONE_XML_ACCEPTED_FILE_TYPES: {
|
|
5256
5450
|
'text/xml': string[];
|
|
5257
5451
|
'application/xml': string[];
|
|
@@ -7381,6 +7575,7 @@ declare const enum MimeType_2 {
|
|
|
7381
7575
|
applicationJson = "application/json",
|
|
7382
7576
|
applicationOctetStream = "application/octet-stream",
|
|
7383
7577
|
applicationMsWord = "application/msword",
|
|
7578
|
+
applicationMsOutlook = "application/vnd.ms-outlook",
|
|
7384
7579
|
applicationDocx = "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
7385
7580
|
applicationPdf = "application/pdf",
|
|
7386
7581
|
applicationZip = "application/zip",
|
|
@@ -7391,6 +7586,7 @@ declare const enum MimeType_2 {
|
|
|
7391
7586
|
imageSvg = "image/svg+xml",
|
|
7392
7587
|
javaSource = "text/x-java-source",
|
|
7393
7588
|
multipartFormData = "multipart/form-data",
|
|
7589
|
+
messageRfc822 = "message/rfc822",
|
|
7394
7590
|
textCsv = "text/csv",
|
|
7395
7591
|
textHtml = "text/html",
|
|
7396
7592
|
text = "text/plain",
|
|
@@ -7407,6 +7603,7 @@ export declare const MimeTypeEnumSchema: z.ZodEnum<{
|
|
|
7407
7603
|
"application/json": "application/json";
|
|
7408
7604
|
"application/octet-stream": "application/octet-stream";
|
|
7409
7605
|
"application/msword": "application/msword";
|
|
7606
|
+
"application/vnd.ms-outlook": "application/vnd.ms-outlook";
|
|
7410
7607
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
7411
7608
|
"application/pdf": "application/pdf";
|
|
7412
7609
|
"application/zip": "application/zip";
|
|
@@ -7418,6 +7615,7 @@ export declare const MimeTypeEnumSchema: z.ZodEnum<{
|
|
|
7418
7615
|
"image/webp": "image/webp";
|
|
7419
7616
|
"text/x-java-source": "text/x-java-source";
|
|
7420
7617
|
"multipart/form-data": "multipart/form-data";
|
|
7618
|
+
"message/rfc822": "message/rfc822";
|
|
7421
7619
|
"text/csv": "text/csv";
|
|
7422
7620
|
"text/html": "text/html";
|
|
7423
7621
|
"text/plain": "text/plain";
|