lancer-shared 1.0.91 → 1.0.92

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.
@@ -107,18 +107,24 @@ export declare const campaignSchema: z.ZodObject<{
107
107
  talentTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<["Agency", "Independent", "Unspecified"]>, "many">>;
108
108
  englishLevels: z.ZodNullable<z.ZodArray<z.ZodEnum<["Fluent", "Conversational", "Native or Bilingual", "Unspecified"]>, "many">>;
109
109
  includeRisingTalent: z.ZodNullable<z.ZodString>;
110
+ requiredEarnings: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<100>, z.ZodLiteral<1000>, z.ZodLiteral<10000>]>>;
111
+ requiredJSS: z.ZodNullable<z.ZodArray<z.ZodEnum<[">80%", ">90%", "100%", "RT"]>, "many">>;
110
112
  }, "strip", z.ZodTypeAny, {
111
113
  includeRisingTalent: string | null;
112
114
  locationIncludes: string[] | null;
113
115
  locationExcludes: string[] | null;
114
116
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
115
117
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
118
+ requiredEarnings: 100 | 1000 | 10000 | null;
119
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
116
120
  }, {
117
121
  includeRisingTalent: string | null;
118
122
  locationIncludes: string[] | null;
119
123
  locationExcludes: string[] | null;
120
124
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
121
125
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
126
+ requiredEarnings: 100 | 1000 | 10000 | null;
127
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
122
128
  }>>;
123
129
  }, "strip", z.ZodTypeAny, {
124
130
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
@@ -148,6 +154,8 @@ export declare const campaignSchema: z.ZodObject<{
148
154
  locationExcludes: string[] | null;
149
155
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
150
156
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
157
+ requiredEarnings: 100 | 1000 | 10000 | null;
158
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
151
159
  } | null;
152
160
  isFeatured: "false" | "all" | "true";
153
161
  keywords: {
@@ -195,6 +203,8 @@ export declare const campaignSchema: z.ZodObject<{
195
203
  locationExcludes: string[] | null;
196
204
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
197
205
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
206
+ requiredEarnings: 100 | 1000 | 10000 | null;
207
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
198
208
  } | null;
199
209
  keywords: {
200
210
  includes: string | null;
@@ -315,6 +325,8 @@ export declare const campaignSchema: z.ZodObject<{
315
325
  locationExcludes: string[] | null;
316
326
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
317
327
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
328
+ requiredEarnings: 100 | 1000 | 10000 | null;
329
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
318
330
  } | null;
319
331
  isFeatured: "false" | "all" | "true";
320
332
  keywords: {
@@ -394,6 +406,8 @@ export declare const campaignSchema: z.ZodObject<{
394
406
  locationExcludes: string[] | null;
395
407
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
396
408
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
409
+ requiredEarnings: 100 | 1000 | 10000 | null;
410
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
397
411
  } | null;
398
412
  keywords: {
399
413
  includes: string | null;
@@ -547,18 +561,24 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
547
561
  talentTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<["Agency", "Independent", "Unspecified"]>, "many">>;
548
562
  englishLevels: z.ZodNullable<z.ZodArray<z.ZodEnum<["Fluent", "Conversational", "Native or Bilingual", "Unspecified"]>, "many">>;
549
563
  includeRisingTalent: z.ZodNullable<z.ZodString>;
564
+ requiredEarnings: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<100>, z.ZodLiteral<1000>, z.ZodLiteral<10000>]>>;
565
+ requiredJSS: z.ZodNullable<z.ZodArray<z.ZodEnum<[">80%", ">90%", "100%", "RT"]>, "many">>;
550
566
  }, "strip", z.ZodTypeAny, {
551
567
  includeRisingTalent: string | null;
552
568
  locationIncludes: string[] | null;
553
569
  locationExcludes: string[] | null;
554
570
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
555
571
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
572
+ requiredEarnings: 100 | 1000 | 10000 | null;
573
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
556
574
  }, {
557
575
  includeRisingTalent: string | null;
558
576
  locationIncludes: string[] | null;
559
577
  locationExcludes: string[] | null;
560
578
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
561
579
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
580
+ requiredEarnings: 100 | 1000 | 10000 | null;
581
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
562
582
  }>>;
563
583
  }, "strip", z.ZodTypeAny, {
564
584
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
@@ -588,6 +608,8 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
588
608
  locationExcludes: string[] | null;
589
609
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
590
610
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
611
+ requiredEarnings: 100 | 1000 | 10000 | null;
612
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
591
613
  } | null;
592
614
  isFeatured: "false" | "all" | "true";
593
615
  keywords: {
@@ -635,6 +657,8 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
635
657
  locationExcludes: string[] | null;
636
658
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
637
659
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
660
+ requiredEarnings: 100 | 1000 | 10000 | null;
661
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
638
662
  } | null;
639
663
  keywords: {
640
664
  includes: string | null;
@@ -752,6 +776,8 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
752
776
  locationExcludes: string[] | null;
753
777
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
754
778
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
779
+ requiredEarnings: 100 | 1000 | 10000 | null;
780
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
755
781
  } | null;
756
782
  isFeatured: "false" | "all" | "true";
757
783
  keywords: {
@@ -828,6 +854,8 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
828
854
  locationExcludes: string[] | null;
829
855
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
830
856
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
857
+ requiredEarnings: 100 | 1000 | 10000 | null;
858
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
831
859
  } | null;
832
860
  keywords: {
833
861
  includes: string | null;
@@ -981,18 +1009,24 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
981
1009
  talentTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<["Agency", "Independent", "Unspecified"]>, "many">>;
982
1010
  englishLevels: z.ZodNullable<z.ZodArray<z.ZodEnum<["Fluent", "Conversational", "Native or Bilingual", "Unspecified"]>, "many">>;
983
1011
  includeRisingTalent: z.ZodNullable<z.ZodString>;
1012
+ requiredEarnings: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<100>, z.ZodLiteral<1000>, z.ZodLiteral<10000>]>>;
1013
+ requiredJSS: z.ZodNullable<z.ZodArray<z.ZodEnum<[">80%", ">90%", "100%", "RT"]>, "many">>;
984
1014
  }, "strip", z.ZodTypeAny, {
985
1015
  includeRisingTalent: string | null;
986
1016
  locationIncludes: string[] | null;
987
1017
  locationExcludes: string[] | null;
988
1018
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
989
1019
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
1020
+ requiredEarnings: 100 | 1000 | 10000 | null;
1021
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
990
1022
  }, {
991
1023
  includeRisingTalent: string | null;
992
1024
  locationIncludes: string[] | null;
993
1025
  locationExcludes: string[] | null;
994
1026
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
995
1027
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
1028
+ requiredEarnings: 100 | 1000 | 10000 | null;
1029
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
996
1030
  }>>;
997
1031
  }, "strip", z.ZodTypeAny, {
998
1032
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
@@ -1022,6 +1056,8 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1022
1056
  locationExcludes: string[] | null;
1023
1057
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
1024
1058
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
1059
+ requiredEarnings: 100 | 1000 | 10000 | null;
1060
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
1025
1061
  } | null;
1026
1062
  isFeatured: "false" | "all" | "true";
1027
1063
  keywords: {
@@ -1069,6 +1105,8 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1069
1105
  locationExcludes: string[] | null;
1070
1106
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
1071
1107
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
1108
+ requiredEarnings: 100 | 1000 | 10000 | null;
1109
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
1072
1110
  } | null;
1073
1111
  keywords: {
1074
1112
  includes: string | null;
@@ -1187,6 +1225,8 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1187
1225
  locationExcludes: string[] | null;
1188
1226
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
1189
1227
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
1228
+ requiredEarnings: 100 | 1000 | 10000 | null;
1229
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
1190
1230
  } | null;
1191
1231
  isFeatured: "false" | "all" | "true";
1192
1232
  keywords: {
@@ -1264,6 +1304,8 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
1264
1304
  locationExcludes: string[] | null;
1265
1305
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
1266
1306
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
1307
+ requiredEarnings: 100 | 1000 | 10000 | null;
1308
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
1267
1309
  } | null;
1268
1310
  keywords: {
1269
1311
  includes: string | null;
@@ -10,6 +10,8 @@ export declare const talentTypeEnum: z.ZodEnum<["Agency", "Independent", "Unspec
10
10
  export declare const englishLevelEnum: z.ZodEnum<["Fluent", "Conversational", "Native or Bilingual", "Unspecified"]>;
11
11
  export declare const experienceLevelEnum: z.ZodEnum<["Entry level", "Intermediate", "Expert"]>;
12
12
  export declare const regionEnum: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
13
+ export declare const requiredEarningsEnum: z.ZodUnion<[z.ZodLiteral<100>, z.ZodLiteral<1000>, z.ZodLiteral<10000>]>;
14
+ export declare const requiredJSSEnum: z.ZodEnum<[">80%", ">90%", "100%", "RT"]>;
13
15
  export declare const jobFiltersSchema: z.ZodObject<{
14
16
  keywords: z.ZodNullable<z.ZodObject<{
15
17
  includes: z.ZodNullable<z.ZodString>;
@@ -114,18 +116,24 @@ export declare const jobFiltersSchema: z.ZodObject<{
114
116
  talentTypes: z.ZodNullable<z.ZodArray<z.ZodEnum<["Agency", "Independent", "Unspecified"]>, "many">>;
115
117
  englishLevels: z.ZodNullable<z.ZodArray<z.ZodEnum<["Fluent", "Conversational", "Native or Bilingual", "Unspecified"]>, "many">>;
116
118
  includeRisingTalent: z.ZodNullable<z.ZodString>;
119
+ requiredEarnings: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<100>, z.ZodLiteral<1000>, z.ZodLiteral<10000>]>>;
120
+ requiredJSS: z.ZodNullable<z.ZodArray<z.ZodEnum<[">80%", ">90%", "100%", "RT"]>, "many">>;
117
121
  }, "strip", z.ZodTypeAny, {
118
122
  includeRisingTalent: string | null;
119
123
  locationIncludes: string[] | null;
120
124
  locationExcludes: string[] | null;
121
125
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
122
126
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
127
+ requiredEarnings: 100 | 1000 | 10000 | null;
128
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
123
129
  }, {
124
130
  includeRisingTalent: string | null;
125
131
  locationIncludes: string[] | null;
126
132
  locationExcludes: string[] | null;
127
133
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
128
134
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
135
+ requiredEarnings: 100 | 1000 | 10000 | null;
136
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
129
137
  }>>;
130
138
  }, "strip", z.ZodTypeAny, {
131
139
  projectDuration: ("Less than 1 month" | "1 to 3 months" | "3 to 6 months" | "More than 6 months" | "Unspecified")[] | null;
@@ -155,6 +163,8 @@ export declare const jobFiltersSchema: z.ZodObject<{
155
163
  locationExcludes: string[] | null;
156
164
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
157
165
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
166
+ requiredEarnings: 100 | 1000 | 10000 | null;
167
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
158
168
  } | null;
159
169
  isFeatured: "false" | "all" | "true";
160
170
  keywords: {
@@ -202,6 +212,8 @@ export declare const jobFiltersSchema: z.ZodObject<{
202
212
  locationExcludes: string[] | null;
203
213
  talentTypes: ("Agency" | "Independent" | "Unspecified")[] | null;
204
214
  englishLevels: ("Unspecified" | "Fluent" | "Conversational" | "Native or Bilingual")[] | null;
215
+ requiredEarnings: 100 | 1000 | 10000 | null;
216
+ requiredJSS: (">80%" | ">90%" | "100%" | "RT")[] | null;
205
217
  } | null;
206
218
  keywords: {
207
219
  includes: string | null;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.jobFiltersSchema = exports.regionEnum = exports.experienceLevelEnum = exports.englishLevelEnum = exports.talentTypeEnum = exports.clientSizeEnum = exports.clientIndustryEnum = exports.categoryEnum = exports.paymentTypeEnum = exports.vendorTypeEnum = exports.engagementTypeEnum = exports.projectDurationEnum = void 0;
3
+ exports.jobFiltersSchema = exports.requiredJSSEnum = exports.requiredEarningsEnum = exports.regionEnum = exports.experienceLevelEnum = exports.englishLevelEnum = exports.talentTypeEnum = exports.clientSizeEnum = exports.clientIndustryEnum = exports.categoryEnum = exports.paymentTypeEnum = exports.vendorTypeEnum = exports.engagementTypeEnum = exports.projectDurationEnum = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const job_filter_options_1 = require("../../constants/job-filter-options");
6
6
  // Enum definitions for fixed options
@@ -15,6 +15,12 @@ exports.talentTypeEnum = zod_1.z.enum(job_filter_options_1.JOB_FILTER_OPTIONS.TA
15
15
  exports.englishLevelEnum = zod_1.z.enum(job_filter_options_1.JOB_FILTER_OPTIONS.ENGLISH_LEVELS);
16
16
  exports.experienceLevelEnum = zod_1.z.enum(job_filter_options_1.JOB_FILTER_OPTIONS.EXPERIENCE_LEVELS);
17
17
  exports.regionEnum = zod_1.z.enum(["all", "Worldwide", "UKOnly", "USOnly"]);
18
+ exports.requiredEarningsEnum = zod_1.z.union([
19
+ zod_1.z.literal(100),
20
+ zod_1.z.literal(1000),
21
+ zod_1.z.literal(10000),
22
+ ]);
23
+ exports.requiredJSSEnum = zod_1.z.enum(job_filter_options_1.JOB_FILTER_OPTIONS.REQUIRED_JSS);
18
24
  // Main job filters schema
19
25
  exports.jobFiltersSchema = zod_1.z.object({
20
26
  keywords: zod_1.z
@@ -73,6 +79,8 @@ exports.jobFiltersSchema = zod_1.z.object({
73
79
  talentTypes: zod_1.z.array(exports.talentTypeEnum).nullable(),
74
80
  englishLevels: zod_1.z.array(exports.englishLevelEnum).nullable(),
75
81
  includeRisingTalent: zod_1.z.string().nullable(),
82
+ requiredEarnings: exports.requiredEarningsEnum.nullable(),
83
+ requiredJSS: zod_1.z.array(exports.requiredJSSEnum).nullable(),
76
84
  })
77
85
  .nullable(),
78
86
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.91",
4
+ "version": "1.0.92",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",