lancer-shared 1.2.44 → 1.2.45

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.
@@ -12882,10 +12882,12 @@ const baseActivitySchema = z.object({
12882
12882
  id: true,
12883
12883
  name: true,
12884
12884
  }),
12885
+ creditBalance: z.number(),
12885
12886
  });
12886
12887
  const campaignStatusActivityExtraSchema = z.object({
12887
12888
  type: z.literal("campaign_status"),
12888
12889
  status: z.enum(["started", "paused", "created", "error"]),
12890
+ creditBalance: z.number(),
12889
12891
  });
12890
12892
  const campaignStatusActivitySchema = baseActivitySchema.extend({
12891
12893
  ...campaignStatusActivityExtraSchema.shape,
@@ -12899,6 +12901,7 @@ const leadAnalysisActivityExtraSchema = z.object({
12899
12901
  jobUrl: true,
12900
12902
  }),
12901
12903
  suitabilityRating: z.number().min(0).max(100),
12904
+ creditBalance: z.number(),
12902
12905
  });
12903
12906
  const leadAnalysisActivitySchema = baseActivitySchema.extend({
12904
12907
  ...leadAnalysisActivityExtraSchema.shape,
@@ -12912,6 +12915,7 @@ const leadStatusActivityExtraSchema = z.object({
12912
12915
  datetime: true,
12913
12916
  jobUrl: true,
12914
12917
  }),
12918
+ creditBalance: z.number(),
12915
12919
  });
12916
12920
  const leadStatusActivitySchema = baseActivitySchema.extend({
12917
12921
  ...leadStatusActivityExtraSchema.shape,
@@ -12924,6 +12928,7 @@ const proposalSentActivityExtraSchema = z.object({
12924
12928
  datetime: true,
12925
12929
  jobUrl: true,
12926
12930
  }),
12931
+ creditBalance: z.number(),
12927
12932
  });
12928
12933
  const proposalSentActivitySchema = baseActivitySchema.extend({
12929
12934
  ...proposalSentActivityExtraSchema.shape,
@@ -630,9 +630,11 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
630
630
  id: string;
631
631
  name: string;
632
632
  }>;
633
+ creditBalance: z.ZodNumber;
633
634
  }, {
634
635
  type: z.ZodLiteral<"campaign_status">;
635
636
  status: z.ZodEnum<["started", "paused", "created", "error"]>;
637
+ creditBalance: z.ZodNumber;
636
638
  }>, "strip", z.ZodTypeAny, {
637
639
  type: "campaign_status";
638
640
  status: "paused" | "error" | "started" | "created";
@@ -645,6 +647,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
645
647
  id: string;
646
648
  name: string;
647
649
  };
650
+ creditBalance: number;
648
651
  }, {
649
652
  type: "campaign_status";
650
653
  status: "paused" | "error" | "started" | "created";
@@ -657,6 +660,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
657
660
  id: string;
658
661
  name: string;
659
662
  };
663
+ creditBalance: number;
660
664
  }>;
661
665
  export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extendShape<{
662
666
  createdAt: z.ZodNumber;
@@ -1135,6 +1139,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1135
1139
  id: string;
1136
1140
  name: string;
1137
1141
  }>;
1142
+ creditBalance: z.ZodNumber;
1138
1143
  }, {
1139
1144
  type: z.ZodLiteral<"lead_analysis">;
1140
1145
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
@@ -1471,6 +1476,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1471
1476
  jobUrl: string | null;
1472
1477
  }>;
1473
1478
  suitabilityRating: z.ZodNumber;
1479
+ creditBalance: z.ZodNumber;
1474
1480
  }>, "strip", z.ZodTypeAny, {
1475
1481
  type: "lead_analysis";
1476
1482
  createdAt: number;
@@ -1482,6 +1488,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1482
1488
  id: string;
1483
1489
  name: string;
1484
1490
  };
1491
+ creditBalance: number;
1485
1492
  suitabilityRating: number;
1486
1493
  lead: {
1487
1494
  id: string | null;
@@ -1500,6 +1507,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1500
1507
  id: string;
1501
1508
  name: string;
1502
1509
  };
1510
+ creditBalance: number;
1503
1511
  suitabilityRating: number;
1504
1512
  lead: {
1505
1513
  id: string | null;
@@ -1985,6 +1993,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
1985
1993
  id: string;
1986
1994
  name: string;
1987
1995
  }>;
1996
+ creditBalance: z.ZodNumber;
1988
1997
  }, {
1989
1998
  type: z.ZodLiteral<"lead_status">;
1990
1999
  status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>;
@@ -2321,6 +2330,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2321
2330
  datetime: number | null;
2322
2331
  jobUrl: string | null;
2323
2332
  }>;
2333
+ creditBalance: z.ZodNumber;
2324
2334
  }>, "strip", z.ZodTypeAny, {
2325
2335
  type: "lead_status";
2326
2336
  status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
@@ -2333,6 +2343,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2333
2343
  id: string;
2334
2344
  name: string;
2335
2345
  };
2346
+ creditBalance: number;
2336
2347
  lead: {
2337
2348
  id: string | null;
2338
2349
  title: string | null;
@@ -2351,6 +2362,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2351
2362
  id: string;
2352
2363
  name: string;
2353
2364
  };
2365
+ creditBalance: number;
2354
2366
  lead: {
2355
2367
  id: string | null;
2356
2368
  title: string | null;
@@ -2835,6 +2847,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
2835
2847
  id: string;
2836
2848
  name: string;
2837
2849
  }>;
2850
+ creditBalance: z.ZodNumber;
2838
2851
  }, {
2839
2852
  type: z.ZodLiteral<"proposal_sent">;
2840
2853
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
@@ -3170,6 +3183,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3170
3183
  datetime: number | null;
3171
3184
  jobUrl: string | null;
3172
3185
  }>;
3186
+ creditBalance: z.ZodNumber;
3173
3187
  }>, "strip", z.ZodTypeAny, {
3174
3188
  type: "proposal_sent";
3175
3189
  createdAt: number;
@@ -3181,6 +3195,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3181
3195
  id: string;
3182
3196
  name: string;
3183
3197
  };
3198
+ creditBalance: number;
3184
3199
  lead: {
3185
3200
  id: string | null;
3186
3201
  title: string | null;
@@ -3198,6 +3213,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3198
3213
  id: string;
3199
3214
  name: string;
3200
3215
  };
3216
+ creditBalance: number;
3201
3217
  lead: {
3202
3218
  id: string | null;
3203
3219
  title: string | null;
@@ -3682,9 +3698,11 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3682
3698
  id: string;
3683
3699
  name: string;
3684
3700
  }>;
3701
+ creditBalance: z.ZodNumber;
3685
3702
  }, {
3686
3703
  type: z.ZodLiteral<"campaign_status">;
3687
3704
  status: z.ZodEnum<["started", "paused", "created", "error"]>;
3705
+ creditBalance: z.ZodNumber;
3688
3706
  }>, "strip", z.ZodTypeAny, {
3689
3707
  type: "campaign_status";
3690
3708
  status: "paused" | "error" | "started" | "created";
@@ -3697,6 +3715,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3697
3715
  id: string;
3698
3716
  name: string;
3699
3717
  };
3718
+ creditBalance: number;
3700
3719
  }, {
3701
3720
  type: "campaign_status";
3702
3721
  status: "paused" | "error" | "started" | "created";
@@ -3709,6 +3728,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3709
3728
  id: string;
3710
3729
  name: string;
3711
3730
  };
3731
+ creditBalance: number;
3712
3732
  }>, z.ZodObject<z.objectUtil.extendShape<{
3713
3733
  createdAt: z.ZodNumber;
3714
3734
  organization: z.ZodObject<Pick<{
@@ -4186,6 +4206,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4186
4206
  id: string;
4187
4207
  name: string;
4188
4208
  }>;
4209
+ creditBalance: z.ZodNumber;
4189
4210
  }, {
4190
4211
  type: z.ZodLiteral<"lead_analysis">;
4191
4212
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
@@ -4522,6 +4543,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4522
4543
  jobUrl: string | null;
4523
4544
  }>;
4524
4545
  suitabilityRating: z.ZodNumber;
4546
+ creditBalance: z.ZodNumber;
4525
4547
  }>, "strip", z.ZodTypeAny, {
4526
4548
  type: "lead_analysis";
4527
4549
  createdAt: number;
@@ -4533,6 +4555,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4533
4555
  id: string;
4534
4556
  name: string;
4535
4557
  };
4558
+ creditBalance: number;
4536
4559
  suitabilityRating: number;
4537
4560
  lead: {
4538
4561
  id: string | null;
@@ -4551,6 +4574,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4551
4574
  id: string;
4552
4575
  name: string;
4553
4576
  };
4577
+ creditBalance: number;
4554
4578
  suitabilityRating: number;
4555
4579
  lead: {
4556
4580
  id: string | null;
@@ -5035,6 +5059,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5035
5059
  id: string;
5036
5060
  name: string;
5037
5061
  }>;
5062
+ creditBalance: z.ZodNumber;
5038
5063
  }, {
5039
5064
  type: z.ZodLiteral<"lead_status">;
5040
5065
  status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>;
@@ -5371,6 +5396,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5371
5396
  datetime: number | null;
5372
5397
  jobUrl: string | null;
5373
5398
  }>;
5399
+ creditBalance: z.ZodNumber;
5374
5400
  }>, "strip", z.ZodTypeAny, {
5375
5401
  type: "lead_status";
5376
5402
  status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
@@ -5383,6 +5409,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5383
5409
  id: string;
5384
5410
  name: string;
5385
5411
  };
5412
+ creditBalance: number;
5386
5413
  lead: {
5387
5414
  id: string | null;
5388
5415
  title: string | null;
@@ -5401,6 +5428,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5401
5428
  id: string;
5402
5429
  name: string;
5403
5430
  };
5431
+ creditBalance: number;
5404
5432
  lead: {
5405
5433
  id: string | null;
5406
5434
  title: string | null;
@@ -5884,6 +5912,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5884
5912
  id: string;
5885
5913
  name: string;
5886
5914
  }>;
5915
+ creditBalance: z.ZodNumber;
5887
5916
  }, {
5888
5917
  type: z.ZodLiteral<"proposal_sent">;
5889
5918
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
@@ -6219,6 +6248,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6219
6248
  datetime: number | null;
6220
6249
  jobUrl: string | null;
6221
6250
  }>;
6251
+ creditBalance: z.ZodNumber;
6222
6252
  }>, "strip", z.ZodTypeAny, {
6223
6253
  type: "proposal_sent";
6224
6254
  createdAt: number;
@@ -6230,6 +6260,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6230
6260
  id: string;
6231
6261
  name: string;
6232
6262
  };
6263
+ creditBalance: number;
6233
6264
  lead: {
6234
6265
  id: string | null;
6235
6266
  title: string | null;
@@ -6247,6 +6278,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6247
6278
  id: string;
6248
6279
  name: string;
6249
6280
  };
6281
+ creditBalance: number;
6250
6282
  lead: {
6251
6283
  id: string | null;
6252
6284
  title: string | null;
@@ -6257,12 +6289,15 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
6257
6289
  export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6258
6290
  type: z.ZodLiteral<"campaign_status">;
6259
6291
  status: z.ZodEnum<["started", "paused", "created", "error"]>;
6292
+ creditBalance: z.ZodNumber;
6260
6293
  }, "strip", z.ZodTypeAny, {
6261
6294
  type: "campaign_status";
6262
6295
  status: "paused" | "error" | "started" | "created";
6296
+ creditBalance: number;
6263
6297
  }, {
6264
6298
  type: "campaign_status";
6265
6299
  status: "paused" | "error" | "started" | "created";
6300
+ creditBalance: number;
6266
6301
  }>, z.ZodObject<{
6267
6302
  type: z.ZodLiteral<"lead_analysis">;
6268
6303
  lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
@@ -6599,8 +6634,10 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
6599
6634
  jobUrl: string | null;
6600
6635
  }>;
6601
6636
  suitabilityRating: z.ZodNumber;
6637
+ creditBalance: z.ZodNumber;
6602
6638
  }, "strip", z.ZodTypeAny, {
6603
6639
  type: "lead_analysis";
6640
+ creditBalance: number;
6604
6641
  suitabilityRating: number;
6605
6642
  lead: {
6606
6643
  id: string | null;
@@ -6610,6 +6647,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
6610
6647
  };
6611
6648
  }, {
6612
6649
  type: "lead_analysis";
6650
+ creditBalance: number;
6613
6651
  suitabilityRating: number;
6614
6652
  lead: {
6615
6653
  id: string | null;
@@ -6953,9 +6991,11 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
6953
6991
  datetime: number | null;
6954
6992
  jobUrl: string | null;
6955
6993
  }>;
6994
+ creditBalance: z.ZodNumber;
6956
6995
  }, "strip", z.ZodTypeAny, {
6957
6996
  type: "lead_status";
6958
6997
  status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
6998
+ creditBalance: number;
6959
6999
  lead: {
6960
7000
  id: string | null;
6961
7001
  title: string | null;
@@ -6965,6 +7005,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
6965
7005
  }, {
6966
7006
  type: "lead_status";
6967
7007
  status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
7008
+ creditBalance: number;
6968
7009
  lead: {
6969
7010
  id: string | null;
6970
7011
  title: string | null;
@@ -7306,8 +7347,10 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
7306
7347
  datetime: number | null;
7307
7348
  jobUrl: string | null;
7308
7349
  }>;
7350
+ creditBalance: z.ZodNumber;
7309
7351
  }, "strip", z.ZodTypeAny, {
7310
7352
  type: "proposal_sent";
7353
+ creditBalance: number;
7311
7354
  lead: {
7312
7355
  id: string | null;
7313
7356
  title: string | null;
@@ -7316,6 +7359,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
7316
7359
  };
7317
7360
  }, {
7318
7361
  type: "proposal_sent";
7362
+ creditBalance: number;
7319
7363
  lead: {
7320
7364
  id: string | null;
7321
7365
  title: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.44",
3
+ "version": "1.2.45",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",