@aventurevc/api-schemas 0.8.432 → 0.8.434

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,24 @@
1
+ import { z } from "zod/v4";
2
+ /**
3
+ * Deal status of an acquisition: Pending is announced and not yet closed, Completed has closed, Canceled was terminated before closing.
4
+ *
5
+ * @openapiSchema EntityAcquisitionDealStatus
6
+ * @endpoint GET /v1/entities/{entityId}/acquisitions
7
+ * @endpoint GET /v1/entities/{entityId}/acquisitions/{relationshipId}
8
+ * @usedBySchema EntityAcquisitionSchema
9
+ * @contractShape entity.acquisition-deal-status
10
+ * @contractRole canonical
11
+ */
12
+ export declare const EntityAcquisitionDealStatusSchema: z.ZodUnion<readonly [z.ZodEnum<{
13
+ Canceled: "Canceled";
14
+ Completed: "Completed";
15
+ Pending: "Pending";
16
+ }>, z.ZodString]> & {
17
+ enum: {
18
+ Canceled: "Canceled";
19
+ Completed: "Completed";
20
+ Pending: "Pending";
21
+ };
22
+ };
23
+ export type EntityAcquisitionDealStatus = z.infer<typeof EntityAcquisitionDealStatusSchema>;
24
+ //# sourceMappingURL=acquisition-deal-status.d.ts.map
@@ -0,0 +1,15 @@
1
+ // LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
2
+ import { z } from "zod/v4";
3
+ const EntityAcquisitionDealStatusSchemaKnownMembers = z.enum(["Pending", "Completed", "Canceled"]);
4
+ /**
5
+ * Deal status of an acquisition: Pending is announced and not yet closed, Completed has closed, Canceled was terminated before closing.
6
+ *
7
+ * @openapiSchema EntityAcquisitionDealStatus
8
+ * @endpoint GET /v1/entities/{entityId}/acquisitions
9
+ * @endpoint GET /v1/entities/{entityId}/acquisitions/{relationshipId}
10
+ * @usedBySchema EntityAcquisitionSchema
11
+ * @contractShape entity.acquisition-deal-status
12
+ * @contractRole canonical
13
+ */
14
+ export const EntityAcquisitionDealStatusSchema = Object.assign(z.union([EntityAcquisitionDealStatusSchemaKnownMembers, z.string()]), { enum: EntityAcquisitionDealStatusSchemaKnownMembers.enum });
15
+ //# sourceMappingURL=acquisition-deal-status.js.map
@@ -158,6 +158,17 @@ declare const EntityAcquisitionSchemaDefinition: z.ZodObject<{
158
158
  Medium: "Medium";
159
159
  Verified: "Verified";
160
160
  }>>>;
161
+ dealStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
162
+ Canceled: "Canceled";
163
+ Completed: "Completed";
164
+ Pending: "Pending";
165
+ }>, z.ZodString]> & {
166
+ enum: {
167
+ Canceled: "Canceled";
168
+ Completed: "Completed";
169
+ Pending: "Pending";
170
+ };
171
+ }>;
161
172
  evidence: z.ZodType<{
162
173
  fundraiseInvestorJoin: boolean;
163
174
  fundraiseTransaction: boolean;
@@ -184,7 +195,7 @@ declare const EntityAcquisitionSchemaDefinition: z.ZodObject<{
184
195
  "Acquired Subsidiary": "Acquired Subsidiary";
185
196
  Acquisition: "Acquisition";
186
197
  }>;
187
- transactionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
198
+ transactionStatus: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
188
199
  Active: "Active";
189
200
  Announced: "Announced";
190
201
  "Announced; subject to approvals and closing conditions": "Announced; subject to approvals and closing conditions";
@@ -192,7 +203,17 @@ declare const EntityAcquisitionSchemaDefinition: z.ZodObject<{
192
203
  Completed: "Completed";
193
204
  "In Progress": "In Progress";
194
205
  Open: "Open";
195
- }>>>;
206
+ }>, z.ZodString]> & {
207
+ enum: {
208
+ Active: "Active";
209
+ Announced: "Announced";
210
+ "Announced; subject to approvals and closing conditions": "Announced; subject to approvals and closing conditions";
211
+ Closed: "Closed";
212
+ Completed: "Completed";
213
+ "In Progress": "In Progress";
214
+ Open: "Open";
215
+ };
216
+ }>>;
196
217
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
197
218
  }, z.core.$strip>;
198
219
  type EntityAcquisitionDefinition = z.infer<typeof EntityAcquisitionSchemaDefinition>;
@@ -1,5 +1,6 @@
1
1
  // LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
2
2
  import { z } from "zod/v4";
3
+ import { EntityAcquisitionDealStatusSchema } from "./acquisition-deal-status.js";
3
4
  import { EntityAcquisitionEvidenceSchema } from "./acquisition-evidence.js";
4
5
  import { EntityAcquisitionStageSchema } from "./acquisition-stage.js";
5
6
  import { EntitySchema } from "./entity.js";
@@ -30,6 +31,8 @@ const EntityAcquisitionSchemaDefinition = z.object({
30
31
  createdAt: z.iso.datetime({ offset: true }).nullish(),
31
32
  currency: z.string().nullish(),
32
33
  dataConfidence: FundraiseDataConfidenceSchema.nullish(),
34
+ /** Whether the deal is Pending (announced, not closed), Completed, or Canceled before closing. The server derives it from transactionStatus and completedAt; present this value instead of interpreting those fields. */
35
+ dealStatus: EntityAcquisitionDealStatusSchema.optional(),
33
36
  evidence: EntityAcquisitionEvidenceSchema,
34
37
  /** Funding round id (UUID) */
35
38
  fundraiseTransactionId: z.uuid().nullish(),
@@ -9,7 +9,7 @@ import { z } from "zod/v4";
9
9
  * @contractShape fundraise.transaction-status
10
10
  * @contractRole canonical
11
11
  */
12
- export declare const FundraiseTransactionStatusSchema: z.ZodEnum<{
12
+ export declare const FundraiseTransactionStatusSchema: z.ZodUnion<readonly [z.ZodEnum<{
13
13
  Active: "Active";
14
14
  Announced: "Announced";
15
15
  "Announced; subject to approvals and closing conditions": "Announced; subject to approvals and closing conditions";
@@ -17,6 +17,16 @@ export declare const FundraiseTransactionStatusSchema: z.ZodEnum<{
17
17
  Completed: "Completed";
18
18
  "In Progress": "In Progress";
19
19
  Open: "Open";
20
- }>;
20
+ }>, z.ZodString]> & {
21
+ enum: {
22
+ Active: "Active";
23
+ Announced: "Announced";
24
+ "Announced; subject to approvals and closing conditions": "Announced; subject to approvals and closing conditions";
25
+ Closed: "Closed";
26
+ Completed: "Completed";
27
+ "In Progress": "In Progress";
28
+ Open: "Open";
29
+ };
30
+ };
21
31
  export type FundraiseTransactionStatus = z.infer<typeof FundraiseTransactionStatusSchema>;
22
32
  //# sourceMappingURL=transaction-status.d.ts.map
@@ -1,5 +1,14 @@
1
1
  // LLM AGENTS MAY NOT EDIT THIS FILE UNDER ANY CIRCUMSTANCES. DO NOT EDIT - generated from Kotlin data classes via OpenAPI. Edit the backend owner and run: make docs-openapi && make docs-zod
2
2
  import { z } from "zod/v4";
3
+ const FundraiseTransactionStatusSchemaKnownMembers = z.enum([
4
+ "Announced",
5
+ "Announced; subject to approvals and closing conditions",
6
+ "Active",
7
+ "Closed",
8
+ "Completed",
9
+ "In Progress",
10
+ "Open",
11
+ ]);
3
12
  /**
4
13
  * Fundraise transaction status label
5
14
  *
@@ -10,13 +19,5 @@ import { z } from "zod/v4";
10
19
  * @contractShape fundraise.transaction-status
11
20
  * @contractRole canonical
12
21
  */
13
- export const FundraiseTransactionStatusSchema = z.enum([
14
- "Announced",
15
- "Announced; subject to approvals and closing conditions",
16
- "Active",
17
- "Closed",
18
- "Completed",
19
- "In Progress",
20
- "Open",
21
- ]);
22
+ export const FundraiseTransactionStatusSchema = Object.assign(z.union([FundraiseTransactionStatusSchemaKnownMembers, z.string()]), { enum: FundraiseTransactionStatusSchemaKnownMembers.enum });
22
23
  //# sourceMappingURL=transaction-status.js.map
@@ -308,6 +308,10 @@ export const OPENAPI_COMPONENT_MANIFEST = Object.freeze({
308
308
  schemaName: "EntityAcceleratorParticipationSchema",
309
309
  },
310
310
  EntityAcquisition: { modulePath: "entity/acquisition", schemaName: "EntityAcquisitionSchema" },
311
+ EntityAcquisitionDealStatus: {
312
+ modulePath: "entity/acquisition-deal-status",
313
+ schemaName: "EntityAcquisitionDealStatusSchema",
314
+ },
311
315
  EntityAcquisitionEvidence: {
312
316
  modulePath: "entity/acquisition-evidence",
313
317
  schemaName: "EntityAcquisitionEvidenceSchema",
@@ -452,6 +452,7 @@ declare const PageEntityAcquisitionSchemaDefinition: z.ZodObject<{
452
452
  createdAt?: string | null | undefined;
453
453
  currency?: string | null | undefined;
454
454
  dataConfidence?: "High" | "Low" | "Medium" | "Verified" | null | undefined;
455
+ dealStatus?: string | undefined;
455
456
  evidence: {
456
457
  fundraiseInvestorJoin: boolean;
457
458
  fundraiseTransaction: boolean;
@@ -469,7 +470,7 @@ declare const PageEntityAcquisitionSchemaDefinition: z.ZodObject<{
469
470
  } | null | undefined;
470
471
  relationshipId: number;
471
472
  status: "Acquired" | "Acquired Subsidiary" | "Acquisition";
472
- transactionStatus?: "Active" | "Announced" | "Announced; subject to approvals and closing conditions" | "Closed" | "Completed" | "In Progress" | "Open" | null | undefined;
473
+ transactionStatus?: string | null | undefined;
473
474
  updatedAt?: string | null | undefined;
474
475
  }, import("../entity/acquisition.ts").EntityAcquisitionSchemaInput, z.core.$ZodTypeInternals<{
475
476
  acquiredEntity: {
@@ -567,6 +568,7 @@ declare const PageEntityAcquisitionSchemaDefinition: z.ZodObject<{
567
568
  createdAt?: string | null | undefined;
568
569
  currency?: string | null | undefined;
569
570
  dataConfidence?: "High" | "Low" | "Medium" | "Verified" | null | undefined;
571
+ dealStatus?: string | undefined;
570
572
  evidence: {
571
573
  fundraiseInvestorJoin: boolean;
572
574
  fundraiseTransaction: boolean;
@@ -584,7 +586,7 @@ declare const PageEntityAcquisitionSchemaDefinition: z.ZodObject<{
584
586
  } | null | undefined;
585
587
  relationshipId: number;
586
588
  status: "Acquired" | "Acquired Subsidiary" | "Acquisition";
587
- transactionStatus?: "Active" | "Announced" | "Announced; subject to approvals and closing conditions" | "Closed" | "Completed" | "In Progress" | "Open" | null | undefined;
589
+ transactionStatus?: string | null | undefined;
588
590
  updatedAt?: string | null | undefined;
589
591
  }, import("../entity/acquisition.ts").EntityAcquisitionSchemaInput>>>>;
590
592
  empty: z.ZodOptional<z.ZodBoolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aventurevc/api-schemas",
3
- "version": "0.8.432",
3
+ "version": "0.8.434",
4
4
  "private": false,
5
5
  "description": "Zod v4 schemas and TypeScript types for the aVenture API.",
6
6
  "license": "Apache-2.0",