lancer-shared 1.2.272 → 1.2.274

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.
@@ -0,0 +1 @@
1
+ export declare const GOAT_COUNTRIES: string[];
@@ -1,4 +1,5 @@
1
1
  export * from './default-questions';
2
+ export * from './grouped-countries';
2
3
  export * from './invoice';
3
4
  export * from './job-filter-options';
4
5
  export * from './job-status';
@@ -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;
@@ -377,6 +377,7 @@ 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
+ onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
380
381
  }, "id" | "name">, "strip", z.ZodTypeAny, {
381
382
  id: string;
382
383
  name: string;
@@ -1028,6 +1029,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
1028
1029
  } | undefined;
1029
1030
  }>>;
1030
1031
  insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
1032
+ onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1031
1033
  }, "id" | "name">, "strip", z.ZodTypeAny, {
1032
1034
  id: string;
1033
1035
  name: string;
@@ -2109,6 +2111,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
2109
2111
  } | undefined;
2110
2112
  }>>;
2111
2113
  insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
2114
+ onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
2112
2115
  }, "id" | "name">, "strip", z.ZodTypeAny, {
2113
2116
  id: string;
2114
2117
  name: string;
@@ -3190,6 +3193,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
3190
3193
  } | undefined;
3191
3194
  }>>;
3192
3195
  insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
3196
+ onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
3193
3197
  }, "id" | "name">, "strip", z.ZodTypeAny, {
3194
3198
  id: string;
3195
3199
  name: string;
@@ -4268,6 +4272,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4268
4272
  } | undefined;
4269
4273
  }>>;
4270
4274
  insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
4275
+ onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
4271
4276
  }, "id" | "name">, "strip", z.ZodTypeAny, {
4272
4277
  id: string;
4273
4278
  name: string;
@@ -4918,6 +4923,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4918
4923
  } | undefined;
4919
4924
  }>>;
4920
4925
  insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
4926
+ onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
4921
4927
  }, "id" | "name">, "strip", z.ZodTypeAny, {
4922
4928
  id: string;
4923
4929
  name: string;
@@ -5998,6 +6004,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5998
6004
  } | undefined;
5999
6005
  }>>;
6000
6006
  insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
6007
+ onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
6001
6008
  }, "id" | "name">, "strip", z.ZodTypeAny, {
6002
6009
  id: string;
6003
6010
  name: string;
@@ -7078,6 +7085,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
7078
7085
  } | undefined;
7079
7086
  }>>;
7080
7087
  insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
7088
+ onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
7081
7089
  }, "id" | "name">, "strip", z.ZodTypeAny, {
7082
7090
  id: string;
7083
7091
  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,7 @@ export declare const organizationSchema: z.ZodObject<{
302
301
  } | undefined;
303
302
  }>>;
304
303
  insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
304
+ onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
305
305
  }, "strip", z.ZodTypeAny, {
306
306
  type: "agency" | "freelancer";
307
307
  id: string;
@@ -354,6 +354,7 @@ export declare const organizationSchema: z.ZodObject<{
354
354
  openRouterApiKey: string | null;
355
355
  nextProposalStatusSyncTime: number | null;
356
356
  insufficientConnectsAction: "buy_more_connects" | "pause_campaigns" | null;
357
+ onboardingCompletions: Record<string, boolean> | null;
357
358
  usBidderAccountSubscription?: {
358
359
  usBidderAccountPayment?: {
359
360
  status: string;
@@ -416,6 +417,7 @@ export declare const organizationSchema: z.ZodObject<{
416
417
  openRouterApiKey: string | null;
417
418
  nextProposalStatusSyncTime: number | null;
418
419
  insufficientConnectsAction: "buy_more_connects" | "pause_campaigns" | null;
420
+ onboardingCompletions: Record<string, boolean> | null;
419
421
  usBidderAccountSubscription?: {
420
422
  usBidderAccountPayment?: {
421
423
  status: string;
@@ -891,6 +893,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
891
893
  } | undefined;
892
894
  }>>;
893
895
  insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
896
+ onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
894
897
  }, "type" | "name">, "strip", z.ZodTypeAny, {
895
898
  type: "agency" | "freelancer";
896
899
  name: string;
@@ -1058,7 +1061,6 @@ export interface Organization extends infer<typeof organizationSchema> {
1058
1061
  coverLetterTemplates: CoverLetterTemplate[] | null;
1059
1062
  settings: OrganizationSettings | null;
1060
1063
  profiles: OrganizationProfile[] | null;
1061
- onboarding: OnboardingProgress | null;
1062
1064
  oneTimePayments: OneTimePayments;
1063
1065
  }
1064
1066
  export interface OrganizationUpdateSchema extends infer<typeof organizationUpdateSchema> {
@@ -1,21 +1,24 @@
1
- import { z } from "zod";
2
- export declare const onboardingProgressSchema: z.ZodObject<{
3
- profileSetup: z.ZodBoolean;
4
- campaignCreated: z.ZodBoolean;
5
- filtersAdded: z.ZodBoolean;
6
- automationEnabled: z.ZodBoolean;
7
- startCampaign: z.ZodBoolean;
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
- profileSetup: boolean;
10
- campaignCreated: boolean;
11
- filtersAdded: boolean;
12
- automationEnabled: boolean;
13
- startCampaign: boolean;
10
+ id: string;
11
+ title: string;
12
+ description: string;
13
+ videoUrl: string | null;
14
+ parentId: string | null;
15
+ stepNumber: string;
14
16
  }, {
15
- profileSetup: boolean;
16
- campaignCreated: boolean;
17
- filtersAdded: boolean;
18
- automationEnabled: boolean;
19
- startCampaign: boolean;
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 OnboardingProgress = z.infer<typeof onboardingProgressSchema>;
24
+ export type OnboardingSection = z.infer<typeof onboardingSectionSchema>;
@@ -1259,6 +1259,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1259
1259
  } | undefined;
1260
1260
  }>>;
1261
1261
  insufficientConnectsAction: z.ZodNullable<z.ZodEnum<["buy_more_connects", "pause_campaigns"]>>;
1262
+ onboardingCompletions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1262
1263
  }, "strip", z.ZodTypeAny, {
1263
1264
  type: "agency" | "freelancer";
1264
1265
  id: string;
@@ -1311,6 +1312,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1311
1312
  openRouterApiKey: string | null;
1312
1313
  nextProposalStatusSyncTime: number | null;
1313
1314
  insufficientConnectsAction: "buy_more_connects" | "pause_campaigns" | null;
1315
+ onboardingCompletions: Record<string, boolean> | null;
1314
1316
  usBidderAccountSubscription?: {
1315
1317
  usBidderAccountPayment?: {
1316
1318
  status: string;
@@ -1373,6 +1375,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
1373
1375
  openRouterApiKey: string | null;
1374
1376
  nextProposalStatusSyncTime: number | null;
1375
1377
  insufficientConnectsAction: "buy_more_connects" | "pause_campaigns" | null;
1378
+ onboardingCompletions: Record<string, boolean> | null;
1376
1379
  usBidderAccountSubscription?: {
1377
1380
  usBidderAccountPayment?: {
1378
1381
  status: string;
@@ -2283,6 +2286,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2283
2286
  openRouterApiKey: string | null;
2284
2287
  nextProposalStatusSyncTime: number | null;
2285
2288
  insufficientConnectsAction: "buy_more_connects" | "pause_campaigns" | null;
2289
+ onboardingCompletions: Record<string, boolean> | null;
2286
2290
  usBidderAccountSubscription?: {
2287
2291
  usBidderAccountPayment?: {
2288
2292
  status: string;
@@ -2664,6 +2668,7 @@ export declare const checkLeadStatusPayloadSchema: z.ZodObject<{
2664
2668
  openRouterApiKey: string | null;
2665
2669
  nextProposalStatusSyncTime: number | null;
2666
2670
  insufficientConnectsAction: "buy_more_connects" | "pause_campaigns" | null;
2671
+ onboardingCompletions: Record<string, boolean> | null;
2667
2672
  usBidderAccountSubscription?: {
2668
2673
  usBidderAccountPayment?: {
2669
2674
  status: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.272",
3
+ "version": "1.2.274",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",