@salesforce/lds-worker-api 1.293.0 → 1.295.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.
- package/dist/sfdc/es/ldsWorkerApi.js +12 -16
- package/dist/standalone/es/lds-worker-api.js +7310 -7235
- package/dist/standalone/umd/lds-worker-api.js +7309 -7234
- package/package.json +10 -10
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-assignedtome.adapter-testcase.json +3 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-baseline.adapter-testcase.json +3 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-child-relationship.adapter-testcase.json +3 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-parent-relationship.adapter-testcase.json +3 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-reserved-entity-name.adapter-testcase.json +3 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/assignedtome.adapter-testcase.json +3 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/date-predicate.adapter-testcase.json +3 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/graphql-get-errors.adapter-testcase.json +3 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/multiple-recordquery.adapter-testcase.json +3 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectinfo.adapter-testcase.json +3 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/polyfield.adapter-testcase.json +3 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/polyquery-and-operator.adapter-testcase.json +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.295.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/standalone/es/lds-worker-api.js",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
|
|
38
|
-
"@salesforce/lds-adapters-graphql": "^1.
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
41
|
-
"@salesforce/lds-drafts": "^1.
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.
|
|
44
|
-
"@salesforce/lds-priming": "^1.
|
|
45
|
-
"@salesforce/lds-runtime-mobile": "^1.
|
|
46
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.295.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.295.0",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.295.0",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.295.0",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.295.0",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.295.0",
|
|
44
|
+
"@salesforce/lds-priming": "^1.295.0",
|
|
45
|
+
"@salesforce/lds-runtime-mobile": "^1.295.0",
|
|
46
|
+
"@salesforce/nimbus-plugin-lds": "^1.295.0",
|
|
47
47
|
"ajv": "^8.11.0",
|
|
48
48
|
"glob": "^7.1.5",
|
|
49
49
|
"nimbus-types": "^2.0.0-alpha1",
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"variables": {},
|
|
21
21
|
"useUiApiAdapter": true
|
|
22
22
|
},
|
|
23
|
+
"requestContext": {
|
|
24
|
+
"cachePolicy": { "type": "stale-while-revalidate", "staleDurationSeconds": 30 }
|
|
25
|
+
},
|
|
23
26
|
"expectedToSucceed": true,
|
|
24
27
|
"expectedResult": "./adapter-testcases/graphQL/snapshotdata/adapter-forward-assignedtome.adapter-snapshot.result.json"
|
|
25
28
|
}
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
"variables": {},
|
|
13
13
|
"useUiApiAdapter": true
|
|
14
14
|
},
|
|
15
|
+
"requestContext": {
|
|
16
|
+
"cachePolicy": { "type": "stale-while-revalidate", "staleDurationSeconds": 30 }
|
|
17
|
+
},
|
|
15
18
|
"expectedToSucceed": true,
|
|
16
19
|
"expectedResult": "./adapter-testcases/graphQL/snapshotdata/adapter-forward-baseline.adapter-snapshot.result.json"
|
|
17
20
|
}
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"variables": {},
|
|
17
17
|
"useUiApiAdapter": true
|
|
18
18
|
},
|
|
19
|
+
"requestContext": {
|
|
20
|
+
"cachePolicy": { "type": "stale-while-revalidate", "staleDurationSeconds": 30 }
|
|
21
|
+
},
|
|
19
22
|
"expectedToSucceed": true,
|
|
20
23
|
"expectedResult": "./adapter-testcases/graphQL/snapshotdata/adapter-forward-child-relationship.adapter-snapshot.result.json"
|
|
21
24
|
}
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"variables": {},
|
|
17
17
|
"useUiApiAdapter": true
|
|
18
18
|
},
|
|
19
|
+
"requestContext": {
|
|
20
|
+
"cachePolicy": { "type": "stale-while-revalidate", "staleDurationSeconds": 30 }
|
|
21
|
+
},
|
|
19
22
|
"expectedToSucceed": true,
|
|
20
23
|
"expectedResult": "./adapter-testcases/graphQL/snapshotdata/adapter-forward-parent-relationship.adapter-snapshot.result.json"
|
|
21
24
|
}
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"variables": {},
|
|
14
14
|
"useUiApiAdapter": true
|
|
15
15
|
},
|
|
16
|
+
"requestContext": {
|
|
17
|
+
"cachePolicy": { "type": "stale-while-revalidate", "staleDurationSeconds": 30 }
|
|
18
|
+
},
|
|
16
19
|
"expectedToSucceed": true,
|
|
17
20
|
"expectedResult": "./adapter-testcases/graphQL/snapshotdata/adapter-forward-reserved-entity-name.adapter-snapshot.result.json"
|
|
18
21
|
}
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
"query": "query { uiapi { query { ServiceAppointment(scope: ASSIGNEDTOME, orderBy: {SchedStartTime: {order: ASC, nulls: FIRST}}) @category(name: \"recordQuery\") { edges { node { Id ServiceResources @category(name: \"childRelationship\") { edges { node { Id } } } } } } } } }",
|
|
20
20
|
"variables": {}
|
|
21
21
|
},
|
|
22
|
+
"requestContext": {
|
|
23
|
+
"cachePolicy": { "type": "stale-while-revalidate", "staleDurationSeconds": 30 }
|
|
24
|
+
},
|
|
22
25
|
"expectedToSucceed": true,
|
|
23
26
|
"expectedResult": "./adapter-testcases/graphQL/snapshotdata/assignedtome.adapter-snapshot.result.json"
|
|
24
27
|
}
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
"query": "{ uiapi { query { Account(first: 1, where: { LastModifiedDate: {eq: {value: \"2016-03-06T02:29:47Z\"}}}) @category(name: \"recordQuery\") { edges { node { Id }} } }}}",
|
|
12
12
|
"variables": {}
|
|
13
13
|
},
|
|
14
|
+
"requestContext": {
|
|
15
|
+
"cachePolicy": { "type": "stale-while-revalidate", "staleDurationSeconds": 30 }
|
|
16
|
+
},
|
|
14
17
|
"expectedToSucceed": true,
|
|
15
18
|
"expectedResult": "./adapter-testcases/graphQL/snapshotdata/date-predicate.adapter-snapshot.result.json"
|
|
16
19
|
}
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
"query": "{ uiapi { query { TimeSheetEntry( where: { and: [{ WorkOrderId: { eq: \"0WOx0000005kE9xGAE\" } }] } first: 2000 ) @category(name: \"recordQuery\") { edges { node { MayEdit { value } IsLocked { value } } } } } } }",
|
|
12
12
|
"variables": {}
|
|
13
13
|
},
|
|
14
|
+
"requestContext": {
|
|
15
|
+
"cachePolicy": { "type": "stale-while-revalidate", "staleDurationSeconds": 30 }
|
|
16
|
+
},
|
|
14
17
|
"expectedToSucceed": false,
|
|
15
18
|
"expectedResult": "./adapter-testcases/graphQL/snapshotdata/graphql-get-errors.adapter-snapshot.result.json"
|
|
16
19
|
}
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
"query": "{ uiapi { query { Account(first: 1) @category(name: \"recordQuery\") { edges { node { Id }} } ServiceAppointment(first: 1 where:{OwnerId:{eq :\"005x0000000xPQs\"}}) @category(name: \"recordQuery\") { edges { node { Id AppointmentNumber {value} } } } second: ServiceAppointment(first: 2 where:{OwnerId:{eq :\"005x0000000xPQs\"}}) @category(name: \"recordQuery\") { edges { node { Id AccountId {value} } } }}}}",
|
|
16
16
|
"variables": {}
|
|
17
17
|
},
|
|
18
|
+
"requestContext": {
|
|
19
|
+
"cachePolicy": { "type": "stale-while-revalidate", "staleDurationSeconds": 30 }
|
|
20
|
+
},
|
|
18
21
|
"expectedToSucceed": true,
|
|
19
22
|
"expectedResult": "./adapter-testcases/graphQL/snapshotdata/multiple-recordquery.adapter-snapshot.result.json"
|
|
20
23
|
}
|
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
"query": "query { uiapi { objectInfos(apiNames: [\"IncludeAllDataTypes\"]) { ApiName fields { ApiName label dataType sortable } } } }",
|
|
8
8
|
"variables": {}
|
|
9
9
|
},
|
|
10
|
+
"requestContext": {
|
|
11
|
+
"cachePolicy": { "type": "stale-while-revalidate", "staleDurationSeconds": 30 }
|
|
12
|
+
},
|
|
10
13
|
"expectedToSucceed": true,
|
|
11
14
|
"expectedResult": "./adapter-testcases/graphQL/snapshotdata/objectinfos.adapter-snapshot.result.json"
|
|
12
15
|
}
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
"query": "{ uiapi { query { ServiceAppointment(scope: ASSIGNEDTOME) @category(name: \"recordQuery\") { edges { node { Id ParentRecord @category(name: \"polymorphicParentRelationship\") { ... on WorkOrder { Id WorkOrderNumber { value } WorkType @category(name: \"parentRelationship\") { Name { value } } } } } } } } } }",
|
|
28
28
|
"variables": {}
|
|
29
29
|
},
|
|
30
|
+
"requestContext": {
|
|
31
|
+
"cachePolicy": { "type": "stale-while-revalidate", "staleDurationSeconds": 30 }
|
|
32
|
+
},
|
|
30
33
|
"expectedToSucceed": true,
|
|
31
34
|
"expectedResult": "./adapter-testcases/graphQL/snapshotdata/polyfield.adapter-snapshot.result.json"
|
|
32
35
|
}
|
|
@@ -15,6 +15,9 @@
|
|
|
15
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
16
|
"variables": {}
|
|
17
17
|
},
|
|
18
|
+
"requestContext": {
|
|
19
|
+
"cachePolicy": { "type": "stale-while-revalidate", "staleDurationSeconds": 30 }
|
|
20
|
+
},
|
|
18
21
|
"expectedToSucceed": true,
|
|
19
22
|
"expectedResult": "./adapter-testcases/graphQL/snapshotdata/polyquery-and-operator.adapter-snapshot.result.json"
|
|
20
23
|
}
|