@salesforce/lds-worker-api 0.1.0-dev1
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/LICENSE.txt +82 -0
- package/README.md +9 -0
- package/dist/sfdc/es/ldsWorkerApi.js +1374 -0
- package/dist/sfdc/es/types/cachePurging.d.ts +50 -0
- package/dist/sfdc/es/types/customLuvioAdapter.d.ts +13 -0
- package/dist/sfdc/es/types/customOneStoreAdapter.d.ts +21 -0
- package/dist/sfdc/es/types/draftQueueImplementation.d.ts +2 -0
- package/dist/sfdc/es/types/executeAdapter.d.ts +103 -0
- package/dist/sfdc/es/types/language.d.ts +13 -0
- package/dist/sfdc/es/types/lightningAdapterApi.d.ts +15 -0
- package/dist/sfdc/es/types/main.d.ts +11 -0
- package/dist/sfdc/es/types/nimbusDraftQueue.d.ts +6 -0
- package/dist/sfdc/es/types/primingApi.d.ts +25 -0
- package/dist/sfdc/es/types/responses.d.ts +44 -0
- package/dist/sfdc/es/types/standalone-stubs/instrumentation.d.ts +21 -0
- package/dist/sfdc/es/types/standalone-stubs/o11y.d.ts +23 -0
- package/dist/sfdc/es/types/standalone-stubs/unwrap.d.ts +1 -0
- package/dist/sfdc/es/types/standalone.d.ts +1 -0
- package/dist/sfdc/es/types/ttl.d.ts +2 -0
- package/dist/standalone/es/lds-worker-api.js +134127 -0
- package/dist/standalone/es/types/cachePurging.d.ts +50 -0
- package/dist/standalone/es/types/customLuvioAdapter.d.ts +13 -0
- package/dist/standalone/es/types/customOneStoreAdapter.d.ts +21 -0
- package/dist/standalone/es/types/draftQueueImplementation.d.ts +2 -0
- package/dist/standalone/es/types/executeAdapter.d.ts +103 -0
- package/dist/standalone/es/types/language.d.ts +13 -0
- package/dist/standalone/es/types/lightningAdapterApi.d.ts +15 -0
- package/dist/standalone/es/types/main.d.ts +11 -0
- package/dist/standalone/es/types/nimbusDraftQueue.d.ts +6 -0
- package/dist/standalone/es/types/primingApi.d.ts +25 -0
- package/dist/standalone/es/types/responses.d.ts +44 -0
- package/dist/standalone/es/types/standalone-stubs/instrumentation.d.ts +21 -0
- package/dist/standalone/es/types/standalone-stubs/o11y.d.ts +23 -0
- package/dist/standalone/es/types/standalone-stubs/unwrap.d.ts +1 -0
- package/dist/standalone/es/types/standalone.d.ts +1 -0
- package/dist/standalone/es/types/ttl.d.ts +2 -0
- package/dist/standalone/umd/lds-worker-api.js +134154 -0
- package/dist/standalone/umd/types/cachePurging.d.ts +50 -0
- package/dist/standalone/umd/types/customLuvioAdapter.d.ts +13 -0
- package/dist/standalone/umd/types/customOneStoreAdapter.d.ts +21 -0
- package/dist/standalone/umd/types/draftQueueImplementation.d.ts +2 -0
- package/dist/standalone/umd/types/executeAdapter.d.ts +103 -0
- package/dist/standalone/umd/types/language.d.ts +13 -0
- package/dist/standalone/umd/types/lightningAdapterApi.d.ts +15 -0
- package/dist/standalone/umd/types/main.d.ts +11 -0
- package/dist/standalone/umd/types/nimbusDraftQueue.d.ts +6 -0
- package/dist/standalone/umd/types/primingApi.d.ts +25 -0
- package/dist/standalone/umd/types/responses.d.ts +44 -0
- package/dist/standalone/umd/types/standalone-stubs/instrumentation.d.ts +21 -0
- package/dist/standalone/umd/types/standalone-stubs/o11y.d.ts +23 -0
- package/dist/standalone/umd/types/standalone-stubs/unwrap.d.ts +1 -0
- package/dist/standalone/umd/types/standalone.d.ts +1 -0
- package/dist/standalone/umd/types/ttl.d.ts +2 -0
- package/package.json +78 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/adapter-testcase.schema.json +83 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/name-displayValue-response.adapter-snapshot.result.json +61 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/name-displayValue.adapter-testcase.json +67 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/objectInfos/Aircraft-objectInfo.network-mock.json +582 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/objectInfos/Pilot-objectInfo.network-mock.json +367 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/scalar-displayValue-nonIntl-fallback-response.adapter-snapshot.result.json +90 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/scalar-displayValue-nonIntl-fallback.adapter-testcase.json +25 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/scalar-displayValue-response.adapter-snapshot.result.json +90 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/scalar-displayValue.adapter-testcase.json +24 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-assignedtome.adapter-testcase.json +37 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-baseline.adapter-testcase.json +27 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-child-relationship.adapter-testcase.json +32 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-parent-relationship.adapter-testcase.json +32 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-reserved-entity-name.adapter-testcase.json +28 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/assignedtome.adapter-testcase.json +36 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/date-predicate.adapter-testcase.json +26 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/graphql-get-errors.adapter-testcase.json +26 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/l2DataSet.js +252 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/legacy/getTimeSheetEntry-baseline.adapter-testcase.json +21 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/legacy/getTimeSheetEntry-where-orderby-allfields-spanningfield-500records.adapter-testcase.json +28 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/legacy/getTimeSheetEntry-where-orderby-allfields-spanningfield.adapter-testcase.json +28 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/legacy/getTimeSheetEntry-where-orderby-allfields.adapter-testcase.json +21 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/legacy/getTimeSheetEntry-where-orderby.adapter-testcase.json +21 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/legacy/getTimeSheetEntry-where.adapter-testcase.json +21 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/multiple-recordquery.adapter-testcase.json +31 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/Account.network-mock.json +2920 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/AssignedResource.network-mock.json +928 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/Case.network-mock.json +2008 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/ServiceAppointment.network-mock.json +3123 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/ServiceResource.network-mock.json +1412 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/TimeSheetEntry.network-mock.json +1027 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/User.network-mock.json +7031 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/WorkOrder.network-mock.json +3216 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/WorkType.network-mock.json +986 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectinfo.adapter-testcase.json +21 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/polyfield.adapter-testcase.json +46 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/polyquery-and-operator.adapter-testcase.json +31 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/adapter-forward-baseline.server-response.network-mock.json +416 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/adapter-forward-child-relationship.server-response.network-mock.json +103 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/adapter-forward-parent-relationship.server-response.network-mock.json +93 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/adapter-forward-reserved-entity-name.server-response.network-mock.json +97 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/assignedtome.server-response.network-mock.json +666 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/date-predicate.server-response.network-mock.json +56 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/graphql-get-errors.server-response.network-mock.json +19 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/multiple-recordquery.server-response.network-mock.json +201 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/objectinfos.server-response.network-mock.json +210 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/polyfield.server-response.network-mock.json +724 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/polyquery-and-operator.server-response.network-mock.json +103 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/adapter-forward-assignedtome.adapter-snapshot.result.json +72 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/adapter-forward-baseline.adapter-snapshot.result.json +245 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/adapter-forward-child-relationship.adapter-snapshot.result.json +30 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/adapter-forward-parent-relationship.adapter-snapshot.result.json +26 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/adapter-forward-reserved-entity-name.adapter-snapshot.result.json +32 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/assignedtome.adapter-snapshot.result.json +70 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/date-predicate.adapter-snapshot.result.json +18 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/graphql-get-errors.adapter-snapshot.result.json +16 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/multiple-recordquery.adapter-snapshot.result.json +53 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/objectinfos.adapter-snapshot.result.json +170 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/polyfield.adapter-snapshot.result.json +29 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/polyquery-and-operator.adapter-snapshot.result.json +23 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/metadataVersion/adapter-snapshot.result.json +9 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/metadataVersion/old-metadata-fails-cache-only-adapter-call.adapter-testcase.json +16 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/metadataVersion/old-metadata-fails-cache-only-adapter-call.l2DataSet.tsv +2 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/metadataVersion/old-version-fails-cache-only-adapter-call.adapter-testcase.json +16 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/metadataVersion/old-version-fails-cache-only-adapter-call.l2DataSet.tsv +2 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/network-mock.schema.json +14 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"status": 200,
|
|
3
|
+
"body": {
|
|
4
|
+
"data": {
|
|
5
|
+
"uiapi": {
|
|
6
|
+
"query": {
|
|
7
|
+
"ServiceAppointment": {
|
|
8
|
+
"edges": [
|
|
9
|
+
{
|
|
10
|
+
"node": {
|
|
11
|
+
"Id": "08px00000000QXzAAM",
|
|
12
|
+
"Account": {
|
|
13
|
+
"Id": "001x0000004cKfzAAE",
|
|
14
|
+
"Name": {
|
|
15
|
+
"value": "A001_3_20017",
|
|
16
|
+
"__typename": "StringValue",
|
|
17
|
+
"displayValue": null
|
|
18
|
+
},
|
|
19
|
+
"__typename": "Account",
|
|
20
|
+
"DisplayValue": "A001_3_20017",
|
|
21
|
+
"ApiName": "Account",
|
|
22
|
+
"WeakEtag": 1457231389000,
|
|
23
|
+
"LastModifiedById": {
|
|
24
|
+
"__typename": "IDValue",
|
|
25
|
+
"value": "005x0000000xNhqAAE",
|
|
26
|
+
"displayValue": null
|
|
27
|
+
},
|
|
28
|
+
"LastModifiedDate": {
|
|
29
|
+
"__typename": "DateTimeValue",
|
|
30
|
+
"value": "2016-03-06T02:29:47.000Z",
|
|
31
|
+
"displayValue": "3/5/2016, 6:29 PM"
|
|
32
|
+
},
|
|
33
|
+
"SystemModstamp": {
|
|
34
|
+
"__typename": "DateTimeValue",
|
|
35
|
+
"value": "2016-03-06T02:29:49.000Z",
|
|
36
|
+
"displayValue": "3/5/2016, 6:29 PM"
|
|
37
|
+
},
|
|
38
|
+
"ldsRecordTypeId": {
|
|
39
|
+
"__typename": "IDValue",
|
|
40
|
+
"value": "012000000000000AAA",
|
|
41
|
+
"displayValue": null
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"AccountId": {
|
|
45
|
+
"value": "001x0000004cKfzAAE",
|
|
46
|
+
"__typename": "IDValue",
|
|
47
|
+
"displayValue": null
|
|
48
|
+
},
|
|
49
|
+
"__typename": "ServiceAppointment",
|
|
50
|
+
"DisplayValue": "00101564",
|
|
51
|
+
"ApiName": "ServiceAppointment",
|
|
52
|
+
"WeakEtag": 1468559043000,
|
|
53
|
+
"LastModifiedById": {
|
|
54
|
+
"__typename": "IDValue",
|
|
55
|
+
"value": "005x0000000xNi8AAE",
|
|
56
|
+
"displayValue": null
|
|
57
|
+
},
|
|
58
|
+
"LastModifiedDate": {
|
|
59
|
+
"__typename": "DateTimeValue",
|
|
60
|
+
"value": "2016-07-15T05:04:03.000Z",
|
|
61
|
+
"displayValue": "7/14/2016, 10:04 PM"
|
|
62
|
+
},
|
|
63
|
+
"SystemModstamp": {
|
|
64
|
+
"__typename": "DateTimeValue",
|
|
65
|
+
"value": "2016-07-15T05:04:03.000Z",
|
|
66
|
+
"displayValue": "7/14/2016, 10:04 PM"
|
|
67
|
+
},
|
|
68
|
+
"ldsRecordTypeId": {
|
|
69
|
+
"__typename": "IDValue",
|
|
70
|
+
"value": "012000000000000AAA",
|
|
71
|
+
"displayValue": null
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"cursor": "djE6MA==",
|
|
75
|
+
"__typename": "ServiceAppointmentEdge"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"__typename": "ServiceAppointmentConnection",
|
|
79
|
+
"pageInfo": {
|
|
80
|
+
"hasNextPage": true,
|
|
81
|
+
"endCursor": "djE6MA==",
|
|
82
|
+
"startCursor": "djE6MA==",
|
|
83
|
+
"__typename": "PageInfo"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"__typename": "RecordQuery"
|
|
87
|
+
},
|
|
88
|
+
"__typename": "UIAPI"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"errors": []
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"status": 200,
|
|
3
|
+
"body": {
|
|
4
|
+
"data": {
|
|
5
|
+
"uiapi": {
|
|
6
|
+
"query": {
|
|
7
|
+
"Case": {
|
|
8
|
+
"edges": [
|
|
9
|
+
{
|
|
10
|
+
"node": {
|
|
11
|
+
"Id": "500x0000002GPP9AAO",
|
|
12
|
+
"CaseNumber": {
|
|
13
|
+
"value": "00001004",
|
|
14
|
+
"__typename": "StringValue",
|
|
15
|
+
"displayValue": null
|
|
16
|
+
},
|
|
17
|
+
"__typename": "Case",
|
|
18
|
+
"DisplayValue": "00001004",
|
|
19
|
+
"ApiName": "Case",
|
|
20
|
+
"WeakEtag": 1460411915000,
|
|
21
|
+
"LastModifiedById": {
|
|
22
|
+
"__typename": "IDValue",
|
|
23
|
+
"value": "005x0000000xNi3AAE",
|
|
24
|
+
"displayValue": null
|
|
25
|
+
},
|
|
26
|
+
"LastModifiedDate": {
|
|
27
|
+
"__typename": "DateTimeValue",
|
|
28
|
+
"value": "2016-04-11T21:58:35.000Z",
|
|
29
|
+
"displayValue": "4/11/2016, 2:58 PM"
|
|
30
|
+
},
|
|
31
|
+
"SystemModstamp": {
|
|
32
|
+
"__typename": "DateTimeValue",
|
|
33
|
+
"value": "2016-04-11T21:58:35.000Z",
|
|
34
|
+
"displayValue": "4/11/2016, 2:58 PM"
|
|
35
|
+
},
|
|
36
|
+
"ldsRecordTypeId": {
|
|
37
|
+
"__typename": "IDValue",
|
|
38
|
+
"value": "012000000000000AAA",
|
|
39
|
+
"displayValue": null
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"cursor": "djE6MA==",
|
|
43
|
+
"__typename": "CaseEdge"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"node": {
|
|
47
|
+
"Id": "500x0000002GPPBAA4",
|
|
48
|
+
"CaseNumber": {
|
|
49
|
+
"value": "00001006",
|
|
50
|
+
"__typename": "StringValue",
|
|
51
|
+
"displayValue": null
|
|
52
|
+
},
|
|
53
|
+
"__typename": "Case",
|
|
54
|
+
"DisplayValue": "00001006",
|
|
55
|
+
"ApiName": "Case",
|
|
56
|
+
"WeakEtag": 1460411915000,
|
|
57
|
+
"LastModifiedById": {
|
|
58
|
+
"__typename": "IDValue",
|
|
59
|
+
"value": "005x0000000xNhqAAE",
|
|
60
|
+
"displayValue": null
|
|
61
|
+
},
|
|
62
|
+
"LastModifiedDate": {
|
|
63
|
+
"__typename": "DateTimeValue",
|
|
64
|
+
"value": "2016-04-11T21:58:35.000Z",
|
|
65
|
+
"displayValue": "4/11/2016, 2:58 PM"
|
|
66
|
+
},
|
|
67
|
+
"SystemModstamp": {
|
|
68
|
+
"__typename": "DateTimeValue",
|
|
69
|
+
"value": "2016-04-11T21:58:35.000Z",
|
|
70
|
+
"displayValue": "4/11/2016, 2:58 PM"
|
|
71
|
+
},
|
|
72
|
+
"ldsRecordTypeId": {
|
|
73
|
+
"__typename": "IDValue",
|
|
74
|
+
"value": "012000000000000AAA",
|
|
75
|
+
"displayValue": null
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"cursor": "djE6MQ==",
|
|
79
|
+
"__typename": "CaseEdge"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"__typename": "CaseConnection",
|
|
83
|
+
"pageInfo": {
|
|
84
|
+
"hasNextPage": true,
|
|
85
|
+
"endCursor": "djE6MQ==",
|
|
86
|
+
"startCursor": "djE6MA==",
|
|
87
|
+
"__typename": "PageInfo"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"__typename": "RecordQuery"
|
|
91
|
+
},
|
|
92
|
+
"__typename": "UIAPI"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"errors": []
|
|
96
|
+
}
|
|
97
|
+
}
|