lancer-shared 1.2.268 → 1.2.270
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 +24 -1
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +22 -2
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +2 -0
- package/dist/schemas/agent/index.d.ts +5 -0
- package/dist/schemas/bidder/bid.d.ts +49 -0
- package/dist/schemas/campaign/campaign-analytics.d.ts +33 -0
- package/dist/schemas/lead/index.d.ts +18 -0
- package/dist/schemas/organization/index.d.ts +14 -3
- package/dist/schemas/organization/subscription.d.ts +5 -0
- package/dist/schemas/plan/index.d.ts +275 -0
- package/dist/schemas/scraper/scrape-payload.d.ts +12 -0
- package/package.json +1 -1
|
@@ -226,6 +226,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
226
226
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
227
227
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
228
228
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
229
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
229
230
|
}, "strip", z.ZodTypeAny, {
|
|
230
231
|
source: "manual" | "stripe";
|
|
231
232
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -248,6 +249,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
248
249
|
currentPeriodEnd: number;
|
|
249
250
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
250
251
|
trialEndsAt: number | null;
|
|
252
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
251
253
|
}, {
|
|
252
254
|
source: "manual" | "stripe";
|
|
253
255
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -270,6 +272,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
270
272
|
currentPeriodEnd: number;
|
|
271
273
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
272
274
|
trialEndsAt: number | null;
|
|
275
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
273
276
|
}>>;
|
|
274
277
|
active: z.ZodBoolean;
|
|
275
278
|
limits: z.ZodObject<{
|
|
@@ -867,6 +870,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
867
870
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
868
871
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
869
872
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
873
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
870
874
|
}, "strip", z.ZodTypeAny, {
|
|
871
875
|
source: "manual" | "stripe";
|
|
872
876
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -889,6 +893,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
889
893
|
currentPeriodEnd: number;
|
|
890
894
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
891
895
|
trialEndsAt: number | null;
|
|
896
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
892
897
|
}, {
|
|
893
898
|
source: "manual" | "stripe";
|
|
894
899
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -911,6 +916,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
911
916
|
currentPeriodEnd: number;
|
|
912
917
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
913
918
|
trialEndsAt: number | null;
|
|
919
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
914
920
|
}>>;
|
|
915
921
|
active: z.ZodBoolean;
|
|
916
922
|
limits: z.ZodObject<{
|
|
@@ -1812,6 +1818,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1812
1818
|
specialisedProfile: string | null;
|
|
1813
1819
|
};
|
|
1814
1820
|
}>>;
|
|
1821
|
+
statusSynced: z.ZodNullable<z.ZodBoolean>;
|
|
1815
1822
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
1816
1823
|
id: string | null;
|
|
1817
1824
|
title: string | null;
|
|
@@ -1937,6 +1944,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1937
1944
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
1938
1945
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
1939
1946
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
1947
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
1940
1948
|
}, "strip", z.ZodTypeAny, {
|
|
1941
1949
|
source: "manual" | "stripe";
|
|
1942
1950
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -1959,6 +1967,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1959
1967
|
currentPeriodEnd: number;
|
|
1960
1968
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
1961
1969
|
trialEndsAt: number | null;
|
|
1970
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
1962
1971
|
}, {
|
|
1963
1972
|
source: "manual" | "stripe";
|
|
1964
1973
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -1981,6 +1990,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
1981
1990
|
currentPeriodEnd: number;
|
|
1982
1991
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
1983
1992
|
trialEndsAt: number | null;
|
|
1993
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
1984
1994
|
}>>;
|
|
1985
1995
|
active: z.ZodBoolean;
|
|
1986
1996
|
limits: z.ZodObject<{
|
|
@@ -2883,6 +2893,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2883
2893
|
specialisedProfile: string | null;
|
|
2884
2894
|
};
|
|
2885
2895
|
}>>;
|
|
2896
|
+
statusSynced: z.ZodNullable<z.ZodBoolean>;
|
|
2886
2897
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
2887
2898
|
id: string | null;
|
|
2888
2899
|
title: string | null;
|
|
@@ -3007,6 +3018,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3007
3018
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
3008
3019
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
3009
3020
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
3021
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
3010
3022
|
}, "strip", z.ZodTypeAny, {
|
|
3011
3023
|
source: "manual" | "stripe";
|
|
3012
3024
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -3029,6 +3041,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3029
3041
|
currentPeriodEnd: number;
|
|
3030
3042
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
3031
3043
|
trialEndsAt: number | null;
|
|
3044
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
3032
3045
|
}, {
|
|
3033
3046
|
source: "manual" | "stripe";
|
|
3034
3047
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -3051,6 +3064,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3051
3064
|
currentPeriodEnd: number;
|
|
3052
3065
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
3053
3066
|
trialEndsAt: number | null;
|
|
3067
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
3054
3068
|
}>>;
|
|
3055
3069
|
active: z.ZodBoolean;
|
|
3056
3070
|
limits: z.ZodObject<{
|
|
@@ -3952,6 +3966,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3952
3966
|
specialisedProfile: string | null;
|
|
3953
3967
|
};
|
|
3954
3968
|
}>>;
|
|
3969
|
+
statusSynced: z.ZodNullable<z.ZodBoolean>;
|
|
3955
3970
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
3956
3971
|
id: string | null;
|
|
3957
3972
|
title: string | null;
|
|
@@ -4074,6 +4089,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4074
4089
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
4075
4090
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
4076
4091
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
4092
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
4077
4093
|
}, "strip", z.ZodTypeAny, {
|
|
4078
4094
|
source: "manual" | "stripe";
|
|
4079
4095
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -4096,6 +4112,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4096
4112
|
currentPeriodEnd: number;
|
|
4097
4113
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
4098
4114
|
trialEndsAt: number | null;
|
|
4115
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
4099
4116
|
}, {
|
|
4100
4117
|
source: "manual" | "stripe";
|
|
4101
4118
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -4118,6 +4135,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4118
4135
|
currentPeriodEnd: number;
|
|
4119
4136
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
4120
4137
|
trialEndsAt: number | null;
|
|
4138
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
4121
4139
|
}>>;
|
|
4122
4140
|
active: z.ZodBoolean;
|
|
4123
4141
|
limits: z.ZodObject<{
|
|
@@ -4714,6 +4732,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4714
4732
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
4715
4733
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
4716
4734
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
4735
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
4717
4736
|
}, "strip", z.ZodTypeAny, {
|
|
4718
4737
|
source: "manual" | "stripe";
|
|
4719
4738
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -4736,6 +4755,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4736
4755
|
currentPeriodEnd: number;
|
|
4737
4756
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
4738
4757
|
trialEndsAt: number | null;
|
|
4758
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
4739
4759
|
}, {
|
|
4740
4760
|
source: "manual" | "stripe";
|
|
4741
4761
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -4758,6 +4778,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4758
4778
|
currentPeriodEnd: number;
|
|
4759
4779
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
4760
4780
|
trialEndsAt: number | null;
|
|
4781
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
4761
4782
|
}>>;
|
|
4762
4783
|
active: z.ZodBoolean;
|
|
4763
4784
|
limits: z.ZodObject<{
|
|
@@ -5659,6 +5680,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5659
5680
|
specialisedProfile: string | null;
|
|
5660
5681
|
};
|
|
5661
5682
|
}>>;
|
|
5683
|
+
statusSynced: z.ZodNullable<z.ZodBoolean>;
|
|
5662
5684
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
5663
5685
|
id: string | null;
|
|
5664
5686
|
title: string | null;
|
|
@@ -5783,6 +5805,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5783
5805
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
5784
5806
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
5785
5807
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
5808
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
5786
5809
|
}, "strip", z.ZodTypeAny, {
|
|
5787
5810
|
source: "manual" | "stripe";
|
|
5788
5811
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -5805,6 +5828,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5805
5828
|
currentPeriodEnd: number;
|
|
5806
5829
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
5807
5830
|
trialEndsAt: number | null;
|
|
5831
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
5808
5832
|
}, {
|
|
5809
5833
|
source: "manual" | "stripe";
|
|
5810
5834
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -5827,6 +5851,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5827
5851
|
currentPeriodEnd: number;
|
|
5828
5852
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
5829
5853
|
trialEndsAt: number | null;
|
|
5854
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
5830
5855
|
}>>;
|
|
5831
5856
|
active: z.ZodBoolean;
|
|
5832
5857
|
limits: z.ZodObject<{
|
|
@@ -6729,6 +6754,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6729
6754
|
specialisedProfile: string | null;
|
|
6730
6755
|
};
|
|
6731
6756
|
}>>;
|
|
6757
|
+
statusSynced: z.ZodNullable<z.ZodBoolean>;
|
|
6732
6758
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
6733
6759
|
id: string | null;
|
|
6734
6760
|
title: string | null;
|
|
@@ -6852,6 +6878,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6852
6878
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
6853
6879
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
6854
6880
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
6881
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
6855
6882
|
}, "strip", z.ZodTypeAny, {
|
|
6856
6883
|
source: "manual" | "stripe";
|
|
6857
6884
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -6874,6 +6901,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6874
6901
|
currentPeriodEnd: number;
|
|
6875
6902
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
6876
6903
|
trialEndsAt: number | null;
|
|
6904
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
6877
6905
|
}, {
|
|
6878
6906
|
source: "manual" | "stripe";
|
|
6879
6907
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -6896,6 +6924,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
6896
6924
|
currentPeriodEnd: number;
|
|
6897
6925
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
6898
6926
|
trialEndsAt: number | null;
|
|
6927
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
6899
6928
|
}>>;
|
|
6900
6929
|
active: z.ZodBoolean;
|
|
6901
6930
|
limits: z.ZodObject<{
|
|
@@ -7797,6 +7826,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
7797
7826
|
specialisedProfile: string | null;
|
|
7798
7827
|
};
|
|
7799
7828
|
}>>;
|
|
7829
|
+
statusSynced: z.ZodNullable<z.ZodBoolean>;
|
|
7800
7830
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
7801
7831
|
id: string | null;
|
|
7802
7832
|
title: string | null;
|
|
@@ -8266,6 +8296,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
8266
8296
|
specialisedProfile: string | null;
|
|
8267
8297
|
};
|
|
8268
8298
|
}>>;
|
|
8299
|
+
statusSynced: z.ZodNullable<z.ZodBoolean>;
|
|
8269
8300
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
8270
8301
|
id: string | null;
|
|
8271
8302
|
title: string | null;
|
|
@@ -8708,6 +8739,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
8708
8739
|
specialisedProfile: string | null;
|
|
8709
8740
|
};
|
|
8710
8741
|
}>>;
|
|
8742
|
+
statusSynced: z.ZodNullable<z.ZodBoolean>;
|
|
8711
8743
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
8712
8744
|
id: string | null;
|
|
8713
8745
|
title: string | null;
|
|
@@ -9148,6 +9180,7 @@ export declare const campaignActivityCreateSchema: z.ZodDiscriminatedUnion<"type
|
|
|
9148
9180
|
specialisedProfile: string | null;
|
|
9149
9181
|
};
|
|
9150
9182
|
}>>;
|
|
9183
|
+
statusSynced: z.ZodNullable<z.ZodBoolean>;
|
|
9151
9184
|
}>, "processed">, "id" | "title" | "datetime" | "jobUrl">, "strip", z.ZodTypeAny, {
|
|
9152
9185
|
id: string | null;
|
|
9153
9186
|
title: string | null;
|
|
@@ -482,6 +482,7 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
482
482
|
specialisedProfile: string | null;
|
|
483
483
|
};
|
|
484
484
|
}>>;
|
|
485
|
+
statusSynced: z.ZodNullable<z.ZodBoolean>;
|
|
485
486
|
}>, "processed">, "strip", z.ZodTypeAny, {
|
|
486
487
|
id: string | null;
|
|
487
488
|
title: string | null;
|
|
@@ -624,6 +625,7 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
624
625
|
specialisedProfile: string | null;
|
|
625
626
|
};
|
|
626
627
|
} | null;
|
|
628
|
+
statusSynced: boolean | null;
|
|
627
629
|
activity?: Partial<Record<"4h" | "24h", {
|
|
628
630
|
updatedAt: number | null;
|
|
629
631
|
unansweredInvites: number | null;
|
|
@@ -788,6 +790,7 @@ export declare const leadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
788
790
|
specialisedProfile: string | null;
|
|
789
791
|
};
|
|
790
792
|
} | null;
|
|
793
|
+
statusSynced: boolean | null;
|
|
791
794
|
activity?: Partial<Record<"4h" | "24h", {
|
|
792
795
|
updatedAt: number | null;
|
|
793
796
|
unansweredInvites: number | null;
|
|
@@ -1218,6 +1221,7 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1218
1221
|
specialisedProfile: string | null;
|
|
1219
1222
|
};
|
|
1220
1223
|
}>>;
|
|
1224
|
+
statusSynced: z.ZodNullable<z.ZodBoolean>;
|
|
1221
1225
|
}>, "processed">, "strip", z.ZodTypeAny, {
|
|
1222
1226
|
id: string | null;
|
|
1223
1227
|
title: string | null;
|
|
@@ -1360,6 +1364,7 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1360
1364
|
specialisedProfile: string | null;
|
|
1361
1365
|
};
|
|
1362
1366
|
} | null;
|
|
1367
|
+
statusSynced: boolean | null;
|
|
1363
1368
|
activity?: Partial<Record<"4h" | "24h", {
|
|
1364
1369
|
updatedAt: number | null;
|
|
1365
1370
|
unansweredInvites: number | null;
|
|
@@ -1524,6 +1529,7 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1524
1529
|
specialisedProfile: string | null;
|
|
1525
1530
|
};
|
|
1526
1531
|
} | null;
|
|
1532
|
+
statusSynced: boolean | null;
|
|
1527
1533
|
activity?: Partial<Record<"4h" | "24h", {
|
|
1528
1534
|
updatedAt: number | null;
|
|
1529
1535
|
unansweredInvites: number | null;
|
|
@@ -1693,6 +1699,7 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1693
1699
|
specialisedProfile: string | null;
|
|
1694
1700
|
};
|
|
1695
1701
|
} | null;
|
|
1702
|
+
statusSynced: boolean | null;
|
|
1696
1703
|
activity?: Partial<Record<"4h" | "24h", {
|
|
1697
1704
|
updatedAt: number | null;
|
|
1698
1705
|
unansweredInvites: number | null;
|
|
@@ -1862,6 +1869,7 @@ export declare const leadResponseSchema: z.ZodObject<{
|
|
|
1862
1869
|
specialisedProfile: string | null;
|
|
1863
1870
|
};
|
|
1864
1871
|
} | null;
|
|
1872
|
+
statusSynced: boolean | null;
|
|
1865
1873
|
activity?: Partial<Record<"4h" | "24h", {
|
|
1866
1874
|
updatedAt: number | null;
|
|
1867
1875
|
unansweredInvites: number | null;
|
|
@@ -2840,6 +2848,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
|
|
|
2840
2848
|
specialisedProfile: string | null;
|
|
2841
2849
|
};
|
|
2842
2850
|
}>>;
|
|
2851
|
+
statusSynced: z.ZodNullable<z.ZodBoolean>;
|
|
2843
2852
|
}>, "processed">, "strip", z.ZodTypeAny, {
|
|
2844
2853
|
id: string | null;
|
|
2845
2854
|
title: string | null;
|
|
@@ -2982,6 +2991,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
|
|
|
2982
2991
|
specialisedProfile: string | null;
|
|
2983
2992
|
};
|
|
2984
2993
|
} | null;
|
|
2994
|
+
statusSynced: boolean | null;
|
|
2985
2995
|
activity?: Partial<Record<"4h" | "24h", {
|
|
2986
2996
|
updatedAt: number | null;
|
|
2987
2997
|
unansweredInvites: number | null;
|
|
@@ -3146,6 +3156,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
|
|
|
3146
3156
|
specialisedProfile: string | null;
|
|
3147
3157
|
};
|
|
3148
3158
|
} | null;
|
|
3159
|
+
statusSynced: boolean | null;
|
|
3149
3160
|
activity?: Partial<Record<"4h" | "24h", {
|
|
3150
3161
|
updatedAt: number | null;
|
|
3151
3162
|
unansweredInvites: number | null;
|
|
@@ -3428,6 +3439,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
|
|
|
3428
3439
|
specialisedProfile: string | null;
|
|
3429
3440
|
};
|
|
3430
3441
|
} | null;
|
|
3442
|
+
statusSynced: boolean | null;
|
|
3431
3443
|
activity?: Partial<Record<"4h" | "24h", {
|
|
3432
3444
|
updatedAt: number | null;
|
|
3433
3445
|
unansweredInvites: number | null;
|
|
@@ -3711,6 +3723,7 @@ export declare const findLeadsResponseSchema: z.ZodObject<{
|
|
|
3711
3723
|
specialisedProfile: string | null;
|
|
3712
3724
|
};
|
|
3713
3725
|
} | null;
|
|
3726
|
+
statusSynced: boolean | null;
|
|
3714
3727
|
activity?: Partial<Record<"4h" | "24h", {
|
|
3715
3728
|
updatedAt: number | null;
|
|
3716
3729
|
unansweredInvites: number | null;
|
|
@@ -4166,6 +4179,7 @@ export declare const getCampaignLeadsResponseSchema: z.ZodObject<{
|
|
|
4166
4179
|
specialisedProfile: string | null;
|
|
4167
4180
|
};
|
|
4168
4181
|
}>>;
|
|
4182
|
+
statusSynced: z.ZodNullable<z.ZodBoolean>;
|
|
4169
4183
|
}>, "processed">, "strip", z.ZodTypeAny, {
|
|
4170
4184
|
id: string | null;
|
|
4171
4185
|
title: string | null;
|
|
@@ -4308,6 +4322,7 @@ export declare const getCampaignLeadsResponseSchema: z.ZodObject<{
|
|
|
4308
4322
|
specialisedProfile: string | null;
|
|
4309
4323
|
};
|
|
4310
4324
|
} | null;
|
|
4325
|
+
statusSynced: boolean | null;
|
|
4311
4326
|
activity?: Partial<Record<"4h" | "24h", {
|
|
4312
4327
|
updatedAt: number | null;
|
|
4313
4328
|
unansweredInvites: number | null;
|
|
@@ -4472,6 +4487,7 @@ export declare const getCampaignLeadsResponseSchema: z.ZodObject<{
|
|
|
4472
4487
|
specialisedProfile: string | null;
|
|
4473
4488
|
};
|
|
4474
4489
|
} | null;
|
|
4490
|
+
statusSynced: boolean | null;
|
|
4475
4491
|
activity?: Partial<Record<"4h" | "24h", {
|
|
4476
4492
|
updatedAt: number | null;
|
|
4477
4493
|
unansweredInvites: number | null;
|
|
@@ -4651,6 +4667,7 @@ export declare const getCampaignLeadsResponseSchema: z.ZodObject<{
|
|
|
4651
4667
|
specialisedProfile: string | null;
|
|
4652
4668
|
};
|
|
4653
4669
|
} | null;
|
|
4670
|
+
statusSynced: boolean | null;
|
|
4654
4671
|
activity?: Partial<Record<"4h" | "24h", {
|
|
4655
4672
|
updatedAt: number | null;
|
|
4656
4673
|
unansweredInvites: number | null;
|
|
@@ -4822,6 +4839,7 @@ export declare const getCampaignLeadsResponseSchema: z.ZodObject<{
|
|
|
4822
4839
|
specialisedProfile: string | null;
|
|
4823
4840
|
};
|
|
4824
4841
|
} | null;
|
|
4842
|
+
statusSynced: boolean | null;
|
|
4825
4843
|
activity?: Partial<Record<"4h" | "24h", {
|
|
4826
4844
|
updatedAt: number | null;
|
|
4827
4845
|
unansweredInvites: number | null;
|
|
@@ -151,6 +151,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
151
151
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
152
152
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
153
153
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
154
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
154
155
|
}, "strip", z.ZodTypeAny, {
|
|
155
156
|
source: "manual" | "stripe";
|
|
156
157
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -173,6 +174,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
173
174
|
currentPeriodEnd: number;
|
|
174
175
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
175
176
|
trialEndsAt: number | null;
|
|
177
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
176
178
|
}, {
|
|
177
179
|
source: "manual" | "stripe";
|
|
178
180
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -195,6 +197,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
195
197
|
currentPeriodEnd: number;
|
|
196
198
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
197
199
|
trialEndsAt: number | null;
|
|
200
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
198
201
|
}>>;
|
|
199
202
|
active: z.ZodBoolean;
|
|
200
203
|
limits: z.ZodObject<{
|
|
@@ -328,6 +331,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
328
331
|
currentPeriodEnd: number;
|
|
329
332
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
330
333
|
trialEndsAt: number | null;
|
|
334
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
331
335
|
} | null;
|
|
332
336
|
limits: {
|
|
333
337
|
monthlyCredits: number;
|
|
@@ -386,6 +390,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
386
390
|
currentPeriodEnd: number;
|
|
387
391
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
388
392
|
trialEndsAt: number | null;
|
|
393
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
389
394
|
} | null;
|
|
390
395
|
limits: {
|
|
391
396
|
monthlyCredits: number;
|
|
@@ -722,6 +727,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
722
727
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
723
728
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
724
729
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
730
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
725
731
|
}, "strip", z.ZodTypeAny, {
|
|
726
732
|
source: "manual" | "stripe";
|
|
727
733
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -744,6 +750,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
744
750
|
currentPeriodEnd: number;
|
|
745
751
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
746
752
|
trialEndsAt: number | null;
|
|
753
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
747
754
|
}, {
|
|
748
755
|
source: "manual" | "stripe";
|
|
749
756
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -766,6 +773,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
766
773
|
currentPeriodEnd: number;
|
|
767
774
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
768
775
|
trialEndsAt: number | null;
|
|
776
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
769
777
|
}>>;
|
|
770
778
|
active: z.ZodBoolean;
|
|
771
779
|
limits: z.ZodObject<{
|
|
@@ -1008,15 +1016,18 @@ export declare const organizationSettingsSchema: z.ZodObject<{
|
|
|
1008
1016
|
export declare const subscribePayloadSchema: z.ZodObject<{
|
|
1009
1017
|
planId: z.ZodString;
|
|
1010
1018
|
toltReferral: z.ZodOptional<z.ZodString>;
|
|
1011
|
-
|
|
1019
|
+
promoCode: z.ZodOptional<z.ZodString>;
|
|
1020
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
1012
1021
|
}, "strip", z.ZodTypeAny, {
|
|
1013
1022
|
planId: string;
|
|
1023
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
1014
1024
|
toltReferral?: string | undefined;
|
|
1015
|
-
|
|
1025
|
+
promoCode?: string | undefined;
|
|
1016
1026
|
}, {
|
|
1017
1027
|
planId: string;
|
|
1028
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
1018
1029
|
toltReferral?: string | undefined;
|
|
1019
|
-
|
|
1030
|
+
promoCode?: string | undefined;
|
|
1020
1031
|
}>;
|
|
1021
1032
|
export interface OneTimePayment extends z.infer<typeof oneTimePaymentSchema> {
|
|
1022
1033
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { infer, z } from 'zod';
|
|
2
|
+
export declare const billingIntervalEnum: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
2
3
|
export declare const subscriptionStatusEnum: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
|
|
3
4
|
export declare const subscriptionSourceEnum: z.ZodEnum<["stripe", "manual"]>;
|
|
4
5
|
export declare const subscriptionStripeMetadataItemSchema: z.ZodObject<{
|
|
@@ -144,6 +145,7 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
144
145
|
source: z.ZodEnum<["stripe", "manual"]>;
|
|
145
146
|
usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
|
|
146
147
|
trialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
148
|
+
billingInterval: z.ZodEnum<["monthly", "quarterly", "yearly"]>;
|
|
147
149
|
}, "strip", z.ZodTypeAny, {
|
|
148
150
|
source: "manual" | "stripe";
|
|
149
151
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -166,6 +168,7 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
166
168
|
currentPeriodEnd: number;
|
|
167
169
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
168
170
|
trialEndsAt: number | null;
|
|
171
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
169
172
|
}, {
|
|
170
173
|
source: "manual" | "stripe";
|
|
171
174
|
status: "active" | "paused" | "trialing" | "cancelled" | "payment_processing" | "payment_pending" | "payment_failed";
|
|
@@ -188,6 +191,7 @@ export declare const subscriptionSchema: z.ZodObject<{
|
|
|
188
191
|
currentPeriodEnd: number;
|
|
189
192
|
usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
|
|
190
193
|
trialEndsAt: number | null;
|
|
194
|
+
billingInterval: "monthly" | "quarterly" | "yearly";
|
|
191
195
|
}>;
|
|
192
196
|
export type SubscriptionStatus = z.infer<typeof subscriptionStatusEnum>;
|
|
193
197
|
export interface SubscriptionStripeMetadataItem extends infer<typeof subscriptionStripeMetadataItemSchema> {
|
|
@@ -196,3 +200,4 @@ export interface SubscriptionStripeMetadata extends infer<typeof subscriptionStr
|
|
|
196
200
|
}
|
|
197
201
|
export interface Subscription extends infer<typeof subscriptionSchema> {
|
|
198
202
|
}
|
|
203
|
+
export type BillingInterval = z.infer<typeof billingIntervalEnum>;
|