lancer-shared 1.2.244 → 1.2.246
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 +39 -1
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +36 -2
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +6 -0
- package/dist/schemas/agent/classification-enum.d.ts +3 -0
- package/dist/schemas/campaign/campaign-analytics.d.ts +48 -0
- package/dist/schemas/campaign/campaign.d.ts +30 -0
- package/dist/schemas/golden-dataset/index.d.ts +1 -0
- package/dist/schemas/golden-dataset/sample.d.ts +72 -0
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/job/job-filters.d.ts +6 -0
- package/dist/schemas/scraper/scrape-payload.d.ts +14 -0
- package/package.json +1 -1
|
@@ -89,6 +89,12 @@ export declare const ROUTES: {
|
|
|
89
89
|
readonly BASE: "admin/alerts";
|
|
90
90
|
readonly SEND_ALERT: "admin/alerts/send";
|
|
91
91
|
};
|
|
92
|
+
readonly GOLDEN_DATASET: {
|
|
93
|
+
readonly BASE: "admin/golden-dataset";
|
|
94
|
+
readonly SAMPLE: (id: string) => string;
|
|
95
|
+
readonly CREATE_SAMPLE: "admin/golden-dataset/create";
|
|
96
|
+
readonly GET_SAMPLES: "admin/golden-dataset/get-samples";
|
|
97
|
+
};
|
|
92
98
|
readonly AGENT: {
|
|
93
99
|
readonly BASE: "admin/agent";
|
|
94
100
|
readonly TEST_JOB_QUALITY: "admin/agent/test-job-quality";
|
|
@@ -493,6 +493,8 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
493
493
|
}>>;
|
|
494
494
|
includeClientsWithZeroReviews: z.ZodNullable<z.ZodBoolean>;
|
|
495
495
|
includeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
496
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
497
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
496
498
|
vendorQualifications: z.ZodNullable<z.ZodObject<{
|
|
497
499
|
locationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
498
500
|
locationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -566,6 +568,8 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
566
568
|
} | null;
|
|
567
569
|
includeClientsWithZeroReviews: boolean | null;
|
|
568
570
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
571
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
572
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
569
573
|
vendorQualifications: {
|
|
570
574
|
locationIncludes: string[] | null;
|
|
571
575
|
locationExcludes: string[] | null;
|
|
@@ -623,6 +627,8 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
623
627
|
} | null;
|
|
624
628
|
includeClientsWithZeroReviews: boolean | null;
|
|
625
629
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
630
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
631
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
626
632
|
vendorQualifications: {
|
|
627
633
|
locationIncludes: string[] | null;
|
|
628
634
|
locationExcludes: string[] | null;
|
|
@@ -1127,6 +1133,8 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1127
1133
|
}>>;
|
|
1128
1134
|
includeClientsWithZeroReviews: z.ZodNullable<z.ZodBoolean>;
|
|
1129
1135
|
includeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
1136
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
1137
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
1130
1138
|
vendorQualifications: z.ZodNullable<z.ZodObject<{
|
|
1131
1139
|
locationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
1132
1140
|
locationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1200,6 +1208,8 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1200
1208
|
} | null;
|
|
1201
1209
|
includeClientsWithZeroReviews: boolean | null;
|
|
1202
1210
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
1211
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
1212
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
1203
1213
|
vendorQualifications: {
|
|
1204
1214
|
locationIncludes: string[] | null;
|
|
1205
1215
|
locationExcludes: string[] | null;
|
|
@@ -1257,6 +1267,8 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1257
1267
|
} | null;
|
|
1258
1268
|
includeClientsWithZeroReviews: boolean | null;
|
|
1259
1269
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
1270
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
1271
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
1260
1272
|
vendorQualifications: {
|
|
1261
1273
|
locationIncludes: string[] | null;
|
|
1262
1274
|
locationExcludes: string[] | null;
|
|
@@ -2113,6 +2125,8 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2113
2125
|
}>>;
|
|
2114
2126
|
includeClientsWithZeroReviews: z.ZodNullable<z.ZodBoolean>;
|
|
2115
2127
|
includeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
2128
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
2129
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
2116
2130
|
vendorQualifications: z.ZodNullable<z.ZodObject<{
|
|
2117
2131
|
locationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
2118
2132
|
locationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -2186,6 +2200,8 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2186
2200
|
} | null;
|
|
2187
2201
|
includeClientsWithZeroReviews: boolean | null;
|
|
2188
2202
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
2203
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
2204
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
2189
2205
|
vendorQualifications: {
|
|
2190
2206
|
locationIncludes: string[] | null;
|
|
2191
2207
|
locationExcludes: string[] | null;
|
|
@@ -2243,6 +2259,8 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2243
2259
|
} | null;
|
|
2244
2260
|
includeClientsWithZeroReviews: boolean | null;
|
|
2245
2261
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
2262
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
2263
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
2246
2264
|
vendorQualifications: {
|
|
2247
2265
|
locationIncludes: string[] | null;
|
|
2248
2266
|
locationExcludes: string[] | null;
|
|
@@ -3099,6 +3117,8 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3099
3117
|
}>>;
|
|
3100
3118
|
includeClientsWithZeroReviews: z.ZodNullable<z.ZodBoolean>;
|
|
3101
3119
|
includeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
3120
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
3121
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
3102
3122
|
vendorQualifications: z.ZodNullable<z.ZodObject<{
|
|
3103
3123
|
locationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
3104
3124
|
locationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -3172,6 +3192,8 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3172
3192
|
} | null;
|
|
3173
3193
|
includeClientsWithZeroReviews: boolean | null;
|
|
3174
3194
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
3195
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
3196
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
3175
3197
|
vendorQualifications: {
|
|
3176
3198
|
locationIncludes: string[] | null;
|
|
3177
3199
|
locationExcludes: string[] | null;
|
|
@@ -3229,6 +3251,8 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3229
3251
|
} | null;
|
|
3230
3252
|
includeClientsWithZeroReviews: boolean | null;
|
|
3231
3253
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
3254
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
3255
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
3232
3256
|
vendorQualifications: {
|
|
3233
3257
|
locationIncludes: string[] | null;
|
|
3234
3258
|
locationExcludes: string[] | null;
|
|
@@ -4082,6 +4106,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4082
4106
|
}>>;
|
|
4083
4107
|
includeClientsWithZeroReviews: z.ZodNullable<z.ZodBoolean>;
|
|
4084
4108
|
includeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
4109
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
4110
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
4085
4111
|
vendorQualifications: z.ZodNullable<z.ZodObject<{
|
|
4086
4112
|
locationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
4087
4113
|
locationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -4155,6 +4181,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4155
4181
|
} | null;
|
|
4156
4182
|
includeClientsWithZeroReviews: boolean | null;
|
|
4157
4183
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
4184
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
4185
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
4158
4186
|
vendorQualifications: {
|
|
4159
4187
|
locationIncludes: string[] | null;
|
|
4160
4188
|
locationExcludes: string[] | null;
|
|
@@ -4212,6 +4240,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4212
4240
|
} | null;
|
|
4213
4241
|
includeClientsWithZeroReviews: boolean | null;
|
|
4214
4242
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
4243
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
4244
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
4215
4245
|
vendorQualifications: {
|
|
4216
4246
|
locationIncludes: string[] | null;
|
|
4217
4247
|
locationExcludes: string[] | null;
|
|
@@ -4715,6 +4745,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4715
4745
|
}>>;
|
|
4716
4746
|
includeClientsWithZeroReviews: z.ZodNullable<z.ZodBoolean>;
|
|
4717
4747
|
includeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
4748
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
4749
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
4718
4750
|
vendorQualifications: z.ZodNullable<z.ZodObject<{
|
|
4719
4751
|
locationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
4720
4752
|
locationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -4788,6 +4820,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4788
4820
|
} | null;
|
|
4789
4821
|
includeClientsWithZeroReviews: boolean | null;
|
|
4790
4822
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
4823
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
4824
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
4791
4825
|
vendorQualifications: {
|
|
4792
4826
|
locationIncludes: string[] | null;
|
|
4793
4827
|
locationExcludes: string[] | null;
|
|
@@ -4845,6 +4879,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4845
4879
|
} | null;
|
|
4846
4880
|
includeClientsWithZeroReviews: boolean | null;
|
|
4847
4881
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
4882
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
4883
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
4848
4884
|
vendorQualifications: {
|
|
4849
4885
|
locationIncludes: string[] | null;
|
|
4850
4886
|
locationExcludes: string[] | null;
|
|
@@ -5700,6 +5736,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5700
5736
|
}>>;
|
|
5701
5737
|
includeClientsWithZeroReviews: z.ZodNullable<z.ZodBoolean>;
|
|
5702
5738
|
includeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
5739
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
5740
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
5703
5741
|
vendorQualifications: z.ZodNullable<z.ZodObject<{
|
|
5704
5742
|
locationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
5705
5743
|
locationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -5773,6 +5811,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5773
5811
|
} | null;
|
|
5774
5812
|
includeClientsWithZeroReviews: boolean | null;
|
|
5775
5813
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
5814
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
5815
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
5776
5816
|
vendorQualifications: {
|
|
5777
5817
|
locationIncludes: string[] | null;
|
|
5778
5818
|
locationExcludes: string[] | null;
|
|
@@ -5830,6 +5870,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5830
5870
|
} | null;
|
|
5831
5871
|
includeClientsWithZeroReviews: boolean | null;
|
|
5832
5872
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
5873
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
5874
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
5833
5875
|
vendorQualifications: {
|
|
5834
5876
|
locationIncludes: string[] | null;
|
|
5835
5877
|
locationExcludes: string[] | null;
|
|
@@ -6685,6 +6727,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6685
6727
|
}>>;
|
|
6686
6728
|
includeClientsWithZeroReviews: z.ZodNullable<z.ZodBoolean>;
|
|
6687
6729
|
includeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
6730
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
6731
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
6688
6732
|
vendorQualifications: z.ZodNullable<z.ZodObject<{
|
|
6689
6733
|
locationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
6690
6734
|
locationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -6758,6 +6802,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6758
6802
|
} | null;
|
|
6759
6803
|
includeClientsWithZeroReviews: boolean | null;
|
|
6760
6804
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
6805
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
6806
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
6761
6807
|
vendorQualifications: {
|
|
6762
6808
|
locationIncludes: string[] | null;
|
|
6763
6809
|
locationExcludes: string[] | null;
|
|
@@ -6815,6 +6861,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6815
6861
|
} | null;
|
|
6816
6862
|
includeClientsWithZeroReviews: boolean | null;
|
|
6817
6863
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
6864
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
6865
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
6818
6866
|
vendorQualifications: {
|
|
6819
6867
|
locationIncludes: string[] | null;
|
|
6820
6868
|
locationExcludes: string[] | null;
|
|
@@ -181,6 +181,8 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
181
181
|
}>>;
|
|
182
182
|
includeClientsWithZeroReviews: z.ZodNullable<z.ZodBoolean>;
|
|
183
183
|
includeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
184
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
185
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
184
186
|
vendorQualifications: z.ZodNullable<z.ZodObject<{
|
|
185
187
|
locationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
186
188
|
locationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -254,6 +256,8 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
254
256
|
} | null;
|
|
255
257
|
includeClientsWithZeroReviews: boolean | null;
|
|
256
258
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
259
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
260
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
257
261
|
vendorQualifications: {
|
|
258
262
|
locationIncludes: string[] | null;
|
|
259
263
|
locationExcludes: string[] | null;
|
|
@@ -311,6 +315,8 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
311
315
|
} | null;
|
|
312
316
|
includeClientsWithZeroReviews: boolean | null;
|
|
313
317
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
318
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
319
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
314
320
|
vendorQualifications: {
|
|
315
321
|
locationIncludes: string[] | null;
|
|
316
322
|
locationExcludes: string[] | null;
|
|
@@ -496,6 +502,8 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
496
502
|
} | null;
|
|
497
503
|
includeClientsWithZeroReviews: boolean | null;
|
|
498
504
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
505
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
506
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
499
507
|
vendorQualifications: {
|
|
500
508
|
locationIncludes: string[] | null;
|
|
501
509
|
locationExcludes: string[] | null;
|
|
@@ -612,6 +620,8 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
612
620
|
} | null;
|
|
613
621
|
includeClientsWithZeroReviews: boolean | null;
|
|
614
622
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
623
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
624
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
615
625
|
vendorQualifications: {
|
|
616
626
|
locationIncludes: string[] | null;
|
|
617
627
|
locationExcludes: string[] | null;
|
|
@@ -807,6 +817,8 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
807
817
|
}>>;
|
|
808
818
|
includeClientsWithZeroReviews: z.ZodNullable<z.ZodBoolean>;
|
|
809
819
|
includeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
820
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
821
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
810
822
|
vendorQualifications: z.ZodNullable<z.ZodObject<{
|
|
811
823
|
locationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
812
824
|
locationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -880,6 +892,8 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
880
892
|
} | null;
|
|
881
893
|
includeClientsWithZeroReviews: boolean | null;
|
|
882
894
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
895
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
896
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
883
897
|
vendorQualifications: {
|
|
884
898
|
locationIncludes: string[] | null;
|
|
885
899
|
locationExcludes: string[] | null;
|
|
@@ -937,6 +951,8 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
937
951
|
} | null;
|
|
938
952
|
includeClientsWithZeroReviews: boolean | null;
|
|
939
953
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
954
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
955
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
940
956
|
vendorQualifications: {
|
|
941
957
|
locationIncludes: string[] | null;
|
|
942
958
|
locationExcludes: string[] | null;
|
|
@@ -1119,6 +1135,8 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
1119
1135
|
} | null;
|
|
1120
1136
|
includeClientsWithZeroReviews: boolean | null;
|
|
1121
1137
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
1138
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
1139
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
1122
1140
|
vendorQualifications: {
|
|
1123
1141
|
locationIncludes: string[] | null;
|
|
1124
1142
|
locationExcludes: string[] | null;
|
|
@@ -1226,6 +1244,8 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
1226
1244
|
} | null;
|
|
1227
1245
|
includeClientsWithZeroReviews: boolean | null;
|
|
1228
1246
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
1247
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
1248
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
1229
1249
|
vendorQualifications: {
|
|
1230
1250
|
locationIncludes: string[] | null;
|
|
1231
1251
|
locationExcludes: string[] | null;
|
|
@@ -1412,6 +1432,8 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1412
1432
|
}>>;
|
|
1413
1433
|
includeClientsWithZeroReviews: z.ZodNullable<z.ZodBoolean>;
|
|
1414
1434
|
includeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
1435
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
1436
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
1415
1437
|
vendorQualifications: z.ZodNullable<z.ZodObject<{
|
|
1416
1438
|
locationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
1417
1439
|
locationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1485,6 +1507,8 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1485
1507
|
} | null;
|
|
1486
1508
|
includeClientsWithZeroReviews: boolean | null;
|
|
1487
1509
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
1510
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
1511
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
1488
1512
|
vendorQualifications: {
|
|
1489
1513
|
locationIncludes: string[] | null;
|
|
1490
1514
|
locationExcludes: string[] | null;
|
|
@@ -1542,6 +1566,8 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1542
1566
|
} | null;
|
|
1543
1567
|
includeClientsWithZeroReviews: boolean | null;
|
|
1544
1568
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
1569
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
1570
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
1545
1571
|
vendorQualifications: {
|
|
1546
1572
|
locationIncludes: string[] | null;
|
|
1547
1573
|
locationExcludes: string[] | null;
|
|
@@ -1708,6 +1734,8 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1708
1734
|
} | null;
|
|
1709
1735
|
includeClientsWithZeroReviews: boolean | null;
|
|
1710
1736
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
1737
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
1738
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
1711
1739
|
vendorQualifications: {
|
|
1712
1740
|
locationIncludes: string[] | null;
|
|
1713
1741
|
locationExcludes: string[] | null;
|
|
@@ -1822,6 +1850,8 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1822
1850
|
} | null;
|
|
1823
1851
|
includeClientsWithZeroReviews: boolean | null;
|
|
1824
1852
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
1853
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
1854
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
1825
1855
|
vendorQualifications: {
|
|
1826
1856
|
locationIncludes: string[] | null;
|
|
1827
1857
|
locationExcludes: string[] | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './sample';
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const labelEnum: z.ZodEnum<["suitable", "unsuitable"]>;
|
|
3
|
+
export declare const sampleSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
organizationId: z.ZodString;
|
|
6
|
+
campaignId: z.ZodString;
|
|
7
|
+
leadId: z.ZodString;
|
|
8
|
+
systemPromptSnapshot: z.ZodString;
|
|
9
|
+
jobDetailsSnapshot: z.ZodString;
|
|
10
|
+
label: z.ZodEnum<["suitable", "unsuitable"]>;
|
|
11
|
+
updatedAt: z.ZodNumber;
|
|
12
|
+
createdAt: z.ZodNumber;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
id: string;
|
|
15
|
+
label: "suitable" | "unsuitable";
|
|
16
|
+
campaignId: string;
|
|
17
|
+
organizationId: string;
|
|
18
|
+
createdAt: number;
|
|
19
|
+
updatedAt: number;
|
|
20
|
+
leadId: string;
|
|
21
|
+
systemPromptSnapshot: string;
|
|
22
|
+
jobDetailsSnapshot: string;
|
|
23
|
+
}, {
|
|
24
|
+
id: string;
|
|
25
|
+
label: "suitable" | "unsuitable";
|
|
26
|
+
campaignId: string;
|
|
27
|
+
organizationId: string;
|
|
28
|
+
createdAt: number;
|
|
29
|
+
updatedAt: number;
|
|
30
|
+
leadId: string;
|
|
31
|
+
systemPromptSnapshot: string;
|
|
32
|
+
jobDetailsSnapshot: string;
|
|
33
|
+
}>;
|
|
34
|
+
export declare const createSampleSchema: z.ZodObject<{
|
|
35
|
+
organizationId: z.ZodString;
|
|
36
|
+
systemPromptSnapshot: z.ZodString;
|
|
37
|
+
jobDetailsSnapshot: z.ZodString;
|
|
38
|
+
campaignId: z.ZodString;
|
|
39
|
+
leadId: z.ZodString;
|
|
40
|
+
label: z.ZodEnum<["suitable", "unsuitable"]>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
label: "suitable" | "unsuitable";
|
|
43
|
+
campaignId: string;
|
|
44
|
+
organizationId: string;
|
|
45
|
+
leadId: string;
|
|
46
|
+
systemPromptSnapshot: string;
|
|
47
|
+
jobDetailsSnapshot: string;
|
|
48
|
+
}, {
|
|
49
|
+
label: "suitable" | "unsuitable";
|
|
50
|
+
campaignId: string;
|
|
51
|
+
organizationId: string;
|
|
52
|
+
leadId: string;
|
|
53
|
+
systemPromptSnapshot: string;
|
|
54
|
+
jobDetailsSnapshot: string;
|
|
55
|
+
}>;
|
|
56
|
+
export declare const getSamplesRequestSchema: z.ZodObject<{
|
|
57
|
+
organizationId: z.ZodString;
|
|
58
|
+
campaignId: z.ZodString;
|
|
59
|
+
leadIds: z.ZodArray<z.ZodString, "many">;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
campaignId: string;
|
|
62
|
+
organizationId: string;
|
|
63
|
+
leadIds: string[];
|
|
64
|
+
}, {
|
|
65
|
+
campaignId: string;
|
|
66
|
+
organizationId: string;
|
|
67
|
+
leadIds: string[];
|
|
68
|
+
}>;
|
|
69
|
+
export type Sample = z.infer<typeof sampleSchema>;
|
|
70
|
+
export type CreateSample = z.infer<typeof createSampleSchema>;
|
|
71
|
+
export type GetSamplesRequest = z.infer<typeof getSamplesRequestSchema>;
|
|
72
|
+
export type SampleLabel = z.infer<typeof labelEnum>;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -132,6 +132,8 @@ export declare const jobFiltersSchema: z.ZodObject<{
|
|
|
132
132
|
}>>;
|
|
133
133
|
includeClientsWithZeroReviews: z.ZodNullable<z.ZodBoolean>;
|
|
134
134
|
includeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
135
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
136
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
135
137
|
vendorQualifications: z.ZodNullable<z.ZodObject<{
|
|
136
138
|
locationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
137
139
|
locationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -205,6 +207,8 @@ export declare const jobFiltersSchema: z.ZodObject<{
|
|
|
205
207
|
} | null;
|
|
206
208
|
includeClientsWithZeroReviews: boolean | null;
|
|
207
209
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
210
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
211
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
208
212
|
vendorQualifications: {
|
|
209
213
|
locationIncludes: string[] | null;
|
|
210
214
|
locationExcludes: string[] | null;
|
|
@@ -262,6 +266,8 @@ export declare const jobFiltersSchema: z.ZodObject<{
|
|
|
262
266
|
} | null;
|
|
263
267
|
includeClientsWithZeroReviews: boolean | null;
|
|
264
268
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
269
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
270
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
265
271
|
vendorQualifications: {
|
|
266
272
|
locationIncludes: string[] | null;
|
|
267
273
|
locationExcludes: string[] | null;
|
|
@@ -536,6 +536,8 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
536
536
|
}>>;
|
|
537
537
|
includeClientsWithZeroReviews: z.ZodNullable<z.ZodBoolean>;
|
|
538
538
|
includeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
539
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
540
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: z.ZodNullable<z.ZodNumber>;
|
|
539
541
|
vendorQualifications: z.ZodNullable<z.ZodObject<{
|
|
540
542
|
locationIncludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
541
543
|
locationExcludes: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -609,6 +611,8 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
609
611
|
} | null;
|
|
610
612
|
includeClientsWithZeroReviews: boolean | null;
|
|
611
613
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
614
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
615
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
612
616
|
vendorQualifications: {
|
|
613
617
|
locationIncludes: string[] | null;
|
|
614
618
|
locationExcludes: string[] | null;
|
|
@@ -666,6 +670,8 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
666
670
|
} | null;
|
|
667
671
|
includeClientsWithZeroReviews: boolean | null;
|
|
668
672
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
673
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
674
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
669
675
|
vendorQualifications: {
|
|
670
676
|
locationIncludes: string[] | null;
|
|
671
677
|
locationExcludes: string[] | null;
|
|
@@ -851,6 +857,8 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
851
857
|
} | null;
|
|
852
858
|
includeClientsWithZeroReviews: boolean | null;
|
|
853
859
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
860
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
861
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
854
862
|
vendorQualifications: {
|
|
855
863
|
locationIncludes: string[] | null;
|
|
856
864
|
locationExcludes: string[] | null;
|
|
@@ -967,6 +975,8 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
967
975
|
} | null;
|
|
968
976
|
includeClientsWithZeroReviews: boolean | null;
|
|
969
977
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
978
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
979
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
970
980
|
vendorQualifications: {
|
|
971
981
|
locationIncludes: string[] | null;
|
|
972
982
|
locationExcludes: string[] | null;
|
|
@@ -2318,6 +2328,8 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2318
2328
|
} | null;
|
|
2319
2329
|
includeClientsWithZeroReviews: boolean | null;
|
|
2320
2330
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
2331
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
2332
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
2321
2333
|
vendorQualifications: {
|
|
2322
2334
|
locationIncludes: string[] | null;
|
|
2323
2335
|
locationExcludes: string[] | null;
|
|
@@ -2662,6 +2674,8 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2662
2674
|
} | null;
|
|
2663
2675
|
includeClientsWithZeroReviews: boolean | null;
|
|
2664
2676
|
includeClientsWithLessThanXPostedJobs: number | null;
|
|
2677
|
+
totalSpentIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
2678
|
+
averageHourlyRateIncludeClientsWithLessThanXPostedJobs: number | null;
|
|
2665
2679
|
vendorQualifications: {
|
|
2666
2680
|
locationIncludes: string[] | null;
|
|
2667
2681
|
locationExcludes: string[] | null;
|