lancer-shared 1.0.128 → 1.0.130
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.
|
@@ -6,6 +6,5 @@ export declare const COLLECTIONS: {
|
|
|
6
6
|
readonly EVENTS: "events";
|
|
7
7
|
readonly SCRAPER_ACCOUNTS: "system/accounts/scrapers";
|
|
8
8
|
readonly MANAGER_ACCOUNTS: "system/accounts/managers";
|
|
9
|
-
readonly BIDDING_CONFIG: (userId: string) => string;
|
|
10
9
|
readonly CAMPAIGN_ACTIVITIES: (userId: string, campaignId: string) => string;
|
|
11
10
|
};
|
|
@@ -10,6 +10,5 @@ exports.COLLECTIONS = {
|
|
|
10
10
|
EVENTS: 'events',
|
|
11
11
|
SCRAPER_ACCOUNTS: 'system/accounts/scrapers',
|
|
12
12
|
MANAGER_ACCOUNTS: 'system/accounts/managers',
|
|
13
|
-
BIDDING_CONFIG: (userId) => `users/${userId}/settings/agencyConfig`,
|
|
14
13
|
CAMPAIGN_ACTIVITIES: (userId, campaignId) => `users/${userId}/campaigns/${campaignId}/activities`,
|
|
15
14
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
3
3
|
coverLetter: z.ZodString;
|
|
4
4
|
questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
5
5
|
question: z.ZodString;
|
|
@@ -67,6 +67,7 @@ export declare const freelancerBidFormDataSchema: z.ZodObject<{
|
|
|
67
67
|
maximumBoost: number | null;
|
|
68
68
|
minimumBoost: number | null;
|
|
69
69
|
}>;
|
|
70
|
+
export type FreelancerBidFormData = z.infer<typeof freelancerBidFormDataSchema>;
|
|
70
71
|
export declare const agencyBidFormDataSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
71
72
|
coverLetter: z.ZodString;
|
|
72
73
|
questionAnswerPairs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -111,7 +112,7 @@ export declare const agencyBidFormDataSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
111
112
|
contractorName: string;
|
|
112
113
|
specializedProfile: string | null;
|
|
113
114
|
}>;
|
|
114
|
-
export declare const
|
|
115
|
+
export declare const bidPayloadSchema: z.ZodObject<{
|
|
115
116
|
userId: z.ZodString;
|
|
116
117
|
jobUrl: z.ZodString;
|
|
117
118
|
jobId: z.ZodString;
|
|
@@ -142,7 +143,7 @@ export declare const bidSchema: z.ZodObject<{
|
|
|
142
143
|
accountId: string;
|
|
143
144
|
proxyUrl: string | null;
|
|
144
145
|
}>;
|
|
145
|
-
export declare const
|
|
146
|
+
export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
146
147
|
userId: z.ZodString;
|
|
147
148
|
jobUrl: z.ZodString;
|
|
148
149
|
jobId: z.ZodString;
|
|
@@ -244,7 +245,7 @@ export declare const agencyBidSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
244
245
|
accountId: string;
|
|
245
246
|
proxyUrl: string | null;
|
|
246
247
|
}>;
|
|
247
|
-
export declare const
|
|
248
|
+
export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
248
249
|
userId: z.ZodString;
|
|
249
250
|
jobUrl: z.ZodString;
|
|
250
251
|
jobId: z.ZodString;
|
package/dist/schemas/bid/bid.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.freelancerBidPayloadSchema = exports.agencyBidPayloadSchema = exports.bidPayloadSchema = exports.agencyBidFormDataSchema = exports.freelancerBidFormDataSchema = exports.bidPayloadProposalDataSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const ai_1 = require("../ai");
|
|
6
|
-
exports.
|
|
6
|
+
exports.bidPayloadProposalDataSchema = zod_1.z.object({
|
|
7
7
|
coverLetter: zod_1.z.string(),
|
|
8
8
|
questionAnswerPairs: zod_1.z.array(ai_1.questionAnswerPairSchema).nullable(),
|
|
9
9
|
boostingEnabled: zod_1.z.boolean(),
|
|
10
10
|
minimumBoost: zod_1.z.number().nullable(),
|
|
11
11
|
maximumBoost: zod_1.z.number().nullable(),
|
|
12
12
|
});
|
|
13
|
-
exports.freelancerBidFormDataSchema = exports.
|
|
14
|
-
exports.agencyBidFormDataSchema = exports.
|
|
13
|
+
exports.freelancerBidFormDataSchema = exports.bidPayloadProposalDataSchema;
|
|
14
|
+
exports.agencyBidFormDataSchema = exports.bidPayloadProposalDataSchema.extend({
|
|
15
15
|
agencyName: zod_1.z.string(),
|
|
16
16
|
contractorName: zod_1.z.string(),
|
|
17
17
|
specializedProfile: zod_1.z.string().nullable(),
|
|
18
18
|
});
|
|
19
|
-
exports.
|
|
19
|
+
exports.bidPayloadSchema = zod_1.z.object({
|
|
20
20
|
userId: zod_1.z.string(),
|
|
21
21
|
jobUrl: zod_1.z.string(),
|
|
22
22
|
jobId: zod_1.z.string(),
|
|
@@ -27,9 +27,9 @@ exports.bidSchema = zod_1.z.object({
|
|
|
27
27
|
accountId: zod_1.z.string(),
|
|
28
28
|
proxyUrl: zod_1.z.string().nullable().describe('user:pass@host:port'),
|
|
29
29
|
});
|
|
30
|
-
exports.
|
|
30
|
+
exports.agencyBidPayloadSchema = exports.bidPayloadSchema.extend({
|
|
31
31
|
formData: exports.agencyBidFormDataSchema,
|
|
32
32
|
});
|
|
33
|
-
exports.
|
|
33
|
+
exports.freelancerBidPayloadSchema = exports.bidPayloadSchema.extend({
|
|
34
34
|
formData: exports.freelancerBidFormDataSchema,
|
|
35
35
|
});
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
1
|
+
export * from './lead';
|
|
2
|
+
export * from './saved-search';
|
|
3
|
+
export * from './shared';
|
|
4
|
+
export * from './user';
|
|
5
|
+
export * from './chat-message';
|
|
6
|
+
export * from './job-filters';
|
|
7
|
+
export * from './campaign';
|
|
8
|
+
export * from './ai';
|
|
9
|
+
export * from './bid';
|
|
10
|
+
export * from './scraper';
|
|
11
|
+
export * from './config';
|
|
12
|
+
export * from './logger';
|
|
13
|
+
export * from './account';
|
|
14
|
+
export * from './time-filter';
|
package/dist/types/bid/bid.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { agencyBidFormDataSchema,
|
|
3
|
-
export interface
|
|
2
|
+
import { agencyBidFormDataSchema, agencyBidPayloadSchema, bidPayloadProposalDataSchema, bidPayloadSchema, freelancerBidPayloadSchema } from '../../schemas/bid';
|
|
3
|
+
export interface BidPayloadProposalData extends z.infer<typeof bidPayloadProposalDataSchema> {
|
|
4
4
|
}
|
|
5
|
-
export interface
|
|
5
|
+
export interface FreelancerBidPayload extends z.infer<typeof freelancerBidPayloadSchema> {
|
|
6
6
|
}
|
|
7
7
|
export interface AgencyBidFormData extends z.infer<typeof agencyBidFormDataSchema> {
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
10
|
-
formData:
|
|
9
|
+
export interface BidPayload extends z.infer<typeof bidPayloadSchema> {
|
|
10
|
+
formData: BidPayloadProposalData;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface AgencyBidPayload extends z.infer<typeof agencyBidPayloadSchema> {
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
14
|
+
export interface FreelancerBidPayload extends z.infer<typeof freelancerBidPayloadSchema> {
|
|
15
15
|
}
|