founder-schema 0.33.0 → 0.35.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.
- package/dist/domains/billing/billing.d.ts +1 -1
- package/dist/domains/billing/billing.d.ts.map +1 -1
- package/dist/domains/billing/billing.js +1 -1
- package/dist/domains/billing/billing.js.map +1 -1
- package/dist/domains/billing/gst.d.ts +5 -0
- package/dist/domains/billing/gst.d.ts.map +1 -1
- package/dist/domains/billing/gst.js +7 -0
- package/dist/domains/billing/gst.js.map +1 -1
- package/dist/domains/membership/membership.d.ts +38 -0
- package/dist/domains/membership/membership.d.ts.map +1 -1
- package/dist/domains/membership/membership.js +9 -1
- package/dist/domains/membership/membership.js.map +1 -1
- package/dist/domains/notifications/notifications.d.ts +17 -1
- package/dist/domains/notifications/notifications.d.ts.map +1 -1
- package/dist/domains/notifications/notifications.js +11 -0
- package/dist/domains/notifications/notifications.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"membership.js","sourceRoot":"","sources":["../../../src/domains/membership/membership.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAE3E;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,UAAU;IACV,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CatalogSchema (anyone: prices and what each includes)\n * GET /api/v1/me/membership meMembershipSchema (signed in: what I hold, what I have used)\n *\n * THE USER'S RULING (2026-10-11): looking is free; taking part needs a\n * MEMBERSHIP, Rs 99 once, for life (the first 100 free with a coupon). On top,\n * two PLANS: Premium (5 live products, 15 new people a month to message) and\n * Business (unlimited products, 50 new people). Prices and plan contents come\n * from the server, so a change needs no client release.\n *\n * A PLAN IS TIME, PREPAID, IN TWO BLOCKS: Business time first, then Premium\n * time. Buying more APPENDS; buying Premium while on Business waits its turn;\n * buying Business while on Premium is an upgrade that turns the Premium time\n * left into Business for the difference (`domains/billing`). `blocks` says it\n * as it stands, from now on.\n *\n * Money is integer PAISE everywhere in this package: never a float of rupees.\n *\n * @module founder-schema/domains/membership\n */\n\nimport { z } from 'zod';\nimport { standingSchema } from '../../access/standing.js';\nimport { objectIdSchema } from '../../core/common.js';\nimport { DAY_MS, INDIA_UTC_OFFSET_MS } from '../../core/limits.js';\nimport { billingDetailsSchema } from '../billing/gst.js';\nimport { paymentMethodSnapshotSchema } from '../billing/payment-method.js';\n\n/**\n * How someone came to hold a membership. ⚠ Stored: append only.\n *\n * founding free for life, numbered \"Founding member #N\": one of the first\n * `FOUNDING_PLACES` people to join the launch WAITLIST (0.14.0,\n * the user's rule of 2026-10-16). Before that, the founding\n * coupon (`FIRST100`), which no longer exists on main.\n * coupon another free-membership coupon\n * paid Rs 99, captured\n * granted staff gave it (a partner, a press account), with a reason on record\n * early_bird free for life, because the account was created before\n * `EARLY_BIRD_UNTIL` (0.21.0, the user's launch offer of 2026-11-14:\n * everyone who joins before Tue 17 Nov 2026, 12:00 IST), or while\n * payments were not live yet: before the catalog's `paymentsLiveAt`,\n * or with none set (the user, 2026-11-19: whoever joins while\n * payments are \"coming soon\" keeps the membership free for life)\n */\nexport const MEMBERSHIP_KIND_VALUES = [\n 'founding',\n 'coupon',\n 'paid',\n 'granted',\n 'early_bird',\n] as const;\nexport const membershipKindSchema = z.enum(MEMBERSHIP_KIND_VALUES);\nexport type MembershipKind = z.infer<typeof membershipKindSchema>;\n\n/**\n * A stored membership's state (0.20.0: memberships are their own rows, so\n * none is ever erased). `active` is held now, at most one per member; `ended`\n * is history: a refunded payment, a staff revoke, or the account's deletion,\n * said by `MEMBERSHIP_END_REASON_VALUES`.\n */\nexport const MEMBERSHIP_STATUS_VALUES = ['active', 'ended'] as const;\nexport const membershipStatusSchema = z.enum(MEMBERSHIP_STATUS_VALUES);\nexport type MembershipStatus = z.infer<typeof membershipStatusSchema>;\n\nexport const MEMBERSHIP_END_REASON_VALUES = ['refunded', 'revoked', 'account_deleted'] as const;\nexport const membershipEndReasonSchema = z.enum(MEMBERSHIP_END_REASON_VALUES);\nexport type MembershipEndReason = z.infer<typeof membershipEndReasonSchema>;\n\n/** ⚠ Stored: append only. Highest last is NOT implied: compare with `PLAN_TIER_RANK`. */\nexport const PLAN_TIER_VALUES = ['premium', 'business'] as const;\nexport const planTierSchema = z.enum(PLAN_TIER_VALUES);\nexport type PlanTier = z.infer<typeof planTierSchema>;\n\n/** Which tier outranks which: Business above Premium. */\nexport const PLAN_TIER_RANK: Readonly<Record<PlanTier, number>> = { premium: 1, business: 2 };\n\n/** One payment buys a calendar month or a calendar year. ⚠ Stored: append only. */\nexport const PLAN_PERIOD_VALUES = ['month', 'year'] as const;\nexport const planPeriodSchema = z.enum(PLAN_PERIOD_VALUES);\nexport type PlanPeriod = z.infer<typeof planPeriodSchema>;\n\n/** Integer paise, never negative. Rs 399 is 39900. */\nexport const paiseSchema = z.number().int().nonnegative();\nexport type Paise = z.infer<typeof paiseSchema>;\n\n/**\n * What a standing or a plan allows that is COUNTED (the ability says whether;\n * these say how many).\n *\n * productsLive products live at once; null is unlimited (the server\n * still holds a safety ceiling, `PRODUCTS_LIVE_SAFETY_MAX`)\n * newPeoplePerMonth conversations a month with people you do not know\n */\nexport const planLimitsSchema = z.object({\n productsLive: z.number().int().nonnegative().nullable(),\n newPeoplePerMonth: z.number().int().nonnegative(),\n});\nexport type PlanLimits = z.infer<typeof planLimitsSchema>;\n\n/**\n * What a standing or a plan UNLOCKS beyond the counted limits (0.32.0, plans v1;\n * founder-circle-backend docs/plans-v1-features.md, the user 2026-11-28).\n *\n * badge a \"Premium\" / \"Business\" badge on the member's person\n * insightsDays how far back a product's insights go: 0 = the totals only\n * (what a card already shows), else that many days of series\n * insightsSources where a product's visitors came from (Discover, feed...)\n * profileViewersDays who viewed your profile: 0 = the count only, else the\n * names for that many days\n * featured Discover's \"Featured\" row:\n * none not offered\n * monthly_run one run of `runDays` days a calendar\n * month (India time), one product\n * always one product at a time, with no end of its own\n */\nexport const FEATURED_KIND_VALUES = ['none', 'monthly_run', 'always'] as const;\nexport const featuredKindSchema = z.enum(FEATURED_KIND_VALUES);\nexport type FeaturedKind = z.infer<typeof featuredKindSchema>;\n\nexport const planFeaturesSchema = z.object({\n badge: z.boolean(),\n insightsDays: z.number().int().nonnegative(),\n insightsSources: z.boolean(),\n profileViewersDays: z.number().int().nonnegative(),\n featured: z.object({\n kind: featuredKindSchema,\n /** For `monthly_run`: the run's length in days; 0 otherwise. */\n runDays: z.number().int().nonnegative(),\n }),\n});\nexport type PlanFeatures = z.infer<typeof planFeaturesSchema>;\n\n// ─── The price list ──────────────────────────────────────────────────────────\n//\n// THE ONE PLACE a price or a plan's limit is written (0.12.0). The backend\n// prices and counts from these (`modules/plans/catalog.ts`), `GET /plans`\n// serves them, and the web's Terms of Service are written FROM them, so the\n// Terms can never state a price the server does not charge. A change here is\n// a schema release, then the backend, then the web. Integer PAISE, GST\n// included. hary's India-first prices (the user: \"you decide, India first\").\n\n/** The membership: once, for life. */\nexport const MEMBERSHIP_PRICE_PAISE = 9_900;\n\n/** What a member with no plan may: 1 live product, no conversations with people they do not know. */\nexport const MEMBER_LIMIT_VALUES: PlanLimits = { productsLive: 1, newPeoplePerMonth: 0 };\n\n/**\n * What a member with no plan has unlocked (0.32.0): no badge, a product's totals\n * only, the COUNT of who viewed them (last 30 days), nothing featured.\n */\nexport const MEMBER_FEATURE_VALUES: PlanFeatures = {\n badge: false,\n insightsDays: 0,\n insightsSources: false,\n profileViewersDays: 0,\n featured: { kind: 'none', runDays: 0 },\n};\n\n/** Each plan's name, prices, limits and features. Exhaustive by type. */\nexport const PLAN_SPECS: Readonly<\n Record<\n PlanTier,\n {\n name: string;\n prices: Readonly<Record<PlanPeriod, number>>;\n limits: PlanLimits;\n features: PlanFeatures;\n }\n >\n> = {\n premium: {\n name: 'Premium',\n prices: { month: 39_900, year: 399_900 },\n limits: { productsLive: 5, newPeoplePerMonth: 15 },\n features: {\n badge: true,\n insightsDays: 30,\n insightsSources: false,\n profileViewersDays: 30,\n featured: { kind: 'monthly_run', runDays: 7 },\n },\n },\n business: {\n name: 'Business',\n prices: { month: 99_900, year: 999_900 },\n limits: { productsLive: null, newPeoplePerMonth: 50 },\n features: {\n badge: true,\n insightsDays: 90,\n insightsSources: true,\n profileViewersDays: 90,\n featured: { kind: 'always', runDays: 0 },\n },\n },\n};\n\n/** The number of days a member (no plan) is told \"N people viewed your profile\" over. */\nexport const MEMBER_PROFILE_VIEW_COUNT_DAYS = 30;\n\n// ─── Plan time on India's calendar, and an upgrade's price (0.18.0) ──────────\n//\n// Moved here from the backend's plan timeline so the price a member is charged\n// and the rule the Terms of Service state are ONE function: the Terms said\n// \"Rs 20 a day for the rest\" for a week after the server stopped charging it\n// (2026-10-13).\n\n/**\n * A calendar month or year later on India's calendar (`count` of them), the\n * day clamped to the month's last: 31 January plus a month is 28 or 29\n * February. India has one offset all year, so its calendar is UTC's, shifted.\n */\nexport function addPlanPeriod(from: Date, period: PlanPeriod, count = 1): Date {\n const months = period === 'year' ? 12 * count : count;\n const local = new Date(from.getTime() + INDIA_UTC_OFFSET_MS);\n const m = local.getUTCMonth() + months;\n const targetYear = local.getUTCFullYear() + Math.floor(m / 12);\n const targetMonth = ((m % 12) + 12) % 12;\n const lastDay = new Date(Date.UTC(targetYear, targetMonth + 1, 0)).getUTCDate();\n const shifted = Date.UTC(\n targetYear,\n targetMonth,\n Math.min(local.getUTCDate(), lastDay),\n local.getUTCHours(),\n local.getUTCMinutes(),\n local.getUTCSeconds(),\n local.getUTCMilliseconds(),\n );\n return new Date(shifted - INDIA_UTC_OFFSET_MS);\n}\n\n/** What an upgrade costs for each whole calendar year of Premium left: the yearly difference. */\nexport const UPGRADE_PER_YEAR = PLAN_SPECS.business.prices.year - PLAN_SPECS.premium.prices.year;\n/** ...for each whole calendar month after the years: the monthly difference (a 31-day month and February alike). */\nexport const UPGRADE_PER_MONTH = PLAN_SPECS.business.prices.month - PLAN_SPECS.premium.prices.month;\n/** The days left over are charged as this many to a month. */\nexport const UPGRADE_DAYS_PER_MONTH = 30;\n/** ...so each day left over costs this, never more than `UPGRADE_PER_MONTH` for them all. */\nexport const UPGRADE_PER_DAY = UPGRADE_PER_MONTH / UPGRADE_DAYS_PER_MONTH;\n\n/**\n * What an upgrade of `convertedMs` of Premium, from `now`, costs in paise (the\n * user: \"ask for the rest of the money, the difference\"). Each whole calendar\n * year left costs `UPGRADE_PER_YEAR`; each whole calendar month after that,\n * `UPGRADE_PER_MONTH`; the days left over `UPGRADE_PER_DAY` each, but never\n * more than one month's. The part below a year never costs more than a year's.\n * A part day counts as a day; rounded up to the rupee.\n */\nexport function upgradePrice(convertedMs: number, now: Date): number {\n const end = now.getTime() + Math.max(convertedMs, 1);\n let years = 0;\n while (addPlanPeriod(now, 'year', years + 1).getTime() <= end) years += 1;\n const afterYears = addPlanPeriod(now, 'year', years);\n let months = 0;\n while (addPlanPeriod(afterYears, 'month', months + 1).getTime() <= end) months += 1;\n const restDays = Math.ceil((end - addPlanPeriod(afterYears, 'month', months).getTime()) / DAY_MS);\n const belowAYear =\n months * UPGRADE_PER_MONTH + Math.min(restDays * UPGRADE_PER_DAY, UPGRADE_PER_MONTH);\n const paise = years * UPGRADE_PER_YEAR + Math.min(belowAYear, UPGRADE_PER_YEAR);\n return Math.ceil(paise / 100) * 100;\n}\n\n/**\n * Free founding memberships (0.14.0): the first 100 people to join the launch\n * waitlist get their membership free, numbered #1 to #100 by their place\n * (the user, 2026-10-16). Everyone else pays `MEMBERSHIP_PRICE_PAISE` once.\n * No code gives a founding place any more.\n */\nexport const FOUNDING_PLACES = 100;\n\n/**\n * THE EARLY-BIRD OFFER (0.21.0; the user, 2026-11-14): everyone whose Founder\n * Circle account was CREATED before this instant gets the membership free, for\n * life, with no code and no limit on how many. After it, the membership costs\n * `MEMBERSHIP_PRICE_PAISE` as before.\n *\n * Tue 17 Nov 2026, 12:00 IST. The ONE place it is written: the server grants\n * from it (`isEarlyBird`), and the web's landing, pricing, membership screen,\n * Terms and llms.txt word the offer from it and stop offering it at this\n * instant. Moving it is a schema release, like a price.\n *\n * The server grants the same free membership to an account created while\n * payments are not live (before the catalog's `paymentsLiveAt`, or with none\n * set; the user, 2026-11-19). That rule is the server's: `isEarlyBird` here\n * answers for this instant alone.\n */\nexport const EARLY_BIRD_UNTIL = '2026-11-17T06:30:00.000Z';\n\nconst EARLY_BIRD_UNTIL_MS = Date.parse(EARLY_BIRD_UNTIL);\n\n/** Whether an account created at `createdAt` gets the early-bird membership. */\nexport function isEarlyBird(createdAt: Date | string | number): boolean {\n const at = createdAt instanceof Date ? createdAt.getTime() : new Date(createdAt).getTime();\n return Number.isFinite(at) && at < EARLY_BIRD_UNTIL_MS;\n}\n\n/** Whether the offer is still open at `now`: what the pages show. */\nexport function earlyBirdOpen(now: Date | number = Date.now()): boolean {\n return (now instanceof Date ? now.getTime() : now) < EARLY_BIRD_UNTIL_MS;\n}\n\n// ─── GET /plans ──────────────────────────────────────────────────────────────\n\nexport const planOfferSchema = z.object({\n tier: planTierSchema,\n /** \"Premium\", \"Business\": the server's word, so a rename needs no client release. */\n name: z.string(),\n /** GST included. */\n prices: z.object({ month: paiseSchema, year: paiseSchema }),\n limits: planLimitsSchema,\n /** What it unlocks (0.32.0). Defaults to the member's when an older server leaves it out. */\n features: planFeaturesSchema.default(MEMBER_FEATURE_VALUES),\n});\nexport type PlanOffer = z.infer<typeof planOfferSchema>;\n\nexport const planCatalogSchema = z.object({\n currency: z.literal('INR'),\n membership: z.object({\n /** Once, for life, GST included. */\n price: paiseSchema,\n limits: planLimitsSchema,\n /** What a member with no plan has unlocked (0.32.0). */\n features: planFeaturesSchema.default(MEMBER_FEATURE_VALUES),\n }),\n /** Lowest first. */\n plans: z.array(planOfferSchema),\n /** Every purchase is refunded in full within this many days of paying. */\n refundWindowDays: z.number().int().positive(),\n /**\n * Whether payments are LIVE here now: the server's `PAYMENTS_LIVE_AT` is set\n * and has passed, and its gateway is configured. While false, plans and\n * payments are \"coming soon\": a client shows no price, plan, pay button or\n * code box, and every quote and order (a free code's too) answers\n * `PAYMENTS_UNAVAILABLE` (the user, 2026-11-19).\n */\n paymentsEnabled: z.boolean(),\n /**\n * The instant payments go (or went) live, or null while none is set. Every\n * account CREATED before it, or while it is null, holds the membership free\n * for life (kind `early_bird`), so the Terms state it as a date. Defaults to\n * null when an older server leaves it out, so a client can ship first.\n */\n paymentsLiveAt: z.iso.datetime().nullable().default(null),\n /**\n * Whether a plan may renew AUTOMATICALLY here (0.31.0, payments v2). The\n * server's two keys: its `SUBSCRIPTIONS_ENABLED` is set AND its gateway plans\n * resolve, and payments are live. While false a client offers no\n * \"Renew automatically\" switch: every plan is prepaid. Defaults to false\n * when an older server leaves it out.\n */\n autoRenewEnabled: z.boolean().default(false),\n});\nexport type PlanCatalog = z.infer<typeof planCatalogSchema>;\n\n// ─── Auto-renewal (0.31.0, payments v2) ──────────────────────────────────────\n//\n// The user, 2026-11-25: plans RENEW AUTOMATICALLY BY DEFAULT, and the member can\n// turn it off (founder-circle-backend docs/payments-v2-plan.md, section 3a). An\n// auto-renewal is a Razorpay subscription for one tier and period: each charge\n// it makes is an ORDER that buys one period, appended to the blocks exactly as\n// a manual purchase is (same invoice, same 7-day refund). It adds time only\n// when a charge lands, so a failed charge takes nothing away: the plan ends\n// when its time runs out, as a prepaid one does.\n\n/**\n * Where an auto-renewal stands: Razorpay's subscription states, as it names\n * them. ⚠ Stored: append only.\n *\n * created made, waiting for the member to authorise it at Checkout\n * authenticated authorised; its first charge is on a later date (it starts\n * when the time already held ends)\n * active charging each period\n * pending a charge failed; Razorpay is retrying (T+1 to T+3 days)\n * halted every retry failed: no more charges (auto-renew is off)\n * cancelled turned off (at the end of the period, or at once after a\n * refund), or replaced\n * completed its cycles ran out\n * expired never authorised in time\n * paused paused at the gateway (Founder Circle never pauses one)\n */\nexport const AUTO_RENEWAL_STATUS_VALUES = [\n 'created',\n 'authenticated',\n 'active',\n 'pending',\n 'halted',\n 'cancelled',\n 'completed',\n 'expired',\n 'paused',\n] as const;\nexport const autoRenewalStatusSchema = z.enum(AUTO_RENEWAL_STATUS_VALUES);\nexport type AutoRenewalStatus = z.infer<typeof autoRenewalStatusSchema>;\n\n/** The statuses in which an auto-renewal will still charge (or is about to). */\nexport const AUTO_RENEWAL_RUNNING_VALUES = [\n 'authenticated',\n 'active',\n 'pending',\n] as const satisfies readonly AutoRenewalStatus[];\n\n/**\n * A member's auto-renewal, as `GET /me/membership` shows it: at most one, the\n * running one (null when none runs).\n */\nexport const autoRenewalSchema = z.object({\n id: objectIdSchema,\n status: autoRenewalStatusSchema,\n tier: planTierSchema,\n period: planPeriodSchema,\n /** What each charge takes, GST included: the price it was started at, kept. */\n amount: paiseSchema,\n /** When the next charge is due; null when none will come (turned off, halted). */\n nextChargeAt: z.iso.datetime().nullable(),\n /** Turned off: no more charges; the time already paid stays until it ends. */\n cancelAtCycleEnd: z.boolean(),\n /** How it pays, as last charged or authorised; null before the gateway says. */\n method: paymentMethodSnapshotSchema.nullable(),\n /** A failed charge (`pending`) can be fixed by updating the method. */\n canUpdateMethod: z.boolean(),\n /**\n * In the renewal grace (`RENEWAL_GRACE_DAYS`): the time held has ended and\n * the charge is awaited, so the tier stays in force until this instant.\n * Null outside it. A client says \"your renewal is being processed; your\n * plan stays active until <date>\" (or, with `status: 'pending'`, that the\n * charge failed and is being retried).\n */\n graceUntil: z.iso.datetime().nullable().default(null),\n});\nexport type AutoRenewal = z.infer<typeof autoRenewalSchema>;\n\n// ─── GET /me/membership ──────────────────────────────────────────────────────\n\nexport const membershipSchema = z.object({\n kind: membershipKindSchema,\n since: z.iso.datetime(),\n /** \"Founding member #N\": set only for `founding`. */\n foundingNumber: z.number().int().positive().nullable(),\n});\nexport type Membership = z.infer<typeof membershipSchema>;\n\n/** A stretch of one tier. Blocks never overlap and follow each other with no gap. */\nexport const planBlockSchema = z.object({\n tier: planTierSchema,\n startsAt: z.iso.datetime(),\n endsAt: z.iso.datetime(),\n});\nexport type PlanBlock = z.infer<typeof planBlockSchema>;\n\n/** Why someone takes part: their membership, or a staff role (staff are members). */\nexport const TAKES_PART_THROUGH_VALUES = ['membership', 'staff'] as const;\nexport type TakesPartThrough = (typeof TAKES_PART_THROUGH_VALUES)[number];\n\nexport const meMembershipSchema = z.object({\n standing: standingSchema,\n /** Null for a viewer, and for staff who hold none (they take part through their role). */\n membership: membershipSchema.nullable(),\n /** Why they take part: their membership, or a staff role (staff are members). Null for a viewer. */\n through: z.enum(TAKES_PART_THROUGH_VALUES).nullable(),\n plan: z.object({\n /** The tier in force now; null with no plan. */\n tier: planTierSchema.nullable(),\n /** From now on, Business first, then Premium. Empty with no plan. */\n blocks: z.array(planBlockSchema),\n }),\n limits: planLimitsSchema,\n /**\n * What the plan in force unlocks (0.32.0), with the renewal grace, and the\n * top plan's while payments are off, as `limits`. Defaults to the member's\n * when an older server leaves it out.\n */\n features: planFeaturesSchema.default(MEMBER_FEATURE_VALUES),\n products: z.object({\n /** Products they own that are live now. */\n live: z.number().int().nonnegative(),\n /** Products they own, paused ones included. */\n owned: z.number().int().nonnegative(),\n /**\n * What adding another counts against (0.13.0): live ones and the ones\n * they paused themselves, not those a plan's end paused. \"Add a product\"\n * stops when this reaches `limits.productsLive`: pausing never makes room.\n */\n counted: z.number().int().nonnegative(),\n }),\n messages: z.object({\n /** New people they started a conversation with this month (India time). */\n used: z.number().int().nonnegative(),\n /** When this month's count starts again. */\n resetsAt: z.iso.datetime(),\n }),\n /** The billing details they last used, to prefill the next checkout; null before the first. */\n billing: billingDetailsSchema.nullable(),\n /**\n * The auto-renewal that runs (0.31.0): authorised, charging, or retrying a\n * failed charge. Null when none does. Defaults to null when an older server\n * leaves it out.\n */\n autoRenewal: autoRenewalSchema.nullable().default(null),\n});\nexport type MeMembership = z.infer<typeof meMembershipSchema>;\n"]}
|
|
1
|
+
{"version":3,"file":"membership.js","sourceRoot":"","sources":["../../../src/domains/membership/membership.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAE3E;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,UAAU;IACV,QAAQ;IACR,MAAM;IACN,SAAS;IACT,YAAY;CACJ,CAAC;AACX,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;AAGnE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU,CAAC;AACrE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;AAGvE,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,UAAU,EAAE,SAAS,EAAE,iBAAiB,CAAU,CAAC;AAChG,MAAM,CAAC,M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CAAC,qBAAqB,CAAC;IAC3D,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC;QACjB,2CAA2C;QAC3C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QACpC,+CAA+C;QAC/C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QACrC;;;;WAIG;QACH,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;KACxC,CAAC;IACF,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC;QACjB,2EAA2E;QAC3E,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QACpC,4CAA4C;QAC5C,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;KAC3B,CAAC;IACF,+FAA+F;IAC/F,OAAO,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACxC;;;;;;OAMG;IACH,gBAAgB,EAAE,kBAAkB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC1D;;;;OAIG;IACH,WAAW,EAAE,iBAAiB,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;CACxD,CAAC,CAAC","sourcesContent":["/**\n * founder-schema: membership and plans, as a member holds them (0.12.0)\n *\n * GET /api/v1/plans planCatalogSchema (anyone: prices and what each includes)\n * GET /api/v1/me/membership meMembershipSchema (signed in: what I hold, what I have used)\n *\n * THE USER'S RULING (2026-10-11): looking is free; taking part needs a\n * MEMBERSHIP, Rs 99 once, for life (the first 100 free with a coupon). On top,\n * two PLANS: Premium (5 live products, 15 new people a month to message) and\n * Business (unlimited products, 50 new people). Prices and plan contents come\n * from the server, so a change needs no client release.\n *\n * A PLAN IS TIME, PREPAID, IN TWO BLOCKS: Business time first, then Premium\n * time. Buying more APPENDS; buying Premium while on Business waits its turn;\n * buying Business while on Premium is an upgrade that turns the Premium time\n * left into Business for the difference (`domains/billing`). `blocks` says it\n * as it stands, from now on.\n *\n * Money is integer PAISE everywhere in this package: never a float of rupees.\n *\n * @module founder-schema/domains/membership\n */\n\nimport { z } from 'zod';\nimport { standingSchema } from '../../access/standing.js';\nimport { objectIdSchema } from '../../core/common.js';\nimport { DAY_MS, INDIA_UTC_OFFSET_MS } from '../../core/limits.js';\nimport { billingDetailsSchema, gstStateCodeSchema } from '../billing/gst.js';\nimport { paymentMethodSnapshotSchema } from '../billing/payment-method.js';\n\n/**\n * How someone came to hold a membership. ⚠ Stored: append only.\n *\n * founding free for life, numbered \"Founding member #N\": one of the first\n * `FOUNDING_PLACES` people to join the launch WAITLIST (0.14.0,\n * the user's rule of 2026-10-16). Before that, the founding\n * coupon (`FIRST100`), which no longer exists on main.\n * coupon another free-membership coupon\n * paid Rs 99, captured\n * granted staff gave it (a partner, a press account), with a reason on record\n * early_bird free for life, because the account was created before\n * `EARLY_BIRD_UNTIL` (0.21.0, the user's launch offer of 2026-11-14:\n * everyone who joins before Tue 17 Nov 2026, 12:00 IST), or while\n * payments were not live yet: before the catalog's `paymentsLiveAt`,\n * or with none set (the user, 2026-11-19: whoever joins while\n * payments are \"coming soon\" keeps the membership free for life)\n */\nexport const MEMBERSHIP_KIND_VALUES = [\n 'founding',\n 'coupon',\n 'paid',\n 'granted',\n 'early_bird',\n] as const;\nexport const membershipKindSchema = z.enum(MEMBERSHIP_KIND_VALUES);\nexport type MembershipKind = z.infer<typeof membershipKindSchema>;\n\n/**\n * A stored membership's state (0.20.0: memberships are their own rows, so\n * none is ever erased). `active` is held now, at most one per member; `ended`\n * is history: a refunded payment, a staff revoke, or the account's deletion,\n * said by `MEMBERSHIP_END_REASON_VALUES`.\n */\nexport const MEMBERSHIP_STATUS_VALUES = ['active', 'ended'] as const;\nexport const membershipStatusSchema = z.enum(MEMBERSHIP_STATUS_VALUES);\nexport type MembershipStatus = z.infer<typeof membershipStatusSchema>;\n\nexport const MEMBERSHIP_END_REASON_VALUES = ['refunded', 'revoked', 'account_deleted'] as const;\nexport const membershipEndReasonSchema = z.enum(MEMBERSHIP_END_REASON_VALUES);\nexport type MembershipEndReason = z.infer<typeof membershipEndReasonSchema>;\n\n/** ⚠ Stored: append only. Highest last is NOT implied: compare with `PLAN_TIER_RANK`. */\nexport const PLAN_TIER_VALUES = ['premium', 'business'] as const;\nexport const planTierSchema = z.enum(PLAN_TIER_VALUES);\nexport type PlanTier = z.infer<typeof planTierSchema>;\n\n/** Which tier outranks which: Business above Premium. */\nexport const PLAN_TIER_RANK: Readonly<Record<PlanTier, number>> = { premium: 1, business: 2 };\n\n/** One payment buys a calendar month or a calendar year. ⚠ Stored: append only. */\nexport const PLAN_PERIOD_VALUES = ['month', 'year'] as const;\nexport const planPeriodSchema = z.enum(PLAN_PERIOD_VALUES);\nexport type PlanPeriod = z.infer<typeof planPeriodSchema>;\n\n/** Integer paise, never negative. Rs 399 is 39900. */\nexport const paiseSchema = z.number().int().nonnegative();\nexport type Paise = z.infer<typeof paiseSchema>;\n\n/**\n * What a standing or a plan allows that is COUNTED (the ability says whether;\n * these say how many).\n *\n * productsLive products live at once; null is unlimited (the server\n * still holds a safety ceiling, `PRODUCTS_LIVE_SAFETY_MAX`)\n * newPeoplePerMonth conversations a month with people you do not know\n */\nexport const planLimitsSchema = z.object({\n productsLive: z.number().int().nonnegative().nullable(),\n newPeoplePerMonth: z.number().int().nonnegative(),\n});\nexport type PlanLimits = z.infer<typeof planLimitsSchema>;\n\n/**\n * What a standing or a plan UNLOCKS beyond the counted limits (0.32.0, plans v1;\n * founder-circle-backend docs/plans-v1-features.md, the user 2026-11-28).\n *\n * badge a \"Premium\" / \"Business\" badge on the member's person\n * insightsDays how far back a product's insights go: 0 = the totals only\n * (what a card already shows), else that many days of series\n * insightsSources where a product's visitors came from (Discover, feed...)\n * profileViewersDays who viewed your profile: 0 = the count only, else the\n * names for that many days\n * featured Discover's \"Featured\" row:\n * none not offered\n * monthly_run one run of `runDays` days a calendar\n * month (India time), one product\n * always one product at a time, with no end of its own\n */\nexport const FEATURED_KIND_VALUES = ['none', 'monthly_run', 'always'] as const;\nexport const featuredKindSchema = z.enum(FEATURED_KIND_VALUES);\nexport type FeaturedKind = z.infer<typeof featuredKindSchema>;\n\nexport const planFeaturesSchema = z.object({\n badge: z.boolean(),\n insightsDays: z.number().int().nonnegative(),\n insightsSources: z.boolean(),\n profileViewersDays: z.number().int().nonnegative(),\n featured: z.object({\n kind: featuredKindSchema,\n /** For `monthly_run`: the run's length in days; 0 otherwise. */\n runDays: z.number().int().nonnegative(),\n }),\n});\nexport type PlanFeatures = z.infer<typeof planFeaturesSchema>;\n\n// ─── The price list ──────────────────────────────────────────────────────────\n//\n// THE ONE PLACE a price or a plan's limit is written (0.12.0). The backend\n// prices and counts from these (`modules/plans/catalog.ts`), `GET /plans`\n// serves them, and the web's Terms of Service are written FROM them, so the\n// Terms can never state a price the server does not charge. A change here is\n// a schema release, then the backend, then the web. Integer PAISE, GST\n// included. hary's India-first prices (the user: \"you decide, India first\").\n\n/** The membership: once, for life. */\nexport const MEMBERSHIP_PRICE_PAISE = 9_900;\n\n/** What a member with no plan may: 1 live product, no conversations with people they do not know. */\nexport const MEMBER_LIMIT_VALUES: PlanLimits = { productsLive: 1, newPeoplePerMonth: 0 };\n\n/**\n * What a member with no plan has unlocked (0.32.0): no badge, a product's totals\n * only, the COUNT of who viewed them (last 30 days), nothing featured.\n */\nexport const MEMBER_FEATURE_VALUES: PlanFeatures = {\n badge: false,\n insightsDays: 0,\n insightsSources: false,\n profileViewersDays: 0,\n featured: { kind: 'none', runDays: 0 },\n};\n\n/** Each plan's name, prices, limits and features. Exhaustive by type. */\nexport const PLAN_SPECS: Readonly<\n Record<\n PlanTier,\n {\n name: string;\n prices: Readonly<Record<PlanPeriod, number>>;\n limits: PlanLimits;\n features: PlanFeatures;\n }\n >\n> = {\n premium: {\n name: 'Premium',\n prices: { month: 39_900, year: 399_900 },\n limits: { productsLive: 5, newPeoplePerMonth: 15 },\n features: {\n badge: true,\n insightsDays: 30,\n insightsSources: false,\n profileViewersDays: 30,\n featured: { kind: 'monthly_run', runDays: 7 },\n },\n },\n business: {\n name: 'Business',\n prices: { month: 99_900, year: 999_900 },\n limits: { productsLive: null, newPeoplePerMonth: 50 },\n features: {\n badge: true,\n insightsDays: 90,\n insightsSources: true,\n profileViewersDays: 90,\n featured: { kind: 'always', runDays: 0 },\n },\n },\n};\n\n/** The number of days a member (no plan) is told \"N people viewed your profile\" over. */\nexport const MEMBER_PROFILE_VIEW_COUNT_DAYS = 30;\n\n// ─── Plan time on India's calendar, and an upgrade's price (0.18.0) ──────────\n//\n// Moved here from the backend's plan timeline so the price a member is charged\n// and the rule the Terms of Service state are ONE function: the Terms said\n// \"Rs 20 a day for the rest\" for a week after the server stopped charging it\n// (2026-10-13).\n\n/**\n * A calendar month or year later on India's calendar (`count` of them), the\n * day clamped to the month's last: 31 January plus a month is 28 or 29\n * February. India has one offset all year, so its calendar is UTC's, shifted.\n */\nexport function addPlanPeriod(from: Date, period: PlanPeriod, count = 1): Date {\n const months = period === 'year' ? 12 * count : count;\n const local = new Date(from.getTime() + INDIA_UTC_OFFSET_MS);\n const m = local.getUTCMonth() + months;\n const targetYear = local.getUTCFullYear() + Math.floor(m / 12);\n const targetMonth = ((m % 12) + 12) % 12;\n const lastDay = new Date(Date.UTC(targetYear, targetMonth + 1, 0)).getUTCDate();\n const shifted = Date.UTC(\n targetYear,\n targetMonth,\n Math.min(local.getUTCDate(), lastDay),\n local.getUTCHours(),\n local.getUTCMinutes(),\n local.getUTCSeconds(),\n local.getUTCMilliseconds(),\n );\n return new Date(shifted - INDIA_UTC_OFFSET_MS);\n}\n\n/** What an upgrade costs for each whole calendar year of Premium left: the yearly difference. */\nexport const UPGRADE_PER_YEAR = PLAN_SPECS.business.prices.year - PLAN_SPECS.premium.prices.year;\n/** ...for each whole calendar month after the years: the monthly difference (a 31-day month and February alike). */\nexport const UPGRADE_PER_MONTH = PLAN_SPECS.business.prices.month - PLAN_SPECS.premium.prices.month;\n/** The days left over are charged as this many to a month. */\nexport const UPGRADE_DAYS_PER_MONTH = 30;\n/** ...so each day left over costs this, never more than `UPGRADE_PER_MONTH` for them all. */\nexport const UPGRADE_PER_DAY = UPGRADE_PER_MONTH / UPGRADE_DAYS_PER_MONTH;\n\n/**\n * What an upgrade of `convertedMs` of Premium, from `now`, costs in paise (the\n * user: \"ask for the rest of the money, the difference\"). Each whole calendar\n * year left costs `UPGRADE_PER_YEAR`; each whole calendar month after that,\n * `UPGRADE_PER_MONTH`; the days left over `UPGRADE_PER_DAY` each, but never\n * more than one month's. The part below a year never costs more than a year's.\n * A part day counts as a day; rounded up to the rupee.\n */\nexport function upgradePrice(convertedMs: number, now: Date): number {\n const end = now.getTime() + Math.max(convertedMs, 1);\n let years = 0;\n while (addPlanPeriod(now, 'year', years + 1).getTime() <= end) years += 1;\n const afterYears = addPlanPeriod(now, 'year', years);\n let months = 0;\n while (addPlanPeriod(afterYears, 'month', months + 1).getTime() <= end) months += 1;\n const restDays = Math.ceil((end - addPlanPeriod(afterYears, 'month', months).getTime()) / DAY_MS);\n const belowAYear =\n months * UPGRADE_PER_MONTH + Math.min(restDays * UPGRADE_PER_DAY, UPGRADE_PER_MONTH);\n const paise = years * UPGRADE_PER_YEAR + Math.min(belowAYear, UPGRADE_PER_YEAR);\n return Math.ceil(paise / 100) * 100;\n}\n\n/**\n * Free founding memberships (0.14.0): the first 100 people to join the launch\n * waitlist get their membership free, numbered #1 to #100 by their place\n * (the user, 2026-10-16). Everyone else pays `MEMBERSHIP_PRICE_PAISE` once.\n * No code gives a founding place any more.\n */\nexport const FOUNDING_PLACES = 100;\n\n/**\n * THE EARLY-BIRD OFFER (0.21.0; the user, 2026-11-14): everyone whose Founder\n * Circle account was CREATED before this instant gets the membership free, for\n * life, with no code and no limit on how many. After it, the membership costs\n * `MEMBERSHIP_PRICE_PAISE` as before.\n *\n * Tue 17 Nov 2026, 12:00 IST. The ONE place it is written: the server grants\n * from it (`isEarlyBird`), and the web's landing, pricing, membership screen,\n * Terms and llms.txt word the offer from it and stop offering it at this\n * instant. Moving it is a schema release, like a price.\n *\n * The server grants the same free membership to an account created while\n * payments are not live (before the catalog's `paymentsLiveAt`, or with none\n * set; the user, 2026-11-19). That rule is the server's: `isEarlyBird` here\n * answers for this instant alone.\n */\nexport const EARLY_BIRD_UNTIL = '2026-11-17T06:30:00.000Z';\n\nconst EARLY_BIRD_UNTIL_MS = Date.parse(EARLY_BIRD_UNTIL);\n\n/** Whether an account created at `createdAt` gets the early-bird membership. */\nexport function isEarlyBird(createdAt: Date | string | number): boolean {\n const at = createdAt instanceof Date ? createdAt.getTime() : new Date(createdAt).getTime();\n return Number.isFinite(at) && at < EARLY_BIRD_UNTIL_MS;\n}\n\n/** Whether the offer is still open at `now`: what the pages show. */\nexport function earlyBirdOpen(now: Date | number = Date.now()): boolean {\n return (now instanceof Date ? now.getTime() : now) < EARLY_BIRD_UNTIL_MS;\n}\n\n// ─── GET /plans ──────────────────────────────────────────────────────────────\n\nexport const planOfferSchema = z.object({\n tier: planTierSchema,\n /** \"Premium\", \"Business\": the server's word, so a rename needs no client release. */\n name: z.string(),\n /** GST included. */\n prices: z.object({ month: paiseSchema, year: paiseSchema }),\n limits: planLimitsSchema,\n /** What it unlocks (0.32.0). Defaults to the member's when an older server leaves it out. */\n features: planFeaturesSchema.default(MEMBER_FEATURE_VALUES),\n});\nexport type PlanOffer = z.infer<typeof planOfferSchema>;\n\nexport const planCatalogSchema = z.object({\n currency: z.literal('INR'),\n membership: z.object({\n /** Once, for life, GST included. */\n price: paiseSchema,\n limits: planLimitsSchema,\n /** What a member with no plan has unlocked (0.32.0). */\n features: planFeaturesSchema.default(MEMBER_FEATURE_VALUES),\n }),\n /** Lowest first. */\n plans: z.array(planOfferSchema),\n /** Every purchase is refunded in full within this many days of paying. */\n refundWindowDays: z.number().int().positive(),\n /**\n * Whether payments are LIVE here now: the server's `PAYMENTS_LIVE_AT` is set\n * and has passed, and its gateway is configured. While false, plans and\n * payments are \"coming soon\": a client shows no price, plan, pay button or\n * code box, and every quote and order (a free code's too) answers\n * `PAYMENTS_UNAVAILABLE` (the user, 2026-11-19).\n */\n paymentsEnabled: z.boolean(),\n /**\n * The instant payments go (or went) live, or null while none is set. Every\n * account CREATED before it, or while it is null, holds the membership free\n * for life (kind `early_bird`), so the Terms state it as a date. Defaults to\n * null when an older server leaves it out, so a client can ship first.\n */\n paymentsLiveAt: z.iso.datetime().nullable().default(null),\n /**\n * Whether a plan may renew AUTOMATICALLY here (0.31.0, payments v2). The\n * server's two keys: its `SUBSCRIPTIONS_ENABLED` is set AND its gateway plans\n * resolve, and payments are live. While false a client offers no\n * \"Renew automatically\" switch: every plan is prepaid. Defaults to false\n * when an older server leaves it out.\n */\n autoRenewEnabled: z.boolean().default(false),\n});\nexport type PlanCatalog = z.infer<typeof planCatalogSchema>;\n\n// ─── Auto-renewal (0.31.0, payments v2) ──────────────────────────────────────\n//\n// The user, 2026-11-25: plans RENEW AUTOMATICALLY BY DEFAULT, and the member can\n// turn it off (founder-circle-backend docs/payments-v2-plan.md, section 3a). An\n// auto-renewal is a Razorpay subscription for one tier and period: each charge\n// it makes is an ORDER that buys one period, appended to the blocks exactly as\n// a manual purchase is (same invoice, same 7-day refund). It adds time only\n// when a charge lands, so a failed charge takes nothing away: the plan ends\n// when its time runs out, as a prepaid one does.\n\n/**\n * Where an auto-renewal stands: Razorpay's subscription states, as it names\n * them. ⚠ Stored: append only.\n *\n * created made, waiting for the member to authorise it at Checkout\n * authenticated authorised; its first charge is on a later date (it starts\n * when the time already held ends)\n * active charging each period\n * pending a charge failed; Razorpay is retrying (T+1 to T+3 days)\n * halted every retry failed: no more charges (auto-renew is off)\n * cancelled turned off (at the end of the period, or at once after a\n * refund), or replaced\n * completed its cycles ran out\n * expired never authorised in time\n * paused paused at the gateway (Founder Circle never pauses one)\n */\nexport const AUTO_RENEWAL_STATUS_VALUES = [\n 'created',\n 'authenticated',\n 'active',\n 'pending',\n 'halted',\n 'cancelled',\n 'completed',\n 'expired',\n 'paused',\n] as const;\nexport const autoRenewalStatusSchema = z.enum(AUTO_RENEWAL_STATUS_VALUES);\nexport type AutoRenewalStatus = z.infer<typeof autoRenewalStatusSchema>;\n\n/** The statuses in which an auto-renewal will still charge (or is about to). */\nexport const AUTO_RENEWAL_RUNNING_VALUES = [\n 'authenticated',\n 'active',\n 'pending',\n] as const satisfies readonly AutoRenewalStatus[];\n\n/**\n * A member's auto-renewal, as `GET /me/membership` shows it: at most one, the\n * running one (null when none runs).\n */\nexport const autoRenewalSchema = z.object({\n id: objectIdSchema,\n status: autoRenewalStatusSchema,\n tier: planTierSchema,\n period: planPeriodSchema,\n /** What each charge takes, GST included: the price it was started at, kept. */\n amount: paiseSchema,\n /** When the next charge is due; null when none will come (turned off, halted). */\n nextChargeAt: z.iso.datetime().nullable(),\n /** Turned off: no more charges; the time already paid stays until it ends. */\n cancelAtCycleEnd: z.boolean(),\n /** How it pays, as last charged or authorised; null before the gateway says. */\n method: paymentMethodSnapshotSchema.nullable(),\n /** A failed charge (`pending`) can be fixed by updating the method. */\n canUpdateMethod: z.boolean(),\n /**\n * In the renewal grace (`RENEWAL_GRACE_DAYS`): the time held has ended and\n * the charge is awaited, so the tier stays in force until this instant.\n * Null outside it. A client says \"your renewal is being processed; your\n * plan stays active until <date>\" (or, with `status: 'pending'`, that the\n * charge failed and is being retried).\n */\n graceUntil: z.iso.datetime().nullable().default(null),\n});\nexport type AutoRenewal = z.infer<typeof autoRenewalSchema>;\n\n// ─── GET /me/membership ──────────────────────────────────────────────────────\n\nexport const membershipSchema = z.object({\n kind: membershipKindSchema,\n since: z.iso.datetime(),\n /** \"Founding member #N\": set only for `founding`. */\n foundingNumber: z.number().int().positive().nullable(),\n});\nexport type Membership = z.infer<typeof membershipSchema>;\n\n/** A stretch of one tier. Blocks never overlap and follow each other with no gap. */\nexport const planBlockSchema = z.object({\n tier: planTierSchema,\n startsAt: z.iso.datetime(),\n endsAt: z.iso.datetime(),\n});\nexport type PlanBlock = z.infer<typeof planBlockSchema>;\n\n/** Why someone takes part: their membership, or a staff role (staff are members). */\nexport const TAKES_PART_THROUGH_VALUES = ['membership', 'staff'] as const;\nexport type TakesPartThrough = (typeof TAKES_PART_THROUGH_VALUES)[number];\n\nexport const meMembershipSchema = z.object({\n standing: standingSchema,\n /** Null for a viewer, and for staff who hold none (they take part through their role). */\n membership: membershipSchema.nullable(),\n /** Why they take part: their membership, or a staff role (staff are members). Null for a viewer. */\n through: z.enum(TAKES_PART_THROUGH_VALUES).nullable(),\n plan: z.object({\n /** The tier in force now; null with no plan. */\n tier: planTierSchema.nullable(),\n /** From now on, Business first, then Premium. Empty with no plan. */\n blocks: z.array(planBlockSchema),\n }),\n limits: planLimitsSchema,\n /**\n * What the plan in force unlocks (0.32.0), with the renewal grace, and the\n * top plan's while payments are off, as `limits`. Defaults to the member's\n * when an older server leaves it out.\n */\n features: planFeaturesSchema.default(MEMBER_FEATURE_VALUES),\n products: z.object({\n /** Products they own that are live now. */\n live: z.number().int().nonnegative(),\n /** Products they own, paused ones included. */\n owned: z.number().int().nonnegative(),\n /**\n * What adding another counts against (0.13.0): live ones and the ones\n * they paused themselves, not those a plan's end paused. \"Add a product\"\n * stops when this reaches `limits.productsLive`: pausing never makes room.\n */\n counted: z.number().int().nonnegative(),\n }),\n messages: z.object({\n /** New people they started a conversation with this month (India time). */\n used: z.number().int().nonnegative(),\n /** When this month's count starts again. */\n resetsAt: z.iso.datetime(),\n }),\n /** The billing details they last used, to prefill the next checkout; null before the first. */\n billing: billingDetailsSchema.nullable(),\n /**\n * A first checkout's state, SUGGESTED (2026-11-30): the state of the member's own\n * profile location, only while they have no `billing` to prefill from. The\n * invoice of every online sale names the buyer's state (GST), so it is asked\n * once; this fills it in, and the member can change it before they pay. Never\n * stored by being suggested. Null when there is none; absent from an older server.\n */\n billingStateHint: gstStateCodeSchema.nullable().optional(),\n /**\n * The auto-renewal that runs (0.31.0): authorised, charging, or retrying a\n * failed charge. Null when none does. Defaults to null when an older server\n * leaves it out.\n */\n autoRenewal: autoRenewalSchema.nullable().default(null),\n});\nexport type MeMembership = z.infer<typeof meMembershipSchema>;\n"]}
|
|
@@ -84,12 +84,15 @@ import { z } from 'zod';
|
|
|
84
84
|
* delivered, with a push). Not for turning it off yourself.
|
|
85
85
|
* plan_renews_soon a YEARLY auto-renewal charges in 7 days (0.31.0, always
|
|
86
86
|
* delivered). Monthly ones rely on the bank's pre-debit notice.
|
|
87
|
+
* support_reply Support answered your request (2026-11-30, always delivered, with
|
|
88
|
+
* a push). One row per ticket. Never for your own message, nor
|
|
89
|
+
* for a ticket taken or closed without one.
|
|
87
90
|
*
|
|
88
91
|
* The three 0.8.0 kinds merge per target like the others. A reaction counts
|
|
89
92
|
* once: changing it to another type is not a new event, and taking it back
|
|
90
93
|
* does not take the event back.
|
|
91
94
|
*/
|
|
92
|
-
export declare const NOTIFICATION_KIND_VALUES: readonly ["comment_on_post", "reply_to_comment", "product_invite", "product_invite_accepted", "product_review", "review_reply", "feedback_helpful", "tester_confirmed", "post_reaction", "comment_reaction", "repost", "community_join_request", "community_request_approved", "community_invite", "community_announcement", "community_suggestion_decided", "plan_ending", "plan_ended", "payment_refunded", "chat_message", "free_plans_ended", "new_follower", "followed_member_posted", "mention", "post_upvote", "comment_upvote", "product_comment", "product_comment_reply", "renewal_done", "renewal_failed", "auto_renew_stopped", "plan_renews_soon"];
|
|
95
|
+
export declare const NOTIFICATION_KIND_VALUES: readonly ["comment_on_post", "reply_to_comment", "product_invite", "product_invite_accepted", "product_review", "review_reply", "feedback_helpful", "tester_confirmed", "post_reaction", "comment_reaction", "repost", "community_join_request", "community_request_approved", "community_invite", "community_announcement", "community_suggestion_decided", "plan_ending", "plan_ended", "payment_refunded", "chat_message", "free_plans_ended", "new_follower", "followed_member_posted", "mention", "post_upvote", "comment_upvote", "product_comment", "product_comment_reply", "renewal_done", "renewal_failed", "auto_renew_stopped", "plan_renews_soon", "support_reply"];
|
|
93
96
|
export declare const notificationKindSchema: z.ZodEnum<{
|
|
94
97
|
product_comment: "product_comment";
|
|
95
98
|
feedback_helpful: "feedback_helpful";
|
|
@@ -123,6 +126,7 @@ export declare const notificationKindSchema: z.ZodEnum<{
|
|
|
123
126
|
renewal_failed: "renewal_failed";
|
|
124
127
|
auto_renew_stopped: "auto_renew_stopped";
|
|
125
128
|
plan_renews_soon: "plan_renews_soon";
|
|
129
|
+
support_reply: "support_reply";
|
|
126
130
|
}>;
|
|
127
131
|
export type NotificationKind = z.infer<typeof notificationKindSchema>;
|
|
128
132
|
/** The switches a member has, each covering one or more kinds. */
|
|
@@ -165,6 +169,7 @@ export declare const NOTIFICATION_PREFERENCE_OF: {
|
|
|
165
169
|
readonly renewal_failed: null;
|
|
166
170
|
readonly auto_renew_stopped: null;
|
|
167
171
|
readonly plan_renews_soon: null;
|
|
172
|
+
readonly support_reply: null;
|
|
168
173
|
};
|
|
169
174
|
/**
|
|
170
175
|
* One row of the bell. Which of the optional targets are present depends on
|
|
@@ -203,6 +208,7 @@ export declare const NOTIFICATION_PREFERENCE_OF: {
|
|
|
203
208
|
* renewal_failed plan (the tier, and when its time runs out), renewal (amount, due date)
|
|
204
209
|
* auto_renew_stopped plan (the tier, and when its time runs out)
|
|
205
210
|
* plan_renews_soon plan (the tier, and when its time runs out), renewal (amount, charge date)
|
|
211
|
+
* support_reply ticket (which one); no actor: it is Support's answer
|
|
206
212
|
*
|
|
207
213
|
* Any row about something inside a community also carries `community`
|
|
208
214
|
* (0.9.0), whatever its kind. When the recipient leaves the community, is
|
|
@@ -247,6 +253,7 @@ export declare const notificationSchema: z.ZodObject<{
|
|
|
247
253
|
renewal_failed: "renewal_failed";
|
|
248
254
|
auto_renew_stopped: "auto_renew_stopped";
|
|
249
255
|
plan_renews_soon: "plan_renews_soon";
|
|
256
|
+
support_reply: "support_reply";
|
|
250
257
|
}>;
|
|
251
258
|
actor: z.ZodNullable<z.ZodObject<{
|
|
252
259
|
userId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
@@ -315,6 +322,10 @@ export declare const notificationSchema: z.ZodObject<{
|
|
|
315
322
|
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
316
323
|
title: z.ZodString;
|
|
317
324
|
}, z.core.$strip>>;
|
|
325
|
+
ticket: z.ZodOptional<z.ZodObject<{
|
|
326
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
327
|
+
subject: z.ZodString;
|
|
328
|
+
}, z.core.$strip>>;
|
|
318
329
|
conversationId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
319
330
|
role: z.ZodOptional<z.ZodEnum<{
|
|
320
331
|
team: "team";
|
|
@@ -372,6 +383,7 @@ export declare const notificationPageSchema: z.ZodObject<{
|
|
|
372
383
|
renewal_failed: "renewal_failed";
|
|
373
384
|
auto_renew_stopped: "auto_renew_stopped";
|
|
374
385
|
plan_renews_soon: "plan_renews_soon";
|
|
386
|
+
support_reply: "support_reply";
|
|
375
387
|
}>;
|
|
376
388
|
actor: z.ZodNullable<z.ZodObject<{
|
|
377
389
|
userId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
@@ -440,6 +452,10 @@ export declare const notificationPageSchema: z.ZodObject<{
|
|
|
440
452
|
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
441
453
|
title: z.ZodString;
|
|
442
454
|
}, z.core.$strip>>;
|
|
455
|
+
ticket: z.ZodOptional<z.ZodObject<{
|
|
456
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
457
|
+
subject: z.ZodString;
|
|
458
|
+
}, z.core.$strip>>;
|
|
443
459
|
conversationId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
444
460
|
role: z.ZodOptional<z.ZodEnum<{
|
|
445
461
|
team: "team";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../src/domains/notifications/notifications.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../src/domains/notifications/notifications.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,eAAO,MAAM,wBAAwB,kpBAqC3B,CAAC;AACX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAmC,CAAC;AACvE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,kEAAkE;AAClE,eAAO,MAAM,8BAA8B,gKAYjC,CAAC;AACX,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAC;AAErF;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCqC,CAAC;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiF7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAA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C,OAAO,wBAAwB,CAAC,CAAC;AAE1E,+CAA+C;AAC/C,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;iBAyBxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,kFAAkF;AAClF,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;iBAalD,CAAC;AACH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC"}
|
|
@@ -92,6 +92,9 @@ import { memberBylineSchema } from '../profile/founder-profile.js';
|
|
|
92
92
|
* delivered, with a push). Not for turning it off yourself.
|
|
93
93
|
* plan_renews_soon a YEARLY auto-renewal charges in 7 days (0.31.0, always
|
|
94
94
|
* delivered). Monthly ones rely on the bank's pre-debit notice.
|
|
95
|
+
* support_reply Support answered your request (2026-11-30, always delivered, with
|
|
96
|
+
* a push). One row per ticket. Never for your own message, nor
|
|
97
|
+
* for a ticket taken or closed without one.
|
|
95
98
|
*
|
|
96
99
|
* The three 0.8.0 kinds merge per target like the others. A reaction counts
|
|
97
100
|
* once: changing it to another type is not a new event, and taking it back
|
|
@@ -132,6 +135,8 @@ export const NOTIFICATION_KIND_VALUES = [
|
|
|
132
135
|
'renewal_failed',
|
|
133
136
|
'auto_renew_stopped',
|
|
134
137
|
'plan_renews_soon',
|
|
138
|
+
// Support answered (2026-11-30).
|
|
139
|
+
'support_reply',
|
|
135
140
|
];
|
|
136
141
|
export const notificationKindSchema = z.enum(NOTIFICATION_KIND_VALUES);
|
|
137
142
|
/** The switches a member has, each covering one or more kinds. */
|
|
@@ -185,6 +190,7 @@ export const NOTIFICATION_PREFERENCE_OF = {
|
|
|
185
190
|
renewal_failed: null,
|
|
186
191
|
auto_renew_stopped: null,
|
|
187
192
|
plan_renews_soon: null,
|
|
193
|
+
support_reply: null,
|
|
188
194
|
};
|
|
189
195
|
/**
|
|
190
196
|
* One row of the bell. Which of the optional targets are present depends on
|
|
@@ -223,6 +229,7 @@ export const NOTIFICATION_PREFERENCE_OF = {
|
|
|
223
229
|
* renewal_failed plan (the tier, and when its time runs out), renewal (amount, due date)
|
|
224
230
|
* auto_renew_stopped plan (the tier, and when its time runs out)
|
|
225
231
|
* plan_renews_soon plan (the tier, and when its time runs out), renewal (amount, charge date)
|
|
232
|
+
* support_reply ticket (which one); no actor: it is Support's answer
|
|
226
233
|
*
|
|
227
234
|
* Any row about something inside a community also carries `community`
|
|
228
235
|
* (0.9.0), whatever its kind. When the recipient leaves the community, is
|
|
@@ -285,6 +292,10 @@ export const notificationSchema = z.object({
|
|
|
285
292
|
paused: z.number().int().nonnegative().optional(),
|
|
286
293
|
/** For `payment_refunded` (0.12.0): which purchase, by its title. */
|
|
287
294
|
payment: z.object({ id: objectIdSchema, title: z.string() }).optional(),
|
|
295
|
+
/** For `support_reply` (2026-11-30): which of their tickets, by its own subject. Never the answer's words. */
|
|
296
|
+
ticket: z
|
|
297
|
+
.object({ id: objectIdSchema, subject: z.string().max(NOTIFICATION_EXCERPT_MAX) })
|
|
298
|
+
.optional(),
|
|
288
299
|
/** For `chat_message`: the conversation, so the row opens that chat. */
|
|
289
300
|
conversationId: objectIdSchema.optional(),
|
|
290
301
|
/** For `product_invite`: the role offered. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../src/domains/notifications/notifications.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,mBAAmB,EACnB,iCAAiC,GAClC,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E,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACvC,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACrC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC","sourcesContent":["/**\n * founder-schema — Notifications: the bell\n *\n * The design the user approved on 2026-10-05 (\"Founder Circle Schema Review\"):\n *\n * - ONE ROW PER RECIPIENT, written when the event happens.\n * - REPEATS MERGE: a second comment on your post updates the same row\n * (\"2 new comments, latest from Asha\"), it never adds one. `count` is how\n * many events it holds and `actor` the latest. A member repeating the same\n * act (reacting, taking it back, reacting again) does not ring it again.\n * - THE ACTOR IS LOOKED UP WHEN READ, never copied in: a renamed member shows\n * their new name, and a deleted one shows as null (\"A former member\").\n * - PREFERENCES ARE CHECKED before writing (Jansathi stores them and never\n * reads them). A team invitation is always delivered: it needs an answer.\n * - KEPT `NOTIFICATION_RETENTION_DAYS`, then deleted.\n * - Nobody is notified of their own action.\n *\n * A push is the row arriving on a device (`push.ts`): the bell is the record, so\n * a paused push (`pushPaused`) never loses a row.\n *\n * - HIDDEN (2026-11-30, GymMonk's swipe): a row the member put away. It leaves\n * every list but Hidden, counts as read, and is never deleted by it:\n * `hidden: false` puts it back, and a NEW event merged into it brings it\n * back unread by itself.\n *\n * Routes (all signed in):\n * GET /api/v1/notifications notificationListQuerySchema -> notificationPageSchema\n * GET /api/v1/notifications/unread-count -> notificationUnreadCountSchema\n * POST /api/v1/notifications/read mark every one read -> notificationUnreadCountSchema\n * PUT /api/v1/notifications/:notificationId/read -> notificationSchema\n * PUT /api/v1/notifications/:notificationId/hidden setNotificationHiddenBodySchema -> notificationSchema\n * GET /api/v1/notifications/preferences -> notificationPreferencesSchema\n * PUT /api/v1/notifications/preferences updateNotificationPreferencesBodySchema -> notificationPreferencesSchema\n *\n * @module founder-schema/domains/notifications\n */\n\nimport { z } from 'zod';\nimport { objectIdSchema, paginationQuerySchema } from '../../core/common.js';\nimport { NOTIFICATION_EXCERPT_MAX } from '../../core/limits.js';\nimport { paginatedSchema } from '../../core/responses.js';\nimport {\n communityChipSchema,\n communitySuggestionDecisionSchema,\n} from '../communities/communities.js';\nimport { contentKindSchema, reactionTypeSchema } from '../feed/feed.js';\nimport { paiseSchema, planTierSchema } from '../membership/membership.js';\nimport { productChipSchema, productInvitableRoleSchema } from '../products/products.js';\nimport { memberBylineSchema } from '../profile/founder-profile.js';\n\n/**\n * What happened. ⚠ Stored per row: append only.\n *\n * comment_on_post someone commented on your post or poll\n * reply_to_comment someone replied to your comment\n * product_invite a team invited you (always delivered)\n * product_invite_accepted someone accepted your team's invitation\n * product_review someone reviewed a product you are on the team of\n * review_reply a product's team answered your review\n * feedback_helpful a team marked your feedback as having helped\n * tester_confirmed a team confirmed you tested their product\n * post_reaction someone reacted to your post or poll (0.8.0)\n * comment_reaction someone reacted to your comment (0.8.0)\n * repost someone reposted your post or poll (0.8.0)\n * community_join_request someone asked to join a community you moderate (0.9.0)\n * community_request_approved your request to join was approved (always delivered)\n * community_invite a community invited you (always delivered)\n * community_announcement a community you are in pinned an announcement for everyone\n * community_suggestion_decided your community suggestion was approved or declined (always delivered)\n * plan_ending your plan ends in 7 days, then in 1 day (0.12.0, always delivered)\n * plan_ended your plan ended; `paused` products were paused (0.12.0, always delivered)\n * payment_refunded staff refunded one of your payments (0.12.0, always delivered)\n * chat_message someone messaged you while you were not in that chat (always\n * delivered; the browser's permission is the off switch). One\n * row per conversation: more messages merge into it, and opening\n * the chat marks it read. No message text is stored on it.\n * free_plans_ended payments went live, so the top plan every member held free\n * while they were off ended; `paused` products were paused\n * (0.24.0, always delivered; only to owners it paused any for)\n * new_follower someone started following you (2026-11-20). Rings once while\n * unread; an unfollow takes the unread row back.\n * followed_member_posted someone you follow shared a new post or poll you can read\n * (2026-11-20). One row per post; never its text.\n * mention someone @mentioned you in a post, a poll's question or a\n * comment (2026-11-23). One row per post or poll: mentions in\n * it and in its comments merge. Never for naming yourself.\n * post_upvote someone up voted your post or poll (2026-11-23). Merged per\n * item like a reaction; a NEW up vote only (a down vote, a flip\n * and a clear are silent); in the bell, never a push.\n * comment_upvote someone up voted your comment (2026-11-23), as above.\n * renewal_done your auto-renewal charged and your plan runs on (0.31.0,\n * always delivered, no push: the receipt email says it too)\n * renewal_failed your auto-renewal's charge did not go through; the gateway\n * retries for 3 days (0.31.0, always delivered, with a push)\n * auto_renew_stopped your auto-renewal stopped: every retry failed, or it was\n * ended with a refund or the membership (0.31.0, always\n * delivered, with a push). Not for turning it off yourself.\n * plan_renews_soon a YEARLY auto-renewal charges in 7 days (0.31.0, always\n * delivered). Monthly ones rely on the bank's pre-debit notice.\n *\n * The three 0.8.0 kinds merge per target like the others. A reaction counts\n * once: changing it to another type is not a new event, and taking it back\n * does not take the event back.\n */\nexport const NOTIFICATION_KIND_VALUES = [\n 'comment_on_post',\n 'reply_to_comment',\n 'product_invite',\n 'product_invite_accepted',\n 'product_review',\n 'review_reply',\n 'feedback_helpful',\n 'tester_confirmed',\n 'post_reaction',\n 'comment_reaction',\n 'repost',\n 'community_join_request',\n 'community_request_approved',\n 'community_invite',\n 'community_announcement',\n 'community_suggestion_decided',\n 'plan_ending',\n 'plan_ended',\n 'payment_refunded',\n 'chat_message',\n 'free_plans_ended',\n 'new_follower',\n 'followed_member_posted',\n 'mention',\n 'post_upvote',\n 'comment_upvote',\n // Comments ON a product (2026-11-24): to its owner, and to a comment's writer for a reply.\n 'product_comment',\n 'product_comment_reply',\n // Auto-renewal (0.31.0, payments v2).\n 'renewal_done',\n 'renewal_failed',\n 'auto_renew_stopped',\n 'plan_renews_soon',\n] as const;\nexport const notificationKindSchema = z.enum(NOTIFICATION_KIND_VALUES);\nexport type NotificationKind = z.infer<typeof notificationKindSchema>;\n\n/** The switches a member has, each covering one or more kinds. */\nexport const NOTIFICATION_PREFERENCE_VALUES = [\n 'comments',\n 'replies',\n 'productActivity',\n 'recognition',\n 'reactions',\n 'reposts',\n 'communities',\n 'followers',\n 'followedPosts',\n 'mentions',\n 'upvotes',\n] as const;\nexport type NotificationPreference = (typeof NOTIFICATION_PREFERENCE_VALUES)[number];\n\n/**\n * Which switch silences which kind. Null: always delivered. Exhaustive by\n * type, so a kind added without a decision here does not compile.\n */\nexport const NOTIFICATION_PREFERENCE_OF = {\n comment_on_post: 'comments',\n reply_to_comment: 'replies',\n product_invite: null,\n product_invite_accepted: 'productActivity',\n product_review: 'productActivity',\n review_reply: 'productActivity',\n feedback_helpful: 'recognition',\n tester_confirmed: 'recognition',\n post_reaction: 'reactions',\n comment_reaction: 'reactions',\n repost: 'reposts',\n community_join_request: 'communities',\n community_request_approved: null,\n community_invite: null,\n community_announcement: 'communities',\n community_suggestion_decided: null,\n plan_ending: null,\n plan_ended: null,\n payment_refunded: null,\n chat_message: null,\n free_plans_ended: null,\n new_follower: 'followers',\n followed_member_posted: 'followedPosts',\n mention: 'mentions',\n post_upvote: 'upvotes',\n comment_upvote: 'upvotes',\n product_comment: 'comments',\n product_comment_reply: 'replies',\n renewal_done: null,\n renewal_failed: null,\n auto_renew_stopped: null,\n plan_renews_soon: null,\n} as const satisfies Record<NotificationKind, NotificationPreference | null>;\n\n/**\n * One row of the bell. Which of the optional targets are present depends on\n * `kind`:\n *\n * comment_on_post content, commentId\n * reply_to_comment content, commentId (the reply)\n * product_invite product, role\n * product_invite_accepted product\n * product_review product, reviewId\n * review_reply product, reviewId\n * feedback_helpful product, content, commentId\n * tester_confirmed product\n * post_reaction content, reaction\n * comment_reaction content, commentId, reaction, excerpt (your comment)\n * repost content (yours, the one reposted), repostId (the latest repost, to read their words)\n * community_join_request community\n * community_request_approved community\n * community_invite community\n * community_announcement community, content (the pinned post or poll)\n * community_suggestion_decided suggestion, community (once approved)\n * plan_ending plan (the tier, and when it ends)\n * plan_ended plan (the tier that ended), paused (how many products)\n * payment_refunded payment\n * chat_message conversationId (the chat to open)\n * free_plans_ended paused (how many products)\n * new_follower (the actor alone: who followed you)\n * followed_member_posted content (their new post or poll), community (when it is in one)\n * mention content (where), commentId (when it was in a comment), excerpt;\n * or, in a comment ON a product, product + commentId (no content)\n * post_upvote content\n * comment_upvote content, commentId, excerpt (your comment)\n * product_comment product, commentId, excerpt (to the product's owner)\n * product_comment_reply product, commentId (the reply), excerpt\n * renewal_done plan (the tier, and its NEW end), payment (the charge)\n * renewal_failed plan (the tier, and when its time runs out), renewal (amount, due date)\n * auto_renew_stopped plan (the tier, and when its time runs out)\n * plan_renews_soon plan (the tier, and when its time runs out), renewal (amount, charge date)\n *\n * Any row about something inside a community also carries `community`\n * (0.9.0), whatever its kind. When the recipient leaves the community, is\n * removed or is banned, its rows about that community lose their content,\n * comment, excerpt and repost: what they could read there, they no longer can.\n *\n * A target that no longer exists (a deleted post, product or review) is\n * absent rather than pointing at a 404; the row still says what happened.\n */\nexport const notificationSchema = z.object({\n id: objectIdSchema,\n kind: notificationKindSchema,\n /** The latest person to do it, live; null for a deleted account. */\n actor: memberBylineSchema.nullable(),\n /**\n * How many EVENTS this row merges, at least 1: three comments by one person\n * are 3. Word it as events (\"3 new comments, latest from Asha\"), never as\n * people (\"Asha and 2 others\"), which this count does not know.\n */\n count: z.number().int().positive(),\n content: z.object({ kind: contentKindSchema, id: objectIdSchema }).optional(),\n commentId: objectIdSchema.optional(),\n product: productChipSchema.optional(),\n reviewId: objectIdSchema.optional(),\n /**\n * For `repost` (0.8.0): the latest repost itself, so the row opens the\n * reposter's words above your post. Gone once that repost is.\n */\n repostId: objectIdSchema.optional(),\n /**\n * The community the row is about, or that its content is in (0.9.0). Absent\n * once that community is deleted, or the recipient may no longer see it.\n */\n community: communityChipSchema.optional(),\n /** For `community_suggestion_decided` (0.9.0): which suggestion, and how it went. */\n suggestion: z\n .object({\n id: objectIdSchema,\n name: z.string(),\n status: communitySuggestionDecisionSchema,\n /** Why it was declined. */\n reason: z.string().optional(),\n })\n .optional(),\n /**\n * For `plan_ending` and `plan_ended` (0.12.0), and the auto-renewal kinds\n * (0.31.0): which tier, and when it ends or ended.\n */\n plan: z.object({ tier: planTierSchema, endsAt: z.iso.datetime() }).optional(),\n /**\n * For `plan_renews_soon` and `renewal_failed` (0.31.0): what the\n * auto-renewal charges, and when (the charge that is coming, or the one\n * that failed).\n */\n renewal: z.object({ amount: paiseSchema, at: z.iso.datetime() }).optional(),\n /**\n * For `plan_ended` (0.12.0) and `free_plans_ended` (0.24.0): products paused\n * because the live places went. Nothing is deleted; the owner picks which stay live.\n */\n paused: z.number().int().nonnegative().optional(),\n /** For `payment_refunded` (0.12.0): which purchase, by its title. */\n payment: z.object({ id: objectIdSchema, title: z.string() }).optional(),\n /** For `chat_message`: the conversation, so the row opens that chat. */\n conversationId: objectIdSchema.optional(),\n /** For `product_invite`: the role offered. */\n role: productInvitableRoleSchema.optional(),\n /** For the reaction kinds: the latest reaction, as it is now (0.8.0). */\n reaction: reactionTypeSchema.optional(),\n /**\n * The first words of what was written, for the comment and review kinds\n * (the latest one, on a merged row), cut to `NOTIFICATION_EXCERPT_MAX`. Gone\n * when that comment or review is deleted or hidden, and when its writer's\n * account is.\n */\n excerpt: z.string().max(NOTIFICATION_EXCERPT_MAX).optional(),\n /** Null until opened (or until \"mark all read\"). A merged repeat makes it unread again. */\n readAt: z.iso.datetime().nullable(),\n /**\n * When the member put it away (2026-11-30), or null. A hidden row is read, and\n * only the `hidden` filter lists it. Defaults to null when an older server\n * leaves it out.\n */\n hiddenAt: z.iso.datetime().nullable().default(null),\n /** When it last happened: the list's order. */\n lastAt: z.iso.datetime(),\n createdAt: z.iso.datetime(),\n});\nexport type Notification = z.infer<typeof notificationSchema>;\n\nexport const notificationPageSchema = paginatedSchema(notificationSchema);\nexport type NotificationPage = z.infer<typeof notificationPageSchema>;\n\n/**\n * The bell's lists (2026-11-30, GymMonk's chips). The server owns what each\n * means, so a list and the badge never disagree:\n *\n * all everything not hidden\n * unread not hidden, not read yet (what the badge counts)\n * read not hidden, read\n * hidden only what the member put away\n */\nexport const NOTIFICATION_FILTER_VALUES = ['all', 'unread', 'read', 'hidden'] as const;\nexport const notificationFilterSchema = z.enum(NOTIFICATION_FILTER_VALUES);\nexport type NotificationFilter = z.infer<typeof notificationFilterSchema>;\n\n/** A page of the bell, in one list. No `filter` is `all`, as before it existed. */\nexport const notificationListQuerySchema = paginationQuerySchema.extend({\n filter: notificationFilterSchema.default('all'),\n});\nexport type NotificationListQuery = z.infer<typeof notificationListQuerySchema>;\nexport type NotificationListQueryInput = z.input<typeof notificationListQuerySchema>;\n\n/** Put one away (`true`), or back (`false`). */\nexport const setNotificationHiddenBodySchema = z.object({ hidden: z.boolean() });\nexport type SetNotificationHiddenBody = z.infer<typeof setNotificationHiddenBodySchema>;\n\n/**\n * A row by its group key, the caller's own: what a tapped push opens\n * (`PUT /notifications/by-key/:groupKey/read`). One push goes to many members\n * with one link; the key is the same for each of them and names no one.\n */\nexport const notificationKeyParamsSchema = z.object({\n groupKey: z.string().min(1).max(120),\n});\nexport type NotificationKeyParams = z.infer<typeof notificationKeyParamsSchema>;\n\n/** The badge. */\nexport const notificationUnreadCountSchema = z.object({\n unread: z.number().int().nonnegative(),\n});\nexport type NotificationUnreadCount = z.infer<typeof notificationUnreadCountSchema>;\n\nexport const notificationParamsSchema = z.object({ notificationId: objectIdSchema });\nexport type NotificationParams = z.infer<typeof notificationParamsSchema>;\n\n/** Every switch, as stored (on by default). */\nexport const notificationPreferencesSchema = z.object({\n comments: z.boolean(),\n replies: z.boolean(),\n productActivity: z.boolean(),\n recognition: z.boolean(),\n /** Reactions to your posts, polls and comments (0.8.0). */\n reactions: z.boolean(),\n /** Reposts of your posts and polls (0.8.0). */\n reposts: z.boolean(),\n /** Announcements in your communities, and join requests to communities you moderate (0.9.0). */\n communities: z.boolean(),\n /** Someone started following you (2026-11-20). */\n followers: z.boolean(),\n /** Someone you follow shared a new post or poll (2026-11-20). */\n followedPosts: z.boolean(),\n /** Someone @mentioned you (2026-11-23). On for an answer from before the switch. */\n mentions: z.boolean().default(true),\n /** Up votes on your posts, polls and comments (2026-11-23). */\n upvotes: z.boolean(),\n /**\n * Push paused on EVERY device (2026-11-30). Never the bell: its rows are still\n * written, so nothing is missed, and the switches above are kept as they are\n * for when it is turned off again. Off for an answer from before it existed.\n */\n pushPaused: z.boolean().default(false),\n});\nexport type NotificationPreferences = z.infer<typeof notificationPreferencesSchema>;\n\n/** Only the switches that changed; no defaults (a patch states what was sent). */\nexport const updateNotificationPreferencesBodySchema = z.object({\n comments: z.boolean().optional(),\n replies: z.boolean().optional(),\n productActivity: z.boolean().optional(),\n recognition: z.boolean().optional(),\n reactions: z.boolean().optional(),\n reposts: z.boolean().optional(),\n communities: z.boolean().optional(),\n followers: z.boolean().optional(),\n followedPosts: z.boolean().optional(),\n mentions: z.boolean().optional(),\n upvotes: z.boolean().optional(),\n pushPaused: z.boolean().optional(),\n});\nexport type UpdateNotificationPreferencesBody = z.infer<\n typeof updateNotificationPreferencesBodySchema\n>;\n"]}
|
|
1
|
+
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../src/domains/notifications/notifications.ts"],"names":[],"mappings":"AAAA;;;;;;;;;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CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC","sourcesContent":["/**\n * founder-schema — Notifications: the bell\n *\n * The design the user approved on 2026-10-05 (\"Founder Circle Schema Review\"):\n *\n * - ONE ROW PER RECIPIENT, written when the event happens.\n * - REPEATS MERGE: a second comment on your post updates the same row\n * (\"2 new comments, latest from Asha\"), it never adds one. `count` is how\n * many events it holds and `actor` the latest. A member repeating the same\n * act (reacting, taking it back, reacting again) does not ring it again.\n * - THE ACTOR IS LOOKED UP WHEN READ, never copied in: a renamed member shows\n * their new name, and a deleted one shows as null (\"A former member\").\n * - PREFERENCES ARE CHECKED before writing (Jansathi stores them and never\n * reads them). A team invitation is always delivered: it needs an answer.\n * - KEPT `NOTIFICATION_RETENTION_DAYS`, then deleted.\n * - Nobody is notified of their own action.\n *\n * A push is the row arriving on a device (`push.ts`): the bell is the record, so\n * a paused push (`pushPaused`) never loses a row.\n *\n * - HIDDEN (2026-11-30, GymMonk's swipe): a row the member put away. It leaves\n * every list but Hidden, counts as read, and is never deleted by it:\n * `hidden: false` puts it back, and a NEW event merged into it brings it\n * back unread by itself.\n *\n * Routes (all signed in):\n * GET /api/v1/notifications notificationListQuerySchema -> notificationPageSchema\n * GET /api/v1/notifications/unread-count -> notificationUnreadCountSchema\n * POST /api/v1/notifications/read mark every one read -> notificationUnreadCountSchema\n * PUT /api/v1/notifications/:notificationId/read -> notificationSchema\n * PUT /api/v1/notifications/:notificationId/hidden setNotificationHiddenBodySchema -> notificationSchema\n * GET /api/v1/notifications/preferences -> notificationPreferencesSchema\n * PUT /api/v1/notifications/preferences updateNotificationPreferencesBodySchema -> notificationPreferencesSchema\n *\n * @module founder-schema/domains/notifications\n */\n\nimport { z } from 'zod';\nimport { objectIdSchema, paginationQuerySchema } from '../../core/common.js';\nimport { NOTIFICATION_EXCERPT_MAX } from '../../core/limits.js';\nimport { paginatedSchema } from '../../core/responses.js';\nimport {\n communityChipSchema,\n communitySuggestionDecisionSchema,\n} from '../communities/communities.js';\nimport { contentKindSchema, reactionTypeSchema } from '../feed/feed.js';\nimport { paiseSchema, planTierSchema } from '../membership/membership.js';\nimport { productChipSchema, productInvitableRoleSchema } from '../products/products.js';\nimport { memberBylineSchema } from '../profile/founder-profile.js';\n\n/**\n * What happened. ⚠ Stored per row: append only.\n *\n * comment_on_post someone commented on your post or poll\n * reply_to_comment someone replied to your comment\n * product_invite a team invited you (always delivered)\n * product_invite_accepted someone accepted your team's invitation\n * product_review someone reviewed a product you are on the team of\n * review_reply a product's team answered your review\n * feedback_helpful a team marked your feedback as having helped\n * tester_confirmed a team confirmed you tested their product\n * post_reaction someone reacted to your post or poll (0.8.0)\n * comment_reaction someone reacted to your comment (0.8.0)\n * repost someone reposted your post or poll (0.8.0)\n * community_join_request someone asked to join a community you moderate (0.9.0)\n * community_request_approved your request to join was approved (always delivered)\n * community_invite a community invited you (always delivered)\n * community_announcement a community you are in pinned an announcement for everyone\n * community_suggestion_decided your community suggestion was approved or declined (always delivered)\n * plan_ending your plan ends in 7 days, then in 1 day (0.12.0, always delivered)\n * plan_ended your plan ended; `paused` products were paused (0.12.0, always delivered)\n * payment_refunded staff refunded one of your payments (0.12.0, always delivered)\n * chat_message someone messaged you while you were not in that chat (always\n * delivered; the browser's permission is the off switch). One\n * row per conversation: more messages merge into it, and opening\n * the chat marks it read. No message text is stored on it.\n * free_plans_ended payments went live, so the top plan every member held free\n * while they were off ended; `paused` products were paused\n * (0.24.0, always delivered; only to owners it paused any for)\n * new_follower someone started following you (2026-11-20). Rings once while\n * unread; an unfollow takes the unread row back.\n * followed_member_posted someone you follow shared a new post or poll you can read\n * (2026-11-20). One row per post; never its text.\n * mention someone @mentioned you in a post, a poll's question or a\n * comment (2026-11-23). One row per post or poll: mentions in\n * it and in its comments merge. Never for naming yourself.\n * post_upvote someone up voted your post or poll (2026-11-23). Merged per\n * item like a reaction; a NEW up vote only (a down vote, a flip\n * and a clear are silent); in the bell, never a push.\n * comment_upvote someone up voted your comment (2026-11-23), as above.\n * renewal_done your auto-renewal charged and your plan runs on (0.31.0,\n * always delivered, no push: the receipt email says it too)\n * renewal_failed your auto-renewal's charge did not go through; the gateway\n * retries for 3 days (0.31.0, always delivered, with a push)\n * auto_renew_stopped your auto-renewal stopped: every retry failed, or it was\n * ended with a refund or the membership (0.31.0, always\n * delivered, with a push). Not for turning it off yourself.\n * plan_renews_soon a YEARLY auto-renewal charges in 7 days (0.31.0, always\n * delivered). Monthly ones rely on the bank's pre-debit notice.\n * support_reply Support answered your request (2026-11-30, always delivered, with\n * a push). One row per ticket. Never for your own message, nor\n * for a ticket taken or closed without one.\n *\n * The three 0.8.0 kinds merge per target like the others. A reaction counts\n * once: changing it to another type is not a new event, and taking it back\n * does not take the event back.\n */\nexport const NOTIFICATION_KIND_VALUES = [\n 'comment_on_post',\n 'reply_to_comment',\n 'product_invite',\n 'product_invite_accepted',\n 'product_review',\n 'review_reply',\n 'feedback_helpful',\n 'tester_confirmed',\n 'post_reaction',\n 'comment_reaction',\n 'repost',\n 'community_join_request',\n 'community_request_approved',\n 'community_invite',\n 'community_announcement',\n 'community_suggestion_decided',\n 'plan_ending',\n 'plan_ended',\n 'payment_refunded',\n 'chat_message',\n 'free_plans_ended',\n 'new_follower',\n 'followed_member_posted',\n 'mention',\n 'post_upvote',\n 'comment_upvote',\n // Comments ON a product (2026-11-24): to its owner, and to a comment's writer for a reply.\n 'product_comment',\n 'product_comment_reply',\n // Auto-renewal (0.31.0, payments v2).\n 'renewal_done',\n 'renewal_failed',\n 'auto_renew_stopped',\n 'plan_renews_soon',\n // Support answered (2026-11-30).\n 'support_reply',\n] as const;\nexport const notificationKindSchema = z.enum(NOTIFICATION_KIND_VALUES);\nexport type NotificationKind = z.infer<typeof notificationKindSchema>;\n\n/** The switches a member has, each covering one or more kinds. */\nexport const NOTIFICATION_PREFERENCE_VALUES = [\n 'comments',\n 'replies',\n 'productActivity',\n 'recognition',\n 'reactions',\n 'reposts',\n 'communities',\n 'followers',\n 'followedPosts',\n 'mentions',\n 'upvotes',\n] as const;\nexport type NotificationPreference = (typeof NOTIFICATION_PREFERENCE_VALUES)[number];\n\n/**\n * Which switch silences which kind. Null: always delivered. Exhaustive by\n * type, so a kind added without a decision here does not compile.\n */\nexport const NOTIFICATION_PREFERENCE_OF = {\n comment_on_post: 'comments',\n reply_to_comment: 'replies',\n product_invite: null,\n product_invite_accepted: 'productActivity',\n product_review: 'productActivity',\n review_reply: 'productActivity',\n feedback_helpful: 'recognition',\n tester_confirmed: 'recognition',\n post_reaction: 'reactions',\n comment_reaction: 'reactions',\n repost: 'reposts',\n community_join_request: 'communities',\n community_request_approved: null,\n community_invite: null,\n community_announcement: 'communities',\n community_suggestion_decided: null,\n plan_ending: null,\n plan_ended: null,\n payment_refunded: null,\n chat_message: null,\n free_plans_ended: null,\n new_follower: 'followers',\n followed_member_posted: 'followedPosts',\n mention: 'mentions',\n post_upvote: 'upvotes',\n comment_upvote: 'upvotes',\n product_comment: 'comments',\n product_comment_reply: 'replies',\n renewal_done: null,\n renewal_failed: null,\n auto_renew_stopped: null,\n plan_renews_soon: null,\n support_reply: null,\n} as const satisfies Record<NotificationKind, NotificationPreference | null>;\n\n/**\n * One row of the bell. Which of the optional targets are present depends on\n * `kind`:\n *\n * comment_on_post content, commentId\n * reply_to_comment content, commentId (the reply)\n * product_invite product, role\n * product_invite_accepted product\n * product_review product, reviewId\n * review_reply product, reviewId\n * feedback_helpful product, content, commentId\n * tester_confirmed product\n * post_reaction content, reaction\n * comment_reaction content, commentId, reaction, excerpt (your comment)\n * repost content (yours, the one reposted), repostId (the latest repost, to read their words)\n * community_join_request community\n * community_request_approved community\n * community_invite community\n * community_announcement community, content (the pinned post or poll)\n * community_suggestion_decided suggestion, community (once approved)\n * plan_ending plan (the tier, and when it ends)\n * plan_ended plan (the tier that ended), paused (how many products)\n * payment_refunded payment\n * chat_message conversationId (the chat to open)\n * free_plans_ended paused (how many products)\n * new_follower (the actor alone: who followed you)\n * followed_member_posted content (their new post or poll), community (when it is in one)\n * mention content (where), commentId (when it was in a comment), excerpt;\n * or, in a comment ON a product, product + commentId (no content)\n * post_upvote content\n * comment_upvote content, commentId, excerpt (your comment)\n * product_comment product, commentId, excerpt (to the product's owner)\n * product_comment_reply product, commentId (the reply), excerpt\n * renewal_done plan (the tier, and its NEW end), payment (the charge)\n * renewal_failed plan (the tier, and when its time runs out), renewal (amount, due date)\n * auto_renew_stopped plan (the tier, and when its time runs out)\n * plan_renews_soon plan (the tier, and when its time runs out), renewal (amount, charge date)\n * support_reply ticket (which one); no actor: it is Support's answer\n *\n * Any row about something inside a community also carries `community`\n * (0.9.0), whatever its kind. When the recipient leaves the community, is\n * removed or is banned, its rows about that community lose their content,\n * comment, excerpt and repost: what they could read there, they no longer can.\n *\n * A target that no longer exists (a deleted post, product or review) is\n * absent rather than pointing at a 404; the row still says what happened.\n */\nexport const notificationSchema = z.object({\n id: objectIdSchema,\n kind: notificationKindSchema,\n /** The latest person to do it, live; null for a deleted account. */\n actor: memberBylineSchema.nullable(),\n /**\n * How many EVENTS this row merges, at least 1: three comments by one person\n * are 3. Word it as events (\"3 new comments, latest from Asha\"), never as\n * people (\"Asha and 2 others\"), which this count does not know.\n */\n count: z.number().int().positive(),\n content: z.object({ kind: contentKindSchema, id: objectIdSchema }).optional(),\n commentId: objectIdSchema.optional(),\n product: productChipSchema.optional(),\n reviewId: objectIdSchema.optional(),\n /**\n * For `repost` (0.8.0): the latest repost itself, so the row opens the\n * reposter's words above your post. Gone once that repost is.\n */\n repostId: objectIdSchema.optional(),\n /**\n * The community the row is about, or that its content is in (0.9.0). Absent\n * once that community is deleted, or the recipient may no longer see it.\n */\n community: communityChipSchema.optional(),\n /** For `community_suggestion_decided` (0.9.0): which suggestion, and how it went. */\n suggestion: z\n .object({\n id: objectIdSchema,\n name: z.string(),\n status: communitySuggestionDecisionSchema,\n /** Why it was declined. */\n reason: z.string().optional(),\n })\n .optional(),\n /**\n * For `plan_ending` and `plan_ended` (0.12.0), and the auto-renewal kinds\n * (0.31.0): which tier, and when it ends or ended.\n */\n plan: z.object({ tier: planTierSchema, endsAt: z.iso.datetime() }).optional(),\n /**\n * For `plan_renews_soon` and `renewal_failed` (0.31.0): what the\n * auto-renewal charges, and when (the charge that is coming, or the one\n * that failed).\n */\n renewal: z.object({ amount: paiseSchema, at: z.iso.datetime() }).optional(),\n /**\n * For `plan_ended` (0.12.0) and `free_plans_ended` (0.24.0): products paused\n * because the live places went. Nothing is deleted; the owner picks which stay live.\n */\n paused: z.number().int().nonnegative().optional(),\n /** For `payment_refunded` (0.12.0): which purchase, by its title. */\n payment: z.object({ id: objectIdSchema, title: z.string() }).optional(),\n /** For `support_reply` (2026-11-30): which of their tickets, by its own subject. Never the answer's words. */\n ticket: z\n .object({ id: objectIdSchema, subject: z.string().max(NOTIFICATION_EXCERPT_MAX) })\n .optional(),\n /** For `chat_message`: the conversation, so the row opens that chat. */\n conversationId: objectIdSchema.optional(),\n /** For `product_invite`: the role offered. */\n role: productInvitableRoleSchema.optional(),\n /** For the reaction kinds: the latest reaction, as it is now (0.8.0). */\n reaction: reactionTypeSchema.optional(),\n /**\n * The first words of what was written, for the comment and review kinds\n * (the latest one, on a merged row), cut to `NOTIFICATION_EXCERPT_MAX`. Gone\n * when that comment or review is deleted or hidden, and when its writer's\n * account is.\n */\n excerpt: z.string().max(NOTIFICATION_EXCERPT_MAX).optional(),\n /** Null until opened (or until \"mark all read\"). A merged repeat makes it unread again. */\n readAt: z.iso.datetime().nullable(),\n /**\n * When the member put it away (2026-11-30), or null. A hidden row is read, and\n * only the `hidden` filter lists it. Defaults to null when an older server\n * leaves it out.\n */\n hiddenAt: z.iso.datetime().nullable().default(null),\n /** When it last happened: the list's order. */\n lastAt: z.iso.datetime(),\n createdAt: z.iso.datetime(),\n});\nexport type Notification = z.infer<typeof notificationSchema>;\n\nexport const notificationPageSchema = paginatedSchema(notificationSchema);\nexport type NotificationPage = z.infer<typeof notificationPageSchema>;\n\n/**\n * The bell's lists (2026-11-30, GymMonk's chips). The server owns what each\n * means, so a list and the badge never disagree:\n *\n * all everything not hidden\n * unread not hidden, not read yet (what the badge counts)\n * read not hidden, read\n * hidden only what the member put away\n */\nexport const NOTIFICATION_FILTER_VALUES = ['all', 'unread', 'read', 'hidden'] as const;\nexport const notificationFilterSchema = z.enum(NOTIFICATION_FILTER_VALUES);\nexport type NotificationFilter = z.infer<typeof notificationFilterSchema>;\n\n/** A page of the bell, in one list. No `filter` is `all`, as before it existed. */\nexport const notificationListQuerySchema = paginationQuerySchema.extend({\n filter: notificationFilterSchema.default('all'),\n});\nexport type NotificationListQuery = z.infer<typeof notificationListQuerySchema>;\nexport type NotificationListQueryInput = z.input<typeof notificationListQuerySchema>;\n\n/** Put one away (`true`), or back (`false`). */\nexport const setNotificationHiddenBodySchema = z.object({ hidden: z.boolean() });\nexport type SetNotificationHiddenBody = z.infer<typeof setNotificationHiddenBodySchema>;\n\n/**\n * A row by its group key, the caller's own: what a tapped push opens\n * (`PUT /notifications/by-key/:groupKey/read`). One push goes to many members\n * with one link; the key is the same for each of them and names no one.\n */\nexport const notificationKeyParamsSchema = z.object({\n groupKey: z.string().min(1).max(120),\n});\nexport type NotificationKeyParams = z.infer<typeof notificationKeyParamsSchema>;\n\n/** The badge. */\nexport const notificationUnreadCountSchema = z.object({\n unread: z.number().int().nonnegative(),\n});\nexport type NotificationUnreadCount = z.infer<typeof notificationUnreadCountSchema>;\n\nexport const notificationParamsSchema = z.object({ notificationId: objectIdSchema });\nexport type NotificationParams = z.infer<typeof notificationParamsSchema>;\n\n/** Every switch, as stored (on by default). */\nexport const notificationPreferencesSchema = z.object({\n comments: z.boolean(),\n replies: z.boolean(),\n productActivity: z.boolean(),\n recognition: z.boolean(),\n /** Reactions to your posts, polls and comments (0.8.0). */\n reactions: z.boolean(),\n /** Reposts of your posts and polls (0.8.0). */\n reposts: z.boolean(),\n /** Announcements in your communities, and join requests to communities you moderate (0.9.0). */\n communities: z.boolean(),\n /** Someone started following you (2026-11-20). */\n followers: z.boolean(),\n /** Someone you follow shared a new post or poll (2026-11-20). */\n followedPosts: z.boolean(),\n /** Someone @mentioned you (2026-11-23). On for an answer from before the switch. */\n mentions: z.boolean().default(true),\n /** Up votes on your posts, polls and comments (2026-11-23). */\n upvotes: z.boolean(),\n /**\n * Push paused on EVERY device (2026-11-30). Never the bell: its rows are still\n * written, so nothing is missed, and the switches above are kept as they are\n * for when it is turned off again. Off for an answer from before it existed.\n */\n pushPaused: z.boolean().default(false),\n});\nexport type NotificationPreferences = z.infer<typeof notificationPreferencesSchema>;\n\n/** Only the switches that changed; no defaults (a patch states what was sent). */\nexport const updateNotificationPreferencesBodySchema = z.object({\n comments: z.boolean().optional(),\n replies: z.boolean().optional(),\n productActivity: z.boolean().optional(),\n recognition: z.boolean().optional(),\n reactions: z.boolean().optional(),\n reposts: z.boolean().optional(),\n communities: z.boolean().optional(),\n followers: z.boolean().optional(),\n followedPosts: z.boolean().optional(),\n mentions: z.boolean().optional(),\n upvotes: z.boolean().optional(),\n pushPaused: z.boolean().optional(),\n});\nexport type UpdateNotificationPreferencesBody = z.infer<\n typeof updateNotificationPreferencesBodySchema\n>;\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export { type ApiError, type ApiErrorDetails, apiErrorDetailsSchema, apiErrorSch
|
|
|
22
22
|
export { REQUEST_PART_VALUES, type RequestPart, requestPartSchema, toValidationIssues, VALIDATION_MESSAGE, type ValidationIssue, type ValidationMessageKey, validationIssueSchema, } from './core/validation.js';
|
|
23
23
|
export { type DeleteAccountResponse, deleteAccountResponseSchema, } from './domains/account/account.js';
|
|
24
24
|
export { AUDIT_ACTION_VALUES, type AuditAction, type AuditActor, type AuditEntry, type AuditPage, auditActionSchema, auditActorSchema, auditEntrySchema, auditPageSchema, } from './domains/audit/audit.js';
|
|
25
|
-
export { type AppliedCoupon, type AutoRenewalParams, type AutoRenewalState, type AutoRenewTerms, appliedCouponSchema, autoRenewalParamsSchema, autoRenewalStateSchema, autoRenewTermsSchema, type BillingDetails, billingDetailsSchema, COUPON_KIND_VALUES, COUPON_TARGET_VALUES, type ConfirmAutoRenewalBody, type ConfirmOrderBody, type Coupon, type CouponBenefit, type CouponKind, type CouponList, type CouponParams, type CouponTarget, type CreateCouponBody, type CreateOrderBody, type CreateOrderResponse, type CreditNote, confirmAutoRenewalBodySchema, confirmOrderBodySchema, couponBenefitSchema, couponCodeSchema, couponListSchema, couponParamsSchema, couponSchema, couponTargetSchema, createCouponBodySchema, createOrderBodySchema, createOrderResponseSchema, creditNoteSchema, GRANT_FAILURE_VALUES, type GrantFailure, GST_RATE_PERCENT, GST_STATE_CODE_VALUES, GST_STATES, type GstStateCode, grantFailureSchema, gstinChecksumValid, gstinSchema, gstStateCodeSchema, gstStateName, INVOICE_KIND_VALUES, type Invoice, type InvoiceKind, type InvoiceParty, invoiceKindSchema, invoicePartySchema, invoiceSchema, ORDER_SOURCE_VALUES, ORDER_STATUS_VALUES, type OrderParams, type OrderSource, type OrderState, type OrderStatus, orderParamsSchema, orderSourceSchema, orderStateSchema, orderStatusSchema, type Payer, type PaymentDetail, type PaymentMethodUpdate, type PaymentPage, type PaymentSummary, type PlanEffect, PURCHASE_KIND_VALUES, type PurchaseItem, type PurchaseKind, payerSchema, paymentDetailSchema, paymentMethodUpdateSchema, paymentPageSchema, paymentSummarySchema, planEffectSchema, purchaseItemSchema, type Quote, type QuoteBody, quoteBodySchema, quoteSchema, type RefundPaymentBody, refundPaymentBodySchema, type SetMembershipBody, type StaffPaymentDetail, type StaffPaymentPage, type StaffPaymentSummary, type StaffPaymentsQuery, type StaffPaymentsQueryInput, type StartAutoRenewalBody, setMembershipBodySchema, staffPaymentDetailSchema, staffPaymentPageSchema, staffPaymentSummarySchema, staffPaymentsQuerySchema, startAutoRenewalBodySchema, type TaxSplit, taxSplitSchema, type UpdateCouponBody, updateCouponBodySchema, } from './domains/billing/billing.js';
|
|
25
|
+
export { type AppliedCoupon, type AutoRenewalParams, type AutoRenewalState, type AutoRenewTerms, appliedCouponSchema, autoRenewalParamsSchema, autoRenewalStateSchema, autoRenewTermsSchema, type BillingDetails, billingDetailsSchema, COUPON_KIND_VALUES, COUPON_TARGET_VALUES, type ConfirmAutoRenewalBody, type ConfirmOrderBody, type Coupon, type CouponBenefit, type CouponKind, type CouponList, type CouponParams, type CouponTarget, type CreateCouponBody, type CreateOrderBody, type CreateOrderResponse, type CreditNote, confirmAutoRenewalBodySchema, confirmOrderBodySchema, couponBenefitSchema, couponCodeSchema, couponListSchema, couponParamsSchema, couponSchema, couponTargetSchema, createCouponBodySchema, createOrderBodySchema, createOrderResponseSchema, creditNoteSchema, GRANT_FAILURE_VALUES, type GrantFailure, GST_RATE_PERCENT, GST_STATE_CODE_VALUES, GST_STATES, type GstStateCode, grantFailureSchema, gstinChecksumValid, gstinSchema, gstStateCodeOf, gstStateCodeSchema, gstStateName, INVOICE_KIND_VALUES, type Invoice, type InvoiceKind, type InvoiceParty, invoiceKindSchema, invoicePartySchema, invoiceSchema, ORDER_SOURCE_VALUES, ORDER_STATUS_VALUES, type OrderParams, type OrderSource, type OrderState, type OrderStatus, orderParamsSchema, orderSourceSchema, orderStateSchema, orderStatusSchema, type Payer, type PaymentDetail, type PaymentMethodUpdate, type PaymentPage, type PaymentSummary, type PlanEffect, PURCHASE_KIND_VALUES, type PurchaseItem, type PurchaseKind, payerSchema, paymentDetailSchema, paymentMethodUpdateSchema, paymentPageSchema, paymentSummarySchema, planEffectSchema, purchaseItemSchema, type Quote, type QuoteBody, quoteBodySchema, quoteSchema, type RefundPaymentBody, refundPaymentBodySchema, type SetMembershipBody, type StaffPaymentDetail, type StaffPaymentPage, type StaffPaymentSummary, type StaffPaymentsQuery, type StaffPaymentsQueryInput, type StartAutoRenewalBody, setMembershipBodySchema, staffPaymentDetailSchema, staffPaymentPageSchema, staffPaymentSummarySchema, staffPaymentsQuerySchema, startAutoRenewalBodySchema, type TaxSplit, taxSplitSchema, type UpdateCouponBody, updateCouponBodySchema, } from './domains/billing/billing.js';
|
|
26
26
|
export { AUTO_RENEW_STOP_REASON_VALUES, type AutoRenewStopReason, autoRenewStopReasonSchema, FC_EMAIL_DATA_SCHEMAS, FC_EMAIL_TEMPLATE_VALUES, type FcEmailData, type FcEmailTemplate, fcAutoRenewStoppedEmailSchema, fcPaymentReceivedEmailSchema, fcPlanEndsSoonEmailSchema, fcPlanRenewsSoonEmailSchema, fcRefundProcessedEmailSchema, fcRenewalDoneEmailSchema, fcRenewalFailedEmailSchema, } from './domains/billing/emails.js';
|
|
27
27
|
export { PAYMENT_METHOD_TEXT_MAX, PAYMENT_METHOD_VALUES, type PaymentMethod, type PaymentMethodSnapshot, paymentMethodSchema, paymentMethodSnapshotSchema, } from './domains/billing/payment-method.js';
|
|
28
28
|
export { BLOCKS_MAX, type BlockAnswer, type BlockedMember, type BlockedPage, type BlockTargetParams, blockAnswerSchema, blockedMemberSchema, blockedPageSchema, blockTargetParamsSchema, } from './domains/blocks/blocks.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EACL,KAAK,cAAc,EACnB,oBAAoB,EACpB,KAAK,gBAAgB,EACrB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,UAAU,EACV,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,KAAK,UAAU,EACf,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,aAAa,EACb,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,UAAU,EACf,YAAY,EACZ,KAAK,WAAW,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,KAAK,OAAO,EACZ,K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EAChB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,+BAA+B,EAC/B,mCAAmC,EACnC,wBAAwB,EACxB,4BAA4B,EAC5B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,GACf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACL,KAAK,UAAU,EACf,gBAAgB,EAChB,uBAAuB,EACvB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,gCAAgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EACL,KAAK,cAAc,EACnB,oBAAoB,EACpB,KAAK,gBAAgB,EACrB,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,UAAU,EACV,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,qBAAqB,EACrB,iBAAiB,EACjB,KAAK,UAAU,EACf,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,aAAa,EACb,KAAK,MAAM,EACX,KAAK,UAAU,EACf,KAAK,UAAU,EACf,YAAY,EACZ,KAAK,WAA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AAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAClC,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,+BAA+B,EAC/B,mCAAmC,EACnC,wBAAwB,EACxB,4BAA4B,EAC5B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,sBAAsB,EACtB,gBAAgB,EAChB,cAAc,GACf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACL,KAAK,UAAU,EACf,gBAAgB,EAChB,uBAAuB,EACvB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,gCAAgC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@ export { REQUEST_PART_VALUES, requestPartSchema, toValidationIssues, VALIDATION_
|
|
|
32
32
|
export { deleteAccountResponseSchema, } from './domains/account/account.js';
|
|
33
33
|
export { AUDIT_ACTION_VALUES, auditActionSchema, auditActorSchema, auditEntrySchema, auditPageSchema, } from './domains/audit/audit.js';
|
|
34
34
|
// ─── Billing: buying, paying, invoices, refunds, coupons (0.12.0) ───────────
|
|
35
|
-
export { appliedCouponSchema, autoRenewalParamsSchema, autoRenewalStateSchema, autoRenewTermsSchema, billingDetailsSchema, COUPON_KIND_VALUES, COUPON_TARGET_VALUES, confirmAutoRenewalBodySchema, confirmOrderBodySchema, couponBenefitSchema, couponCodeSchema, couponListSchema, couponParamsSchema, couponSchema, couponTargetSchema, createCouponBodySchema, createOrderBodySchema, createOrderResponseSchema, creditNoteSchema, GRANT_FAILURE_VALUES, GST_RATE_PERCENT, GST_STATE_CODE_VALUES, GST_STATES, grantFailureSchema, gstinChecksumValid, gstinSchema, gstStateCodeSchema, gstStateName, INVOICE_KIND_VALUES, invoiceKindSchema, invoicePartySchema, invoiceSchema, ORDER_SOURCE_VALUES, ORDER_STATUS_VALUES, orderParamsSchema, orderSourceSchema, orderStateSchema, orderStatusSchema, PURCHASE_KIND_VALUES, payerSchema, paymentDetailSchema, paymentMethodUpdateSchema, paymentPageSchema, paymentSummarySchema, planEffectSchema, purchaseItemSchema, quoteBodySchema, quoteSchema, refundPaymentBodySchema, setMembershipBodySchema, staffPaymentDetailSchema, staffPaymentPageSchema, staffPaymentSummarySchema, staffPaymentsQuerySchema, startAutoRenewalBodySchema, taxSplitSchema, updateCouponBodySchema, } from './domains/billing/billing.js';
|
|
35
|
+
export { appliedCouponSchema, autoRenewalParamsSchema, autoRenewalStateSchema, autoRenewTermsSchema, billingDetailsSchema, COUPON_KIND_VALUES, COUPON_TARGET_VALUES, confirmAutoRenewalBodySchema, confirmOrderBodySchema, couponBenefitSchema, couponCodeSchema, couponListSchema, couponParamsSchema, couponSchema, couponTargetSchema, createCouponBodySchema, createOrderBodySchema, createOrderResponseSchema, creditNoteSchema, GRANT_FAILURE_VALUES, GST_RATE_PERCENT, GST_STATE_CODE_VALUES, GST_STATES, grantFailureSchema, gstinChecksumValid, gstinSchema, gstStateCodeOf, gstStateCodeSchema, gstStateName, INVOICE_KIND_VALUES, invoiceKindSchema, invoicePartySchema, invoiceSchema, ORDER_SOURCE_VALUES, ORDER_STATUS_VALUES, orderParamsSchema, orderSourceSchema, orderStateSchema, orderStatusSchema, PURCHASE_KIND_VALUES, payerSchema, paymentDetailSchema, paymentMethodUpdateSchema, paymentPageSchema, paymentSummarySchema, planEffectSchema, purchaseItemSchema, quoteBodySchema, quoteSchema, refundPaymentBodySchema, setMembershipBodySchema, staffPaymentDetailSchema, staffPaymentPageSchema, staffPaymentSummarySchema, staffPaymentsQuerySchema, startAutoRenewalBodySchema, taxSplitSchema, updateCouponBodySchema, } from './domains/billing/billing.js';
|
|
36
36
|
export { AUTO_RENEW_STOP_REASON_VALUES, autoRenewStopReasonSchema, FC_EMAIL_DATA_SCHEMAS, FC_EMAIL_TEMPLATE_VALUES, fcAutoRenewStoppedEmailSchema, fcPaymentReceivedEmailSchema, fcPlanEndsSoonEmailSchema, fcPlanRenewsSoonEmailSchema, fcRefundProcessedEmailSchema, fcRenewalDoneEmailSchema, fcRenewalFailedEmailSchema, } from './domains/billing/emails.js';
|
|
37
37
|
export { PAYMENT_METHOD_TEXT_MAX, PAYMENT_METHOD_VALUES, paymentMethodSchema, paymentMethodSnapshotSchema, } from './domains/billing/payment-method.js';
|
|
38
38
|
// ─── Blocking a member (2026-11-23) ─────────────────────────────────────────
|