@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 +1 -1
- package/parse_schema/parse.js +2 -1
- package/schema/base_schema.d.ts +4 -2
- package/schema/base_schema.js +4 -2
- package/schema/schema.d.ts +2 -1
package/package.json
CHANGED
package/parse_schema/parse.js
CHANGED
|
@@ -275,7 +275,8 @@ async function parseSchema(potentialSchemas, globalSchema) {
|
|
|
275
275
|
assocEdgeGroups: [],
|
|
276
276
|
customGraphQLInterfaces: schema.customGraphQLInterfaces,
|
|
277
277
|
supportUpsert: schema.supportUpsert,
|
|
278
|
-
|
|
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
|
// ¯\_(ツ)_/¯
|
package/schema/base_schema.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
45
|
+
showCanViewerSee?: boolean | undefined;
|
|
46
|
+
showCanViewerEdit?: boolean | undefined;
|
|
45
47
|
constructor(cfg: SchemaConfig);
|
|
46
48
|
}
|
|
47
49
|
export declare abstract class BaseEntSchema {
|
package/schema/base_schema.js
CHANGED
|
@@ -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.
|
|
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.
|
|
126
|
+
this.showCanViewerSee = cfg.showCanViewerSee;
|
|
127
|
+
this.showCanViewerEdit = cfg.showCanViewerEdit;
|
|
126
128
|
}
|
|
127
129
|
}
|
|
128
130
|
exports.EntSchemaWithTZ = EntSchemaWithTZ;
|
package/schema/schema.d.ts
CHANGED
|
@@ -40,7 +40,8 @@ export default interface Schema {
|
|
|
40
40
|
hideFromGraphQL?: boolean;
|
|
41
41
|
customGraphQLInterfaces?: string[];
|
|
42
42
|
supportUpsert?: boolean;
|
|
43
|
-
|
|
43
|
+
showCanViewerSee?: boolean;
|
|
44
|
+
showCanViewerEdit?: boolean;
|
|
44
45
|
}
|
|
45
46
|
export interface AssocEdge {
|
|
46
47
|
name: string;
|