lancer-shared 1.2.14 → 1.2.15

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.
@@ -5508,13 +5508,13 @@ const campaignAnalyticsResponseSchema = z.object({
5508
5508
  contacted: z.number(),
5509
5509
  viewed: z.number(),
5510
5510
  replied: z.number(),
5511
- negotiations: z.number(),
5511
+ interview: z.number(),
5512
5512
  won: z.number(),
5513
5513
  });
5514
5514
  const campaignActivitySchema = z.object({
5515
5515
  createdAt: z.number(),
5516
5516
  status: leadStatusSchema,
5517
- job: upworkJobSchema.pick({
5517
+ lead: leadSchema.pick({
5518
5518
  id: true,
5519
5519
  title: true,
5520
5520
  datetime: true,
@@ -5523,7 +5523,7 @@ const campaignActivitySchema = z.object({
5523
5523
  });
5524
5524
  const campaignActivityCreateSchema = campaignActivitySchema.pick({
5525
5525
  status: true,
5526
- job: true,
5526
+ lead: true,
5527
5527
  });
5528
5528
 
5529
5529
  const campaignAIMetricsSchema = z.object({
@@ -82,27 +82,27 @@ export declare const campaignAnalyticsResponseSchema: z.ZodObject<{
82
82
  contacted: z.ZodNumber;
83
83
  viewed: z.ZodNumber;
84
84
  replied: z.ZodNumber;
85
- negotiations: z.ZodNumber;
85
+ interview: z.ZodNumber;
86
86
  won: z.ZodNumber;
87
87
  }, "strip", z.ZodTypeAny, {
88
88
  jobsAnalyzed: number;
89
89
  contacted: number;
90
90
  viewed: number;
91
91
  replied: number;
92
+ interview: number;
92
93
  won: number;
93
- negotiations: number;
94
94
  }, {
95
95
  jobsAnalyzed: number;
96
96
  contacted: number;
97
97
  viewed: number;
98
98
  replied: number;
99
+ interview: number;
99
100
  won: number;
100
- negotiations: number;
101
101
  }>;
102
102
  export declare const campaignActivitySchema: z.ZodObject<{
103
103
  createdAt: z.ZodNumber;
104
104
  status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>;
105
- job: z.ZodObject<Pick<{
105
+ lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
106
106
  id: z.ZodNullable<z.ZodString>;
107
107
  uid: z.ZodNullable<z.ZodString>;
108
108
  createdAt: z.ZodNullable<z.ZodNumber>;
@@ -399,7 +399,31 @@ export declare const campaignActivitySchema: z.ZodObject<{
399
399
  invitesSent: number;
400
400
  unansweredInvites: number;
401
401
  }>>>;
402
- }, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
402
+ }, {
403
+ jobId: z.ZodString;
404
+ updatedAt: z.ZodNullable<z.ZodNumber>;
405
+ suitabilityRating: z.ZodNullable<z.ZodNumber>;
406
+ suitabilityReason: z.ZodNullable<z.ZodString>;
407
+ proposal: z.ZodNullable<z.ZodString>;
408
+ proposalId: z.ZodOptional<z.ZodString>;
409
+ questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
410
+ question: z.ZodString;
411
+ answer: z.ZodString;
412
+ }, "strip", z.ZodTypeAny, {
413
+ question: string;
414
+ answer: string;
415
+ }, {
416
+ question: string;
417
+ answer: string;
418
+ }>, "many">>;
419
+ agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
420
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>>;
421
+ biddingAmount: z.ZodNullable<z.ZodNumber>;
422
+ boosted: z.ZodNullable<z.ZodBoolean>;
423
+ boostingAmount: z.ZodNullable<z.ZodNumber>;
424
+ biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
425
+ scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
426
+ }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
403
427
  id: string | null;
404
428
  title: string | null;
405
429
  datetime: number | null;
@@ -413,7 +437,7 @@ export declare const campaignActivitySchema: z.ZodObject<{
413
437
  }, "strip", z.ZodTypeAny, {
414
438
  status: "contacted" | "viewed" | "replied" | "interview" | "won" | "leads" | "lost";
415
439
  createdAt: number;
416
- job: {
440
+ lead: {
417
441
  id: string | null;
418
442
  title: string | null;
419
443
  datetime: number | null;
@@ -422,7 +446,7 @@ export declare const campaignActivitySchema: z.ZodObject<{
422
446
  }, {
423
447
  status: "contacted" | "viewed" | "replied" | "interview" | "won" | "leads" | "lost";
424
448
  createdAt: number;
425
- job: {
449
+ lead: {
426
450
  id: string | null;
427
451
  title: string | null;
428
452
  datetime: number | null;
@@ -432,7 +456,7 @@ export declare const campaignActivitySchema: z.ZodObject<{
432
456
  export declare const campaignActivityCreateSchema: z.ZodObject<Pick<{
433
457
  createdAt: z.ZodNumber;
434
458
  status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>;
435
- job: z.ZodObject<Pick<{
459
+ lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
436
460
  id: z.ZodNullable<z.ZodString>;
437
461
  uid: z.ZodNullable<z.ZodString>;
438
462
  createdAt: z.ZodNullable<z.ZodNumber>;
@@ -729,7 +753,31 @@ export declare const campaignActivityCreateSchema: z.ZodObject<Pick<{
729
753
  invitesSent: number;
730
754
  unansweredInvites: number;
731
755
  }>>>;
732
- }, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
756
+ }, {
757
+ jobId: z.ZodString;
758
+ updatedAt: z.ZodNullable<z.ZodNumber>;
759
+ suitabilityRating: z.ZodNullable<z.ZodNumber>;
760
+ suitabilityReason: z.ZodNullable<z.ZodString>;
761
+ proposal: z.ZodNullable<z.ZodString>;
762
+ proposalId: z.ZodOptional<z.ZodString>;
763
+ questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
764
+ question: z.ZodString;
765
+ answer: z.ZodString;
766
+ }, "strip", z.ZodTypeAny, {
767
+ question: string;
768
+ answer: string;
769
+ }, {
770
+ question: string;
771
+ answer: string;
772
+ }>, "many">>;
773
+ agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
774
+ leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "viewed", "replied", "interview", "won", "lost"]>>;
775
+ biddingAmount: z.ZodNullable<z.ZodNumber>;
776
+ boosted: z.ZodNullable<z.ZodBoolean>;
777
+ boostingAmount: z.ZodNullable<z.ZodNumber>;
778
+ biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
779
+ scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
780
+ }>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
733
781
  id: string | null;
734
782
  title: string | null;
735
783
  datetime: number | null;
@@ -740,9 +788,9 @@ export declare const campaignActivityCreateSchema: z.ZodObject<Pick<{
740
788
  datetime: number | null;
741
789
  jobUrl: string | null;
742
790
  }>;
743
- }, "status" | "job">, "strip", z.ZodTypeAny, {
791
+ }, "status" | "lead">, "strip", z.ZodTypeAny, {
744
792
  status: "contacted" | "viewed" | "replied" | "interview" | "won" | "leads" | "lost";
745
- job: {
793
+ lead: {
746
794
  id: string | null;
747
795
  title: string | null;
748
796
  datetime: number | null;
@@ -750,7 +798,7 @@ export declare const campaignActivityCreateSchema: z.ZodObject<Pick<{
750
798
  };
751
799
  }, {
752
800
  status: "contacted" | "viewed" | "replied" | "interview" | "won" | "leads" | "lost";
753
- job: {
801
+ lead: {
754
802
  id: string | null;
755
803
  title: string | null;
756
804
  datetime: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.14",
3
+ "version": "1.2.15",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",