@better-giving/endowment 1.1.3 → 1.1.4
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 +12 -2
- package/dist/schema.mjs +1 -0
- package/package.json +1 -1
- package/src/schema.mts +1 -0
package/dist/schema.d.mts
CHANGED
|
@@ -104,6 +104,7 @@ export declare const endowment: import("valibot").ObjectSchema<{
|
|
|
104
104
|
readonly claimed: import("valibot").BooleanSchema<undefined>;
|
|
105
105
|
readonly kyc_donors_only: import("valibot").BooleanSchema<undefined>;
|
|
106
106
|
readonly fiscal_sponsored: import("valibot").BooleanSchema<undefined>;
|
|
107
|
+
readonly referrer: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").NonEmptyAction<string, "required">]>, never>;
|
|
107
108
|
}, undefined>;
|
|
108
109
|
export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
109
110
|
readonly id: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
|
|
@@ -160,6 +161,7 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
160
161
|
readonly claimed: import("valibot").BooleanSchema<undefined>;
|
|
161
162
|
readonly kyc_donors_only: import("valibot").BooleanSchema<undefined>;
|
|
162
163
|
readonly fiscal_sponsored: import("valibot").BooleanSchema<undefined>;
|
|
164
|
+
readonly referrer: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").NonEmptyAction<string, "required">]>, never>;
|
|
163
165
|
}, undefined>, "_types" | "_run" | "entries"> & {
|
|
164
166
|
readonly entries: Omit<{
|
|
165
167
|
readonly id: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>;
|
|
@@ -216,6 +218,7 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
216
218
|
readonly claimed: import("valibot").BooleanSchema<undefined>;
|
|
217
219
|
readonly kyc_donors_only: import("valibot").BooleanSchema<undefined>;
|
|
218
220
|
readonly fiscal_sponsored: import("valibot").BooleanSchema<undefined>;
|
|
221
|
+
readonly referrer: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").NonEmptyAction<string, "required">]>, never>;
|
|
219
222
|
}, "id" | "env" | "claimed" | "kyc_donors_only" | "fiscal_sponsored">;
|
|
220
223
|
_run(dataset: import("valibot").Dataset<unknown, never>, config: import("valibot").Config<import("valibot").StringIssue | import("valibot").RegexIssue<string> | import("valibot").NumberIssue | import("valibot").IntegerIssue<number> | import("valibot").MinValueIssue<number, 0> | import("valibot").MaxValueIssue<number, 100> | import("valibot").ObjectIssue | import("valibot").CheckIssue<{
|
|
221
224
|
cash: number;
|
|
@@ -264,6 +267,7 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
264
267
|
}[] | undefined;
|
|
265
268
|
fund_opt_in?: boolean | undefined;
|
|
266
269
|
target?: string | undefined;
|
|
270
|
+
referrer?: string | undefined;
|
|
267
271
|
}, import("valibot").StringIssue | import("valibot").RegexIssue<string> | import("valibot").NumberIssue | import("valibot").IntegerIssue<number> | import("valibot").MinValueIssue<number, 0> | import("valibot").MaxValueIssue<number, 100> | import("valibot").ObjectIssue | import("valibot").CheckIssue<{
|
|
268
272
|
cash: number;
|
|
269
273
|
liq: number;
|
|
@@ -313,6 +317,7 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
313
317
|
}[] | undefined;
|
|
314
318
|
fund_opt_in?: boolean | undefined;
|
|
315
319
|
target?: string | undefined;
|
|
320
|
+
referrer?: string | undefined;
|
|
316
321
|
};
|
|
317
322
|
readonly output: {
|
|
318
323
|
name: string;
|
|
@@ -354,6 +359,7 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
354
359
|
}[] | undefined;
|
|
355
360
|
fund_opt_in?: boolean | undefined;
|
|
356
361
|
target?: string | undefined;
|
|
362
|
+
referrer?: string | undefined;
|
|
357
363
|
};
|
|
358
364
|
readonly issue: import("valibot").StringIssue | import("valibot").RegexIssue<string> | import("valibot").NumberIssue | import("valibot").IntegerIssue<number> | import("valibot").MinValueIssue<number, 0> | import("valibot").MaxValueIssue<number, 100> | import("valibot").ObjectIssue | import("valibot").CheckIssue<{
|
|
359
365
|
cash: number;
|
|
@@ -401,6 +407,7 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
401
407
|
}[], 4, undefined>]>, never>, never>;
|
|
402
408
|
readonly fund_opt_in: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, never>, never>;
|
|
403
409
|
readonly target: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"smart", undefined>, import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TransformAction<string, number>, import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").TransformAction<number, string>]>], undefined>, never>, never>;
|
|
410
|
+
readonly referrer: import("valibot").OptionalSchema<import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").NonEmptyAction<string, "required">]>, never>, never>;
|
|
404
411
|
readonly registration_number: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").NonEmptyAction<string, "required">, import("valibot").RegexAction<string, "must only contain letters and numbers">]>, never>;
|
|
405
412
|
readonly endow_designation: import("valibot").OptionalSchema<import("valibot").PicklistSchema<readonly ["Charity", "Religious Organization", "University", "Hospital", "Other"], undefined>, never>;
|
|
406
413
|
readonly social_media_urls: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
@@ -449,6 +456,7 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
449
456
|
}[] | undefined;
|
|
450
457
|
fund_opt_in?: boolean | undefined;
|
|
451
458
|
target?: string | undefined;
|
|
459
|
+
referrer?: string | undefined;
|
|
452
460
|
registration_number?: string | undefined;
|
|
453
461
|
endow_designation?: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other" | undefined;
|
|
454
462
|
social_media_urls?: {
|
|
@@ -498,6 +506,7 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
498
506
|
}[] | undefined;
|
|
499
507
|
fund_opt_in?: boolean | undefined;
|
|
500
508
|
target?: string | undefined;
|
|
509
|
+
referrer?: string | undefined;
|
|
501
510
|
registration_number?: string | undefined;
|
|
502
511
|
endow_designation?: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other" | undefined;
|
|
503
512
|
social_media_urls?: {
|
|
@@ -539,6 +548,7 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
539
548
|
}[] | undefined;
|
|
540
549
|
fund_opt_in?: boolean | undefined;
|
|
541
550
|
target?: string | undefined;
|
|
551
|
+
referrer?: string | undefined;
|
|
542
552
|
registration_number?: string | undefined;
|
|
543
553
|
endow_designation?: "Charity" | "Religious Organization" | "University" | "Hospital" | "Other" | undefined;
|
|
544
554
|
social_media_urls?: {
|
|
@@ -561,7 +571,7 @@ export declare const endowUpdate: Omit<Omit<import("valibot").ObjectSchema<{
|
|
|
561
571
|
}[], 4> | import("valibot").LiteralIssue | import("valibot").UnionIssue<import("valibot").StringIssue | import("valibot").NumberIssue | import("valibot").MinValueIssue<number, 0> | import("valibot").LiteralIssue>;
|
|
562
572
|
} | undefined;
|
|
563
573
|
};
|
|
564
|
-
export declare const endowFields: import("valibot").PicklistSchema<["url", "slug", "name", "overview", "tagline", "image", "logo", "card_img", "hq_country", "active_in_countries", "street_address", "sdgs", "receiptMsg", "hide_bg_tip", "published", "progDonationsAllowed", "allocation", "donateMethods", "increments", "fund_opt_in", "target", "id", "env", "registration_number", "endow_designation", "social_media_urls", "claimed", "kyc_donors_only", "fiscal_sponsored"], undefined>;
|
|
574
|
+
export declare const endowFields: import("valibot").PicklistSchema<["url", "slug", "name", "overview", "tagline", "image", "logo", "card_img", "hq_country", "active_in_countries", "street_address", "sdgs", "receiptMsg", "hide_bg_tip", "published", "progDonationsAllowed", "allocation", "donateMethods", "increments", "fund_opt_in", "target", "referrer", "id", "env", "registration_number", "endow_designation", "social_media_urls", "claimed", "kyc_donors_only", "fiscal_sponsored"], undefined>;
|
|
565
575
|
export interface Endowment extends InferOutput<typeof endowment> {
|
|
566
576
|
}
|
|
567
577
|
export interface EndowUpdate extends InferOutput<typeof endowUpdate> {
|
|
@@ -569,7 +579,7 @@ export interface EndowUpdate extends InferOutput<typeof endowUpdate> {
|
|
|
569
579
|
export type EndowFields = InferOutput<typeof endowFields>;
|
|
570
580
|
/** for ein path, only fields in reg-num/env gsi is available */
|
|
571
581
|
export declare const endowQueryParams: import("valibot").ObjectSchema<{
|
|
572
|
-
readonly fields: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").LazySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]> | import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").RegexAction<string, "invalid csv">]>>, import("valibot").TransformAction<string, string[]>, import("valibot").FilterItemsAction<string[]>]>, import("valibot").ArraySchema<import("valibot").PicklistSchema<["url", "slug", "name", "overview", "tagline", "image", "logo", "card_img", "hq_country", "active_in_countries", "street_address", "sdgs", "receiptMsg", "hide_bg_tip", "published", "progDonationsAllowed", "allocation", "donateMethods", "increments", "fund_opt_in", "target", "id", "env", "registration_number", "endow_designation", "social_media_urls", "claimed", "kyc_donors_only", "fiscal_sponsored"], undefined>, undefined>]>, never>;
|
|
582
|
+
readonly fields: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").LazySchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]> | import("valibot").SchemaWithPipe<[import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").TrimAction]>, import("valibot").RegexAction<string, "invalid csv">]>>, import("valibot").TransformAction<string, string[]>, import("valibot").FilterItemsAction<string[]>]>, import("valibot").ArraySchema<import("valibot").PicklistSchema<["url", "slug", "name", "overview", "tagline", "image", "logo", "card_img", "hq_country", "active_in_countries", "street_address", "sdgs", "receiptMsg", "hide_bg_tip", "published", "progDonationsAllowed", "allocation", "donateMethods", "increments", "fund_opt_in", "target", "referrer", "id", "env", "registration_number", "endow_designation", "social_media_urls", "claimed", "kyc_donors_only", "fiscal_sponsored"], undefined>, undefined>]>, never>;
|
|
573
583
|
}, undefined>;
|
|
574
584
|
export interface EndowQueryParams extends InferInput<typeof endowQueryParams> {
|
|
575
585
|
}
|
package/dist/schema.mjs
CHANGED
package/package.json
CHANGED
package/src/schema.mts
CHANGED