@salesforce/lds-worker-api 1.107.0 → 1.108.0

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.
@@ -0,0 +1,28 @@
1
+ {
2
+ "testCaseName": "Polymorphic query with and operator is supported",
3
+ "adapters": [
4
+ {
5
+ "name": "getObjectInfo",
6
+ "config": { "objectApiName": "ServiceAppointment" }
7
+ },
8
+ {
9
+ "name": "getObjectInfo",
10
+ "config": { "objectApiName": "User" }
11
+ },
12
+ {
13
+ "name": "graphql",
14
+ "config": {
15
+ "query": "{ uiapi { query { ServiceAppointment(first: 1 where: { and: [{Owner: {User: {Name: {eq: \"u204_1_3038_f u204_1_3038_l\"}} }}, {Status:{eq:\"None\"}}] }) @category(name: \"recordQuery\") { edges { node { Id Owner@category(name: \"polymorphicParentRelationship\") { ...on User { FirstName { value } } } } } } } } }",
16
+ "variables": {}
17
+ },
18
+ "expectedToSucceed": true,
19
+ "expectedResult": "./adapter-testcases/graphQL/snapshotdata/polyquery-and-operator.adapter-snapshot.result.json"
20
+ }
21
+ ],
22
+ "networkMocks": [
23
+ "./adapter-testcases/graphQL/objectInfos/ServiceAppointment.network-mock.json",
24
+ "./adapter-testcases/graphQL/objectInfos/User.network-mock.json",
25
+ "./adapter-testcases/graphQL/serverresponse/polyquery-and-operator.server-response.network-mock.json"
26
+ ],
27
+ "freezeTime": true
28
+ }
@@ -0,0 +1,103 @@
1
+ {
2
+ "status": 200,
3
+ "body": {
4
+ "data": {
5
+ "uiapi": {
6
+ "query": {
7
+ "ServiceAppointment": {
8
+ "edges": [
9
+ {
10
+ "node": {
11
+ "Id": "08px000000JOa8mAAD",
12
+ "Owner": {
13
+ "FirstName": {
14
+ "value": "u204_1_3038_f",
15
+ "__typename": "StringValue",
16
+ "displayValue": null
17
+ },
18
+ "__typename": "User",
19
+ "Id": "005x0000000xPQsAAM",
20
+ "DisplayValue": "u204_1_3038_f u204_1_3038_l",
21
+ "ApiName": "User",
22
+ "WeakEtag": 1530595657000,
23
+ "LastModifiedById": {
24
+ "__typename": "IDValue",
25
+ "value": "005x0000000xNhqAAE",
26
+ "displayValue": null
27
+ },
28
+ "LastModifiedDate": {
29
+ "__typename": "DateTimeValue",
30
+ "value": "2016-07-12T05:44:34.000Z",
31
+ "displayValue": null
32
+ },
33
+ "SystemModstamp": {
34
+ "__typename": "DateTimeValue",
35
+ "value": "2018-07-03T05:27:37.000Z",
36
+ "displayValue": null
37
+ },
38
+ "ldsRecordTypeId": {
39
+ "__typename": "IDValue",
40
+ "value": null,
41
+ "displayValue": null
42
+ },
43
+ "Name": {
44
+ "value": "u204_1_3038_f u204_1_3038_l",
45
+ "__typename": "StringValue",
46
+ "displayValue": null
47
+ }
48
+ },
49
+ "OwnerId": {
50
+ "value": "005x0000000xPQsAAM",
51
+ "__typename": "IDValue",
52
+ "displayValue": null
53
+ },
54
+ "Status": {
55
+ "value": "None",
56
+ "__typename": "PicklistValue",
57
+ "displayValue": "None"
58
+ },
59
+ "__typename": "ServiceAppointment",
60
+ "DisplayValue": "19474374",
61
+ "ApiName": "ServiceAppointment",
62
+ "WeakEtag": 1522877275000,
63
+ "LastModifiedById": {
64
+ "__typename": "IDValue",
65
+ "value": "005x0000000xNhvAAE",
66
+ "displayValue": null
67
+ },
68
+ "LastModifiedDate": {
69
+ "__typename": "DateTimeValue",
70
+ "value": "2018-04-04T21:27:55.000Z",
71
+ "displayValue": "4/4/2018, 2:27 PM"
72
+ },
73
+ "SystemModstamp": {
74
+ "__typename": "DateTimeValue",
75
+ "value": "2018-04-04T21:27:55.000Z",
76
+ "displayValue": "4/4/2018, 2:27 PM"
77
+ },
78
+ "ldsRecordTypeId": {
79
+ "__typename": "IDValue",
80
+ "value": "012000000000000AAA",
81
+ "displayValue": null
82
+ }
83
+ },
84
+ "cursor": "djE6MA==",
85
+ "__typename": "ServiceAppointmentEdge"
86
+ }
87
+ ],
88
+ "__typename": "ServiceAppointmentConnection",
89
+ "pageInfo": {
90
+ "hasNextPage": true,
91
+ "endCursor": "djE6MA==",
92
+ "startCursor": "djE6MA==",
93
+ "__typename": "PageInfo"
94
+ }
95
+ },
96
+ "__typename": "RecordQuery"
97
+ },
98
+ "__typename": "UIAPI"
99
+ }
100
+ },
101
+ "errors": []
102
+ }
103
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "data": {
3
+ "uiapi": {
4
+ "query": {
5
+ "ServiceAppointment": {
6
+ "edges": [
7
+ {
8
+ "node": {
9
+ "Id": "08px000000JOa8mAAD",
10
+ "Owner": {
11
+ "FirstName": {
12
+ "value": "u204_1_3038_f"
13
+ }
14
+ },
15
+ "_drafts": null
16
+ }
17
+ }
18
+ ]
19
+ }
20
+ }
21
+ }
22
+ }
23
+ }