@paljs/types
Advanced tools
Comparing version 4.0.18 to 5.0.0
@@ -1,101 +0,6 @@ | ||
export interface Model { | ||
name: string; | ||
documentation?: string; | ||
map?: string; | ||
fields: Field[]; | ||
} | ||
export interface Enums { | ||
name: string; | ||
fields: string[]; | ||
} | ||
export interface Field { | ||
name: string; | ||
type: string; | ||
list: boolean; | ||
required: boolean; | ||
isId: boolean; | ||
unique: boolean; | ||
kind: 'object' | 'enum' | 'scalar'; | ||
map?: string; | ||
relationField?: boolean; | ||
documentation?: string; | ||
relation?: { | ||
name?: string; | ||
fields?: string[]; | ||
references?: string[]; | ||
}; | ||
} | ||
export declare type SchemaObject = { | ||
models: Model[]; | ||
enums: Enums[]; | ||
}; | ||
export interface SchemaField extends Omit<Field, 'relation' | 'documentation' | 'map'> { | ||
id: string; | ||
title: string; | ||
read: boolean; | ||
create: boolean; | ||
update: boolean; | ||
filter: boolean; | ||
sort: boolean; | ||
order: number; | ||
editor: boolean; | ||
upload: boolean; | ||
} | ||
export interface SchemaModel extends Omit<Model, 'documentation' | 'map'> { | ||
id: string; | ||
idField: string; | ||
displayFields: string[]; | ||
update: boolean; | ||
delete: boolean; | ||
create: boolean; | ||
fields: SchemaField[]; | ||
} | ||
export declare type Schema = { | ||
models: SchemaModel[]; | ||
enums: Enums[]; | ||
}; | ||
export declare type GeneratorsType = 'nexus' | 'sdl' | 'graphql-modules' | 'nexus-plugin-prisma'; | ||
export interface Config { | ||
schema?: string; | ||
backend?: { | ||
generator: GeneratorsType; | ||
adminSettingsPath?: string; | ||
} & PartialOptions; | ||
frontend?: { | ||
admin?: AdminPagesOptions | boolean; | ||
graphql?: PartialOptions | boolean; | ||
}; | ||
} | ||
export declare type MultiSchemaConfig = Record<string, Config>; | ||
export declare type PartialOptions = Omit<Partial<Options>, 'nexusSchema'>; | ||
export interface Options { | ||
prismaName: string; | ||
models?: string[]; | ||
output: string; | ||
javaScript?: boolean; | ||
excludeFields: string[]; | ||
excludeModels: { | ||
name: string; | ||
queries?: boolean; | ||
mutations?: boolean; | ||
}[]; | ||
disableQueries?: boolean; | ||
disableMutations?: boolean; | ||
excludeFieldsByModel: { | ||
[modelName: string]: string[]; | ||
}; | ||
excludeQueriesAndMutationsByModel: { | ||
[modelName: string]: QueriesAndMutations[]; | ||
}; | ||
excludeQueriesAndMutations: QueriesAndMutations[]; | ||
doNotUseFieldUpdateOperationsInput?: boolean; | ||
} | ||
export declare type Query = 'findUnique' | 'findFirst' | 'findMany' | 'findCount' | 'aggregate'; | ||
export declare type Mutation = 'createOne' | 'updateOne' | 'upsertOne' | 'deleteOne' | 'updateMany' | 'deleteMany'; | ||
export declare type QueriesAndMutations = Query | Mutation; | ||
export interface AdminPagesOptions { | ||
models?: string[]; | ||
pageContent?: string; | ||
outPut?: string; | ||
} | ||
export declare type Examples = 'apollo-nexus-schema' | 'apollo-sdl-first' | 'graphql-modules' | 'full-stack-nextjs' | 'full-stack-gatsbyjs'; | ||
export * from './cli'; | ||
export * from './generatedSchema'; | ||
export * from './generator'; | ||
export * from './configFile'; | ||
export * from './adminSchema'; | ||
export * from './dmmf'; |
@@ -1,8 +0,23 @@ | ||
'use strict' | ||
if (process.env.NODE_ENV === 'production') { | ||
module.exports = require('./types.cjs.production.min.js') | ||
} else { | ||
module.exports = require('./types.cjs.development.js') | ||
} | ||
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./cli"), exports); | ||
__exportStar(require("./generatedSchema"), exports); | ||
__exportStar(require("./generator"), exports); | ||
__exportStar(require("./configFile"), exports); | ||
__exportStar(require("./adminSchema"), exports); | ||
__exportStar(require("./dmmf"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@paljs/types", | ||
"version": "4.0.18", | ||
"version": "5.0.0", | ||
"main": "dist/index.js", | ||
"module": "dist/types.esm.js", | ||
"types": "dist/index.d.ts", | ||
@@ -12,14 +11,6 @@ "repository": { | ||
}, | ||
"homepage": "http://www.paljs.com/", | ||
"homepage": "https://paljs.com", | ||
"author": "Ahmed Elywa", | ||
"license": "MIT", | ||
"private": false, | ||
"scripts": { | ||
"start": "tsdx watch", | ||
"build": "tsdx build", | ||
"test": "tsdx test", | ||
"lint": "tsdx lint", | ||
"update": "ncu -u --timeout 9999999", | ||
"prepare": "tsdx build" | ||
}, | ||
"publishConfig": { | ||
@@ -29,3 +20,4 @@ "access": "public" | ||
"devDependencies": { | ||
"typescript": "4.5.5" | ||
"@prisma/client": "4.6.1", | ||
"typescript": "^4.7.4" | ||
}, | ||
@@ -35,3 +27,7 @@ "files": [ | ||
], | ||
"gitHead": "4394fb233fb2bf647f533a3a20f783696d43e412" | ||
} | ||
"gitHead": "3d5f31c5d025953338ec694c513894b6a4112e70", | ||
"scripts": { | ||
"build": "pnpm run clean && tsc -p tsconfig.build.json", | ||
"clean": "rm -rf dist node_modules/.cache" | ||
} | ||
} |
@@ -1,1 +0,1 @@ | ||
## Pal.js Types | ||
## Pal.js Types |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
7852
24
153
0
2
0
2
1