@better-giving/endowment 1.1.14 → 1.1.15
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 +16 -16
- package/dist/schema.mjs +1 -1
- package/package.json +1 -1
- package/src/schema.mts +1 -1
package/dist/schema.d.mts
CHANGED
|
@@ -107,7 +107,7 @@ export declare const endowment: v.ObjectSchema<{
|
|
|
107
107
|
readonly referral_id: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
108
108
|
readonly referrer: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
109
109
|
readonly referrer_expiry: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>, never>;
|
|
110
|
-
readonly w_form: v.OptionalSchema<v.
|
|
110
|
+
readonly w_form: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
111
111
|
}, undefined>;
|
|
112
112
|
export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
113
113
|
readonly id: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
@@ -167,7 +167,7 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
167
167
|
readonly referral_id: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
168
168
|
readonly referrer: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
169
169
|
readonly referrer_expiry: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>, never>;
|
|
170
|
-
readonly w_form: v.OptionalSchema<v.
|
|
170
|
+
readonly w_form: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
171
171
|
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
172
172
|
readonly entries: Omit<{
|
|
173
173
|
readonly id: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
@@ -227,13 +227,13 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
227
227
|
readonly referral_id: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
228
228
|
readonly referrer: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>;
|
|
229
229
|
readonly referrer_expiry: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>, never>;
|
|
230
|
-
readonly w_form: v.OptionalSchema<v.
|
|
230
|
+
readonly w_form: v.OptionalSchema<v.StringSchema<undefined>, never>;
|
|
231
231
|
}, "id" | "env" | "claimed" | "kyc_donors_only" | "fiscal_sponsored">;
|
|
232
232
|
_run(dataset: v.Dataset<unknown, never>, config: v.Config<v.StringIssue | v.RegexIssue<string> | v.NumberIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 0> | v.MaxValueIssue<number, 100> | v.ObjectIssue | v.CheckIssue<{
|
|
233
233
|
cash: number;
|
|
234
234
|
liq: number;
|
|
235
235
|
lock: number;
|
|
236
|
-
}> | v.
|
|
236
|
+
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.StartsWithIssue<string, "https://"> | v.MaxLengthIssue<string, 60> | v.PicklistIssue | v.MaxLengthIssue<string, 140> | v.ArrayIssue | v.NonEmptyIssue<string[]> | v.MinLengthIssue<(2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | v.MaxLengthIssue<string, 500> | v.BooleanIssue | v.MaxLengthIssue<{
|
|
237
237
|
value: string;
|
|
238
238
|
label: string;
|
|
239
239
|
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>>): v.Dataset<{
|
|
@@ -279,12 +279,12 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
279
279
|
referral_id?: string | undefined;
|
|
280
280
|
referrer?: string | undefined;
|
|
281
281
|
referrer_expiry?: string | undefined;
|
|
282
|
-
w_form?:
|
|
282
|
+
w_form?: string | undefined;
|
|
283
283
|
}, v.StringIssue | v.RegexIssue<string> | v.NumberIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 0> | v.MaxValueIssue<number, 100> | v.ObjectIssue | v.CheckIssue<{
|
|
284
284
|
cash: number;
|
|
285
285
|
liq: number;
|
|
286
286
|
lock: number;
|
|
287
|
-
}> | v.
|
|
287
|
+
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.StartsWithIssue<string, "https://"> | v.MaxLengthIssue<string, 60> | v.PicklistIssue | v.MaxLengthIssue<string, 140> | v.ArrayIssue | v.NonEmptyIssue<string[]> | v.MinLengthIssue<(2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | v.MaxLengthIssue<string, 500> | v.BooleanIssue | v.MaxLengthIssue<{
|
|
288
288
|
value: string;
|
|
289
289
|
label: string;
|
|
290
290
|
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>>;
|
|
@@ -332,7 +332,7 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
332
332
|
referral_id?: string | undefined;
|
|
333
333
|
referrer?: string | undefined;
|
|
334
334
|
referrer_expiry?: string | undefined;
|
|
335
|
-
w_form?:
|
|
335
|
+
w_form?: string | undefined;
|
|
336
336
|
};
|
|
337
337
|
readonly output: {
|
|
338
338
|
name: string;
|
|
@@ -377,13 +377,13 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
377
377
|
referral_id?: string | undefined;
|
|
378
378
|
referrer?: string | undefined;
|
|
379
379
|
referrer_expiry?: string | undefined;
|
|
380
|
-
w_form?:
|
|
380
|
+
w_form?: string | undefined;
|
|
381
381
|
};
|
|
382
382
|
readonly issue: v.StringIssue | v.RegexIssue<string> | v.NumberIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 0> | v.MaxValueIssue<number, 100> | v.ObjectIssue | v.CheckIssue<{
|
|
383
383
|
cash: number;
|
|
384
384
|
liq: number;
|
|
385
385
|
lock: number;
|
|
386
|
-
}> | v.
|
|
386
|
+
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.StartsWithIssue<string, "https://"> | v.MaxLengthIssue<string, 60> | v.PicklistIssue | v.MaxLengthIssue<string, 140> | v.ArrayIssue | v.NonEmptyIssue<string[]> | v.MinLengthIssue<(2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | v.MaxLengthIssue<string, 500> | v.BooleanIssue | v.MaxLengthIssue<{
|
|
387
387
|
value: string;
|
|
388
388
|
label: string;
|
|
389
389
|
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>;
|
|
@@ -428,7 +428,7 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
428
428
|
readonly referral_id: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>, never>;
|
|
429
429
|
readonly referrer: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">]>, never>, never>;
|
|
430
430
|
readonly referrer_expiry: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.IsoTimestampAction<string, undefined>]>, never>, never>;
|
|
431
|
-
readonly w_form: v.OptionalSchema<v.OptionalSchema<v.
|
|
431
|
+
readonly w_form: v.OptionalSchema<v.OptionalSchema<v.StringSchema<undefined>, never>, never>;
|
|
432
432
|
readonly registration_number: v.OptionalSchema<v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction]>, v.NonEmptyAction<string, "required">, v.RegexAction<string, "must only contain letters and numbers">]>, never>;
|
|
433
433
|
readonly endow_designation: v.OptionalSchema<v.PicklistSchema<readonly ["Charity", "Religious Organization", "University", "Hospital", "Other"], undefined>, never>;
|
|
434
434
|
readonly social_media_urls: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -445,7 +445,7 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
445
445
|
cash: number;
|
|
446
446
|
liq: number;
|
|
447
447
|
lock: number;
|
|
448
|
-
}> | v.
|
|
448
|
+
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.StartsWithIssue<string, "https://"> | v.MaxLengthIssue<string, 60> | v.PicklistIssue | v.MaxLengthIssue<string, 140> | v.ArrayIssue | v.NonEmptyIssue<string[]> | v.MinLengthIssue<(2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | v.MaxLengthIssue<string, 500> | v.BooleanIssue | v.MaxLengthIssue<{
|
|
449
449
|
value: string;
|
|
450
450
|
label: string;
|
|
451
451
|
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>>): v.Dataset<{
|
|
@@ -480,7 +480,7 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
480
480
|
referral_id?: string | undefined;
|
|
481
481
|
referrer?: string | undefined;
|
|
482
482
|
referrer_expiry?: string | undefined;
|
|
483
|
-
w_form?:
|
|
483
|
+
w_form?: string | undefined;
|
|
484
484
|
registration_number?: string | undefined;
|
|
485
485
|
endow_designation?: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other" | undefined;
|
|
486
486
|
social_media_urls?: {
|
|
@@ -496,7 +496,7 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
496
496
|
cash: number;
|
|
497
497
|
liq: number;
|
|
498
498
|
lock: number;
|
|
499
|
-
}> | v.
|
|
499
|
+
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.StartsWithIssue<string, "https://"> | v.MaxLengthIssue<string, 60> | v.PicklistIssue | v.MaxLengthIssue<string, 140> | v.ArrayIssue | v.NonEmptyIssue<string[]> | v.MinLengthIssue<(2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | v.MaxLengthIssue<string, 500> | v.BooleanIssue | v.MaxLengthIssue<{
|
|
500
500
|
value: string;
|
|
501
501
|
label: string;
|
|
502
502
|
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>>;
|
|
@@ -533,7 +533,7 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
533
533
|
referral_id?: string | undefined;
|
|
534
534
|
referrer?: string | undefined;
|
|
535
535
|
referrer_expiry?: string | undefined;
|
|
536
|
-
w_form?:
|
|
536
|
+
w_form?: string | undefined;
|
|
537
537
|
registration_number?: string | undefined;
|
|
538
538
|
endow_designation?: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other" | undefined;
|
|
539
539
|
social_media_urls?: {
|
|
@@ -578,7 +578,7 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
578
578
|
referral_id?: string | undefined;
|
|
579
579
|
referrer?: string | undefined;
|
|
580
580
|
referrer_expiry?: string | undefined;
|
|
581
|
-
w_form?:
|
|
581
|
+
w_form?: string | undefined;
|
|
582
582
|
registration_number?: string | undefined;
|
|
583
583
|
endow_designation?: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other" | undefined;
|
|
584
584
|
social_media_urls?: {
|
|
@@ -595,7 +595,7 @@ export declare const endowUpdate: Omit<Omit<v.ObjectSchema<{
|
|
|
595
595
|
cash: number;
|
|
596
596
|
liq: number;
|
|
597
597
|
lock: number;
|
|
598
|
-
}> | v.
|
|
598
|
+
}> | v.MaxLengthIssue<string, 30> | v.ExcludesIssue<string, ".."> | v.CustomIssue | v.NonEmptyIssue<string> | v.UrlIssue<string> | v.StartsWithIssue<string, "https://"> | v.MaxLengthIssue<string, 60> | v.PicklistIssue | v.MaxLengthIssue<string, 140> | v.ArrayIssue | v.NonEmptyIssue<string[]> | v.MinLengthIssue<(2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17)[], 1> | v.MaxLengthIssue<string, 500> | v.BooleanIssue | v.MaxLengthIssue<{
|
|
599
599
|
value: string;
|
|
600
600
|
label: string;
|
|
601
601
|
}[], 4> | v.LiteralIssue | v.UnionIssue<v.StringIssue | v.NumberIssue | v.MinValueIssue<number, 0> | v.LiteralIssue> | v.IsoTimestampIssue<string>;
|
package/dist/schema.mjs
CHANGED
|
@@ -93,7 +93,7 @@ export const endowment = v.object({
|
|
|
93
93
|
referral_id: v.optional(v.pipe(str, v.nonEmpty("required"))),
|
|
94
94
|
referrer: v.optional(v.pipe(str, v.nonEmpty("required"))),
|
|
95
95
|
referrer_expiry: v.optional(v.pipe(str, v.isoTimestamp())),
|
|
96
|
-
w_form: v.optional(
|
|
96
|
+
w_form: v.optional(v.string()),
|
|
97
97
|
});
|
|
98
98
|
export const endowUpdate = v.partial(v.omit(endowment, [
|
|
99
99
|
"id",
|
package/package.json
CHANGED
package/src/schema.mts
CHANGED
|
@@ -185,7 +185,7 @@ export const endowment = v.object({
|
|
|
185
185
|
referral_id: v.optional(v.pipe(str, v.nonEmpty("required"))),
|
|
186
186
|
referrer: v.optional(v.pipe(str, v.nonEmpty("required"))),
|
|
187
187
|
referrer_expiry: v.optional(v.pipe(str, v.isoTimestamp())),
|
|
188
|
-
w_form: v.optional(
|
|
188
|
+
w_form: v.optional(v.string()),
|
|
189
189
|
});
|
|
190
190
|
|
|
191
191
|
export const endowUpdate = v.partial(
|