Skip to content

Commit

Permalink
chore: misc changes for 2.9.0 (#1873)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymc9 authored Nov 18, 2024
1 parent fdb6862 commit 9b56b1c
Show file tree
Hide file tree
Showing 34 changed files with 191 additions and 10 deletions.
6 changes: 6 additions & 0 deletions packages/ide/jetbrains/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## [Unreleased]

### Added

- Support for using `@@validate` attribute inside type declarations.

## 2.8.1

### Fixed

- Wrong validation errors when using strongly typed JSON fields in a multi-file schema setup.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import type { Prisma } from '@prisma/client';
import type { TRPCClientErrorLike, TRPCRequestOptions } from '@trpc/client';
import type { MaybeRefOrGetter, UnwrapRef } from 'vue';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import type { Prisma } from '@prisma/client';
import type { TRPCClientErrorLike, TRPCRequestOptions } from '@trpc/client';
import type { MaybeRefOrGetter, UnwrapRef } from 'vue';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import type { AnyRouter } from '@trpc/server';
import { createTRPCNuxtClient as _createTRPCNuxtClient } from 'trpc-nuxt/client';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* eslint-disable */
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

// inspired by: https://stackoverflow.com/questions/70632026/generic-to-recursively-modify-a-given-type-interface-in-typescript
/* eslint-disable */
// @ts-nocheck

type Primitive = string | Function | number | boolean | Symbol | undefined | null;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import { TRPCError } from '@trpc/server';
import { isPrismaClientKnownRequestError } from '@zenstackhq/runtime';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import { type RouterFactory, type ProcBuilder, type BaseConfig, db } from ".";
import * as _Schema from '@zenstackhq/runtime/zod/input';
const $Schema: typeof _Schema = (_Schema as any).default ?? _Schema;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import { type RouterFactory, type ProcBuilder, type BaseConfig, db } from ".";
import * as _Schema from '@zenstackhq/runtime/zod/input';
const $Schema: typeof _Schema = (_Schema as any).default ?? _Schema;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import type { unsetMarker, AnyRouter, AnyRootConfig, CreateRouterInner, Procedure, ProcedureBuilder, ProcedureParams, ProcedureRouterRecord, ProcedureType } from "@trpc/server";
import type { PrismaClient } from "@prisma/client";
import createUserRouter from "./User.router";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import type { Prisma } from '@prisma/client';
import type { TRPCClientErrorLike, TRPCRequestOptions } from '@trpc/client';
import type { MaybeRefOrGetter, UnwrapRef } from 'vue';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import type { Prisma } from '@prisma/client';
import type { TRPCClientErrorLike, TRPCRequestOptions } from '@trpc/client';
import type { MaybeRefOrGetter, UnwrapRef } from 'vue';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import type { AnyTRPCRouter as AnyRouter } from '@trpc/server';
import { createTRPCNuxtClient as _createTRPCNuxtClient } from 'trpc-nuxt/client';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* eslint-disable */
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

// inspired by: https://stackoverflow.com/questions/70632026/generic-to-recursively-modify-a-given-type-interface-in-typescript
/* eslint-disable */
// @ts-nocheck

type Primitive = string | Function | number | boolean | Symbol | undefined | null;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import { TRPCError } from '@trpc/server';
import { isPrismaClientKnownRequestError } from '@zenstackhq/runtime';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import { db } from ".";
import { createTRPCRouter } from "../../generated-router-helper";
import { procedure } from "../../generated-router-helper";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import { db } from ".";
import { createTRPCRouter } from "../../generated-router-helper";
import { procedure } from "../../generated-router-helper";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import type { AnyTRPCRouter as AnyRouter } from "@trpc/server";
import type { PrismaClient } from "@prisma/client";
import { createTRPCRouter } from "../../generated-router-helper";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import type { Prisma } from '@prisma/client';
import type { TRPCClientErrorLike, TRPCRequestOptions } from '@trpc/client';
import type { UseTRPCMutationOptions, UseTRPCMutationResult, UseTRPCQueryOptions, UseTRPCQueryResult, UseTRPCInfiniteQueryOptions, UseTRPCInfiniteQueryResult } from '@trpc/react-query/shared';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import type { Prisma } from '@prisma/client';
import type { TRPCClientErrorLike, TRPCRequestOptions } from '@trpc/client';
import type { UseTRPCMutationOptions, UseTRPCMutationResult, UseTRPCQueryOptions, UseTRPCQueryResult, UseTRPCInfiniteQueryOptions, UseTRPCInfiniteQueryResult } from '@trpc/react-query/shared';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import type { AnyRouter } from '@trpc/server';
import type { NextPageContext } from 'next';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* eslint-disable */
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

// inspired by: https://stackoverflow.com/questions/70632026/generic-to-recursively-modify-a-given-type-interface-in-typescript
/* eslint-disable */
// @ts-nocheck

type Primitive = string | Function | number | boolean | Symbol | undefined | null;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import { TRPCError } from '@trpc/server';
import { isPrismaClientKnownRequestError } from '@zenstackhq/runtime';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import { type RouterFactory, type ProcBuilder, type BaseConfig, db } from ".";
import * as _Schema from '@zenstackhq/runtime/zod/input';
const $Schema: typeof _Schema = (_Schema as any).default ?? _Schema;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import { type RouterFactory, type ProcBuilder, type BaseConfig, db } from ".";
import * as _Schema from '@zenstackhq/runtime/zod/input';
const $Schema: typeof _Schema = (_Schema as any).default ?? _Schema;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import type { unsetMarker, AnyRouter, AnyRootConfig, CreateRouterInner, Procedure, ProcedureBuilder, ProcedureParams, ProcedureRouterRecord, ProcedureType } from "@trpc/server";
import type { PrismaClient } from "@prisma/client";
import createUserRouter from "./User.router";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import type { Prisma } from '@prisma/client';
import type { TRPCClientErrorLike, TRPCRequestOptions } from '@trpc/client';
import type { UseTRPCMutationOptions, UseTRPCMutationResult, UseTRPCQueryOptions, UseTRPCQueryResult, UseTRPCInfiniteQueryOptions, UseTRPCInfiniteQueryResult } from '@trpc/react-query/shared';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import type { Prisma } from '@prisma/client';
import type { TRPCClientErrorLike, TRPCRequestOptions } from '@trpc/client';
import type { UseTRPCMutationOptions, UseTRPCMutationResult, UseTRPCQueryOptions, UseTRPCQueryResult, UseTRPCInfiniteQueryOptions, UseTRPCInfiniteQueryResult } from '@trpc/react-query/shared';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import type { AnyTRPCRouter as AnyRouter } from '@trpc/server';
import type { CreateTRPCReactOptions } from '@trpc/react-query/shared';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/* eslint-disable */
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

// inspired by: https://stackoverflow.com/questions/70632026/generic-to-recursively-modify-a-given-type-interface-in-typescript
/* eslint-disable */
// @ts-nocheck

type Primitive = string | Function | number | boolean | Symbol | undefined | null;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import { TRPCError } from '@trpc/server';
import { isPrismaClientKnownRequestError } from '@zenstackhq/runtime';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import { db } from ".";
import { createTRPCRouter } from "../../generated-router-helper";
import { procedure } from "../../generated-router-helper";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import { db } from ".";
import { createTRPCRouter } from "../../generated-router-helper";
import { procedure } from "../../generated-router-helper";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/******************************************************************************
* This file was generated by ZenStack CLI 2.9.0.
******************************************************************************/

/* eslint-disable */
// @ts-nocheck

import type { AnyTRPCRouter as AnyRouter } from "@trpc/server";
import type { PrismaClient } from "@prisma/client";
import { createTRPCRouter } from "../../generated-router-helper";
Expand Down
3 changes: 1 addition & 2 deletions packages/sdk/src/code-gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ export function saveSourceFile(sourceFile: SourceFile) {
/* eslint-disable */
// @ts-nocheck
${sourceFile.getText()}
`
${sourceFile.getText()}`
);
sourceFile.formatText();
sourceFile.saveSync();
Expand Down

0 comments on commit 9b56b1c

Please sign in to comment.