lancer-shared 1.2.86 → 1.2.87
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 +166 -210
- package/dist/constants/routes.d.ts +1 -10
- package/dist/schemas/agent/index.d.ts +0 -10
- package/dist/schemas/campaign/campaign-analytics.d.ts +232 -67
- package/dist/schemas/campaign/campaign-webhooks.d.ts +58 -0
- package/dist/schemas/campaign/campaign.d.ts +133 -4
- package/dist/schemas/campaign/index.d.ts +1 -1
- package/dist/schemas/lead/index.d.ts +4 -30
- package/dist/schemas/logger/log-event.d.ts +11 -19
- package/dist/schemas/organization/index.d.ts +7 -11
- package/dist/schemas/proxy/proxy-available-replacements.d.ts +1 -1
- package/dist/schemas/scraper/scrape-payload.d.ts +58 -15
- package/dist/types/campaign/campaign.d.ts +2 -0
- package/package.json +1 -1
- package/dist/constants/account-status.d.ts +0 -3
- package/dist/constants/account-status.js +0 -17
- package/dist/constants/collections.d.ts +0 -13
- package/dist/constants/collections.js +0 -16
- package/dist/constants/common-questions.js +0 -60
- package/dist/constants/index.js +0 -40
- package/dist/constants/job-filter-options.js +0 -268
- package/dist/constants/job-status.js +0 -26
- package/dist/constants/mappings/countryMapping.js +0 -122
- package/dist/constants/mappings/regionMapping.js +0 -242
- package/dist/constants/organization.d.ts +0 -2
- package/dist/constants/proxies.d.ts +0 -4
- package/dist/constants/routes.js +0 -114
- package/dist/constants/upwork-accounts.js +0 -21
- package/dist/constants/upwork-filters.d.ts +0 -5
- package/dist/constants/upwork-filters.js +0 -75
- package/dist/index.js +0 -20
- package/dist/schemas/account/account-status.js +0 -11
- package/dist/schemas/account/bidder-account.js +0 -37
- package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +0 -5
- package/dist/schemas/account/index.js +0 -19
- package/dist/schemas/account/manager-account.d.ts +0 -116
- package/dist/schemas/account/manager-account.js +0 -38
- package/dist/schemas/account/scraper-account.js +0 -37
- package/dist/schemas/ai/ai-config.d.ts +0 -36
- package/dist/schemas/ai/ai-config.js +0 -12
- package/dist/schemas/ai/index.d.ts +0 -3
- package/dist/schemas/ai/index.js +0 -19
- package/dist/schemas/ai/proposal.d.ts +0 -82
- package/dist/schemas/ai/proposal.js +0 -16
- package/dist/schemas/ai/suitability.d.ts +0 -37
- package/dist/schemas/ai/suitability.js +0 -17
- package/dist/schemas/ai-config/ai-config.d.ts +0 -39
- package/dist/schemas/ai-config/ai-config.js +0 -12
- package/dist/schemas/ai-config/index.d.ts +0 -1
- package/dist/schemas/ai-config/index.js +0 -17
- package/dist/schemas/bid/bid-result.js +0 -15
- package/dist/schemas/bid/bid-status.d.ts +0 -30
- package/dist/schemas/bid/bid-status.js +0 -15
- package/dist/schemas/bid/bid.js +0 -36
- package/dist/schemas/bid/exceptions/base-exception.d.ts +0 -4
- package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +0 -5
- package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +0 -5
- package/dist/schemas/bid/index.js +0 -18
- package/dist/schemas/bidding/index.d.ts +0 -1
- package/dist/schemas/bidding/index.js +0 -17
- package/dist/schemas/bidding/proposal-bidding-status.d.ts +0 -26
- package/dist/schemas/bidding/proposal-bidding-status.js +0 -18
- package/dist/schemas/bidding/proposal-dto.d.ts +0 -26
- package/dist/schemas/bidding/proposal-dto.js +0 -18
- package/dist/schemas/campaign/campaign-ai-metrics.js +0 -9
- package/dist/schemas/campaign/campaign-analytics.js +0 -41
- package/dist/schemas/campaign/campaign-expenses.js +0 -9
- package/dist/schemas/campaign/campaign-insights.js +0 -31
- package/dist/schemas/campaign/campaign-integrations.d.ts +0 -82
- package/dist/schemas/campaign/campaign-integrations.js +0 -16
- package/dist/schemas/campaign/campaign-job-count.d.ts +0 -2
- package/dist/schemas/campaign/campaign-job-count.js +0 -6
- package/dist/schemas/campaign/campaign.js +0 -44
- package/dist/schemas/campaign/index.js +0 -23
- package/dist/schemas/chat-message/chat-message.d.ts +0 -31
- package/dist/schemas/chat-message/chat-message.js +0 -13
- package/dist/schemas/chat-message/index.d.ts +0 -1
- package/dist/schemas/chat-message/index.js +0 -17
- package/dist/schemas/config/agency-config.d.ts +0 -17
- package/dist/schemas/config/agency-config.js +0 -10
- package/dist/schemas/config/index.d.ts +0 -1
- package/dist/schemas/config/index.js +0 -17
- package/dist/schemas/index.js +0 -32
- package/dist/schemas/job/index.js +0 -19
- package/dist/schemas/job/job-details.d.ts +0 -335
- package/dist/schemas/job/job-details.js +0 -29
- package/dist/schemas/job/job-note.d.ts +0 -83
- package/dist/schemas/job/job-note.js +0 -30
- package/dist/schemas/job/job-pipeline.d.ts +0 -74
- package/dist/schemas/job/job-pipeline.js +0 -29
- package/dist/schemas/job/job-status.d.ts +0 -3
- package/dist/schemas/job/job-status.js +0 -27
- package/dist/schemas/job/job-suitability.d.ts +0 -12
- package/dist/schemas/job/job-suitability.js +0 -13
- package/dist/schemas/job/job.d.ts +0 -1160
- package/dist/schemas/job/job.js +0 -90
- package/dist/schemas/job/pipeline-job.d.ts +0 -608
- package/dist/schemas/job/pipeline-job.js +0 -43
- package/dist/schemas/job/upwork-job.d.ts +0 -334
- package/dist/schemas/job/upwork-job.js +0 -60
- package/dist/schemas/job-filters/index.d.ts +0 -1
- package/dist/schemas/job-filters/index.js +0 -17
- package/dist/schemas/job-filters/job-filters.d.ts +0 -241
- package/dist/schemas/job-filters/job-filters.js +0 -87
- package/dist/schemas/knowledge-object/index.d.ts +0 -1
- package/dist/schemas/knowledge-object/index.js +0 -17
- package/dist/schemas/knowledge-object/knowledge-object.d.ts +0 -128
- package/dist/schemas/knowledge-object/knowledge-object.js +0 -47
- package/dist/schemas/lead/index.js +0 -19
- package/dist/schemas/lead/lead-note.d.ts +0 -83
- package/dist/schemas/lead/lead-note.js +0 -30
- package/dist/schemas/lead/lead-status.js +0 -26
- package/dist/schemas/lead/lead.d.ts +0 -1897
- package/dist/schemas/lead/lead.js +0 -143
- package/dist/schemas/lead/nuxt.d.ts +0 -1664
- package/dist/schemas/logger/index.js +0 -17
- package/dist/schemas/logger/log-event.js +0 -66
- package/dist/schemas/organization/index.js +0 -17
- package/dist/schemas/organization/organization.d.ts +0 -70
- package/dist/schemas/organization/organization.js +0 -19
- package/dist/schemas/proxy/index.js +0 -17
- package/dist/schemas/proxy/proxy.js +0 -23
- package/dist/schemas/saved-search/index.js +0 -12
- package/dist/schemas/scraper/index.js +0 -18
- package/dist/schemas/scraper/scrape-payload.js +0 -16
- package/dist/schemas/scraper/scrape-response.d.ts +0 -345
- package/dist/schemas/scraper/scrape-response.js +0 -9
- package/dist/schemas/scraper/scrape-result.js +0 -23
- package/dist/schemas/shared.js +0 -16
- package/dist/schemas/time-filter/index.js +0 -9
- package/dist/schemas/upwork-account/index.d.ts +0 -3
- package/dist/schemas/upwork-account/index.js +0 -19
- package/dist/schemas/upwork-account/upwork-account-status.d.ts +0 -2
- package/dist/schemas/upwork-account/upwork-account-status.js +0 -11
- package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +0 -95
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +0 -35
- package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +0 -92
- package/dist/schemas/upwork-account/upwork-scraper-account.js +0 -31
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
- package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -30
- package/dist/schemas/user/index.js +0 -55
- package/dist/types/account/account-status.d.ts +0 -3
- package/dist/types/account/account-status.js +0 -2
- package/dist/types/account/bidder-account.d.ts +0 -7
- package/dist/types/account/bidder-account.js +0 -2
- package/dist/types/account/index.d.ts +0 -3
- package/dist/types/account/index.js +0 -19
- package/dist/types/account/manager-account.d.ts +0 -7
- package/dist/types/account/manager-account.js +0 -2
- package/dist/types/account/scraper-account.d.ts +0 -5
- package/dist/types/account/scraper-account.js +0 -2
- package/dist/types/ai/ai-config.d.ts +0 -6
- package/dist/types/ai/ai-config.js +0 -2
- package/dist/types/ai/index.d.ts +0 -3
- package/dist/types/ai/index.js +0 -19
- package/dist/types/ai/proposal.d.ts +0 -10
- package/dist/types/ai/proposal.js +0 -2
- package/dist/types/ai/suitability.d.ts +0 -6
- package/dist/types/ai/suitability.js +0 -2
- package/dist/types/ai-config/ai-config.d.ts +0 -6
- package/dist/types/ai-config/ai-config.js +0 -2
- package/dist/types/ai-config/index.d.ts +0 -1
- package/dist/types/ai-config/index.js +0 -17
- package/dist/types/bid/bid-result.d.ts +0 -5
- package/dist/types/bid/bid-result.js +0 -2
- package/dist/types/bid/bid-status.d.ts +0 -5
- package/dist/types/bid/bid-status.js +0 -2
- package/dist/types/bid/bid.d.ts +0 -9
- package/dist/types/bid/bid.js +0 -2
- package/dist/types/bid/index.d.ts +0 -2
- package/dist/types/bid/index.js +0 -18
- package/dist/types/bidding/index.d.ts +0 -1
- package/dist/types/bidding/index.js +0 -17
- package/dist/types/bidding/proposal-bidding-status.d.ts +0 -3
- package/dist/types/bidding/proposal-bidding-status.js +0 -2
- package/dist/types/bidding/proposal-dto.d.ts +0 -3
- package/dist/types/bidding/proposal-dto.js +0 -2
- package/dist/types/campaign/campaign-analytics.d.ts +0 -7
- package/dist/types/campaign/campaign-analytics.js +0 -2
- package/dist/types/campaign/campaign-expenses.d.ts +0 -3
- package/dist/types/campaign/campaign-expenses.js +0 -2
- package/dist/types/campaign/campaign-insights.js +0 -2
- package/dist/types/campaign/campaign-integrations.d.ts +0 -6
- package/dist/types/campaign/campaign-integrations.js +0 -2
- package/dist/types/campaign/campaign-job-count.d.ts +0 -4
- package/dist/types/campaign/campaign-job-count.js +0 -2
- package/dist/types/campaign/campaign.js +0 -2
- package/dist/types/campaign/index.js +0 -22
- package/dist/types/chat-message/chat-message.d.ts +0 -4
- package/dist/types/chat-message/chat-message.js +0 -2
- package/dist/types/chat-message/index.d.ts +0 -1
- package/dist/types/chat-message/index.js +0 -17
- package/dist/types/config/agency-config.d.ts +0 -4
- package/dist/types/config/agency-config.js +0 -2
- package/dist/types/config/index.d.ts +0 -1
- package/dist/types/config/index.js +0 -17
- package/dist/types/index.d.ts +0 -15
- package/dist/types/index.js +0 -29
- package/dist/types/job/index.d.ts +0 -48
- package/dist/types/job/index.js +0 -19
- package/dist/types/job/job-details.d.ts +0 -36
- package/dist/types/job/job-details.js +0 -2
- package/dist/types/job/job-note.d.ts +0 -10
- package/dist/types/job/job-note.js +0 -2
- package/dist/types/job/job-pipeline.d.ts +0 -4
- package/dist/types/job/job-pipeline.js +0 -2
- package/dist/types/job/job-status.d.ts +0 -5
- package/dist/types/job/job-status.js +0 -12
- package/dist/types/job/job-suitability.d.ts +0 -3
- package/dist/types/job/job-suitability.js +0 -2
- package/dist/types/job/job.d.ts +0 -36
- package/dist/types/job/job.js +0 -2
- package/dist/types/job/nuxt.d.ts +0 -4
- package/dist/types/job-filters/index.d.ts +0 -1
- package/dist/types/job-filters/index.js +0 -17
- package/dist/types/job-filters/job-filters.d.ts +0 -4
- package/dist/types/job-filters/job-filters.js +0 -2
- package/dist/types/knowledge-object/index.d.ts +0 -1
- package/dist/types/knowledge-object/index.js +0 -17
- package/dist/types/knowledge-object/knowledge-object.d.ts +0 -4
- package/dist/types/knowledge-object/knowledge-object.js +0 -2
- package/dist/types/logger/index.d.ts +0 -1
- package/dist/types/logger/index.js +0 -17
- package/dist/types/logger/log-event.js +0 -2
- package/dist/types/saved-search/index.d.ts +0 -6
- package/dist/types/saved-search/index.js +0 -2
- package/dist/types/scraper/index.d.ts +0 -2
- package/dist/types/scraper/index.js +0 -18
- package/dist/types/scraper/scrape-payload.d.ts +0 -10
- package/dist/types/scraper/scrape-payload.js +0 -2
- package/dist/types/scraper/scrape-response.d.ts +0 -4
- package/dist/types/scraper/scrape-response.js +0 -2
- package/dist/types/scraper/scrape-result.d.ts +0 -8
- package/dist/types/scraper/scrape-result.js +0 -2
- package/dist/types/shared.d.ts +0 -8
- package/dist/types/time-filter/index.d.ts +0 -3
- package/dist/types/time-filter/index.js +0 -2
- package/dist/types/transaction/index.d.ts +0 -4
- package/dist/types/upwork-account/index.d.ts +0 -3
- package/dist/types/upwork-account/index.js +0 -19
- package/dist/types/upwork-account/upwork-account-status.d.ts +0 -3
- package/dist/types/upwork-account/upwork-account-status.js +0 -2
- package/dist/types/upwork-account/upwork-business-manager-account.d.ts +0 -7
- package/dist/types/upwork-account/upwork-business-manager-account.js +0 -2
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +0 -5
- package/dist/types/upwork-account/upwork-scraping-account.js +0 -2
- package/dist/types/usage/index.d.ts +0 -6
- package/dist/types/user/index.d.ts +0 -15
- package/dist/types/user/index.js +0 -2
- package/dist/utils/index.js +0 -17
- package/dist/utils/try-catch.js +0 -25
|
@@ -401,6 +401,32 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
401
401
|
boosted?: number | undefined;
|
|
402
402
|
}>;
|
|
403
403
|
notificationsEnabled: import("zod").ZodNullable<import("zod").ZodBoolean>;
|
|
404
|
+
webhooks: import("zod").ZodArray<import("zod").ZodObject<{
|
|
405
|
+
id: import("zod").ZodString;
|
|
406
|
+
title: import("zod").ZodString;
|
|
407
|
+
url: import("zod").ZodString;
|
|
408
|
+
notificationSettings: import("zod").ZodObject<{
|
|
409
|
+
[k: string]: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
410
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
411
|
+
[x: string]: boolean;
|
|
412
|
+
}, {
|
|
413
|
+
[x: string]: boolean | undefined;
|
|
414
|
+
}>;
|
|
415
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
416
|
+
title: string;
|
|
417
|
+
id: string;
|
|
418
|
+
url: string;
|
|
419
|
+
notificationSettings: {
|
|
420
|
+
[x: string]: boolean;
|
|
421
|
+
};
|
|
422
|
+
}, {
|
|
423
|
+
title: string;
|
|
424
|
+
id: string;
|
|
425
|
+
url: string;
|
|
426
|
+
notificationSettings: {
|
|
427
|
+
[x: string]: boolean | undefined;
|
|
428
|
+
};
|
|
429
|
+
}>, "many">;
|
|
404
430
|
status: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"active">, import("zod").ZodLiteral<"draft">, import("zod").ZodLiteral<"paused">, import("zod").ZodLiteral<"error">]>>;
|
|
405
431
|
bidConfig: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
406
432
|
agencyName: import("zod").ZodNullable<import("zod").ZodString>;
|
|
@@ -487,6 +513,14 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
487
513
|
boosted: number;
|
|
488
514
|
};
|
|
489
515
|
notificationsEnabled: boolean | null;
|
|
516
|
+
webhooks: {
|
|
517
|
+
title: string;
|
|
518
|
+
id: string;
|
|
519
|
+
url: string;
|
|
520
|
+
notificationSettings: {
|
|
521
|
+
[x: string]: boolean;
|
|
522
|
+
};
|
|
523
|
+
}[];
|
|
490
524
|
bidConfig: {
|
|
491
525
|
agencyName: string | null;
|
|
492
526
|
bidderId: string | null;
|
|
@@ -560,6 +594,14 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
560
594
|
boosted?: number | undefined;
|
|
561
595
|
};
|
|
562
596
|
notificationsEnabled: boolean | null;
|
|
597
|
+
webhooks: {
|
|
598
|
+
title: string;
|
|
599
|
+
id: string;
|
|
600
|
+
url: string;
|
|
601
|
+
notificationSettings: {
|
|
602
|
+
[x: string]: boolean | undefined;
|
|
603
|
+
};
|
|
604
|
+
}[];
|
|
563
605
|
bidConfig: {
|
|
564
606
|
agencyName: string | null;
|
|
565
607
|
bidderId: string | null;
|
|
@@ -737,7 +779,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
737
779
|
createdAt: import("zod").ZodNumber;
|
|
738
780
|
updatedAt: import("zod").ZodNumber;
|
|
739
781
|
openRouterApiKey: import("zod").ZodNullable<import("zod").ZodString>;
|
|
740
|
-
appTrialEndsAt: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
741
782
|
}, "strip", import("zod").ZodTypeAny, {
|
|
742
783
|
type: "agency" | "freelancer";
|
|
743
784
|
id: string;
|
|
@@ -783,7 +824,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
783
824
|
} | null;
|
|
784
825
|
lastBidTime: number | null;
|
|
785
826
|
openRouterApiKey: string | null;
|
|
786
|
-
appTrialEndsAt: number | null;
|
|
787
827
|
}, {
|
|
788
828
|
type: "agency" | "freelancer";
|
|
789
829
|
id: string;
|
|
@@ -829,7 +869,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
829
869
|
} | null;
|
|
830
870
|
lastBidTime: number | null;
|
|
831
871
|
openRouterApiKey: string | null;
|
|
832
|
-
appTrialEndsAt: number | null;
|
|
833
872
|
}>;
|
|
834
873
|
lead: import("zod").ZodObject<Omit<import("zod").objectUtil.extendShape<{
|
|
835
874
|
id: import("zod").ZodNullable<import("zod").ZodString>;
|
|
@@ -1154,8 +1193,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1154
1193
|
biddingTaskScheduled: import("zod").ZodNullable<import("zod").ZodBoolean>;
|
|
1155
1194
|
scheduledBiddingTime: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
1156
1195
|
wonAmount: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1157
|
-
biddingTaskId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1158
|
-
doNotApplyReason: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1159
1196
|
}>, "processed">, "strip", import("zod").ZodTypeAny, {
|
|
1160
1197
|
uid: string | null;
|
|
1161
1198
|
title: string | null;
|
|
@@ -1263,8 +1300,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1263
1300
|
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
|
|
1264
1301
|
biddingTaskScheduled: boolean | null;
|
|
1265
1302
|
scheduledBiddingTime: number | null;
|
|
1266
|
-
biddingTaskId: string | null;
|
|
1267
|
-
doNotApplyReason: string | null;
|
|
1268
1303
|
activity?: Partial<Record<"4h" | "24h", {
|
|
1269
1304
|
updatedAt: number | null;
|
|
1270
1305
|
proposals: {
|
|
@@ -1394,8 +1429,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1394
1429
|
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
|
|
1395
1430
|
biddingTaskScheduled: boolean | null;
|
|
1396
1431
|
scheduledBiddingTime: number | null;
|
|
1397
|
-
biddingTaskId: string | null;
|
|
1398
|
-
doNotApplyReason: string | null;
|
|
1399
1432
|
activity?: Partial<Record<"4h" | "24h", {
|
|
1400
1433
|
updatedAt: number | null;
|
|
1401
1434
|
proposals: {
|
|
@@ -1564,6 +1597,14 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1564
1597
|
boosted: number;
|
|
1565
1598
|
};
|
|
1566
1599
|
notificationsEnabled: boolean | null;
|
|
1600
|
+
webhooks: {
|
|
1601
|
+
title: string;
|
|
1602
|
+
id: string;
|
|
1603
|
+
url: string;
|
|
1604
|
+
notificationSettings: {
|
|
1605
|
+
[x: string]: boolean;
|
|
1606
|
+
};
|
|
1607
|
+
}[];
|
|
1567
1608
|
bidConfig: {
|
|
1568
1609
|
agencyName: string | null;
|
|
1569
1610
|
bidderId: string | null;
|
|
@@ -1618,7 +1659,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1618
1659
|
} | null;
|
|
1619
1660
|
lastBidTime: number | null;
|
|
1620
1661
|
openRouterApiKey: string | null;
|
|
1621
|
-
appTrialEndsAt: number | null;
|
|
1622
1662
|
};
|
|
1623
1663
|
lead: {
|
|
1624
1664
|
uid: string | null;
|
|
@@ -1727,8 +1767,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1727
1767
|
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
|
|
1728
1768
|
biddingTaskScheduled: boolean | null;
|
|
1729
1769
|
scheduledBiddingTime: number | null;
|
|
1730
|
-
biddingTaskId: string | null;
|
|
1731
|
-
doNotApplyReason: string | null;
|
|
1732
1770
|
activity?: Partial<Record<"4h" | "24h", {
|
|
1733
1771
|
updatedAt: number | null;
|
|
1734
1772
|
proposals: {
|
|
@@ -1842,6 +1880,14 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1842
1880
|
boosted?: number | undefined;
|
|
1843
1881
|
};
|
|
1844
1882
|
notificationsEnabled: boolean | null;
|
|
1883
|
+
webhooks: {
|
|
1884
|
+
title: string;
|
|
1885
|
+
id: string;
|
|
1886
|
+
url: string;
|
|
1887
|
+
notificationSettings: {
|
|
1888
|
+
[x: string]: boolean | undefined;
|
|
1889
|
+
};
|
|
1890
|
+
}[];
|
|
1845
1891
|
bidConfig: {
|
|
1846
1892
|
agencyName: string | null;
|
|
1847
1893
|
bidderId: string | null;
|
|
@@ -1899,7 +1945,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1899
1945
|
} | null;
|
|
1900
1946
|
lastBidTime: number | null;
|
|
1901
1947
|
openRouterApiKey: string | null;
|
|
1902
|
-
appTrialEndsAt: number | null;
|
|
1903
1948
|
};
|
|
1904
1949
|
lead: {
|
|
1905
1950
|
uid: string | null;
|
|
@@ -2008,8 +2053,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
2008
2053
|
leadStatus: "leads" | "contacted" | "viewed" | "replied" | "won" | null;
|
|
2009
2054
|
biddingTaskScheduled: boolean | null;
|
|
2010
2055
|
scheduledBiddingTime: number | null;
|
|
2011
|
-
biddingTaskId: string | null;
|
|
2012
|
-
doNotApplyReason: string | null;
|
|
2013
2056
|
activity?: Partial<Record<"4h" | "24h", {
|
|
2014
2057
|
updatedAt: number | null;
|
|
2015
2058
|
proposals: {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { CampaignExpenses, campaignSchema, campaignStatusSchema, createCampaignSchema, JobFilters, updateCampaignSchema } from '../../schemas';
|
|
3
|
+
import { CampaignWebhook } from '../../schemas/campaign/campaign-webhooks';
|
|
3
4
|
export interface Campaign extends z.infer<typeof campaignSchema> {
|
|
4
5
|
filters: JobFilters;
|
|
5
6
|
expenses: CampaignExpenses;
|
|
7
|
+
webhooks: CampaignWebhook[];
|
|
6
8
|
}
|
|
7
9
|
export type CampaignStatus = z.infer<typeof campaignStatusSchema>;
|
|
8
10
|
export interface CreateCampaign extends z.infer<typeof createCampaignSchema> {
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.accountStatusDisplayMap = exports.accountStatusOrder = void 0;
|
|
4
|
-
exports.accountStatusOrder = [
|
|
5
|
-
'verification_required',
|
|
6
|
-
'shadow_banned',
|
|
7
|
-
'healthy',
|
|
8
|
-
'banned',
|
|
9
|
-
'suspended',
|
|
10
|
-
];
|
|
11
|
-
exports.accountStatusDisplayMap = {
|
|
12
|
-
verification_required: 'Verification Required',
|
|
13
|
-
shadow_banned: 'Shadow Banned',
|
|
14
|
-
healthy: 'Healthy',
|
|
15
|
-
banned: 'Banned',
|
|
16
|
-
suspended: 'Suspended',
|
|
17
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const COLLECTIONS: {
|
|
2
|
-
readonly USERS: "users";
|
|
3
|
-
readonly SETTINGS: "settings";
|
|
4
|
-
readonly CAMPAIGNS: "campaigns";
|
|
5
|
-
readonly LEADS: "leads";
|
|
6
|
-
readonly EVENTS: "events";
|
|
7
|
-
readonly SCRAPER_ACCOUNTS: "scrapers";
|
|
8
|
-
readonly BIDDER_ACCOUNTS: "bidders";
|
|
9
|
-
readonly CAMPAIGN_ACTIVITIES: (userId: string, campaignId: string) => string;
|
|
10
|
-
readonly ORGANIZATIONS: "organizations";
|
|
11
|
-
readonly PROXIES: "proxies";
|
|
12
|
-
readonly TRANSACTIONS: "transactions";
|
|
13
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.COLLECTIONS = void 0;
|
|
4
|
-
// Base collection names
|
|
5
|
-
exports.COLLECTIONS = {
|
|
6
|
-
USERS: 'users',
|
|
7
|
-
SETTINGS: 'settings',
|
|
8
|
-
CAMPAIGNS: 'campaigns',
|
|
9
|
-
LEADS: 'leads',
|
|
10
|
-
EVENTS: 'events',
|
|
11
|
-
SCRAPER_ACCOUNTS: 'scrapers',
|
|
12
|
-
BIDDER_ACCOUNTS: 'bidders',
|
|
13
|
-
CAMPAIGN_ACTIVITIES: (userId, campaignId) => `users/${userId}/campaigns/${campaignId}/activities`,
|
|
14
|
-
ORGANIZATIONS: 'organizations',
|
|
15
|
-
PROXIES: 'proxies',
|
|
16
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commonQuestions = void 0;
|
|
4
|
-
exports.commonQuestions = [
|
|
5
|
-
{
|
|
6
|
-
id: 'similar_experience',
|
|
7
|
-
question: 'Describe your recent experience with similar projects',
|
|
8
|
-
placeholder: 'ex: [Answer the question based on case studies, if not certain ask to discuss in DMs]',
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
id: 'profile_links',
|
|
12
|
-
question: 'Include a link to your GitHub profile and/or website',
|
|
13
|
-
placeholder: 'ex: [https://github.com/yourusername or https://yourwebsite.com]',
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
id: 'frameworks',
|
|
17
|
-
question: 'What frameworks have you worked with?',
|
|
18
|
-
placeholder: 'ex: [NextJS, React, TailwindCSS, etc...]',
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
id: 'testing_approach',
|
|
22
|
-
question: 'Describe your approach to testing and improving QA',
|
|
23
|
-
placeholder: 'ex: [We are using test-driven development, and we are using Jest for testing]',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
id: 'certifications',
|
|
27
|
-
question: 'Please list any certifications related to this project',
|
|
28
|
-
placeholder: 'ex: [Certification in React, Certification in NextJS, etc...]',
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
id: 'similar_project',
|
|
32
|
-
question: 'What past project or job have you had that is most like this one and why?',
|
|
33
|
-
placeholder: "ex: [Describe a similar project and explain the key similarities... If you can't answer based on the case studies, ask to discuss in DMs]",
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
id: 'project_fit',
|
|
37
|
-
question: 'Why do you think you are a good fit for this particular project?',
|
|
38
|
-
placeholder: 'ex: [Explain how your skills and experience match the project requirements...]',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
id: 'job_questions',
|
|
42
|
-
question: 'Do you have any questions about the job description?',
|
|
43
|
-
placeholder: 'ex: [Ask for any clarifications needed about the role or requirements...]',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
id: 'project_questions',
|
|
47
|
-
question: 'What questions do you have about the project?',
|
|
48
|
-
placeholder: 'ex: [Ask about project scope, timeline, team structure...]',
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
id: 'project_suggestions',
|
|
52
|
-
question: 'Do you have suggestions to make this project run successfully?',
|
|
53
|
-
placeholder: 'ex: [Ask to discuss in DMs]',
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
id: 'company_info',
|
|
57
|
-
question: 'What is your company website URL? . . . Company size?',
|
|
58
|
-
placeholder: 'ex: [https://company.com | Number of employees: ...]',
|
|
59
|
-
},
|
|
60
|
-
];
|
package/dist/constants/index.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.regionMapping = exports.countryMapping = exports.paths = void 0;
|
|
21
|
-
exports.paths = {
|
|
22
|
-
auth: {
|
|
23
|
-
register: `auth/register`,
|
|
24
|
-
},
|
|
25
|
-
users: {
|
|
26
|
-
root: 'users',
|
|
27
|
-
details: (id) => `users/${id}`,
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
__exportStar(require("./job-filter-options"), exports);
|
|
31
|
-
var countryMapping_1 = require("./mappings/countryMapping");
|
|
32
|
-
Object.defineProperty(exports, "countryMapping", { enumerable: true, get: function () { return __importDefault(countryMapping_1).default; } });
|
|
33
|
-
var regionMapping_1 = require("./mappings/regionMapping");
|
|
34
|
-
Object.defineProperty(exports, "regionMapping", { enumerable: true, get: function () { return __importDefault(regionMapping_1).default; } });
|
|
35
|
-
__exportStar(require("./job-filter-options"), exports);
|
|
36
|
-
__exportStar(require("./common-questions"), exports);
|
|
37
|
-
__exportStar(require("./job-status"), exports);
|
|
38
|
-
__exportStar(require("./routes"), exports);
|
|
39
|
-
__exportStar(require("./collections"), exports);
|
|
40
|
-
__exportStar(require("./upwork-accounts"), exports);
|
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JOB_FILTER_OPTIONS = void 0;
|
|
4
|
-
exports.JOB_FILTER_OPTIONS = {
|
|
5
|
-
REGIONS: ["Worldwide", "UKOnly", "USOnly"],
|
|
6
|
-
PROJECT_DURATION: [
|
|
7
|
-
"Less than 1 month",
|
|
8
|
-
"1 to 3 months",
|
|
9
|
-
"3 to 6 months",
|
|
10
|
-
"More than 6 months",
|
|
11
|
-
"Unspecified",
|
|
12
|
-
],
|
|
13
|
-
ENGAGEMENT_TYPE: [
|
|
14
|
-
"Less than 30 hrs/week",
|
|
15
|
-
"More than 30 hrs/week",
|
|
16
|
-
"Unspecified",
|
|
17
|
-
],
|
|
18
|
-
VENDOR_TYPE: ["Independent", "Agency", "Unspecified"],
|
|
19
|
-
PAYMENT_TYPE: ["Fixed-price", "Hourly", "Unspecified"],
|
|
20
|
-
TALENT_TYPE: ["Agency", "Independent", "Unspecified"],
|
|
21
|
-
ENGLISH_LEVELS: [
|
|
22
|
-
"Fluent",
|
|
23
|
-
"Conversational",
|
|
24
|
-
"Native or Bilingual",
|
|
25
|
-
"Unspecified",
|
|
26
|
-
],
|
|
27
|
-
EXPERIENCE_LEVELS: ["Entry level", "Intermediate", "Expert"],
|
|
28
|
-
REQUIRED_EARNINGS: [100, 1000, 10000],
|
|
29
|
-
REQUIRED_JSS: [">80%", ">90%", "100%", "RT"],
|
|
30
|
-
HIERARCHICAL_CATEGORIES: [
|
|
31
|
-
{
|
|
32
|
-
label: "Accounting & Consulting",
|
|
33
|
-
value: "accounting-consulting",
|
|
34
|
-
children: [
|
|
35
|
-
"Accounting & Bookkeeping",
|
|
36
|
-
"Financial Planning",
|
|
37
|
-
"Management Consulting & Analysis",
|
|
38
|
-
"Other - Accounting & Consulting",
|
|
39
|
-
"Personal & Professional Coaching",
|
|
40
|
-
"Recruiting & Human Resources",
|
|
41
|
-
],
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
label: "Admin Support",
|
|
45
|
-
value: "admin-support",
|
|
46
|
-
children: [
|
|
47
|
-
"Data Entry & Transcription Services",
|
|
48
|
-
"Market Research & Product Reviews",
|
|
49
|
-
"Project Management",
|
|
50
|
-
"Virtual Assistance",
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
label: "Customer Service",
|
|
55
|
-
value: "customer-service",
|
|
56
|
-
children: [
|
|
57
|
-
"Community Management & Tagging",
|
|
58
|
-
"Customer Service & Tech Support",
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
label: "Data Science & Analytics",
|
|
63
|
-
value: "data-science-analytics",
|
|
64
|
-
children: [
|
|
65
|
-
"AI & Machine Learning",
|
|
66
|
-
"Data Analysis & Testing",
|
|
67
|
-
"Data Extraction/ETL",
|
|
68
|
-
"Data Mining & Management",
|
|
69
|
-
],
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
label: "Design & Creative",
|
|
73
|
-
value: "design-creative",
|
|
74
|
-
children: [
|
|
75
|
-
"Art & Illustration",
|
|
76
|
-
"Audio & Music Production",
|
|
77
|
-
"Branding & Logo Design",
|
|
78
|
-
"Graphic, Editorial & Presentation Design",
|
|
79
|
-
"NFT, AR/VR & Game Art",
|
|
80
|
-
"Performing Arts",
|
|
81
|
-
"Photography",
|
|
82
|
-
"Product Design",
|
|
83
|
-
"Video & Animation",
|
|
84
|
-
],
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
label: "Engineering & Architecture",
|
|
88
|
-
value: "engineering-architecture",
|
|
89
|
-
children: [
|
|
90
|
-
"3D Modeling & CAD",
|
|
91
|
-
"Building & Landscape Architecture",
|
|
92
|
-
"Chemical Engineering",
|
|
93
|
-
"Civil & Structural Engineering",
|
|
94
|
-
"Contract Manufacturing",
|
|
95
|
-
"Electrical & Electronic Engineering",
|
|
96
|
-
"Energy & Mechanical Engineering",
|
|
97
|
-
],
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
label: "IT & Networking",
|
|
101
|
-
value: "it-networking",
|
|
102
|
-
children: [
|
|
103
|
-
"Database Management & Administration",
|
|
104
|
-
"DevOps & Solution Architecture",
|
|
105
|
-
"ERP/CRM Software",
|
|
106
|
-
"Information Security & Compliance",
|
|
107
|
-
"Network & System Administration",
|
|
108
|
-
],
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
label: "Legal",
|
|
112
|
-
value: "legal",
|
|
113
|
-
children: [
|
|
114
|
-
"Corporate & Contract Law",
|
|
115
|
-
"Finance & Tax Law",
|
|
116
|
-
"International & Immigration Law",
|
|
117
|
-
"Public Law",
|
|
118
|
-
],
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
label: "Sales & Marketing",
|
|
122
|
-
value: "sales-marketing",
|
|
123
|
-
children: [
|
|
124
|
-
"Digital Marketing",
|
|
125
|
-
"Lead Generation & Telemarketing",
|
|
126
|
-
"Marketing, PR & Brand Strategy",
|
|
127
|
-
],
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
label: "Translation",
|
|
131
|
-
value: "translation",
|
|
132
|
-
children: [
|
|
133
|
-
"Language Tutoring & Interpretation",
|
|
134
|
-
"Translation & Localization Services",
|
|
135
|
-
],
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
label: "Software Development",
|
|
139
|
-
value: "software-development",
|
|
140
|
-
children: [
|
|
141
|
-
"AI Apps & Integration",
|
|
142
|
-
"Blockchain, NFT & Cryptocurrency",
|
|
143
|
-
"Desktop Application Development",
|
|
144
|
-
"Ecommerce Development",
|
|
145
|
-
"Game Design & Development",
|
|
146
|
-
"Mobile Development",
|
|
147
|
-
"Other - Software Development",
|
|
148
|
-
"Product Management & Scrum",
|
|
149
|
-
"QA Testing",
|
|
150
|
-
"Scripts & Utilities",
|
|
151
|
-
"Web & Mobile Design",
|
|
152
|
-
"Web Development",
|
|
153
|
-
],
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
label: "Writing",
|
|
157
|
-
value: "writing",
|
|
158
|
-
children: [
|
|
159
|
-
"Content Writing",
|
|
160
|
-
"Editing & Proofreading Services",
|
|
161
|
-
"Professional & Business Writing",
|
|
162
|
-
"Sales & Marketing Copywriting",
|
|
163
|
-
],
|
|
164
|
-
},
|
|
165
|
-
],
|
|
166
|
-
CATEGORIES: [
|
|
167
|
-
"Personal & Professional Coaching",
|
|
168
|
-
"Accounting & Bookkeeping",
|
|
169
|
-
"Financial Planning",
|
|
170
|
-
"Recruiting & Human Resources",
|
|
171
|
-
"Management Consulting & Analysis",
|
|
172
|
-
"Other - Accounting & Consulting",
|
|
173
|
-
"Data Entry & Transcription Services",
|
|
174
|
-
"Virtual Assistance",
|
|
175
|
-
"Project Management",
|
|
176
|
-
"Market Research & Product Reviews",
|
|
177
|
-
"Community Management & Tagging",
|
|
178
|
-
"Customer Service & Tech Support",
|
|
179
|
-
"Data Analysis & Testing",
|
|
180
|
-
"Data Extraction/ETL",
|
|
181
|
-
"Data Mining & Management",
|
|
182
|
-
"AI & Machine Learning",
|
|
183
|
-
"Art & Illustration",
|
|
184
|
-
"Audio & Music Production",
|
|
185
|
-
"Branding & Logo Design",
|
|
186
|
-
"NFT, AR/VR & Game Art",
|
|
187
|
-
"Graphic, Editorial & Presentation Design",
|
|
188
|
-
"Performing Arts",
|
|
189
|
-
"Photography",
|
|
190
|
-
"Product Design",
|
|
191
|
-
"Video & Animation",
|
|
192
|
-
"Building & Landscape Architecture",
|
|
193
|
-
"Chemical Engineering",
|
|
194
|
-
"Civil & Structural Engineering",
|
|
195
|
-
"Contract Manufacturing",
|
|
196
|
-
"Electrical & Electronic Engineering",
|
|
197
|
-
"Energy & Mechanical Engineering",
|
|
198
|
-
"3D Modeling & CAD",
|
|
199
|
-
"Database Management & Administration",
|
|
200
|
-
"ERP/CRM Software",
|
|
201
|
-
"Information Security & Compliance",
|
|
202
|
-
"Network & System Administration",
|
|
203
|
-
"DevOps & Solution Architecture",
|
|
204
|
-
"Corporate & Contract Law",
|
|
205
|
-
"International & Immigration Law",
|
|
206
|
-
"Finance & Tax Law",
|
|
207
|
-
"Public Law",
|
|
208
|
-
"Digital Marketing",
|
|
209
|
-
"Lead Generation & Telemarketing",
|
|
210
|
-
"Marketing, PR & Brand Strategy",
|
|
211
|
-
"Language Tutoring & Interpretation",
|
|
212
|
-
"Translation & Localization Services",
|
|
213
|
-
"Blockchain, NFT & Cryptocurrency",
|
|
214
|
-
"AI Apps & Integration",
|
|
215
|
-
"Desktop Application Development",
|
|
216
|
-
"Ecommerce Development",
|
|
217
|
-
"Game Design & Development",
|
|
218
|
-
"Mobile Development",
|
|
219
|
-
"Other - Software Development",
|
|
220
|
-
"Product Management & Scrum",
|
|
221
|
-
"QA Testing",
|
|
222
|
-
"Scripts & Utilities",
|
|
223
|
-
"Web & Mobile Design",
|
|
224
|
-
"Web Development",
|
|
225
|
-
"Sales & Marketing Copywriting",
|
|
226
|
-
"Content Writing",
|
|
227
|
-
"Editing & Proofreading Services",
|
|
228
|
-
"Professional & Business Writing",
|
|
229
|
-
],
|
|
230
|
-
CLIENT_INDUSTRY: [
|
|
231
|
-
"Aerospace",
|
|
232
|
-
"Agriculture & Forestry",
|
|
233
|
-
"Art & Design",
|
|
234
|
-
"Automotive",
|
|
235
|
-
"Aviation",
|
|
236
|
-
"Education",
|
|
237
|
-
"Energy & Utilities",
|
|
238
|
-
"Engineering & Architecture",
|
|
239
|
-
"Fashion & Beauty",
|
|
240
|
-
"Finance & Accounting",
|
|
241
|
-
"Food & Beverage",
|
|
242
|
-
"Government & Public Sector",
|
|
243
|
-
"Health & Fitness",
|
|
244
|
-
"HR & Business Services",
|
|
245
|
-
"Legal",
|
|
246
|
-
"Manufacturing & Construction",
|
|
247
|
-
"Media & Entertainment",
|
|
248
|
-
"Military & Defense",
|
|
249
|
-
"Mining",
|
|
250
|
-
"Real Estate",
|
|
251
|
-
"Retail & Consumer Goods",
|
|
252
|
-
"Sales & Marketing",
|
|
253
|
-
"Science & Medicine",
|
|
254
|
-
"Sports & Recreation",
|
|
255
|
-
"Supply Chain & Logistics",
|
|
256
|
-
"Tech & IT",
|
|
257
|
-
"Transportation & Warehousing",
|
|
258
|
-
"Travel & Hospitality",
|
|
259
|
-
],
|
|
260
|
-
CLIENT_SIZE: [
|
|
261
|
-
"Individual client",
|
|
262
|
-
"Small company (2-9 people)",
|
|
263
|
-
"Mid-sized company (10-99 people)",
|
|
264
|
-
"Large company (100-1,000 people)",
|
|
265
|
-
"Large company (1,000+ people)",
|
|
266
|
-
"Unspecified",
|
|
267
|
-
],
|
|
268
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getNextStatus = exports.getPreviousStatus = exports.jobStatusOrder = void 0;
|
|
4
|
-
exports.jobStatusOrder = [
|
|
5
|
-
"leads",
|
|
6
|
-
"contacted",
|
|
7
|
-
"viewed",
|
|
8
|
-
"replied",
|
|
9
|
-
"negotiations",
|
|
10
|
-
"won",
|
|
11
|
-
"lost",
|
|
12
|
-
];
|
|
13
|
-
const getPreviousStatus = (status) => {
|
|
14
|
-
if (status === "won")
|
|
15
|
-
return "negotiations";
|
|
16
|
-
if (status === "lost")
|
|
17
|
-
return "negotiations";
|
|
18
|
-
const index = exports.jobStatusOrder.indexOf(status);
|
|
19
|
-
return index > 0 ? exports.jobStatusOrder[index - 1] : null;
|
|
20
|
-
};
|
|
21
|
-
exports.getPreviousStatus = getPreviousStatus;
|
|
22
|
-
const getNextStatus = (status) => {
|
|
23
|
-
const index = exports.jobStatusOrder.indexOf(status);
|
|
24
|
-
return index < exports.jobStatusOrder.length - 1 ? exports.jobStatusOrder[index + 1] : null;
|
|
25
|
-
};
|
|
26
|
-
exports.getNextStatus = getNextStatus;
|