lancer-shared 1.2.82 → 1.2.84
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 +220 -200
- 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.d.ts +12 -1
- 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.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.js +24 -21
- package/dist/schemas/agent/index.d.ts +20 -1059
- 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 +43 -208
- package/dist/schemas/campaign/campaign-analytics.js +31 -32
- package/dist/schemas/campaign/campaign-chat-bot.d.ts +135 -0
- 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-webhooks.d.ts +0 -58
- package/dist/schemas/campaign/campaign.d.ts +4 -133
- package/dist/schemas/campaign/campaign.js +35 -32
- package/dist/schemas/campaign/index.d.ts +1 -1
- 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.d.ts +30 -4
- 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.d.ts +19 -11
- package/dist/schemas/logger/log-event.js +49 -100
- package/dist/schemas/organization/index.d.ts +27 -7
- 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.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 +15 -58
- 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.d.ts +0 -2
- 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/job/haha.json +0 -581
- 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
|
@@ -319,6 +319,8 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
319
319
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
320
320
|
createdAt: z.ZodNumber;
|
|
321
321
|
updatedAt: z.ZodNumber;
|
|
322
|
+
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
323
|
+
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
322
324
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
323
325
|
id: string;
|
|
324
326
|
name: string;
|
|
@@ -578,32 +580,6 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
578
580
|
boosted?: number | undefined;
|
|
579
581
|
}>;
|
|
580
582
|
notificationsEnabled: z.ZodNullable<z.ZodBoolean>;
|
|
581
|
-
webhooks: z.ZodArray<z.ZodObject<{
|
|
582
|
-
id: z.ZodString;
|
|
583
|
-
title: z.ZodString;
|
|
584
|
-
url: z.ZodString;
|
|
585
|
-
notificationSettings: z.ZodObject<{
|
|
586
|
-
[k: string]: z.ZodDefault<z.ZodBoolean>;
|
|
587
|
-
}, "strip", z.ZodTypeAny, {
|
|
588
|
-
[x: string]: boolean;
|
|
589
|
-
}, {
|
|
590
|
-
[x: string]: boolean | undefined;
|
|
591
|
-
}>;
|
|
592
|
-
}, "strip", z.ZodTypeAny, {
|
|
593
|
-
id: string;
|
|
594
|
-
title: string;
|
|
595
|
-
url: string;
|
|
596
|
-
notificationSettings: {
|
|
597
|
-
[x: string]: boolean;
|
|
598
|
-
};
|
|
599
|
-
}, {
|
|
600
|
-
id: string;
|
|
601
|
-
title: string;
|
|
602
|
-
url: string;
|
|
603
|
-
notificationSettings: {
|
|
604
|
-
[x: string]: boolean | undefined;
|
|
605
|
-
};
|
|
606
|
-
}>, "many">;
|
|
607
583
|
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">]>>;
|
|
608
584
|
bidConfig: z.ZodNullable<z.ZodObject<{
|
|
609
585
|
agencyName: z.ZodNullable<z.ZodString>;
|
|
@@ -827,6 +803,8 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
827
803
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
828
804
|
createdAt: z.ZodNumber;
|
|
829
805
|
updatedAt: z.ZodNumber;
|
|
806
|
+
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
807
|
+
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
830
808
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
831
809
|
id: string;
|
|
832
810
|
name: string;
|
|
@@ -1086,32 +1064,6 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1086
1064
|
boosted?: number | undefined;
|
|
1087
1065
|
}>;
|
|
1088
1066
|
notificationsEnabled: z.ZodNullable<z.ZodBoolean>;
|
|
1089
|
-
webhooks: z.ZodArray<z.ZodObject<{
|
|
1090
|
-
id: z.ZodString;
|
|
1091
|
-
title: z.ZodString;
|
|
1092
|
-
url: z.ZodString;
|
|
1093
|
-
notificationSettings: z.ZodObject<{
|
|
1094
|
-
[k: string]: z.ZodDefault<z.ZodBoolean>;
|
|
1095
|
-
}, "strip", z.ZodTypeAny, {
|
|
1096
|
-
[x: string]: boolean;
|
|
1097
|
-
}, {
|
|
1098
|
-
[x: string]: boolean | undefined;
|
|
1099
|
-
}>;
|
|
1100
|
-
}, "strip", z.ZodTypeAny, {
|
|
1101
|
-
id: string;
|
|
1102
|
-
title: string;
|
|
1103
|
-
url: string;
|
|
1104
|
-
notificationSettings: {
|
|
1105
|
-
[x: string]: boolean;
|
|
1106
|
-
};
|
|
1107
|
-
}, {
|
|
1108
|
-
id: string;
|
|
1109
|
-
title: string;
|
|
1110
|
-
url: string;
|
|
1111
|
-
notificationSettings: {
|
|
1112
|
-
[x: string]: boolean | undefined;
|
|
1113
|
-
};
|
|
1114
|
-
}>, "many">;
|
|
1115
1067
|
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">]>>;
|
|
1116
1068
|
bidConfig: z.ZodNullable<z.ZodObject<{
|
|
1117
1069
|
agencyName: z.ZodNullable<z.ZodString>;
|
|
@@ -1439,6 +1391,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1439
1391
|
}>>>;
|
|
1440
1392
|
}, {
|
|
1441
1393
|
jobId: z.ZodString;
|
|
1394
|
+
scrapedAt: z.ZodNullable<z.ZodNumber>;
|
|
1442
1395
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
1443
1396
|
suitabilityRating: z.ZodNullable<z.ZodNumber>;
|
|
1444
1397
|
suitabilityReason: z.ZodNullable<z.ZodString>;
|
|
@@ -1462,6 +1415,8 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1462
1415
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
1463
1416
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
1464
1417
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
1418
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
1419
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
1465
1420
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
1466
1421
|
id: string | null;
|
|
1467
1422
|
title: string | null;
|
|
@@ -1680,6 +1635,8 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1680
1635
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
1681
1636
|
createdAt: z.ZodNumber;
|
|
1682
1637
|
updatedAt: z.ZodNumber;
|
|
1638
|
+
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
1639
|
+
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
1683
1640
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
1684
1641
|
id: string;
|
|
1685
1642
|
name: string;
|
|
@@ -1939,32 +1896,6 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1939
1896
|
boosted?: number | undefined;
|
|
1940
1897
|
}>;
|
|
1941
1898
|
notificationsEnabled: z.ZodNullable<z.ZodBoolean>;
|
|
1942
|
-
webhooks: z.ZodArray<z.ZodObject<{
|
|
1943
|
-
id: z.ZodString;
|
|
1944
|
-
title: z.ZodString;
|
|
1945
|
-
url: z.ZodString;
|
|
1946
|
-
notificationSettings: z.ZodObject<{
|
|
1947
|
-
[k: string]: z.ZodDefault<z.ZodBoolean>;
|
|
1948
|
-
}, "strip", z.ZodTypeAny, {
|
|
1949
|
-
[x: string]: boolean;
|
|
1950
|
-
}, {
|
|
1951
|
-
[x: string]: boolean | undefined;
|
|
1952
|
-
}>;
|
|
1953
|
-
}, "strip", z.ZodTypeAny, {
|
|
1954
|
-
id: string;
|
|
1955
|
-
title: string;
|
|
1956
|
-
url: string;
|
|
1957
|
-
notificationSettings: {
|
|
1958
|
-
[x: string]: boolean;
|
|
1959
|
-
};
|
|
1960
|
-
}, {
|
|
1961
|
-
id: string;
|
|
1962
|
-
title: string;
|
|
1963
|
-
url: string;
|
|
1964
|
-
notificationSettings: {
|
|
1965
|
-
[x: string]: boolean | undefined;
|
|
1966
|
-
};
|
|
1967
|
-
}>, "many">;
|
|
1968
1899
|
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">]>>;
|
|
1969
1900
|
bidConfig: z.ZodNullable<z.ZodObject<{
|
|
1970
1901
|
agencyName: z.ZodNullable<z.ZodString>;
|
|
@@ -2293,6 +2224,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2293
2224
|
}>>>;
|
|
2294
2225
|
}, {
|
|
2295
2226
|
jobId: z.ZodString;
|
|
2227
|
+
scrapedAt: z.ZodNullable<z.ZodNumber>;
|
|
2296
2228
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
2297
2229
|
suitabilityRating: z.ZodNullable<z.ZodNumber>;
|
|
2298
2230
|
suitabilityReason: z.ZodNullable<z.ZodString>;
|
|
@@ -2316,6 +2248,8 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2316
2248
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
2317
2249
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
2318
2250
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
2251
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
2252
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
2319
2253
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
2320
2254
|
id: string | null;
|
|
2321
2255
|
title: string | null;
|
|
@@ -2533,6 +2467,8 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
2533
2467
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
2534
2468
|
createdAt: z.ZodNumber;
|
|
2535
2469
|
updatedAt: z.ZodNumber;
|
|
2470
|
+
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
2471
|
+
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
2536
2472
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
2537
2473
|
id: string;
|
|
2538
2474
|
name: string;
|
|
@@ -2792,32 +2728,6 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
2792
2728
|
boosted?: number | undefined;
|
|
2793
2729
|
}>;
|
|
2794
2730
|
notificationsEnabled: z.ZodNullable<z.ZodBoolean>;
|
|
2795
|
-
webhooks: z.ZodArray<z.ZodObject<{
|
|
2796
|
-
id: z.ZodString;
|
|
2797
|
-
title: z.ZodString;
|
|
2798
|
-
url: z.ZodString;
|
|
2799
|
-
notificationSettings: z.ZodObject<{
|
|
2800
|
-
[k: string]: z.ZodDefault<z.ZodBoolean>;
|
|
2801
|
-
}, "strip", z.ZodTypeAny, {
|
|
2802
|
-
[x: string]: boolean;
|
|
2803
|
-
}, {
|
|
2804
|
-
[x: string]: boolean | undefined;
|
|
2805
|
-
}>;
|
|
2806
|
-
}, "strip", z.ZodTypeAny, {
|
|
2807
|
-
id: string;
|
|
2808
|
-
title: string;
|
|
2809
|
-
url: string;
|
|
2810
|
-
notificationSettings: {
|
|
2811
|
-
[x: string]: boolean;
|
|
2812
|
-
};
|
|
2813
|
-
}, {
|
|
2814
|
-
id: string;
|
|
2815
|
-
title: string;
|
|
2816
|
-
url: string;
|
|
2817
|
-
notificationSettings: {
|
|
2818
|
-
[x: string]: boolean | undefined;
|
|
2819
|
-
};
|
|
2820
|
-
}>, "many">;
|
|
2821
2731
|
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">]>>;
|
|
2822
2732
|
bidConfig: z.ZodNullable<z.ZodObject<{
|
|
2823
2733
|
agencyName: z.ZodNullable<z.ZodString>;
|
|
@@ -3145,6 +3055,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3145
3055
|
}>>>;
|
|
3146
3056
|
}, {
|
|
3147
3057
|
jobId: z.ZodString;
|
|
3058
|
+
scrapedAt: z.ZodNullable<z.ZodNumber>;
|
|
3148
3059
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
3149
3060
|
suitabilityRating: z.ZodNullable<z.ZodNumber>;
|
|
3150
3061
|
suitabilityReason: z.ZodNullable<z.ZodString>;
|
|
@@ -3168,6 +3079,8 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3168
3079
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
3169
3080
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
3170
3081
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
3082
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
3083
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
3171
3084
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
3172
3085
|
id: string | null;
|
|
3173
3086
|
title: string | null;
|
|
@@ -3383,6 +3296,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3383
3296
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
3384
3297
|
createdAt: z.ZodNumber;
|
|
3385
3298
|
updatedAt: z.ZodNumber;
|
|
3299
|
+
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
3300
|
+
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
3386
3301
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
3387
3302
|
id: string;
|
|
3388
3303
|
name: string;
|
|
@@ -3642,32 +3557,6 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3642
3557
|
boosted?: number | undefined;
|
|
3643
3558
|
}>;
|
|
3644
3559
|
notificationsEnabled: z.ZodNullable<z.ZodBoolean>;
|
|
3645
|
-
webhooks: z.ZodArray<z.ZodObject<{
|
|
3646
|
-
id: z.ZodString;
|
|
3647
|
-
title: z.ZodString;
|
|
3648
|
-
url: z.ZodString;
|
|
3649
|
-
notificationSettings: z.ZodObject<{
|
|
3650
|
-
[k: string]: z.ZodDefault<z.ZodBoolean>;
|
|
3651
|
-
}, "strip", z.ZodTypeAny, {
|
|
3652
|
-
[x: string]: boolean;
|
|
3653
|
-
}, {
|
|
3654
|
-
[x: string]: boolean | undefined;
|
|
3655
|
-
}>;
|
|
3656
|
-
}, "strip", z.ZodTypeAny, {
|
|
3657
|
-
id: string;
|
|
3658
|
-
title: string;
|
|
3659
|
-
url: string;
|
|
3660
|
-
notificationSettings: {
|
|
3661
|
-
[x: string]: boolean;
|
|
3662
|
-
};
|
|
3663
|
-
}, {
|
|
3664
|
-
id: string;
|
|
3665
|
-
title: string;
|
|
3666
|
-
url: string;
|
|
3667
|
-
notificationSettings: {
|
|
3668
|
-
[x: string]: boolean | undefined;
|
|
3669
|
-
};
|
|
3670
|
-
}>, "many">;
|
|
3671
3560
|
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">]>>;
|
|
3672
3561
|
bidConfig: z.ZodNullable<z.ZodObject<{
|
|
3673
3562
|
agencyName: z.ZodNullable<z.ZodString>;
|
|
@@ -3890,6 +3779,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3890
3779
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
3891
3780
|
createdAt: z.ZodNumber;
|
|
3892
3781
|
updatedAt: z.ZodNumber;
|
|
3782
|
+
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
3783
|
+
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
3893
3784
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
3894
3785
|
id: string;
|
|
3895
3786
|
name: string;
|
|
@@ -4149,32 +4040,6 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4149
4040
|
boosted?: number | undefined;
|
|
4150
4041
|
}>;
|
|
4151
4042
|
notificationsEnabled: z.ZodNullable<z.ZodBoolean>;
|
|
4152
|
-
webhooks: z.ZodArray<z.ZodObject<{
|
|
4153
|
-
id: z.ZodString;
|
|
4154
|
-
title: z.ZodString;
|
|
4155
|
-
url: z.ZodString;
|
|
4156
|
-
notificationSettings: z.ZodObject<{
|
|
4157
|
-
[k: string]: z.ZodDefault<z.ZodBoolean>;
|
|
4158
|
-
}, "strip", z.ZodTypeAny, {
|
|
4159
|
-
[x: string]: boolean;
|
|
4160
|
-
}, {
|
|
4161
|
-
[x: string]: boolean | undefined;
|
|
4162
|
-
}>;
|
|
4163
|
-
}, "strip", z.ZodTypeAny, {
|
|
4164
|
-
id: string;
|
|
4165
|
-
title: string;
|
|
4166
|
-
url: string;
|
|
4167
|
-
notificationSettings: {
|
|
4168
|
-
[x: string]: boolean;
|
|
4169
|
-
};
|
|
4170
|
-
}, {
|
|
4171
|
-
id: string;
|
|
4172
|
-
title: string;
|
|
4173
|
-
url: string;
|
|
4174
|
-
notificationSettings: {
|
|
4175
|
-
[x: string]: boolean | undefined;
|
|
4176
|
-
};
|
|
4177
|
-
}>, "many">;
|
|
4178
4043
|
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">]>>;
|
|
4179
4044
|
bidConfig: z.ZodNullable<z.ZodObject<{
|
|
4180
4045
|
agencyName: z.ZodNullable<z.ZodString>;
|
|
@@ -4502,6 +4367,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4502
4367
|
}>>>;
|
|
4503
4368
|
}, {
|
|
4504
4369
|
jobId: z.ZodString;
|
|
4370
|
+
scrapedAt: z.ZodNullable<z.ZodNumber>;
|
|
4505
4371
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
4506
4372
|
suitabilityRating: z.ZodNullable<z.ZodNumber>;
|
|
4507
4373
|
suitabilityReason: z.ZodNullable<z.ZodString>;
|
|
@@ -4525,6 +4391,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4525
4391
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
4526
4392
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
4527
4393
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
4394
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
4395
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
4528
4396
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
4529
4397
|
id: string | null;
|
|
4530
4398
|
title: string | null;
|
|
@@ -4742,6 +4610,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4742
4610
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
4743
4611
|
createdAt: z.ZodNumber;
|
|
4744
4612
|
updatedAt: z.ZodNumber;
|
|
4613
|
+
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
4614
|
+
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
4745
4615
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
4746
4616
|
id: string;
|
|
4747
4617
|
name: string;
|
|
@@ -5001,32 +4871,6 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5001
4871
|
boosted?: number | undefined;
|
|
5002
4872
|
}>;
|
|
5003
4873
|
notificationsEnabled: z.ZodNullable<z.ZodBoolean>;
|
|
5004
|
-
webhooks: z.ZodArray<z.ZodObject<{
|
|
5005
|
-
id: z.ZodString;
|
|
5006
|
-
title: z.ZodString;
|
|
5007
|
-
url: z.ZodString;
|
|
5008
|
-
notificationSettings: z.ZodObject<{
|
|
5009
|
-
[k: string]: z.ZodDefault<z.ZodBoolean>;
|
|
5010
|
-
}, "strip", z.ZodTypeAny, {
|
|
5011
|
-
[x: string]: boolean;
|
|
5012
|
-
}, {
|
|
5013
|
-
[x: string]: boolean | undefined;
|
|
5014
|
-
}>;
|
|
5015
|
-
}, "strip", z.ZodTypeAny, {
|
|
5016
|
-
id: string;
|
|
5017
|
-
title: string;
|
|
5018
|
-
url: string;
|
|
5019
|
-
notificationSettings: {
|
|
5020
|
-
[x: string]: boolean;
|
|
5021
|
-
};
|
|
5022
|
-
}, {
|
|
5023
|
-
id: string;
|
|
5024
|
-
title: string;
|
|
5025
|
-
url: string;
|
|
5026
|
-
notificationSettings: {
|
|
5027
|
-
[x: string]: boolean | undefined;
|
|
5028
|
-
};
|
|
5029
|
-
}>, "many">;
|
|
5030
4874
|
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">]>>;
|
|
5031
4875
|
bidConfig: z.ZodNullable<z.ZodObject<{
|
|
5032
4876
|
agencyName: z.ZodNullable<z.ZodString>;
|
|
@@ -5355,6 +5199,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5355
5199
|
}>>>;
|
|
5356
5200
|
}, {
|
|
5357
5201
|
jobId: z.ZodString;
|
|
5202
|
+
scrapedAt: z.ZodNullable<z.ZodNumber>;
|
|
5358
5203
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
5359
5204
|
suitabilityRating: z.ZodNullable<z.ZodNumber>;
|
|
5360
5205
|
suitabilityReason: z.ZodNullable<z.ZodString>;
|
|
@@ -5378,6 +5223,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5378
5223
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
5379
5224
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
5380
5225
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
5226
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
5227
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
5381
5228
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
5382
5229
|
id: string | null;
|
|
5383
5230
|
title: string | null;
|
|
@@ -5594,6 +5441,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5594
5441
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
5595
5442
|
createdAt: z.ZodNumber;
|
|
5596
5443
|
updatedAt: z.ZodNumber;
|
|
5444
|
+
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
5445
|
+
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
5597
5446
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
5598
5447
|
id: string;
|
|
5599
5448
|
name: string;
|
|
@@ -5853,32 +5702,6 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5853
5702
|
boosted?: number | undefined;
|
|
5854
5703
|
}>;
|
|
5855
5704
|
notificationsEnabled: z.ZodNullable<z.ZodBoolean>;
|
|
5856
|
-
webhooks: z.ZodArray<z.ZodObject<{
|
|
5857
|
-
id: z.ZodString;
|
|
5858
|
-
title: z.ZodString;
|
|
5859
|
-
url: z.ZodString;
|
|
5860
|
-
notificationSettings: z.ZodObject<{
|
|
5861
|
-
[k: string]: z.ZodDefault<z.ZodBoolean>;
|
|
5862
|
-
}, "strip", z.ZodTypeAny, {
|
|
5863
|
-
[x: string]: boolean;
|
|
5864
|
-
}, {
|
|
5865
|
-
[x: string]: boolean | undefined;
|
|
5866
|
-
}>;
|
|
5867
|
-
}, "strip", z.ZodTypeAny, {
|
|
5868
|
-
id: string;
|
|
5869
|
-
title: string;
|
|
5870
|
-
url: string;
|
|
5871
|
-
notificationSettings: {
|
|
5872
|
-
[x: string]: boolean;
|
|
5873
|
-
};
|
|
5874
|
-
}, {
|
|
5875
|
-
id: string;
|
|
5876
|
-
title: string;
|
|
5877
|
-
url: string;
|
|
5878
|
-
notificationSettings: {
|
|
5879
|
-
[x: string]: boolean | undefined;
|
|
5880
|
-
};
|
|
5881
|
-
}>, "many">;
|
|
5882
5705
|
status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">]>>;
|
|
5883
5706
|
bidConfig: z.ZodNullable<z.ZodObject<{
|
|
5884
5707
|
agencyName: z.ZodNullable<z.ZodString>;
|
|
@@ -6206,6 +6029,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6206
6029
|
}>>>;
|
|
6207
6030
|
}, {
|
|
6208
6031
|
jobId: z.ZodString;
|
|
6032
|
+
scrapedAt: z.ZodNullable<z.ZodNumber>;
|
|
6209
6033
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
6210
6034
|
suitabilityRating: z.ZodNullable<z.ZodNumber>;
|
|
6211
6035
|
suitabilityReason: z.ZodNullable<z.ZodString>;
|
|
@@ -6229,6 +6053,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6229
6053
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
6230
6054
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
6231
6055
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
6056
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
6057
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
6232
6058
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
6233
6059
|
id: string | null;
|
|
6234
6060
|
title: string | null;
|
|
@@ -6591,6 +6417,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
6591
6417
|
}>>>;
|
|
6592
6418
|
}, {
|
|
6593
6419
|
jobId: z.ZodString;
|
|
6420
|
+
scrapedAt: z.ZodNullable<z.ZodNumber>;
|
|
6594
6421
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
6595
6422
|
suitabilityRating: z.ZodNullable<z.ZodNumber>;
|
|
6596
6423
|
suitabilityReason: z.ZodNullable<z.ZodString>;
|
|
@@ -6614,6 +6441,8 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
6614
6441
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
6615
6442
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
6616
6443
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
6444
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
6445
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
6617
6446
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
6618
6447
|
id: string | null;
|
|
6619
6448
|
title: string | null;
|
|
@@ -6949,6 +6778,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
6949
6778
|
}>>>;
|
|
6950
6779
|
}, {
|
|
6951
6780
|
jobId: z.ZodString;
|
|
6781
|
+
scrapedAt: z.ZodNullable<z.ZodNumber>;
|
|
6952
6782
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
6953
6783
|
suitabilityRating: z.ZodNullable<z.ZodNumber>;
|
|
6954
6784
|
suitabilityReason: z.ZodNullable<z.ZodString>;
|
|
@@ -6972,6 +6802,8 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
6972
6802
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
6973
6803
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
6974
6804
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
6805
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
6806
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
6975
6807
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
6976
6808
|
id: string | null;
|
|
6977
6809
|
title: string | null;
|
|
@@ -7305,6 +7137,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
7305
7137
|
}>>>;
|
|
7306
7138
|
}, {
|
|
7307
7139
|
jobId: z.ZodString;
|
|
7140
|
+
scrapedAt: z.ZodNullable<z.ZodNumber>;
|
|
7308
7141
|
updatedAt: z.ZodNullable<z.ZodNumber>;
|
|
7309
7142
|
suitabilityRating: z.ZodNullable<z.ZodNumber>;
|
|
7310
7143
|
suitabilityReason: z.ZodNullable<z.ZodString>;
|
|
@@ -7328,6 +7161,8 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
7328
7161
|
biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
|
|
7329
7162
|
scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
|
|
7330
7163
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
7164
|
+
biddingTaskId: z.ZodNullable<z.ZodString>;
|
|
7165
|
+
doNotApplyReason: z.ZodNullable<z.ZodString>;
|
|
7331
7166
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
7332
7167
|
id: string | null;
|
|
7333
7168
|
title: string | null;
|
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.campaignActivitySchema = exports.campaignAnalyticsResponseSchema = exports.campaignAnalyticsStatsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const lead_1 = require("../lead");
|
|
6
|
+
exports.campaignAnalyticsStatsSchema = zod_1.z.object({
|
|
7
|
+
jobsAnalyzed: zod_1.z.number(),
|
|
8
|
+
totalStats: zod_1.z.object({
|
|
9
|
+
contacted: zod_1.z.number(),
|
|
10
|
+
viewed: zod_1.z.number(),
|
|
11
|
+
replied: zod_1.z.number(),
|
|
12
|
+
negotiations: zod_1.z.number(),
|
|
13
|
+
won: zod_1.z.number(),
|
|
11
14
|
}),
|
|
12
|
-
statsByDate: z.array(z.object({
|
|
13
|
-
label: z.string(),
|
|
14
|
-
contacted: z.number(),
|
|
15
|
-
viewed: z.number(),
|
|
16
|
-
replied: z.number(),
|
|
17
|
-
negotiations: z.number(),
|
|
18
|
-
won: z.number(),
|
|
15
|
+
statsByDate: zod_1.z.array(zod_1.z.object({
|
|
16
|
+
label: zod_1.z.string(),
|
|
17
|
+
contacted: zod_1.z.number(),
|
|
18
|
+
viewed: zod_1.z.number(),
|
|
19
|
+
replied: zod_1.z.number(),
|
|
20
|
+
negotiations: zod_1.z.number(),
|
|
21
|
+
won: zod_1.z.number(),
|
|
19
22
|
})),
|
|
20
23
|
});
|
|
21
|
-
|
|
22
|
-
jobsAnalyzed: z.number(),
|
|
23
|
-
contacted: z.number(),
|
|
24
|
-
viewed: z.number(),
|
|
25
|
-
replied: z.number(),
|
|
26
|
-
negotiations: z.number(),
|
|
27
|
-
won: z.number(),
|
|
24
|
+
exports.campaignAnalyticsResponseSchema = zod_1.z.object({
|
|
25
|
+
jobsAnalyzed: zod_1.z.number(),
|
|
26
|
+
contacted: zod_1.z.number(),
|
|
27
|
+
viewed: zod_1.z.number(),
|
|
28
|
+
replied: zod_1.z.number(),
|
|
29
|
+
negotiations: zod_1.z.number(),
|
|
30
|
+
won: zod_1.z.number(),
|
|
28
31
|
});
|
|
29
|
-
|
|
30
|
-
createdAt: z.number(),
|
|
31
|
-
status: leadStatusSchema,
|
|
32
|
-
job: upworkJobSchema.pick({
|
|
32
|
+
exports.campaignActivitySchema = zod_1.z.object({
|
|
33
|
+
createdAt: zod_1.z.number(),
|
|
34
|
+
status: lead_1.leadStatusSchema,
|
|
35
|
+
job: lead_1.upworkJobSchema.pick({
|
|
33
36
|
id: true,
|
|
34
37
|
title: true,
|
|
35
38
|
datetime: true,
|
|
36
39
|
jobUrl: true,
|
|
37
40
|
}),
|
|
38
41
|
});
|
|
39
|
-
export const campaignActivityCreateSchema = campaignActivitySchema.pick({
|
|
40
|
-
status: true,
|
|
41
|
-
job: true,
|
|
42
|
-
});
|