@socotra/ec-react-schemas 2.34.1-next.1 → 2.35.0-next.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.d.ts +172 -2
- package/dist/index.es.js +2142 -2134
- 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>;
|