lancer-shared 1.2.257 → 1.2.259

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,6 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { LeadAgentStatus, LeadStatus } from './lead-status';
3
- import { ClientInfo, JobFilters, JobMetadata, JobSkill, VendorQualifications } from '../job';
2
+ import { JobFilters } from '../job';
4
3
  export declare const questionAnswerPairSchema: z.ZodObject<{
5
4
  question: z.ZodString;
6
5
  answer: z.ZodString;
@@ -343,6 +342,7 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
343
342
  bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
344
343
  rejectedFeedback: z.ZodNullable<z.ZodString>;
345
344
  applicationId: z.ZodNullable<z.ZodString>;
345
+ campaignName: z.ZodOptional<z.ZodString>;
346
346
  }>, "processed">, "strip", z.ZodTypeAny, {
347
347
  id: string | null;
348
348
  title: string | null;
@@ -481,6 +481,7 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
481
481
  } | null | undefined;
482
482
  proposalId?: string | undefined;
483
483
  wonAmount?: number | undefined;
484
+ campaignName?: string | undefined;
484
485
  }, {
485
486
  id: string | null;
486
487
  title: string | null;
@@ -619,6 +620,7 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
619
620
  } | null | undefined;
620
621
  proposalId?: string | undefined;
621
622
  wonAmount?: number | undefined;
623
+ campaignName?: string | undefined;
622
624
  }>;
623
625
  export declare const leadResponseSchema: z.ZodObject<{
624
626
  leads: z.ZodArray<z.ZodObject<Omit<z.objectUtil.extendShape<{
@@ -953,6 +955,7 @@ export declare const leadResponseSchema: z.ZodObject<{
953
955
  bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
954
956
  rejectedFeedback: z.ZodNullable<z.ZodString>;
955
957
  applicationId: z.ZodNullable<z.ZodString>;
958
+ campaignName: z.ZodOptional<z.ZodString>;
956
959
  }>, "processed">, "strip", z.ZodTypeAny, {
957
960
  id: string | null;
958
961
  title: string | null;
@@ -1091,6 +1094,7 @@ export declare const leadResponseSchema: z.ZodObject<{
1091
1094
  } | null | undefined;
1092
1095
  proposalId?: string | undefined;
1093
1096
  wonAmount?: number | undefined;
1097
+ campaignName?: string | undefined;
1094
1098
  }, {
1095
1099
  id: string | null;
1096
1100
  title: string | null;
@@ -1229,6 +1233,7 @@ export declare const leadResponseSchema: z.ZodObject<{
1229
1233
  } | null | undefined;
1230
1234
  proposalId?: string | undefined;
1231
1235
  wonAmount?: number | undefined;
1236
+ campaignName?: string | undefined;
1232
1237
  }>, "many">;
1233
1238
  nextCursor: z.ZodNullable<z.ZodString>;
1234
1239
  hasMore: z.ZodBoolean;
@@ -1372,6 +1377,7 @@ export declare const leadResponseSchema: z.ZodObject<{
1372
1377
  } | null | undefined;
1373
1378
  proposalId?: string | undefined;
1374
1379
  wonAmount?: number | undefined;
1380
+ campaignName?: string | undefined;
1375
1381
  }[];
1376
1382
  nextCursor: string | null;
1377
1383
  hasMore: boolean;
@@ -1515,6 +1521,7 @@ export declare const leadResponseSchema: z.ZodObject<{
1515
1521
  } | null | undefined;
1516
1522
  proposalId?: string | undefined;
1517
1523
  wonAmount?: number | undefined;
1524
+ campaignName?: string | undefined;
1518
1525
  }[];
1519
1526
  nextCursor: string | null;
1520
1527
  hasMore: boolean;
@@ -2389,6 +2396,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
2389
2396
  bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
2390
2397
  rejectedFeedback: z.ZodNullable<z.ZodString>;
2391
2398
  applicationId: z.ZodNullable<z.ZodString>;
2399
+ campaignName: z.ZodOptional<z.ZodString>;
2392
2400
  }>, "processed">, "strip", z.ZodTypeAny, {
2393
2401
  id: string | null;
2394
2402
  title: string | null;
@@ -2527,6 +2535,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
2527
2535
  } | null | undefined;
2528
2536
  proposalId?: string | undefined;
2529
2537
  wonAmount?: number | undefined;
2538
+ campaignName?: string | undefined;
2530
2539
  }, {
2531
2540
  id: string | null;
2532
2541
  title: string | null;
@@ -2665,6 +2674,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
2665
2674
  } | null | undefined;
2666
2675
  proposalId?: string | undefined;
2667
2676
  wonAmount?: number | undefined;
2677
+ campaignName?: string | undefined;
2668
2678
  }>]>, "many">;
2669
2679
  lastMonthTotal: z.ZodOptional<z.ZodNumber>;
2670
2680
  lastMonthTotalWithEmptyFilters: z.ZodOptional<z.ZodNumber>;
@@ -2919,6 +2929,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
2919
2929
  } | null | undefined;
2920
2930
  proposalId?: string | undefined;
2921
2931
  wonAmount?: number | undefined;
2932
+ campaignName?: string | undefined;
2922
2933
  })[];
2923
2934
  total: number;
2924
2935
  error?: string | undefined;
@@ -3174,6 +3185,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
3174
3185
  } | null | undefined;
3175
3186
  proposalId?: string | undefined;
3176
3187
  wonAmount?: number | undefined;
3188
+ campaignName?: string | undefined;
3177
3189
  })[];
3178
3190
  total: number;
3179
3191
  error?: string | undefined;
@@ -3185,13 +3197,16 @@ export declare const getCampaignLeadsRequestQuerySchema: z.ZodObject<{
3185
3197
  cursor: z.ZodOptional<z.ZodString>;
3186
3198
  limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3187
3199
  status: z.ZodOptional<z.ZodEnum<["all", "suitable", "contacted", "viewed", "replied"]>>;
3200
+ campaignId: z.ZodOptional<z.ZodString>;
3188
3201
  }, "strip", z.ZodTypeAny, {
3189
3202
  cursor?: string | undefined;
3190
3203
  status?: "all" | "contacted" | "viewed" | "replied" | "suitable" | undefined;
3204
+ campaignId?: string | undefined;
3191
3205
  limit?: number | undefined;
3192
3206
  }, {
3193
3207
  cursor?: string | undefined;
3194
3208
  status?: "all" | "contacted" | "viewed" | "replied" | "suitable" | undefined;
3209
+ campaignId?: string | undefined;
3195
3210
  limit?: number | undefined;
3196
3211
  }>;
3197
3212
  export declare const getCampaignLeadsResponseSchema: z.ZodObject<{
@@ -3527,6 +3542,7 @@ export declare const getCampaignLeadsResponseSchema: z.ZodObject<{
3527
3542
  bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
3528
3543
  rejectedFeedback: z.ZodNullable<z.ZodString>;
3529
3544
  applicationId: z.ZodNullable<z.ZodString>;
3545
+ campaignName: z.ZodOptional<z.ZodString>;
3530
3546
  }>, "processed">, "strip", z.ZodTypeAny, {
3531
3547
  id: string | null;
3532
3548
  title: string | null;
@@ -3665,6 +3681,7 @@ export declare const getCampaignLeadsResponseSchema: z.ZodObject<{
3665
3681
  } | null | undefined;
3666
3682
  proposalId?: string | undefined;
3667
3683
  wonAmount?: number | undefined;
3684
+ campaignName?: string | undefined;
3668
3685
  }, {
3669
3686
  id: string | null;
3670
3687
  title: string | null;
@@ -3803,6 +3820,7 @@ export declare const getCampaignLeadsResponseSchema: z.ZodObject<{
3803
3820
  } | null | undefined;
3804
3821
  proposalId?: string | undefined;
3805
3822
  wonAmount?: number | undefined;
3823
+ campaignName?: string | undefined;
3806
3824
  }>, "many">;
3807
3825
  pagination: z.ZodObject<{
3808
3826
  hasMore: z.ZodBoolean;
@@ -3956,6 +3974,7 @@ export declare const getCampaignLeadsResponseSchema: z.ZodObject<{
3956
3974
  } | null | undefined;
3957
3975
  proposalId?: string | undefined;
3958
3976
  wonAmount?: number | undefined;
3977
+ campaignName?: string | undefined;
3959
3978
  }[];
3960
3979
  pagination: {
3961
3980
  nextCursor: string | null;
@@ -4101,6 +4120,7 @@ export declare const getCampaignLeadsResponseSchema: z.ZodObject<{
4101
4120
  } | null | undefined;
4102
4121
  proposalId?: string | undefined;
4103
4122
  wonAmount?: number | undefined;
4123
+ campaignName?: string | undefined;
4104
4124
  }[];
4105
4125
  pagination: {
4106
4126
  nextCursor: string | null;
@@ -4120,15 +4140,7 @@ export declare const generateLeadCountsRequestSchema: z.ZodObject<{
4120
4140
  }>;
4121
4141
  export interface QuestionAnswerPair extends z.infer<typeof questionAnswerPairSchema> {
4122
4142
  }
4123
- export interface Lead extends z.infer<typeof leadSchema> {
4124
- clientInfo: ClientInfo | null;
4125
- metadata: JobMetadata | null;
4126
- skills: JobSkill[] | null;
4127
- vendorQualifications: VendorQualifications | null;
4128
- questionAnswerPairs: QuestionAnswerPair[] | null;
4129
- agentStatus: LeadAgentStatus | null;
4130
- leadStatus: LeadStatus | null;
4131
- }
4143
+ export type Lead = z.infer<typeof leadSchema>;
4132
4144
  export type LeadResponse = z.infer<typeof leadResponseSchema>;
4133
4145
  export type FindLeadsRequest = z.infer<typeof findLeadsRequestSchema>;
4134
4146
  export type FindLeadsResponse = z.infer<typeof findLeadsResponseSchema>;
@@ -1695,6 +1695,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1695
1695
  bidDecision: z.ZodNullable<z.ZodEnum<["proceeded", "rejected"]>>;
1696
1696
  rejectedFeedback: z.ZodNullable<z.ZodString>;
1697
1697
  applicationId: z.ZodNullable<z.ZodString>;
1698
+ campaignName: z.ZodOptional<z.ZodString>;
1698
1699
  }>, "processed">, "strip", z.ZodTypeAny, {
1699
1700
  id: string | null;
1700
1701
  title: string | null;
@@ -1833,6 +1834,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1833
1834
  } | null | undefined;
1834
1835
  proposalId?: string | undefined;
1835
1836
  wonAmount?: number | undefined;
1837
+ campaignName?: string | undefined;
1836
1838
  }, {
1837
1839
  id: string | null;
1838
1840
  title: string | null;
@@ -1971,6 +1973,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1971
1973
  } | null | undefined;
1972
1974
  proposalId?: string | undefined;
1973
1975
  wonAmount?: number | undefined;
1976
+ campaignName?: string | undefined;
1974
1977
  }>;
1975
1978
  bidder: z.ZodObject<{
1976
1979
  id: z.ZodString;
@@ -2279,6 +2282,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2279
2282
  } | null | undefined;
2280
2283
  proposalId?: string | undefined;
2281
2284
  wonAmount?: number | undefined;
2285
+ campaignName?: string | undefined;
2282
2286
  };
2283
2287
  campaign: {
2284
2288
  id: string;
@@ -2628,6 +2632,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2628
2632
  } | null | undefined;
2629
2633
  proposalId?: string | undefined;
2630
2634
  wonAmount?: number | undefined;
2635
+ campaignName?: string | undefined;
2631
2636
  };
2632
2637
  campaign: {
2633
2638
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.257",
3
+ "version": "1.2.259",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",