lancer-shared 1.2.194 → 1.2.195

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.
@@ -341,6 +341,14 @@ const regionNames = {
341
341
  USOnly: 'US Only',
342
342
  UKOnly: 'UK Only',
343
343
  };
344
+ const CLIENT_SIZE_TO_NUMBER = {
345
+ 'Individual client': 1,
346
+ 'Small company (2-9 people)': 2,
347
+ 'Mid-sized company (10-99 people)': 10,
348
+ 'Large company (100-1,000 people)': 100,
349
+ 'Large company (1,000+ people)': 1000,
350
+ Unspecified: null,
351
+ };
344
352
 
345
353
  const jobStatusOrder = [
346
354
  "leads",
@@ -11170,12 +11178,16 @@ const jobFiltersSchema = z.object({
11170
11178
  clientLocationIncludes: z.array(z.string()).nullable(),
11171
11179
  clientLocationExcludes: z.array(z.string()).nullable(),
11172
11180
  minReviewScore: z.number().min(0).max(5).nullable(),
11173
- minTotalSpent: z.number().nullable(),
11181
+ maxReviewScore: z.number().min(0).max(5).nullable(),
11182
+ minTotalSpent: z.number().min(0).nullable(),
11183
+ maxTotalSpent: z.number().min(0).nullable(),
11174
11184
  minHireRate: z.number().min(0).max(100).nullable(),
11185
+ maxHireRate: z.number().min(0).max(100).nullable(),
11175
11186
  clientIndustry: z.array(clientIndustryEnum).nullable(),
11176
11187
  companySize: z.array(clientSizeEnum).nullable(),
11177
11188
  minJobsPosted: z.number().nullable(),
11178
11189
  minAvgHourlyRate: z.number().nullable(),
11190
+ maxAvgHourlyRate: z.number().nullable(),
11179
11191
  minNumReviews: z.number().nullable(),
11180
11192
  memberSinceFrom: z.string().date().nullable(),
11181
11193
  memberSinceTo: z.string().date().nullable(),
@@ -23678,6 +23690,7 @@ exports.BidderAccountAlreadyConnectedException = BidderAccountAlreadyConnectedEx
23678
23690
  exports.BoostAboveMaxConnectsException = BoostAboveMaxConnectsException;
23679
23691
  exports.CAMPAIGN_NOTIFICATION_SETTINGS = CAMPAIGN_NOTIFICATION_SETTINGS;
23680
23692
  exports.CAMPAIGN_NOTIFICATION_TYPES = CAMPAIGN_NOTIFICATION_TYPES;
23693
+ exports.CLIENT_SIZE_TO_NUMBER = CLIENT_SIZE_TO_NUMBER;
23681
23694
  exports.CloudflareChallengeFailedException = CloudflareChallengeFailedException;
23682
23695
  exports.DeleteMultiloginProfileException = DeleteMultiloginProfileException;
23683
23696
  exports.DropdownOptionNotPresentException = DropdownOptionNotPresentException;
@@ -65,3 +65,4 @@ export declare const JOB_FILTER_OPTIONS: {
65
65
  };
66
66
  export declare const HIERARCHICAL_CATEGORIES_TO_CHILDREN: Record<"Accounting & Consulting" | "Admin Support" | "Customer Service" | "Data Science & Analytics" | "Design & Creative" | "Engineering & Architecture" | "IT & Networking" | "Legal" | "Sales & Marketing" | "Translation" | "Software Development" | "Writing", readonly ["Accounting & Bookkeeping", "Financial Planning", "Management Consulting & Analysis", "Other - Accounting & Consulting", "Personal & Professional Coaching", "Recruiting & Human Resources"] | readonly ["Data Entry & Transcription Services", "Market Research & Product Reviews", "Project Management", "Virtual Assistance"] | readonly ["Community Management & Tagging", "Customer Service & Tech Support"] | readonly ["AI & Machine Learning", "Data Analysis & Testing", "Data Extraction/ETL", "Data Mining & Management"] | readonly ["Art & Illustration", "Audio & Music Production", "Branding & Logo Design", "Graphic, Editorial & Presentation Design", "NFT, AR/VR & Game Art", "Performing Arts", "Photography", "Product Design", "Video & Animation"] | readonly ["3D Modeling & CAD", "Building & Landscape Architecture", "Chemical Engineering", "Civil & Structural Engineering", "Contract Manufacturing", "Electrical & Electronic Engineering", "Energy & Mechanical Engineering"] | readonly ["Database Management & Administration", "DevOps & Solution Architecture", "ERP/CRM Software", "Information Security & Compliance", "Network & System Administration"] | readonly ["Corporate & Contract Law", "Finance & Tax Law", "International & Immigration Law", "Public Law"] | readonly ["Digital Marketing", "Lead Generation & Telemarketing", "Marketing, PR & Brand Strategy"] | readonly ["Language Tutoring & Interpretation", "Translation & Localization Services"] | readonly ["AI Apps & Integration", "Blockchain, NFT & Cryptocurrency", "Desktop Application Development", "Ecommerce Development", "Game Design & Development", "Mobile Development", "Other - Software Development", "Product Management & Scrum", "QA Testing", "Scripts & Utilities", "Web & Mobile Design", "Web Development"] | readonly ["Content Writing", "Editing & Proofreading Services", "Professional & Business Writing", "Sales & Marketing Copywriting"]>;
67
67
  export declare const regionNames: Record<Region, string>;
68
+ export declare const CLIENT_SIZE_TO_NUMBER: Record<(typeof JOB_FILTER_OPTIONS.CLIENT_SIZE)[number], number | null>;
@@ -76,12 +76,16 @@ export declare const jobFiltersSchema: z.ZodObject<{
76
76
  clientLocationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
77
77
  clientLocationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
78
78
  minReviewScore: z.ZodNullable<z.ZodNumber>;
79
+ maxReviewScore: z.ZodNullable<z.ZodNumber>;
79
80
  minTotalSpent: z.ZodNullable<z.ZodNumber>;
81
+ maxTotalSpent: z.ZodNullable<z.ZodNumber>;
80
82
  minHireRate: z.ZodNullable<z.ZodNumber>;
83
+ maxHireRate: z.ZodNullable<z.ZodNumber>;
81
84
  clientIndustry: z.ZodNullable<z.ZodArray<z.ZodEnum<["Aerospace", "Agriculture & Forestry", "Art & Design", "Automotive", "Aviation", "Education", "Energy & Utilities", "Engineering & Architecture", "Fashion & Beauty", "Finance & Accounting", "Food & Beverage", "Government & Public Sector", "Health & Fitness", "HR & Business Services", "Legal", "Manufacturing & Construction", "Media & Entertainment", "Military & Defense", "Mining", "Real Estate", "Retail & Consumer Goods", "Sales & Marketing", "Science & Medicine", "Sports & Recreation", "Supply Chain & Logistics", "Tech & IT", "Transportation & Warehousing", "Travel & Hospitality"]>, "many">>;
82
85
  companySize: z.ZodNullable<z.ZodArray<z.ZodEnum<["Individual client", "Small company (2-9 people)", "Mid-sized company (10-99 people)", "Large company (100-1,000 people)", "Large company (1,000+ people)", "Unspecified"]>, "many">>;
83
86
  minJobsPosted: z.ZodNullable<z.ZodNumber>;
84
87
  minAvgHourlyRate: z.ZodNullable<z.ZodNumber>;
88
+ maxAvgHourlyRate: z.ZodNullable<z.ZodNumber>;
85
89
  minNumReviews: z.ZodNullable<z.ZodNumber>;
86
90
  memberSinceFrom: z.ZodNullable<z.ZodString>;
87
91
  memberSinceTo: z.ZodNullable<z.ZodString>;
@@ -92,12 +96,16 @@ export declare const jobFiltersSchema: z.ZodObject<{
92
96
  clientLocationIncludes: string[] | null;
93
97
  clientLocationExcludes: string[] | null;
94
98
  minReviewScore: number | null;
99
+ maxReviewScore: number | null;
95
100
  minTotalSpent: number | null;
101
+ maxTotalSpent: number | null;
96
102
  minHireRate: number | null;
103
+ maxHireRate: number | null;
97
104
  clientIndustry: ("Engineering & Architecture" | "Legal" | "Sales & Marketing" | "Aerospace" | "Agriculture & Forestry" | "Art & Design" | "Automotive" | "Aviation" | "Education" | "Energy & Utilities" | "Fashion & Beauty" | "Finance & Accounting" | "Food & Beverage" | "Government & Public Sector" | "Health & Fitness" | "HR & Business Services" | "Manufacturing & Construction" | "Media & Entertainment" | "Military & Defense" | "Mining" | "Real Estate" | "Retail & Consumer Goods" | "Science & Medicine" | "Sports & Recreation" | "Supply Chain & Logistics" | "Tech & IT" | "Transportation & Warehousing" | "Travel & Hospitality")[] | null;
98
105
  companySize: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[] | null;
99
106
  minJobsPosted: number | null;
100
107
  minAvgHourlyRate: number | null;
108
+ maxAvgHourlyRate: number | null;
101
109
  minNumReviews: number | null;
102
110
  memberSinceFrom: string | null;
103
111
  memberSinceTo: string | null;
@@ -105,12 +113,16 @@ export declare const jobFiltersSchema: z.ZodObject<{
105
113
  clientLocationIncludes: string[] | null;
106
114
  clientLocationExcludes: string[] | null;
107
115
  minReviewScore: number | null;
116
+ maxReviewScore: number | null;
108
117
  minTotalSpent: number | null;
118
+ maxTotalSpent: number | null;
109
119
  minHireRate: number | null;
120
+ maxHireRate: number | null;
110
121
  clientIndustry: ("Engineering & Architecture" | "Legal" | "Sales & Marketing" | "Aerospace" | "Agriculture & Forestry" | "Art & Design" | "Automotive" | "Aviation" | "Education" | "Energy & Utilities" | "Fashion & Beauty" | "Finance & Accounting" | "Food & Beverage" | "Government & Public Sector" | "Health & Fitness" | "HR & Business Services" | "Manufacturing & Construction" | "Media & Entertainment" | "Military & Defense" | "Mining" | "Real Estate" | "Retail & Consumer Goods" | "Science & Medicine" | "Sports & Recreation" | "Supply Chain & Logistics" | "Tech & IT" | "Transportation & Warehousing" | "Travel & Hospitality")[] | null;
111
122
  companySize: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[] | null;
112
123
  minJobsPosted: number | null;
113
124
  minAvgHourlyRate: number | null;
125
+ maxAvgHourlyRate: number | null;
114
126
  minNumReviews: number | null;
115
127
  memberSinceFrom: string | null;
116
128
  memberSinceTo: string | null;
@@ -176,12 +188,16 @@ export declare const jobFiltersSchema: z.ZodObject<{
176
188
  clientLocationIncludes: string[] | null;
177
189
  clientLocationExcludes: string[] | null;
178
190
  minReviewScore: number | null;
191
+ maxReviewScore: number | null;
179
192
  minTotalSpent: number | null;
193
+ maxTotalSpent: number | null;
180
194
  minHireRate: number | null;
195
+ maxHireRate: number | null;
181
196
  clientIndustry: ("Engineering & Architecture" | "Legal" | "Sales & Marketing" | "Aerospace" | "Agriculture & Forestry" | "Art & Design" | "Automotive" | "Aviation" | "Education" | "Energy & Utilities" | "Fashion & Beauty" | "Finance & Accounting" | "Food & Beverage" | "Government & Public Sector" | "Health & Fitness" | "HR & Business Services" | "Manufacturing & Construction" | "Media & Entertainment" | "Military & Defense" | "Mining" | "Real Estate" | "Retail & Consumer Goods" | "Science & Medicine" | "Sports & Recreation" | "Supply Chain & Logistics" | "Tech & IT" | "Transportation & Warehousing" | "Travel & Hospitality")[] | null;
182
197
  companySize: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[] | null;
183
198
  minJobsPosted: number | null;
184
199
  minAvgHourlyRate: number | null;
200
+ maxAvgHourlyRate: number | null;
185
201
  minNumReviews: number | null;
186
202
  memberSinceFrom: string | null;
187
203
  memberSinceTo: string | null;
@@ -225,12 +241,16 @@ export declare const jobFiltersSchema: z.ZodObject<{
225
241
  clientLocationIncludes: string[] | null;
226
242
  clientLocationExcludes: string[] | null;
227
243
  minReviewScore: number | null;
244
+ maxReviewScore: number | null;
228
245
  minTotalSpent: number | null;
246
+ maxTotalSpent: number | null;
229
247
  minHireRate: number | null;
248
+ maxHireRate: number | null;
230
249
  clientIndustry: ("Engineering & Architecture" | "Legal" | "Sales & Marketing" | "Aerospace" | "Agriculture & Forestry" | "Art & Design" | "Automotive" | "Aviation" | "Education" | "Energy & Utilities" | "Fashion & Beauty" | "Finance & Accounting" | "Food & Beverage" | "Government & Public Sector" | "Health & Fitness" | "HR & Business Services" | "Manufacturing & Construction" | "Media & Entertainment" | "Military & Defense" | "Mining" | "Real Estate" | "Retail & Consumer Goods" | "Science & Medicine" | "Sports & Recreation" | "Supply Chain & Logistics" | "Tech & IT" | "Transportation & Warehousing" | "Travel & Hospitality")[] | null;
231
250
  companySize: ("Unspecified" | "Individual client" | "Small company (2-9 people)" | "Mid-sized company (10-99 people)" | "Large company (100-1,000 people)" | "Large company (1,000+ people)")[] | null;
232
251
  minJobsPosted: number | null;
233
252
  minAvgHourlyRate: number | null;
253
+ maxAvgHourlyRate: number | null;
234
254
  minNumReviews: number | null;
235
255
  memberSinceFrom: string | null;
236
256
  memberSinceTo: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.194",
3
+ "version": "1.2.195",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",