@better-giving/donation 1.0.0 → 1.0.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/intent.d.mts CHANGED
@@ -5,8 +5,8 @@ export type Frequency = v.InferOutput<typeof frequency>;
5
5
  export declare const donationSources: readonly ["bg-marketplace", "bg-widget", "tester-app"];
6
6
  export declare const donationSource: v.PicklistSchema<readonly ["bg-marketplace", "bg-widget", "tester-app"], undefined>;
7
7
  export type DonationSource = v.InferOutput<typeof donationSource>;
8
- export declare const donorTitles: readonly ["Mr", "Mrs", "Ms", "Mx"];
9
- export declare const donorTitle: v.PicklistSchema<readonly ["Mr", "Mrs", "Ms", "Mx"], undefined>;
8
+ export declare const donorTitles: readonly ["Mr", "Mrs", "Ms", "Mx", ""];
9
+ export declare const donorTitle: v.PicklistSchema<readonly ["Mr", "Mrs", "Ms", "Mx", ""], undefined>;
10
10
  export type DonorTitle = v.InferOutput<typeof donorTitle>;
11
11
  export declare const donorAddress: v.ObjectSchema<{
12
12
  readonly street: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>]>;
@@ -19,7 +19,7 @@ export declare const donorAddress: v.ObjectSchema<{
19
19
  }, undefined>;
20
20
  export type DonorAddress = v.InferOutput<typeof donorAddress>;
21
21
  export declare const donor: v.ObjectSchema<{
22
- readonly title: v.PicklistSchema<readonly ["Mr", "Mrs", "Ms", "Mx"], undefined>;
22
+ readonly title: v.PicklistSchema<readonly ["Mr", "Mrs", "Ms", "Mx", ""], undefined>;
23
23
  readonly firstName: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>]>;
24
24
  readonly lastName: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>]>;
25
25
  readonly email: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>]>, v.EmailAction<string, undefined>]>;
@@ -78,7 +78,7 @@ export declare const intent: v.ObjectSchema<{
78
78
  readonly name: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>]>;
79
79
  }, undefined>, never>;
80
80
  readonly donor: v.ObjectSchema<{
81
- readonly title: v.PicklistSchema<readonly ["Mr", "Mrs", "Ms", "Mx"], undefined>;
81
+ readonly title: v.PicklistSchema<readonly ["Mr", "Mrs", "Ms", "Mx", ""], undefined>;
82
82
  readonly firstName: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>]>;
83
83
  readonly lastName: v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>]>;
84
84
  readonly email: v.SchemaWithPipe<[v.SchemaWithPipe<[v.StringSchema<undefined>, v.TrimAction, v.NonEmptyAction<string, undefined>]>, v.EmailAction<string, undefined>]>;
package/dist/intent.mjs CHANGED
@@ -8,7 +8,7 @@ export const donationSources = [
8
8
  "tester-app",
9
9
  ];
10
10
  export const donationSource = v.picklist(donationSources);
11
- export const donorTitles = ["Mr", "Mrs", "Ms", "Mx"];
11
+ export const donorTitles = ["Mr", "Mrs", "Ms", "Mx", ""];
12
12
  export const donorTitle = v.picklist(donorTitles);
13
13
  export const donorAddress = v.object({
14
14
  street: str,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-giving/donation",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "devDependencies": {
5
5
  "@better-giving/config": "workspace:*"
6
6
  },
package/src/intent.mts CHANGED
@@ -16,7 +16,7 @@ export const donationSources = [
16
16
  export const donationSource = v.picklist(donationSources);
17
17
  export type DonationSource = v.InferOutput<typeof donationSource>;
18
18
 
19
- export const donorTitles = ["Mr", "Mrs", "Ms", "Mx"] as const;
19
+ export const donorTitles = ["Mr", "Mrs", "Ms", "Mx", ""] as const;
20
20
  export const donorTitle = v.picklist(donorTitles);
21
21
 
22
22
  export type DonorTitle = v.InferOutput<typeof donorTitle>;