@zenstackhq/sdk 2.0.0-beta.11 → 2.0.0-beta.13

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,4 +1,4 @@
1
- import type { DMMF } from '../types';
1
+ import type { DMMF } from '../prisma';
2
2
  import { AggregateOperationSupport } from './types';
3
3
  export declare const isAggregateInputType: (name: string) => boolean;
4
4
  export declare function addMissingInputObjectTypesForAggregate(inputObjectTypes: DMMF.InputType[], outputObjectTypes: DMMF.OutputType[]): void;
@@ -1,2 +1,2 @@
1
- import type { DMMF } from '../types';
1
+ import type { DMMF } from '../prisma';
2
2
  export declare function addMissingInputObjectTypesForInclude(inputObjectTypes: DMMF.InputType[], models: DMMF.Model[]): void;
@@ -1,2 +1,2 @@
1
- import type { DMMF } from '../types';
1
+ import type { DMMF } from '../prisma';
2
2
  export declare function addMissingInputObjectTypes(inputObjectTypes: DMMF.InputType[], outputObjectTypes: DMMF.OutputType[], models: DMMF.Model[]): void;
@@ -1,4 +1,4 @@
1
- import type { DMMF } from '../types';
1
+ import type { DMMF } from '../prisma';
2
2
  export declare function checkModelHasModelRelation(model: DMMF.Model): boolean;
3
3
  export declare function checkModelHasManyModelRelation(model: DMMF.Model): boolean;
4
4
  export declare function checkIsModelRelationField(modelField: DMMF.Field): boolean;
@@ -1,2 +1,2 @@
1
- import type { DMMF } from '../types';
1
+ import type { DMMF } from '../prisma';
2
2
  export declare function addMissingInputObjectTypesForModelArgs(inputObjectTypes: DMMF.InputType[], models: DMMF.Model[]): void;
@@ -1,2 +1,2 @@
1
- import type { DMMF } from '../types';
1
+ import type { DMMF } from '../prisma';
2
2
  export declare function addMissingInputObjectTypesForSelect(inputObjectTypes: DMMF.InputType[], outputObjectTypes: DMMF.OutputType[], models: DMMF.Model[]): void;
@@ -1,4 +1,4 @@
1
- import type { DMMF } from '../types';
1
+ import type { DMMF } from '../prisma';
2
2
  export type TransformerParams = {
3
3
  enumTypes?: DMMF.SchemaEnum[];
4
4
  fields?: DMMF.SchemaArg[];
package/index.d.ts CHANGED
@@ -2,7 +2,6 @@ export * from './code-gen';
2
2
  export * from './constants';
3
3
  export { generate as generateModelMeta } from './model-meta-generator';
4
4
  export * from './policy';
5
- export * from './prisma';
6
5
  export * from './types';
7
6
  export * from './typescript-expression-transformer';
8
7
  export * from './utils';
package/index.js CHANGED
@@ -20,7 +20,6 @@ __exportStar(require("./constants"), exports);
20
20
  var model_meta_generator_1 = require("./model-meta-generator");
21
21
  Object.defineProperty(exports, "generateModelMeta", { enumerable: true, get: function () { return model_meta_generator_1.generate; } });
22
22
  __exportStar(require("./policy"), exports);
23
- __exportStar(require("./prisma"), exports);
24
23
  __exportStar(require("./types"), exports);
25
24
  __exportStar(require("./typescript-expression-transformer"), exports);
26
25
  __exportStar(require("./utils"), exports);
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,+DAAuE;AAA9D,yHAAA,QAAQ,OAAqB;AACtC,2CAAyB;AACzB,2CAAyB;AACzB,0CAAwB;AACxB,sEAAoD;AACpD,0CAAwB;AACxB,+CAA6B;AAC7B,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,+DAAuE;AAA9D,yHAAA,QAAQ,OAAqB;AACtC,2CAAyB;AACzB,0CAAwB;AACxB,sEAAoD;AACpD,0CAAwB;AACxB,+CAA6B;AAC7B,0DAAwC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenstackhq/sdk",
3
- "version": "2.0.0-beta.11",
3
+ "version": "2.0.0-beta.13",
4
4
  "description": "ZenStack plugin development SDK",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -19,12 +19,30 @@
19
19
  "ts-morph": "^16.0.0",
20
20
  "ts-pattern": "^4.3.0",
21
21
  "upper-case-first": "^2.0.2",
22
- "@zenstackhq/language": "2.0.0-beta.11",
23
- "@zenstackhq/runtime": "2.0.0-beta.11"
22
+ "@zenstackhq/language": "2.0.0-beta.13",
23
+ "@zenstackhq/runtime": "2.0.0-beta.13"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/semver": "^7.3.13"
27
27
  },
28
+ "exports": {
29
+ ".": {
30
+ "types": "./index.d.ts",
31
+ "default": "./index.js"
32
+ },
33
+ "./ast": {
34
+ "types": "./ast.d.ts",
35
+ "default": "./ast.js"
36
+ },
37
+ "./prisma": {
38
+ "types": "./prisma.d.ts",
39
+ "default": "./prisma.js"
40
+ },
41
+ "./dmmf-helpers": {
42
+ "types": "./dmmf-helpers/index.d.ts",
43
+ "default": "./dmmf-helpers/index.js"
44
+ }
45
+ },
28
46
  "scripts": {
29
47
  "clean": "rimraf dist",
30
48
  "lint": "eslint src --ext ts",
package/prisma.d.ts CHANGED
@@ -13,3 +13,4 @@ export declare function getDMMF(options: GetDMMFOptions): Promise<DMMF.Document>
13
13
  * Gets the installed Prisma's version
14
14
  */
15
15
  export declare function getPrismaVersion(): string | undefined;
16
+ export type { DMMF } from '@prisma/generator-helper';
package/types.d.ts CHANGED
@@ -75,4 +75,3 @@ export declare class PluginError extends Error {
75
75
  plugin: string;
76
76
  constructor(plugin: string, message: string);
77
77
  }
78
- export type { DMMF } from '@prisma/generator-helper';