@aventurevc/api-schemas 0.8.57 → 0.8.60

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.
@@ -33,7 +33,7 @@ import { PersonImageSchema } from "../person/image.js";
33
33
  export const EntityPersonAssociationSchema = z.object({
34
34
  /** Integer person-entity association join row id, not a person or entity UUID */
35
35
  associationId: z.int(),
36
- /** Association period end, preserving source precision */
36
+ /** Association period end, preserving source precision; any value means the association ended and isCurrent is false. Absent only while not terminated */
37
37
  endDate: z
38
38
  .string()
39
39
  .regex(/^(?!0000)[0-9]{4}(?:-(?:0[1-9]|1[0-2])(?:-(?:0[1-9]|[12][0-9]|3[01])(?:T(?:[01][0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9](?:\.[0-9]{1,9})?)?(?:Z|[+-][0-9]{2}:[0-5][0-9]))?)?)?$/)
@@ -55,6 +55,7 @@ export const EntityPersonAssociationSchema = z.object({
55
55
  entityType: EntityTypeSchema.nullish(),
56
56
  /** Entity URL links carried on the association projection */
57
57
  entityUrlLink: z.array(EntityUrlLinkSchema),
58
+ /** True only while the association has no endDate; any endDate means it ended */
58
59
  isCurrent: z.boolean().nullish(),
59
60
  /** Person addresses carried on the association projection */
60
61
  personAddress: z.array(AddressSchema),
@@ -18,7 +18,7 @@ import { EntityTypeSchema } from "../entity/type.js";
18
18
  export const IdentificationSubjectSchema = z.object({
19
19
  /** Specific facts in plain words: product, industry, employer and title, or founder names. Generic words like startup add nothing. */
20
20
  context: z.string().max(2000).nullish(),
21
- /** Kind of record to identify when you know it; the kind-agnostic POST /v1/lookup then runs only that kind's ladder. typeRecord or providerId implies ENTITY. */
21
+ /** Kind of record to identify when you know it; the lookup then runs only that kind's ladder. typeRecord or providerId implies ENTITY. */
22
22
  kind: z.enum(["ENTITY", "PERSON"]).nullish(),
23
23
  /** City, region, or country, such as Austin, TX. Tells namesakes apart; not proof on its own. */
24
24
  location: z.string().max(2000).nullish(),
@@ -6,11 +6,13 @@ import { PersonInvestedCompanySchema } from "./invested-company.js";
6
6
  const PersonInvestmentSchemaDefinition = z.object({
7
7
  amount: z.number().nullish(),
8
8
  company: PersonInvestedCompanySchema,
9
+ /** Announced date of the fundraise round. Use this field for when the investment happened; null when the round date is unknown. */
9
10
  date: z.iso.datetime({ offset: true }).nullish(),
10
11
  fundraiseTransaction: EntityFundraiseSchema.nullish(),
11
12
  /** Canonical fundraise transaction UUID */
12
13
  fundraiseTransactionId: z.uuid(),
13
14
  id: z.string(),
15
+ /** When aVenture recorded this person's participation in the round. It is not the investment date: imported portfolios share their import date. Use date for when the round happened. */
14
16
  investmentDate: z.iso.datetime({ offset: true }),
15
17
  /** Investor-specific attribution for this person's participation in the fundraise round. amountInvested is a plain decimal number in the fundraise transaction currency and is not added to amount. */
16
18
  investorAttribution: FundraiseInvestmentAttributionSchema.nullish(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.57",
3
+ "version": "0.8.60",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",