@snowtop/ent 0.1.0-alpha147 → 0.1.0-alpha148

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowtop/ent",
3
- "version": "0.1.0-alpha147",
3
+ "version": "0.1.0-alpha148",
4
4
  "description": "snowtop ent framework",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -275,7 +275,8 @@ async function parseSchema(potentialSchemas, globalSchema) {
275
275
  assocEdgeGroups: [],
276
276
  customGraphQLInterfaces: schema.customGraphQLInterfaces,
277
277
  supportUpsert: schema.supportUpsert,
278
- supportCanViewerSee: schema.supportCanViewerSee,
278
+ showCanViewerSee: schema.showCanViewerSee,
279
+ showCanViewerEdit: schema.showCanViewerEdit,
279
280
  };
280
281
  // let's put patterns first just so we have id, created_at, updated_at first
281
282
  // ¯\_(ツ)_/¯
@@ -21,7 +21,8 @@ export declare class EntSchema implements Schema {
21
21
  hideFromGraphQL?: boolean;
22
22
  customGraphQLInterfaces?: string[] | undefined;
23
23
  supportUpsert?: boolean | undefined;
24
- supportCanViewerSee?: boolean | undefined;
24
+ showCanViewerSee?: boolean | undefined;
25
+ showCanViewerEdit?: boolean | undefined;
25
26
  constructor(cfg: SchemaConfig);
26
27
  }
27
28
  export declare class EntSchemaWithTZ implements Schema {
@@ -41,7 +42,8 @@ export declare class EntSchemaWithTZ implements Schema {
41
42
  hideFromGraphQL?: boolean;
42
43
  customGraphQLInterfaces?: string[] | undefined;
43
44
  supportUpsert?: boolean | undefined;
44
- supportCanViewerSee?: boolean | undefined;
45
+ showCanViewerSee?: boolean | undefined;
46
+ showCanViewerEdit?: boolean | undefined;
45
47
  constructor(cfg: SchemaConfig);
46
48
  }
47
49
  export declare abstract class BaseEntSchema {
@@ -91,7 +91,8 @@ class EntSchema {
91
91
  // TODO annoying that have to list these...
92
92
  this.customGraphQLInterfaces = cfg.customGraphQLInterfaces;
93
93
  this.supportUpsert = cfg.supportUpsert;
94
- this.supportCanViewerSee = cfg.supportCanViewerSee;
94
+ this.showCanViewerSee = cfg.showCanViewerSee;
95
+ this.showCanViewerEdit = cfg.showCanViewerEdit;
95
96
  }
96
97
  }
97
98
  exports.EntSchema = EntSchema;
@@ -122,7 +123,8 @@ class EntSchemaWithTZ {
122
123
  // TODO annoying that have to list these...
123
124
  this.customGraphQLInterfaces = cfg.customGraphQLInterfaces;
124
125
  this.supportUpsert = cfg.supportUpsert;
125
- this.supportCanViewerSee = cfg.supportCanViewerSee;
126
+ this.showCanViewerSee = cfg.showCanViewerSee;
127
+ this.showCanViewerEdit = cfg.showCanViewerEdit;
126
128
  }
127
129
  }
128
130
  exports.EntSchemaWithTZ = EntSchemaWithTZ;
@@ -40,7 +40,8 @@ export default interface Schema {
40
40
  hideFromGraphQL?: boolean;
41
41
  customGraphQLInterfaces?: string[];
42
42
  supportUpsert?: boolean;
43
- supportCanViewerSee?: boolean;
43
+ showCanViewerSee?: boolean;
44
+ showCanViewerEdit?: boolean;
44
45
  }
45
46
  export interface AssocEdge {
46
47
  name: string;