lancer-shared 1.2.155 → 1.2.157
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 +17 -12
- package/dist/schemas/account/bidder-account.d.ts +5 -1
- package/dist/schemas/organization/subscription.d.ts +4 -1
- package/dist/schemas/plan/index.d.ts +44 -42
- package/dist/schemas/proxy/proxy-available-replacements.d.ts +1 -1
- package/dist/schemas/scraper/scrape-payload.d.ts +34 -7
- 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/campaign-notifications.d.ts +0 -2
- package/dist/constants/campaign-webhook-types.d.ts +0 -2
- 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-notifications.d.ts +0 -9
- 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/feed-job.d.ts +0 -866
- package/dist/schemas/job/index.js +0 -19
- 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-notifications.d.ts +0 -7
- 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.d.ts +0 -14
- 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
package/dist/bundle.cjs.js
CHANGED
|
@@ -6691,10 +6691,6 @@ const bidderAccountProviderDisplayMap = {
|
|
|
6691
6691
|
'user-provided': 'User Provided',
|
|
6692
6692
|
};
|
|
6693
6693
|
|
|
6694
|
-
const planSlugToNameMap = {
|
|
6695
|
-
"lancer-unlimited-launch-offer": "Lancer Unlimited - Launch Offer",
|
|
6696
|
-
};
|
|
6697
|
-
|
|
6698
6694
|
var util;
|
|
6699
6695
|
(function (util) {
|
|
6700
6696
|
util.assertEqual = (val) => val;
|
|
@@ -12546,6 +12542,8 @@ const createBidderAccountSchema = bidderAccountSchema
|
|
|
12546
12542
|
name: true,
|
|
12547
12543
|
agencies: true,
|
|
12548
12544
|
assignedOrganizations: true,
|
|
12545
|
+
multiLoginProfileId: true,
|
|
12546
|
+
proxyId: true,
|
|
12549
12547
|
region: true,
|
|
12550
12548
|
})
|
|
12551
12549
|
.extend({
|
|
@@ -12798,15 +12796,15 @@ const billingSchema = objectType({
|
|
|
12798
12796
|
});
|
|
12799
12797
|
|
|
12800
12798
|
const subscriptionStatusEnum = z.enum([
|
|
12801
|
-
|
|
12802
|
-
|
|
12803
|
-
|
|
12804
|
-
|
|
12805
|
-
|
|
12806
|
-
|
|
12807
|
-
|
|
12799
|
+
'active',
|
|
12800
|
+
'trialing',
|
|
12801
|
+
'cancelled',
|
|
12802
|
+
'paused',
|
|
12803
|
+
'payment_processing',
|
|
12804
|
+
'payment_pending',
|
|
12805
|
+
'payment_failed',
|
|
12808
12806
|
]);
|
|
12809
|
-
const subscriptionSourceEnum = z.enum([
|
|
12807
|
+
const subscriptionSourceEnum = z.enum(['stripe', 'manual']);
|
|
12810
12808
|
const subscriptionStripeMetadataItemSchema = objectType({
|
|
12811
12809
|
id: stringType(),
|
|
12812
12810
|
price: objectType({
|
|
@@ -12830,6 +12828,7 @@ const subscriptionSchema = objectType({
|
|
|
12830
12828
|
stripe: subscriptionStripeMetadataSchema,
|
|
12831
12829
|
source: subscriptionSourceEnum,
|
|
12832
12830
|
usage: recordType(usageEventTypeEnum, numberType()),
|
|
12831
|
+
trialEndsAt: numberType().nullable(),
|
|
12833
12832
|
});
|
|
12834
12833
|
|
|
12835
12834
|
const coverLetterTemplateSchema = z.object({
|
|
@@ -14072,6 +14071,7 @@ const planSchema = objectType({
|
|
|
14072
14071
|
createdAt: numberType(),
|
|
14073
14072
|
archivedAt: numberType().nullable(),
|
|
14074
14073
|
});
|
|
14074
|
+
const planSlugEnum = z.enum(['lancer-unlimited-launch-offer']);
|
|
14075
14075
|
|
|
14076
14076
|
const savedSearchSchema = objectType({
|
|
14077
14077
|
id: numberType().int(),
|
|
@@ -14363,6 +14363,10 @@ const bidderInstanceSchema = objectType({
|
|
|
14363
14363
|
updatedAt: numberType(),
|
|
14364
14364
|
});
|
|
14365
14365
|
|
|
14366
|
+
const planSlugToNameMap = {
|
|
14367
|
+
[planSlugEnum.enum['lancer-unlimited-launch-offer']]: 'Lancer Unlimited - Launch Offer',
|
|
14368
|
+
};
|
|
14369
|
+
|
|
14366
14370
|
// Main wrapper function
|
|
14367
14371
|
async function tryCatch(promise) {
|
|
14368
14372
|
try {
|
|
@@ -14980,6 +14984,7 @@ exports.periodTypeSchema = periodTypeSchema;
|
|
|
14980
14984
|
exports.periodUsageSchema = periodUsageSchema;
|
|
14981
14985
|
exports.planFeatureSchema = planFeatureSchema;
|
|
14982
14986
|
exports.planSchema = planSchema;
|
|
14987
|
+
exports.planSlugEnum = planSlugEnum;
|
|
14983
14988
|
exports.planSlugToNameMap = planSlugToNameMap;
|
|
14984
14989
|
exports.planStripeMetadataSchema = planStripeMetadataSchema;
|
|
14985
14990
|
exports.pluralize = pluralize;
|
|
@@ -199,7 +199,7 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
199
199
|
updatedAt: z.ZodNumber;
|
|
200
200
|
region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
|
|
201
201
|
isProtected: z.ZodOptional<z.ZodBoolean>;
|
|
202
|
-
}, "name" | "provider" | "email" | "password" | "securityQuestionAnswer" | "assignedOrganizations" | "profilePhotoUrl" | "agencies" | "region">, {
|
|
202
|
+
}, "name" | "provider" | "email" | "password" | "securityQuestionAnswer" | "assignedOrganizations" | "multiLoginProfileId" | "proxyId" | "profilePhotoUrl" | "agencies" | "region">, {
|
|
203
203
|
proxyCountry: z.ZodNullable<z.ZodEnum<["US", "CA", "GB", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]>>;
|
|
204
204
|
}>, "strip", z.ZodTypeAny, {
|
|
205
205
|
name: string | null;
|
|
@@ -208,6 +208,8 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
208
208
|
password: string;
|
|
209
209
|
securityQuestionAnswer: string | null;
|
|
210
210
|
assignedOrganizations: string[];
|
|
211
|
+
multiLoginProfileId: string | null;
|
|
212
|
+
proxyId: string | null;
|
|
211
213
|
profilePhotoUrl: string | null;
|
|
212
214
|
agencies: {
|
|
213
215
|
name: string;
|
|
@@ -227,6 +229,8 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
227
229
|
password: string;
|
|
228
230
|
securityQuestionAnswer: string | null;
|
|
229
231
|
assignedOrganizations: string[];
|
|
232
|
+
multiLoginProfileId: string | null;
|
|
233
|
+
proxyId: string | null;
|
|
230
234
|
profilePhotoUrl: string | null;
|
|
231
235
|
agencies: {
|
|
232
236
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { infer, z } from
|
|
1
|
+
import { infer, z } from 'zod';
|
|
2
2
|
export declare const subscriptionStatusEnum: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
|
|
3
3
|
export declare const subscriptionSourceEnum: z.ZodEnum<["stripe", "manual"]>;
|
|
4
4
|
export declare const subscriptionStripeMetadataItemSchema: z.ZodObject<{
|
|
@@ -143,6 +143,7 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
143
143
|
}>;
|
|
144
144
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
145
145
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
146
|
+
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
146
147
|
}, "strip", z.ZodTypeAny, {
|
|
147
148
|
stripe: {
|
|
148
149
|
id: string;
|
|
@@ -164,6 +165,7 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
164
165
|
currentPeriodEnd: number;
|
|
165
166
|
source: "stripe" | "manual";
|
|
166
167
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
168
|
+
trialEndsAt: number | null;
|
|
167
169
|
}, {
|
|
168
170
|
stripe: {
|
|
169
171
|
id: string;
|
|
@@ -185,6 +187,7 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
185
187
|
currentPeriodEnd: number;
|
|
186
188
|
source: "stripe" | "manual";
|
|
187
189
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
190
|
+
trialEndsAt: number | null;
|
|
188
191
|
}>;
|
|
189
192
|
export type SubscriptionStatus = z.infer<typeof subscriptionStatusEnum>;
|
|
190
193
|
export interface SubscriptionStripeMetadataItem extends infer<typeof subscriptionStripeMetadataItemSchema> {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { infer } from
|
|
2
|
-
export declare const planStripeMetadataSchema:
|
|
3
|
-
id:
|
|
4
|
-
name:
|
|
5
|
-
prices:
|
|
6
|
-
id:
|
|
7
|
-
nickname:
|
|
8
|
-
lookup_key:
|
|
9
|
-
}, "strip",
|
|
1
|
+
import { infer, z } from 'zod';
|
|
2
|
+
export declare const planStripeMetadataSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
prices: z.ZodArray<z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
nickname: z.ZodString;
|
|
8
|
+
lookup_key: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
id: string;
|
|
11
11
|
nickname: string;
|
|
12
12
|
lookup_key: string;
|
|
@@ -15,7 +15,7 @@ export declare const planStripeMetadataSchema: import("zod").ZodObject<{
|
|
|
15
15
|
nickname: string;
|
|
16
16
|
lookup_key: string;
|
|
17
17
|
}>, "many">;
|
|
18
|
-
}, "strip",
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
19
|
id: string;
|
|
20
20
|
name: string;
|
|
21
21
|
prices: {
|
|
@@ -32,11 +32,11 @@ export declare const planStripeMetadataSchema: import("zod").ZodObject<{
|
|
|
32
32
|
lookup_key: string;
|
|
33
33
|
}[];
|
|
34
34
|
}>;
|
|
35
|
-
export declare const planFeatureSchema:
|
|
36
|
-
id:
|
|
37
|
-
description:
|
|
38
|
-
tooltipContent:
|
|
39
|
-
}, "strip",
|
|
35
|
+
export declare const planFeatureSchema: z.ZodObject<{
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
description: z.ZodString;
|
|
38
|
+
tooltipContent: z.ZodNullable<z.ZodString>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
40
|
id: string;
|
|
41
41
|
description: string;
|
|
42
42
|
tooltipContent: string | null;
|
|
@@ -45,21 +45,21 @@ export declare const planFeatureSchema: import("zod").ZodObject<{
|
|
|
45
45
|
description: string;
|
|
46
46
|
tooltipContent: string | null;
|
|
47
47
|
}>;
|
|
48
|
-
export declare const planSchema:
|
|
49
|
-
id:
|
|
50
|
-
name:
|
|
51
|
-
displayName:
|
|
52
|
-
slug:
|
|
53
|
-
description:
|
|
54
|
-
price:
|
|
55
|
-
stripe:
|
|
56
|
-
id:
|
|
57
|
-
name:
|
|
58
|
-
prices:
|
|
59
|
-
id:
|
|
60
|
-
nickname:
|
|
61
|
-
lookup_key:
|
|
62
|
-
}, "strip",
|
|
48
|
+
export declare const planSchema: z.ZodObject<{
|
|
49
|
+
id: z.ZodString;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
displayName: z.ZodString;
|
|
52
|
+
slug: z.ZodString;
|
|
53
|
+
description: z.ZodString;
|
|
54
|
+
price: z.ZodNumber;
|
|
55
|
+
stripe: z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
name: z.ZodString;
|
|
58
|
+
prices: z.ZodArray<z.ZodObject<{
|
|
59
|
+
id: z.ZodString;
|
|
60
|
+
nickname: z.ZodString;
|
|
61
|
+
lookup_key: z.ZodString;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
63
|
id: string;
|
|
64
64
|
nickname: string;
|
|
65
65
|
lookup_key: string;
|
|
@@ -68,7 +68,7 @@ export declare const planSchema: import("zod").ZodObject<{
|
|
|
68
68
|
nickname: string;
|
|
69
69
|
lookup_key: string;
|
|
70
70
|
}>, "many">;
|
|
71
|
-
}, "strip",
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
72
|
id: string;
|
|
73
73
|
name: string;
|
|
74
74
|
prices: {
|
|
@@ -85,12 +85,12 @@ export declare const planSchema: import("zod").ZodObject<{
|
|
|
85
85
|
lookup_key: string;
|
|
86
86
|
}[];
|
|
87
87
|
}>;
|
|
88
|
-
version:
|
|
89
|
-
features:
|
|
90
|
-
id:
|
|
91
|
-
description:
|
|
92
|
-
tooltipContent:
|
|
93
|
-
}, "strip",
|
|
88
|
+
version: z.ZodNumber;
|
|
89
|
+
features: z.ZodArray<z.ZodObject<{
|
|
90
|
+
id: z.ZodString;
|
|
91
|
+
description: z.ZodString;
|
|
92
|
+
tooltipContent: z.ZodNullable<z.ZodString>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
94
|
id: string;
|
|
95
95
|
description: string;
|
|
96
96
|
tooltipContent: string | null;
|
|
@@ -99,11 +99,11 @@ export declare const planSchema: import("zod").ZodObject<{
|
|
|
99
99
|
description: string;
|
|
100
100
|
tooltipContent: string | null;
|
|
101
101
|
}>, "many">;
|
|
102
|
-
sortOrder:
|
|
103
|
-
isActive:
|
|
104
|
-
createdAt:
|
|
105
|
-
archivedAt:
|
|
106
|
-
}, "strip",
|
|
102
|
+
sortOrder: z.ZodNumber;
|
|
103
|
+
isActive: z.ZodBoolean;
|
|
104
|
+
createdAt: z.ZodNumber;
|
|
105
|
+
archivedAt: z.ZodNullable<z.ZodNumber>;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
107
|
id: string;
|
|
108
108
|
name: string;
|
|
109
109
|
description: string;
|
|
@@ -156,9 +156,11 @@ export declare const planSchema: import("zod").ZodObject<{
|
|
|
156
156
|
createdAt: number;
|
|
157
157
|
archivedAt: number | null;
|
|
158
158
|
}>;
|
|
159
|
+
export declare const planSlugEnum: z.ZodEnum<["lancer-unlimited-launch-offer"]>;
|
|
159
160
|
export interface PlanStripeMetadata extends infer<typeof planStripeMetadataSchema> {
|
|
160
161
|
}
|
|
161
162
|
export interface PlanFeature extends infer<typeof planFeatureSchema> {
|
|
162
163
|
}
|
|
163
164
|
export interface Plan extends infer<typeof planSchema> {
|
|
164
165
|
}
|
|
166
|
+
export type PlanSlug = z.infer<typeof planSlugEnum>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const proxyAvailableReplacementsSchema: z.ZodRecord<z.ZodEnum<["webshare", "decodo", "proxy-cheap"]>, z.ZodNumber>;
|
|
2
|
+
export declare const proxyAvailableReplacementsSchema: z.ZodRecord<z.ZodEnum<["webshare", "decodo", "proxy-cheap", "rayobyte"]>, z.ZodNumber>;
|
|
3
3
|
export interface ProxyAvailableReplacements extends z.infer<typeof proxyAvailableReplacementsSchema> {
|
|
4
4
|
}
|
|
@@ -1832,18 +1832,33 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1832
1832
|
agencies: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
|
|
1833
1833
|
name: import("zod").ZodString;
|
|
1834
1834
|
logoUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1835
|
-
contractors: import("zod").ZodArray<import("zod").
|
|
1835
|
+
contractors: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1836
|
+
name: import("zod").ZodString;
|
|
1837
|
+
specializedProfiles: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
1838
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1839
|
+
name: string;
|
|
1840
|
+
specializedProfiles: string[];
|
|
1841
|
+
}, {
|
|
1842
|
+
name: string;
|
|
1843
|
+
specializedProfiles: string[];
|
|
1844
|
+
}>, "many">;
|
|
1836
1845
|
organizationId: import("zod").ZodString;
|
|
1837
1846
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1838
1847
|
name: string;
|
|
1839
1848
|
organizationId: string;
|
|
1840
1849
|
logoUrl: string | null;
|
|
1841
|
-
contractors:
|
|
1850
|
+
contractors: {
|
|
1851
|
+
name: string;
|
|
1852
|
+
specializedProfiles: string[];
|
|
1853
|
+
}[];
|
|
1842
1854
|
}, {
|
|
1843
1855
|
name: string;
|
|
1844
1856
|
organizationId: string;
|
|
1845
1857
|
logoUrl: string | null;
|
|
1846
|
-
contractors:
|
|
1858
|
+
contractors: {
|
|
1859
|
+
name: string;
|
|
1860
|
+
specializedProfiles: string[];
|
|
1861
|
+
}[];
|
|
1847
1862
|
}>, "many">>;
|
|
1848
1863
|
instanceId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
1849
1864
|
createdAt: import("zod").ZodNumber;
|
|
@@ -1870,7 +1885,10 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1870
1885
|
name: string;
|
|
1871
1886
|
organizationId: string;
|
|
1872
1887
|
logoUrl: string | null;
|
|
1873
|
-
contractors:
|
|
1888
|
+
contractors: {
|
|
1889
|
+
name: string;
|
|
1890
|
+
specializedProfiles: string[];
|
|
1891
|
+
}[];
|
|
1874
1892
|
}[] | null;
|
|
1875
1893
|
instanceId: string | null;
|
|
1876
1894
|
googleOauthTokens?: any;
|
|
@@ -1895,7 +1913,10 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
1895
1913
|
name: string;
|
|
1896
1914
|
organizationId: string;
|
|
1897
1915
|
logoUrl: string | null;
|
|
1898
|
-
contractors:
|
|
1916
|
+
contractors: {
|
|
1917
|
+
name: string;
|
|
1918
|
+
specializedProfiles: string[];
|
|
1919
|
+
}[];
|
|
1899
1920
|
}[] | null;
|
|
1900
1921
|
instanceId: string | null;
|
|
1901
1922
|
googleOauthTokens?: any;
|
|
@@ -2207,7 +2228,10 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
2207
2228
|
name: string;
|
|
2208
2229
|
organizationId: string;
|
|
2209
2230
|
logoUrl: string | null;
|
|
2210
|
-
contractors:
|
|
2231
|
+
contractors: {
|
|
2232
|
+
name: string;
|
|
2233
|
+
specializedProfiles: string[];
|
|
2234
|
+
}[];
|
|
2211
2235
|
}[] | null;
|
|
2212
2236
|
instanceId: string | null;
|
|
2213
2237
|
googleOauthTokens?: any;
|
|
@@ -2519,7 +2543,10 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
|
|
|
2519
2543
|
name: string;
|
|
2520
2544
|
organizationId: string;
|
|
2521
2545
|
logoUrl: string | null;
|
|
2522
|
-
contractors:
|
|
2546
|
+
contractors: {
|
|
2547
|
+
name: string;
|
|
2548
|
+
specializedProfiles: string[];
|
|
2549
|
+
}[];
|
|
2523
2550
|
}[] | null;
|
|
2524
2551
|
instanceId: string | null;
|
|
2525
2552
|
googleOauthTokens?: any;
|
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);
|