lancer-shared 1.2.176 → 1.2.178
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
|
@@ -12693,6 +12693,7 @@ const leadStatusEnum = z.enum([
|
|
|
12693
12693
|
'contacted',
|
|
12694
12694
|
'insufficientConnects',
|
|
12695
12695
|
'doesNotMeetCriteria',
|
|
12696
|
+
'syncedInAnotherCampaign',
|
|
12696
12697
|
'viewed',
|
|
12697
12698
|
'replied',
|
|
12698
12699
|
'won',
|
|
@@ -13103,6 +13104,7 @@ const campaignSchema = z.object({
|
|
|
13103
13104
|
priority: z.number().nullable(),
|
|
13104
13105
|
coverLetterTemplate: coverLetterTemplateSchema.nullable(),
|
|
13105
13106
|
organizationProfileId: z.string().nullable(),
|
|
13107
|
+
lastSyncedProposalsAt: numberType().nullable(),
|
|
13106
13108
|
});
|
|
13107
13109
|
const upworkAccountConnectStatusSchema = z.union([
|
|
13108
13110
|
z.literal('processing'),
|
|
@@ -13254,6 +13256,7 @@ const updateCampaignAnalyticsSchema = z.object({
|
|
|
13254
13256
|
'viewed',
|
|
13255
13257
|
'replied',
|
|
13256
13258
|
'doesNotMeetCriteria',
|
|
13259
|
+
'syncedInAnotherCampaign',
|
|
13257
13260
|
'insufficientConnects',
|
|
13258
13261
|
'won',
|
|
13259
13262
|
'leadsAnalyzed',
|
|
@@ -620,7 +620,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
620
620
|
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
621
621
|
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
622
622
|
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
623
|
-
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
623
|
+
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
624
624
|
expenses: z.ZodObject<{
|
|
625
625
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
626
626
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -673,6 +673,8 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
673
673
|
template: string;
|
|
674
674
|
instructions: string;
|
|
675
675
|
}>>;
|
|
676
|
+
organizationProfileId: z.ZodNullable<z.ZodString>;
|
|
677
|
+
lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
|
|
676
678
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
677
679
|
id: string;
|
|
678
680
|
name: string;
|
|
@@ -1179,7 +1181,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1179
1181
|
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1180
1182
|
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
1181
1183
|
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
1182
|
-
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
1184
|
+
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
1183
1185
|
expenses: z.ZodObject<{
|
|
1184
1186
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
1185
1187
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1232,6 +1234,8 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1232
1234
|
template: string;
|
|
1233
1235
|
instructions: string;
|
|
1234
1236
|
}>>;
|
|
1237
|
+
organizationProfileId: z.ZodNullable<z.ZodString>;
|
|
1238
|
+
lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
|
|
1235
1239
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
1236
1240
|
id: string;
|
|
1237
1241
|
name: string;
|
|
@@ -1560,7 +1564,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1560
1564
|
answer: string;
|
|
1561
1565
|
}>, "many">>;
|
|
1562
1566
|
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
1563
|
-
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
|
|
1567
|
+
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
|
|
1564
1568
|
biddingAmount: z.ZodNullable<z.ZodNumber>;
|
|
1565
1569
|
boosted: z.ZodNullable<z.ZodBoolean>;
|
|
1566
1570
|
boostingAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -2090,7 +2094,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2090
2094
|
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2091
2095
|
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
2092
2096
|
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
2093
|
-
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
2097
|
+
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
2094
2098
|
expenses: z.ZodObject<{
|
|
2095
2099
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
2096
2100
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2143,6 +2147,8 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2143
2147
|
template: string;
|
|
2144
2148
|
instructions: string;
|
|
2145
2149
|
}>>;
|
|
2150
|
+
organizationProfileId: z.ZodNullable<z.ZodString>;
|
|
2151
|
+
lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
|
|
2146
2152
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
2147
2153
|
id: string;
|
|
2148
2154
|
name: string;
|
|
@@ -2153,7 +2159,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2153
2159
|
creditBalance: z.ZodNumber;
|
|
2154
2160
|
}, {
|
|
2155
2161
|
type: z.ZodLiteral<"lead_status">;
|
|
2156
|
-
status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>;
|
|
2162
|
+
status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>;
|
|
2157
2163
|
lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
|
|
2158
2164
|
id: z.ZodNullable<z.ZodString>;
|
|
2159
2165
|
uid: z.ZodNullable<z.ZodString>;
|
|
@@ -2472,7 +2478,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2472
2478
|
answer: string;
|
|
2473
2479
|
}>, "many">>;
|
|
2474
2480
|
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
2475
|
-
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
|
|
2481
|
+
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
|
|
2476
2482
|
biddingAmount: z.ZodNullable<z.ZodNumber>;
|
|
2477
2483
|
boosted: z.ZodNullable<z.ZodBoolean>;
|
|
2478
2484
|
boostingAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -2497,7 +2503,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2497
2503
|
creditBalance: z.ZodNumber;
|
|
2498
2504
|
}>, "strip", z.ZodTypeAny, {
|
|
2499
2505
|
type: "lead_status";
|
|
2500
|
-
status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria";
|
|
2506
|
+
status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign";
|
|
2501
2507
|
createdAt: number;
|
|
2502
2508
|
organization: {
|
|
2503
2509
|
id: string;
|
|
@@ -2516,7 +2522,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2516
2522
|
};
|
|
2517
2523
|
}, {
|
|
2518
2524
|
type: "lead_status";
|
|
2519
|
-
status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria";
|
|
2525
|
+
status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign";
|
|
2520
2526
|
createdAt: number;
|
|
2521
2527
|
organization: {
|
|
2522
2528
|
id: string;
|
|
@@ -3001,7 +3007,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3001
3007
|
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
3002
3008
|
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
3003
3009
|
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
3004
|
-
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
3010
|
+
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
3005
3011
|
expenses: z.ZodObject<{
|
|
3006
3012
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
3007
3013
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -3054,6 +3060,8 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3054
3060
|
template: string;
|
|
3055
3061
|
instructions: string;
|
|
3056
3062
|
}>>;
|
|
3063
|
+
organizationProfileId: z.ZodNullable<z.ZodString>;
|
|
3064
|
+
lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
|
|
3057
3065
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
3058
3066
|
id: string;
|
|
3059
3067
|
name: string;
|
|
@@ -3382,7 +3390,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3382
3390
|
answer: string;
|
|
3383
3391
|
}>, "many">>;
|
|
3384
3392
|
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
3385
|
-
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
|
|
3393
|
+
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
|
|
3386
3394
|
biddingAmount: z.ZodNullable<z.ZodNumber>;
|
|
3387
3395
|
boosted: z.ZodNullable<z.ZodBoolean>;
|
|
3388
3396
|
boostingAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -3909,7 +3917,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3909
3917
|
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
3910
3918
|
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
3911
3919
|
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
3912
|
-
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
3920
|
+
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
3913
3921
|
expenses: z.ZodObject<{
|
|
3914
3922
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
3915
3923
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -3962,6 +3970,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
3962
3970
|
template: string;
|
|
3963
3971
|
instructions: string;
|
|
3964
3972
|
}>>;
|
|
3973
|
+
organizationProfileId: z.ZodNullable<z.ZodString>;
|
|
3974
|
+
lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
|
|
3965
3975
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
3966
3976
|
id: string;
|
|
3967
3977
|
name: string;
|
|
@@ -4467,7 +4477,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4467
4477
|
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
4468
4478
|
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
4469
4479
|
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
4470
|
-
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
4480
|
+
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
4471
4481
|
expenses: z.ZodObject<{
|
|
4472
4482
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
4473
4483
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -4520,6 +4530,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4520
4530
|
template: string;
|
|
4521
4531
|
instructions: string;
|
|
4522
4532
|
}>>;
|
|
4533
|
+
organizationProfileId: z.ZodNullable<z.ZodString>;
|
|
4534
|
+
lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
|
|
4523
4535
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
4524
4536
|
id: string;
|
|
4525
4537
|
name: string;
|
|
@@ -4848,7 +4860,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4848
4860
|
answer: string;
|
|
4849
4861
|
}>, "many">>;
|
|
4850
4862
|
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
4851
|
-
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
|
|
4863
|
+
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
|
|
4852
4864
|
biddingAmount: z.ZodNullable<z.ZodNumber>;
|
|
4853
4865
|
boosted: z.ZodNullable<z.ZodBoolean>;
|
|
4854
4866
|
boostingAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -5377,7 +5389,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5377
5389
|
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
5378
5390
|
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
5379
5391
|
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
5380
|
-
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
5392
|
+
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
5381
5393
|
expenses: z.ZodObject<{
|
|
5382
5394
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
5383
5395
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -5430,6 +5442,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5430
5442
|
template: string;
|
|
5431
5443
|
instructions: string;
|
|
5432
5444
|
}>>;
|
|
5445
|
+
organizationProfileId: z.ZodNullable<z.ZodString>;
|
|
5446
|
+
lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
|
|
5433
5447
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
5434
5448
|
id: string;
|
|
5435
5449
|
name: string;
|
|
@@ -5440,7 +5454,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5440
5454
|
creditBalance: z.ZodNumber;
|
|
5441
5455
|
}, {
|
|
5442
5456
|
type: z.ZodLiteral<"lead_status">;
|
|
5443
|
-
status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>;
|
|
5457
|
+
status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>;
|
|
5444
5458
|
lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
|
|
5445
5459
|
id: z.ZodNullable<z.ZodString>;
|
|
5446
5460
|
uid: z.ZodNullable<z.ZodString>;
|
|
@@ -5759,7 +5773,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5759
5773
|
answer: string;
|
|
5760
5774
|
}>, "many">>;
|
|
5761
5775
|
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
5762
|
-
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
|
|
5776
|
+
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
|
|
5763
5777
|
biddingAmount: z.ZodNullable<z.ZodNumber>;
|
|
5764
5778
|
boosted: z.ZodNullable<z.ZodBoolean>;
|
|
5765
5779
|
boostingAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -5784,7 +5798,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5784
5798
|
creditBalance: z.ZodNumber;
|
|
5785
5799
|
}>, "strip", z.ZodTypeAny, {
|
|
5786
5800
|
type: "lead_status";
|
|
5787
|
-
status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria";
|
|
5801
|
+
status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign";
|
|
5788
5802
|
createdAt: number;
|
|
5789
5803
|
organization: {
|
|
5790
5804
|
id: string;
|
|
@@ -5803,7 +5817,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5803
5817
|
};
|
|
5804
5818
|
}, {
|
|
5805
5819
|
type: "lead_status";
|
|
5806
|
-
status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria";
|
|
5820
|
+
status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign";
|
|
5807
5821
|
createdAt: number;
|
|
5808
5822
|
organization: {
|
|
5809
5823
|
id: string;
|
|
@@ -6287,7 +6301,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6287
6301
|
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
6288
6302
|
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
6289
6303
|
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
6290
|
-
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
6304
|
+
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
6291
6305
|
expenses: z.ZodObject<{
|
|
6292
6306
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
6293
6307
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -6340,6 +6354,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6340
6354
|
template: string;
|
|
6341
6355
|
instructions: string;
|
|
6342
6356
|
}>>;
|
|
6357
|
+
organizationProfileId: z.ZodNullable<z.ZodString>;
|
|
6358
|
+
lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
|
|
6343
6359
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
6344
6360
|
id: string;
|
|
6345
6361
|
name: string;
|
|
@@ -6668,7 +6684,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6668
6684
|
answer: string;
|
|
6669
6685
|
}>, "many">>;
|
|
6670
6686
|
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
6671
|
-
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
|
|
6687
|
+
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
|
|
6672
6688
|
biddingAmount: z.ZodNullable<z.ZodNumber>;
|
|
6673
6689
|
boosted: z.ZodNullable<z.ZodBoolean>;
|
|
6674
6690
|
boostingAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -7060,7 +7076,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
7060
7076
|
answer: string;
|
|
7061
7077
|
}>, "many">>;
|
|
7062
7078
|
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
7063
|
-
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
|
|
7079
|
+
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
|
|
7064
7080
|
biddingAmount: z.ZodNullable<z.ZodNumber>;
|
|
7065
7081
|
boosted: z.ZodNullable<z.ZodBoolean>;
|
|
7066
7082
|
boostingAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -7106,7 +7122,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
7106
7122
|
};
|
|
7107
7123
|
}>, z.ZodObject<{
|
|
7108
7124
|
type: z.ZodLiteral<"lead_status">;
|
|
7109
|
-
status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>;
|
|
7125
|
+
status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>;
|
|
7110
7126
|
lead: z.ZodObject<Pick<Omit<z.objectUtil.extendShape<{
|
|
7111
7127
|
id: z.ZodNullable<z.ZodString>;
|
|
7112
7128
|
uid: z.ZodNullable<z.ZodString>;
|
|
@@ -7425,7 +7441,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
7425
7441
|
answer: string;
|
|
7426
7442
|
}>, "many">>;
|
|
7427
7443
|
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
7428
|
-
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
|
|
7444
|
+
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
|
|
7429
7445
|
biddingAmount: z.ZodNullable<z.ZodNumber>;
|
|
7430
7446
|
boosted: z.ZodNullable<z.ZodBoolean>;
|
|
7431
7447
|
boostingAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -7450,7 +7466,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
7450
7466
|
creditBalance: z.ZodNumber;
|
|
7451
7467
|
}, "strip", z.ZodTypeAny, {
|
|
7452
7468
|
type: "lead_status";
|
|
7453
|
-
status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria";
|
|
7469
|
+
status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign";
|
|
7454
7470
|
creditBalance: number;
|
|
7455
7471
|
lead: {
|
|
7456
7472
|
id: string | null;
|
|
@@ -7460,7 +7476,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
7460
7476
|
};
|
|
7461
7477
|
}, {
|
|
7462
7478
|
type: "lead_status";
|
|
7463
|
-
status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria";
|
|
7479
|
+
status: "contacted" | "viewed" | "replied" | "won" | "leads" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign";
|
|
7464
7480
|
creditBalance: number;
|
|
7465
7481
|
lead: {
|
|
7466
7482
|
id: string | null;
|
|
@@ -7788,7 +7804,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
7788
7804
|
answer: string;
|
|
7789
7805
|
}>, "many">>;
|
|
7790
7806
|
agentStatus: z.ZodNullable<z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>>;
|
|
7791
|
-
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>>;
|
|
7807
|
+
leadStatus: z.ZodNullable<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>>;
|
|
7792
7808
|
biddingAmount: z.ZodNullable<z.ZodNumber>;
|
|
7793
7809
|
boosted: z.ZodNullable<z.ZodBoolean>;
|
|
7794
7810
|
boostingAmount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -7833,15 +7849,15 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
7833
7849
|
export declare const updateCampaignAnalyticsSchema: z.ZodObject<{
|
|
7834
7850
|
organizationId: z.ZodString;
|
|
7835
7851
|
campaignId: z.ZodString;
|
|
7836
|
-
fields: z.ZodArray<z.ZodEnum<["contacted", "viewed", "replied", "doesNotMeetCriteria", "insufficientConnects", "won", "leadsAnalyzed", "leadsFailed", "proposalsFailed", "suitableJobs", "unsuitableJobs", "wonAmount"]>, "many">;
|
|
7852
|
+
fields: z.ZodArray<z.ZodEnum<["contacted", "viewed", "replied", "doesNotMeetCriteria", "syncedInAnotherCampaign", "insufficientConnects", "won", "leadsAnalyzed", "leadsFailed", "proposalsFailed", "suitableJobs", "unsuitableJobs", "wonAmount"]>, "many">;
|
|
7837
7853
|
}, "strip", z.ZodTypeAny, {
|
|
7838
7854
|
campaignId: string;
|
|
7839
7855
|
organizationId: string;
|
|
7840
|
-
fields: ("contacted" | "viewed" | "replied" | "won" | "leadsAnalyzed" | "leadsFailed" | "suitableJobs" | "unsuitableJobs" | "wonAmount" | "insufficientConnects" | "doesNotMeetCriteria" | "proposalsFailed")[];
|
|
7856
|
+
fields: ("contacted" | "viewed" | "replied" | "won" | "leadsAnalyzed" | "leadsFailed" | "suitableJobs" | "unsuitableJobs" | "wonAmount" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "proposalsFailed")[];
|
|
7841
7857
|
}, {
|
|
7842
7858
|
campaignId: string;
|
|
7843
7859
|
organizationId: string;
|
|
7844
|
-
fields: ("contacted" | "viewed" | "replied" | "won" | "leadsAnalyzed" | "leadsFailed" | "suitableJobs" | "unsuitableJobs" | "wonAmount" | "insufficientConnects" | "doesNotMeetCriteria" | "proposalsFailed")[];
|
|
7860
|
+
fields: ("contacted" | "viewed" | "replied" | "won" | "leadsAnalyzed" | "leadsFailed" | "suitableJobs" | "unsuitableJobs" | "wonAmount" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "proposalsFailed")[];
|
|
7845
7861
|
}>;
|
|
7846
7862
|
export type CampaignAnalytics = z.infer<typeof campaignAnalyticsSchema>;
|
|
7847
7863
|
export type CampaignAnalyticsStats = z.infer<typeof campaignAnalyticsStatsSchema>;
|
|
@@ -320,6 +320,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
320
320
|
instructions: string;
|
|
321
321
|
}>>;
|
|
322
322
|
organizationProfileId: z.ZodNullable<z.ZodString>;
|
|
323
|
+
lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
|
|
323
324
|
}, "strip", z.ZodTypeAny, {
|
|
324
325
|
id: string;
|
|
325
326
|
name: string;
|
|
@@ -413,6 +414,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
413
414
|
instructions: string;
|
|
414
415
|
} | null;
|
|
415
416
|
organizationProfileId: string | null;
|
|
417
|
+
lastSyncedProposalsAt: number | null;
|
|
416
418
|
status?: "active" | "draft" | "paused" | "error" | undefined;
|
|
417
419
|
}, {
|
|
418
420
|
id: string;
|
|
@@ -500,6 +502,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
500
502
|
instructions: string;
|
|
501
503
|
} | null;
|
|
502
504
|
organizationProfileId: string | null;
|
|
505
|
+
lastSyncedProposalsAt: number | null;
|
|
503
506
|
status?: "active" | "draft" | "paused" | "error" | undefined;
|
|
504
507
|
boostingEnabled?: boolean | null | undefined;
|
|
505
508
|
maximumBoost?: number | null | undefined;
|
|
@@ -828,6 +831,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
828
831
|
instructions: string;
|
|
829
832
|
}>>;
|
|
830
833
|
organizationProfileId: z.ZodNullable<z.ZodString>;
|
|
834
|
+
lastSyncedProposalsAt: z.ZodNullable<z.ZodNumber>;
|
|
831
835
|
}, "id" | "createdAt" | "updatedAt" | "bidConfig">, "strip", z.ZodTypeAny, {
|
|
832
836
|
name: string;
|
|
833
837
|
filters: {
|
|
@@ -912,6 +916,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
912
916
|
instructions: string;
|
|
913
917
|
} | null;
|
|
914
918
|
organizationProfileId: string | null;
|
|
919
|
+
lastSyncedProposalsAt: number | null;
|
|
915
920
|
status?: "active" | "draft" | "paused" | "error" | undefined;
|
|
916
921
|
}, {
|
|
917
922
|
name: string;
|
|
@@ -990,6 +995,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
990
995
|
instructions: string;
|
|
991
996
|
} | null;
|
|
992
997
|
organizationProfileId: string | null;
|
|
998
|
+
lastSyncedProposalsAt: number | null;
|
|
993
999
|
status?: "active" | "draft" | "paused" | "error" | undefined;
|
|
994
1000
|
boostingEnabled?: boolean | null | undefined;
|
|
995
1001
|
maximumBoost?: number | null | undefined;
|
|
@@ -1297,6 +1303,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1297
1303
|
instructions: string;
|
|
1298
1304
|
}>>>;
|
|
1299
1305
|
organizationProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1306
|
+
lastSyncedProposalsAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1300
1307
|
}, "strip", z.ZodTypeAny, {
|
|
1301
1308
|
status?: "active" | "draft" | "paused" | "error" | undefined;
|
|
1302
1309
|
id?: string | undefined;
|
|
@@ -1389,6 +1396,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1389
1396
|
instructions: string;
|
|
1390
1397
|
} | null | undefined;
|
|
1391
1398
|
organizationProfileId?: string | null | undefined;
|
|
1399
|
+
lastSyncedProposalsAt?: number | null | undefined;
|
|
1392
1400
|
}, {
|
|
1393
1401
|
status?: "active" | "draft" | "paused" | "error" | undefined;
|
|
1394
1402
|
id?: string | undefined;
|
|
@@ -1481,6 +1489,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1481
1489
|
instructions: string;
|
|
1482
1490
|
} | null | undefined;
|
|
1483
1491
|
organizationProfileId?: string | null | undefined;
|
|
1492
|
+
lastSyncedProposalsAt?: number | null | undefined;
|
|
1484
1493
|
}>;
|
|
1485
1494
|
export type BiddingHourlyRateStrategy = z.infer<typeof biddingHourlyRateStrategyEnum>;
|
|
1486
1495
|
export interface Campaign extends z.infer<typeof campaignSchema> {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const agentStatusSchema: z.ZodEnum<["suitabilityPending", "suitabilityProcessing", "suitabilityComplete", "suitabilityFailed", "proposalProcessing", "proposalComplete", "proposalFailed", "biddingProcessing", "biddingComplete", "biddingFailed", "jobArchived"]>;
|
|
3
|
-
export declare const leadStatusEnum: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>;
|
|
3
|
+
export declare const leadStatusEnum: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>;
|
|
4
4
|
export declare const updateLeadStatusSchema: z.ZodObject<{
|
|
5
5
|
leadId: z.ZodString;
|
|
6
6
|
organizationId: z.ZodString;
|
|
7
7
|
campaignId: z.ZodString;
|
|
8
|
-
status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>;
|
|
8
|
+
status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>;
|
|
9
9
|
proposalId: z.ZodOptional<z.ZodString>;
|
|
10
10
|
userId: z.ZodOptional<z.ZodString>;
|
|
11
11
|
wonAmount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -13,7 +13,7 @@ export declare const updateLeadStatusSchema: z.ZodObject<{
|
|
|
13
13
|
leadId: string;
|
|
14
14
|
organizationId: string;
|
|
15
15
|
campaignId: string;
|
|
16
|
-
status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won";
|
|
16
|
+
status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "viewed" | "replied" | "won";
|
|
17
17
|
proposalId?: string | undefined;
|
|
18
18
|
userId?: string | undefined;
|
|
19
19
|
wonAmount?: number | undefined;
|
|
@@ -21,19 +21,19 @@ export declare const updateLeadStatusSchema: z.ZodObject<{
|
|
|
21
21
|
leadId: string;
|
|
22
22
|
organizationId: string;
|
|
23
23
|
campaignId: string;
|
|
24
|
-
status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won";
|
|
24
|
+
status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "viewed" | "replied" | "won";
|
|
25
25
|
proposalId?: string | undefined;
|
|
26
26
|
userId?: string | undefined;
|
|
27
27
|
wonAmount?: number | undefined;
|
|
28
28
|
}>;
|
|
29
29
|
export declare const updateOrganizationLeadsStatusPayloadSchema: z.ZodArray<z.ZodObject<{
|
|
30
30
|
applicationUid: z.ZodString;
|
|
31
|
-
status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>;
|
|
31
|
+
status: z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "syncedInAnotherCampaign", "viewed", "replied", "won"]>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won";
|
|
33
|
+
status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "viewed" | "replied" | "won";
|
|
34
34
|
applicationUid: string;
|
|
35
35
|
}, {
|
|
36
|
-
status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won";
|
|
36
|
+
status: "leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "syncedInAnotherCampaign" | "viewed" | "replied" | "won";
|
|
37
37
|
applicationUid: string;
|
|
38
38
|
}>, "many">;
|
|
39
39
|
export type LeadStatus = z.infer<typeof leadStatusEnum>;
|