lancer-shared 1.2.273 → 1.2.275
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 +20 -7
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +20 -7
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/routes.d.ts +5 -0
- package/dist/schemas/bidder/bid.d.ts +19 -0
- package/dist/schemas/campaign/campaign-analytics.d.ts +16 -0
- package/dist/schemas/organization/index.d.ts +8 -2
- package/dist/schemas/organization/onboarding.d.ts +21 -18
- package/dist/schemas/scraper/scrape-payload.d.ts +10 -0
- package/package.json +1 -1
|
@@ -113,6 +113,10 @@ export declare const ROUTES: {
|
|
|
113
113
|
readonly BASE: "bidder-accounts";
|
|
114
114
|
readonly BY_ID: (id: string) => string;
|
|
115
115
|
};
|
|
116
|
+
readonly ONBOARDING: {
|
|
117
|
+
readonly BASE: "onboarding";
|
|
118
|
+
readonly SECTIONS: "onboarding/sections/v1";
|
|
119
|
+
};
|
|
116
120
|
readonly ORGANIZATIONS: {
|
|
117
121
|
readonly BASE: "organizations";
|
|
118
122
|
readonly BY_ID: (id: string) => string;
|
|
@@ -144,6 +148,7 @@ export declare const ROUTES: {
|
|
|
144
148
|
readonly SUBSCRIBE: (id: string) => string;
|
|
145
149
|
readonly SUBSCRIBE_US_BIDDER_ACCOUNT: (id: string) => string;
|
|
146
150
|
readonly PAUSE_CAMPAIGNS: (id: string) => string;
|
|
151
|
+
readonly MARK_ONBOARDING_SECTION_COMPLETED: (id: string, sectionId: string) => string;
|
|
147
152
|
readonly BIDDER_ACCOUNTS: {
|
|
148
153
|
readonly BASE: (id: string) => string;
|
|
149
154
|
readonly BY_ID: (id: string, bidderId: string) => string;
|
|
@@ -764,6 +764,7 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
764
764
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
765
765
|
alreadyHiredAction: z.ZodEnum<["skip", "bid"]>;
|
|
766
766
|
insufficientConnectsAction: z.ZodEnum<["buy_more_connects", "pause_campaigns"]>;
|
|
767
|
+
numberOfConnectsToBuyWhenInsufficient: z.ZodNullable<z.ZodNumber>;
|
|
767
768
|
isHourlyRate: z.ZodBoolean;
|
|
768
769
|
jobMinHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
769
770
|
jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
@@ -953,6 +954,7 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
953
954
|
} | null | undefined;
|
|
954
955
|
};
|
|
955
956
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns";
|
|
957
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
956
958
|
specialisedProfileOptions: string[];
|
|
957
959
|
minimumBoost: number | null;
|
|
958
960
|
isHourlyRate: boolean;
|
|
@@ -1143,6 +1145,7 @@ export declare const bidPayloadProposalDataSchema: z.ZodObject<{
|
|
|
1143
1145
|
} | null | undefined;
|
|
1144
1146
|
};
|
|
1145
1147
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns";
|
|
1148
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
1146
1149
|
specialisedProfileOptions: string[];
|
|
1147
1150
|
minimumBoost: number | null;
|
|
1148
1151
|
isHourlyRate: boolean;
|
|
@@ -1913,6 +1916,7 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
1913
1916
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
1914
1917
|
alreadyHiredAction: z.ZodEnum<["skip", "bid"]>;
|
|
1915
1918
|
insufficientConnectsAction: z.ZodEnum<["buy_more_connects", "pause_campaigns"]>;
|
|
1919
|
+
numberOfConnectsToBuyWhenInsufficient: z.ZodNullable<z.ZodNumber>;
|
|
1916
1920
|
isHourlyRate: z.ZodBoolean;
|
|
1917
1921
|
jobMinHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
1918
1922
|
jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
@@ -2102,6 +2106,7 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
2102
2106
|
} | null | undefined;
|
|
2103
2107
|
};
|
|
2104
2108
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns";
|
|
2109
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
2105
2110
|
specialisedProfileOptions: string[];
|
|
2106
2111
|
minimumBoost: number | null;
|
|
2107
2112
|
isHourlyRate: boolean;
|
|
@@ -2292,6 +2297,7 @@ export declare const freelancerBidProposalDataSchema: z.ZodObject<{
|
|
|
2292
2297
|
} | null | undefined;
|
|
2293
2298
|
};
|
|
2294
2299
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns";
|
|
2300
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
2295
2301
|
specialisedProfileOptions: string[];
|
|
2296
2302
|
minimumBoost: number | null;
|
|
2297
2303
|
isHourlyRate: boolean;
|
|
@@ -3062,6 +3068,7 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
3062
3068
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
3063
3069
|
alreadyHiredAction: z.ZodEnum<["skip", "bid"]>;
|
|
3064
3070
|
insufficientConnectsAction: z.ZodEnum<["buy_more_connects", "pause_campaigns"]>;
|
|
3071
|
+
numberOfConnectsToBuyWhenInsufficient: z.ZodNullable<z.ZodNumber>;
|
|
3065
3072
|
isHourlyRate: z.ZodBoolean;
|
|
3066
3073
|
jobMinHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
3067
3074
|
jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
@@ -3257,6 +3264,7 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
3257
3264
|
} | null | undefined;
|
|
3258
3265
|
};
|
|
3259
3266
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns";
|
|
3267
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
3260
3268
|
specialisedProfileOptions: string[];
|
|
3261
3269
|
minimumBoost: number | null;
|
|
3262
3270
|
isHourlyRate: boolean;
|
|
@@ -3450,6 +3458,7 @@ export declare const agencyBidProposalDataSchema: z.ZodObject<z.objectUtil.exten
|
|
|
3450
3458
|
} | null | undefined;
|
|
3451
3459
|
};
|
|
3452
3460
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns";
|
|
3461
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
3453
3462
|
specialisedProfileOptions: string[];
|
|
3454
3463
|
minimumBoost: number | null;
|
|
3455
3464
|
isHourlyRate: boolean;
|
|
@@ -6055,6 +6064,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
6055
6064
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
6056
6065
|
alreadyHiredAction: z.ZodEnum<["skip", "bid"]>;
|
|
6057
6066
|
insufficientConnectsAction: z.ZodEnum<["buy_more_connects", "pause_campaigns"]>;
|
|
6067
|
+
numberOfConnectsToBuyWhenInsufficient: z.ZodNullable<z.ZodNumber>;
|
|
6058
6068
|
isHourlyRate: z.ZodBoolean;
|
|
6059
6069
|
jobMinHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
6060
6070
|
jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
@@ -6250,6 +6260,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
6250
6260
|
} | null | undefined;
|
|
6251
6261
|
};
|
|
6252
6262
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns";
|
|
6263
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
6253
6264
|
specialisedProfileOptions: string[];
|
|
6254
6265
|
minimumBoost: number | null;
|
|
6255
6266
|
isHourlyRate: boolean;
|
|
@@ -6443,6 +6454,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
6443
6454
|
} | null | undefined;
|
|
6444
6455
|
};
|
|
6445
6456
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns";
|
|
6457
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
6446
6458
|
specialisedProfileOptions: string[];
|
|
6447
6459
|
minimumBoost: number | null;
|
|
6448
6460
|
isHourlyRate: boolean;
|
|
@@ -6809,6 +6821,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
6809
6821
|
} | null | undefined;
|
|
6810
6822
|
};
|
|
6811
6823
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns";
|
|
6824
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
6812
6825
|
specialisedProfileOptions: string[];
|
|
6813
6826
|
minimumBoost: number | null;
|
|
6814
6827
|
isHourlyRate: boolean;
|
|
@@ -7175,6 +7188,7 @@ export declare const agencyBidPayloadSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
7175
7188
|
} | null | undefined;
|
|
7176
7189
|
};
|
|
7177
7190
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns";
|
|
7191
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
7178
7192
|
specialisedProfileOptions: string[];
|
|
7179
7193
|
minimumBoost: number | null;
|
|
7180
7194
|
isHourlyRate: boolean;
|
|
@@ -8692,6 +8706,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
8692
8706
|
biddingFixedHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
8693
8707
|
alreadyHiredAction: z.ZodEnum<["skip", "bid"]>;
|
|
8694
8708
|
insufficientConnectsAction: z.ZodEnum<["buy_more_connects", "pause_campaigns"]>;
|
|
8709
|
+
numberOfConnectsToBuyWhenInsufficient: z.ZodNullable<z.ZodNumber>;
|
|
8695
8710
|
isHourlyRate: z.ZodBoolean;
|
|
8696
8711
|
jobMinHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
8697
8712
|
jobMaxHourlyRate: z.ZodNullable<z.ZodNumber>;
|
|
@@ -8881,6 +8896,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
8881
8896
|
} | null | undefined;
|
|
8882
8897
|
};
|
|
8883
8898
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns";
|
|
8899
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
8884
8900
|
specialisedProfileOptions: string[];
|
|
8885
8901
|
minimumBoost: number | null;
|
|
8886
8902
|
isHourlyRate: boolean;
|
|
@@ -9071,6 +9087,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
9071
9087
|
} | null | undefined;
|
|
9072
9088
|
};
|
|
9073
9089
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns";
|
|
9090
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
9074
9091
|
specialisedProfileOptions: string[];
|
|
9075
9092
|
minimumBoost: number | null;
|
|
9076
9093
|
isHourlyRate: boolean;
|
|
@@ -9434,6 +9451,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
9434
9451
|
} | null | undefined;
|
|
9435
9452
|
};
|
|
9436
9453
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns";
|
|
9454
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
9437
9455
|
specialisedProfileOptions: string[];
|
|
9438
9456
|
minimumBoost: number | null;
|
|
9439
9457
|
isHourlyRate: boolean;
|
|
@@ -9797,6 +9815,7 @@ export declare const freelancerBidPayloadSchema: z.ZodObject<z.objectUtil.extend
|
|
|
9797
9815
|
} | null | undefined;
|
|
9798
9816
|
};
|
|
9799
9817
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns";
|
|
9818
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
9800
9819
|
specialisedProfileOptions: string[];
|
|
9801
9820
|
minimumBoost: number | null;
|
|
9802
9821
|
isHourlyRate: boolean;
|
|
@@ -377,6 +377,8 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
|
|
|
377
377
|
} | undefined;
|
|
378
378
|
}>>;
|
|
379
379
|
insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
|
|
380
|
+
numberOfConnectsToBuyWhenInsufficient: z.ZodNullable<z.ZodNumber>;
|
|
381
|
+
onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
380
382
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
381
383
|
id: string;
|
|
382
384
|
name: string;
|
|
@@ -1028,6 +1030,8 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
1028
1030
|
} | undefined;
|
|
1029
1031
|
}>>;
|
|
1030
1032
|
insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
|
|
1033
|
+
numberOfConnectsToBuyWhenInsufficient: z.ZodNullable<z.ZodNumber>;
|
|
1034
|
+
onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
1031
1035
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
1032
1036
|
id: string;
|
|
1033
1037
|
name: string;
|
|
@@ -2109,6 +2113,8 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
2109
2113
|
} | undefined;
|
|
2110
2114
|
}>>;
|
|
2111
2115
|
insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
|
|
2116
|
+
numberOfConnectsToBuyWhenInsufficient: z.ZodNullable<z.ZodNumber>;
|
|
2117
|
+
onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
2112
2118
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
2113
2119
|
id: string;
|
|
2114
2120
|
name: string;
|
|
@@ -3190,6 +3196,8 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
|
|
|
3190
3196
|
} | undefined;
|
|
3191
3197
|
}>>;
|
|
3192
3198
|
insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
|
|
3199
|
+
numberOfConnectsToBuyWhenInsufficient: z.ZodNullable<z.ZodNumber>;
|
|
3200
|
+
onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
3193
3201
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
3194
3202
|
id: string;
|
|
3195
3203
|
name: string;
|
|
@@ -4268,6 +4276,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4268
4276
|
} | undefined;
|
|
4269
4277
|
}>>;
|
|
4270
4278
|
insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
|
|
4279
|
+
numberOfConnectsToBuyWhenInsufficient: z.ZodNullable<z.ZodNumber>;
|
|
4280
|
+
onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
4271
4281
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
4272
4282
|
id: string;
|
|
4273
4283
|
name: string;
|
|
@@ -4918,6 +4928,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
4918
4928
|
} | undefined;
|
|
4919
4929
|
}>>;
|
|
4920
4930
|
insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
|
|
4931
|
+
numberOfConnectsToBuyWhenInsufficient: z.ZodNullable<z.ZodNumber>;
|
|
4932
|
+
onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
4921
4933
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
4922
4934
|
id: string;
|
|
4923
4935
|
name: string;
|
|
@@ -5998,6 +6010,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
5998
6010
|
} | undefined;
|
|
5999
6011
|
}>>;
|
|
6000
6012
|
insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
|
|
6013
|
+
numberOfConnectsToBuyWhenInsufficient: z.ZodNullable<z.ZodNumber>;
|
|
6014
|
+
onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
6001
6015
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
6002
6016
|
id: string;
|
|
6003
6017
|
name: string;
|
|
@@ -7078,6 +7092,8 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
|
|
|
7078
7092
|
} | undefined;
|
|
7079
7093
|
}>>;
|
|
7080
7094
|
insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
|
|
7095
|
+
numberOfConnectsToBuyWhenInsufficient: z.ZodNullable<z.ZodNumber>;
|
|
7096
|
+
onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
7081
7097
|
}, "id" | "name">, "strip", z.ZodTypeAny, {
|
|
7082
7098
|
id: string;
|
|
7083
7099
|
name: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { infer, z } from 'zod';
|
|
2
2
|
import { CoverLetterTemplate } from './cover-letter';
|
|
3
|
-
import { OnboardingProgress } from './onboarding';
|
|
4
3
|
export declare const organizationTypeSchema: z.ZodEnum<["agency", "freelancer"]>;
|
|
5
4
|
export declare const organizationTierEnum: z.ZodEnum<["free", "premium"]>;
|
|
6
5
|
export declare const limitsSchema: z.ZodObject<{
|
|
@@ -302,6 +301,8 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
302
301
|
} | undefined;
|
|
303
302
|
}>>;
|
|
304
303
|
insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
|
|
304
|
+
numberOfConnectsToBuyWhenInsufficient: z.ZodNullable<z.ZodNumber>;
|
|
305
|
+
onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
305
306
|
}, "strip", z.ZodTypeAny, {
|
|
306
307
|
type: "agency" | "freelancer";
|
|
307
308
|
id: string;
|
|
@@ -354,6 +355,8 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
354
355
|
openRouterApiKey: string | null;
|
|
355
356
|
nextProposalStatusSyncTime: number | null;
|
|
356
357
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns" | null;
|
|
358
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
359
|
+
onboardingCompletions: Record<string, boolean> | null;
|
|
357
360
|
usBidderAccountSubscription?: {
|
|
358
361
|
usBidderAccountPayment?: {
|
|
359
362
|
status: string;
|
|
@@ -416,6 +419,8 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
416
419
|
openRouterApiKey: string | null;
|
|
417
420
|
nextProposalStatusSyncTime: number | null;
|
|
418
421
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns" | null;
|
|
422
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
423
|
+
onboardingCompletions: Record<string, boolean> | null;
|
|
419
424
|
usBidderAccountSubscription?: {
|
|
420
425
|
usBidderAccountPayment?: {
|
|
421
426
|
status: string;
|
|
@@ -891,6 +896,8 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
891
896
|
} | undefined;
|
|
892
897
|
}>>;
|
|
893
898
|
insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
|
|
899
|
+
numberOfConnectsToBuyWhenInsufficient: z.ZodNullable<z.ZodNumber>;
|
|
900
|
+
onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
894
901
|
}, "type" | "name">, "strip", z.ZodTypeAny, {
|
|
895
902
|
type: "agency" | "freelancer";
|
|
896
903
|
name: string;
|
|
@@ -1058,7 +1065,6 @@ export interface Organization extends infer<typeof organizationSchema> {
|
|
|
1058
1065
|
coverLetterTemplates: CoverLetterTemplate[] | null;
|
|
1059
1066
|
settings: OrganizationSettings | null;
|
|
1060
1067
|
profiles: OrganizationProfile[] | null;
|
|
1061
|
-
onboarding: OnboardingProgress | null;
|
|
1062
1068
|
oneTimePayments: OneTimePayments;
|
|
1063
1069
|
}
|
|
1064
1070
|
export interface OrganizationUpdateSchema extends infer<typeof organizationUpdateSchema> {
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const onboardingSectionSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
parentId: z.ZodNullable<z.ZodString>;
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
stepNumber: z.ZodString;
|
|
7
|
+
videoUrl: z.ZodNullable<z.ZodString>;
|
|
8
|
+
description: z.ZodString;
|
|
8
9
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
id: string;
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
videoUrl: string | null;
|
|
14
|
+
parentId: string | null;
|
|
15
|
+
stepNumber: string;
|
|
14
16
|
}, {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
id: string;
|
|
18
|
+
title: string;
|
|
19
|
+
description: string;
|
|
20
|
+
videoUrl: string | null;
|
|
21
|
+
parentId: string | null;
|
|
22
|
+
stepNumber: string;
|
|
20
23
|
}>;
|
|
21
|
-
export type
|
|
24
|
+
export type OnboardingSection = z.infer<typeof onboardingSectionSchema>;
|
|
@@ -1259,6 +1259,8 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1259
1259
|
} | undefined;
|
|
1260
1260
|
}>>;
|
|
1261
1261
|
insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
|
|
1262
|
+
numberOfConnectsToBuyWhenInsufficient: z.ZodNullable<z.ZodNumber>;
|
|
1263
|
+
onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
1262
1264
|
}, "strip", z.ZodTypeAny, {
|
|
1263
1265
|
type: "agency" | "freelancer";
|
|
1264
1266
|
id: string;
|
|
@@ -1311,6 +1313,8 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1311
1313
|
openRouterApiKey: string | null;
|
|
1312
1314
|
nextProposalStatusSyncTime: number | null;
|
|
1313
1315
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns" | null;
|
|
1316
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
1317
|
+
onboardingCompletions: Record<string, boolean> | null;
|
|
1314
1318
|
usBidderAccountSubscription?: {
|
|
1315
1319
|
usBidderAccountPayment?: {
|
|
1316
1320
|
status: string;
|
|
@@ -1373,6 +1377,8 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
1373
1377
|
openRouterApiKey: string | null;
|
|
1374
1378
|
nextProposalStatusSyncTime: number | null;
|
|
1375
1379
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns" | null;
|
|
1380
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
1381
|
+
onboardingCompletions: Record<string, boolean> | null;
|
|
1376
1382
|
usBidderAccountSubscription?: {
|
|
1377
1383
|
usBidderAccountPayment?: {
|
|
1378
1384
|
status: string;
|
|
@@ -2283,6 +2289,8 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2283
2289
|
openRouterApiKey: string | null;
|
|
2284
2290
|
nextProposalStatusSyncTime: number | null;
|
|
2285
2291
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns" | null;
|
|
2292
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
2293
|
+
onboardingCompletions: Record<string, boolean> | null;
|
|
2286
2294
|
usBidderAccountSubscription?: {
|
|
2287
2295
|
usBidderAccountPayment?: {
|
|
2288
2296
|
status: string;
|
|
@@ -2664,6 +2672,8 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
|
|
|
2664
2672
|
openRouterApiKey: string | null;
|
|
2665
2673
|
nextProposalStatusSyncTime: number | null;
|
|
2666
2674
|
insufficientConnectsAction: "buy_more_connects" | "pause_campaigns" | null;
|
|
2675
|
+
numberOfConnectsToBuyWhenInsufficient: number | null;
|
|
2676
|
+
onboardingCompletions: Record<string, boolean> | null;
|
|
2667
2677
|
usBidderAccountSubscription?: {
|
|
2668
2678
|
usBidderAccountPayment?: {
|
|
2669
2679
|
status: string;
|