lancer-shared 1.2.37 → 1.2.39
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 +9 -14
- package/dist/constants/account-status.d.ts +3 -0
- package/dist/constants/account-status.js +17 -0
- package/dist/constants/collections.js +13 -11
- package/dist/constants/common-questions.js +4 -1
- package/dist/constants/index.js +32 -10
- package/dist/constants/job-filter-options.js +4 -1
- package/dist/constants/job-status.js +12 -7
- package/dist/constants/mappings/countryMapping.js +3 -1
- package/dist/constants/mappings/regionMapping.js +3 -1
- package/dist/constants/organization.d.ts +2 -2
- package/dist/constants/proxies.d.ts +4 -0
- package/dist/constants/routes.js +37 -39
- package/dist/constants/upwork-accounts.js +6 -3
- package/dist/constants/upwork-filters.d.ts +5 -0
- package/dist/constants/upwork-filters.js +75 -0
- package/dist/index.js +20 -4
- package/dist/schemas/account/account-status.js +5 -2
- package/dist/schemas/account/bidder-account.d.ts +9 -10
- package/dist/schemas/account/bidder-account.js +24 -22
- package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +5 -0
- package/dist/schemas/account/index.js +19 -3
- package/dist/schemas/account/manager-account.d.ts +116 -0
- package/dist/schemas/account/manager-account.js +38 -0
- package/dist/schemas/account/scraper-account.d.ts +2 -6
- package/dist/schemas/account/scraper-account.js +24 -21
- package/dist/schemas/ai/ai-config.js +11 -8
- package/dist/schemas/ai/index.js +19 -3
- package/dist/schemas/ai/proposal.js +13 -10
- package/dist/schemas/ai/suitability.js +11 -8
- package/dist/schemas/ai-config/ai-config.d.ts +39 -0
- package/dist/schemas/ai-config/ai-config.js +12 -0
- package/dist/schemas/ai-config/index.d.ts +1 -0
- package/dist/schemas/ai-config/index.js +17 -0
- package/dist/schemas/bid/bid-result.js +13 -9
- package/dist/schemas/bid/bid-status.d.ts +30 -0
- package/dist/schemas/bid/bid-status.js +15 -0
- package/dist/schemas/bid/bid.js +30 -29
- package/dist/schemas/bid/exceptions/base-exception.d.ts +4 -0
- package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +5 -0
- package/dist/schemas/bid/index.js +18 -2
- package/dist/schemas/bidding/index.d.ts +1 -0
- package/dist/schemas/bidding/index.js +17 -0
- package/dist/schemas/bidding/proposal-bidding-status.d.ts +26 -0
- package/dist/schemas/bidding/proposal-bidding-status.js +18 -0
- package/dist/schemas/bidding/proposal-dto.d.ts +26 -0
- package/dist/schemas/bidding/proposal-dto.js +18 -0
- package/dist/schemas/campaign/campaign-ai-metrics.js +8 -5
- package/dist/schemas/campaign/campaign-analytics.d.ts +0 -8
- package/dist/schemas/campaign/campaign-analytics.js +31 -32
- package/dist/schemas/campaign/campaign-expenses.js +8 -5
- package/dist/schemas/campaign/campaign-insights.js +30 -30
- package/dist/schemas/campaign/campaign-integrations.d.ts +0 -5
- package/dist/schemas/campaign/campaign-integrations.js +13 -10
- package/dist/schemas/campaign/campaign-job-count.js +6 -3
- package/dist/schemas/campaign/campaign.d.ts +1 -22
- package/dist/schemas/campaign/campaign.js +35 -32
- package/dist/schemas/campaign/index.js +23 -7
- package/dist/schemas/chat-message/chat-message.js +10 -7
- package/dist/schemas/chat-message/index.js +17 -1
- package/dist/schemas/config/agency-config.js +9 -6
- package/dist/schemas/config/index.js +17 -1
- package/dist/schemas/index.js +32 -17
- package/dist/schemas/job/index.js +19 -0
- package/dist/schemas/job/job-details.d.ts +335 -0
- package/dist/schemas/job/job-details.js +29 -0
- package/dist/schemas/job/job-note.d.ts +83 -0
- package/dist/schemas/job/job-note.js +30 -0
- package/dist/schemas/job/job-pipeline.d.ts +74 -0
- package/dist/schemas/job/job-pipeline.js +29 -0
- package/dist/schemas/job/job-status.d.ts +3 -0
- package/dist/schemas/job/job-status.js +27 -0
- package/dist/schemas/job/job-suitability.d.ts +12 -0
- package/dist/schemas/job/job-suitability.js +13 -0
- package/dist/schemas/job/job.d.ts +1160 -0
- package/dist/schemas/job/job.js +90 -0
- package/dist/schemas/job/pipeline-job.d.ts +608 -0
- package/dist/schemas/job/pipeline-job.js +43 -0
- package/dist/schemas/job/upwork-job.d.ts +334 -0
- package/dist/schemas/job/upwork-job.js +60 -0
- package/dist/schemas/job-filters/index.js +17 -1
- package/dist/schemas/job-filters/job-filters.js +65 -62
- package/dist/schemas/knowledge-object/index.d.ts +1 -0
- package/dist/schemas/knowledge-object/index.js +17 -0
- package/dist/schemas/knowledge-object/knowledge-object.d.ts +128 -0
- package/dist/schemas/knowledge-object/knowledge-object.js +47 -0
- package/dist/schemas/lead/index.js +19 -173
- package/dist/schemas/lead/lead-note.js +16 -13
- package/dist/schemas/lead/lead-status.js +6 -3
- package/dist/schemas/lead/lead.d.ts +1897 -0
- package/dist/schemas/lead/lead.js +143 -0
- package/dist/schemas/logger/index.js +17 -1
- package/dist/schemas/logger/log-event.js +49 -100
- package/dist/schemas/organization/index.js +17 -70
- package/dist/schemas/organization/organization.d.ts +7 -177
- package/dist/schemas/organization/organization.js +17 -14
- package/dist/schemas/proxy/index.js +17 -3
- package/dist/schemas/proxy/proxy.d.ts +5 -5
- package/dist/schemas/proxy/proxy.js +19 -25
- package/dist/schemas/saved-search/index.js +11 -8
- package/dist/schemas/scraper/index.js +18 -2
- package/dist/schemas/scraper/scrape-payload.d.ts +0 -5
- package/dist/schemas/scraper/scrape-payload.js +14 -19
- package/dist/schemas/scraper/scrape-response.d.ts +345 -0
- package/dist/schemas/scraper/scrape-response.js +9 -0
- package/dist/schemas/scraper/scrape-result.js +21 -21
- package/dist/schemas/shared.js +9 -12
- package/dist/schemas/time-filter/index.js +8 -5
- package/dist/schemas/upwork-account/index.d.ts +3 -0
- package/dist/schemas/upwork-account/index.js +19 -0
- package/dist/schemas/upwork-account/upwork-account-status.d.ts +2 -0
- package/dist/schemas/upwork-account/upwork-account-status.js +11 -0
- package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +95 -0
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +35 -0
- package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +92 -0
- package/dist/schemas/upwork-account/upwork-scraper-account.js +31 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +90 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.js +30 -0
- package/dist/schemas/user/index.js +41 -38
- package/dist/types/account/account-status.js +2 -1
- package/dist/types/account/bidder-account.js +2 -1
- package/dist/types/account/index.js +19 -3
- package/dist/types/account/manager-account.d.ts +7 -0
- package/dist/types/account/manager-account.js +2 -0
- package/dist/types/account/scraper-account.js +2 -1
- package/dist/types/ai/ai-config.js +2 -1
- package/dist/types/ai/index.js +19 -3
- package/dist/types/ai/proposal.js +2 -1
- package/dist/types/ai/suitability.js +2 -1
- package/dist/types/ai-config/ai-config.d.ts +6 -0
- package/dist/types/ai-config/ai-config.js +2 -0
- package/dist/types/ai-config/index.d.ts +1 -0
- package/dist/types/ai-config/index.js +17 -0
- package/dist/types/bid/bid-result.js +2 -1
- package/dist/types/bid/bid-status.d.ts +5 -0
- package/dist/types/bid/bid-status.js +2 -0
- package/dist/types/bid/bid.js +2 -1
- package/dist/types/bid/index.js +18 -2
- package/dist/types/bidding/index.d.ts +1 -0
- package/dist/types/bidding/index.js +17 -0
- package/dist/types/bidding/proposal-bidding-status.d.ts +3 -0
- package/dist/types/bidding/proposal-bidding-status.js +2 -0
- package/dist/types/bidding/proposal-dto.d.ts +3 -0
- package/dist/types/bidding/proposal-dto.js +2 -0
- package/dist/types/campaign/campaign-analytics.js +2 -1
- package/dist/types/campaign/campaign-expenses.js +2 -1
- package/dist/types/campaign/campaign-insights.js +2 -1
- package/dist/types/campaign/campaign-integrations.js +2 -1
- package/dist/types/campaign/campaign-job-count.js +2 -1
- package/dist/types/campaign/campaign.js +2 -1
- package/dist/types/campaign/index.js +22 -6
- package/dist/types/chat-message/chat-message.js +2 -1
- package/dist/types/chat-message/index.js +17 -1
- package/dist/types/config/agency-config.js +2 -1
- package/dist/types/config/index.js +17 -1
- package/dist/types/index.js +29 -15
- package/dist/types/job/index.js +19 -3
- package/dist/types/job/job-details.d.ts +36 -0
- package/dist/types/job/job-details.js +2 -0
- package/dist/types/job/job-note.js +2 -1
- package/dist/types/job/job-pipeline.d.ts +4 -0
- package/dist/types/job/job-pipeline.js +2 -0
- package/dist/types/job/job-status.js +4 -1
- package/dist/types/job/job-suitability.d.ts +3 -0
- package/dist/types/job/job-suitability.js +2 -0
- package/dist/types/job/job.d.ts +36 -0
- package/dist/types/job/job.js +2 -0
- package/dist/types/job-filters/index.js +17 -1
- package/dist/types/job-filters/job-filters.js +2 -1
- package/dist/types/knowledge-object/index.d.ts +1 -0
- package/dist/types/knowledge-object/index.js +17 -0
- package/dist/types/knowledge-object/knowledge-object.d.ts +4 -0
- package/dist/types/knowledge-object/knowledge-object.js +2 -0
- package/dist/types/logger/index.js +17 -1
- package/dist/types/logger/log-event.js +2 -1
- package/dist/types/saved-search/index.js +2 -1
- package/dist/types/scraper/index.js +18 -2
- package/dist/types/scraper/scrape-payload.js +2 -1
- package/dist/types/scraper/scrape-response.d.ts +4 -0
- package/dist/types/scraper/scrape-response.js +2 -0
- package/dist/types/scraper/scrape-result.js +2 -1
- package/dist/types/time-filter/index.js +2 -1
- package/dist/types/upwork-account/index.d.ts +3 -0
- package/dist/types/upwork-account/index.js +19 -0
- package/dist/types/upwork-account/upwork-account-status.d.ts +3 -0
- package/dist/types/upwork-account/upwork-account-status.js +2 -0
- package/dist/types/upwork-account/upwork-business-manager-account.d.ts +7 -0
- package/dist/types/upwork-account/upwork-business-manager-account.js +2 -0
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +5 -0
- package/dist/types/upwork-account/upwork-scraping-account.js +2 -0
- package/dist/types/user/index.js +2 -1
- package/dist/utils/index.js +17 -1
- package/dist/utils/try-catch.js +23 -8
- package/package.json +1 -1
- package/dist/schemas/event/index.d.ts +0 -58
- package/dist/schemas/lead/nuxt.js +0 -287
- package/dist/schemas/meter-event/index.d.ts +0 -12
- package/dist/schemas/organization/member.js +0 -7
- package/dist/schemas/organization/subscription.js +0 -17
- package/dist/schemas/proxy/proxy-available-replacements.js +0 -3
- package/dist/schemas/proxy/proxy-country.js +0 -249
- package/dist/schemas/tier/index.d.ts +0 -119
- package/dist/schemas/transaction/index.js +0 -17
- package/dist/schemas/usage/index.js +0 -18
- package/dist/types/job/nuxt.js +0 -1
- package/dist/types/shared.js +0 -1
- package/dist/types/transaction/index.js +0 -1
- package/dist/types/usage/index.js +0 -1
|
@@ -260,7 +260,6 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
260
260
|
minimumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
261
261
|
webhookUrl: z.ZodNullable<z.ZodString>;
|
|
262
262
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
263
|
-
suitabilityThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
264
263
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
265
264
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, z.ZodNumber>>;
|
|
266
265
|
expenses: z.ZodObject<{
|
|
@@ -359,7 +358,6 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
359
358
|
minimumBoost: number | null;
|
|
360
359
|
webhookUrl: string | null;
|
|
361
360
|
monthlyBudget: number | null;
|
|
362
|
-
suitabilityThreshold: number | null;
|
|
363
361
|
boostingThreshold: number | null;
|
|
364
362
|
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
|
|
365
363
|
expenses: {
|
|
@@ -455,7 +453,6 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
455
453
|
boostingEnabled?: boolean | null | undefined;
|
|
456
454
|
maximumBoost?: number | null | undefined;
|
|
457
455
|
minimumBoost?: number | null | undefined;
|
|
458
|
-
suitabilityThreshold?: number | null | undefined;
|
|
459
456
|
boostingThreshold?: number | null | undefined;
|
|
460
457
|
}>;
|
|
461
458
|
export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
@@ -698,7 +695,6 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
698
695
|
minimumBoost: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
699
696
|
webhookUrl: z.ZodNullable<z.ZodString>;
|
|
700
697
|
monthlyBudget: z.ZodNullable<z.ZodNumber>;
|
|
701
|
-
suitabilityThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
702
698
|
boostingThreshold: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
703
699
|
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, z.ZodNumber>>;
|
|
704
700
|
expenses: z.ZodObject<{
|
|
@@ -733,7 +729,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
733
729
|
specialisedProfile: string | null;
|
|
734
730
|
}>>;
|
|
735
731
|
coverLetterTemplateId: z.ZodNullable<z.ZodString>;
|
|
736
|
-
}, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
|
|
732
|
+
}, "id" | "createdAt" | "updatedAt" | "bidConfig">, "strip", z.ZodTypeAny, {
|
|
737
733
|
name: string;
|
|
738
734
|
filters: {
|
|
739
735
|
keywords: {
|
|
@@ -794,7 +790,6 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
794
790
|
minimumBoost: number | null;
|
|
795
791
|
webhookUrl: string | null;
|
|
796
792
|
monthlyBudget: number | null;
|
|
797
|
-
suitabilityThreshold: number | null;
|
|
798
793
|
boostingThreshold: number | null;
|
|
799
794
|
leadCounts: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null;
|
|
800
795
|
expenses: {
|
|
@@ -803,12 +798,6 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
803
798
|
boosted: number;
|
|
804
799
|
};
|
|
805
800
|
notificationWebhooks: Partial<Record<"suitableLead" | "proposalSent" | "proposalFailed" | "proposalViewed" | "proposalReplied" | "lowConnects" | "leadAnalyzed" | "accountHealth", string | null>>;
|
|
806
|
-
bidConfig: {
|
|
807
|
-
agencyName: string | null;
|
|
808
|
-
bidderId: string | null;
|
|
809
|
-
contractorName: string | null;
|
|
810
|
-
specialisedProfile: string | null;
|
|
811
|
-
} | null;
|
|
812
801
|
coverLetterTemplateId: string | null;
|
|
813
802
|
status?: "active" | "draft" | "paused" | "error" | undefined;
|
|
814
803
|
}, {
|
|
@@ -876,18 +865,11 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
876
865
|
boosted?: number | undefined;
|
|
877
866
|
};
|
|
878
867
|
notificationWebhooks: Partial<Record<"suitableLead" | "proposalSent" | "proposalFailed" | "proposalViewed" | "proposalReplied" | "lowConnects" | "leadAnalyzed" | "accountHealth", string | null>>;
|
|
879
|
-
bidConfig: {
|
|
880
|
-
agencyName: string | null;
|
|
881
|
-
bidderId: string | null;
|
|
882
|
-
contractorName: string | null;
|
|
883
|
-
specialisedProfile: string | null;
|
|
884
|
-
} | null;
|
|
885
868
|
coverLetterTemplateId: string | null;
|
|
886
869
|
status?: "active" | "draft" | "paused" | "error" | undefined;
|
|
887
870
|
boostingEnabled?: boolean | null | undefined;
|
|
888
871
|
maximumBoost?: number | null | undefined;
|
|
889
872
|
minimumBoost?: number | null | undefined;
|
|
890
|
-
suitabilityThreshold?: number | null | undefined;
|
|
891
873
|
boostingThreshold?: number | null | undefined;
|
|
892
874
|
}>;
|
|
893
875
|
export declare const updateCampaignSchema: z.ZodObject<{
|
|
@@ -1129,7 +1111,6 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1129
1111
|
minimumBoost: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1130
1112
|
webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1131
1113
|
monthlyBudget: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1132
|
-
suitabilityThreshold: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1133
1114
|
boostingThreshold: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1134
1115
|
leadCounts: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>, z.ZodNumber>>>;
|
|
1135
1116
|
expenses: z.ZodOptional<z.ZodObject<{
|
|
@@ -1226,7 +1207,6 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1226
1207
|
minimumBoost?: number | null | undefined;
|
|
1227
1208
|
webhookUrl?: string | null | undefined;
|
|
1228
1209
|
monthlyBudget?: number | null | undefined;
|
|
1229
|
-
suitabilityThreshold?: number | null | undefined;
|
|
1230
1210
|
boostingThreshold?: number | null | undefined;
|
|
1231
1211
|
leadCounts?: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null | undefined;
|
|
1232
1212
|
expenses?: {
|
|
@@ -1305,7 +1285,6 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1305
1285
|
minimumBoost?: number | null | undefined;
|
|
1306
1286
|
webhookUrl?: string | null | undefined;
|
|
1307
1287
|
monthlyBudget?: number | null | undefined;
|
|
1308
|
-
suitabilityThreshold?: number | null | undefined;
|
|
1309
1288
|
boostingThreshold?: number | null | undefined;
|
|
1310
1289
|
leadCounts?: Partial<Record<"leads" | "contacted" | "viewed" | "replied" | "won" | "lost", number>> | null | undefined;
|
|
1311
1290
|
expenses?: {
|
|
@@ -1,41 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
z.literal(
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateCampaignSchema = exports.createCampaignSchema = exports.campaignSchema = exports.campaignStatusSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const job_filters_1 = require("../job-filters");
|
|
6
|
+
const lead_1 = require("../lead");
|
|
7
|
+
const campaign_expenses_1 = require("./campaign-expenses");
|
|
8
|
+
const campaign_integrations_1 = require("./campaign-integrations");
|
|
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'),
|
|
11
14
|
]);
|
|
12
|
-
|
|
13
|
-
id: z.string(),
|
|
14
|
-
name: z.string(),
|
|
15
|
-
filters: jobFiltersSchema,
|
|
16
|
-
createdAt: number(),
|
|
17
|
-
updatedAt: number(),
|
|
18
|
-
confirmedBillingAt: number().nullable(),
|
|
19
|
-
automatedSuitability: z.boolean().nullable(),
|
|
20
|
-
automatedBidding: z.boolean().nullable(),
|
|
21
|
-
boostingEnabled: z.boolean().nullable().default(false),
|
|
22
|
-
maximumBoost: z.number().nullable().default(30),
|
|
23
|
-
minimumBoost: z.number().nullable().default(0),
|
|
24
|
-
webhookUrl: z.string().nullable(),
|
|
25
|
-
monthlyBudget: z.number().nullable(),
|
|
26
|
-
suitabilityThreshold: z.number().min(0).max(100).nullable().default(0),
|
|
27
|
-
boostingThreshold: z.number().min(0).max(100).nullable().default(0),
|
|
28
|
-
leadCounts: z.record(leadStatusSchema, z.number()).nullable(),
|
|
29
|
-
expenses: campaignExpensesSchema,
|
|
30
|
-
integrations: campaignIntegrationsSchema,
|
|
31
|
-
status: campaignStatusSchema.optional(),
|
|
15
|
+
exports.campaignSchema = zod_1.z.object({
|
|
16
|
+
id: zod_1.z.string(),
|
|
17
|
+
name: zod_1.z.string(),
|
|
18
|
+
filters: job_filters_1.jobFiltersSchema,
|
|
19
|
+
createdAt: (0, zod_1.number)(),
|
|
20
|
+
updatedAt: (0, zod_1.number)(),
|
|
21
|
+
confirmedBillingAt: (0, zod_1.number)().nullable(),
|
|
22
|
+
automatedSuitability: zod_1.z.boolean().nullable(),
|
|
23
|
+
automatedBidding: zod_1.z.boolean().nullable(),
|
|
24
|
+
boostingEnabled: zod_1.z.boolean().nullable().default(false),
|
|
25
|
+
maximumBoost: zod_1.z.number().nullable().default(30),
|
|
26
|
+
minimumBoost: zod_1.z.number().nullable().default(0),
|
|
27
|
+
webhookUrl: zod_1.z.string().nullable(),
|
|
28
|
+
monthlyBudget: zod_1.z.number().nullable(),
|
|
29
|
+
suitabilityThreshold: zod_1.z.number().min(0).max(100).nullable().default(0),
|
|
30
|
+
boostingThreshold: zod_1.z.number().min(0).max(100).nullable().default(0),
|
|
31
|
+
leadCounts: zod_1.z.record(lead_1.leadStatusSchema, zod_1.z.number()).nullable(),
|
|
32
|
+
expenses: campaign_expenses_1.campaignExpensesSchema,
|
|
33
|
+
integrations: campaign_integrations_1.campaignIntegrationsSchema,
|
|
34
|
+
status: exports.campaignStatusSchema.optional(),
|
|
32
35
|
});
|
|
33
|
-
|
|
36
|
+
exports.createCampaignSchema = exports.campaignSchema.omit({
|
|
34
37
|
id: true,
|
|
35
38
|
createdAt: true,
|
|
36
39
|
updatedAt: true,
|
|
37
40
|
});
|
|
38
|
-
|
|
41
|
+
exports.updateCampaignSchema = exports.campaignSchema.omit({
|
|
39
42
|
createdAt: true,
|
|
40
43
|
updatedAt: true,
|
|
41
44
|
});
|
|
@@ -1,7 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./campaign"), exports);
|
|
18
|
+
__exportStar(require("./campaign-insights"), exports);
|
|
19
|
+
__exportStar(require("./campaign-job-count"), exports);
|
|
20
|
+
__exportStar(require("./campaign-expenses"), exports);
|
|
21
|
+
__exportStar(require("./campaign-integrations"), exports);
|
|
22
|
+
__exportStar(require("./campaign-analytics"), exports);
|
|
23
|
+
__exportStar(require("./campaign-ai-metrics"), exports);
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.newChatMessageSchema = exports.chatMessageSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.chatMessageSchema = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string(),
|
|
7
|
+
content: zod_1.z.string(),
|
|
8
|
+
role: zod_1.z.enum(['user', 'assistant']),
|
|
9
|
+
timestamp: zod_1.z.string(),
|
|
7
10
|
});
|
|
8
|
-
|
|
11
|
+
exports.newChatMessageSchema = exports.chatMessageSchema.omit({
|
|
9
12
|
id: true,
|
|
10
13
|
});
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./chat-message"), exports);
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.agencyConfigSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.agencyConfigSchema = zod_1.z.object({
|
|
6
|
+
agencyName: zod_1.z.string(),
|
|
7
|
+
contractorName: zod_1.z.string(),
|
|
8
|
+
specializedProfile: zod_1.z.string().nullable(),
|
|
9
|
+
accountId: zod_1.z.string(),
|
|
7
10
|
});
|
|
@@ -1 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./agency-config"), exports);
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,17 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./account"), exports);
|
|
18
|
+
__exportStar(require("./ai"), exports);
|
|
19
|
+
__exportStar(require("./bid"), exports);
|
|
20
|
+
__exportStar(require("./campaign"), exports);
|
|
21
|
+
__exportStar(require("./chat-message"), exports);
|
|
22
|
+
__exportStar(require("./config"), exports);
|
|
23
|
+
__exportStar(require("./job-filters"), exports);
|
|
24
|
+
__exportStar(require("./lead"), exports);
|
|
25
|
+
__exportStar(require("./logger"), exports);
|
|
26
|
+
__exportStar(require("./organization"), exports);
|
|
27
|
+
__exportStar(require("./proxy"), exports);
|
|
28
|
+
__exportStar(require("./saved-search"), exports);
|
|
29
|
+
__exportStar(require("./scraper"), exports);
|
|
30
|
+
__exportStar(require("./shared"), exports);
|
|
31
|
+
__exportStar(require("./time-filter"), exports);
|
|
32
|
+
__exportStar(require("./user"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./job"), exports);
|
|
18
|
+
__exportStar(require("./job-note"), exports);
|
|
19
|
+
__exportStar(require("./job-status"), exports);
|