lancer-shared 1.2.215 → 1.2.217

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.
@@ -11196,7 +11196,7 @@ const jobFiltersSchema = z.object({
11196
11196
  })
11197
11197
  .nullable(),
11198
11198
  includeClientsWithZeroReviews: z.boolean().nullable(),
11199
- includeClientsWithLessThanPostedJobs: z.boolean().nullable(),
11199
+ includeClientsWithLessThanXPostedJobs: z.number().nullable(),
11200
11200
  vendorQualifications: z
11201
11201
  .object({
11202
11202
  locationIncludes: z.array(z.string()).nullable(),
@@ -1,6 +1,5 @@
1
1
  import { infer, z } from 'zod';
2
2
  import { JobFilters } from '../job';
3
- import { CampaignExpenses } from './campaign-expenses';
4
3
  export declare const bidConfigSchema: z.ZodObject<{
5
4
  agencyName: z.ZodNullable<z.ZodString>;
6
5
  bidderId: z.ZodNullable<z.ZodString>;
@@ -181,6 +180,7 @@ export declare const campaignSchema: z.ZodObject<{
181
180
  enterpriseClient?: "all" | "true" | "false" | undefined;
182
181
  }>>;
183
182
  includeClientsWithZeroReviews: z.ZodNullable<z.ZodBoolean>;
183
+ includeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
184
184
  vendorQualifications: z.ZodNullable<z.ZodObject<{
185
185
  locationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
186
186
  locationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
@@ -253,6 +253,7 @@ export declare const campaignSchema: z.ZodObject<{
253
253
  memberSinceTo: string | null;
254
254
  } | null;
255
255
  includeClientsWithZeroReviews: boolean | null;
256
+ includeClientsWithLessThanXPostedJobs: number | null;
256
257
  vendorQualifications: {
257
258
  locationIncludes: string[] | null;
258
259
  locationExcludes: string[] | null;
@@ -309,6 +310,7 @@ export declare const campaignSchema: z.ZodObject<{
309
310
  enterpriseClient?: "all" | "true" | "false" | undefined;
310
311
  } | null;
311
312
  includeClientsWithZeroReviews: boolean | null;
313
+ includeClientsWithLessThanXPostedJobs: number | null;
312
314
  vendorQualifications: {
313
315
  locationIncludes: string[] | null;
314
316
  locationExcludes: string[] | null;
@@ -335,7 +337,7 @@ export declare const campaignSchema: z.ZodObject<{
335
337
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
336
338
  biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
337
339
  bidWithWarning: z.ZodEnum<["bid", "skip"]>;
338
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "viewed", "replied", "won"]>, z.ZodNumber>>;
340
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "won"]>, z.ZodNumber>>;
339
341
  expenses: z.ZodObject<{
340
342
  biddingAmount: z.ZodDefault<z.ZodNumber>;
341
343
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -484,6 +486,7 @@ export declare const campaignSchema: z.ZodObject<{
484
486
  memberSinceTo: string | null;
485
487
  } | null;
486
488
  includeClientsWithZeroReviews: boolean | null;
489
+ includeClientsWithLessThanXPostedJobs: number | null;
487
490
  vendorQualifications: {
488
491
  locationIncludes: string[] | null;
489
492
  locationExcludes: string[] | null;
@@ -510,7 +513,7 @@ export declare const campaignSchema: z.ZodObject<{
510
513
  biddingFixedHourlyRate: number | null;
511
514
  biddingHourlyRatePercentage: number | null;
512
515
  bidWithWarning: "bid" | "skip";
513
- leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won", number>> | null;
516
+ leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "won", number>> | null;
514
517
  expenses: {
515
518
  biddingAmount: number;
516
519
  boostingAmount: number;
@@ -599,6 +602,7 @@ export declare const campaignSchema: z.ZodObject<{
599
602
  enterpriseClient?: "all" | "true" | "false" | undefined;
600
603
  } | null;
601
604
  includeClientsWithZeroReviews: boolean | null;
605
+ includeClientsWithLessThanXPostedJobs: number | null;
602
606
  vendorQualifications: {
603
607
  locationIncludes: string[] | null;
604
608
  locationExcludes: string[] | null;
@@ -620,7 +624,7 @@ export declare const campaignSchema: z.ZodObject<{
620
624
  biddingFixedHourlyRate: number | null;
621
625
  biddingHourlyRatePercentage: number | null;
622
626
  bidWithWarning: "bid" | "skip";
623
- leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won", number>> | null;
627
+ leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "won", number>> | null;
624
628
  expenses: {
625
629
  biddingAmount?: number | undefined;
626
630
  boostingAmount?: number | undefined;
@@ -802,6 +806,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
802
806
  enterpriseClient?: "all" | "true" | "false" | undefined;
803
807
  }>>;
804
808
  includeClientsWithZeroReviews: z.ZodNullable<z.ZodBoolean>;
809
+ includeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
805
810
  vendorQualifications: z.ZodNullable<z.ZodObject<{
806
811
  locationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
807
812
  locationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
@@ -874,6 +879,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
874
879
  memberSinceTo: string | null;
875
880
  } | null;
876
881
  includeClientsWithZeroReviews: boolean | null;
882
+ includeClientsWithLessThanXPostedJobs: number | null;
877
883
  vendorQualifications: {
878
884
  locationIncludes: string[] | null;
879
885
  locationExcludes: string[] | null;
@@ -930,6 +936,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
930
936
  enterpriseClient?: "all" | "true" | "false" | undefined;
931
937
  } | null;
932
938
  includeClientsWithZeroReviews: boolean | null;
939
+ includeClientsWithLessThanXPostedJobs: number | null;
933
940
  vendorQualifications: {
934
941
  locationIncludes: string[] | null;
935
942
  locationExcludes: string[] | null;
@@ -956,7 +963,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
956
963
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
957
964
  biddingHourlyRatePercentage: z.ZodNullable<z.ZodNumber>;
958
965
  bidWithWarning: z.ZodEnum<["bid", "skip"]>;
959
- leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "viewed", "replied", "won"]>, z.ZodNumber>>;
966
+ leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "won"]>, z.ZodNumber>>;
960
967
  expenses: z.ZodObject<{
961
968
  biddingAmount: z.ZodDefault<z.ZodNumber>;
962
969
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -1104,6 +1111,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
1104
1111
  memberSinceTo: string | null;
1105
1112
  } | null;
1106
1113
  includeClientsWithZeroReviews: boolean | null;
1114
+ includeClientsWithLessThanXPostedJobs: number | null;
1107
1115
  vendorQualifications: {
1108
1116
  locationIncludes: string[] | null;
1109
1117
  locationExcludes: string[] | null;
@@ -1128,7 +1136,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
1128
1136
  biddingFixedHourlyRate: number | null;
1129
1137
  biddingHourlyRatePercentage: number | null;
1130
1138
  bidWithWarning: "bid" | "skip";
1131
- leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won", number>> | null;
1139
+ leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "won", number>> | null;
1132
1140
  expenses: {
1133
1141
  biddingAmount: number;
1134
1142
  boostingAmount: number;
@@ -1210,6 +1218,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
1210
1218
  enterpriseClient?: "all" | "true" | "false" | undefined;
1211
1219
  } | null;
1212
1220
  includeClientsWithZeroReviews: boolean | null;
1221
+ includeClientsWithLessThanXPostedJobs: number | null;
1213
1222
  vendorQualifications: {
1214
1223
  locationIncludes: string[] | null;
1215
1224
  locationExcludes: string[] | null;
@@ -1229,7 +1238,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
1229
1238
  biddingFixedHourlyRate: number | null;
1230
1239
  biddingHourlyRatePercentage: number | null;
1231
1240
  bidWithWarning: "bid" | "skip";
1232
- leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won", number>> | null;
1241
+ leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "won", number>> | null;
1233
1242
  expenses: {
1234
1243
  biddingAmount?: number | undefined;
1235
1244
  boostingAmount?: number | undefined;
@@ -1387,6 +1396,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1387
1396
  enterpriseClient?: "all" | "true" | "false" | undefined;
1388
1397
  }>>;
1389
1398
  includeClientsWithZeroReviews: z.ZodNullable<z.ZodBoolean>;
1399
+ includeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
1390
1400
  vendorQualifications: z.ZodNullable<z.ZodObject<{
1391
1401
  locationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
1392
1402
  locationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
@@ -1459,6 +1469,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1459
1469
  memberSinceTo: string | null;
1460
1470
  } | null;
1461
1471
  includeClientsWithZeroReviews: boolean | null;
1472
+ includeClientsWithLessThanXPostedJobs: number | null;
1462
1473
  vendorQualifications: {
1463
1474
  locationIncludes: string[] | null;
1464
1475
  locationExcludes: string[] | null;
@@ -1515,6 +1526,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1515
1526
  enterpriseClient?: "all" | "true" | "false" | undefined;
1516
1527
  } | null;
1517
1528
  includeClientsWithZeroReviews: boolean | null;
1529
+ includeClientsWithLessThanXPostedJobs: number | null;
1518
1530
  vendorQualifications: {
1519
1531
  locationIncludes: string[] | null;
1520
1532
  locationExcludes: string[] | null;
@@ -1539,7 +1551,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1539
1551
  biddingFixedHourlyRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1540
1552
  biddingHourlyRatePercentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1541
1553
  bidWithWarning: z.ZodOptional<z.ZodEnum<["bid", "skip"]>>;
1542
- leadCounts: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "viewed", "replied", "won"]>, z.ZodNumber>>>;
1554
+ leadCounts: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "dailyLimitReached", "boostAboveMaxConnects", "privateJob", "noLongerAvailable", "rejected", "alreadyBiddedOn", "viewed", "replied", "won"]>, z.ZodNumber>>>;
1543
1555
  expenses: z.ZodOptional<z.ZodObject<{
1544
1556
  biddingAmount: z.ZodDefault<z.ZodNumber>;
1545
1557
  boostingAmount: z.ZodDefault<z.ZodNumber>;
@@ -1688,6 +1700,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1688
1700
  memberSinceTo: string | null;
1689
1701
  } | null;
1690
1702
  includeClientsWithZeroReviews: boolean | null;
1703
+ includeClientsWithLessThanXPostedJobs: number | null;
1691
1704
  vendorQualifications: {
1692
1705
  locationIncludes: string[] | null;
1693
1706
  locationExcludes: string[] | null;
@@ -1712,7 +1725,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1712
1725
  biddingFixedHourlyRate?: number | null | undefined;
1713
1726
  biddingHourlyRatePercentage?: number | null | undefined;
1714
1727
  bidWithWarning?: "bid" | "skip" | undefined;
1715
- leadCounts?: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won", number>> | null | undefined;
1728
+ leadCounts?: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "won", number>> | null | undefined;
1716
1729
  expenses?: {
1717
1730
  biddingAmount: number;
1718
1731
  boostingAmount: number;
@@ -1801,6 +1814,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1801
1814
  enterpriseClient?: "all" | "true" | "false" | undefined;
1802
1815
  } | null;
1803
1816
  includeClientsWithZeroReviews: boolean | null;
1817
+ includeClientsWithLessThanXPostedJobs: number | null;
1804
1818
  vendorQualifications: {
1805
1819
  locationIncludes: string[] | null;
1806
1820
  locationExcludes: string[] | null;
@@ -1825,7 +1839,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1825
1839
  biddingFixedHourlyRate?: number | null | undefined;
1826
1840
  biddingHourlyRatePercentage?: number | null | undefined;
1827
1841
  bidWithWarning?: "bid" | "skip" | undefined;
1828
- leadCounts?: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "viewed" | "replied" | "won", number>> | null | undefined;
1842
+ leadCounts?: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "dailyLimitReached" | "boostAboveMaxConnects" | "privateJob" | "noLongerAvailable" | "rejected" | "alreadyBiddedOn" | "viewed" | "replied" | "won", number>> | null | undefined;
1829
1843
  expenses?: {
1830
1844
  biddingAmount?: number | undefined;
1831
1845
  boostingAmount?: number | undefined;
@@ -1871,14 +1885,8 @@ export interface Campaign extends z.infer<typeof campaignSchema> {
1871
1885
  count?: number;
1872
1886
  }
1873
1887
  export type CampaignStatus = z.infer<typeof campaignStatusSchema>;
1874
- export interface CreateCampaign extends z.infer<typeof createCampaignSchema> {
1875
- filters: JobFilters;
1876
- }
1877
- export interface UpdateCampaign extends z.infer<typeof updateCampaignSchema> {
1878
- filters?: JobFilters;
1879
- expenses?: CampaignExpenses;
1880
- bidConfig?: BidConfig;
1881
- }
1888
+ export type CreateCampaign = z.infer<typeof createCampaignSchema>;
1889
+ export type UpdateCampaign = z.infer<typeof updateCampaignSchema>;
1882
1890
  export interface BidConfig extends infer<typeof bidConfigSchema> {
1883
1891
  }
1884
1892
  export type WeekDays = z.infer<typeof weekDaysEnum>;
@@ -131,7 +131,7 @@ export declare const jobFiltersSchema: z.ZodObject<{
131
131
  enterpriseClient?: "all" | "true" | "false" | undefined;
132
132
  }>>;
133
133
  includeClientsWithZeroReviews: z.ZodNullable<z.ZodBoolean>;
134
- includeClientsWithLessThanPostedJobs: z.ZodNullable<z.ZodBoolean>;
134
+ includeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
135
135
  vendorQualifications: z.ZodNullable<z.ZodObject<{
136
136
  locationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
137
137
  locationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
@@ -204,7 +204,7 @@ export declare const jobFiltersSchema: z.ZodObject<{
204
204
  memberSinceTo: string | null;
205
205
  } | null;
206
206
  includeClientsWithZeroReviews: boolean | null;
207
- includeClientsWithLessThanPostedJobs: boolean | null;
207
+ includeClientsWithLessThanXPostedJobs: number | null;
208
208
  vendorQualifications: {
209
209
  locationIncludes: string[] | null;
210
210
  locationExcludes: string[] | null;
@@ -261,7 +261,7 @@ export declare const jobFiltersSchema: z.ZodObject<{
261
261
  enterpriseClient?: "all" | "true" | "false" | undefined;
262
262
  } | null;
263
263
  includeClientsWithZeroReviews: boolean | null;
264
- includeClientsWithLessThanPostedJobs: boolean | null;
264
+ includeClientsWithLessThanXPostedJobs: number | null;
265
265
  vendorQualifications: {
266
266
  locationIncludes: string[] | null;
267
267
  locationExcludes: string[] | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.215",
3
+ "version": "1.2.217",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",