lancer-shared 1.2.71 → 1.2.72
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 -1
- package/dist/constants/account-status.d.ts +3 -0
- package/dist/constants/account-status.js +17 -0
- package/dist/constants/collections.js +13 -11
- package/dist/constants/common-questions.js +4 -1
- package/dist/constants/index.js +32 -10
- package/dist/constants/job-filter-options.js +4 -1
- package/dist/constants/job-status.js +12 -7
- package/dist/constants/mappings/countryMapping.js +3 -1
- package/dist/constants/mappings/regionMapping.js +3 -1
- package/dist/constants/organization.d.ts +2 -2
- package/dist/constants/proxies.d.ts +4 -0
- package/dist/constants/routes.js +37 -39
- package/dist/constants/upwork-accounts.js +6 -3
- package/dist/constants/upwork-filters.d.ts +5 -0
- package/dist/constants/upwork-filters.js +75 -0
- package/dist/index.js +20 -4
- package/dist/schemas/account/account-status.js +5 -2
- package/dist/schemas/account/bidder-account.d.ts +6 -2
- package/dist/schemas/account/bidder-account.js +24 -22
- package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +5 -0
- package/dist/schemas/account/index.js +19 -3
- package/dist/schemas/account/manager-account.d.ts +116 -0
- package/dist/schemas/account/manager-account.js +38 -0
- package/dist/schemas/account/scraper-account.js +24 -21
- package/dist/schemas/ai/ai-config.js +11 -8
- package/dist/schemas/ai/index.js +19 -3
- package/dist/schemas/ai/proposal.js +13 -10
- package/dist/schemas/ai/suitability.js +11 -8
- package/dist/schemas/ai-config/ai-config.d.ts +39 -0
- package/dist/schemas/ai-config/ai-config.js +12 -0
- package/dist/schemas/ai-config/index.d.ts +1 -0
- package/dist/schemas/ai-config/index.js +17 -0
- package/dist/schemas/bid/bid-result.js +13 -9
- package/dist/schemas/bid/bid-status.d.ts +30 -0
- package/dist/schemas/bid/bid-status.js +15 -0
- package/dist/schemas/bid/bid.js +30 -29
- package/dist/schemas/bid/exceptions/base-exception.d.ts +4 -0
- package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +5 -0
- package/dist/schemas/bid/index.js +18 -2
- package/dist/schemas/bidding/index.d.ts +1 -0
- package/dist/schemas/bidding/index.js +17 -0
- package/dist/schemas/bidding/proposal-bidding-status.d.ts +26 -0
- package/dist/schemas/bidding/proposal-bidding-status.js +18 -0
- package/dist/schemas/bidding/proposal-dto.d.ts +26 -0
- package/dist/schemas/bidding/proposal-dto.js +18 -0
- package/dist/schemas/campaign/campaign-ai-metrics.js +8 -5
- package/dist/schemas/campaign/campaign-analytics.d.ts +24 -24
- package/dist/schemas/campaign/campaign-analytics.js +31 -32
- package/dist/schemas/campaign/campaign-expenses.js +8 -5
- package/dist/schemas/campaign/campaign-insights.js +30 -30
- package/dist/schemas/campaign/campaign-integrations.d.ts +0 -5
- package/dist/schemas/campaign/campaign-integrations.js +13 -10
- package/dist/schemas/campaign/campaign-job-count.js +6 -3
- package/dist/schemas/campaign/campaign.js +35 -32
- package/dist/schemas/campaign/index.js +23 -7
- package/dist/schemas/chat-message/chat-message.js +10 -7
- package/dist/schemas/chat-message/index.js +17 -1
- package/dist/schemas/config/agency-config.js +9 -6
- package/dist/schemas/config/index.js +17 -1
- package/dist/schemas/index.js +32 -17
- package/dist/schemas/job/index.js +19 -0
- package/dist/schemas/job/job-details.d.ts +335 -0
- package/dist/schemas/job/job-details.js +29 -0
- package/dist/schemas/job/job-note.d.ts +83 -0
- package/dist/schemas/job/job-note.js +30 -0
- package/dist/schemas/job/job-pipeline.d.ts +74 -0
- package/dist/schemas/job/job-pipeline.js +29 -0
- package/dist/schemas/job/job-status.d.ts +3 -0
- package/dist/schemas/job/job-status.js +27 -0
- package/dist/schemas/job/job-suitability.d.ts +12 -0
- package/dist/schemas/job/job-suitability.js +13 -0
- package/dist/schemas/job/job.d.ts +1160 -0
- package/dist/schemas/job/job.js +90 -0
- package/dist/schemas/job/pipeline-job.d.ts +608 -0
- package/dist/schemas/job/pipeline-job.js +43 -0
- package/dist/schemas/job/upwork-job.d.ts +334 -0
- package/dist/schemas/job/upwork-job.js +60 -0
- package/dist/schemas/job-filters/index.js +17 -1
- package/dist/schemas/job-filters/job-filters.js +65 -62
- package/dist/schemas/knowledge-object/index.d.ts +1 -0
- package/dist/schemas/knowledge-object/index.js +17 -0
- package/dist/schemas/knowledge-object/knowledge-object.d.ts +128 -0
- package/dist/schemas/knowledge-object/knowledge-object.js +47 -0
- package/dist/schemas/lead/index.js +19 -173
- package/dist/schemas/lead/lead-note.js +16 -13
- package/dist/schemas/lead/lead-status.js +6 -3
- package/dist/schemas/lead/lead.d.ts +1897 -0
- package/dist/schemas/lead/lead.js +143 -0
- package/dist/schemas/logger/index.js +17 -1
- package/dist/schemas/logger/log-event.js +49 -100
- package/dist/schemas/organization/index.js +17 -70
- package/dist/schemas/organization/organization.d.ts +7 -177
- package/dist/schemas/organization/organization.js +17 -14
- package/dist/schemas/proxy/index.js +17 -3
- package/dist/schemas/proxy/proxy-available-replacements.d.ts +1 -1
- package/dist/schemas/proxy/proxy.js +19 -25
- package/dist/schemas/saved-search/index.js +11 -8
- package/dist/schemas/scraper/index.js +18 -2
- package/dist/schemas/scraper/scrape-payload.js +14 -19
- package/dist/schemas/scraper/scrape-response.d.ts +345 -0
- package/dist/schemas/scraper/scrape-response.js +9 -0
- package/dist/schemas/scraper/scrape-result.js +21 -21
- package/dist/schemas/shared.js +9 -12
- package/dist/schemas/time-filter/index.js +8 -5
- package/dist/schemas/upwork-account/index.d.ts +3 -0
- package/dist/schemas/upwork-account/index.js +19 -0
- package/dist/schemas/upwork-account/upwork-account-status.d.ts +2 -0
- package/dist/schemas/upwork-account/upwork-account-status.js +11 -0
- package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +95 -0
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +35 -0
- package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +92 -0
- package/dist/schemas/upwork-account/upwork-scraper-account.js +31 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +90 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.js +30 -0
- package/dist/schemas/user/index.js +41 -38
- package/dist/types/account/account-status.js +2 -1
- package/dist/types/account/bidder-account.js +2 -1
- package/dist/types/account/index.js +19 -3
- package/dist/types/account/manager-account.d.ts +7 -0
- package/dist/types/account/manager-account.js +2 -0
- package/dist/types/account/scraper-account.js +2 -1
- package/dist/types/ai/ai-config.js +2 -1
- package/dist/types/ai/index.js +19 -3
- package/dist/types/ai/proposal.js +2 -1
- package/dist/types/ai/suitability.js +2 -1
- package/dist/types/ai-config/ai-config.d.ts +6 -0
- package/dist/types/ai-config/ai-config.js +2 -0
- package/dist/types/ai-config/index.d.ts +1 -0
- package/dist/types/ai-config/index.js +17 -0
- package/dist/types/bid/bid-result.js +2 -1
- package/dist/types/bid/bid-status.d.ts +5 -0
- package/dist/types/bid/bid-status.js +2 -0
- package/dist/types/bid/bid.js +2 -1
- package/dist/types/bid/index.js +18 -2
- package/dist/types/bidding/index.d.ts +1 -0
- package/dist/types/bidding/index.js +17 -0
- package/dist/types/bidding/proposal-bidding-status.d.ts +3 -0
- package/dist/types/bidding/proposal-bidding-status.js +2 -0
- package/dist/types/bidding/proposal-dto.d.ts +3 -0
- package/dist/types/bidding/proposal-dto.js +2 -0
- package/dist/types/campaign/campaign-analytics.js +2 -1
- package/dist/types/campaign/campaign-expenses.js +2 -1
- package/dist/types/campaign/campaign-insights.js +2 -1
- package/dist/types/campaign/campaign-integrations.js +2 -1
- package/dist/types/campaign/campaign-job-count.js +2 -1
- package/dist/types/campaign/campaign.js +2 -1
- package/dist/types/campaign/index.js +22 -6
- package/dist/types/chat-message/chat-message.js +2 -1
- package/dist/types/chat-message/index.js +17 -1
- package/dist/types/config/agency-config.js +2 -1
- package/dist/types/config/index.js +17 -1
- package/dist/types/index.js +29 -15
- package/dist/types/job/index.js +19 -3
- package/dist/types/job/job-details.d.ts +36 -0
- package/dist/types/job/job-details.js +2 -0
- package/dist/types/job/job-note.js +2 -1
- package/dist/types/job/job-pipeline.d.ts +4 -0
- package/dist/types/job/job-pipeline.js +2 -0
- package/dist/types/job/job-status.js +4 -1
- package/dist/types/job/job-suitability.d.ts +3 -0
- package/dist/types/job/job-suitability.js +2 -0
- package/dist/types/job/job.d.ts +36 -0
- package/dist/types/job/job.js +2 -0
- package/dist/types/job-filters/index.js +17 -1
- package/dist/types/job-filters/job-filters.js +2 -1
- package/dist/types/knowledge-object/index.d.ts +1 -0
- package/dist/types/knowledge-object/index.js +17 -0
- package/dist/types/knowledge-object/knowledge-object.d.ts +4 -0
- package/dist/types/knowledge-object/knowledge-object.js +2 -0
- package/dist/types/logger/index.js +17 -1
- package/dist/types/logger/log-event.js +2 -1
- package/dist/types/saved-search/index.js +2 -1
- package/dist/types/scraper/index.js +18 -2
- package/dist/types/scraper/scrape-payload.js +2 -1
- package/dist/types/scraper/scrape-response.d.ts +4 -0
- package/dist/types/scraper/scrape-response.js +2 -0
- package/dist/types/scraper/scrape-result.js +2 -1
- package/dist/types/time-filter/index.js +2 -1
- package/dist/types/upwork-account/index.d.ts +3 -0
- package/dist/types/upwork-account/index.js +19 -0
- package/dist/types/upwork-account/upwork-account-status.d.ts +3 -0
- package/dist/types/upwork-account/upwork-account-status.js +2 -0
- package/dist/types/upwork-account/upwork-business-manager-account.d.ts +7 -0
- package/dist/types/upwork-account/upwork-business-manager-account.js +2 -0
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +5 -0
- package/dist/types/upwork-account/upwork-scraping-account.js +2 -0
- package/dist/types/user/index.js +2 -1
- package/dist/utils/index.js +17 -1
- package/dist/utils/try-catch.js +23 -8
- package/package.json +1 -1
- package/dist/schemas/event/index.d.ts +0 -58
- package/dist/schemas/lead/nuxt.js +0 -287
- package/dist/schemas/meter-event/index.d.ts +0 -12
- package/dist/schemas/organization/member.js +0 -7
- package/dist/schemas/organization/subscription.js +0 -17
- package/dist/schemas/proxy/proxy-available-replacements.js +0 -3
- package/dist/schemas/proxy/proxy-country.js +0 -249
- package/dist/schemas/tier/index.d.ts +0 -119
- package/dist/schemas/transaction/index.js +0 -17
- package/dist/schemas/usage/index.js +0 -18
- package/dist/types/job/nuxt.js +0 -1
- package/dist/types/shared.js +0 -1
- package/dist/types/transaction/index.js +0 -1
- package/dist/types/usage/index.js +0 -1
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { infer, z } from "zod";
|
|
2
|
-
export declare const planSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
slug: z.ZodString;
|
|
6
|
-
items: z.ZodArray<z.ZodObject<{
|
|
7
|
-
id: z.ZodString;
|
|
8
|
-
billingScheme: z.ZodEnum<["per_unit", "tiered"]>;
|
|
9
|
-
usageType: z.ZodNullable<z.ZodEnum<["metered", "licensed"]>>;
|
|
10
|
-
unitAmount: z.ZodNullable<z.ZodNumber>;
|
|
11
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
12
|
-
flatAmount: z.ZodNullable<z.ZodNumber>;
|
|
13
|
-
flatAmountDecimal: z.ZodNullable<z.ZodString>;
|
|
14
|
-
unitAmount: z.ZodNullable<z.ZodNumber>;
|
|
15
|
-
unitAmountDecimal: z.ZodString;
|
|
16
|
-
upTo: z.ZodNullable<z.ZodNumber>;
|
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
flatAmount: number | null;
|
|
19
|
-
flatAmountDecimal: string | null;
|
|
20
|
-
unitAmount: number | null;
|
|
21
|
-
unitAmountDecimal: string;
|
|
22
|
-
upTo: number | null;
|
|
23
|
-
}, {
|
|
24
|
-
flatAmount: number | null;
|
|
25
|
-
flatAmountDecimal: string | null;
|
|
26
|
-
unitAmount: number | null;
|
|
27
|
-
unitAmountDecimal: string;
|
|
28
|
-
upTo: number | null;
|
|
29
|
-
}>, "many">;
|
|
30
|
-
currency: z.ZodString;
|
|
31
|
-
interval: z.ZodEnum<["day", "week", "month", "year"]>;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
id: string;
|
|
34
|
-
unitAmount: number | null;
|
|
35
|
-
billingScheme: "per_unit" | "tiered";
|
|
36
|
-
usageType: "metered" | "licensed" | null;
|
|
37
|
-
tiers: {
|
|
38
|
-
flatAmount: number | null;
|
|
39
|
-
flatAmountDecimal: string | null;
|
|
40
|
-
unitAmount: number | null;
|
|
41
|
-
unitAmountDecimal: string;
|
|
42
|
-
upTo: number | null;
|
|
43
|
-
}[];
|
|
44
|
-
currency: string;
|
|
45
|
-
interval: "day" | "week" | "month" | "year";
|
|
46
|
-
}, {
|
|
47
|
-
id: string;
|
|
48
|
-
unitAmount: number | null;
|
|
49
|
-
billingScheme: "per_unit" | "tiered";
|
|
50
|
-
usageType: "metered" | "licensed" | null;
|
|
51
|
-
tiers: {
|
|
52
|
-
flatAmount: number | null;
|
|
53
|
-
flatAmountDecimal: string | null;
|
|
54
|
-
unitAmount: number | null;
|
|
55
|
-
unitAmountDecimal: string;
|
|
56
|
-
upTo: number | null;
|
|
57
|
-
}[];
|
|
58
|
-
currency: string;
|
|
59
|
-
interval: "day" | "week" | "month" | "year";
|
|
60
|
-
}>, "many">;
|
|
61
|
-
version: z.ZodNumber;
|
|
62
|
-
features: z.ZodArray<z.ZodString, "many">;
|
|
63
|
-
sortOrder: z.ZodNumber;
|
|
64
|
-
isActive: z.ZodBoolean;
|
|
65
|
-
createdAt: z.ZodDate;
|
|
66
|
-
archivedAt: z.ZodNullable<z.ZodDate>;
|
|
67
|
-
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
id: string;
|
|
69
|
-
createdAt: Date;
|
|
70
|
-
name: string;
|
|
71
|
-
isActive: boolean;
|
|
72
|
-
sortOrder: number;
|
|
73
|
-
slug: string;
|
|
74
|
-
items: {
|
|
75
|
-
id: string;
|
|
76
|
-
unitAmount: number | null;
|
|
77
|
-
billingScheme: "per_unit" | "tiered";
|
|
78
|
-
usageType: "metered" | "licensed" | null;
|
|
79
|
-
tiers: {
|
|
80
|
-
flatAmount: number | null;
|
|
81
|
-
flatAmountDecimal: string | null;
|
|
82
|
-
unitAmount: number | null;
|
|
83
|
-
unitAmountDecimal: string;
|
|
84
|
-
upTo: number | null;
|
|
85
|
-
}[];
|
|
86
|
-
currency: string;
|
|
87
|
-
interval: "day" | "week" | "month" | "year";
|
|
88
|
-
}[];
|
|
89
|
-
version: number;
|
|
90
|
-
features: string[];
|
|
91
|
-
archivedAt: Date | null;
|
|
92
|
-
}, {
|
|
93
|
-
id: string;
|
|
94
|
-
createdAt: Date;
|
|
95
|
-
name: string;
|
|
96
|
-
isActive: boolean;
|
|
97
|
-
sortOrder: number;
|
|
98
|
-
slug: string;
|
|
99
|
-
items: {
|
|
100
|
-
id: string;
|
|
101
|
-
unitAmount: number | null;
|
|
102
|
-
billingScheme: "per_unit" | "tiered";
|
|
103
|
-
usageType: "metered" | "licensed" | null;
|
|
104
|
-
tiers: {
|
|
105
|
-
flatAmount: number | null;
|
|
106
|
-
flatAmountDecimal: string | null;
|
|
107
|
-
unitAmount: number | null;
|
|
108
|
-
unitAmountDecimal: string;
|
|
109
|
-
upTo: number | null;
|
|
110
|
-
}[];
|
|
111
|
-
currency: string;
|
|
112
|
-
interval: "day" | "week" | "month" | "year";
|
|
113
|
-
}[];
|
|
114
|
-
version: number;
|
|
115
|
-
features: string[];
|
|
116
|
-
archivedAt: Date | null;
|
|
117
|
-
}>;
|
|
118
|
-
export interface Plan extends infer<typeof planSchema> {
|
|
119
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { number, object, string, z } from "zod";
|
|
2
|
-
export const transactionTypeEnum = z.enum(["subscription", "add-on", "refund"]);
|
|
3
|
-
export const transactionStatusEnum = z.enum([
|
|
4
|
-
"succeeded",
|
|
5
|
-
"failed",
|
|
6
|
-
"refunded",
|
|
7
|
-
]);
|
|
8
|
-
export const transactionSchema = object({
|
|
9
|
-
orgId: string(),
|
|
10
|
-
type: transactionTypeEnum,
|
|
11
|
-
creditsPurchased: number(),
|
|
12
|
-
creditsGranted: number().nullable(),
|
|
13
|
-
amountUsd: number(),
|
|
14
|
-
stripeInvoiceId: string(),
|
|
15
|
-
status: transactionStatusEnum,
|
|
16
|
-
timestamp: number(),
|
|
17
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { number, object, string } from "zod";
|
|
2
|
-
const breakdownSchema = object({
|
|
3
|
-
suitability: number(),
|
|
4
|
-
proposal: number(),
|
|
5
|
-
bidding: number(),
|
|
6
|
-
});
|
|
7
|
-
export const dailyUsageSchema = object({
|
|
8
|
-
breakdown: breakdownSchema,
|
|
9
|
-
tokensUsed: number().optional(),
|
|
10
|
-
campaignId: string().optional(),
|
|
11
|
-
model: string(),
|
|
12
|
-
timestamp: number(),
|
|
13
|
-
});
|
|
14
|
-
export const periodUsageSchema = object({
|
|
15
|
-
usedCredits: number(),
|
|
16
|
-
breakdown: breakdownSchema,
|
|
17
|
-
lastUpdated: number(),
|
|
18
|
-
});
|
package/dist/types/job/nuxt.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/shared.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|