lancer-shared 1.0.141 → 1.0.143

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.
@@ -1,14 +1,14 @@
1
- export declare const userSchema: import("zod").ZodObject<{
2
- id: import("zod").ZodString;
3
- firstName: import("zod").ZodString;
4
- lastName: import("zod").ZodString;
5
- displayName: import("zod").ZodString;
6
- email: import("zod").ZodString;
7
- suitabilityPrompt: import("zod").ZodString;
8
- proposalPrompt: import("zod").ZodString;
9
- createdAt: import("zod").ZodNumber;
10
- updatedAt: import("zod").ZodNumber;
11
- }, "strip", import("zod").ZodTypeAny, {
1
+ import { z } from 'zod';
2
+ export declare const userSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ firstName: z.ZodString;
5
+ lastName: z.ZodString;
6
+ displayName: z.ZodString;
7
+ email: z.ZodString;
8
+ organizationIds: z.ZodArray<z.ZodString, "many">;
9
+ createdAt: z.ZodNumber;
10
+ updatedAt: z.ZodNumber;
11
+ }, "strip", z.ZodTypeAny, {
12
12
  id: string;
13
13
  email: string;
14
14
  createdAt: number;
@@ -16,8 +16,7 @@ export declare const userSchema: import("zod").ZodObject<{
16
16
  firstName: string;
17
17
  lastName: string;
18
18
  displayName: string;
19
- suitabilityPrompt: string;
20
- proposalPrompt: string;
19
+ organizationIds: string[];
21
20
  }, {
22
21
  id: string;
23
22
  email: string;
@@ -26,26 +25,25 @@ export declare const userSchema: import("zod").ZodObject<{
26
25
  firstName: string;
27
26
  lastName: string;
28
27
  displayName: string;
29
- suitabilityPrompt: string;
30
- proposalPrompt: string;
28
+ organizationIds: string[];
31
29
  }>;
32
- export declare const loginSchema: import("zod").ZodObject<{
33
- email: import("zod").ZodString;
34
- password: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>, string, string>, string, string>;
35
- }, "strip", import("zod").ZodTypeAny, {
30
+ export declare const loginSchema: z.ZodObject<{
31
+ email: z.ZodString;
32
+ password: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>;
33
+ }, "strip", z.ZodTypeAny, {
36
34
  email: string;
37
35
  password: string;
38
36
  }, {
39
37
  email: string;
40
38
  password: string;
41
39
  }>;
42
- export declare const registerSchema: import("zod").ZodEffects<import("zod").ZodObject<{
43
- firstName: import("zod").ZodString;
44
- lastName: import("zod").ZodString;
45
- email: import("zod").ZodString;
46
- password: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>, string, string>, string, string>;
47
- confirmPassword: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>, string, string>, string, string>;
48
- }, "strip", import("zod").ZodTypeAny, {
40
+ export declare const registerSchema: z.ZodEffects<z.ZodObject<{
41
+ firstName: z.ZodString;
42
+ lastName: z.ZodString;
43
+ email: z.ZodString;
44
+ password: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>;
45
+ confirmPassword: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>;
46
+ }, "strip", z.ZodTypeAny, {
49
47
  email: string;
50
48
  password: string;
51
49
  firstName: string;
@@ -9,8 +9,7 @@ exports.userSchema = (0, zod_1.object)({
9
9
  lastName: (0, zod_1.string)(),
10
10
  displayName: (0, zod_1.string)(),
11
11
  email: (0, zod_1.string)(),
12
- suitabilityPrompt: (0, zod_1.string)(),
13
- proposalPrompt: (0, zod_1.string)(),
12
+ organizationIds: zod_1.z.array((0, zod_1.string)()),
14
13
  createdAt: (0, zod_1.number)(),
15
14
  updatedAt: (0, zod_1.number)(),
16
15
  });
@@ -19,15 +18,15 @@ exports.loginSchema = (0, zod_1.object)({
19
18
  password: shared_1.passwordSchema,
20
19
  });
21
20
  exports.registerSchema = (0, zod_1.object)({
22
- firstName: (0, zod_1.string)().min(1, "First name is required").max(255),
23
- lastName: (0, zod_1.string)().min(1, "Last name is required").max(255),
21
+ firstName: (0, zod_1.string)().min(1, 'First name is required').max(255),
22
+ lastName: (0, zod_1.string)().min(1, 'Last name is required').max(255),
24
23
  email: (0, zod_1.string)()
25
- .email("Must be a valid email address")
24
+ .email('Must be a valid email address')
26
25
  .max(255)
27
- .min(1, "Email address is required"),
26
+ .min(1, 'Email address is required'),
28
27
  password: shared_1.passwordSchema,
29
28
  confirmPassword: shared_1.passwordSchema,
30
29
  }).refine(({ password, confirmPassword }) => password === confirmPassword, {
31
30
  message: `Passwords don't match.`,
32
- path: ["confirmPassword"],
31
+ path: ['confirmPassword'],
33
32
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.141",
4
+ "version": "1.0.143",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",