@ventrata/octo-types 0.0.16 → 0.0.18

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.
@@ -1,65 +1,4 @@
1
+ import { type PackageInclude } from '../models/PackageInclude';
1
2
  import { z } from 'zod';
2
- export declare const packageIncludeSchema: z.ZodObject<{
3
- title: z.ZodOptional<z.ZodString>;
4
- count: z.ZodNumber;
5
- includes: z.ZodArray<z.ZodObject<{
6
- id: z.ZodString;
7
- required: z.ZodBoolean;
8
- limit: z.ZodNumber;
9
- validityDays: z.ZodNullable<z.ZodNumber>;
10
- availabilityRequired: z.ZodBoolean;
11
- productId: z.ZodString;
12
- product: z.ZodNullable<z.ZodType<import("..").Product, z.ZodTypeDef, import("..").Product>>;
13
- optionId: z.ZodString;
14
- option: z.ZodNullable<z.ZodType<import("..").Option, z.ZodTypeDef, import("..").Option>>;
15
- }, "strip", z.ZodTypeAny, {
16
- product: import("..").Product | null;
17
- id: string;
18
- productId: string;
19
- optionId: string;
20
- required: boolean;
21
- limit: number;
22
- validityDays: number | null;
23
- availabilityRequired: boolean;
24
- option: import("..").Option | null;
25
- }, {
26
- product: import("..").Product | null;
27
- id: string;
28
- productId: string;
29
- optionId: string;
30
- required: boolean;
31
- limit: number;
32
- validityDays: number | null;
33
- availabilityRequired: boolean;
34
- option: import("..").Option | null;
35
- }>, "many">;
36
- }, "strip", z.ZodTypeAny, {
37
- includes: {
38
- product: import("..").Product | null;
39
- id: string;
40
- productId: string;
41
- optionId: string;
42
- required: boolean;
43
- limit: number;
44
- validityDays: number | null;
45
- availabilityRequired: boolean;
46
- option: import("..").Option | null;
47
- }[];
48
- count: number;
49
- title?: string | undefined;
50
- }, {
51
- includes: {
52
- product: import("..").Product | null;
53
- id: string;
54
- productId: string;
55
- optionId: string;
56
- required: boolean;
57
- limit: number;
58
- validityDays: number | null;
59
- availabilityRequired: boolean;
60
- option: import("..").Option | null;
61
- }[];
62
- count: number;
63
- title?: string | undefined;
64
- }>;
3
+ export declare const packageIncludeSchema: z.ZodSchema<PackageInclude>;
65
4
  //# sourceMappingURL=PackageInclude.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PackageInclude.d.ts","sourceRoot":"","sources":["../../src/schemas/PackageInclude.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI/B,CAAC"}
1
+ {"version":3,"file":"PackageInclude.d.ts","sourceRoot":"","sources":["../../src/schemas/PackageInclude.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,SAAS,CAAC,cAAc,CAM5D,CAAC"}
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageIncludeSchema = void 0;
4
- // Generated by ts-to-zod
5
4
  const zod_1 = require("zod");
6
5
  const Include_1 = require("./Include");
7
- exports.packageIncludeSchema = zod_1.z.object({
6
+ exports.packageIncludeSchema = zod_1.z.lazy(() => zod_1.z.object({
8
7
  title: zod_1.z.string().optional(),
9
8
  count: zod_1.z.number(),
10
9
  includes: zod_1.z.array(Include_1.includeSchema),
11
- });
10
+ }));
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
2
1
  import { type Product } from '../models/Product';
2
+ import { z } from 'zod';
3
3
  export declare const productSchema: z.ZodSchema<Product>;
4
4
  //# sourceMappingURL=Product.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Product.d.ts","sourceRoot":"","sources":["../../src/schemas/Product.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAgBjD,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAmE9C,CAAC"}
1
+ {"version":3,"file":"Product.d.ts","sourceRoot":"","sources":["../../src/schemas/Product.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,SAAS,CAAC,OAAO,CAmE9C,CAAC"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.productSchema = void 0;
4
- // Generated by ts-to-zod
5
4
  const zod_1 = require("zod");
6
5
  const AvailabilityType_1 = require("./AvailabilityType");
7
6
  const DeliveryFormat_1 = require("./DeliveryFormat");
@@ -12235,37 +12235,7 @@ export declare const redemptionLookupSchema: z.ZodObject<{
12235
12235
  }>, "many">>;
12236
12236
  isPackage: z.ZodOptional<z.ZodBoolean>;
12237
12237
  packageIncludeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12238
- packageInclude: z.ZodNullable<z.ZodOptional<z.ZodObject<{
12239
- id: z.ZodString;
12240
- required: z.ZodBoolean;
12241
- limit: z.ZodNumber;
12242
- validityDays: z.ZodNullable<z.ZodNumber>;
12243
- availabilityRequired: z.ZodBoolean;
12244
- productId: z.ZodString;
12245
- product: z.ZodNullable<z.ZodType<import("..").Product, z.ZodTypeDef, import("..").Product>>;
12246
- optionId: z.ZodString;
12247
- option: z.ZodNullable<z.ZodType<import("..").Option, z.ZodTypeDef, import("..").Option>>;
12248
- }, "strip", z.ZodTypeAny, {
12249
- product: import("..").Product | null;
12250
- id: string;
12251
- productId: string;
12252
- optionId: string;
12253
- required: boolean;
12254
- limit: number;
12255
- validityDays: number | null;
12256
- availabilityRequired: boolean;
12257
- option: import("..").Option | null;
12258
- }, {
12259
- product: import("..").Product | null;
12260
- id: string;
12261
- productId: string;
12262
- optionId: string;
12263
- required: boolean;
12264
- limit: number;
12265
- validityDays: number | null;
12266
- availabilityRequired: boolean;
12267
- option: import("..").Option | null;
12268
- }>>>;
12238
+ packageInclude: z.ZodNullable<z.ZodOptional<z.ZodType<import("..").Include, z.ZodTypeDef, import("..").Include>>>;
12269
12239
  packageBookings: z.ZodOptional<z.ZodArray<z.ZodType<import("..").Booking, z.ZodTypeDef, import("..").Booking>, "many">>;
12270
12240
  packageUnitItemUuid: z.ZodOptional<z.ZodAny>;
12271
12241
  adjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -14833,17 +14803,7 @@ export declare const redemptionLookupSchema: z.ZodObject<{
14833
14803
  seatIds: string[];
14834
14804
  }[] | undefined;
14835
14805
  packageIncludeId?: string | null | undefined;
14836
- packageInclude?: {
14837
- product: import("..").Product | null;
14838
- id: string;
14839
- productId: string;
14840
- optionId: string;
14841
- required: boolean;
14842
- limit: number;
14843
- validityDays: number | null;
14844
- availabilityRequired: boolean;
14845
- option: import("..").Option | null;
14846
- } | null | undefined;
14806
+ packageInclude?: import("..").Include | null | undefined;
14847
14807
  packageBookings?: import("..").Booking[] | undefined;
14848
14808
  packageUnitItemUuid?: any;
14849
14809
  adjustments?: {
@@ -16708,17 +16668,7 @@ export declare const redemptionLookupSchema: z.ZodObject<{
16708
16668
  seatIds: string[];
16709
16669
  }[] | undefined;
16710
16670
  packageIncludeId?: string | null | undefined;
16711
- packageInclude?: {
16712
- product: import("..").Product | null;
16713
- id: string;
16714
- productId: string;
16715
- optionId: string;
16716
- required: boolean;
16717
- limit: number;
16718
- validityDays: number | null;
16719
- availabilityRequired: boolean;
16720
- option: import("..").Option | null;
16721
- } | null | undefined;
16671
+ packageInclude?: import("..").Include | null | undefined;
16722
16672
  packageBookings?: import("..").Booking[] | undefined;
16723
16673
  packageUnitItemUuid?: any;
16724
16674
  adjustments?: {
@@ -1 +1 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8GjC,CAAC"}
@@ -214,7 +214,10 @@ async function fixCircularDependencies(schemasDir) {
214
214
  const baseName = path.basename(schemaFile, '.ts');
215
215
  const schemaFilePath = path.join(schemasDir, schemaFile);
216
216
  const content = await node_fs_1.promises.readFile(schemaFilePath, 'utf-8');
217
- schemaContents.set(baseName, content);
217
+ schemaContents.set(baseName, {
218
+ content,
219
+ relativePath: schemaFile,
220
+ });
218
221
  const dependencies = new Set();
219
222
  const importRegex = /import\s+\{[^}]*\}\s+from\s+['"]([^'"]+)['"]/g;
220
223
  let match;
@@ -231,22 +234,25 @@ async function fixCircularDependencies(schemasDir) {
231
234
  dependencyGraph.set(baseName, dependencies);
232
235
  }
233
236
  const visited = new Set();
234
- const recursionStack = new Set();
237
+ const recursionStack = [];
235
238
  const circularSchemas = new Set();
236
239
  function detectCycles(node) {
237
- if (recursionStack.has(node)) {
238
- circularSchemas.add(node);
240
+ const existingIndex = recursionStack.indexOf(node);
241
+ if (existingIndex !== -1) {
242
+ for (const schema of recursionStack.slice(existingIndex)) {
243
+ circularSchemas.add(schema);
244
+ }
239
245
  return;
240
246
  }
241
247
  if (visited.has(node))
242
248
  return;
243
249
  visited.add(node);
244
- recursionStack.add(node);
250
+ recursionStack.push(node);
245
251
  const dependencies = dependencyGraph.get(node) || new Set();
246
252
  for (const dep of dependencies) {
247
253
  detectCycles(dep);
248
254
  }
249
- recursionStack.delete(node);
255
+ recursionStack.pop();
250
256
  }
251
257
  for (const schema of dependencyGraph.keys()) {
252
258
  if (!visited.has(schema)) {
@@ -254,41 +260,105 @@ async function fixCircularDependencies(schemasDir) {
254
260
  }
255
261
  }
256
262
  for (const schemaName of circularSchemas) {
257
- const content = schemaContents.get(schemaName);
258
- if (!content)
263
+ const metadata = schemaContents.get(schemaName);
264
+ if (!metadata)
259
265
  continue;
260
- const exportConstRegex = /export\s+const\s+(\w+Schema)\s*=\s*z\.(object|union|array|record|tuple|map)\s*\(/;
261
- const match = content.match(exportConstRegex);
262
- if (!match)
266
+ const { content, relativePath } = metadata;
267
+ const exportMatches = Array.from(content.matchAll(/export\s+const\s+(\w+Schema)\s*=/g));
268
+ if (exportMatches.length === 0)
263
269
  continue;
264
- const schemaVarName = match[1];
265
- const typeName = toPascalCase(schemaName);
266
- const importTypeLine = `import { type ${typeName} } from "../models/${typeName}";`;
267
270
  let updatedContent = content;
268
- if (!content.includes(importTypeLine)) {
269
- const lines = content.split('\n');
270
- const insertAt = Math.min(3, lines.length);
271
- lines.splice(insertAt, 0, importTypeLine);
272
- updatedContent = lines.join('\n');
273
- }
274
- const annotatedLazy = `export const ${schemaVarName}: z.ZodSchema<${typeName}> = z.lazy(() => z.$2(`;
275
- updatedContent = updatedContent.replace(exportConstRegex, annotatedLazy);
276
- const exportStart = updatedContent.indexOf(`export const ${schemaVarName}`);
277
- if (exportStart !== -1) {
278
- const afterStart = updatedContent.slice(exportStart);
279
- const closeIdx = afterStart.indexOf('});');
280
- if (closeIdx !== -1) {
281
- updatedContent =
282
- updatedContent.slice(0, exportStart) +
283
- afterStart.slice(0, closeIdx) +
284
- '}));' +
285
- afterStart.slice(closeIdx + 3);
271
+ const seenImports = new Set();
272
+ for (const match of exportMatches) {
273
+ const schemaVarName = match[1];
274
+ const baseTypeName = schemaVarName.replace(/Schema$/, '');
275
+ const typeName = toPascalCase(baseTypeName);
276
+ const importTypeLine = getTypeImportLine(relativePath, typeName, schemasDir);
277
+ if (!seenImports.has(importTypeLine)) {
278
+ updatedContent = ensureTypeImport(updatedContent, importTypeLine);
279
+ seenImports.add(importTypeLine);
286
280
  }
281
+ updatedContent = ensureSchemaIsLazy(updatedContent, schemaVarName, typeName);
287
282
  }
288
- const schemaFilePath = path.join(schemasDir, `${schemaName}.ts`);
283
+ const schemaFilePath = path.join(schemasDir, relativePath);
289
284
  await node_fs_1.promises.writeFile(schemaFilePath, updatedContent);
290
285
  }
291
286
  }
287
+ function ensureTypeImport(content, importLine) {
288
+ if (content.includes(importLine)) {
289
+ return content;
290
+ }
291
+ const lines = content.split('\n');
292
+ const trimmedImport = importLine.trimEnd();
293
+ const firstImportIndex = lines.findIndex((line) => line.startsWith('import '));
294
+ if (firstImportIndex !== -1) {
295
+ lines.splice(firstImportIndex, 0, trimmedImport);
296
+ }
297
+ else {
298
+ let insertAt = 0;
299
+ while (insertAt < lines.length && lines[insertAt].startsWith('//')) {
300
+ insertAt += 1;
301
+ }
302
+ lines.splice(insertAt, 0, trimmedImport);
303
+ }
304
+ return lines.join('\n');
305
+ }
306
+ function ensureSchemaIsLazy(content, schemaVarName, typeName) {
307
+ const exportRegex = new RegExp(`export\\s+const\\s+${schemaVarName}\\s*[:=]`);
308
+ if (!exportRegex.test(content)) {
309
+ return content;
310
+ }
311
+ let updatedContent = content;
312
+ const annotationRegex = new RegExp(`export\\s+const\\s+${schemaVarName}\\s*:\\s*z\\.ZodSchema<${typeName}>\\s*=`);
313
+ if (!annotationRegex.test(updatedContent)) {
314
+ const assignmentRegex = new RegExp(`export\\s+const\\s+${schemaVarName}\\s*=\\s*`);
315
+ updatedContent = updatedContent.replace(assignmentRegex, `export const ${schemaVarName}: z.ZodSchema<${typeName}> = `);
316
+ }
317
+ const exportIndex = updatedContent.indexOf(`export const ${schemaVarName}`);
318
+ if (exportIndex === -1)
319
+ return updatedContent;
320
+ const equalsIndex = updatedContent.indexOf('=', exportIndex);
321
+ if (equalsIndex === -1)
322
+ return updatedContent;
323
+ const semicolonIndex = findExpressionEnd(updatedContent, equalsIndex + 1);
324
+ if (semicolonIndex === -1)
325
+ return updatedContent;
326
+ const expression = updatedContent.slice(equalsIndex + 1, semicolonIndex);
327
+ const trimmedExpression = expression.trimStart();
328
+ if (trimmedExpression.startsWith('z.lazy')) {
329
+ return updatedContent;
330
+ }
331
+ const leadingWhitespace = expression.slice(0, expression.length - trimmedExpression.length);
332
+ const wrappedExpression = `${leadingWhitespace}z.lazy(() => ${trimmedExpression})`;
333
+ return updatedContent.slice(0, equalsIndex + 1) + wrappedExpression + updatedContent.slice(semicolonIndex);
334
+ }
335
+ function getTypeImportLine(relativeSchemaPath, typeName, schemasDir) {
336
+ const schemaFileDir = path.dirname(path.join(schemasDir, relativeSchemaPath));
337
+ const modelsDir = path.join(process.cwd(), CONFIG.relativePaths.models);
338
+ const targetTypePath = path.join(modelsDir, typeName);
339
+ let importPath = path.relative(schemaFileDir, targetTypePath);
340
+ if (!importPath.startsWith('.')) {
341
+ importPath = `./${importPath}`;
342
+ }
343
+ importPath = importPath.split(path.sep).join('/');
344
+ return `import { type ${typeName} } from '${importPath}';`;
345
+ }
346
+ function findExpressionEnd(content, startIndex) {
347
+ let depth = 0;
348
+ for (let idx = startIndex; idx < content.length; idx++) {
349
+ const char = content[idx];
350
+ if (char === '(' || char === '{' || char === '[') {
351
+ depth += 1;
352
+ }
353
+ else if (char === ')' || char === '}' || char === ']') {
354
+ depth = Math.max(depth - 1, 0);
355
+ }
356
+ else if (char === ';' && depth === 0) {
357
+ return idx;
358
+ }
359
+ }
360
+ return -1;
361
+ }
292
362
  async function updateIndexFileWithSchemas(schemasDir) {
293
363
  try {
294
364
  const projectRoot = process.cwd();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ventrata/octo-types",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "private": false,
5
5
  "license": "ISC",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -468,7 +468,6 @@ export { partnersConnectionSchema } from './schemas/PartnersConnection';
468
468
  export { partnerEnumSchema } from './schemas/PartnerEnum';
469
469
  export { partnerSchema } from './schemas/Partner';
470
470
  export { pageSchema } from './schemas/Page';
471
- export { packageIncludeSchema } from './schemas/PackageInclude';
472
471
  export { orderQuestionsSchema } from './schemas/OrderQuestions';
473
472
  export { orderPricingSchema } from './schemas/OrderPricing';
474
473
  export { orderPathParamsSchema } from './schemas/OrderPathParams';
@@ -579,7 +578,6 @@ export { linkSchema } from './schemas/Link';
579
578
  export { labelSchema } from './schemas/Label';
580
579
  export { itineraryItemTypeSchema } from './schemas/ItineraryItemType';
581
580
  export { itineraryItemSchema } from './schemas/ItineraryItem';
582
- export { includeSchema } from './schemas/Include';
583
581
  export { imageSchema } from './schemas/Image';
584
582
  export { identitySchema } from './schemas/Identity';
585
583
  export { googleUrlSchema } from './schemas/GoogleUrl';
@@ -1,17 +1,20 @@
1
1
  // Generated by ts-to-zod
2
+ import { type Include } from '../models/Include';
2
3
  import { z } from 'zod';
3
4
  import { productSchema } from './Product';
4
5
  import { defaultableIDSchema } from './DefaultableID';
5
6
  import { optionSchema } from './Option';
6
7
 
7
- export const includeSchema = z.object({
8
- id: z.string(),
9
- required: z.boolean(),
10
- limit: z.number(),
11
- validityDays: z.number().nullable(),
12
- availabilityRequired: z.boolean(),
13
- productId: z.string(),
14
- product: productSchema.nullable(),
15
- optionId: defaultableIDSchema,
16
- option: optionSchema.nullable(),
17
- });
8
+ export const includeSchema: z.ZodSchema<Include> = z.lazy(() =>
9
+ z.object({
10
+ id: z.string(),
11
+ required: z.boolean(),
12
+ limit: z.number(),
13
+ validityDays: z.number().nullable(),
14
+ availabilityRequired: z.boolean(),
15
+ productId: z.string(),
16
+ product: productSchema.nullable(),
17
+ optionId: defaultableIDSchema,
18
+ option: optionSchema.nullable(),
19
+ }),
20
+ );
@@ -1,7 +1,7 @@
1
1
  // Generated by ts-to-zod
2
+ import { type Option } from '../models/Option';
2
3
  import { z } from 'zod';
3
4
  import { durationUnitSchema } from './DurationUnit';
4
- import { type Option } from '../models/Option';
5
5
  import { contactFieldSchema } from './ContactField';
6
6
  import { optionRestrictionsSchema } from './OptionRestrictions';
7
7
  import { unitSchema } from './Unit';
@@ -1,9 +1,12 @@
1
1
  // Generated by ts-to-zod
2
+ import { type PackageInclude } from '../models/PackageInclude';
2
3
  import { z } from 'zod';
3
4
  import { includeSchema } from './Include';
4
5
 
5
- export const packageIncludeSchema = z.object({
6
- title: z.string().optional(),
7
- count: z.number(),
8
- includes: z.array(includeSchema),
9
- });
6
+ export const packageIncludeSchema: z.ZodSchema<PackageInclude> = z.lazy(() =>
7
+ z.object({
8
+ title: z.string().optional(),
9
+ count: z.number(),
10
+ includes: z.array(includeSchema),
11
+ }),
12
+ );
@@ -1,7 +1,7 @@
1
1
  // Generated by ts-to-zod
2
+ import { type Product } from '../models/Product';
2
3
  import { z } from 'zod';
3
4
  import { availabilityTypeSchema } from './AvailabilityType';
4
- import { type Product } from '../models/Product';
5
5
  import { deliveryFormatSchema } from './DeliveryFormat';
6
6
  import { deliveryMethodSchema } from './DeliveryMethod';
7
7
  import { redemptionMethodSchema } from './RedemptionMethod';