lancer-shared 1.2.44 → 1.2.46
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 +5 -2
- package/dist/schemas/campaign/campaign-analytics.d.ts +44 -8
- package/dist/schemas/organization/index.d.ts +1 -7
- package/dist/schemas/scraper/scrape-payload.d.ts +0 -5
- 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/routes.js +0 -108
- package/dist/constants/upwork-accounts.js +0 -21
- 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/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/bid/bid-result.js +0 -15
- package/dist/schemas/bid/bid.js +0 -36
- 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/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 -87
- 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-status.d.ts +0 -3
- package/dist/schemas/job/job-status.js +0 -27
- 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 -602
- package/dist/schemas/job/pipeline-job.js +0 -42
- 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/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 -21
- 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-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-scraping-account.d.ts +0 -90
- package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -29
- 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/bid/bid-result.d.ts +0 -5
- package/dist/types/bid/bid-result.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/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-status.d.ts +0 -5
- package/dist/types/job/job-status.js +0 -12
- 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/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-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
package/dist/bundle.cjs.js
CHANGED
|
@@ -12324,7 +12324,6 @@ const organizationSchema = objectType({
|
|
|
12324
12324
|
name: stringType(),
|
|
12325
12325
|
type: organizationTypeSchema,
|
|
12326
12326
|
associatedBidders: z.array(stringType()).nullable(),
|
|
12327
|
-
tierId: organizationTierEnum,
|
|
12328
12327
|
subscription: subscriptionSchema.nullable(),
|
|
12329
12328
|
active: booleanType(),
|
|
12330
12329
|
limits: limitsSchema,
|
|
@@ -12357,7 +12356,6 @@ z.object({
|
|
|
12357
12356
|
const createOrganizationSchema = organizationSchema.pick({
|
|
12358
12357
|
name: true,
|
|
12359
12358
|
type: true,
|
|
12360
|
-
tierId: true,
|
|
12361
12359
|
});
|
|
12362
12360
|
const trackUsageEventTypeEnum = LogEventTypeEnum.extract([
|
|
12363
12361
|
"suitabilityComplete",
|
|
@@ -12882,10 +12880,12 @@ const baseActivitySchema = z.object({
|
|
|
12882
12880
|
id: true,
|
|
12883
12881
|
name: true,
|
|
12884
12882
|
}),
|
|
12883
|
+
creditBalance: z.number(),
|
|
12885
12884
|
});
|
|
12886
12885
|
const campaignStatusActivityExtraSchema = z.object({
|
|
12887
12886
|
type: z.literal("campaign_status"),
|
|
12888
12887
|
status: z.enum(["started", "paused", "created", "error"]),
|
|
12888
|
+
creditBalance: z.number(),
|
|
12889
12889
|
});
|
|
12890
12890
|
const campaignStatusActivitySchema = baseActivitySchema.extend({
|
|
12891
12891
|
...campaignStatusActivityExtraSchema.shape,
|
|
@@ -12899,6 +12899,7 @@ const leadAnalysisActivityExtraSchema = z.object({
|
|
|
12899
12899
|
jobUrl: true,
|
|
12900
12900
|
}),
|
|
12901
12901
|
suitabilityRating: z.number().min(0).max(100),
|
|
12902
|
+
creditBalance: z.number(),
|
|
12902
12903
|
});
|
|
12903
12904
|
const leadAnalysisActivitySchema = baseActivitySchema.extend({
|
|
12904
12905
|
...leadAnalysisActivityExtraSchema.shape,
|
|
@@ -12912,6 +12913,7 @@ const leadStatusActivityExtraSchema = z.object({
|
|
|
12912
12913
|
datetime: true,
|
|
12913
12914
|
jobUrl: true,
|
|
12914
12915
|
}),
|
|
12916
|
+
creditBalance: z.number(),
|
|
12915
12917
|
});
|
|
12916
12918
|
const leadStatusActivitySchema = baseActivitySchema.extend({
|
|
12917
12919
|
...leadStatusActivityExtraSchema.shape,
|
|
@@ -12924,6 +12926,7 @@ const proposalSentActivityExtraSchema = z.object({
|
|
|
12924
12926
|
datetime: true,
|
|
12925
12927
|
jobUrl: true,
|
|
12926
12928
|
}),
|
|
12929
|
+
creditBalance: z.number(),
|
|
12927
12930
|
});
|
|
12928
12931
|
const proposalSentActivitySchema = baseActivitySchema.extend({
|
|
12929
12932
|
...proposalSentActivityExtraSchema.shape,
|
|
@@ -160,7 +160,6 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
160
160
|
name: z.ZodString;
|
|
161
161
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
162
162
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
163
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
164
163
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
165
164
|
planId: z.ZodString;
|
|
166
165
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -630,9 +629,11 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
630
629
|
id: string;
|
|
631
630
|
name: string;
|
|
632
631
|
}>;
|
|
632
|
+
creditBalance: z.ZodNumber;
|
|
633
633
|
}, {
|
|
634
634
|
type: z.ZodLiteral<"campaign_status">;
|
|
635
635
|
status: z.ZodEnum<["started", "paused", "created", "error"]>;
|
|
636
|
+
creditBalance: z.ZodNumber;
|
|
636
637
|
}>, "strip", z.ZodTypeAny, {
|
|
637
638
|
type: "campaign_status";
|
|
638
639
|
status: "paused" | "error" | "started" | "created";
|
|
@@ -645,6 +646,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
645
646
|
id: string;
|
|
646
647
|
name: string;
|
|
647
648
|
};
|
|
649
|
+
creditBalance: number;
|
|
648
650
|
}, {
|
|
649
651
|
type: "campaign_status";
|
|
650
652
|
status: "paused" | "error" | "started" | "created";
|
|
@@ -657,6 +659,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
657
659
|
id: string;
|
|
658
660
|
name: string;
|
|
659
661
|
};
|
|
662
|
+
creditBalance: number;
|
|
660
663
|
}>;
|
|
661
664
|
export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
662
665
|
createdAt: z.ZodNumber;
|
|
@@ -665,7 +668,6 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
665
668
|
name: z.ZodString;
|
|
666
669
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
667
670
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
668
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
669
671
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
670
672
|
planId: z.ZodString;
|
|
671
673
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -1135,6 +1137,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1135
1137
|
id: string;
|
|
1136
1138
|
name: string;
|
|
1137
1139
|
}>;
|
|
1140
|
+
creditBalance: z.ZodNumber;
|
|
1138
1141
|
}, {
|
|
1139
1142
|
type: z.ZodLiteral<"lead_analysis">;
|
|
1140
1143
|
lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
|
|
@@ -1471,6 +1474,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1471
1474
|
jobUrl: string | null;
|
|
1472
1475
|
}>;
|
|
1473
1476
|
suitabilityRating: z.ZodNumber;
|
|
1477
|
+
creditBalance: z.ZodNumber;
|
|
1474
1478
|
}>, "strip", z.ZodTypeAny, {
|
|
1475
1479
|
type: "lead_analysis";
|
|
1476
1480
|
createdAt: number;
|
|
@@ -1482,6 +1486,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1482
1486
|
id: string;
|
|
1483
1487
|
name: string;
|
|
1484
1488
|
};
|
|
1489
|
+
creditBalance: number;
|
|
1485
1490
|
suitabilityRating: number;
|
|
1486
1491
|
lead: {
|
|
1487
1492
|
id: string | null;
|
|
@@ -1500,6 +1505,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1500
1505
|
id: string;
|
|
1501
1506
|
name: string;
|
|
1502
1507
|
};
|
|
1508
|
+
creditBalance: number;
|
|
1503
1509
|
suitabilityRating: number;
|
|
1504
1510
|
lead: {
|
|
1505
1511
|
id: string | null;
|
|
@@ -1515,7 +1521,6 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1515
1521
|
name: z.ZodString;
|
|
1516
1522
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
1517
1523
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
1518
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
1519
1524
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
1520
1525
|
planId: z.ZodString;
|
|
1521
1526
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -1985,6 +1990,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1985
1990
|
id: string;
|
|
1986
1991
|
name: string;
|
|
1987
1992
|
}>;
|
|
1993
|
+
creditBalance: z.ZodNumber;
|
|
1988
1994
|
}, {
|
|
1989
1995
|
type: z.ZodLiteral<"lead_status">;
|
|
1990
1996
|
status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>;
|
|
@@ -2321,6 +2327,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2321
2327
|
datetime: number | null;
|
|
2322
2328
|
jobUrl: string | null;
|
|
2323
2329
|
}>;
|
|
2330
|
+
creditBalance: z.ZodNumber;
|
|
2324
2331
|
}>, "strip", z.ZodTypeAny, {
|
|
2325
2332
|
type: "lead_status";
|
|
2326
2333
|
status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
|
|
@@ -2333,6 +2340,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2333
2340
|
id: string;
|
|
2334
2341
|
name: string;
|
|
2335
2342
|
};
|
|
2343
|
+
creditBalance: number;
|
|
2336
2344
|
lead: {
|
|
2337
2345
|
id: string | null;
|
|
2338
2346
|
title: string | null;
|
|
@@ -2351,6 +2359,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2351
2359
|
id: string;
|
|
2352
2360
|
name: string;
|
|
2353
2361
|
};
|
|
2362
|
+
creditBalance: number;
|
|
2354
2363
|
lead: {
|
|
2355
2364
|
id: string | null;
|
|
2356
2365
|
title: string | null;
|
|
@@ -2365,7 +2374,6 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
2365
2374
|
name: z.ZodString;
|
|
2366
2375
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
2367
2376
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
2368
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
2369
2377
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
2370
2378
|
planId: z.ZodString;
|
|
2371
2379
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -2835,6 +2843,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
2835
2843
|
id: string;
|
|
2836
2844
|
name: string;
|
|
2837
2845
|
}>;
|
|
2846
|
+
creditBalance: z.ZodNumber;
|
|
2838
2847
|
}, {
|
|
2839
2848
|
type: z.ZodLiteral<"proposal_sent">;
|
|
2840
2849
|
lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
|
|
@@ -3170,6 +3179,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3170
3179
|
datetime: number | null;
|
|
3171
3180
|
jobUrl: string | null;
|
|
3172
3181
|
}>;
|
|
3182
|
+
creditBalance: z.ZodNumber;
|
|
3173
3183
|
}>, "strip", z.ZodTypeAny, {
|
|
3174
3184
|
type: "proposal_sent";
|
|
3175
3185
|
createdAt: number;
|
|
@@ -3181,6 +3191,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3181
3191
|
id: string;
|
|
3182
3192
|
name: string;
|
|
3183
3193
|
};
|
|
3194
|
+
creditBalance: number;
|
|
3184
3195
|
lead: {
|
|
3185
3196
|
id: string | null;
|
|
3186
3197
|
title: string | null;
|
|
@@ -3198,6 +3209,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3198
3209
|
id: string;
|
|
3199
3210
|
name: string;
|
|
3200
3211
|
};
|
|
3212
|
+
creditBalance: number;
|
|
3201
3213
|
lead: {
|
|
3202
3214
|
id: string | null;
|
|
3203
3215
|
title: string | null;
|
|
@@ -3212,7 +3224,6 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3212
3224
|
name: z.ZodString;
|
|
3213
3225
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
3214
3226
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
3215
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
3216
3227
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
3217
3228
|
planId: z.ZodString;
|
|
3218
3229
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -3682,9 +3693,11 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3682
3693
|
id: string;
|
|
3683
3694
|
name: string;
|
|
3684
3695
|
}>;
|
|
3696
|
+
creditBalance: z.ZodNumber;
|
|
3685
3697
|
}, {
|
|
3686
3698
|
type: z.ZodLiteral<"campaign_status">;
|
|
3687
3699
|
status: z.ZodEnum<["started", "paused", "created", "error"]>;
|
|
3700
|
+
creditBalance: z.ZodNumber;
|
|
3688
3701
|
}>, "strip", z.ZodTypeAny, {
|
|
3689
3702
|
type: "campaign_status";
|
|
3690
3703
|
status: "paused" | "error" | "started" | "created";
|
|
@@ -3697,6 +3710,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3697
3710
|
id: string;
|
|
3698
3711
|
name: string;
|
|
3699
3712
|
};
|
|
3713
|
+
creditBalance: number;
|
|
3700
3714
|
}, {
|
|
3701
3715
|
type: "campaign_status";
|
|
3702
3716
|
status: "paused" | "error" | "started" | "created";
|
|
@@ -3709,6 +3723,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3709
3723
|
id: string;
|
|
3710
3724
|
name: string;
|
|
3711
3725
|
};
|
|
3726
|
+
creditBalance: number;
|
|
3712
3727
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
3713
3728
|
createdAt: z.ZodNumber;
|
|
3714
3729
|
organization: z.ZodObject<Pick<{
|
|
@@ -3716,7 +3731,6 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3716
3731
|
name: z.ZodString;
|
|
3717
3732
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
3718
3733
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
3719
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
3720
3734
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
3721
3735
|
planId: z.ZodString;
|
|
3722
3736
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -4186,6 +4200,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4186
4200
|
id: string;
|
|
4187
4201
|
name: string;
|
|
4188
4202
|
}>;
|
|
4203
|
+
creditBalance: z.ZodNumber;
|
|
4189
4204
|
}, {
|
|
4190
4205
|
type: z.ZodLiteral<"lead_analysis">;
|
|
4191
4206
|
lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
|
|
@@ -4522,6 +4537,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4522
4537
|
jobUrl: string | null;
|
|
4523
4538
|
}>;
|
|
4524
4539
|
suitabilityRating: z.ZodNumber;
|
|
4540
|
+
creditBalance: z.ZodNumber;
|
|
4525
4541
|
}>, "strip", z.ZodTypeAny, {
|
|
4526
4542
|
type: "lead_analysis";
|
|
4527
4543
|
createdAt: number;
|
|
@@ -4533,6 +4549,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4533
4549
|
id: string;
|
|
4534
4550
|
name: string;
|
|
4535
4551
|
};
|
|
4552
|
+
creditBalance: number;
|
|
4536
4553
|
suitabilityRating: number;
|
|
4537
4554
|
lead: {
|
|
4538
4555
|
id: string | null;
|
|
@@ -4551,6 +4568,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4551
4568
|
id: string;
|
|
4552
4569
|
name: string;
|
|
4553
4570
|
};
|
|
4571
|
+
creditBalance: number;
|
|
4554
4572
|
suitabilityRating: number;
|
|
4555
4573
|
lead: {
|
|
4556
4574
|
id: string | null;
|
|
@@ -4565,7 +4583,6 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4565
4583
|
name: z.ZodString;
|
|
4566
4584
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
4567
4585
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
4568
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
4569
4586
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
4570
4587
|
planId: z.ZodString;
|
|
4571
4588
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -5035,6 +5052,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5035
5052
|
id: string;
|
|
5036
5053
|
name: string;
|
|
5037
5054
|
}>;
|
|
5055
|
+
creditBalance: z.ZodNumber;
|
|
5038
5056
|
}, {
|
|
5039
5057
|
type: z.ZodLiteral<"lead_status">;
|
|
5040
5058
|
status: z.ZodEnum<["leads", "contacted", "viewed", "replied", "won", "lost"]>;
|
|
@@ -5371,6 +5389,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5371
5389
|
datetime: number | null;
|
|
5372
5390
|
jobUrl: string | null;
|
|
5373
5391
|
}>;
|
|
5392
|
+
creditBalance: z.ZodNumber;
|
|
5374
5393
|
}>, "strip", z.ZodTypeAny, {
|
|
5375
5394
|
type: "lead_status";
|
|
5376
5395
|
status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
|
|
@@ -5383,6 +5402,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5383
5402
|
id: string;
|
|
5384
5403
|
name: string;
|
|
5385
5404
|
};
|
|
5405
|
+
creditBalance: number;
|
|
5386
5406
|
lead: {
|
|
5387
5407
|
id: string | null;
|
|
5388
5408
|
title: string | null;
|
|
@@ -5401,6 +5421,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5401
5421
|
id: string;
|
|
5402
5422
|
name: string;
|
|
5403
5423
|
};
|
|
5424
|
+
creditBalance: number;
|
|
5404
5425
|
lead: {
|
|
5405
5426
|
id: string | null;
|
|
5406
5427
|
title: string | null;
|
|
@@ -5414,7 +5435,6 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5414
5435
|
name: z.ZodString;
|
|
5415
5436
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
5416
5437
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
5417
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
5418
5438
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
5419
5439
|
planId: z.ZodString;
|
|
5420
5440
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -5884,6 +5904,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5884
5904
|
id: string;
|
|
5885
5905
|
name: string;
|
|
5886
5906
|
}>;
|
|
5907
|
+
creditBalance: z.ZodNumber;
|
|
5887
5908
|
}, {
|
|
5888
5909
|
type: z.ZodLiteral<"proposal_sent">;
|
|
5889
5910
|
lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
|
|
@@ -6219,6 +6240,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6219
6240
|
datetime: number | null;
|
|
6220
6241
|
jobUrl: string | null;
|
|
6221
6242
|
}>;
|
|
6243
|
+
creditBalance: z.ZodNumber;
|
|
6222
6244
|
}>, "strip", z.ZodTypeAny, {
|
|
6223
6245
|
type: "proposal_sent";
|
|
6224
6246
|
createdAt: number;
|
|
@@ -6230,6 +6252,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6230
6252
|
id: string;
|
|
6231
6253
|
name: string;
|
|
6232
6254
|
};
|
|
6255
|
+
creditBalance: number;
|
|
6233
6256
|
lead: {
|
|
6234
6257
|
id: string | null;
|
|
6235
6258
|
title: string | null;
|
|
@@ -6247,6 +6270,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6247
6270
|
id: string;
|
|
6248
6271
|
name: string;
|
|
6249
6272
|
};
|
|
6273
|
+
creditBalance: number;
|
|
6250
6274
|
lead: {
|
|
6251
6275
|
id: string | null;
|
|
6252
6276
|
title: string | null;
|
|
@@ -6257,12 +6281,15 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6257
6281
|
export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
6258
6282
|
type: z.ZodLiteral<"campaign_status">;
|
|
6259
6283
|
status: z.ZodEnum<["started", "paused", "created", "error"]>;
|
|
6284
|
+
creditBalance: z.ZodNumber;
|
|
6260
6285
|
}, "strip", z.ZodTypeAny, {
|
|
6261
6286
|
type: "campaign_status";
|
|
6262
6287
|
status: "paused" | "error" | "started" | "created";
|
|
6288
|
+
creditBalance: number;
|
|
6263
6289
|
}, {
|
|
6264
6290
|
type: "campaign_status";
|
|
6265
6291
|
status: "paused" | "error" | "started" | "created";
|
|
6292
|
+
creditBalance: number;
|
|
6266
6293
|
}>, z.ZodObject<{
|
|
6267
6294
|
type: z.ZodLiteral<"lead_analysis">;
|
|
6268
6295
|
lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
|
|
@@ -6599,8 +6626,10 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
6599
6626
|
jobUrl: string | null;
|
|
6600
6627
|
}>;
|
|
6601
6628
|
suitabilityRating: z.ZodNumber;
|
|
6629
|
+
creditBalance: z.ZodNumber;
|
|
6602
6630
|
}, "strip", z.ZodTypeAny, {
|
|
6603
6631
|
type: "lead_analysis";
|
|
6632
|
+
creditBalance: number;
|
|
6604
6633
|
suitabilityRating: number;
|
|
6605
6634
|
lead: {
|
|
6606
6635
|
id: string | null;
|
|
@@ -6610,6 +6639,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
6610
6639
|
};
|
|
6611
6640
|
}, {
|
|
6612
6641
|
type: "lead_analysis";
|
|
6642
|
+
creditBalance: number;
|
|
6613
6643
|
suitabilityRating: number;
|
|
6614
6644
|
lead: {
|
|
6615
6645
|
id: string | null;
|
|
@@ -6953,9 +6983,11 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
6953
6983
|
datetime: number | null;
|
|
6954
6984
|
jobUrl: string | null;
|
|
6955
6985
|
}>;
|
|
6986
|
+
creditBalance: z.ZodNumber;
|
|
6956
6987
|
}, "strip", z.ZodTypeAny, {
|
|
6957
6988
|
type: "lead_status";
|
|
6958
6989
|
status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
|
|
6990
|
+
creditBalance: number;
|
|
6959
6991
|
lead: {
|
|
6960
6992
|
id: string | null;
|
|
6961
6993
|
title: string | null;
|
|
@@ -6965,6 +6997,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
6965
6997
|
}, {
|
|
6966
6998
|
type: "lead_status";
|
|
6967
6999
|
status: "contacted" | "viewed" | "replied" | "won" | "leads" | "lost";
|
|
7000
|
+
creditBalance: number;
|
|
6968
7001
|
lead: {
|
|
6969
7002
|
id: string | null;
|
|
6970
7003
|
title: string | null;
|
|
@@ -7306,8 +7339,10 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
7306
7339
|
datetime: number | null;
|
|
7307
7340
|
jobUrl: string | null;
|
|
7308
7341
|
}>;
|
|
7342
|
+
creditBalance: z.ZodNumber;
|
|
7309
7343
|
}, "strip", z.ZodTypeAny, {
|
|
7310
7344
|
type: "proposal_sent";
|
|
7345
|
+
creditBalance: number;
|
|
7311
7346
|
lead: {
|
|
7312
7347
|
id: string | null;
|
|
7313
7348
|
title: string | null;
|
|
@@ -7316,6 +7351,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
7316
7351
|
};
|
|
7317
7352
|
}, {
|
|
7318
7353
|
type: "proposal_sent";
|
|
7354
|
+
creditBalance: number;
|
|
7319
7355
|
lead: {
|
|
7320
7356
|
id: string | null;
|
|
7321
7357
|
title: string | null;
|
|
@@ -21,7 +21,6 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
21
21
|
name: z.ZodString;
|
|
22
22
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
23
23
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
24
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
25
24
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
26
25
|
planId: z.ZodString;
|
|
27
26
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -186,7 +185,6 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
186
185
|
id: string;
|
|
187
186
|
name: string;
|
|
188
187
|
associatedBidders: string[] | null;
|
|
189
|
-
tierId: "free" | "premium";
|
|
190
188
|
active: boolean;
|
|
191
189
|
subscription: {
|
|
192
190
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
|
|
@@ -231,7 +229,6 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
231
229
|
id: string;
|
|
232
230
|
name: string;
|
|
233
231
|
associatedBidders: string[] | null;
|
|
234
|
-
tierId: "free" | "premium";
|
|
235
232
|
active: boolean;
|
|
236
233
|
subscription: {
|
|
237
234
|
status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
|
|
@@ -361,7 +358,6 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
361
358
|
name: z.ZodString;
|
|
362
359
|
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
363
360
|
associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
364
|
-
tierId: z.ZodEnum<["free", "premium"]>;
|
|
365
361
|
subscription: z.ZodNullable<z.ZodObject<{
|
|
366
362
|
planId: z.ZodString;
|
|
367
363
|
pendingPlanId: z.ZodNullable<z.ZodString>;
|
|
@@ -521,14 +517,12 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
521
517
|
lastBidTime: z.ZodNullable<z.ZodNumber>;
|
|
522
518
|
createdAt: z.ZodNumber;
|
|
523
519
|
updatedAt: z.ZodNumber;
|
|
524
|
-
}, "type" | "name"
|
|
520
|
+
}, "type" | "name">, "strip", z.ZodTypeAny, {
|
|
525
521
|
type: "agency" | "freelancer";
|
|
526
522
|
name: string;
|
|
527
|
-
tierId: "free" | "premium";
|
|
528
523
|
}, {
|
|
529
524
|
type: "agency" | "freelancer";
|
|
530
525
|
name: string;
|
|
531
|
-
tierId: "free" | "premium";
|
|
532
526
|
}>;
|
|
533
527
|
export type CreateOrganization = z.infer<typeof createOrganizationSchema>;
|
|
534
528
|
export declare const trackUsageEventTypeEnum: z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>;
|
|
@@ -574,7 +574,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
574
574
|
name: import("zod").ZodString;
|
|
575
575
|
type: import("zod").ZodEnum<["agency", "freelancer"]>;
|
|
576
576
|
associatedBidders: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
577
|
-
tierId: import("zod").ZodEnum<["free", "premium"]>;
|
|
578
577
|
subscription: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
579
578
|
planId: import("zod").ZodString;
|
|
580
579
|
pendingPlanId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
@@ -742,7 +741,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
742
741
|
updatedAt: number;
|
|
743
742
|
active: boolean;
|
|
744
743
|
associatedBidders: string[] | null;
|
|
745
|
-
tierId: "free" | "premium";
|
|
746
744
|
subscription: {
|
|
747
745
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_pending" | "payment_failed";
|
|
748
746
|
planId: string;
|
|
@@ -787,7 +785,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
787
785
|
updatedAt: number;
|
|
788
786
|
active: boolean;
|
|
789
787
|
associatedBidders: string[] | null;
|
|
790
|
-
tierId: "free" | "premium";
|
|
791
788
|
subscription: {
|
|
792
789
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_pending" | "payment_failed";
|
|
793
790
|
planId: string;
|
|
@@ -1575,7 +1572,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1575
1572
|
updatedAt: number;
|
|
1576
1573
|
active: boolean;
|
|
1577
1574
|
associatedBidders: string[] | null;
|
|
1578
|
-
tierId: "free" | "premium";
|
|
1579
1575
|
subscription: {
|
|
1580
1576
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_pending" | "payment_failed";
|
|
1581
1577
|
planId: string;
|
|
@@ -1861,7 +1857,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1861
1857
|
updatedAt: number;
|
|
1862
1858
|
active: boolean;
|
|
1863
1859
|
associatedBidders: string[] | null;
|
|
1864
|
-
tierId: "free" | "premium";
|
|
1865
1860
|
subscription: {
|
|
1866
1861
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_pending" | "payment_failed";
|
|
1867
1862
|
planId: string;
|
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);
|