@better-giving/donation 3.0.34 → 5.0.0
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/schema.d.mts +18 -18
- package/package.json +5 -5
package/dist/schema.d.mts
CHANGED
|
@@ -8,10 +8,10 @@ export type TDonationSource = v.InferOutput<typeof donation_source>;
|
|
|
8
8
|
export declare const donor_titles: readonly ["Mr", "Mrs", "Ms", "Mx", ""];
|
|
9
9
|
export declare const donor_title: v.PicklistSchema<readonly ["Mr", "Mrs", "Ms", "Mx", ""], undefined>;
|
|
10
10
|
export type TDonorTitle = v.InferOutput<typeof donor_title>;
|
|
11
|
-
export declare const allocation: v.SchemaWithPipe<[v.ObjectSchema<{
|
|
12
|
-
readonly liq: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
13
|
-
readonly lock: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
14
|
-
readonly cash: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
11
|
+
export declare const allocation: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
12
|
+
readonly liq: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
13
|
+
readonly lock: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
14
|
+
readonly cash: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 100, undefined>]>;
|
|
15
15
|
}, undefined>, v.CheckAction<{
|
|
16
16
|
liq: number;
|
|
17
17
|
lock: number;
|
|
@@ -19,32 +19,32 @@ export declare const allocation: v.SchemaWithPipe<[v.ObjectSchema<{
|
|
|
19
19
|
}, "Allocation must sum to 100%">]>;
|
|
20
20
|
export type IAllocation = v.InferOutput<typeof allocation>;
|
|
21
21
|
export declare const page_opts: v.ObjectSchema<{
|
|
22
|
-
readonly limit: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<"required">, v.TrimAction]>, v.TransformAction<string, number>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>]>,
|
|
23
|
-
readonly next: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.Base64Action<string, undefined>]>,
|
|
22
|
+
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"required">, v.TrimAction]>, v.TransformAction<string, number>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>]>, undefined>;
|
|
23
|
+
readonly next: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>, undefined>;
|
|
24
24
|
}, undefined>;
|
|
25
25
|
export interface IPageOpts extends v.InferOutput<typeof page_opts> {
|
|
26
26
|
}
|
|
27
27
|
declare const donations_search_raw: v.ObjectSchema<{
|
|
28
|
-
readonly date_start: v.OptionalSchema<v.LazySchema<v.StringSchema<undefined> | v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.StringSchema<undefined>, v.TransformAction<string, Date>, v.DateSchema<"invalid date">, v.MaxValueAction<Date, Date, "can't be later than today">, v.TransformAction<Date, string>]>>,
|
|
29
|
-
readonly date_end: v.OptionalSchema<v.LazySchema<v.StringSchema<undefined> | v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.StringSchema<undefined>, v.TransformAction<string, Date>, v.DateSchema<"invalid date">, v.MaxValueAction<Date, Date, "can't be later than today">, v.TransformAction<Date, string>]>>,
|
|
30
|
-
readonly limit: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<"required">, v.TrimAction]>, v.TransformAction<string, number>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>]>,
|
|
31
|
-
readonly next: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.Base64Action<string, undefined>]>,
|
|
28
|
+
readonly date_start: v.OptionalSchema<v.LazySchema<v.StringSchema<undefined> | v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, Date>, v.DateSchema<"invalid date">, v.MaxValueAction<Date, Date, "can't be later than today">, v.TransformAction<Date, string>]>>, undefined>;
|
|
29
|
+
readonly date_end: v.OptionalSchema<v.LazySchema<v.StringSchema<undefined> | v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, Date>, v.DateSchema<"invalid date">, v.MaxValueAction<Date, Date, "can't be later than today">, v.TransformAction<Date, string>]>>, undefined>;
|
|
30
|
+
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"required">, v.TrimAction]>, v.TransformAction<string, number>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>]>, undefined>;
|
|
31
|
+
readonly next: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>, undefined>;
|
|
32
32
|
}, undefined>;
|
|
33
|
-
export declare const donations_search: v.SchemaWithPipe<[v.ObjectSchema<{
|
|
34
|
-
readonly date_start: v.OptionalSchema<v.LazySchema<v.StringSchema<undefined> | v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.StringSchema<undefined>, v.TransformAction<string, Date>, v.DateSchema<"invalid date">, v.MaxValueAction<Date, Date, "can't be later than today">, v.TransformAction<Date, string>]>>,
|
|
35
|
-
readonly date_end: v.OptionalSchema<v.LazySchema<v.StringSchema<undefined> | v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<[v.StringSchema<undefined>, v.TransformAction<string, Date>, v.DateSchema<"invalid date">, v.MaxValueAction<Date, Date, "can't be later than today">, v.TransformAction<Date, string>]>>,
|
|
36
|
-
readonly limit: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<"required">, v.TrimAction]>, v.TransformAction<string, number>, v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>]>,
|
|
37
|
-
readonly next: v.OptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.Base64Action<string, undefined>]>,
|
|
33
|
+
export declare const donations_search: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
34
|
+
readonly date_start: v.OptionalSchema<v.LazySchema<v.StringSchema<undefined> | v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, Date>, v.DateSchema<"invalid date">, v.MaxValueAction<Date, Date, "can't be later than today">, v.TransformAction<Date, string>]>>, undefined>;
|
|
35
|
+
readonly date_end: v.OptionalSchema<v.LazySchema<v.StringSchema<undefined> | v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, "required">]> | v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<string, Date>, v.DateSchema<"invalid date">, v.MaxValueAction<Date, Date, "can't be later than today">, v.TransformAction<Date, string>]>>, undefined>;
|
|
36
|
+
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<"required">, v.TrimAction]>, v.TransformAction<string, number>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>]>, undefined>;
|
|
37
|
+
readonly next: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.Base64Action<string, undefined>]>, undefined>;
|
|
38
38
|
}, undefined>, v.BaseValidation<{
|
|
39
|
-
limit?: number | undefined;
|
|
40
|
-
next?: string | undefined;
|
|
41
39
|
date_start?: string | undefined;
|
|
42
40
|
date_end?: string | undefined;
|
|
43
|
-
}, {
|
|
44
41
|
limit?: number | undefined;
|
|
45
42
|
next?: string | undefined;
|
|
43
|
+
}, {
|
|
46
44
|
date_start?: string | undefined;
|
|
47
45
|
date_end?: string | undefined;
|
|
46
|
+
limit?: number | undefined;
|
|
47
|
+
next?: string | undefined;
|
|
48
48
|
}, v.PartialCheckIssue<{
|
|
49
49
|
date_start?: string | undefined;
|
|
50
50
|
date_end?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-giving/donation",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@better-giving/config": "1.1.2"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
8
|
"@better-giving/types": "1.1.8",
|
|
9
|
-
"@better-giving/db": "2.0
|
|
10
|
-
"@better-giving/schemas": "2.0
|
|
11
|
-
"@aws-sdk/lib-dynamodb": "3.
|
|
12
|
-
"valibot": "
|
|
9
|
+
"@better-giving/db": "2.1.0",
|
|
10
|
+
"@better-giving/schemas": "2.2.0",
|
|
11
|
+
"@aws-sdk/lib-dynamodb": "3.957.0",
|
|
12
|
+
"valibot": "1.2.0",
|
|
13
13
|
"date-fns": "4.1.0"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|