founder-schema 0.36.0 → 0.37.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 (34) hide show
  1. package/dist/access/permissions.d.ts +5 -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/access/standing.d.ts +1 -1
  6. package/dist/access/standing.js +1 -1
  7. package/dist/access/standing.js.map +1 -1
  8. package/dist/domains/audit/audit.d.ts +6 -1
  9. package/dist/domains/audit/audit.d.ts.map +1 -1
  10. package/dist/domains/audit/audit.js +8 -0
  11. package/dist/domains/audit/audit.js.map +1 -1
  12. package/dist/domains/billing/billing.d.ts +1 -1
  13. package/dist/domains/billing/billing.js +1 -1
  14. package/dist/domains/billing/billing.js.map +1 -1
  15. package/dist/domains/members/signups.d.ts +113 -0
  16. package/dist/domains/members/signups.d.ts.map +1 -0
  17. package/dist/domains/members/signups.js +69 -0
  18. package/dist/domains/members/signups.js.map +1 -0
  19. package/dist/domains/membership/membership.d.ts +28 -4
  20. package/dist/domains/membership/membership.d.ts.map +1 -1
  21. package/dist/domains/membership/membership.js +39 -5
  22. package/dist/domains/membership/membership.js.map +1 -1
  23. package/dist/domains/onboarding/onboarding.d.ts +142 -93
  24. package/dist/domains/onboarding/onboarding.d.ts.map +1 -1
  25. package/dist/domains/onboarding/onboarding.js +107 -20
  26. package/dist/domains/onboarding/onboarding.js.map +1 -1
  27. package/dist/domains/profile/founder-profile.d.ts +3 -3
  28. package/dist/domains/profile/founder-profile.js +3 -3
  29. package/dist/domains/profile/founder-profile.js.map +1 -1
  30. package/dist/index.d.ts +3 -2
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +4 -2
  33. package/dist/index.js.map +1 -1
  34. package/package.json +1 -1
@@ -378,13 +378,52 @@ export declare const interestsSchema: z.ZodArray<z.ZodEnum<{
378
378
  * in Me; a member who typed them into a draft before keeps them (the server
379
379
  * carries them at finish, `legacyProfessionalAnswers`).
380
380
  *
381
+ * 2026-12-06 (the user): a new order, and a PAID step. Basics, then "what
382
+ * brings you here" (goals), then the MEMBERSHIP (bought here, mandatory: no
383
+ * "Not now"), then the business, interests, location, photo and the
384
+ * guidelines. Eight steps. The membership step asks nothing (no fields): what
385
+ * passes it is the server's `needsMembership` (`onboardingStatusSchema`),
386
+ * never an answer. The CONTACT step went the same day (the user: "remove the
387
+ * contact details step, put the phone number in the 1st step because we need
388
+ * it in case the user doesn't complete the payment"): the phone is a basics
389
+ * answer, asked and saved first; the links are no step's (Me edits them, and
390
+ * the finish still takes what an older tab typed).
391
+ *
381
392
  * ⚠ THE SERVER'S RESUME CURSOR IS AN INDEX INTO THIS LIST, so re-ordering it
382
393
  * moves every member who stopped part-way. A cursor saved under an older list
383
394
  * is translated by the backend, by step NAME (its progress rows carry the
384
- * list's version); any further change needs the same.
395
+ * list's version, `ONBOARDING_STEPS_VERSION`); any further change bumps that
396
+ * version and needs the same.
385
397
  */
386
- export declare const ONBOARDING_STEP_KEYS: readonly ["basics", "photo", "contact", "location", "goals", "interests", "business", "guidelines"];
398
+ export declare const ONBOARDING_STEP_KEYS: readonly ["basics", "goals", "membership", "business", "interests", "location", "photo", "guidelines"];
387
399
  export type OnboardingStepKey = (typeof ONBOARDING_STEP_KEYS)[number];
400
+ /**
401
+ * Which version of the step list `ONBOARDING_STEP_KEYS` is (0.37.0; until
402
+ * then the backend held this number alone). A step NUMBER means something only
403
+ * against the list it was counted in, so the progress rows carry it, and the
404
+ * `PATCH` body says which list its `step` counts in (`stepsVersion`).
405
+ *
406
+ * 1 up to 0.15.0: seven steps, the first `identity`
407
+ * 2 0.16.0: nine, `identity` split into basics, photo, professional
408
+ * 3 2026-11-22: eight, `professional` gone
409
+ * 4 2026-12-06: eight, a new order with the paid `membership` third and
410
+ * `contact` gone (the phone joined the basics)
411
+ *
412
+ * ⚠ ANY change to `ONBOARDING_STEP_KEYS` bumps this, and the backend keeps the
413
+ * list it replaces (by name), so a member half-way through resumes on the
414
+ * same step and an older client's numbers are read in its own list.
415
+ */
416
+ export declare const ONBOARDING_STEPS_VERSION = 4;
417
+ /**
418
+ * What a step is (0.37.0): `answers`, the member answers its fields; or
419
+ * `membership`, the paid step, which asks nothing and is passed when the
420
+ * server says the member holds a membership (`needsMembership` false). A
421
+ * client shows the membership step only while `needsMembership` is true.
422
+ */
423
+ export declare const ONBOARDING_STEP_KINDS: readonly ["answers", "membership"];
424
+ export type OnboardingStepKind = (typeof ONBOARDING_STEP_KINDS)[number];
425
+ /** The paid step's place in `ONBOARDING_STEP_KEYS` (0.37.0): a cursor past it needs the membership. */
426
+ export declare const ONBOARDING_MEMBERSHIP_STEP: number;
388
427
  /**
389
428
  * The community guidelines a member agrees to at the last step, by version.
390
429
  *
@@ -405,9 +444,11 @@ export declare const GUIDELINES_VERSION: "2026-10-03";
405
444
  */
406
445
  export declare const guidelinesVersionSchema: z.ZodLiteral<"2026-10-03">;
407
446
  /**
408
- * The links the contact step collects, picked from the profile's own links so
409
- * the two cannot disagree on what a link is. The phone is `phoneSchema`: ten
410
- * digits, stored raw with no country code, on the account rather than here.
447
+ * The links sign-up takes, picked from the profile's own links so the two
448
+ * cannot disagree on what a link is. No step asks them since 2026-12-06 (the
449
+ * contact step went); a tab loaded before still sends them. The phone is
450
+ * `phoneSchema`: ten digits, stored raw with no country code, on the account
451
+ * rather than here, and a basics answer since 2026-12-06.
411
452
  */
412
453
  export declare const contactLinksSchema: z.ZodObject<{
413
454
  linkedin: z.ZodOptional<z.ZodURL>;
@@ -909,7 +950,7 @@ export type CompleteOnboardingBodyInput = z.input<typeof completeOnboardingBodyS
909
950
  *
910
951
  * THIS IS THE ONE PLACE A STEP'S FIELDS ARE WRITTEN. `FOUNDER_ONBOARDING_STEPS`
911
952
  * below reads them from here. A test asserts that every finish field belongs to
912
- * exactly one step.
953
+ * exactly one step, but `links` (no step's since 2026-12-06, kept for older tabs).
913
954
  *
914
955
  * These validate the FINISH shape (skipped = absent), not the in-progress form:
915
956
  * a client maps its form state to the slice first. The server does not run them
@@ -917,6 +958,7 @@ export type CompleteOnboardingBodyInput = z.input<typeof completeOnboardingBodyS
917
958
  */
918
959
  export declare const ONBOARDING_STEP_SCHEMAS: {
919
960
  readonly basics: z.ZodObject<{
961
+ phone: z.ZodString;
920
962
  gender: z.ZodEnum<{
921
963
  other: "other";
922
964
  male: "male";
@@ -926,24 +968,6 @@ export declare const ONBOARDING_STEP_SCHEMAS: {
926
968
  dateOfBirth: z.ZodString;
927
969
  fullName: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
928
970
  }, z.core.$strip>;
929
- readonly photo: z.ZodObject<{
930
- avatarMediaId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
931
- }, z.core.$strip>;
932
- readonly contact: z.ZodObject<{
933
- links: z.ZodOptional<z.ZodObject<{
934
- linkedin: z.ZodOptional<z.ZodURL>;
935
- x: z.ZodOptional<z.ZodURL>;
936
- instagram: z.ZodOptional<z.ZodURL>;
937
- }, z.core.$strip>>;
938
- phone: z.ZodString;
939
- }, z.core.$strip>;
940
- readonly location: z.ZodObject<{
941
- location: z.ZodOptional<z.ZodObject<{
942
- stateId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
943
- districtId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
944
- localityId: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
945
- }, z.core.$strict>>;
946
- }, z.core.$strip>;
947
971
  readonly goals: z.ZodObject<{
948
972
  goals: z.ZodArray<z.ZodEnum<{
949
973
  find_cofounder: "find_cofounder";
@@ -966,6 +990,72 @@ export declare const ONBOARDING_STEP_SCHEMAS: {
966
990
  attend_events: "attend_events";
967
991
  }>>;
968
992
  }, z.core.$strip>;
993
+ readonly membership: z.ZodObject<{}, z.core.$strip>;
994
+ readonly business: z.ZodObject<{
995
+ venture: z.ZodOptional<z.ZodObject<{
996
+ tagline: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
997
+ name: z.ZodString;
998
+ industry: z.ZodEnum<{
999
+ agritech: "agritech";
1000
+ ai_ml: "ai_ml";
1001
+ b2b_saas: "b2b_saas";
1002
+ consumer: "consumer";
1003
+ climate: "climate";
1004
+ d2c: "d2c";
1005
+ deeptech: "deeptech";
1006
+ edtech: "edtech";
1007
+ fintech: "fintech";
1008
+ gaming: "gaming";
1009
+ healthtech: "healthtech";
1010
+ logistics: "logistics";
1011
+ manufacturing: "manufacturing";
1012
+ marketplace: "marketplace";
1013
+ media: "media";
1014
+ mobility: "mobility";
1015
+ proptech: "proptech";
1016
+ robotics: "robotics";
1017
+ services: "services";
1018
+ space: "space";
1019
+ other: "other";
1020
+ }>;
1021
+ stage: z.ZodEnum<{
1022
+ idea: "idea";
1023
+ validation: "validation";
1024
+ mvp: "mvp";
1025
+ pre_seed: "pre_seed";
1026
+ seed: "seed";
1027
+ series_a_plus: "series_a_plus";
1028
+ profitable: "profitable";
1029
+ exited: "exited";
1030
+ }>;
1031
+ website: z.ZodOptional<z.ZodURL>;
1032
+ roles: z.ZodArray<z.ZodEnum<{
1033
+ founder: "founder";
1034
+ other: "other";
1035
+ co_founder: "co_founder";
1036
+ ceo: "ceo";
1037
+ cto: "cto";
1038
+ coo: "coo";
1039
+ cfo: "cfo";
1040
+ cmo: "cmo";
1041
+ cpo: "cpo";
1042
+ }>>;
1043
+ teamSize: z.ZodOptional<z.ZodNumber>;
1044
+ }, z.core.$strip>>;
1045
+ legalStructure: z.ZodOptional<z.ZodEnum<{
1046
+ not_registered: "not_registered";
1047
+ sole_proprietorship: "sole_proprietorship";
1048
+ partnership: "partnership";
1049
+ llp: "llp";
1050
+ opc: "opc";
1051
+ private_limited: "private_limited";
1052
+ public_limited: "public_limited";
1053
+ section_8: "section_8";
1054
+ trust_or_society: "trust_or_society";
1055
+ cooperative: "cooperative";
1056
+ registered_abroad: "registered_abroad";
1057
+ }>>;
1058
+ }, z.core.$strip>;
969
1059
  readonly interests: z.ZodObject<{
970
1060
  interests: z.ZodArray<z.ZodEnum<{
971
1061
  ai_ml: "ai_ml";
@@ -1040,76 +1130,21 @@ export declare const ONBOARDING_STEP_SCHEMAS: {
1040
1130
  education_access: "education_access";
1041
1131
  }>>;
1042
1132
  }, z.core.$strip>;
1043
- readonly business: z.ZodObject<{
1044
- venture: z.ZodOptional<z.ZodObject<{
1045
- tagline: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>>;
1046
- name: z.ZodString;
1047
- industry: z.ZodEnum<{
1048
- agritech: "agritech";
1049
- ai_ml: "ai_ml";
1050
- b2b_saas: "b2b_saas";
1051
- consumer: "consumer";
1052
- climate: "climate";
1053
- d2c: "d2c";
1054
- deeptech: "deeptech";
1055
- edtech: "edtech";
1056
- fintech: "fintech";
1057
- gaming: "gaming";
1058
- healthtech: "healthtech";
1059
- logistics: "logistics";
1060
- manufacturing: "manufacturing";
1061
- marketplace: "marketplace";
1062
- media: "media";
1063
- mobility: "mobility";
1064
- proptech: "proptech";
1065
- robotics: "robotics";
1066
- services: "services";
1067
- space: "space";
1068
- other: "other";
1069
- }>;
1070
- stage: z.ZodEnum<{
1071
- idea: "idea";
1072
- validation: "validation";
1073
- mvp: "mvp";
1074
- pre_seed: "pre_seed";
1075
- seed: "seed";
1076
- series_a_plus: "series_a_plus";
1077
- profitable: "profitable";
1078
- exited: "exited";
1079
- }>;
1080
- website: z.ZodOptional<z.ZodURL>;
1081
- roles: z.ZodArray<z.ZodEnum<{
1082
- founder: "founder";
1083
- other: "other";
1084
- co_founder: "co_founder";
1085
- ceo: "ceo";
1086
- cto: "cto";
1087
- coo: "coo";
1088
- cfo: "cfo";
1089
- cmo: "cmo";
1090
- cpo: "cpo";
1091
- }>>;
1092
- teamSize: z.ZodOptional<z.ZodNumber>;
1093
- }, z.core.$strip>>;
1094
- legalStructure: z.ZodOptional<z.ZodEnum<{
1095
- not_registered: "not_registered";
1096
- sole_proprietorship: "sole_proprietorship";
1097
- partnership: "partnership";
1098
- llp: "llp";
1099
- opc: "opc";
1100
- private_limited: "private_limited";
1101
- public_limited: "public_limited";
1102
- section_8: "section_8";
1103
- trust_or_society: "trust_or_society";
1104
- cooperative: "cooperative";
1105
- registered_abroad: "registered_abroad";
1106
- }>>;
1133
+ readonly location: z.ZodObject<{
1134
+ location: z.ZodOptional<z.ZodObject<{
1135
+ stateId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1136
+ districtId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1137
+ localityId: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1138
+ }, z.core.$strict>>;
1139
+ }, z.core.$strip>;
1140
+ readonly photo: z.ZodObject<{
1141
+ avatarMediaId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
1107
1142
  }, z.core.$strip>;
1108
1143
  readonly guidelines: z.ZodObject<{
1109
1144
  guidelinesVersion: z.ZodLiteral<"2026-10-03">;
1110
1145
  }, z.core.$strip>;
1111
1146
  };
1112
- /** One step's slice, parsed: `OnboardingStepBody<'contact'>` is `{ phone, links? }`. */
1147
+ /** One step's slice, parsed: `OnboardingStepBody<'basics'>` is `{ fullName, phone, dateOfBirth, gender }`. */
1113
1148
  export type OnboardingStepBody<K extends OnboardingStepKey> = z.infer<(typeof ONBOARDING_STEP_SCHEMAS)[K]>;
1114
1149
  /** A finish-body field name. */
1115
1150
  export type OnboardingField = keyof CompleteOnboardingBody;
@@ -1133,14 +1168,22 @@ export interface OnboardingStepConfig {
1133
1168
  */
1134
1169
  labelKey: `onboarding.steps.${OnboardingStepKey}.label`;
1135
1170
  titleKey: `onboarding.steps.${OnboardingStepKey}.title`;
1136
- /** The step's slice of the finish body, in schema order. */
1171
+ /** The step's slice of the finish body, in schema order (none for the membership step). */
1137
1172
  fields: readonly OnboardingField[];
1138
1173
  /**
1139
1174
  * False when the whole step may be passed without answering anything.
1140
- * DERIVED: a step is optional exactly when its slice accepts an empty
1141
- * object, so "skippable" can never disagree with what the finish accepts.
1175
+ * DERIVED: a step of answers is optional exactly when its slice accepts an
1176
+ * empty object, so "skippable" can never disagree with what the finish
1177
+ * accepts. The membership step is ALWAYS required (the user, 2026-12-06: no
1178
+ * "Not now"): it asks nothing, and the server passes it.
1142
1179
  */
1143
1180
  required: boolean;
1181
+ /**
1182
+ * `membership` for the paid step, `answers` for every other (0.37.0). A
1183
+ * client shows the membership step only while the status's
1184
+ * `needsMembership` is true, and moves past it once that is false.
1185
+ */
1186
+ kind: OnboardingStepKind;
1144
1187
  }
1145
1188
  export declare const FOUNDER_ONBOARDING_STEPS: readonly OnboardingStepConfig[];
1146
1189
  export declare const ONBOARDING_TOTAL_STEPS: number;
@@ -1152,7 +1195,11 @@ export declare const completeOnboardingResponseSchema: z.ZodObject<{
1152
1195
  username: z.ZodString;
1153
1196
  }, z.core.$strip>;
1154
1197
  export type CompleteOnboardingResponse = z.infer<typeof completeOnboardingResponseSchema>;
1155
- /** How many steps the list had before `professional` went: an older client's "past the last step". */
1198
+ /**
1199
+ * How many steps the list had before `professional` went: an older client's
1200
+ * "past the last step". (Which list a `PATCH` step counts in is the body's
1201
+ * `stepsVersion`, 2026-12-06.)
1202
+ */
1156
1203
  export declare const LEGACY_ONBOARDING_TOTAL_STEPS = 9;
1157
1204
  /**
1158
1205
  * A title, about and skills a member typed into the step that went
@@ -1232,6 +1279,7 @@ export type OnboardingDraft = z.infer<typeof onboardingDraftSchema>;
1232
1279
  */
1233
1280
  export declare const onboardingProgressUpdateSchema: z.ZodObject<{
1234
1281
  step: z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>>;
1282
+ stepsVersion: z.ZodOptional<z.ZodNumber>;
1235
1283
  draft: z.ZodOptional<z.ZodPipe<z.ZodObject<{
1236
1284
  fullName: z.ZodOptional<z.ZodString>;
1237
1285
  gender: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
@@ -1619,6 +1667,7 @@ export declare const onboardingStatusSchema: z.ZodObject<{
1619
1667
  }, z.core.$strip>>;
1620
1668
  placeholder: z.ZodOptional<z.ZodString>;
1621
1669
  }, z.core.$strip>>;
1670
+ needsMembership: z.ZodDefault<z.ZodBoolean>;
1622
1671
  }, z.core.$strip>;
1623
1672
  export type OnboardingStatus = z.infer<typeof onboardingStatusSchema>;
1624
1673
  //# sourceMappingURL=onboarding.d.ts.map
@@ -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,EAWT,WAAW,EAGZ,MAAM,sBAAsB,CAAC;AAyB9B;;;;;;;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,wBAAgB,qBAAqB,C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AAO,MAAM,wBAAwB;;;;;;;;;;;;;EAA+B,CAAC;AACrE,eAAO,MAAM,qBAAqB,2KAAmC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;mCAAyD,CAAC;AAC5F,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuCzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6BjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -488,21 +488,59 @@ export const interestsSchema = z
488
488
  * in Me; a member who typed them into a draft before keeps them (the server
489
489
  * carries them at finish, `legacyProfessionalAnswers`).
490
490
  *
491
+ * 2026-12-06 (the user): a new order, and a PAID step. Basics, then "what
492
+ * brings you here" (goals), then the MEMBERSHIP (bought here, mandatory: no
493
+ * "Not now"), then the business, interests, location, photo and the
494
+ * guidelines. Eight steps. The membership step asks nothing (no fields): what
495
+ * passes it is the server's `needsMembership` (`onboardingStatusSchema`),
496
+ * never an answer. The CONTACT step went the same day (the user: "remove the
497
+ * contact details step, put the phone number in the 1st step because we need
498
+ * it in case the user doesn't complete the payment"): the phone is a basics
499
+ * answer, asked and saved first; the links are no step's (Me edits them, and
500
+ * the finish still takes what an older tab typed).
501
+ *
491
502
  * ⚠ THE SERVER'S RESUME CURSOR IS AN INDEX INTO THIS LIST, so re-ordering it
492
503
  * moves every member who stopped part-way. A cursor saved under an older list
493
504
  * is translated by the backend, by step NAME (its progress rows carry the
494
- * list's version); any further change needs the same.
505
+ * list's version, `ONBOARDING_STEPS_VERSION`); any further change bumps that
506
+ * version and needs the same.
495
507
  */
496
508
  export const ONBOARDING_STEP_KEYS = [
497
509
  'basics',
498
- 'photo',
499
- 'contact',
500
- 'location',
501
510
  'goals',
502
- 'interests',
511
+ 'membership',
503
512
  'business',
513
+ 'interests',
514
+ 'location',
515
+ 'photo',
504
516
  'guidelines',
505
517
  ];
518
+ /**
519
+ * Which version of the step list `ONBOARDING_STEP_KEYS` is (0.37.0; until
520
+ * then the backend held this number alone). A step NUMBER means something only
521
+ * against the list it was counted in, so the progress rows carry it, and the
522
+ * `PATCH` body says which list its `step` counts in (`stepsVersion`).
523
+ *
524
+ * 1 up to 0.15.0: seven steps, the first `identity`
525
+ * 2 0.16.0: nine, `identity` split into basics, photo, professional
526
+ * 3 2026-11-22: eight, `professional` gone
527
+ * 4 2026-12-06: eight, a new order with the paid `membership` third and
528
+ * `contact` gone (the phone joined the basics)
529
+ *
530
+ * ⚠ ANY change to `ONBOARDING_STEP_KEYS` bumps this, and the backend keeps the
531
+ * list it replaces (by name), so a member half-way through resumes on the
532
+ * same step and an older client's numbers are read in its own list.
533
+ */
534
+ export const ONBOARDING_STEPS_VERSION = 4;
535
+ /**
536
+ * What a step is (0.37.0): `answers`, the member answers its fields; or
537
+ * `membership`, the paid step, which asks nothing and is passed when the
538
+ * server says the member holds a membership (`needsMembership` false). A
539
+ * client shows the membership step only while `needsMembership` is true.
540
+ */
541
+ export const ONBOARDING_STEP_KINDS = ['answers', 'membership'];
542
+ /** The paid step's place in `ONBOARDING_STEP_KEYS` (0.37.0): a cursor past it needs the membership. */
543
+ export const ONBOARDING_MEMBERSHIP_STEP = ONBOARDING_STEP_KEYS.indexOf('membership');
506
544
  // ─── Guidelines ──────────────────────────────────────────────────────────────
507
545
  /**
508
546
  * The community guidelines a member agrees to at the last step, by version.
@@ -529,9 +567,11 @@ export const guidelinesVersionSchema = z.literal(GUIDELINES_VERSION, {
529
567
  });
530
568
  // ─── Contact ─────────────────────────────────────────────────────────────────
531
569
  /**
532
- * The links the contact step collects, picked from the profile's own links so
533
- * the two cannot disagree on what a link is. The phone is `phoneSchema`: ten
534
- * digits, stored raw with no country code, on the account rather than here.
570
+ * The links sign-up takes, picked from the profile's own links so the two
571
+ * cannot disagree on what a link is. No step asks them since 2026-12-06 (the
572
+ * contact step went); a tab loaded before still sends them. The phone is
573
+ * `phoneSchema`: ten digits, stored raw with no country code, on the account
574
+ * rather than here, and a basics answer since 2026-12-06.
535
575
  */
536
576
  export const contactLinksSchema = founderLinksSchema.pick({
537
577
  linkedin: true,
@@ -760,6 +800,11 @@ const completeOnboardingBodyFields = z.object({
760
800
  */
761
801
  avatarMediaId: objectIdSchema.optional(),
762
802
  phone: phoneSchema,
803
+ /**
804
+ * IN NO STEP since 2026-12-06 (the contact step went; Me edits the links).
805
+ * Still taken, optional: a tab loaded before sends what its member typed,
806
+ * and a draft saved then holds it, so the finish keeps it, never drops it.
807
+ */
763
808
  links: contactLinksSchema.optional(),
764
809
  /**
765
810
  * Absent when the member left the step without a place. Area ids (0.19.0,
@@ -827,22 +872,27 @@ export const completeOnboardingBodySchema = completeOnboardingBodyFields.refine(
827
872
  *
828
873
  * THIS IS THE ONE PLACE A STEP'S FIELDS ARE WRITTEN. `FOUNDER_ONBOARDING_STEPS`
829
874
  * below reads them from here. A test asserts that every finish field belongs to
830
- * exactly one step.
875
+ * exactly one step, but `links` (no step's since 2026-12-06, kept for older tabs).
831
876
  *
832
877
  * These validate the FINISH shape (skipped = absent), not the in-progress form:
833
878
  * a client maps its form state to the slice first. The server does not run them
834
879
  * on a draft save, because a half-answered step must be storable.
835
880
  */
836
881
  export const ONBOARDING_STEP_SCHEMAS = {
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.)
840
- basics: completeOnboardingBodyFields.pick({ fullName: true, gender: true, dateOfBirth: true }),
841
- photo: completeOnboardingBodyFields.pick({ avatarMediaId: true }),
842
- contact: completeOnboardingBodyFields.pick({ phone: true, links: true }),
843
- location: completeOnboardingBodyFields.pick({ location: true }),
882
+ // 0.16.0: the old `identity` step, split by the user. (The third part,
883
+ // `professional`, went on 2026-11-22.) 2026-12-06: the phone joined it,
884
+ // the user's order, all four required: the phone is asked and SAVED first,
885
+ // so a member who stops at the payment can still be reached.
886
+ basics: completeOnboardingBodyFields.pick({
887
+ fullName: true,
888
+ phone: true,
889
+ dateOfBirth: true,
890
+ gender: true,
891
+ }),
844
892
  goals: completeOnboardingBodyFields.pick({ goals: true }),
845
- interests: completeOnboardingBodyFields.pick({ interests: true }),
893
+ // The paid step (2026-12-06): it asks nothing, so nothing of it is in the
894
+ // finish body. What passes it is the server's `needsMembership`.
895
+ membership: completeOnboardingBodyFields.pick({}),
846
896
  // "Tell us about your startup" (2026-11-22).
847
897
  business: completeOnboardingBodyFields
848
898
  .pick({
@@ -850,16 +900,21 @@ export const ONBOARDING_STEP_SCHEMAS = {
850
900
  legalStructure: true,
851
901
  })
852
902
  .refine(registrationHasVenture, REGISTRATION_NEEDS_VENTURE),
903
+ interests: completeOnboardingBodyFields.pick({ interests: true }),
904
+ location: completeOnboardingBodyFields.pick({ location: true }),
905
+ photo: completeOnboardingBodyFields.pick({ avatarMediaId: true }),
853
906
  guidelines: completeOnboardingBodyFields.pick({ guidelinesVersion: true }),
854
907
  };
855
908
  export const FOUNDER_ONBOARDING_STEPS = ONBOARDING_STEP_KEYS.map((key) => {
856
909
  const slice = ONBOARDING_STEP_SCHEMAS[key];
910
+ const kind = key === 'membership' ? 'membership' : 'answers';
857
911
  return {
858
912
  key,
859
913
  labelKey: `onboarding.steps.${key}.label`,
860
914
  titleKey: `onboarding.steps.${key}.title`,
861
915
  fields: Object.keys(slice.shape),
862
- required: !slice.safeParse({}).success,
916
+ required: kind === 'membership' || !slice.safeParse({}).success,
917
+ kind,
863
918
  };
864
919
  });
865
920
  export const ONBOARDING_TOTAL_STEPS = FOUNDER_ONBOARDING_STEPS.length;
@@ -871,7 +926,11 @@ export const completeOnboardingResponseSchema = z.object({
871
926
  username: usernameSchema,
872
927
  });
873
928
  // ─── 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". */
929
+ /**
930
+ * How many steps the list had before `professional` went: an older client's
931
+ * "past the last step". (Which list a `PATCH` step counts in is the body's
932
+ * `stepsVersion`, 2026-12-06.)
933
+ */
875
934
  export const LEGACY_ONBOARDING_TOTAL_STEPS = 9;
876
935
  /**
877
936
  * The step that went (2026-11-22) asked a title, an about and skills. A client
@@ -961,14 +1020,25 @@ export const onboardingProgressUpdateSchema = z.object({
961
1020
  * Up to the OLD list's end (nine steps, 2026-11-22), brought within today's:
962
1021
  * a client loaded before the step went still sends "past the last step" as 9
963
1022
  * on its way to finish, and is not refused for it.
1023
+ *
1024
+ * ⚠ A NUMBER IN THE LIST NAMED BY `stepsVersion`. The server reads it in
1025
+ * that list and saves the same step, by name, in today's.
964
1026
  */
965
1027
  step: z
966
1028
  .number()
967
1029
  .int()
968
1030
  .min(0)
969
- .max(LEGACY_ONBOARDING_TOTAL_STEPS)
1031
+ .max(Math.max(LEGACY_ONBOARDING_TOTAL_STEPS, ONBOARDING_TOTAL_STEPS))
970
1032
  .transform((step) => Math.min(step, ONBOARDING_TOTAL_STEPS))
971
1033
  .optional(),
1034
+ /**
1035
+ * Which step list `step` counts in (0.37.0): a client sends
1036
+ * `ONBOARDING_STEPS_VERSION`, always. ABSENT is a client from before this
1037
+ * field (2026-12-06), whose numbers are the eight-step list's (version 3):
1038
+ * the server translates them by name, so a tab loaded before the new order
1039
+ * saves the step it means and not the one now in its place.
1040
+ */
1041
+ stepsVersion: z.number().int().min(1).max(ONBOARDING_STEPS_VERSION).optional(),
972
1042
  /**
973
1043
  * The answers of the step being saved, IN THE FORM'S OWN SHAPE (0.18.0):
974
1044
  * half-answered is fine (that is the form: text as typed, `null` for "not
@@ -1005,5 +1075,22 @@ export const onboardingStatusSchema = z.object({
1005
1075
  * draft.
1006
1076
  */
1007
1077
  photo: mediaImageSchema.optional(),
1078
+ /**
1079
+ * The member must buy the membership before going past the membership step
1080
+ * (0.37.0; the user, 2026-12-06: mandatory, no "Not now"). The SERVER
1081
+ * decides, and refuses a `PATCH` past that step and the finish
1082
+ * (`MEMBERSHIP_REQUIRED`) while it is true: payments are live, the account
1083
+ * holds no membership (one granted free for life, the early bird or "joined
1084
+ * before payments", counts as held), and holds no staff role.
1085
+ *
1086
+ * While true, `step` is never past the membership step. When false the
1087
+ * client does not show that step: it moves on with a `PATCH` to the step
1088
+ * after it. After a purchase the client asks again (`GET`) until this is
1089
+ * false: the membership is granted when the payment is captured.
1090
+ *
1091
+ * Always false once `onboarded`. Defaults to false so a client reading an
1092
+ * older server sees no paid step.
1093
+ */
1094
+ needsMembership: z.boolean().default(false),
1008
1095
  });
1009
1096
  //# sourceMappingURL=onboarding.js.map