lancer-shared 1.0.140 → 1.0.141

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.
@@ -303,3 +303,16 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
303
303
  minimumBoost: number | null;
304
304
  };
305
305
  }>;
306
+ export declare const bidDtoSchema: z.ZodObject<{
307
+ organizationId: z.ZodString;
308
+ campaignId: z.ZodString;
309
+ leadId: z.ZodString;
310
+ }, "strip", z.ZodTypeAny, {
311
+ organizationId: string;
312
+ campaignId: string;
313
+ leadId: string;
314
+ }, {
315
+ organizationId: string;
316
+ campaignId: string;
317
+ leadId: string;
318
+ }>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.freelancerBidPayloadSchema = exports.agencyBidPayloadSchema = exports.bidPayloadSchema = exports.agencyBidProposalDataSchema = exports.freelancerBidProposalDataSchema = exports.bidPayloadProposalDataSchema = void 0;
3
+ exports.bidDtoSchema = exports.freelancerBidPayloadSchema = exports.agencyBidPayloadSchema = exports.bidPayloadSchema = exports.agencyBidProposalDataSchema = exports.freelancerBidProposalDataSchema = exports.bidPayloadProposalDataSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const ai_1 = require("../ai");
6
6
  exports.bidPayloadProposalDataSchema = zod_1.z.object({
@@ -30,3 +30,8 @@ exports.agencyBidPayloadSchema = exports.bidPayloadSchema.extend({
30
30
  exports.freelancerBidPayloadSchema = exports.bidPayloadSchema.extend({
31
31
  proposalData: exports.freelancerBidProposalDataSchema,
32
32
  });
33
+ exports.bidDtoSchema = zod_1.z.object({
34
+ organizationId: zod_1.z.string(),
35
+ campaignId: zod_1.z.string(),
36
+ leadId: zod_1.z.string(),
37
+ });
@@ -17,10 +17,10 @@ export declare const logEventSchema: z.ZodObject<{
17
17
  source: string;
18
18
  metadata: Record<string, unknown> | null;
19
19
  timestamp: number;
20
+ campaignId: string | null;
21
+ leadId: string | null;
20
22
  resourceType: string;
21
23
  resourceId: string | null;
22
- leadId: string | null;
23
- campaignId: string | null;
24
24
  userId: string | null;
25
25
  }, {
26
26
  type: "suitabilityPending" | "suitabilityProcessing" | "suitabilityComplete" | "suitabilityFailed" | "proposalProcessing" | "proposalComplete" | "proposalFailed" | "biddingProcessing" | "biddingComplete" | "biddingFailed" | "scraperStarted" | "scraperCompleted" | "jobScraped" | "jobsIndexed" | "jobDuplicateSkipped" | "scraperFailed" | "jobSyncPublished" | "jobSyncReceived" | "leadsCreatedAndSynced" | "manualSuitabilityAnalyzed" | "manualProposalGenerated" | "biddingSkipped" | "biddingPending" | "errorLogged" | "cloudTaskRetry" | "manualLeadEdited" | "leadArchived" | "auditTrailLogged";
@@ -28,9 +28,9 @@ export declare const logEventSchema: z.ZodObject<{
28
28
  source: string;
29
29
  metadata: Record<string, unknown> | null;
30
30
  timestamp: number;
31
- resourceId: string | null;
32
- leadId: string | null;
33
31
  campaignId: string | null;
32
+ leadId: string | null;
33
+ resourceId: string | null;
34
34
  userId: string | null;
35
35
  resourceType?: string | undefined;
36
36
  }>;
@@ -1,8 +1,9 @@
1
1
  import { z } from 'zod';
2
- import { agencyBidPayloadSchema, agencyBidProposalDataSchema, bidPayloadProposalDataSchema, bidPayloadSchema, freelancerBidPayloadSchema, freelancerBidProposalDataSchema } from '../../schemas/bid';
2
+ import { agencyBidPayloadSchema, agencyBidProposalDataSchema, bidDtoSchema, bidPayloadProposalDataSchema, bidPayloadSchema, freelancerBidPayloadSchema, freelancerBidProposalDataSchema } from '../../schemas/bid';
3
3
  export type BidPayload = z.infer<typeof bidPayloadSchema>;
4
4
  export type BidProposalData = z.infer<typeof bidPayloadProposalDataSchema>;
5
5
  export type AgencyBidPayload = z.infer<typeof agencyBidPayloadSchema>;
6
6
  export type FreelancerBidPayload = z.infer<typeof freelancerBidPayloadSchema>;
7
7
  export type AgencyBidProposalData = z.infer<typeof agencyBidProposalDataSchema>;
8
8
  export type FreelancerBidProposalData = z.infer<typeof freelancerBidProposalDataSchema>;
9
+ export type BidDto = z.infer<typeof bidDtoSchema>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.140",
4
+ "version": "1.0.141",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",