founder-schema 0.24.0 → 0.26.0

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.
Files changed (44) hide show
  1. package/dist/access/permissions.d.ts +2 -1
  2. package/dist/access/permissions.d.ts.map +1 -1
  3. package/dist/access/permissions.js +2 -0
  4. package/dist/access/permissions.js.map +1 -1
  5. package/dist/domains/communities/communities.d.ts +9 -9
  6. package/dist/domains/discover/discover.d.ts +100 -1
  7. package/dist/domains/discover/discover.d.ts.map +1 -1
  8. package/dist/domains/discover/discover.js +6 -3
  9. package/dist/domains/discover/discover.js.map +1 -1
  10. package/dist/domains/feed/feed.d.ts +11 -11
  11. package/dist/domains/follows/follows.d.ts +431 -0
  12. package/dist/domains/follows/follows.d.ts.map +1 -0
  13. package/dist/domains/follows/follows.js +52 -0
  14. package/dist/domains/follows/follows.js.map +1 -0
  15. package/dist/domains/follows/relation.d.ts +59 -0
  16. package/dist/domains/follows/relation.d.ts.map +1 -0
  17. package/dist/domains/follows/relation.js +55 -0
  18. package/dist/domains/follows/relation.js.map +1 -0
  19. package/dist/domains/notifications/notifications.d.ts +20 -2
  20. package/dist/domains/notifications/notifications.d.ts.map +1 -1
  21. package/dist/domains/notifications/notifications.js +18 -0
  22. package/dist/domains/notifications/notifications.js.map +1 -1
  23. package/dist/domains/onboarding/onboarding-answers.d.ts +12 -8
  24. package/dist/domains/onboarding/onboarding-answers.d.ts.map +1 -1
  25. package/dist/domains/onboarding/onboarding-answers.js +20 -21
  26. package/dist/domains/onboarding/onboarding-answers.js.map +1 -1
  27. package/dist/domains/onboarding/onboarding.d.ts +210 -174
  28. package/dist/domains/onboarding/onboarding.d.ts.map +1 -1
  29. package/dist/domains/onboarding/onboarding.js +104 -70
  30. package/dist/domains/onboarding/onboarding.js.map +1 -1
  31. package/dist/domains/products/products.d.ts +3 -3
  32. package/dist/domains/profile/founder-profile.d.ts +155 -1
  33. package/dist/domains/profile/founder-profile.d.ts.map +1 -1
  34. package/dist/domains/profile/founder-profile.js +49 -1
  35. package/dist/domains/profile/founder-profile.js.map +1 -1
  36. package/dist/domains/profile/my-profile.d.ts +119 -40
  37. package/dist/domains/profile/my-profile.d.ts.map +1 -1
  38. package/dist/domains/profile/my-profile.js +28 -14
  39. package/dist/domains/profile/my-profile.js.map +1 -1
  40. package/dist/index.d.ts +4 -3
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +5 -3
  43. package/dist/index.js.map +1 -1
  44. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"onboarding.d.ts","sourceRoot":"","sources":["../../../src/domains/onboarding/onboarding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAKL,KAAK,IAAI,EAeV,MAAM,sBAAsB,CAAC;AAmB9B;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,KAAK,CAAC;AAChC,qEAAqE;AACrE,eAAO,MAAM,aAAa,MAAM,CAAC;AAEjC;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,GAAE,IAAiB,GAAG,MAAM,CAoB1E;AAED,4DAA4D;AAC5D,eAAO,MAAM,aAAa,aAGqC,CAAC;AAChE,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAYpD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEpD;AAMD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,GAAE,IAAiB,GAAG,OAAO,CAE5D;AAID;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,GAAE,IAAiB,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAOhG;AAED;;;;;GAKG;AACH,w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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAYjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -26,12 +26,12 @@
26
26
  * @module founder-schema/domains/onboarding
27
27
  */
28
28
  import { z } from 'zod';
29
- import { eachOnce, fullNameSchema, GENDER_VALUES, GOAL_VALUES, genderSchema, goalSchema, INDUSTRY_VALUES, industrySchema, objectIdSchema, optionalTrimmedString, phoneSchema, requiredGoalListSchema, SKILL_VALUES, STARTUP_STAGE_VALUES, skillListSchema, skillSchema, startupStageSchema, usernameSchema, } from '../../core/common.js';
30
- import { ABOUT_MAX, DAY_MS, DISPLAY_NAME_MAX, HEADLINE_MAX, INDIA_UTC_OFFSET_MS, LINK_URL_MAX, SKILLS_MAX, TEAM_SIZE_MAX, VENTURE_NAME_MAX, } from '../../core/limits.js';
29
+ import { eachOnce, fullNameSchema, GENDER_VALUES, GOAL_VALUES, genderSchema, goalSchema, INDUSTRY_VALUES, industrySchema, objectIdSchema, optionalTrimmedString, phoneSchema, requiredGoalListSchema, SKILL_VALUES, STARTUP_STAGE_VALUES, skillSchema, startupStageSchema, usernameSchema, } from '../../core/common.js';
30
+ import { ABOUT_MAX, DAY_MS, DISPLAY_NAME_MAX, HEADLINE_MAX, INDIA_UTC_OFFSET_MS, LINK_URL_MAX, SKILLS_MAX, TEAM_SIZE_MAX, VENTURE_NAME_MAX, VENTURE_TAGLINE_MAX, } from '../../core/limits.js';
31
31
  import { VALIDATION_MESSAGE } from '../../core/validation.js';
32
32
  import { locationPickSchema, placeSchema } from '../location/areas.js';
33
33
  import { mediaImageSchema } from '../media/media.js';
34
- import { founderLinksSchema, ventureSchema } from '../profile/founder-profile.js';
34
+ import { founderLinksSchema, VENTURE_ROLE_VALUES, ventureRoleSchema, ventureWriteSchema, } from '../profile/founder-profile.js';
35
35
  // ─── Age ─────────────────────────────────────────────────────────────────────
36
36
  /**
37
37
  * 18, ruled by the user 2026-09-21. Under-18 would pull in parental-consent
@@ -152,29 +152,6 @@ export const dateOfBirthSchema = isoDateSchema
152
152
  .refine((v) => ageInYears(v) >= MIN_AGE_YEARS, { error: VALIDATION_MESSAGE.dobUnderAge })
153
153
  .refine((v) => ageInYears(v) <= MAX_AGE_YEARS, { error: VALIDATION_MESSAGE.dobTooOld });
154
154
  // ─── Business ────────────────────────────────────────────────────────────────
155
- /**
156
- * What KIND of business it is, which is not how it is registered
157
- * (`LEGAL_STRUCTURE_VALUES`): a freelancer may be a sole proprietorship, a
158
- * startup a private limited company, a social enterprise a Section 8 company.
159
- *
160
- * 0.16.0 (the user, 2026-10-18: "check what more business types we can use")
161
- * added the kinds an Indian founder network meets beyond the three it had: the
162
- * independent professional, the services firm, the social enterprise, the
163
- * family business and the franchise. `sme` is India's MSME.
164
- *
165
- * ⚠ Stored on the profile's venture and a Mongoose enum. Append only.
166
- */
167
- export const BUSINESS_TYPE_VALUES = [
168
- 'startup',
169
- 'sme',
170
- 'enterprise',
171
- 'freelancer',
172
- 'agency',
173
- 'social_enterprise',
174
- 'family_business',
175
- 'franchise',
176
- ];
177
- export const businessTypeSchema = z.enum(BUSINESS_TYPE_VALUES);
178
155
  /**
179
156
  * How the business is registered in India, or that it is not yet (0.16.0, the
180
157
  * user, 2026-10-18: "the categories that we have in India like private
@@ -188,8 +165,8 @@ export const businessTypeSchema = z.enum(BUSINESS_TYPE_VALUES);
188
165
  * registered yet (an idea, or a side project), and registered outside India
189
166
  * (an Indian team whose company is incorporated abroad, often in the US).
190
167
  *
191
- * Optional, like the business type, and private to the member: nothing here
192
- * verifies it (documents are a settings matter, by the user's ruling).
168
+ * Optional, and private to the member: nothing here verifies it (documents
169
+ * are a settings matter, by the user's ruling).
193
170
  *
194
171
  * ⚠ Stored on the profile's venture and a Mongoose enum. Append only.
195
172
  */
@@ -506,15 +483,19 @@ export const interestsSchema = z
506
483
  * (the photo alone) and `professional` (title, about, skills). Nine steps, up
507
484
  * from seven.
508
485
  *
486
+ * 2026-11-22 (the user: "lets remove this step from onboring"): `professional`
487
+ * went. Eight steps. The title, about and skills stay on the profile, edited
488
+ * in Me; a member who typed them into a draft before keeps them (the server
489
+ * carries them at finish, `legacyProfessionalAnswers`).
490
+ *
509
491
  * ⚠ THE SERVER'S RESUME CURSOR IS AN INDEX INTO THIS LIST, so re-ordering it
510
- * moves every member who stopped part-way. A cursor saved under the old seven
511
- * is translated by the backend (its progress rows carry the list's version);
512
- * any further change needs the same.
492
+ * moves every member who stopped part-way. A cursor saved under an older list
493
+ * is translated by the backend, by step NAME (its progress rows carry the
494
+ * list's version); any further change needs the same.
513
495
  */
514
496
  export const ONBOARDING_STEP_KEYS = [
515
497
  'basics',
516
498
  'photo',
517
- 'professional',
518
499
  'contact',
519
500
  'location',
520
501
  'goals',
@@ -600,8 +581,6 @@ export const onboardingFormSchema = z.object({
600
581
  gender: genderSchema.nullable(),
601
582
  /** `YYYY-MM-DD` once complete; whatever has been typed until then. */
602
583
  dateOfBirth: z.string().max(DATE_INPUT_MAX),
603
- headline: z.string().max(HEADLINE_MAX),
604
- about: z.string().max(ABOUT_MAX),
605
584
  /**
606
585
  * The completed upload's id (`media`, purpose `avatar`), or `null` for no
607
586
  * photo.
@@ -615,7 +594,6 @@ export const onboardingFormSchema = z.object({
615
594
  * id an older client left in a draft is never trusted.
616
595
  */
617
596
  avatarMediaId: objectIdSchema.nullable(),
618
- skills: z.array(skillSchema).max(SKILLS_MAX),
619
597
  /** As typed; the finish body takes `phoneSchema`'s ten digits. */
620
598
  phone: z.string().max(PHONE_INPUT_MAX),
621
599
  /** As typed; the finish body takes full `https://` URLs. */
@@ -633,18 +611,21 @@ export const onboardingFormSchema = z.object({
633
611
  goals: z.array(goalSchema).max(GOAL_VALUES.length),
634
612
  interests: z.array(topicSchema).max(INTERESTS_MAX),
635
613
  /**
636
- * Always present; empty until started. Onboarding does not ask for a
637
- * tagline (the profile does, later), so the draft has none.
614
+ * Always present; empty until started. The startup step (2026-11-22) asks
615
+ * its description (the venture's `tagline`) and the member's roles too.
616
+ * Those two DEFAULT when absent, so a draft from a client older than them
617
+ * still saves.
638
618
  */
639
619
  venture: z.object({
640
620
  name: z.string().max(VENTURE_NAME_MAX),
621
+ tagline: z.string().max(VENTURE_TAGLINE_MAX).default(''),
622
+ roles: z.array(ventureRoleSchema).max(VENTURE_ROLE_VALUES.length).default([]),
641
623
  website: z.string().max(LINK_URL_MAX),
642
624
  industry: industrySchema.nullable(),
643
625
  stage: startupStageSchema.nullable(),
644
626
  /** Digits as typed, at most `TEAM_SIZE_DIGITS_MAX`; the body sends a number. */
645
627
  teamSize: z.string().max(TEAM_SIZE_DIGITS_MAX),
646
628
  }),
647
- businessType: businessTypeSchema.nullable(),
648
629
  legalStructure: legalStructureSchema.nullable(),
649
630
  /** The guidelines text the member agreed to, or `null`. */
650
631
  guidelinesVersion: z.string().max(GUIDELINES_VERSION_MAX).nullable(),
@@ -679,13 +660,10 @@ const draftReaderSchema = z.object({
679
660
  fullName: draftText(DISPLAY_NAME_MAX),
680
661
  gender: draftChoice(GENDER_VALUES),
681
662
  dateOfBirth: draftText(DATE_INPUT_MAX),
682
- headline: draftText(HEADLINE_MAX),
683
- about: draftText(ABOUT_MAX),
684
663
  avatarMediaId: z
685
664
  .unknown()
686
665
  .optional()
687
666
  .transform(() => null),
688
- skills: draftList(SKILL_VALUES, SKILLS_MAX),
689
667
  phone: draftText(PHONE_INPUT_MAX),
690
668
  links: draftObject({
691
669
  linkedin: draftText(LINK_URL_MAX),
@@ -699,12 +677,14 @@ const draftReaderSchema = z.object({
699
677
  interests: draftList(TOPIC_VALUES, INTERESTS_MAX),
700
678
  venture: draftObject({
701
679
  name: draftText(VENTURE_NAME_MAX),
680
+ // A draft saved before the startup step asked these holds neither.
681
+ tagline: z.unknown().optional().pipe(draftText(VENTURE_TAGLINE_MAX)),
682
+ roles: z.unknown().optional().pipe(draftList(VENTURE_ROLE_VALUES, VENTURE_ROLE_VALUES.length)),
702
683
  website: draftText(LINK_URL_MAX),
703
684
  industry: draftChoice(INDUSTRY_VALUES),
704
685
  stage: draftChoice(STARTUP_STAGE_VALUES),
705
686
  teamSize: z.string().catch('').transform(teamSizeDigits),
706
- }).transform((venture) => venture ?? { ...EMPTY_ONBOARDING_VENTURE }),
707
- businessType: draftChoice(BUSINESS_TYPE_VALUES),
687
+ }).transform((venture) => venture ?? { ...EMPTY_ONBOARDING_VENTURE, roles: [] }),
708
688
  legalStructure: draftChoice(LEGAL_STRUCTURE_VALUES),
709
689
  /** Agreement to an OLDER text is not agreement to this one. */
710
690
  guidelinesVersion: z
@@ -715,6 +695,8 @@ const draftReaderSchema = z.object({
715
695
  /** The business step before anything is chosen. */
716
696
  export const EMPTY_ONBOARDING_VENTURE = {
717
697
  name: '',
698
+ tagline: '',
699
+ roles: [],
718
700
  website: '',
719
701
  industry: null,
720
702
  stage: null,
@@ -771,8 +753,6 @@ const completeOnboardingBodyFields = z.object({
771
753
  */
772
754
  gender: genderSchema,
773
755
  dateOfBirth: dateOfBirthSchema,
774
- headline: optionalTrimmedString(HEADLINE_MAX),
775
- about: optionalTrimmedString(ABOUT_MAX),
776
756
  /**
777
757
  * A completed avatar upload (`media`, purpose `avatar`). The server attaches
778
758
  * it inside the same transaction that creates the profile, so a refused
@@ -789,14 +769,12 @@ const completeOnboardingBodyFields = z.object({
789
769
  /** The shared list rule (each goal once, 0.17.0) plus finish's minimum. */
790
770
  goals: requiredGoalListSchema,
791
771
  interests: interestsSchema,
792
- skills: skillListSchema.optional(),
793
772
  /**
794
773
  * Absent when the member skipped the business step. The profile's venture
795
774
  * without `foundedYear`, which onboarding does not ask; the Me tab does.
796
775
  */
797
- venture: ventureSchema.omit({ foundedYear: true }).optional(),
798
- businessType: businessTypeSchema.optional(),
799
- /** How the venture is registered, if the member says. Stored on the venture, like the type. */
776
+ venture: ventureWriteSchema.omit({ foundedYear: true }).optional(),
777
+ /** How the venture is registered, if the member says. Stored on the venture. */
800
778
  legalStructure: legalStructureSchema.optional(),
801
779
  /**
802
780
  * The version of the guidelines this member read: `GUIDELINES_VERSION`,
@@ -809,9 +787,7 @@ const completeOnboardingBodyFields = z.object({
809
787
  */
810
788
  guidelinesVersion: guidelinesVersionSchema,
811
789
  });
812
- const typeHasVenture = (body) => body.venture !== undefined || body.businessType === undefined;
813
790
  const registrationHasVenture = (body) => body.venture !== undefined || body.legalStructure === undefined;
814
- const TYPE_NEEDS_VENTURE = { error: VALIDATION_MESSAGE.ventureRequired, path: ['businessType'] };
815
791
  const REGISTRATION_NEEDS_VENTURE = {
816
792
  error: VALIDATION_MESSAGE.ventureRequired,
817
793
  path: ['legalStructure'],
@@ -833,13 +809,15 @@ const REGISTRATION_NEEDS_VENTURE = {
833
809
  * Location, venture and links are the profile's own shapes, not copies: the
834
810
  * copies are how the profile model came to lack Instagram.
835
811
  *
836
- * Refined (the business type and registration need a venture, above), so Zod 4
837
- * throws on `.pick` / `.omit` / `.partial` / `.merge` of it: read a field with
812
+ * Refined (the registration needs a venture, above), so Zod 4 throws on
813
+ * `.pick` / `.omit` / `.partial` / `.merge` of it: read a field with
838
814
  * `.shape.<field>`, a step's with `ONBOARDING_STEP_SCHEMAS.<step>`.
815
+ *
816
+ * A plain object, not strict: a key from an older client (the business type,
817
+ * or the title, about and skills of the step that went, 2026-11-22) is
818
+ * dropped, never refused.
839
819
  */
840
- export const completeOnboardingBodySchema = completeOnboardingBodyFields
841
- .refine(typeHasVenture, TYPE_NEEDS_VENTURE)
842
- .refine(registrationHasVenture, REGISTRATION_NEEDS_VENTURE);
820
+ export const completeOnboardingBodySchema = completeOnboardingBodyFields.refine(registrationHasVenture, REGISTRATION_NEEDS_VENTURE);
843
821
  // ─── The steps ───────────────────────────────────────────────────────────────
844
822
  /**
845
823
  * Each step's slice of the finish body, picked FROM it, so a client validating
@@ -856,29 +834,21 @@ export const completeOnboardingBodySchema = completeOnboardingBodyFields
856
834
  * on a draft save, because a half-answered step must be storable.
857
835
  */
858
836
  export const ONBOARDING_STEP_SCHEMAS = {
859
- // 0.16.0: the old `identity` step, split three ways by the user. The basics
860
- // are the step's only required answers; the photo and the professional
861
- // details may each be passed over.
837
+ // 0.16.0: the old `identity` step, split by the user. The basics are the
838
+ // step's only required answers; the photo may be passed over. (The third
839
+ // part, `professional`, went on 2026-11-22.)
862
840
  basics: completeOnboardingBodyFields.pick({ fullName: true, gender: true, dateOfBirth: true }),
863
841
  photo: completeOnboardingBodyFields.pick({ avatarMediaId: true }),
864
- professional: completeOnboardingBodyFields.pick({
865
- headline: true,
866
- about: true,
867
- // Ruling D8 folded the design's "title, achievements, skills" screen into
868
- // the profile's first questions; it now has a step of its own again.
869
- skills: true,
870
- }),
871
842
  contact: completeOnboardingBodyFields.pick({ phone: true, links: true }),
872
843
  location: completeOnboardingBodyFields.pick({ location: true }),
873
844
  goals: completeOnboardingBodyFields.pick({ goals: true }),
874
845
  interests: completeOnboardingBodyFields.pick({ interests: true }),
846
+ // "Tell us about your startup" (2026-11-22).
875
847
  business: completeOnboardingBodyFields
876
848
  .pick({
877
849
  venture: true,
878
- businessType: true,
879
850
  legalStructure: true,
880
851
  })
881
- .refine(typeHasVenture, TYPE_NEEDS_VENTURE)
882
852
  .refine(registrationHasVenture, REGISTRATION_NEEDS_VENTURE),
883
853
  guidelines: completeOnboardingBodyFields.pick({ guidelinesVersion: true }),
884
854
  };
@@ -900,6 +870,54 @@ export const completeOnboardingResponseSchema = z.object({
900
870
  id: objectIdSchema,
901
871
  username: usernameSchema,
902
872
  });
873
+ // ─── What a client older than 2026-11-22 still sends ──────────────────────────
874
+ /** How many steps the list had before `professional` went: an older client's "past the last step". */
875
+ export const LEGACY_ONBOARDING_TOTAL_STEPS = 9;
876
+ /**
877
+ * The step that went (2026-11-22) asked a title, an about and skills. A client
878
+ * loaded before still saves them, and they are KEPT, in its draft, with their
879
+ * old bounds, so finish can carry them to the profile
880
+ * (`legacyProfessionalAnswers`): what a member typed is never dropped. Never
881
+ * handed back on resume (they are not the form's keys any more).
882
+ */
883
+ const LEGACY_DRAFT_KEYS = {
884
+ headline: z.string().max(HEADLINE_MAX).optional(),
885
+ about: z.string().max(ABOUT_MAX).optional(),
886
+ skills: z.array(skillSchema).max(SKILLS_MAX).optional(),
887
+ /**
888
+ * The business type went END TO END (2026-11-22): an older client's answer
889
+ * is accepted, never refused, and dropped (`withoutBusinessType`), never
890
+ * stored.
891
+ */
892
+ businessType: z.unknown().optional(),
893
+ };
894
+ /** The draft without the business type (an older client's), whatever it held. */
895
+ function withoutBusinessType(draft) {
896
+ const { businessType: _gone, ...rest } = draft;
897
+ return rest;
898
+ }
899
+ /**
900
+ * A title, about and skills a member typed into the step that went
901
+ * (2026-11-22), read from their STORED draft, each by its profile rule:
902
+ * trimmed text within its limit, known skills each once. One that does not fit
903
+ * is left out. The server writes these at finish, never from the body.
904
+ */
905
+ export function legacyProfessionalAnswers(draft) {
906
+ const raw = draft && typeof draft === 'object' && !Array.isArray(draft)
907
+ ? draft
908
+ : {};
909
+ const out = {};
910
+ const headline = optionalTrimmedString(HEADLINE_MAX).safeParse(raw.headline);
911
+ if (headline.success && headline.data)
912
+ out.headline = headline.data;
913
+ const about = optionalTrimmedString(ABOUT_MAX).safeParse(raw.about);
914
+ if (about.success && about.data)
915
+ out.about = about.data;
916
+ const skills = draftList(SKILL_VALUES, SKILLS_MAX).safeParse(raw.skills ?? []);
917
+ if (skills.success && skills.data.length > 0)
918
+ out.skills = skills.data;
919
+ return out;
920
+ }
903
921
  // ─── The resume cursor ───────────────────────────────────────────────────────
904
922
  /**
905
923
  * The keys a draft may hold: exactly the in-progress form's fields.
@@ -939,7 +957,18 @@ export const onboardingDraftSchema = z.partialRecord(onboardingDraftKeySchema, z
939
957
  * handed to the server, which holds that upload for the member.
940
958
  */
941
959
  export const onboardingProgressUpdateSchema = z.object({
942
- step: z.number().int().min(0).max(ONBOARDING_TOTAL_STEPS).optional(),
960
+ /**
961
+ * Up to the OLD list's end (nine steps, 2026-11-22), brought within today's:
962
+ * a client loaded before the step went still sends "past the last step" as 9
963
+ * on its way to finish, and is not refused for it.
964
+ */
965
+ step: z
966
+ .number()
967
+ .int()
968
+ .min(0)
969
+ .max(LEGACY_ONBOARDING_TOTAL_STEPS)
970
+ .transform((step) => Math.min(step, ONBOARDING_TOTAL_STEPS))
971
+ .optional(),
943
972
  /**
944
973
  * The answers of the step being saved, IN THE FORM'S OWN SHAPE (0.18.0):
945
974
  * half-answered is fine (that is the form: text as typed, `null` for "not
@@ -949,7 +978,12 @@ export const onboardingProgressUpdateSchema = z.object({
949
978
  * every id (lower case), since the server compares it with the upload it
950
979
  * holds.
951
980
  */
952
- draft: onboardingFormSchema.partial().strict().optional(),
981
+ draft: onboardingFormSchema
982
+ .partial()
983
+ .extend(LEGACY_DRAFT_KEYS)
984
+ .strict()
985
+ .transform(withoutBusinessType)
986
+ .optional(),
953
987
  });
954
988
  /**
955
989
  * What the client reads on return, from `GET` and from every `PATCH`.