lancer-shared 1.2.306 → 1.2.308
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.
- package/dist/bundle.cjs.js +8 -0
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +8 -1
- package/dist/bundle.esm.js.map +1 -1
- package/dist/schemas/account/bidder-account.d.ts +56 -0
- package/dist/schemas/campaign/campaign.d.ts +16 -0
- package/dist/schemas/logger/log-event.d.ts +20 -2
- package/package.json +1 -1
|
@@ -12,6 +12,16 @@ export declare const bidderAccountAgencyContractorSchema: z.ZodObject<{
|
|
|
12
12
|
name: string;
|
|
13
13
|
specializedProfiles: string[];
|
|
14
14
|
}>;
|
|
15
|
+
export declare const bidderAccountPortfolioSchema: z.ZodObject<{
|
|
16
|
+
title: z.ZodString;
|
|
17
|
+
imageUrl: z.ZodString;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
title: string;
|
|
20
|
+
imageUrl: string;
|
|
21
|
+
}, {
|
|
22
|
+
title: string;
|
|
23
|
+
imageUrl: string;
|
|
24
|
+
}>;
|
|
15
25
|
export declare const bidderAccountAgencySchema: z.ZodObject<{
|
|
16
26
|
name: z.ZodString;
|
|
17
27
|
logoUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -97,6 +107,16 @@ export declare const bidderAccountSchema: z.ZodObject<{
|
|
|
97
107
|
agencyId: string | null;
|
|
98
108
|
}>, "many">>;
|
|
99
109
|
specialisedProfiles: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
110
|
+
portfolios: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
111
|
+
title: z.ZodString;
|
|
112
|
+
imageUrl: z.ZodString;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
title: string;
|
|
115
|
+
imageUrl: string;
|
|
116
|
+
}, {
|
|
117
|
+
title: string;
|
|
118
|
+
imageUrl: string;
|
|
119
|
+
}>, "many">>;
|
|
100
120
|
instanceId: z.ZodNullable<z.ZodString>;
|
|
101
121
|
createdAt: z.ZodNumber;
|
|
102
122
|
updatedAt: z.ZodNumber;
|
|
@@ -131,6 +151,10 @@ export declare const bidderAccountSchema: z.ZodObject<{
|
|
|
131
151
|
agencyId: string | null;
|
|
132
152
|
}[] | null;
|
|
133
153
|
specialisedProfiles: string[] | null;
|
|
154
|
+
portfolios: {
|
|
155
|
+
title: string;
|
|
156
|
+
imageUrl: string;
|
|
157
|
+
}[] | null;
|
|
134
158
|
instanceId: string | null;
|
|
135
159
|
createdAt: number;
|
|
136
160
|
updatedAt: number;
|
|
@@ -165,6 +189,10 @@ export declare const bidderAccountSchema: z.ZodObject<{
|
|
|
165
189
|
agencyId: string | null;
|
|
166
190
|
}[] | null;
|
|
167
191
|
specialisedProfiles: string[] | null;
|
|
192
|
+
portfolios: {
|
|
193
|
+
title: string;
|
|
194
|
+
imageUrl: string;
|
|
195
|
+
}[] | null;
|
|
168
196
|
instanceId: string | null;
|
|
169
197
|
createdAt: number;
|
|
170
198
|
updatedAt: number;
|
|
@@ -243,6 +271,16 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
243
271
|
agencyId: string | null;
|
|
244
272
|
}>, "many">>;
|
|
245
273
|
specialisedProfiles: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
274
|
+
portfolios: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
275
|
+
title: z.ZodString;
|
|
276
|
+
imageUrl: z.ZodString;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
title: string;
|
|
279
|
+
imageUrl: string;
|
|
280
|
+
}, {
|
|
281
|
+
title: string;
|
|
282
|
+
imageUrl: string;
|
|
283
|
+
}>, "many">>;
|
|
246
284
|
instanceId: z.ZodNullable<z.ZodString>;
|
|
247
285
|
createdAt: z.ZodNumber;
|
|
248
286
|
updatedAt: z.ZodNumber;
|
|
@@ -348,6 +386,16 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
|
|
|
348
386
|
agencyId: string | null;
|
|
349
387
|
}>, "many">>>;
|
|
350
388
|
specialisedProfiles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
389
|
+
portfolios: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
390
|
+
title: z.ZodString;
|
|
391
|
+
imageUrl: z.ZodString;
|
|
392
|
+
}, "strip", z.ZodTypeAny, {
|
|
393
|
+
title: string;
|
|
394
|
+
imageUrl: string;
|
|
395
|
+
}, {
|
|
396
|
+
title: string;
|
|
397
|
+
imageUrl: string;
|
|
398
|
+
}>, "many">>>;
|
|
351
399
|
instanceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
352
400
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
353
401
|
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -381,6 +429,10 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
|
|
|
381
429
|
agencyId: string | null;
|
|
382
430
|
}[] | null | undefined;
|
|
383
431
|
specialisedProfiles?: string[] | null | undefined;
|
|
432
|
+
portfolios?: {
|
|
433
|
+
title: string;
|
|
434
|
+
imageUrl: string;
|
|
435
|
+
}[] | null | undefined;
|
|
384
436
|
instanceId?: string | null | undefined;
|
|
385
437
|
createdAt?: number | undefined;
|
|
386
438
|
updatedAt?: number | undefined;
|
|
@@ -414,6 +466,10 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
|
|
|
414
466
|
agencyId: string | null;
|
|
415
467
|
}[] | null | undefined;
|
|
416
468
|
specialisedProfiles?: string[] | null | undefined;
|
|
469
|
+
portfolios?: {
|
|
470
|
+
title: string;
|
|
471
|
+
imageUrl: string;
|
|
472
|
+
}[] | null | undefined;
|
|
417
473
|
instanceId?: string | null | undefined;
|
|
418
474
|
createdAt?: number | undefined;
|
|
419
475
|
updatedAt?: number | undefined;
|
|
@@ -7,18 +7,21 @@ export declare const bidConfigSchema: z.ZodObject<{
|
|
|
7
7
|
contractorName: z.ZodNullable<z.ZodString>;
|
|
8
8
|
specialisedProfile: z.ZodNullable<z.ZodString>;
|
|
9
9
|
bidAs: z.ZodNullable<z.ZodEnum<["agency", "freelancer"]>>;
|
|
10
|
+
selectedPortfoliosIds: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
10
11
|
}, "strip", z.ZodTypeAny, {
|
|
11
12
|
agencyName: string | null;
|
|
12
13
|
bidderId: string | null;
|
|
13
14
|
contractorName: string | null;
|
|
14
15
|
specialisedProfile: string | null;
|
|
15
16
|
bidAs: "agency" | "freelancer" | null;
|
|
17
|
+
selectedPortfoliosIds: string[] | null;
|
|
16
18
|
}, {
|
|
17
19
|
agencyName: string | null;
|
|
18
20
|
bidderId: string | null;
|
|
19
21
|
contractorName: string | null;
|
|
20
22
|
specialisedProfile: string | null;
|
|
21
23
|
bidAs: "agency" | "freelancer" | null;
|
|
24
|
+
selectedPortfoliosIds: string[] | null;
|
|
22
25
|
}>;
|
|
23
26
|
export declare const campaignStatusSchema: z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">, z.ZodLiteral<"archived">]>;
|
|
24
27
|
export declare const biddingHourlyRateStrategyEnum: z.ZodEnum<["match_job_budget", "match_profile_rate", "fixed_rate", "smart_bidding"]>;
|
|
@@ -372,18 +375,21 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
372
375
|
contractorName: z.ZodNullable<z.ZodString>;
|
|
373
376
|
specialisedProfile: z.ZodNullable<z.ZodString>;
|
|
374
377
|
bidAs: z.ZodNullable<z.ZodEnum<["agency", "freelancer"]>>;
|
|
378
|
+
selectedPortfoliosIds: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
375
379
|
}, "strip", z.ZodTypeAny, {
|
|
376
380
|
agencyName: string | null;
|
|
377
381
|
bidderId: string | null;
|
|
378
382
|
contractorName: string | null;
|
|
379
383
|
specialisedProfile: string | null;
|
|
380
384
|
bidAs: "agency" | "freelancer" | null;
|
|
385
|
+
selectedPortfoliosIds: string[] | null;
|
|
381
386
|
}, {
|
|
382
387
|
agencyName: string | null;
|
|
383
388
|
bidderId: string | null;
|
|
384
389
|
contractorName: string | null;
|
|
385
390
|
specialisedProfile: string | null;
|
|
386
391
|
bidAs: "agency" | "freelancer" | null;
|
|
392
|
+
selectedPortfoliosIds: string[] | null;
|
|
387
393
|
}>>;
|
|
388
394
|
coverLetterTemplateId: z.ZodNullable<z.ZodString>;
|
|
389
395
|
coverLetterTemplatesIds: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -551,6 +557,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
551
557
|
contractorName: string | null;
|
|
552
558
|
specialisedProfile: string | null;
|
|
553
559
|
bidAs: "agency" | "freelancer" | null;
|
|
560
|
+
selectedPortfoliosIds: string[] | null;
|
|
554
561
|
} | null;
|
|
555
562
|
coverLetterTemplateId: string | null;
|
|
556
563
|
coverLetterTemplatesIds: string[] | null;
|
|
@@ -670,6 +677,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
670
677
|
contractorName: string | null;
|
|
671
678
|
specialisedProfile: string | null;
|
|
672
679
|
bidAs: "agency" | "freelancer" | null;
|
|
680
|
+
selectedPortfoliosIds: string[] | null;
|
|
673
681
|
} | null;
|
|
674
682
|
coverLetterTemplateId: string | null;
|
|
675
683
|
coverLetterTemplatesIds: string[] | null;
|
|
@@ -1030,18 +1038,21 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
1030
1038
|
contractorName: z.ZodNullable<z.ZodString>;
|
|
1031
1039
|
specialisedProfile: z.ZodNullable<z.ZodString>;
|
|
1032
1040
|
bidAs: z.ZodNullable<z.ZodEnum<["agency", "freelancer"]>>;
|
|
1041
|
+
selectedPortfoliosIds: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
1033
1042
|
}, "strip", z.ZodTypeAny, {
|
|
1034
1043
|
agencyName: string | null;
|
|
1035
1044
|
bidderId: string | null;
|
|
1036
1045
|
contractorName: string | null;
|
|
1037
1046
|
specialisedProfile: string | null;
|
|
1038
1047
|
bidAs: "agency" | "freelancer" | null;
|
|
1048
|
+
selectedPortfoliosIds: string[] | null;
|
|
1039
1049
|
}, {
|
|
1040
1050
|
agencyName: string | null;
|
|
1041
1051
|
bidderId: string | null;
|
|
1042
1052
|
contractorName: string | null;
|
|
1043
1053
|
specialisedProfile: string | null;
|
|
1044
1054
|
bidAs: "agency" | "freelancer" | null;
|
|
1055
|
+
selectedPortfoliosIds: string[] | null;
|
|
1045
1056
|
}>>;
|
|
1046
1057
|
coverLetterTemplateId: z.ZodNullable<z.ZodString>;
|
|
1047
1058
|
coverLetterTemplatesIds: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1647,18 +1658,21 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1647
1658
|
contractorName: z.ZodNullable<z.ZodString>;
|
|
1648
1659
|
specialisedProfile: z.ZodNullable<z.ZodString>;
|
|
1649
1660
|
bidAs: z.ZodNullable<z.ZodEnum<["agency", "freelancer"]>>;
|
|
1661
|
+
selectedPortfoliosIds: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
1650
1662
|
}, "strip", z.ZodTypeAny, {
|
|
1651
1663
|
agencyName: string | null;
|
|
1652
1664
|
bidderId: string | null;
|
|
1653
1665
|
contractorName: string | null;
|
|
1654
1666
|
specialisedProfile: string | null;
|
|
1655
1667
|
bidAs: "agency" | "freelancer" | null;
|
|
1668
|
+
selectedPortfoliosIds: string[] | null;
|
|
1656
1669
|
}, {
|
|
1657
1670
|
agencyName: string | null;
|
|
1658
1671
|
bidderId: string | null;
|
|
1659
1672
|
contractorName: string | null;
|
|
1660
1673
|
specialisedProfile: string | null;
|
|
1661
1674
|
bidAs: "agency" | "freelancer" | null;
|
|
1675
|
+
selectedPortfoliosIds: string[] | null;
|
|
1662
1676
|
}>>>;
|
|
1663
1677
|
coverLetterTemplateId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1664
1678
|
coverLetterTemplatesIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
@@ -1825,6 +1839,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1825
1839
|
contractorName: string | null;
|
|
1826
1840
|
specialisedProfile: string | null;
|
|
1827
1841
|
bidAs: "agency" | "freelancer" | null;
|
|
1842
|
+
selectedPortfoliosIds: string[] | null;
|
|
1828
1843
|
} | null | undefined;
|
|
1829
1844
|
coverLetterTemplateId?: string | null | undefined;
|
|
1830
1845
|
coverLetterTemplatesIds?: string[] | null | undefined;
|
|
@@ -1947,6 +1962,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1947
1962
|
contractorName: string | null;
|
|
1948
1963
|
specialisedProfile: string | null;
|
|
1949
1964
|
bidAs: "agency" | "freelancer" | null;
|
|
1965
|
+
selectedPortfoliosIds: string[] | null;
|
|
1950
1966
|
} | null | undefined;
|
|
1951
1967
|
coverLetterTemplateId?: string | null | undefined;
|
|
1952
1968
|
coverLetterTemplatesIds?: string[] | null | undefined;
|
|
@@ -221,6 +221,16 @@ export declare const verifyCredentialsSucceededEventMetadataSchema: z.ZodObject<
|
|
|
221
221
|
agencyId: string | null;
|
|
222
222
|
}>, "many">;
|
|
223
223
|
specialisedProfiles: z.ZodArray<z.ZodString, "many">;
|
|
224
|
+
portfolios: z.ZodArray<z.ZodObject<{
|
|
225
|
+
title: z.ZodString;
|
|
226
|
+
imageUrl: z.ZodString;
|
|
227
|
+
}, "strip", z.ZodTypeAny, {
|
|
228
|
+
title: string;
|
|
229
|
+
imageUrl: string;
|
|
230
|
+
}, {
|
|
231
|
+
title: string;
|
|
232
|
+
imageUrl: string;
|
|
233
|
+
}>, "many">;
|
|
224
234
|
}, "strip", z.ZodTypeAny, {
|
|
225
235
|
bidderAccountId: string;
|
|
226
236
|
accountName: string;
|
|
@@ -236,6 +246,10 @@ export declare const verifyCredentialsSucceededEventMetadataSchema: z.ZodObject<
|
|
|
236
246
|
agencyId: string | null;
|
|
237
247
|
}[];
|
|
238
248
|
specialisedProfiles: string[];
|
|
249
|
+
portfolios: {
|
|
250
|
+
title: string;
|
|
251
|
+
imageUrl: string;
|
|
252
|
+
}[];
|
|
239
253
|
}, {
|
|
240
254
|
bidderAccountId: string;
|
|
241
255
|
accountName: string;
|
|
@@ -251,6 +265,10 @@ export declare const verifyCredentialsSucceededEventMetadataSchema: z.ZodObject<
|
|
|
251
265
|
agencyId: string | null;
|
|
252
266
|
}[];
|
|
253
267
|
specialisedProfiles: string[];
|
|
268
|
+
portfolios: {
|
|
269
|
+
title: string;
|
|
270
|
+
imageUrl: string;
|
|
271
|
+
}[];
|
|
254
272
|
}>;
|
|
255
273
|
export declare const verifyCredentialsFailedEventMetadataSchema: z.ZodObject<{
|
|
256
274
|
bidderAccountId: z.ZodString;
|
|
@@ -289,8 +307,8 @@ export declare const suitabilityPendingEventMetadataSchema: z.ZodObject<{
|
|
|
289
307
|
}, "strip", z.ZodTypeAny, {
|
|
290
308
|
timestamp: number;
|
|
291
309
|
jobUrl: string;
|
|
292
|
-
jobId: string;
|
|
293
310
|
title: string;
|
|
311
|
+
jobId: string;
|
|
294
312
|
applyToLeads: {
|
|
295
313
|
campaignId: string;
|
|
296
314
|
leadId: string;
|
|
@@ -298,8 +316,8 @@ export declare const suitabilityPendingEventMetadataSchema: z.ZodObject<{
|
|
|
298
316
|
}, {
|
|
299
317
|
timestamp: number;
|
|
300
318
|
jobUrl: string;
|
|
301
|
-
jobId: string;
|
|
302
319
|
title: string;
|
|
320
|
+
jobId: string;
|
|
303
321
|
applyToLeads: {
|
|
304
322
|
campaignId: string;
|
|
305
323
|
leadId: string;
|