@projectcaluma/ember-testing 14.7.1 → 14.8.1

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.
@@ -55,6 +55,21 @@ export default function createGraphqlHandler(server) {
55
55
  __typename: "SelectedOption",
56
56
  };
57
57
  },
58
+ DocumentValidityConnection: (_, { id }) => {
59
+ const document = server.schema.documents.find(id);
60
+
61
+ return {
62
+ edges: () => [
63
+ {
64
+ node: () => ({
65
+ id,
66
+ isValid: document?.__isValid ?? true,
67
+ errors: document?.__errors ?? [],
68
+ }),
69
+ },
70
+ ],
71
+ };
72
+ },
58
73
  },
59
74
  preserveResolvers: false,
60
75
  });
@@ -4093,6 +4093,7 @@ enum Type {
4093
4093
  type ValidationEntry {
4094
4094
  slug: String!
4095
4095
  errorMsg: String!
4096
+ errorCode: String!
4096
4097
  }
4097
4098
 
4098
4099
  type ValidationResult {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-testing",
3
- "version": "14.7.1",
3
+ "version": "14.8.1",
4
4
  "description": "Ember addon for testing with Caluma addons.",
5
5
  "keywords": [
6
6
  "ember-addon"