lancer-shared 1.0.142 → 1.0.144

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;
@@ -70,3 +68,48 @@ export declare const registerSchema: import("zod").ZodEffects<import("zod").ZodO
70
68
  lastName: string;
71
69
  confirmPassword: string;
72
70
  }>;
71
+ export declare const upworkProfileSchema: z.ZodObject<{
72
+ name: z.ZodNullable<z.ZodString>;
73
+ country: z.ZodNullable<z.ZodString>;
74
+ bio: z.ZodNullable<z.ZodString>;
75
+ skills: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
76
+ certifications: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
77
+ employmentHistory: z.ZodNullable<z.ZodArray<z.ZodObject<{
78
+ jobTitle: z.ZodString;
79
+ period: z.ZodString;
80
+ description: z.ZodString;
81
+ }, "strip", z.ZodTypeAny, {
82
+ description: string;
83
+ jobTitle: string;
84
+ period: string;
85
+ }, {
86
+ description: string;
87
+ jobTitle: string;
88
+ period: string;
89
+ }>, "many">>;
90
+ languages: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ name: string | null;
93
+ country: string | null;
94
+ skills: string[] | null;
95
+ bio: string | null;
96
+ certifications: string[] | null;
97
+ employmentHistory: {
98
+ description: string;
99
+ jobTitle: string;
100
+ period: string;
101
+ }[] | null;
102
+ languages: Record<string, string> | null;
103
+ }, {
104
+ name: string | null;
105
+ country: string | null;
106
+ skills: string[] | null;
107
+ bio: string | null;
108
+ certifications: string[] | null;
109
+ employmentHistory: {
110
+ description: string;
111
+ jobTitle: string;
112
+ period: string;
113
+ }[] | null;
114
+ languages: Record<string, string> | null;
115
+ }>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.registerSchema = exports.loginSchema = exports.userSchema = void 0;
3
+ exports.upworkProfileSchema = exports.registerSchema = exports.loginSchema = exports.userSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const shared_1 = require("../shared");
6
6
  exports.userSchema = (0, zod_1.object)({
@@ -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
  });
@@ -31,3 +30,18 @@ exports.registerSchema = (0, zod_1.object)({
31
30
  message: `Passwords don't match.`,
32
31
  path: ["confirmPassword"],
33
32
  });
33
+ exports.upworkProfileSchema = (0, zod_1.object)({
34
+ name: (0, zod_1.string)().nullable(),
35
+ country: (0, zod_1.string)().nullable(),
36
+ bio: (0, zod_1.string)().nullable(),
37
+ skills: zod_1.z.array((0, zod_1.string)()).nullable(),
38
+ certifications: zod_1.z.array((0, zod_1.string)()).nullable(),
39
+ employmentHistory: zod_1.z
40
+ .array(zod_1.z.object({
41
+ jobTitle: (0, zod_1.string)(),
42
+ period: (0, zod_1.string)(),
43
+ description: (0, zod_1.string)(),
44
+ }))
45
+ .nullable(),
46
+ languages: zod_1.z.record((0, zod_1.string)(), (0, zod_1.string)()).nullable(),
47
+ });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.142",
4
+ "version": "1.0.144",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",