@projectcaluma/ember-testing 14.8.0 → 14.8.2

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
  });
@@ -8,6 +8,11 @@ directive @specifiedBy(
8
8
  url: String!
9
9
  ) on SCALAR
10
10
 
11
+ """
12
+ Indicates an Input Object is a OneOf Input Object.
13
+ """
14
+ directive @oneOf on INPUT_OBJECT
15
+
11
16
  type ActionButtonQuestion implements Question & Node {
12
17
  createdAt: DateTime!
13
18
  modifiedAt: DateTime!
@@ -4093,9 +4098,18 @@ enum Type {
4093
4098
  type ValidationEntry {
4094
4099
  slug: String!
4095
4100
  errorMsg: String!
4101
+ errorCode: String!
4102
+
4103
+ """
4104
+ References the document ID. This may reference table rows.
4105
+ """
4106
+ documentId: ID!
4096
4107
  }
4097
4108
 
4098
4109
  type ValidationResult {
4110
+ """
4111
+ References the document ID
4112
+ """
4099
4113
  id: ID
4100
4114
  isValid: Boolean
4101
4115
  errors: [ValidationEntry]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-testing",
3
- "version": "14.8.0",
3
+ "version": "14.8.2",
4
4
  "description": "Ember addon for testing with Caluma addons.",
5
5
  "keywords": [
6
6
  "ember-addon"