lancer-shared 1.0.13 → 1.0.14
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.
|
@@ -178,8 +178,8 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
178
178
|
} | null;
|
|
179
179
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
180
180
|
}>;
|
|
181
|
-
createdAt: z.
|
|
182
|
-
updatedAt: z.
|
|
181
|
+
createdAt: z.ZodNumber;
|
|
182
|
+
updatedAt: z.ZodNumber;
|
|
183
183
|
automatedSuitability: z.ZodNullable<z.ZodBoolean>;
|
|
184
184
|
automatedBidding: z.ZodNullable<z.ZodBoolean>;
|
|
185
185
|
boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -246,8 +246,8 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
246
246
|
}, "strip", z.ZodTypeAny, {
|
|
247
247
|
id: string;
|
|
248
248
|
name: string;
|
|
249
|
-
createdAt:
|
|
250
|
-
updatedAt:
|
|
249
|
+
createdAt: number;
|
|
250
|
+
updatedAt: number;
|
|
251
251
|
filters: {
|
|
252
252
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
253
253
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
@@ -316,8 +316,8 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
316
316
|
}, {
|
|
317
317
|
id: string;
|
|
318
318
|
name: string;
|
|
319
|
-
createdAt:
|
|
320
|
-
updatedAt:
|
|
319
|
+
createdAt: number;
|
|
320
|
+
updatedAt: number;
|
|
321
321
|
filters: {
|
|
322
322
|
experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
|
|
323
323
|
projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
|
|
@@ -563,8 +563,8 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
563
563
|
} | null;
|
|
564
564
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
565
565
|
}>;
|
|
566
|
-
createdAt: z.
|
|
567
|
-
updatedAt: z.
|
|
566
|
+
createdAt: z.ZodNumber;
|
|
567
|
+
updatedAt: z.ZodNumber;
|
|
568
568
|
automatedSuitability: z.ZodNullable<z.ZodBoolean>;
|
|
569
569
|
automatedBidding: z.ZodNullable<z.ZodBoolean>;
|
|
570
570
|
boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -942,8 +942,8 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
|
|
|
942
942
|
} | null;
|
|
943
943
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
944
944
|
}>;
|
|
945
|
-
createdAt: z.
|
|
946
|
-
updatedAt: z.
|
|
945
|
+
createdAt: z.ZodNumber;
|
|
946
|
+
updatedAt: z.ZodNumber;
|
|
947
947
|
automatedSuitability: z.ZodNullable<z.ZodBoolean>;
|
|
948
948
|
automatedBidding: z.ZodNullable<z.ZodBoolean>;
|
|
949
949
|
boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.updateCampaignSchema = exports.createCampaignSchema = exports.campaignSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const job_filters_1 = require("../job-filters");
|
|
6
|
-
const shared_1 = require("../shared");
|
|
7
6
|
const lead_1 = require("../lead");
|
|
8
7
|
const campaign_expenses_1 = require("./campaign-expenses");
|
|
9
8
|
const campaign_integrations_1 = require("./campaign-integrations");
|
|
@@ -11,8 +10,8 @@ exports.campaignSchema = zod_1.z.object({
|
|
|
11
10
|
id: zod_1.z.string(),
|
|
12
11
|
name: zod_1.z.string(),
|
|
13
12
|
filters: job_filters_1.jobFiltersSchema,
|
|
14
|
-
createdAt: (0,
|
|
15
|
-
updatedAt: (0,
|
|
13
|
+
createdAt: (0, zod_1.number)(),
|
|
14
|
+
updatedAt: (0, zod_1.number)(),
|
|
16
15
|
automatedSuitability: zod_1.z.boolean().nullable(),
|
|
17
16
|
automatedBidding: zod_1.z.boolean().nullable(),
|
|
18
17
|
boostingEnabled: zod_1.z.boolean().nullable().default(false),
|
|
@@ -6,13 +6,13 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
6
6
|
email: import("zod").ZodString;
|
|
7
7
|
suitabilityPrompt: import("zod").ZodString;
|
|
8
8
|
proposalPrompt: import("zod").ZodString;
|
|
9
|
-
createdAt: import("zod").
|
|
10
|
-
updatedAt: import("zod").
|
|
9
|
+
createdAt: import("zod").ZodNumber;
|
|
10
|
+
updatedAt: import("zod").ZodNumber;
|
|
11
11
|
}, "strip", import("zod").ZodTypeAny, {
|
|
12
12
|
id: string;
|
|
13
13
|
email: string;
|
|
14
|
-
createdAt:
|
|
15
|
-
updatedAt:
|
|
14
|
+
createdAt: number;
|
|
15
|
+
updatedAt: number;
|
|
16
16
|
firstName: string;
|
|
17
17
|
lastName: string;
|
|
18
18
|
displayName: string;
|
|
@@ -21,8 +21,8 @@ export declare const userSchema: import("zod").ZodObject<{
|
|
|
21
21
|
}, {
|
|
22
22
|
id: string;
|
|
23
23
|
email: string;
|
|
24
|
-
createdAt:
|
|
25
|
-
updatedAt:
|
|
24
|
+
createdAt: number;
|
|
25
|
+
updatedAt: number;
|
|
26
26
|
firstName: string;
|
|
27
27
|
lastName: string;
|
|
28
28
|
displayName: string;
|
|
@@ -11,23 +11,23 @@ exports.userSchema = (0, zod_1.object)({
|
|
|
11
11
|
email: (0, zod_1.string)(),
|
|
12
12
|
suitabilityPrompt: (0, zod_1.string)(),
|
|
13
13
|
proposalPrompt: (0, zod_1.string)(),
|
|
14
|
-
createdAt: (0,
|
|
15
|
-
updatedAt: (0,
|
|
14
|
+
createdAt: (0, zod_1.number)(),
|
|
15
|
+
updatedAt: (0, zod_1.number)(),
|
|
16
16
|
});
|
|
17
17
|
exports.loginSchema = (0, zod_1.object)({
|
|
18
18
|
email: (0, zod_1.string)().email(),
|
|
19
19
|
password: shared_1.passwordSchema,
|
|
20
20
|
});
|
|
21
21
|
exports.registerSchema = (0, zod_1.object)({
|
|
22
|
-
firstName: (0, zod_1.string)().min(1,
|
|
23
|
-
lastName: (0, zod_1.string)().min(1,
|
|
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),
|
|
24
24
|
email: (0, zod_1.string)()
|
|
25
|
-
.email(
|
|
25
|
+
.email("Must be a valid email address")
|
|
26
26
|
.max(255)
|
|
27
|
-
.min(1,
|
|
27
|
+
.min(1, "Email address is required"),
|
|
28
28
|
password: shared_1.passwordSchema,
|
|
29
29
|
confirmPassword: shared_1.passwordSchema,
|
|
30
30
|
}).refine(({ password, confirmPassword }) => password === confirmPassword, {
|
|
31
31
|
message: `Passwords don't match.`,
|
|
32
|
-
path: [
|
|
32
|
+
path: ["confirmPassword"],
|
|
33
33
|
});
|