lancer-shared 1.2.196 → 1.2.198
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
CHANGED
|
@@ -6582,6 +6582,7 @@ const ROUTES = {
|
|
|
6582
6582
|
BY_ID: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}`,
|
|
6583
6583
|
DUPLICATE: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/duplicate`,
|
|
6584
6584
|
CONNECTS_SAVED: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/connects-saved`,
|
|
6585
|
+
LAST_MONTH_LEAD_COUNTS: (organizationId) => `organizations/${organizationId}/campaigns/last-month-leads-count`,
|
|
6585
6586
|
BIDDER_ACCOUNTS: {
|
|
6586
6587
|
BASE: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/bidder-account`,
|
|
6587
6588
|
CONNECT: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/bidder-account/connect`,
|
|
@@ -13623,8 +13624,7 @@ class SearchQueryBuilder {
|
|
|
13623
13624
|
remainingQuery = remainingQuery.replace(notPattern, '').trim();
|
|
13624
13625
|
}
|
|
13625
13626
|
}
|
|
13626
|
-
// 5. Process grouped expressions -
|
|
13627
|
-
remainingQuery = this.cleanupConnectors(remainingQuery);
|
|
13627
|
+
// 5. Process grouped expressions - DON'T clean up connectors first!
|
|
13628
13628
|
// Extract OR groups (anyWords) - PROCESS FIRST
|
|
13629
13629
|
const orGroupPattern = /\(([^)]+(?:\s+OR\s+[^)]+)+)\)/g;
|
|
13630
13630
|
const orMatches = [...remainingQuery.matchAll(orGroupPattern)];
|
|
@@ -13641,6 +13641,8 @@ class SearchQueryBuilder {
|
|
|
13641
13641
|
result.allWords = andTerms.join(' ');
|
|
13642
13642
|
remainingQuery = remainingQuery.replace(andMatches[0][0], '').trim();
|
|
13643
13643
|
}
|
|
13644
|
+
// NOW clean up connectors after group processing
|
|
13645
|
+
remainingQuery = this.cleanupConnectors(remainingQuery);
|
|
13644
13646
|
// 6. Extract standalone quoted phrases (exactPhrase) - ONLY after all groups processed
|
|
13645
13647
|
const standaloneQuotePattern = /(?:^|\s)("([^"]+)")(?=\s|$)/g;
|
|
13646
13648
|
const quoteMatches = [...remainingQuery.matchAll(standaloneQuotePattern)];
|
|
@@ -13702,7 +13704,7 @@ class SearchQueryBuilder {
|
|
|
13702
13704
|
static extractTermsFromANDGroup(content) {
|
|
13703
13705
|
return content
|
|
13704
13706
|
.split(/\s+AND\s+/)
|
|
13705
|
-
.map((term) => term.trim())
|
|
13707
|
+
.map((term) => term.trim().replace(/^\(+|\)+$/g, '')) // Remove leading/trailing parentheses
|
|
13706
13708
|
.filter(Boolean);
|
|
13707
13709
|
}
|
|
13708
13710
|
/**
|
|
@@ -151,6 +151,7 @@ export declare const ROUTES: {
|
|
|
151
151
|
readonly BY_ID: (organizationId: string, campaignId: string) => string;
|
|
152
152
|
readonly DUPLICATE: (organizationId: string, campaignId: string) => string;
|
|
153
153
|
readonly CONNECTS_SAVED: (organizationId: string, campaignId: string) => string;
|
|
154
|
+
readonly LAST_MONTH_LEAD_COUNTS: (organizationId: string) => string;
|
|
154
155
|
readonly BIDDER_ACCOUNTS: {
|
|
155
156
|
readonly BASE: (organizationId: string, campaignId: string) => string;
|
|
156
157
|
readonly CONNECT: (organizationId: string, campaignId: string) => string;
|
|
@@ -1868,6 +1868,7 @@ export type BiddingHourlyRateStrategy = z.infer<typeof biddingHourlyRateStrategy
|
|
|
1868
1868
|
export interface Campaign extends z.infer<typeof campaignSchema> {
|
|
1869
1869
|
biddingHourlyRateStrategy: BiddingHourlyRateStrategy;
|
|
1870
1870
|
filters: JobFilters;
|
|
1871
|
+
count: number | null;
|
|
1871
1872
|
}
|
|
1872
1873
|
export type CampaignStatus = z.infer<typeof campaignStatusSchema>;
|
|
1873
1874
|
export interface CreateCampaign extends z.infer<typeof createCampaignSchema> {
|