lancer-shared 1.2.142 → 1.2.144

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.
@@ -12964,6 +12964,7 @@ const biddingHourlyRateStrategy = z.enum([
12964
12964
  'match_profile_rate',
12965
12965
  'fixed_rate',
12966
12966
  ]);
12967
+ const bidWithWarningEnum = z.enum(['bid', 'skip']);
12967
12968
  const campaignSchema = z.object({
12968
12969
  id: z.string(),
12969
12970
  name: z.string(),
@@ -12981,6 +12982,7 @@ const campaignSchema = z.object({
12981
12982
  biddingDelayInMinutes: z.number().default(5),
12982
12983
  biddingHourlyRateStrategy: biddingHourlyRateStrategy,
12983
12984
  biddingFixedHourlyRate: z.number().nullable(),
12985
+ bidWithWarning: bidWithWarningEnum,
12984
12986
  leadCounts: z.record(leadStatusSchema, z.number()).nullable(),
12985
12987
  expenses: campaignExpensesSchema,
12986
12988
  notificationsEnabled: z.boolean().nullable(),
@@ -13258,6 +13260,7 @@ const bidPayloadProposalDataSchema = z.object({
13258
13260
  biddingFixedHourlyRate: z.number().nullable(),
13259
13261
  isHourlyRate: z.boolean(),
13260
13262
  jobMaxHourlyRate: z.number().nullable(),
13263
+ bidWithWarning: bidWithWarningEnum,
13261
13264
  });
13262
13265
  const freelancerBidProposalDataSchema = bidPayloadProposalDataSchema;
13263
13266
  const agencyBidProposalDataSchema = bidPayloadProposalDataSchema.extend({
@@ -14673,6 +14676,7 @@ exports.bidPayloadProposalDataSchema = bidPayloadProposalDataSchema;
14673
14676
  exports.bidPayloadSchema = bidPayloadSchema;
14674
14677
  exports.bidRangeSchema = bidRangeSchema;
14675
14678
  exports.bidSuccessSchema = bidSuccessSchema;
14679
+ exports.bidWithWarningEnum = bidWithWarningEnum;
14676
14680
  exports.bidderAccountAgencySchema = bidderAccountAgencySchema;
14677
14681
  exports.bidderAccountAlreadyConnectedException = bidderAccountAlreadyConnectedException;
14678
14682
  exports.bidderAccountProvider = bidderAccountProvider;
@@ -18,6 +18,7 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
18
18
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
19
19
  isHourlyRate: z.ZodBoolean;
20
20
  jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
21
+ bidWithWarning: z.ZodEnum<["bid", "skip"]>;
21
22
  }, "strip", z.ZodTypeAny, {
22
23
  coverLetter: string;
23
24
  questionAnswerPairs: {
@@ -30,6 +31,7 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
30
31
  biddingFixedHourlyRate: number | null;
31
32
  isHourlyRate: boolean;
32
33
  jobMaxHourlyRate: number | null;
34
+ bidWithWarning: "bid" | "skip";
33
35
  }, {
34
36
  coverLetter: string;
35
37
  questionAnswerPairs: {
@@ -42,6 +44,7 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
42
44
  biddingFixedHourlyRate: number | null;
43
45
  isHourlyRate: boolean;
44
46
  jobMaxHourlyRate: number | null;
47
+ bidWithWarning: "bid" | "skip";
45
48
  }>;
46
49
  export declare const freelancerBidProposalDataSchema: z.ZodObject<{
47
50
  coverLetter: z.ZodString;
@@ -61,6 +64,7 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
61
64
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
62
65
  isHourlyRate: z.ZodBoolean;
63
66
  jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
67
+ bidWithWarning: z.ZodEnum<["bid", "skip"]>;
64
68
  }, "strip", z.ZodTypeAny, {
65
69
  coverLetter: string;
66
70
  questionAnswerPairs: {
@@ -73,6 +77,7 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
73
77
  biddingFixedHourlyRate: number | null;
74
78
  isHourlyRate: boolean;
75
79
  jobMaxHourlyRate: number | null;
80
+ bidWithWarning: "bid" | "skip";
76
81
  }, {
77
82
  coverLetter: string;
78
83
  questionAnswerPairs: {
@@ -85,6 +90,7 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
85
90
  biddingFixedHourlyRate: number | null;
86
91
  isHourlyRate: boolean;
87
92
  jobMaxHourlyRate: number | null;
93
+ bidWithWarning: "bid" | "skip";
88
94
  }>;
89
95
  export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.extendShape<{
90
96
  coverLetter: z.ZodString;
@@ -104,6 +110,7 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
104
110
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
105
111
  isHourlyRate: z.ZodBoolean;
106
112
  jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
113
+ bidWithWarning: z.ZodEnum<["bid", "skip"]>;
107
114
  }, {
108
115
  agencyName: z.ZodString;
109
116
  contractorName: z.ZodString;
@@ -120,6 +127,7 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
120
127
  biddingFixedHourlyRate: number | null;
121
128
  isHourlyRate: boolean;
122
129
  jobMaxHourlyRate: number | null;
130
+ bidWithWarning: "bid" | "skip";
123
131
  agencyName: string;
124
132
  contractorName: string;
125
133
  specializedProfile: string | null;
@@ -135,6 +143,7 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
135
143
  biddingFixedHourlyRate: number | null;
136
144
  isHourlyRate: boolean;
137
145
  jobMaxHourlyRate: number | null;
146
+ bidWithWarning: "bid" | "skip";
138
147
  agencyName: string;
139
148
  contractorName: string;
140
149
  specializedProfile: string | null;
@@ -1647,6 +1656,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
1647
1656
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
1648
1657
  isHourlyRate: z.ZodBoolean;
1649
1658
  jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
1659
+ bidWithWarning: z.ZodEnum<["bid", "skip"]>;
1650
1660
  }, {
1651
1661
  agencyName: z.ZodString;
1652
1662
  contractorName: z.ZodString;
@@ -1663,6 +1673,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
1663
1673
  biddingFixedHourlyRate: number | null;
1664
1674
  isHourlyRate: boolean;
1665
1675
  jobMaxHourlyRate: number | null;
1676
+ bidWithWarning: "bid" | "skip";
1666
1677
  agencyName: string;
1667
1678
  contractorName: string;
1668
1679
  specializedProfile: string | null;
@@ -1678,6 +1689,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
1678
1689
  biddingFixedHourlyRate: number | null;
1679
1690
  isHourlyRate: boolean;
1680
1691
  jobMaxHourlyRate: number | null;
1692
+ bidWithWarning: "bid" | "skip";
1681
1693
  agencyName: string;
1682
1694
  contractorName: string;
1683
1695
  specializedProfile: string | null;
@@ -1835,6 +1847,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
1835
1847
  biddingFixedHourlyRate: number | null;
1836
1848
  isHourlyRate: boolean;
1837
1849
  jobMaxHourlyRate: number | null;
1850
+ bidWithWarning: "bid" | "skip";
1838
1851
  agencyName: string;
1839
1852
  contractorName: string;
1840
1853
  specializedProfile: string | null;
@@ -1992,6 +2005,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
1992
2005
  biddingFixedHourlyRate: number | null;
1993
2006
  isHourlyRate: boolean;
1994
2007
  jobMaxHourlyRate: number | null;
2008
+ bidWithWarning: "bid" | "skip";
1995
2009
  agencyName: string;
1996
2010
  contractorName: string;
1997
2011
  specializedProfile: string | null;
@@ -2619,6 +2633,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
2619
2633
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
2620
2634
  isHourlyRate: z.ZodBoolean;
2621
2635
  jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
2636
+ bidWithWarning: z.ZodEnum<["bid", "skip"]>;
2622
2637
  }, "strip", z.ZodTypeAny, {
2623
2638
  coverLetter: string;
2624
2639
  questionAnswerPairs: {
@@ -2631,6 +2646,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
2631
2646
  biddingFixedHourlyRate: number | null;
2632
2647
  isHourlyRate: boolean;
2633
2648
  jobMaxHourlyRate: number | null;
2649
+ bidWithWarning: "bid" | "skip";
2634
2650
  }, {
2635
2651
  coverLetter: string;
2636
2652
  questionAnswerPairs: {
@@ -2643,6 +2659,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
2643
2659
  biddingFixedHourlyRate: number | null;
2644
2660
  isHourlyRate: boolean;
2645
2661
  jobMaxHourlyRate: number | null;
2662
+ bidWithWarning: "bid" | "skip";
2646
2663
  }>;
2647
2664
  }>, "strip", z.ZodTypeAny, {
2648
2665
  organizationId: string;
@@ -2797,6 +2814,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
2797
2814
  biddingFixedHourlyRate: number | null;
2798
2815
  isHourlyRate: boolean;
2799
2816
  jobMaxHourlyRate: number | null;
2817
+ bidWithWarning: "bid" | "skip";
2800
2818
  };
2801
2819
  }, {
2802
2820
  organizationId: string;
@@ -2951,6 +2969,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
2951
2969
  biddingFixedHourlyRate: number | null;
2952
2970
  isHourlyRate: boolean;
2953
2971
  jobMaxHourlyRate: number | null;
2972
+ bidWithWarning: "bid" | "skip";
2954
2973
  };
2955
2974
  }>;
2956
2975
  export declare const bidDtoSchema: z.ZodObject<{
@@ -19,6 +19,7 @@ export declare const bidConfigSchema: z.ZodObject<{
19
19
  }>;
20
20
  export declare const campaignStatusSchema: z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">]>;
21
21
  export declare const biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
22
+ export declare const bidWithWarningEnum: z.ZodEnum<["bid", "skip"]>;
22
23
  export declare const campaignSchema: z.ZodObject<{
23
24
  id: z.ZodString;
24
25
  name: z.ZodString;
@@ -259,6 +260,7 @@ export declare const campaignSchema: z.ZodObject<{
259
260
  biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
260
261
  biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
261
262
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
263
+ bidWithWarning: z.ZodEnum<["bid", "skip"]>;
262
264
  leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
263
265
  expenses: z.ZodObject<{
264
266
  biddingAmount: z.ZodDefault<z.ZodNumber>;
@@ -376,6 +378,7 @@ export declare const campaignSchema: z.ZodObject<{
376
378
  biddingDelayInMinutes: number;
377
379
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
378
380
  biddingFixedHourlyRate: number | null;
381
+ bidWithWarning: "bid" | "skip";
379
382
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
380
383
  expenses: {
381
384
  biddingAmount: number;
@@ -459,6 +462,7 @@ export declare const campaignSchema: z.ZodObject<{
459
462
  monthlyBudget: number | null;
460
463
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
461
464
  biddingFixedHourlyRate: number | null;
465
+ bidWithWarning: "bid" | "skip";
462
466
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
463
467
  expenses: {
464
468
  biddingAmount?: number | undefined;
@@ -746,6 +750,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
746
750
  biddingDelayInMinutes: z.ZodDefault<z.ZodNumber>;
747
751
  biddingHourlyRateStrategy: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>;
748
752
  biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
753
+ bidWithWarning: z.ZodEnum<["bid", "skip"]>;
749
754
  leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>;
750
755
  expenses: z.ZodObject<{
751
756
  biddingAmount: z.ZodDefault<z.ZodNumber>;
@@ -860,6 +865,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
860
865
  biddingDelayInMinutes: number;
861
866
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
862
867
  biddingFixedHourlyRate: number | null;
868
+ bidWithWarning: "bid" | "skip";
863
869
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
864
870
  expenses: {
865
871
  biddingAmount: number;
@@ -934,6 +940,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
934
940
  monthlyBudget: number | null;
935
941
  biddingHourlyRateStrategy: "match_job_budget" | "match_profile_rate" | "fixed_rate";
936
942
  biddingFixedHourlyRate: number | null;
943
+ bidWithWarning: "bid" | "skip";
937
944
  leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null;
938
945
  expenses: {
939
946
  biddingAmount?: number | undefined;
@@ -1195,6 +1202,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1195
1202
  biddingDelayInMinutes: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
1196
1203
  biddingHourlyRateStrategy: z.ZodOptional<z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate"]>>;
1197
1204
  biddingFixedHourlyRate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1205
+ bidWithWarning: z.ZodOptional<z.ZodEnum<["bid", "skip"]>>;
1198
1206
  leadCounts: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won"]>, z.ZodNumber>>>;
1199
1207
  expenses: z.ZodOptional<z.ZodObject<{
1200
1208
  biddingAmount: z.ZodDefault<z.ZodNumber>;
@@ -1310,6 +1318,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1310
1318
  biddingDelayInMinutes?: number | undefined;
1311
1319
  biddingHourlyRateStrategy?: "match_job_budget" | "match_profile_rate" | "fixed_rate" | undefined;
1312
1320
  biddingFixedHourlyRate?: number | null | undefined;
1321
+ bidWithWarning?: "bid" | "skip" | undefined;
1313
1322
  leadCounts?: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null | undefined;
1314
1323
  expenses?: {
1315
1324
  biddingAmount: number;
@@ -1395,6 +1404,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
1395
1404
  biddingDelayInMinutes?: number | undefined;
1396
1405
  biddingHourlyRateStrategy?: "match_job_budget" | "match_profile_rate" | "fixed_rate" | undefined;
1397
1406
  biddingFixedHourlyRate?: number | null | undefined;
1407
+ bidWithWarning?: "bid" | "skip" | undefined;
1398
1408
  leadCounts?: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won", number>> | null | undefined;
1399
1409
  expenses?: {
1400
1410
  biddingAmount?: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.142",
3
+ "version": "1.2.144",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",