lancer-shared 1.2.144 → 1.2.146

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.
@@ -12959,7 +12959,7 @@ const campaignStatusSchema = z.union([
12959
12959
  z.literal('paused'),
12960
12960
  z.literal('error'),
12961
12961
  ]);
12962
- const biddingHourlyRateStrategy = z.enum([
12962
+ const biddingHourlyRateStrategyEnum = z.enum([
12963
12963
  'match_job_budget',
12964
12964
  'match_profile_rate',
12965
12965
  'fixed_rate',
@@ -12980,7 +12980,7 @@ const campaignSchema = z.object({
12980
12980
  // suitabilityThreshold: z.number().min(0).max(100).nullable().default(0),
12981
12981
  boostingThreshold: z.number().min(0).max(100).nullable().default(0),
12982
12982
  biddingDelayInMinutes: z.number().default(5),
12983
- biddingHourlyRateStrategy: biddingHourlyRateStrategy,
12983
+ biddingHourlyRateStrategy: biddingHourlyRateStrategyEnum,
12984
12984
  biddingFixedHourlyRate: z.number().nullable(),
12985
12985
  bidWithWarning: bidWithWarningEnum,
12986
12986
  leadCounts: z.record(leadStatusSchema, z.number()).nullable(),
@@ -13256,7 +13256,7 @@ const bidPayloadProposalDataSchema = z.object({
13256
13256
  questionAnswerPairs: questionAnswerPairSchema.array().nullable(),
13257
13257
  boostingEnabled: z.boolean(),
13258
13258
  maximumBoost: z.number().nullable(),
13259
- biddingHourlyRateStrategy: biddingHourlyRateStrategy,
13259
+ biddingHourlyRateStrategy: biddingHourlyRateStrategyEnum,
13260
13260
  biddingFixedHourlyRate: z.number().nullable(),
13261
13261
  isHourlyRate: z.boolean(),
13262
13262
  jobMaxHourlyRate: z.number().nullable(),
@@ -13864,7 +13864,11 @@ const jobScrapedEventMetadata = objectType({
13864
13864
  const scrapeJobDetailsFailedEventMetadata = objectType({
13865
13865
  listing: jobListingSchema,
13866
13866
  region: regionSchema,
13867
- error: stringType(),
13867
+ accountId: stringType(),
13868
+ accountEmail: stringType(),
13869
+ errorMessage: stringType(),
13870
+ errorCode: stringType(),
13871
+ errorStack: stringType(),
13868
13872
  });
13869
13873
  const scrapeJobsDetailsStartedEventMetadata = objectType({
13870
13874
  region: regionSchema,
@@ -14686,7 +14690,7 @@ exports.bidderInstanceSchema = bidderInstanceSchema;
14686
14690
  exports.bidderInstanceStatusEnum = bidderInstanceStatusEnum;
14687
14691
  exports.biddingCompletedEventMetadata = biddingCompletedEventMetadata;
14688
14692
  exports.biddingFailedEventMetadata = biddingFailedEventMetadata;
14689
- exports.biddingHourlyRateStrategy = biddingHourlyRateStrategy;
14693
+ exports.biddingHourlyRateStrategyEnum = biddingHourlyRateStrategyEnum;
14690
14694
  exports.biddingRejectedWithFeedbackEventMetadata = biddingRejectedWithFeedbackEventMetadata;
14691
14695
  exports.booleanSchema = booleanSchema;
14692
14696
  exports.buildRoute = buildRoute;
@@ -18,7 +18,7 @@ export declare const bidConfigSchema: z.ZodObject<{
18
18
  specialisedProfile: string | null;
19
19
  }>;
20
20
  export declare const campaignStatusSchema: z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">]>;
21
- export declare const biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
21
+ export declare const biddingHourlyRateStrategyEnum: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
22
22
  export declare const bidWithWarningEnum: z.ZodEnum<["bid", "skip"]>;
23
23
  export declare const campaignSchema: z.ZodObject<{
24
24
  id: z.ZodString;
@@ -1428,7 +1428,9 @@ export declare const updateCampaignSchema: z.ZodObject<{
1428
1428
  instructions: string;
1429
1429
  } | null | undefined;
1430
1430
  }>;
1431
+ export type BiddingHourlyRateStrategy = z.infer<typeof biddingHourlyRateStrategyEnum>;
1431
1432
  export interface Campaign extends z.infer<typeof campaignSchema> {
1433
+ biddingHourlyRateStrategy: BiddingHourlyRateStrategy;
1432
1434
  }
1433
1435
  export type CampaignStatus = z.infer<typeof campaignStatusSchema>;
1434
1436
  export interface CreateCampaign extends z.infer<typeof createCampaignSchema> {
@@ -1441,4 +1443,3 @@ export interface UpdateCampaign extends z.infer<typeof updateCampaignSchema> {
1441
1443
  }
1442
1444
  export interface BidConfig extends infer<typeof bidConfigSchema> {
1443
1445
  }
1444
- export type BiddingHourlyRateStrategy = z.infer<typeof biddingHourlyRateStrategy>;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from "zod";
2
2
  export declare const scrapeFeedStartedEventMetadata: z.ZodObject<{
3
3
  region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
4
4
  accountId: z.ZodString;
@@ -1334,9 +1334,18 @@ export declare const scrapeJobDetailsFailedEventMetadata: z.ZodObject<{
1334
1334
  clientRelation?: any;
1335
1335
  }>;
1336
1336
  region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
1337
- error: z.ZodString;
1337
+ accountId: z.ZodString;
1338
+ accountEmail: z.ZodString;
1339
+ errorMessage: z.ZodString;
1340
+ errorCode: z.ZodString;
1341
+ errorStack: z.ZodString;
1338
1342
  }, "strip", z.ZodTypeAny, {
1339
1343
  region: "USOnly" | "UKOnly" | "Worldwide";
1344
+ accountId: string;
1345
+ accountEmail: string;
1346
+ errorMessage: string;
1347
+ errorCode: string;
1348
+ errorStack: string;
1340
1349
  listing: {
1341
1350
  type: number;
1342
1351
  uid: string;
@@ -1389,9 +1398,13 @@ export declare const scrapeJobDetailsFailedEventMetadata: z.ZodObject<{
1389
1398
  jobUrl?: string | undefined;
1390
1399
  clientRelation?: any;
1391
1400
  };
1392
- error: string;
1393
1401
  }, {
1394
1402
  region: "USOnly" | "UKOnly" | "Worldwide";
1403
+ accountId: string;
1404
+ accountEmail: string;
1405
+ errorMessage: string;
1406
+ errorCode: string;
1407
+ errorStack: string;
1395
1408
  listing: {
1396
1409
  type: number;
1397
1410
  uid: string;
@@ -1444,7 +1457,6 @@ export declare const scrapeJobDetailsFailedEventMetadata: z.ZodObject<{
1444
1457
  jobUrl?: string | undefined;
1445
1458
  clientRelation?: any;
1446
1459
  };
1447
- error: string;
1448
1460
  }>;
1449
1461
  export declare const scrapeJobsDetailsStartedEventMetadata: z.ZodObject<{
1450
1462
  region: z.ZodUnion<[z.ZodLiteral<"USOnly">, z.ZodLiteral<"UKOnly">, z.ZodLiteral<"Worldwide">]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.144",
3
+ "version": "1.2.146",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",