lancer-shared 1.2.100 → 1.2.102

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.
@@ -13259,12 +13259,11 @@ const systemSchema = objectType({
13259
13259
  prompts: systemPromptSchema,
13260
13260
  });
13261
13261
 
13262
- const timeFilterSchema = z.union([
13263
- z.literal("last_7_days"),
13264
- z.literal("last_30_days"),
13265
- z.literal("last_6_months"),
13266
- z.literal("last_year"),
13267
- z.literal("all_time"),
13262
+ const periodTypeSchema = z.union([
13263
+ z.literal("weekly"),
13264
+ z.literal("monthly"),
13265
+ z.literal("quarterly"),
13266
+ z.literal("yearly"),
13268
13267
  ]);
13269
13268
 
13270
13269
  const transactionStripeMetadataSchema = objectType({
@@ -13917,6 +13916,7 @@ exports.organizationTypeSchema = organizationTypeSchema;
13917
13916
  exports.parseConnectsException = parseConnectsException;
13918
13917
  exports.passwordSchema = passwordSchema;
13919
13918
  exports.paymentTypeEnum = paymentTypeEnum;
13919
+ exports.periodTypeSchema = periodTypeSchema;
13920
13920
  exports.periodUsageSchema = periodUsageSchema;
13921
13921
  exports.planFeatureSchema = planFeatureSchema;
13922
13922
  exports.planSchema = planSchema;
@@ -13973,7 +13973,6 @@ exports.suitabilityRatingSchema = suitabilityRatingSchema;
13973
13973
  exports.systemPromptSchema = systemPromptSchema;
13974
13974
  exports.systemSchema = systemSchema;
13975
13975
  exports.talentTypeEnum = talentTypeEnum;
13976
- exports.timeFilterSchema = timeFilterSchema;
13977
13976
  exports.trackUsageEventTypeEnum = trackUsageEventTypeEnum;
13978
13977
  exports.trackUsagePayloadSchema = trackUsagePayloadSchema;
13979
13978
  exports.transactionSchema = transactionSchema;
@@ -1,6 +1,7 @@
1
- import { infer } from "zod";
2
- import { BidderAccount } from "../account";
3
- import { Lead } from "../lead";
1
+ import { infer } from 'zod';
2
+ import { BidderAccount } from '../account';
3
+ import { Campaign } from '../campaign';
4
+ import { Lead } from '../lead';
4
5
  export declare const scrapePayloadSchema: import("zod").ZodObject<{
5
6
  latestJobsUrls: import("zod").ZodArray<import("zod").ZodString, "many">;
6
7
  }, "strip", import("zod").ZodTypeAny, {
@@ -197,11 +198,11 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
197
198
  projectDuration: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<["Less than 1 month", "1 to 3 months", "3 to 6 months", "More than 6 months", "Unspecified"]>, "many">>;
198
199
  experienceLevel: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<["Entry level", "Intermediate", "Expert"]>, "many">>;
199
200
  questions: import("zod").ZodNullable<import("zod").ZodObject<{
200
- hasQuestions: import("zod").ZodDefault<import("zod").ZodEnum<["all", "yes", "no"]>>;
201
+ hasQuestions: import("zod").ZodArray<import("zod").ZodEnum<["all", "yes", "no"]>, "many">;
201
202
  }, "strip", import("zod").ZodTypeAny, {
202
- hasQuestions: "all" | "yes" | "no";
203
+ hasQuestions: ("all" | "yes" | "no")[];
203
204
  }, {
204
- hasQuestions?: "all" | "yes" | "no" | undefined;
205
+ hasQuestions: ("all" | "yes" | "no")[];
205
206
  }>>;
206
207
  engagementType: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodEnum<["Less than 30 hrs/week", "More than 30 hrs/week", "Unspecified"]>, "many">>;
207
208
  clientInfo: import("zod").ZodNullable<import("zod").ZodObject<{
@@ -299,7 +300,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
299
300
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
300
301
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
301
302
  questions: {
302
- hasQuestions: "all" | "yes" | "no";
303
+ hasQuestions: ("all" | "yes" | "no")[];
303
304
  } | null;
304
305
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
305
306
  clientInfo: {
@@ -349,7 +350,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
349
350
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
350
351
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
351
352
  questions: {
352
- hasQuestions?: "all" | "yes" | "no" | undefined;
353
+ hasQuestions: ("all" | "yes" | "no")[];
353
354
  } | null;
354
355
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
355
356
  clientInfo: {
@@ -420,6 +421,25 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
420
421
  }>>;
421
422
  coverLetterTemplateId: import("zod").ZodNullable<import("zod").ZodString>;
422
423
  priority: import("zod").ZodNullable<import("zod").ZodNumber>;
424
+ coverLetterTemplate: import("zod").ZodNullable<import("zod").ZodObject<{
425
+ id: import("zod").ZodString;
426
+ name: import("zod").ZodString;
427
+ description: import("zod").ZodNullable<import("zod").ZodString>;
428
+ template: import("zod").ZodString;
429
+ instructions: import("zod").ZodString;
430
+ }, "strip", import("zod").ZodTypeAny, {
431
+ id: string;
432
+ name: string;
433
+ description: string | null;
434
+ template: string;
435
+ instructions: string;
436
+ }, {
437
+ id: string;
438
+ name: string;
439
+ description: string | null;
440
+ template: string;
441
+ instructions: string;
442
+ }>>;
423
443
  }, "strip", import("zod").ZodTypeAny, {
424
444
  id: string;
425
445
  name: string;
@@ -444,7 +464,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
444
464
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
445
465
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
446
466
  questions: {
447
- hasQuestions: "all" | "yes" | "no";
467
+ hasQuestions: ("all" | "yes" | "no")[];
448
468
  } | null;
449
469
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
450
470
  clientInfo: {
@@ -496,6 +516,13 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
496
516
  } | null;
497
517
  coverLetterTemplateId: string | null;
498
518
  priority: number | null;
519
+ coverLetterTemplate: {
520
+ id: string;
521
+ name: string;
522
+ description: string | null;
523
+ template: string;
524
+ instructions: string;
525
+ } | null;
499
526
  status?: "active" | "draft" | "paused" | "error" | undefined;
500
527
  }, {
501
528
  id: string;
@@ -521,7 +548,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
521
548
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
522
549
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
523
550
  questions: {
524
- hasQuestions?: "all" | "yes" | "no" | undefined;
551
+ hasQuestions: ("all" | "yes" | "no")[];
525
552
  } | null;
526
553
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
527
554
  clientInfo: {
@@ -570,6 +597,13 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
570
597
  } | null;
571
598
  coverLetterTemplateId: string | null;
572
599
  priority: number | null;
600
+ coverLetterTemplate: {
601
+ id: string;
602
+ name: string;
603
+ description: string | null;
604
+ template: string;
605
+ instructions: string;
606
+ } | null;
573
607
  status?: "active" | "draft" | "paused" | "error" | undefined;
574
608
  boostingEnabled?: boolean | null | undefined;
575
609
  maximumBoost?: number | null | undefined;
@@ -737,6 +771,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
737
771
  savedCard: boolean;
738
772
  }>>;
739
773
  lastBidTime: import("zod").ZodNullable<import("zod").ZodNumber>;
774
+ nextScheduledBidTime: import("zod").ZodNullable<import("zod").ZodNumber>;
740
775
  createdAt: import("zod").ZodNumber;
741
776
  updatedAt: import("zod").ZodNumber;
742
777
  openRouterApiKey: import("zod").ZodNullable<import("zod").ZodString>;
@@ -785,6 +820,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
785
820
  savedCard: boolean;
786
821
  } | null;
787
822
  lastBidTime: number | null;
823
+ nextScheduledBidTime: number | null;
788
824
  openRouterApiKey: string | null;
789
825
  appTrialEndsAt: number | null;
790
826
  }, {
@@ -831,6 +867,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
831
867
  savedCard: boolean;
832
868
  } | null;
833
869
  lastBidTime: number | null;
870
+ nextScheduledBidTime: number | null;
834
871
  openRouterApiKey: string | null;
835
872
  appTrialEndsAt: number | null;
836
873
  }>;
@@ -1159,8 +1196,9 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1159
1196
  biddingTaskScheduled: import("zod").ZodNullable<import("zod").ZodBoolean>;
1160
1197
  scheduledBiddingTime: import("zod").ZodNullable<import("zod").ZodNumber>;
1161
1198
  wonAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
1162
- biddingTaskId: import("zod").ZodNullable<import("zod").ZodString>;
1163
- doNotApplyReason: import("zod").ZodNullable<import("zod").ZodString>;
1199
+ feedbackCheckTaskId: import("zod").ZodNullable<import("zod").ZodString>;
1200
+ bidDecision: import("zod").ZodNullable<import("zod").ZodEnum<["proceeded", "rejected"]>>;
1201
+ rejectedFeedback: import("zod").ZodNullable<import("zod").ZodString>;
1164
1202
  }>, "processed">, "strip", import("zod").ZodTypeAny, {
1165
1203
  uid: string | null;
1166
1204
  title: string | null;
@@ -1203,11 +1241,11 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1203
1241
  biddingAmount: number | null;
1204
1242
  boostingAmount: number | null;
1205
1243
  boosted: boolean | null;
1244
+ description: string | null;
1206
1245
  category: string | null;
1207
1246
  skills: {
1208
1247
  name: string;
1209
1248
  }[] | null;
1210
- description: string | null;
1211
1249
  descriptionLength: number | null;
1212
1250
  connectsRequired: number | null;
1213
1251
  projectType: string | null;
@@ -1270,8 +1308,9 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1270
1308
  leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
1271
1309
  biddingTaskScheduled: boolean | null;
1272
1310
  scheduledBiddingTime: number | null;
1273
- biddingTaskId: string | null;
1274
- doNotApplyReason: string | null;
1311
+ feedbackCheckTaskId: string | null;
1312
+ bidDecision: "proceeded" | "rejected" | null;
1313
+ rejectedFeedback: string | null;
1275
1314
  activity?: Partial<Record<"4h" | "24h", {
1276
1315
  updatedAt: number | null;
1277
1316
  proposals: {
@@ -1336,11 +1375,11 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1336
1375
  biddingAmount: number | null;
1337
1376
  boostingAmount: number | null;
1338
1377
  boosted: boolean | null;
1378
+ description: string | null;
1339
1379
  category: string | null;
1340
1380
  skills: {
1341
1381
  name: string;
1342
1382
  }[] | null;
1343
- description: string | null;
1344
1383
  descriptionLength: number | null;
1345
1384
  connectsRequired: number | null;
1346
1385
  projectType: string | null;
@@ -1403,8 +1442,9 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1403
1442
  leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
1404
1443
  biddingTaskScheduled: boolean | null;
1405
1444
  scheduledBiddingTime: number | null;
1406
- biddingTaskId: string | null;
1407
- doNotApplyReason: string | null;
1445
+ feedbackCheckTaskId: string | null;
1446
+ bidDecision: "proceeded" | "rejected" | null;
1447
+ rejectedFeedback: string | null;
1408
1448
  activity?: Partial<Record<"4h" | "24h", {
1409
1449
  updatedAt: number | null;
1410
1450
  proposals: {
@@ -1529,7 +1569,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1529
1569
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
1530
1570
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
1531
1571
  questions: {
1532
- hasQuestions: "all" | "yes" | "no";
1572
+ hasQuestions: ("all" | "yes" | "no")[];
1533
1573
  } | null;
1534
1574
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
1535
1575
  clientInfo: {
@@ -1581,6 +1621,13 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1581
1621
  } | null;
1582
1622
  coverLetterTemplateId: string | null;
1583
1623
  priority: number | null;
1624
+ coverLetterTemplate: {
1625
+ id: string;
1626
+ name: string;
1627
+ description: string | null;
1628
+ template: string;
1629
+ instructions: string;
1630
+ } | null;
1584
1631
  status?: "active" | "draft" | "paused" | "error" | undefined;
1585
1632
  };
1586
1633
  organization: {
@@ -1627,6 +1674,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1627
1674
  savedCard: boolean;
1628
1675
  } | null;
1629
1676
  lastBidTime: number | null;
1677
+ nextScheduledBidTime: number | null;
1630
1678
  openRouterApiKey: string | null;
1631
1679
  appTrialEndsAt: number | null;
1632
1680
  };
@@ -1672,11 +1720,11 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1672
1720
  biddingAmount: number | null;
1673
1721
  boostingAmount: number | null;
1674
1722
  boosted: boolean | null;
1723
+ description: string | null;
1675
1724
  category: string | null;
1676
1725
  skills: {
1677
1726
  name: string;
1678
1727
  }[] | null;
1679
- description: string | null;
1680
1728
  descriptionLength: number | null;
1681
1729
  connectsRequired: number | null;
1682
1730
  projectType: string | null;
@@ -1739,8 +1787,9 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1739
1787
  leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
1740
1788
  biddingTaskScheduled: boolean | null;
1741
1789
  scheduledBiddingTime: number | null;
1742
- biddingTaskId: string | null;
1743
- doNotApplyReason: string | null;
1790
+ feedbackCheckTaskId: string | null;
1791
+ bidDecision: "proceeded" | "rejected" | null;
1792
+ rejectedFeedback: string | null;
1744
1793
  activity?: Partial<Record<"4h" | "24h", {
1745
1794
  updatedAt: number | null;
1746
1795
  proposals: {
@@ -1813,7 +1862,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1813
1862
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
1814
1863
  experienceLevel: ("Entry level" | "Intermediate" | "Expert")[] | null;
1815
1864
  questions: {
1816
- hasQuestions?: "all" | "yes" | "no" | undefined;
1865
+ hasQuestions: ("all" | "yes" | "no")[];
1817
1866
  } | null;
1818
1867
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
1819
1868
  clientInfo: {
@@ -1862,6 +1911,13 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1862
1911
  } | null;
1863
1912
  coverLetterTemplateId: string | null;
1864
1913
  priority: number | null;
1914
+ coverLetterTemplate: {
1915
+ id: string;
1916
+ name: string;
1917
+ description: string | null;
1918
+ template: string;
1919
+ instructions: string;
1920
+ } | null;
1865
1921
  status?: "active" | "draft" | "paused" | "error" | undefined;
1866
1922
  boostingEnabled?: boolean | null | undefined;
1867
1923
  maximumBoost?: number | null | undefined;
@@ -1911,6 +1967,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1911
1967
  savedCard: boolean;
1912
1968
  } | null;
1913
1969
  lastBidTime: number | null;
1970
+ nextScheduledBidTime: number | null;
1914
1971
  openRouterApiKey: string | null;
1915
1972
  appTrialEndsAt: number | null;
1916
1973
  };
@@ -1956,11 +2013,11 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1956
2013
  biddingAmount: number | null;
1957
2014
  boostingAmount: number | null;
1958
2015
  boosted: boolean | null;
2016
+ description: string | null;
1959
2017
  category: string | null;
1960
2018
  skills: {
1961
2019
  name: string;
1962
2020
  }[] | null;
1963
- description: string | null;
1964
2021
  descriptionLength: number | null;
1965
2022
  connectsRequired: number | null;
1966
2023
  projectType: string | null;
@@ -2023,8 +2080,9 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
2023
2080
  leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
2024
2081
  biddingTaskScheduled: boolean | null;
2025
2082
  scheduledBiddingTime: number | null;
2026
- biddingTaskId: string | null;
2027
- doNotApplyReason: string | null;
2083
+ feedbackCheckTaskId: string | null;
2084
+ bidDecision: "proceeded" | "rejected" | null;
2085
+ rejectedFeedback: string | null;
2028
2086
  activity?: Partial<Record<"4h" | "24h", {
2029
2087
  updatedAt: number | null;
2030
2088
  proposals: {
@@ -2085,4 +2143,5 @@ export interface ScrapeJobActivityPayload extends infer<typeof scrapeJobActivity
2085
2143
  export interface CheckLeadStatusPayload extends infer<typeof checkLeadStatusPayloadSchema> {
2086
2144
  bidder: BidderAccount;
2087
2145
  lead: Lead;
2146
+ campaign: Campaign;
2088
2147
  }
@@ -1,3 +1,3 @@
1
1
  import { z } from "zod";
2
- export declare const timeFilterSchema: z.ZodUnion<[z.ZodLiteral<"last_7_days">, z.ZodLiteral<"last_30_days">, z.ZodLiteral<"last_6_months">, z.ZodLiteral<"last_year">, z.ZodLiteral<"all_time">]>;
3
- export type TimeFilter = z.infer<typeof timeFilterSchema>;
2
+ export declare const periodTypeSchema: z.ZodUnion<[z.ZodLiteral<"weekly">, z.ZodLiteral<"monthly">, z.ZodLiteral<"quarterly">, z.ZodLiteral<"yearly">]>;
3
+ export type PeriodType = z.infer<typeof periodTypeSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.100",
3
+ "version": "1.2.102",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",