@salesforce/lds-worker-api 1.114.5 → 1.114.6

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": "@salesforce/lds-worker-api",
3
- "version": "1.114.5",
3
+ "version": "1.114.6",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/umd/lds-worker-api.js",
@@ -0,0 +1,23 @@
1
+ {
2
+ "testCaseName": "UIAPI graphql adapter gets correct errors in new response shape",
3
+ "adapters": [
4
+ {
5
+ "name": "getObjectInfo",
6
+ "config": { "objectApiName": "TimeSheetEntry" }
7
+ },
8
+ {
9
+ "name": "graphql",
10
+ "config": {
11
+ "query": "{ uiapi { query { TimeSheetEntry( where: { and: [{ WorkOrderId: { eq: \"0WOx0000005kE9xGAE\" } }] } first: 2000 ) @category(name: \"recordQuery\") { edges { node { MayEdit { value } IsLocked { value } } } } } } }",
12
+ "variables": {}
13
+ },
14
+ "expectedToSucceed": false,
15
+ "expectedResult": "./adapter-testcases/graphQL/snapshotdata/graphql-get-errors.adapter-snapshot.result.json"
16
+ }
17
+ ],
18
+ "networkMocks": [
19
+ "./adapter-testcases/graphQL/objectInfos/TimeSheetEntry.network-mock.json",
20
+ "./adapter-testcases/graphQL/serverresponse/graphql-get-errors.server-response.network-mock.json"
21
+ ],
22
+ "freezeTime": true
23
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "status": 200,
3
+ "body": {
4
+ "errors": [
5
+ {
6
+ "extensions": { "ErrorType": "ValidationError" },
7
+ "locations": [{ "column": 13, "line": 10 }],
8
+ "message": "Validation error of type FieldUndefined: Field 'MayEdit' in type 'TimeSheetEntry' is undefined @ 'uiapi/query/TimeSheetEntry/edges/node/MayEdit'",
9
+ "paths": []
10
+ },
11
+ {
12
+ "extensions": { "ErrorType": "ValidationError" },
13
+ "locations": [{ "column": 13, "line": 15 }],
14
+ "message": "Validation error of type FieldUndefined: Field 'IsLocked' in type 'TimeSheetEntry' is undefined @ 'uiapi/query/TimeSheetEntry/edges/node/IsLocked'",
15
+ "paths": []
16
+ }
17
+ ]
18
+ }
19
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "errors": [
3
+ {
4
+ "paths": [],
5
+ "message": "Validation error of type FieldUndefined: Field 'MayEdit' in type 'TimeSheetEntry' is undefined @ 'uiapi/query/TimeSheetEntry/edges/node/MayEdit'",
6
+ "extensions": { "ErrorType": "ValidationError" },
7
+ "locations": [{ "line": 10, "column": 13 }]
8
+ },
9
+ {
10
+ "paths": [],
11
+ "message": "Validation error of type FieldUndefined: Field 'IsLocked' in type 'TimeSheetEntry' is undefined @ 'uiapi/query/TimeSheetEntry/edges/node/IsLocked'",
12
+ "extensions": { "ErrorType": "ValidationError" },
13
+ "locations": [{ "line": 15, "column": 13 }]
14
+ }
15
+ ]
16
+ }