Skip to content

Commit

Permalink
V6.0.7 fix type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedElywa committed Sep 11, 2023
1 parent 9bd212b commit 8f6ecbb
Show file tree
Hide file tree
Showing 31 changed files with 124 additions and 31 deletions.
8 changes: 8 additions & 0 deletions packages/admin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @paljs/admin

## 6.0.7

### Patch Changes

- Fix an issue in the select plugin options
- Updated dependencies
- @paljs/types@6.0.7

## 6.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/admin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paljs/admin",
"version": "6.0.6",
"version": "6.0.7",
"main": "index.js",
"module": "./esm/index.js",
"types": "index.d.ts",
Expand Down
13 changes: 13 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @paljs/cli

## 6.0.7

### Patch Changes

- Fix an issue in the select plugin options
- Updated dependencies
- @paljs/types@6.0.7
- @paljs/create@6.0.7
- @paljs/display@6.0.7
- @paljs/generator@6.0.7
- @paljs/schema@6.0.7
- @paljs/utils@6.0.7

## 6.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@paljs/cli",
"description": "Pal cli will be your friend in developing nodejs full-stack projects to auto generate everything for you",
"version": "6.0.6",
"version": "6.0.7",
"author": "Ahmed Elewa @AhmedElywa",
"bin": {
"pal": "./bin/run"
Expand Down
9 changes: 9 additions & 0 deletions packages/create/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @paljs/create

## 6.0.7

### Patch Changes

- Fix an issue in the select plugin options
- Updated dependencies
- @paljs/types@6.0.7
- @paljs/display@6.0.7

## 6.0.6

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/create/examples/apollo-nexus-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"dependencies": {
"nexus": "1.x",
"@prisma/client": "5.x",
"@paljs/nexus": "6.0.6",
"@paljs/nexus": "6.0.7",
"apollo-server": "3.x",
"graphql": "16.x"
},
"devDependencies": {
"prisma": "5.x",
"@types/node": "18.x",
"@paljs/cli": "6.0.6",
"@paljs/cli": "6.0.7",
"prettier": "2.x",
"ts-node": "10.x",
"ts-node-dev": "2.x",
Expand Down
4 changes: 2 additions & 2 deletions packages/create/examples/apollo-sdl-first/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@graphql-tools/merge": "8.x",
"@graphql-tools/schema": "9.x",
"@paljs/plugins": "6.0.6",
"@paljs/plugins": "6.0.7",
"@prisma/client": "5.x",
"apollo-server": "3.x",
"graphql": "16.x",
Expand All @@ -25,7 +25,7 @@
"devDependencies": {
"prisma": "5.x",
"@types/node": "18.x",
"@paljs/cli": "6.0.6",
"@paljs/cli": "6.0.7",
"prettier": "2.x",
"ts-node": "10.x",
"ts-node-dev": "2.x",
Expand Down
6 changes: 3 additions & 3 deletions packages/create/examples/full-stack-nextjs/multi_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"@heroicons/react": "1.x",
"@material-ui/core": "4.x",
"@material-ui/icons": "4.x",
"@paljs/admin": "6.0.6",
"@paljs/nexus": "6.0.6",
"@paljs/admin": "6.0.7",
"@paljs/nexus": "6.0.7",
"@prisma/client": "3.x",
"apollo-server-micro": "3.x",
"bcryptjs": "2.x",
Expand All @@ -46,7 +46,7 @@
"@graphql-codegen/typescript": "2.x",
"@graphql-codegen/typescript-operations": "2.x",
"@graphql-codegen/typescript-react-apollo": "3.x",
"@paljs/cli": "6.0.6",
"@paljs/cli": "6.0.7",
"@types/bcryptjs": "2.x",
"@types/cookie": "0.x",
"@types/graphql": "14.x",
Expand Down
6 changes: 3 additions & 3 deletions packages/create/examples/full-stack-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"@heroicons/react": "1.x",
"@material-ui/core": "4.x",
"@material-ui/icons": "4.x",
"@paljs/admin": "6.0.6",
"@paljs/nexus": "6.0.6",
"@paljs/admin": "6.0.7",
"@paljs/nexus": "6.0.7",
"@prisma/client": "5.x",
"apollo-server-micro": "3.x",
"bcryptjs": "2.x",
Expand All @@ -47,7 +47,7 @@
"@graphql-codegen/typescript": "2.x",
"@graphql-codegen/typescript-operations": "2.x",
"@graphql-codegen/typescript-react-apollo": "3.x",
"@paljs/cli": "6.0.6",
"@paljs/cli": "6.0.7",
"@types/bcryptjs": "2.x",
"@types/cookie": "0.x",
"@types/graphql": "14.x",
Expand Down
4 changes: 2 additions & 2 deletions packages/create/examples/graphql-modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"graphql-modules": "1.x",
"@paljs/plugins": "6.0.6",
"@paljs/plugins": "6.0.7",
"@prisma/client": "5.x",
"apollo-server": "3.x",
"graphql": "16.x",
Expand All @@ -24,7 +24,7 @@
"devDependencies": {
"prisma": "5.x",
"@types/node": "18.x",
"@paljs/cli": "6.0.6",
"@paljs/cli": "6.0.7",
"prettier": "2.x",
"ts-node": "10.x",
"ts-node-dev": "2.x",
Expand Down
2 changes: 1 addition & 1 deletion packages/create/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paljs/create",
"version": "6.0.6",
"version": "6.0.7",
"main": "dist/index.js",
"module": "dist/create.esm.js",
"types": "dist/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/display/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @paljs/display

## 6.0.7

### Patch Changes

- Fix an issue in the select plugin options

## 6.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/display/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paljs/display",
"version": "6.0.6",
"version": "6.0.7",
"description": "Display package for the paljs CLI",
"homepage": "https://paljs.com",
"license": "MIT",
Expand Down
10 changes: 10 additions & 0 deletions packages/generator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @paljs/generator

## 6.0.7

### Patch Changes

- Fix an issue in the select plugin options
- Updated dependencies
- @paljs/types@6.0.7
- @paljs/schema@6.0.7
- @paljs/utils@6.0.7

## 6.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/generator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paljs/generator",
"version": "6.0.6",
"version": "6.0.7",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": {
Expand Down
10 changes: 10 additions & 0 deletions packages/nexus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @paljs/nexus

## 6.0.7

### Patch Changes

- Fix an issue in the select plugin options
- Updated dependencies
- @paljs/plugins@6.0.7
- @paljs/types@6.0.7
- @paljs/utils@6.0.7

## 6.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/nexus/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paljs/nexus",
"version": "6.0.6",
"version": "6.0.7",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/nexus/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export { Settings };

export const paljs = <
ModelName extends string = '',
ModelsObject extends Record<string, Record<string, any>> = Record<string, Record<string, any>>,
ModelsObject extends Record<ModelName, Record<string, any>> = Record<ModelName, Record<string, any>>,
>(
settings?: Settings<ModelName, ModelsObject>,
) =>
Expand Down
2 changes: 1 addition & 1 deletion packages/nexus/src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { PrismaSelectOptions } from '@paljs/plugins';

export interface Settings<
ModelName extends string = '',
ModelsObject extends Record<string, Record<string, any>> = Record<string, Record<string, any>>,
ModelsObject extends Record<ModelName, Record<string, any>> = Record<ModelName, Record<string, any>>,
> {
/*
* We will pass these options to `PrismaSelect` plugin.
Expand Down
2 changes: 1 addition & 1 deletion packages/nexus/tests/nexusSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { printSchema } from 'graphql';

export const generateSchema = <
ModelName extends string = '',
ModelsObject extends Record<string, Record<string, any>> = Record<string, { [key: string]: boolean }>,
ModelsObject extends Record<ModelName, Record<string, any>> = Record<ModelName, Record<string, any>>,
>(
settings?: Settings<ModelName, ModelsObject>,
) =>
Expand Down
9 changes: 9 additions & 0 deletions packages/plugins/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @paljs/plugins

## 6.0.7

### Patch Changes

- Fix an issue in the select plugin options
- Updated dependencies
- @paljs/types@6.0.7
- @paljs/utils@6.0.7

## 6.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paljs/plugins",
"version": "6.0.6",
"version": "6.0.7",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": {
Expand Down
7 changes: 5 additions & 2 deletions packages/plugins/src/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import { GraphQLResolveInfo } from 'graphql';
import { DMMF } from '@paljs/types';
import { parseResolveInfo } from 'graphql-parse-resolve-info';

export type PrismaSelectOptions<ModelName extends string, ModelsObject extends Record<string, Record<string, any>>> = {
export type PrismaSelectOptions<
ModelName extends string,
ModelsObject extends Record<ModelName, Record<string, any>>,
> = {
/*
* you can pass object with your models and what the fields you need to include for every model even if user not requested in GraphQL query.
* @example
Expand Down Expand Up @@ -90,7 +93,7 @@ export type PrismaSelectOptions<ModelName extends string, ModelsObject extends R

export class PrismaSelect<
ModelName extends string = '',
ModelsObject extends Record<string, Record<string, any>> = Record<string, Record<string, any>>,
ModelsObject extends Record<ModelName, Record<string, any>> = Record<ModelName, Record<string, any>>,
> {
private availableArgs = ['where', 'orderBy', 'skip', 'cursor', 'take', 'distinct'];
private allowedProps = ['_count'];
Expand Down
10 changes: 10 additions & 0 deletions packages/schema/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @paljs/schema

## 6.0.7

### Patch Changes

- Fix an issue in the select plugin options
- Updated dependencies
- @paljs/types@6.0.7
- @paljs/display@6.0.7
- @paljs/utils@6.0.7

## 6.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/schema/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paljs/schema",
"version": "6.0.6",
"version": "6.0.7",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": {
Expand Down
6 changes: 6 additions & 0 deletions packages/types/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @paljs/types

## 6.0.7

### Patch Changes

- Fix an issue in the select plugin options

## 6.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paljs/types",
"version": "6.0.6",
"version": "6.0.7",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions packages/types/src/configFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ export interface AdminPagesOptions<ModelName extends string = string> {

export type PartialOptions<
ModelName extends string = string,
ModelsObject extends Record<string, Record<string, any>> = Record<string, Record<string, any>>,
ModelsObject extends Record<ModelName, Record<string, any>> = Record<ModelName, Record<string, any>>,
> = Omit<Partial<GeneratorOptions<ModelName, ModelsObject>>, 'backAsText'>;

export type GeneratorsType = 'nexus' | 'sdl' | 'graphql-modules';

export interface Config<
ModelName extends string = string,
ModelsObject extends Record<string, Record<string, any>> = Record<string, Record<string, any>>,
ModelsObject extends Record<ModelName, Record<string, any>> = Record<ModelName, Record<string, any>>,
> {
schema?: string;
backend?: {
Expand All @@ -31,5 +31,5 @@ export interface Config<

export type MultiSchemaConfig<
ModelName extends string = string,
ModelsObject extends Record<string, Record<string, any>> = Record<string, Record<string, any>>,
ModelsObject extends Record<ModelName, Record<string, any>> = Record<ModelName, Record<string, any>>,
> = Record<string, Config<ModelName, ModelsObject>>;
2 changes: 1 addition & 1 deletion packages/types/src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type QueriesAndMutations = Query | Mutation;

export interface GeneratorOptions<
ModelName extends string = string,
ModelsObject extends Record<string, Record<string, any>> = Record<string, Record<string, any>>,
ModelsObject extends Record<ModelName, Record<string, any>> = Record<ModelName, Record<string, any>>,
> {
backAsText?: boolean;
prismaName: string;
Expand Down
9 changes: 9 additions & 0 deletions packages/utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @paljs/utils

## 6.0.7

### Patch Changes

- Fix an issue in the select plugin options
- Updated dependencies
- @paljs/types@6.0.7
- @paljs/display@6.0.7

## 6.0.6

### Patch Changes
Expand Down
Loading

0 comments on commit 8f6ecbb

Please sign in to comment.