lancer-shared 1.0.151 → 1.0.153

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.
@@ -24,11 +24,11 @@ export declare const bidderAccountSchema: z.ZodObject<{
24
24
  cookies: any[] | null;
25
25
  password: string;
26
26
  isActive: boolean;
27
+ multiLoginProfileId: string | null;
27
28
  provider: "user-provided" | "lancer-provided";
28
29
  verified: boolean;
29
30
  assignedOrganizations: string[];
30
31
  lastUsed: number | null;
31
- multiLoginProfileId: string | null;
32
32
  proxy: string | null;
33
33
  }, {
34
34
  id: string;
@@ -39,11 +39,11 @@ export declare const bidderAccountSchema: z.ZodObject<{
39
39
  cookies: any[] | null;
40
40
  password: string;
41
41
  isActive: boolean;
42
+ multiLoginProfileId: string | null;
42
43
  provider: "user-provided" | "lancer-provided";
43
44
  verified: boolean;
44
45
  assignedOrganizations: string[];
45
46
  lastUsed: number | null;
46
- multiLoginProfileId: string | null;
47
47
  proxy: string | null;
48
48
  }>;
49
49
  export declare const createBidderAccountSchema: z.ZodObject<Pick<{
@@ -84,11 +84,11 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
84
84
  cookies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
85
85
  password: z.ZodOptional<z.ZodString>;
86
86
  isActive: z.ZodOptional<z.ZodBoolean>;
87
+ multiLoginProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
88
  provider: z.ZodOptional<z.ZodEnum<["user-provided", "lancer-provided"]>>;
88
89
  verified: z.ZodOptional<z.ZodBoolean>;
89
90
  assignedOrganizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
90
91
  lastUsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
91
- multiLoginProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
92
  proxy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
93
  }, "strip", z.ZodTypeAny, {
94
94
  email?: string | undefined;
@@ -98,11 +98,11 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
98
98
  cookies?: any[] | null | undefined;
99
99
  password?: string | undefined;
100
100
  isActive?: boolean | undefined;
101
+ multiLoginProfileId?: string | null | undefined;
101
102
  provider?: "user-provided" | "lancer-provided" | undefined;
102
103
  verified?: boolean | undefined;
103
104
  assignedOrganizations?: string[] | undefined;
104
105
  lastUsed?: number | null | undefined;
105
- multiLoginProfileId?: string | null | undefined;
106
106
  proxy?: string | null | undefined;
107
107
  }, {
108
108
  email?: string | undefined;
@@ -112,10 +112,10 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
112
112
  cookies?: any[] | null | undefined;
113
113
  password?: string | undefined;
114
114
  isActive?: boolean | undefined;
115
+ multiLoginProfileId?: string | null | undefined;
115
116
  provider?: "user-provided" | "lancer-provided" | undefined;
116
117
  verified?: boolean | undefined;
117
118
  assignedOrganizations?: string[] | undefined;
118
119
  lastUsed?: number | null | undefined;
119
- multiLoginProfileId?: string | null | undefined;
120
120
  proxy?: string | null | undefined;
121
121
  }>;
@@ -116,26 +116,26 @@ export declare const bidPayloadSchema: z.ZodObject<{
116
116
  username: z.ZodString;
117
117
  password: z.ZodString;
118
118
  cookies: z.ZodArray<z.ZodAny, "many">;
119
- profileId: z.ZodString;
119
+ multiLoginProfileId: z.ZodString;
120
120
  }, "strip", z.ZodTypeAny, {
121
121
  username: string;
122
122
  cookies: any[];
123
123
  password: string;
124
124
  jobUrl: string;
125
- profileId: string;
125
+ multiLoginProfileId: string;
126
126
  }, {
127
127
  username: string;
128
128
  cookies: any[];
129
129
  password: string;
130
130
  jobUrl: string;
131
- profileId: string;
131
+ multiLoginProfileId: string;
132
132
  }>;
133
133
  export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShape<{
134
134
  jobUrl: z.ZodString;
135
135
  username: z.ZodString;
136
136
  password: z.ZodString;
137
137
  cookies: z.ZodArray<z.ZodAny, "many">;
138
- profileId: z.ZodString;
138
+ multiLoginProfileId: z.ZodString;
139
139
  }, {
140
140
  proposalData: z.ZodObject<z.objectUtil.extendShape<{
141
141
  coverLetter: z.ZodString;
@@ -186,7 +186,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
186
186
  cookies: any[];
187
187
  password: string;
188
188
  jobUrl: string;
189
- profileId: string;
189
+ multiLoginProfileId: string;
190
190
  proposalData: {
191
191
  coverLetter: string;
192
192
  questionAnswerPairs: {
@@ -205,7 +205,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
205
205
  cookies: any[];
206
206
  password: string;
207
207
  jobUrl: string;
208
- profileId: string;
208
+ multiLoginProfileId: string;
209
209
  proposalData: {
210
210
  coverLetter: string;
211
211
  questionAnswerPairs: {
@@ -225,7 +225,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
225
225
  username: z.ZodString;
226
226
  password: z.ZodString;
227
227
  cookies: z.ZodArray<z.ZodAny, "many">;
228
- profileId: z.ZodString;
228
+ multiLoginProfileId: z.ZodString;
229
229
  }, {
230
230
  proposalData: z.ZodObject<{
231
231
  coverLetter: z.ZodString;
@@ -266,7 +266,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
266
266
  cookies: any[];
267
267
  password: string;
268
268
  jobUrl: string;
269
- profileId: string;
269
+ multiLoginProfileId: string;
270
270
  proposalData: {
271
271
  coverLetter: string;
272
272
  questionAnswerPairs: {
@@ -282,7 +282,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
282
282
  cookies: any[];
283
283
  password: string;
284
284
  jobUrl: string;
285
- profileId: string;
285
+ multiLoginProfileId: string;
286
286
  proposalData: {
287
287
  coverLetter: string;
288
288
  questionAnswerPairs: {
@@ -21,7 +21,7 @@ exports.bidPayloadSchema = zod_1.z.object({
21
21
  username: zod_1.z.string(),
22
22
  password: zod_1.z.string(),
23
23
  cookies: zod_1.z.array(zod_1.z.any()),
24
- profileId: zod_1.z.string(),
24
+ multiLoginProfileId: zod_1.z.string(),
25
25
  });
26
26
  exports.agencyBidPayloadSchema = exports.bidPayloadSchema.extend({
27
27
  proposalData: exports.agencyBidProposalDataSchema,
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import { z } from 'zod';
2
2
  export declare const campaignStatusSchema: z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">]>;
3
3
  export declare const campaignSchema: z.ZodObject<{
4
4
  id: z.ZodString;
@@ -232,6 +232,7 @@ export declare const campaignSchema: z.ZodObject<{
232
232
  }>;
233
233
  createdAt: z.ZodNumber;
234
234
  updatedAt: z.ZodNumber;
235
+ confirmedBillingAt: z.ZodNullable<z.ZodNumber>;
235
236
  automatedSuitability: z.ZodNullable<z.ZodBoolean>;
236
237
  automatedBidding: z.ZodNullable<z.ZodBoolean>;
237
238
  boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
@@ -353,6 +354,7 @@ export declare const campaignSchema: z.ZodObject<{
353
354
  } | null;
354
355
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
355
356
  };
357
+ confirmedBillingAt: number | null;
356
358
  automatedSuitability: boolean | null;
357
359
  automatedBidding: boolean | null;
358
360
  boostingEnabled: boolean | null;
@@ -435,6 +437,7 @@ export declare const campaignSchema: z.ZodObject<{
435
437
  } | null;
436
438
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
437
439
  };
440
+ confirmedBillingAt: number | null;
438
441
  automatedSuitability: boolean | null;
439
442
  automatedBidding: boolean | null;
440
443
  webhookUrl: string | null;
@@ -693,6 +696,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
693
696
  }>;
694
697
  createdAt: z.ZodNumber;
695
698
  updatedAt: z.ZodNumber;
699
+ confirmedBillingAt: z.ZodNullable<z.ZodNumber>;
696
700
  automatedSuitability: z.ZodNullable<z.ZodBoolean>;
697
701
  automatedBidding: z.ZodNullable<z.ZodBoolean>;
698
702
  boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
@@ -811,6 +815,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
811
815
  } | null;
812
816
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
813
817
  };
818
+ confirmedBillingAt: number | null;
814
819
  automatedSuitability: boolean | null;
815
820
  automatedBidding: boolean | null;
816
821
  boostingEnabled: boolean | null;
@@ -890,6 +895,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
890
895
  } | null;
891
896
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
892
897
  };
898
+ confirmedBillingAt: number | null;
893
899
  automatedSuitability: boolean | null;
894
900
  automatedBidding: boolean | null;
895
901
  webhookUrl: string | null;
@@ -1148,6 +1154,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1148
1154
  }>;
1149
1155
  createdAt: z.ZodNumber;
1150
1156
  updatedAt: z.ZodNumber;
1157
+ confirmedBillingAt: z.ZodNullable<z.ZodNumber>;
1151
1158
  automatedSuitability: z.ZodNullable<z.ZodBoolean>;
1152
1159
  automatedBidding: z.ZodNullable<z.ZodBoolean>;
1153
1160
  boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
@@ -1267,6 +1274,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1267
1274
  } | null;
1268
1275
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
1269
1276
  };
1277
+ confirmedBillingAt: number | null;
1270
1278
  automatedSuitability: boolean | null;
1271
1279
  automatedBidding: boolean | null;
1272
1280
  boostingEnabled: boolean | null;
@@ -1347,6 +1355,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1347
1355
  } | null;
1348
1356
  engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
1349
1357
  };
1358
+ confirmedBillingAt: number | null;
1350
1359
  automatedSuitability: boolean | null;
1351
1360
  automatedBidding: boolean | null;
1352
1361
  webhookUrl: string | null;
@@ -7,10 +7,10 @@ const lead_1 = require("../lead");
7
7
  const campaign_expenses_1 = require("./campaign-expenses");
8
8
  const campaign_integrations_1 = require("./campaign-integrations");
9
9
  exports.campaignStatusSchema = zod_1.z.union([
10
- zod_1.z.literal("active"),
11
- zod_1.z.literal("draft"),
12
- zod_1.z.literal("paused"),
13
- zod_1.z.literal("error"),
10
+ zod_1.z.literal('active'),
11
+ zod_1.z.literal('draft'),
12
+ zod_1.z.literal('paused'),
13
+ zod_1.z.literal('error'),
14
14
  ]);
15
15
  exports.campaignSchema = zod_1.z.object({
16
16
  id: zod_1.z.string(),
@@ -18,6 +18,7 @@ exports.campaignSchema = zod_1.z.object({
18
18
  filters: job_filters_1.jobFiltersSchema,
19
19
  createdAt: (0, zod_1.number)(),
20
20
  updatedAt: (0, zod_1.number)(),
21
+ confirmedBillingAt: (0, zod_1.number)().nullable(),
21
22
  automatedSuitability: zod_1.z.boolean().nullable(),
22
23
  automatedBidding: zod_1.z.boolean().nullable(),
23
24
  boostingEnabled: zod_1.z.boolean().nullable().default(false),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.151",
4
+ "version": "1.0.153",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",