lancer-shared 1.2.296 → 1.2.297
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 +124 -0
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +102 -1
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +26 -0
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/upwork-analytics/index.d.ts +200 -0
- package/package.json +1 -1
|
@@ -271,6 +271,32 @@ export declare const ROUTES: {
|
|
|
271
271
|
readonly BASE: "usage-events";
|
|
272
272
|
readonly BY_ID: (id: string) => string;
|
|
273
273
|
};
|
|
274
|
+
readonly UPWORK_ANALYTICS: {
|
|
275
|
+
readonly BASE: "upwork-analytics";
|
|
276
|
+
readonly JOBS_POSTED: "upwork-analytics/jobs-posted";
|
|
277
|
+
readonly AVERAGE_CLIENT_HIRE_RATE: "upwork-analytics/average-client-hire-rate";
|
|
278
|
+
readonly AVERAGE_CLIENT_TOTAL_SPENT: "upwork-analytics/average-client-total-spent";
|
|
279
|
+
readonly AVERAGE_HOURLY_RATE_BUDGET: "upwork-analytics/average-hourly-rate-budget";
|
|
280
|
+
readonly AVERAGE_FIXED_PRICE_BUDGET: "upwork-analytics/average-fixed-price-budget";
|
|
281
|
+
readonly AVERAGE_PAID_PER_PROJECT: "upwork-analytics/average-paid-per-project";
|
|
282
|
+
readonly JOBS_COUNT_LAST_3_MONTHS: "upwork-analytics/jobs-count-last-3-months";
|
|
283
|
+
readonly JOBS_BY_COUNTRY: "upwork-analytics/jobs-by-country";
|
|
284
|
+
readonly JOBS_BY_CLIENT_TOTAL_SPENT: "upwork-analytics/jobs-by-client-total-spent";
|
|
285
|
+
readonly JOBS_BY_HOUR_POSTED: "upwork-analytics/jobs-by-hour-posted";
|
|
286
|
+
readonly JOBS_BY_DAY_OF_WEEK: "upwork-analytics/jobs-by-day-of-week";
|
|
287
|
+
readonly AVERAGE_HOURLY_RATE_PAID_BY_COUNTRY: "upwork-analytics/average-hourly-rate-paid-by-country";
|
|
288
|
+
readonly TOP_10_SKILLS: "upwork-analytics/top-10-skills";
|
|
289
|
+
readonly TOP_10_COUNTRIES_BY_JOBS_POSTED: "upwork-analytics/top-10-countries-by-jobs-posted";
|
|
290
|
+
readonly TOP_10_COUNTRIES_BY_CLIENT_TOTAL_SPENT: "upwork-analytics/top-10-countries-by-client-total-spent";
|
|
291
|
+
readonly TOP_10_COUNTRIES_BY_CLIENT_HIRE_RATE: "upwork-analytics/top-10-countries-by-client-hire-rate";
|
|
292
|
+
readonly TOP_10_COUNTRIES_BY_AVG_HOURLY_BUDGET: "upwork-analytics/top-10-countries-by-avg-hourly-budget";
|
|
293
|
+
readonly TOP_10_COUNTRIES_BY_AVG_PAID_PER_PROJECT: "upwork-analytics/top-10-countries-by-avg-paid-per-project";
|
|
294
|
+
readonly TOP_10_CATEGORIES_BY_JOBS_POSTED: "upwork-analytics/top-10-categories-by-jobs-posted";
|
|
295
|
+
readonly TOP_10_CATEGORIES_BY_CLIENT_TOTAL_SPENT: "upwork-analytics/top-10-categories-by-client-total-spent";
|
|
296
|
+
readonly TOP_10_CATEGORIES_BY_CLIENT_HIRE_RATE: "upwork-analytics/top-10-categories-by-client-hire-rate";
|
|
297
|
+
readonly TOP_10_CATEGORIES_BY_AVG_HOURLY_BUDGET: "upwork-analytics/top-10-categories-by-avg-hourly-budget";
|
|
298
|
+
readonly TOP_10_CATEGORIES_BY_AVG_PAID_PER_PROJECT: "upwork-analytics/top-10-categories-by-avg-paid-per-project";
|
|
299
|
+
};
|
|
274
300
|
readonly BIDDER_INSTANCES: {
|
|
275
301
|
readonly BASE: "bidder-instances";
|
|
276
302
|
readonly BY_ID: (id: string) => string;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const getJobsPostedResponseSchema: z.ZodNumber;
|
|
3
|
+
export type GetJobsPostedResponse = z.infer<typeof getJobsPostedResponseSchema>;
|
|
4
|
+
export declare const getAverageClientHireRateResponseSchema: z.ZodNumber;
|
|
5
|
+
export type GetAverageClientHireRateResponse = z.infer<typeof getAverageClientHireRateResponseSchema>;
|
|
6
|
+
export declare const getAverageClientTotalSpentResponseSchema: z.ZodNumber;
|
|
7
|
+
export type GetAverageClientTotalSpentResponse = z.infer<typeof getAverageClientTotalSpentResponseSchema>;
|
|
8
|
+
export declare const getAverageHourlyRateBudgetResponseSchema: z.ZodNumber;
|
|
9
|
+
export type GetAverageHourlyRateBudgetResponse = z.infer<typeof getAverageHourlyRateBudgetResponseSchema>;
|
|
10
|
+
export declare const getAverageFixedPriceBudgetResponseSchema: z.ZodNumber;
|
|
11
|
+
export type GetAverageFixedPriceBudgetResponse = z.infer<typeof getAverageFixedPriceBudgetResponseSchema>;
|
|
12
|
+
export declare const getAveragePaidPerProjectResponseSchema: z.ZodNumber;
|
|
13
|
+
export type GetAveragePaidPerProjectResponse = z.infer<typeof getAveragePaidPerProjectResponseSchema>;
|
|
14
|
+
export declare const getJobsCountLast3MonthsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
15
|
+
period: z.ZodString;
|
|
16
|
+
count: z.ZodNumber;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
period: string;
|
|
19
|
+
count: number;
|
|
20
|
+
}, {
|
|
21
|
+
period: string;
|
|
22
|
+
count: number;
|
|
23
|
+
}>, "many">;
|
|
24
|
+
export type GetJobsCountLast3MonthsResponse = z.infer<typeof getJobsCountLast3MonthsResponseSchema>;
|
|
25
|
+
export declare const getJobsByCountryResponseSchema: z.ZodArray<z.ZodObject<{
|
|
26
|
+
country: z.ZodString;
|
|
27
|
+
count: z.ZodNumber;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
country: string;
|
|
30
|
+
count: number;
|
|
31
|
+
}, {
|
|
32
|
+
country: string;
|
|
33
|
+
count: number;
|
|
34
|
+
}>, "many">;
|
|
35
|
+
export type GetJobsByCountryResponse = z.infer<typeof getJobsByCountryResponseSchema>;
|
|
36
|
+
export declare const getAverageHourlyRatePaidByCountryResponseSchema: z.ZodArray<z.ZodObject<{
|
|
37
|
+
country: z.ZodString;
|
|
38
|
+
avgHourlyRatePaid: z.ZodNumber;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
country: string;
|
|
41
|
+
avgHourlyRatePaid: number;
|
|
42
|
+
}, {
|
|
43
|
+
country: string;
|
|
44
|
+
avgHourlyRatePaid: number;
|
|
45
|
+
}>, "many">;
|
|
46
|
+
export type GetAverageHourlyRatePaidByCountryResponse = z.infer<typeof getAverageHourlyRatePaidByCountryResponseSchema>;
|
|
47
|
+
export declare const getJobsByClientTotalSpentResponseSchema: z.ZodArray<z.ZodObject<{
|
|
48
|
+
range: z.ZodString;
|
|
49
|
+
count: z.ZodNumber;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
count: number;
|
|
52
|
+
range: string;
|
|
53
|
+
}, {
|
|
54
|
+
count: number;
|
|
55
|
+
range: string;
|
|
56
|
+
}>, "many">;
|
|
57
|
+
export type GetJobsByClientTotalSpentResponse = z.infer<typeof getJobsByClientTotalSpentResponseSchema>;
|
|
58
|
+
export declare const getJobsByHourPostedResponseSchema: z.ZodArray<z.ZodObject<{
|
|
59
|
+
hour: z.ZodString;
|
|
60
|
+
count: z.ZodNumber;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
hour: string;
|
|
63
|
+
count: number;
|
|
64
|
+
}, {
|
|
65
|
+
hour: string;
|
|
66
|
+
count: number;
|
|
67
|
+
}>, "many">;
|
|
68
|
+
export type GetJobsByHourPostedResponse = z.infer<typeof getJobsByHourPostedResponseSchema>;
|
|
69
|
+
export declare const getJobsByDayOfWeekResponseSchema: z.ZodArray<z.ZodObject<{
|
|
70
|
+
day: z.ZodString;
|
|
71
|
+
count: z.ZodNumber;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
day: string;
|
|
74
|
+
count: number;
|
|
75
|
+
}, {
|
|
76
|
+
day: string;
|
|
77
|
+
count: number;
|
|
78
|
+
}>, "many">;
|
|
79
|
+
export type GetJobsByDayOfWeekResponse = z.infer<typeof getJobsByDayOfWeekResponseSchema>;
|
|
80
|
+
export declare const getTop10SkillsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
81
|
+
skill: z.ZodString;
|
|
82
|
+
count: z.ZodNumber;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
skill: string;
|
|
85
|
+
count: number;
|
|
86
|
+
}, {
|
|
87
|
+
skill: string;
|
|
88
|
+
count: number;
|
|
89
|
+
}>, "many">;
|
|
90
|
+
export type GetTop10SkillsResponse = z.infer<typeof getTop10SkillsResponseSchema>;
|
|
91
|
+
export declare const getTop10CountriesByJobsPostedResponseSchema: z.ZodArray<z.ZodObject<{
|
|
92
|
+
country: z.ZodString;
|
|
93
|
+
jobsPosted: z.ZodNumber;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
country: string;
|
|
96
|
+
jobsPosted: number;
|
|
97
|
+
}, {
|
|
98
|
+
country: string;
|
|
99
|
+
jobsPosted: number;
|
|
100
|
+
}>, "many">;
|
|
101
|
+
export type GetTop10CountriesByJobsPostedResponse = z.infer<typeof getTop10CountriesByJobsPostedResponseSchema>;
|
|
102
|
+
export declare const getTop10CountriesByClientTotalSpentResponseSchema: z.ZodArray<z.ZodObject<{
|
|
103
|
+
country: z.ZodString;
|
|
104
|
+
totalSpent: z.ZodNumber;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
country: string;
|
|
107
|
+
totalSpent: number;
|
|
108
|
+
}, {
|
|
109
|
+
country: string;
|
|
110
|
+
totalSpent: number;
|
|
111
|
+
}>, "many">;
|
|
112
|
+
export type GetTop10CountriesByClientTotalSpentResponse = z.infer<typeof getTop10CountriesByClientTotalSpentResponseSchema>;
|
|
113
|
+
export declare const getTop10CountriesByClientHireRateResponseSchema: z.ZodArray<z.ZodObject<{
|
|
114
|
+
country: z.ZodString;
|
|
115
|
+
hireRate: z.ZodNumber;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
country: string;
|
|
118
|
+
hireRate: number;
|
|
119
|
+
}, {
|
|
120
|
+
country: string;
|
|
121
|
+
hireRate: number;
|
|
122
|
+
}>, "many">;
|
|
123
|
+
export type GetTop10CountriesByClientHireRateResponse = z.infer<typeof getTop10CountriesByClientHireRateResponseSchema>;
|
|
124
|
+
export declare const getTop10CountriesByAvgHourlyBudgetResponseSchema: z.ZodArray<z.ZodObject<{
|
|
125
|
+
country: z.ZodString;
|
|
126
|
+
avgHourlyBudget: z.ZodNumber;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
country: string;
|
|
129
|
+
avgHourlyBudget: number;
|
|
130
|
+
}, {
|
|
131
|
+
country: string;
|
|
132
|
+
avgHourlyBudget: number;
|
|
133
|
+
}>, "many">;
|
|
134
|
+
export type GetTop10CountriesByAvgHourlyBudgetResponse = z.infer<typeof getTop10CountriesByAvgHourlyBudgetResponseSchema>;
|
|
135
|
+
export declare const getTop10CountriesByAvgPaidPerProjectResponseSchema: z.ZodArray<z.ZodObject<{
|
|
136
|
+
country: z.ZodString;
|
|
137
|
+
avgPaidPerProject: z.ZodNumber;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
country: string;
|
|
140
|
+
avgPaidPerProject: number;
|
|
141
|
+
}, {
|
|
142
|
+
country: string;
|
|
143
|
+
avgPaidPerProject: number;
|
|
144
|
+
}>, "many">;
|
|
145
|
+
export type GetTop10CountriesByAvgPaidPerProjectResponse = z.infer<typeof getTop10CountriesByAvgPaidPerProjectResponseSchema>;
|
|
146
|
+
export declare const getTop10CategoriesByJobsPostedResponseSchema: z.ZodArray<z.ZodObject<{
|
|
147
|
+
category: z.ZodString;
|
|
148
|
+
jobsPosted: z.ZodNumber;
|
|
149
|
+
}, "strip", z.ZodTypeAny, {
|
|
150
|
+
category: string;
|
|
151
|
+
jobsPosted: number;
|
|
152
|
+
}, {
|
|
153
|
+
category: string;
|
|
154
|
+
jobsPosted: number;
|
|
155
|
+
}>, "many">;
|
|
156
|
+
export type GetTop10CategoriesByJobsPostedResponse = z.infer<typeof getTop10CategoriesByJobsPostedResponseSchema>;
|
|
157
|
+
export declare const getTop10CategoriesByClientTotalSpentResponseSchema: z.ZodArray<z.ZodObject<{
|
|
158
|
+
category: z.ZodString;
|
|
159
|
+
totalSpent: z.ZodNumber;
|
|
160
|
+
}, "strip", z.ZodTypeAny, {
|
|
161
|
+
category: string;
|
|
162
|
+
totalSpent: number;
|
|
163
|
+
}, {
|
|
164
|
+
category: string;
|
|
165
|
+
totalSpent: number;
|
|
166
|
+
}>, "many">;
|
|
167
|
+
export type GetTop10CategoriesByClientTotalSpentResponse = z.infer<typeof getTop10CategoriesByClientTotalSpentResponseSchema>;
|
|
168
|
+
export declare const getTop10CategoriesByClientHireRateResponseSchema: z.ZodArray<z.ZodObject<{
|
|
169
|
+
category: z.ZodString;
|
|
170
|
+
hireRate: z.ZodNumber;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
category: string;
|
|
173
|
+
hireRate: number;
|
|
174
|
+
}, {
|
|
175
|
+
category: string;
|
|
176
|
+
hireRate: number;
|
|
177
|
+
}>, "many">;
|
|
178
|
+
export type GetTop10CategoriesByClientHireRateResponse = z.infer<typeof getTop10CategoriesByClientHireRateResponseSchema>;
|
|
179
|
+
export declare const getTop10CategoriesByAvgHourlyBudgetResponseSchema: z.ZodArray<z.ZodObject<{
|
|
180
|
+
category: z.ZodString;
|
|
181
|
+
avgHourlyBudget: z.ZodNumber;
|
|
182
|
+
}, "strip", z.ZodTypeAny, {
|
|
183
|
+
category: string;
|
|
184
|
+
avgHourlyBudget: number;
|
|
185
|
+
}, {
|
|
186
|
+
category: string;
|
|
187
|
+
avgHourlyBudget: number;
|
|
188
|
+
}>, "many">;
|
|
189
|
+
export type GetTop10CategoriesByAvgHourlyBudgetResponse = z.infer<typeof getTop10CategoriesByAvgHourlyBudgetResponseSchema>;
|
|
190
|
+
export declare const getTop10CategoriesByAvgPaidPerProjectResponseSchema: z.ZodArray<z.ZodObject<{
|
|
191
|
+
category: z.ZodString;
|
|
192
|
+
avgPaidPerProject: z.ZodNumber;
|
|
193
|
+
}, "strip", z.ZodTypeAny, {
|
|
194
|
+
category: string;
|
|
195
|
+
avgPaidPerProject: number;
|
|
196
|
+
}, {
|
|
197
|
+
category: string;
|
|
198
|
+
avgPaidPerProject: number;
|
|
199
|
+
}>, "many">;
|
|
200
|
+
export type GetTop10CategoriesByAvgPaidPerProjectResponse = z.infer<typeof getTop10CategoriesByAvgPaidPerProjectResponseSchema>;
|