@socotra/ec-react-schemas 2.6.2-next.0 → 2.6.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 +88 -88
- package/dist/index.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -794,7 +794,7 @@ export declare type CurrencyType = z.infer<typeof currencyEnumSchema>;
|
|
|
794
794
|
export declare type DataModel = z.infer<typeof dataModelSchema>;
|
|
795
795
|
|
|
796
796
|
export declare const dataModelSchema: z.ZodObject<{
|
|
797
|
-
dataTypes: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
797
|
+
dataTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
798
798
|
displayName: z.ZodOptional<z.ZodString>;
|
|
799
799
|
contents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
800
800
|
abstract: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -911,7 +911,7 @@ export declare const dataModelSchema: z.ZodObject<{
|
|
|
911
911
|
contents?: string[] | undefined;
|
|
912
912
|
coverageTerms?: string[] | undefined;
|
|
913
913
|
charges?: string[] | undefined;
|
|
914
|
-
}
|
|
914
|
+
}>>>;
|
|
915
915
|
accounts: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
916
916
|
displayName: z.ZodOptional<z.ZodString>;
|
|
917
917
|
abstract: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1278,7 +1278,7 @@ export declare const dataModelSchema: z.ZodObject<{
|
|
|
1278
1278
|
tag?: string[] | undefined;
|
|
1279
1279
|
}> | undefined;
|
|
1280
1280
|
}>>;
|
|
1281
|
-
coverageTerms: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1281
|
+
coverageTerms: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1282
1282
|
type: z.ZodString;
|
|
1283
1283
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1284
1284
|
options: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -1310,7 +1310,7 @@ export declare const dataModelSchema: z.ZodObject<{
|
|
|
1310
1310
|
}>;
|
|
1311
1311
|
type: string;
|
|
1312
1312
|
displayName?: string | undefined;
|
|
1313
|
-
}
|
|
1313
|
+
}>>>;
|
|
1314
1314
|
delinquencyPlans: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1315
1315
|
displayName: z.ZodOptional<z.ZodString>;
|
|
1316
1316
|
gracePeriodDays: z.ZodNumber;
|
|
@@ -1355,7 +1355,7 @@ export declare const dataModelSchema: z.ZodObject<{
|
|
|
1355
1355
|
renewalIssueLeadDays?: number | undefined;
|
|
1356
1356
|
renewalTransactionType?: string | undefined;
|
|
1357
1357
|
}>>;
|
|
1358
|
-
transactionTypes: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1358
|
+
transactionTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1359
1359
|
category: z.ZodEnum<["issuance", "change", "renewal", "cancellation", "reinstatement", "reversal", "aggregate"]>;
|
|
1360
1360
|
costBearing: z.ZodBoolean;
|
|
1361
1361
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1364,7 +1364,7 @@ export declare const dataModelSchema: z.ZodObject<{
|
|
|
1364
1364
|
}, {
|
|
1365
1365
|
category: "issuance" | "change" | "renewal" | "cancellation" | "reinstatement" | "reversal" | "aggregate";
|
|
1366
1366
|
costBearing: boolean;
|
|
1367
|
-
}
|
|
1367
|
+
}>>>;
|
|
1368
1368
|
reversalTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1369
1369
|
creditType: z.ZodOptional<z.ZodEnum<["any", "creditDistribution", "payment"]>>;
|
|
1370
1370
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1931,43 +1931,6 @@ export declare const dataModelSchema: z.ZodObject<{
|
|
|
1931
1931
|
shortfallTolerancePlans: z.ZodAny;
|
|
1932
1932
|
excessCreditPlans: z.ZodAny;
|
|
1933
1933
|
}, "strip", z.ZodTypeAny, {
|
|
1934
|
-
coverageTerms: Record<string, {
|
|
1935
|
-
options: Record<string, {
|
|
1936
|
-
value?: number | undefined;
|
|
1937
|
-
displayName?: string | undefined;
|
|
1938
|
-
tag?: string | undefined;
|
|
1939
|
-
}>;
|
|
1940
|
-
type: string;
|
|
1941
|
-
displayName?: string | undefined;
|
|
1942
|
-
}>;
|
|
1943
|
-
dataTypes: Record<string, {
|
|
1944
|
-
displayName?: string | undefined;
|
|
1945
|
-
abstract?: boolean | undefined;
|
|
1946
|
-
extend?: string | undefined;
|
|
1947
|
-
data?: Record<string, {
|
|
1948
|
-
options?: string[] | undefined;
|
|
1949
|
-
type?: string | undefined;
|
|
1950
|
-
displayName?: string | undefined;
|
|
1951
|
-
defaultValue?: string | undefined;
|
|
1952
|
-
minLength?: number | undefined;
|
|
1953
|
-
maxLength?: number | undefined;
|
|
1954
|
-
regex?: string | undefined;
|
|
1955
|
-
min?: string | undefined;
|
|
1956
|
-
multiline?: boolean | undefined;
|
|
1957
|
-
max?: string | undefined;
|
|
1958
|
-
overrides?: string | undefined;
|
|
1959
|
-
scope?: string | undefined;
|
|
1960
|
-
inherited?: boolean | undefined;
|
|
1961
|
-
precision?: number | undefined;
|
|
1962
|
-
readOnly?: boolean | undefined;
|
|
1963
|
-
searchable?: boolean | undefined;
|
|
1964
|
-
tag?: string[] | undefined;
|
|
1965
|
-
}> | undefined;
|
|
1966
|
-
defaultSearchable?: boolean | undefined;
|
|
1967
|
-
contents?: string[] | undefined;
|
|
1968
|
-
coverageTerms?: string[] | undefined;
|
|
1969
|
-
charges?: string[] | undefined;
|
|
1970
|
-
}>;
|
|
1971
1934
|
accounts: Record<string, {
|
|
1972
1935
|
displayName?: string | undefined;
|
|
1973
1936
|
abstract?: boolean | undefined;
|
|
@@ -2071,11 +2034,16 @@ export declare const dataModelSchema: z.ZodObject<{
|
|
|
2071
2034
|
renewalIssueLeadDays?: number | undefined;
|
|
2072
2035
|
renewalTransactionType?: string | undefined;
|
|
2073
2036
|
}>;
|
|
2074
|
-
transactionTypes: Record<string, {
|
|
2075
|
-
category: "issuance" | "change" | "renewal" | "cancellation" | "reinstatement" | "reversal" | "aggregate";
|
|
2076
|
-
costBearing: boolean;
|
|
2077
|
-
}>;
|
|
2078
2037
|
defaultSearchable?: boolean | undefined;
|
|
2038
|
+
coverageTerms?: Record<string, {
|
|
2039
|
+
options: Record<string, {
|
|
2040
|
+
value?: number | undefined;
|
|
2041
|
+
displayName?: string | undefined;
|
|
2042
|
+
tag?: string | undefined;
|
|
2043
|
+
}>;
|
|
2044
|
+
type: string;
|
|
2045
|
+
displayName?: string | undefined;
|
|
2046
|
+
}> | undefined;
|
|
2079
2047
|
charges?: any;
|
|
2080
2048
|
defaultTimeZone?: string | undefined;
|
|
2081
2049
|
defaultCurrency?: string | undefined;
|
|
@@ -2090,6 +2058,38 @@ export declare const dataModelSchema: z.ZodObject<{
|
|
|
2090
2058
|
defaultBillingLevel?: string | undefined;
|
|
2091
2059
|
documents?: any;
|
|
2092
2060
|
tables?: any;
|
|
2061
|
+
dataTypes?: Record<string, {
|
|
2062
|
+
displayName?: string | undefined;
|
|
2063
|
+
abstract?: boolean | undefined;
|
|
2064
|
+
extend?: string | undefined;
|
|
2065
|
+
data?: Record<string, {
|
|
2066
|
+
options?: string[] | undefined;
|
|
2067
|
+
type?: string | undefined;
|
|
2068
|
+
displayName?: string | undefined;
|
|
2069
|
+
defaultValue?: string | undefined;
|
|
2070
|
+
minLength?: number | undefined;
|
|
2071
|
+
maxLength?: number | undefined;
|
|
2072
|
+
regex?: string | undefined;
|
|
2073
|
+
min?: string | undefined;
|
|
2074
|
+
multiline?: boolean | undefined;
|
|
2075
|
+
max?: string | undefined;
|
|
2076
|
+
overrides?: string | undefined;
|
|
2077
|
+
scope?: string | undefined;
|
|
2078
|
+
inherited?: boolean | undefined;
|
|
2079
|
+
precision?: number | undefined;
|
|
2080
|
+
readOnly?: boolean | undefined;
|
|
2081
|
+
searchable?: boolean | undefined;
|
|
2082
|
+
tag?: string[] | undefined;
|
|
2083
|
+
}> | undefined;
|
|
2084
|
+
defaultSearchable?: boolean | undefined;
|
|
2085
|
+
contents?: string[] | undefined;
|
|
2086
|
+
coverageTerms?: string[] | undefined;
|
|
2087
|
+
charges?: string[] | undefined;
|
|
2088
|
+
}> | undefined;
|
|
2089
|
+
transactionTypes?: Record<string, {
|
|
2090
|
+
category: "issuance" | "change" | "renewal" | "cancellation" | "reinstatement" | "reversal" | "aggregate";
|
|
2091
|
+
costBearing: boolean;
|
|
2092
|
+
}> | undefined;
|
|
2093
2093
|
reversalTypes?: Record<string, {
|
|
2094
2094
|
creditType?: "any" | "creditDistribution" | "payment" | undefined;
|
|
2095
2095
|
}> | undefined;
|
|
@@ -2231,43 +2231,6 @@ export declare const dataModelSchema: z.ZodObject<{
|
|
|
2231
2231
|
shortfallTolerancePlans?: any;
|
|
2232
2232
|
excessCreditPlans?: any;
|
|
2233
2233
|
}, {
|
|
2234
|
-
coverageTerms: Record<string, {
|
|
2235
|
-
options: Record<string, {
|
|
2236
|
-
value?: number | undefined;
|
|
2237
|
-
displayName?: string | undefined;
|
|
2238
|
-
tag?: string | undefined;
|
|
2239
|
-
}>;
|
|
2240
|
-
type: string;
|
|
2241
|
-
displayName?: string | undefined;
|
|
2242
|
-
}>;
|
|
2243
|
-
dataTypes: Record<string, {
|
|
2244
|
-
displayName?: string | undefined;
|
|
2245
|
-
abstract?: boolean | undefined;
|
|
2246
|
-
extend?: string | undefined;
|
|
2247
|
-
data?: Record<string, {
|
|
2248
|
-
options?: string[] | undefined;
|
|
2249
|
-
type?: string | undefined;
|
|
2250
|
-
displayName?: string | undefined;
|
|
2251
|
-
defaultValue?: string | undefined;
|
|
2252
|
-
minLength?: number | undefined;
|
|
2253
|
-
maxLength?: number | undefined;
|
|
2254
|
-
regex?: string | undefined;
|
|
2255
|
-
min?: string | undefined;
|
|
2256
|
-
multiline?: boolean | undefined;
|
|
2257
|
-
max?: string | undefined;
|
|
2258
|
-
overrides?: string | undefined;
|
|
2259
|
-
scope?: string | undefined;
|
|
2260
|
-
inherited?: boolean | undefined;
|
|
2261
|
-
precision?: number | undefined;
|
|
2262
|
-
readOnly?: boolean | undefined;
|
|
2263
|
-
searchable?: boolean | undefined;
|
|
2264
|
-
tag?: string[] | undefined;
|
|
2265
|
-
}> | undefined;
|
|
2266
|
-
defaultSearchable?: boolean | undefined;
|
|
2267
|
-
contents?: string[] | undefined;
|
|
2268
|
-
coverageTerms?: string[] | undefined;
|
|
2269
|
-
charges?: string[] | undefined;
|
|
2270
|
-
}>;
|
|
2271
2234
|
accounts: Record<string, {
|
|
2272
2235
|
displayName?: string | undefined;
|
|
2273
2236
|
abstract?: boolean | undefined;
|
|
@@ -2371,11 +2334,16 @@ export declare const dataModelSchema: z.ZodObject<{
|
|
|
2371
2334
|
renewalIssueLeadDays?: number | undefined;
|
|
2372
2335
|
renewalTransactionType?: string | undefined;
|
|
2373
2336
|
}>;
|
|
2374
|
-
transactionTypes: Record<string, {
|
|
2375
|
-
category: "issuance" | "change" | "renewal" | "cancellation" | "reinstatement" | "reversal" | "aggregate";
|
|
2376
|
-
costBearing: boolean;
|
|
2377
|
-
}>;
|
|
2378
2337
|
defaultSearchable?: boolean | undefined;
|
|
2338
|
+
coverageTerms?: Record<string, {
|
|
2339
|
+
options: Record<string, {
|
|
2340
|
+
value?: number | undefined;
|
|
2341
|
+
displayName?: string | undefined;
|
|
2342
|
+
tag?: string | undefined;
|
|
2343
|
+
}>;
|
|
2344
|
+
type: string;
|
|
2345
|
+
displayName?: string | undefined;
|
|
2346
|
+
}> | undefined;
|
|
2379
2347
|
charges?: any;
|
|
2380
2348
|
defaultTimeZone?: string | undefined;
|
|
2381
2349
|
defaultCurrency?: string | undefined;
|
|
@@ -2390,6 +2358,38 @@ export declare const dataModelSchema: z.ZodObject<{
|
|
|
2390
2358
|
defaultBillingLevel?: string | undefined;
|
|
2391
2359
|
documents?: any;
|
|
2392
2360
|
tables?: any;
|
|
2361
|
+
dataTypes?: Record<string, {
|
|
2362
|
+
displayName?: string | undefined;
|
|
2363
|
+
abstract?: boolean | undefined;
|
|
2364
|
+
extend?: string | undefined;
|
|
2365
|
+
data?: Record<string, {
|
|
2366
|
+
options?: string[] | undefined;
|
|
2367
|
+
type?: string | undefined;
|
|
2368
|
+
displayName?: string | undefined;
|
|
2369
|
+
defaultValue?: string | undefined;
|
|
2370
|
+
minLength?: number | undefined;
|
|
2371
|
+
maxLength?: number | undefined;
|
|
2372
|
+
regex?: string | undefined;
|
|
2373
|
+
min?: string | undefined;
|
|
2374
|
+
multiline?: boolean | undefined;
|
|
2375
|
+
max?: string | undefined;
|
|
2376
|
+
overrides?: string | undefined;
|
|
2377
|
+
scope?: string | undefined;
|
|
2378
|
+
inherited?: boolean | undefined;
|
|
2379
|
+
precision?: number | undefined;
|
|
2380
|
+
readOnly?: boolean | undefined;
|
|
2381
|
+
searchable?: boolean | undefined;
|
|
2382
|
+
tag?: string[] | undefined;
|
|
2383
|
+
}> | undefined;
|
|
2384
|
+
defaultSearchable?: boolean | undefined;
|
|
2385
|
+
contents?: string[] | undefined;
|
|
2386
|
+
coverageTerms?: string[] | undefined;
|
|
2387
|
+
charges?: string[] | undefined;
|
|
2388
|
+
}> | undefined;
|
|
2389
|
+
transactionTypes?: Record<string, {
|
|
2390
|
+
category: "issuance" | "change" | "renewal" | "cancellation" | "reinstatement" | "reversal" | "aggregate";
|
|
2391
|
+
costBearing: boolean;
|
|
2392
|
+
}> | undefined;
|
|
2393
2393
|
reversalTypes?: Record<string, {
|
|
2394
2394
|
creditType?: "any" | "creditDistribution" | "payment" | undefined;
|
|
2395
2395
|
}> | undefined;
|
package/dist/index.es.js
CHANGED
|
@@ -1003,13 +1003,13 @@ const o = a.string(), R = a.object({
|
|
|
1003
1003
|
costBearing: a.boolean()
|
|
1004
1004
|
}), ia = a.record(oa), _a = a.object({
|
|
1005
1005
|
// Root level
|
|
1006
|
-
dataTypes: n,
|
|
1006
|
+
dataTypes: n.optional(),
|
|
1007
1007
|
accounts: _,
|
|
1008
1008
|
products: $,
|
|
1009
|
-
coverageTerms: W,
|
|
1009
|
+
coverageTerms: W.optional(),
|
|
1010
1010
|
delinquencyPlans: J,
|
|
1011
1011
|
autoRenewalPlans: q,
|
|
1012
|
-
transactionTypes: ia,
|
|
1012
|
+
transactionTypes: ia.optional(),
|
|
1013
1013
|
reversalTypes: na.optional(),
|
|
1014
1014
|
dataAccessControl: a.any().optional(),
|
|
1015
1015
|
bootstrap: O.optional(),
|