@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.
Files changed (120) hide show
  1. package/LICENSE.txt +82 -0
  2. package/README.md +9 -0
  3. package/dist/sfdc/es/ldsWorkerApi.js +1374 -0
  4. package/dist/sfdc/es/types/cachePurging.d.ts +50 -0
  5. package/dist/sfdc/es/types/customLuvioAdapter.d.ts +13 -0
  6. package/dist/sfdc/es/types/customOneStoreAdapter.d.ts +21 -0
  7. package/dist/sfdc/es/types/draftQueueImplementation.d.ts +2 -0
  8. package/dist/sfdc/es/types/executeAdapter.d.ts +103 -0
  9. package/dist/sfdc/es/types/language.d.ts +13 -0
  10. package/dist/sfdc/es/types/lightningAdapterApi.d.ts +15 -0
  11. package/dist/sfdc/es/types/main.d.ts +11 -0
  12. package/dist/sfdc/es/types/nimbusDraftQueue.d.ts +6 -0
  13. package/dist/sfdc/es/types/primingApi.d.ts +25 -0
  14. package/dist/sfdc/es/types/responses.d.ts +44 -0
  15. package/dist/sfdc/es/types/standalone-stubs/instrumentation.d.ts +21 -0
  16. package/dist/sfdc/es/types/standalone-stubs/o11y.d.ts +23 -0
  17. package/dist/sfdc/es/types/standalone-stubs/unwrap.d.ts +1 -0
  18. package/dist/sfdc/es/types/standalone.d.ts +1 -0
  19. package/dist/sfdc/es/types/ttl.d.ts +2 -0
  20. package/dist/standalone/es/lds-worker-api.js +134127 -0
  21. package/dist/standalone/es/types/cachePurging.d.ts +50 -0
  22. package/dist/standalone/es/types/customLuvioAdapter.d.ts +13 -0
  23. package/dist/standalone/es/types/customOneStoreAdapter.d.ts +21 -0
  24. package/dist/standalone/es/types/draftQueueImplementation.d.ts +2 -0
  25. package/dist/standalone/es/types/executeAdapter.d.ts +103 -0
  26. package/dist/standalone/es/types/language.d.ts +13 -0
  27. package/dist/standalone/es/types/lightningAdapterApi.d.ts +15 -0
  28. package/dist/standalone/es/types/main.d.ts +11 -0
  29. package/dist/standalone/es/types/nimbusDraftQueue.d.ts +6 -0
  30. package/dist/standalone/es/types/primingApi.d.ts +25 -0
  31. package/dist/standalone/es/types/responses.d.ts +44 -0
  32. package/dist/standalone/es/types/standalone-stubs/instrumentation.d.ts +21 -0
  33. package/dist/standalone/es/types/standalone-stubs/o11y.d.ts +23 -0
  34. package/dist/standalone/es/types/standalone-stubs/unwrap.d.ts +1 -0
  35. package/dist/standalone/es/types/standalone.d.ts +1 -0
  36. package/dist/standalone/es/types/ttl.d.ts +2 -0
  37. package/dist/standalone/umd/lds-worker-api.js +134154 -0
  38. package/dist/standalone/umd/types/cachePurging.d.ts +50 -0
  39. package/dist/standalone/umd/types/customLuvioAdapter.d.ts +13 -0
  40. package/dist/standalone/umd/types/customOneStoreAdapter.d.ts +21 -0
  41. package/dist/standalone/umd/types/draftQueueImplementation.d.ts +2 -0
  42. package/dist/standalone/umd/types/executeAdapter.d.ts +103 -0
  43. package/dist/standalone/umd/types/language.d.ts +13 -0
  44. package/dist/standalone/umd/types/lightningAdapterApi.d.ts +15 -0
  45. package/dist/standalone/umd/types/main.d.ts +11 -0
  46. package/dist/standalone/umd/types/nimbusDraftQueue.d.ts +6 -0
  47. package/dist/standalone/umd/types/primingApi.d.ts +25 -0
  48. package/dist/standalone/umd/types/responses.d.ts +44 -0
  49. package/dist/standalone/umd/types/standalone-stubs/instrumentation.d.ts +21 -0
  50. package/dist/standalone/umd/types/standalone-stubs/o11y.d.ts +23 -0
  51. package/dist/standalone/umd/types/standalone-stubs/unwrap.d.ts +1 -0
  52. package/dist/standalone/umd/types/standalone.d.ts +1 -0
  53. package/dist/standalone/umd/types/ttl.d.ts +2 -0
  54. package/package.json +78 -0
  55. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/adapter-testcase.schema.json +83 -0
  56. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/name-displayValue-response.adapter-snapshot.result.json +61 -0
  57. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/name-displayValue.adapter-testcase.json +67 -0
  58. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/objectInfos/Aircraft-objectInfo.network-mock.json +582 -0
  59. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/objectInfos/Pilot-objectInfo.network-mock.json +367 -0
  60. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/scalar-displayValue-nonIntl-fallback-response.adapter-snapshot.result.json +90 -0
  61. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/scalar-displayValue-nonIntl-fallback.adapter-testcase.json +25 -0
  62. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/scalar-displayValue-response.adapter-snapshot.result.json +90 -0
  63. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/scalar-displayValue.adapter-testcase.json +24 -0
  64. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-assignedtome.adapter-testcase.json +37 -0
  65. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-baseline.adapter-testcase.json +27 -0
  66. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-child-relationship.adapter-testcase.json +32 -0
  67. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-parent-relationship.adapter-testcase.json +32 -0
  68. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-reserved-entity-name.adapter-testcase.json +28 -0
  69. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/assignedtome.adapter-testcase.json +36 -0
  70. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/date-predicate.adapter-testcase.json +26 -0
  71. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/graphql-get-errors.adapter-testcase.json +26 -0
  72. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/l2DataSet.js +252 -0
  73. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/legacy/getTimeSheetEntry-baseline.adapter-testcase.json +21 -0
  74. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/legacy/getTimeSheetEntry-where-orderby-allfields-spanningfield-500records.adapter-testcase.json +28 -0
  75. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/legacy/getTimeSheetEntry-where-orderby-allfields-spanningfield.adapter-testcase.json +28 -0
  76. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/legacy/getTimeSheetEntry-where-orderby-allfields.adapter-testcase.json +21 -0
  77. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/legacy/getTimeSheetEntry-where-orderby.adapter-testcase.json +21 -0
  78. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/legacy/getTimeSheetEntry-where.adapter-testcase.json +21 -0
  79. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/multiple-recordquery.adapter-testcase.json +31 -0
  80. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/Account.network-mock.json +2920 -0
  81. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/AssignedResource.network-mock.json +928 -0
  82. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/Case.network-mock.json +2008 -0
  83. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/ServiceAppointment.network-mock.json +3123 -0
  84. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/ServiceResource.network-mock.json +1412 -0
  85. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/TimeSheetEntry.network-mock.json +1027 -0
  86. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/User.network-mock.json +7031 -0
  87. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/WorkOrder.network-mock.json +3216 -0
  88. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/WorkType.network-mock.json +986 -0
  89. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectinfo.adapter-testcase.json +21 -0
  90. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/polyfield.adapter-testcase.json +46 -0
  91. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/polyquery-and-operator.adapter-testcase.json +31 -0
  92. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/adapter-forward-baseline.server-response.network-mock.json +416 -0
  93. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/adapter-forward-child-relationship.server-response.network-mock.json +103 -0
  94. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/adapter-forward-parent-relationship.server-response.network-mock.json +93 -0
  95. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/adapter-forward-reserved-entity-name.server-response.network-mock.json +97 -0
  96. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/assignedtome.server-response.network-mock.json +666 -0
  97. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/date-predicate.server-response.network-mock.json +56 -0
  98. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/graphql-get-errors.server-response.network-mock.json +19 -0
  99. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/multiple-recordquery.server-response.network-mock.json +201 -0
  100. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/objectinfos.server-response.network-mock.json +210 -0
  101. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/polyfield.server-response.network-mock.json +724 -0
  102. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/polyquery-and-operator.server-response.network-mock.json +103 -0
  103. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/adapter-forward-assignedtome.adapter-snapshot.result.json +72 -0
  104. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/adapter-forward-baseline.adapter-snapshot.result.json +245 -0
  105. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/adapter-forward-child-relationship.adapter-snapshot.result.json +30 -0
  106. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/adapter-forward-parent-relationship.adapter-snapshot.result.json +26 -0
  107. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/adapter-forward-reserved-entity-name.adapter-snapshot.result.json +32 -0
  108. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/assignedtome.adapter-snapshot.result.json +70 -0
  109. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/date-predicate.adapter-snapshot.result.json +18 -0
  110. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/graphql-get-errors.adapter-snapshot.result.json +16 -0
  111. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/multiple-recordquery.adapter-snapshot.result.json +53 -0
  112. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/objectinfos.adapter-snapshot.result.json +170 -0
  113. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/polyfield.adapter-snapshot.result.json +29 -0
  114. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/polyquery-and-operator.adapter-snapshot.result.json +23 -0
  115. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/metadataVersion/adapter-snapshot.result.json +9 -0
  116. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/metadataVersion/old-metadata-fails-cache-only-adapter-call.adapter-testcase.json +16 -0
  117. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/metadataVersion/old-metadata-fails-cache-only-adapter-call.l2DataSet.tsv +2 -0
  118. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/metadataVersion/old-version-fails-cache-only-adapter-call.adapter-testcase.json +16 -0
  119. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/metadataVersion/old-version-fails-cache-only-adapter-call.l2DataSet.tsv +2 -0
  120. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/network-mock.schema.json +14 -0
@@ -0,0 +1,367 @@
1
+ {
2
+ "body": {
3
+ "apiName": "Pilot",
4
+ "associateEntityType": null,
5
+ "associateParentEntity": null,
6
+ "childRelationships": [],
7
+ "compactLayoutable": true,
8
+ "createable": true,
9
+ "custom": false,
10
+ "defaultRecordTypeId": "012000000000000AAA",
11
+ "deletable": false,
12
+ "dependentFields": {},
13
+ "eTag": "bc958a32268f93e2105e47efb7f14c00",
14
+ "feedEnabled": true,
15
+ "fields": {
16
+ "CreatedById": {
17
+ "apiName": "CreatedById",
18
+ "calculated": false,
19
+ "compound": false,
20
+ "compoundComponentName": null,
21
+ "compoundFieldName": null,
22
+ "controllerName": null,
23
+ "controllingFields": [],
24
+ "createable": false,
25
+ "custom": false,
26
+ "dataType": "Reference",
27
+ "externalId": false,
28
+ "extraTypeInfo": null,
29
+ "filterable": true,
30
+ "filteredLookupInfo": null,
31
+ "highScaleNumber": false,
32
+ "htmlFormatted": false,
33
+ "inlineHelpText": null,
34
+ "label": "Created By ID",
35
+ "length": 18,
36
+ "maskType": null,
37
+ "nameField": false,
38
+ "polymorphicForeignKey": false,
39
+ "precision": 0,
40
+ "reference": true,
41
+ "referenceTargetField": null,
42
+ "referenceToInfos": [
43
+ {
44
+ "apiName": "User",
45
+ "nameFields": ["FirstName", "LastName", "Name"]
46
+ }
47
+ ],
48
+ "relationshipName": "CreatedBy",
49
+ "required": true,
50
+ "scale": 0,
51
+ "searchPrefilterable": false,
52
+ "sortable": true,
53
+ "unique": false,
54
+ "updateable": false
55
+ },
56
+ "CreatedDate": {
57
+ "apiName": "CreatedDate",
58
+ "calculated": false,
59
+ "compound": false,
60
+ "compoundComponentName": null,
61
+ "compoundFieldName": null,
62
+ "controllerName": null,
63
+ "controllingFields": [],
64
+ "createable": false,
65
+ "custom": false,
66
+ "dataType": "DateTime",
67
+ "externalId": false,
68
+ "extraTypeInfo": null,
69
+ "filterable": true,
70
+ "filteredLookupInfo": null,
71
+ "highScaleNumber": false,
72
+ "htmlFormatted": false,
73
+ "inlineHelpText": null,
74
+ "label": "Created Date",
75
+ "length": 0,
76
+ "maskType": null,
77
+ "nameField": false,
78
+ "polymorphicForeignKey": false,
79
+ "precision": 0,
80
+ "reference": false,
81
+ "referenceTargetField": null,
82
+ "referenceToInfos": [],
83
+ "relationshipName": null,
84
+ "required": true,
85
+ "scale": 0,
86
+ "searchPrefilterable": false,
87
+ "sortable": true,
88
+ "unique": false,
89
+ "updateable": false
90
+ },
91
+ "FirstName": {
92
+ "apiName": "FirstName",
93
+ "calculated": false,
94
+ "compound": false,
95
+ "compoundComponentName": "FirstName",
96
+ "compoundFieldName": "Name",
97
+ "controllerName": null,
98
+ "controllingFields": [],
99
+ "createable": true,
100
+ "custom": false,
101
+ "dataType": "String",
102
+ "externalId": false,
103
+ "extraTypeInfo": "PersonName",
104
+ "filterable": true,
105
+ "filteredLookupInfo": null,
106
+ "highScaleNumber": false,
107
+ "htmlFormatted": false,
108
+ "inlineHelpText": null,
109
+ "label": "First Name",
110
+ "length": 40,
111
+ "maskType": null,
112
+ "nameField": false,
113
+ "polymorphicForeignKey": false,
114
+ "precision": 0,
115
+ "reference": false,
116
+ "referenceTargetField": null,
117
+ "referenceToInfos": [],
118
+ "relationshipName": null,
119
+ "required": false,
120
+ "scale": 0,
121
+ "searchPrefilterable": false,
122
+ "sortable": true,
123
+ "unique": false,
124
+ "updateable": true
125
+ },
126
+ "Id": {
127
+ "apiName": "Id",
128
+ "calculated": false,
129
+ "compound": false,
130
+ "compoundComponentName": null,
131
+ "compoundFieldName": null,
132
+ "controllerName": null,
133
+ "controllingFields": [],
134
+ "createable": false,
135
+ "custom": false,
136
+ "dataType": "String",
137
+ "externalId": false,
138
+ "extraTypeInfo": null,
139
+ "filterable": true,
140
+ "filteredLookupInfo": null,
141
+ "highScaleNumber": false,
142
+ "htmlFormatted": false,
143
+ "inlineHelpText": null,
144
+ "label": "Pilot ID",
145
+ "length": 18,
146
+ "maskType": null,
147
+ "nameField": false,
148
+ "polymorphicForeignKey": false,
149
+ "precision": 0,
150
+ "reference": false,
151
+ "referenceTargetField": null,
152
+ "referenceToInfos": [],
153
+ "relationshipName": null,
154
+ "required": true,
155
+ "scale": 0,
156
+ "searchPrefilterable": false,
157
+ "sortable": true,
158
+ "unique": false,
159
+ "updateable": false
160
+ },
161
+ "LastModifiedById": {
162
+ "apiName": "LastModifiedById",
163
+ "calculated": false,
164
+ "compound": false,
165
+ "compoundComponentName": null,
166
+ "compoundFieldName": null,
167
+ "controllerName": null,
168
+ "controllingFields": [],
169
+ "createable": false,
170
+ "custom": false,
171
+ "dataType": "Reference",
172
+ "externalId": false,
173
+ "extraTypeInfo": null,
174
+ "filterable": true,
175
+ "filteredLookupInfo": null,
176
+ "highScaleNumber": false,
177
+ "htmlFormatted": false,
178
+ "inlineHelpText": null,
179
+ "label": "Last Modified By ID",
180
+ "length": 18,
181
+ "maskType": null,
182
+ "nameField": false,
183
+ "polymorphicForeignKey": false,
184
+ "precision": 0,
185
+ "reference": true,
186
+ "referenceTargetField": null,
187
+ "referenceToInfos": [
188
+ {
189
+ "apiName": "User",
190
+ "nameFields": ["FirstName", "LastName", "Name"]
191
+ }
192
+ ],
193
+ "relationshipName": "LastModifiedBy",
194
+ "required": true,
195
+ "scale": 0,
196
+ "searchPrefilterable": false,
197
+ "sortable": true,
198
+ "unique": false,
199
+ "updateable": false
200
+ },
201
+ "LastModifiedDate": {
202
+ "apiName": "LastModifiedDate",
203
+ "calculated": false,
204
+ "compound": false,
205
+ "compoundComponentName": null,
206
+ "compoundFieldName": null,
207
+ "controllerName": null,
208
+ "controllingFields": [],
209
+ "createable": false,
210
+ "custom": false,
211
+ "dataType": "DateTime",
212
+ "externalId": false,
213
+ "extraTypeInfo": null,
214
+ "filterable": true,
215
+ "filteredLookupInfo": null,
216
+ "highScaleNumber": false,
217
+ "htmlFormatted": false,
218
+ "inlineHelpText": null,
219
+ "label": "Last Modified Date",
220
+ "length": 0,
221
+ "maskType": null,
222
+ "nameField": false,
223
+ "polymorphicForeignKey": false,
224
+ "precision": 0,
225
+ "reference": false,
226
+ "referenceTargetField": null,
227
+ "referenceToInfos": [],
228
+ "relationshipName": null,
229
+ "required": true,
230
+ "scale": 0,
231
+ "searchPrefilterable": false,
232
+ "sortable": true,
233
+ "unique": false,
234
+ "updateable": false
235
+ },
236
+ "LastName": {
237
+ "apiName": "LastName",
238
+ "calculated": false,
239
+ "compound": false,
240
+ "compoundComponentName": "LastName",
241
+ "compoundFieldName": "Name",
242
+ "controllerName": null,
243
+ "controllingFields": [],
244
+ "createable": true,
245
+ "custom": false,
246
+ "dataType": "String",
247
+ "externalId": false,
248
+ "extraTypeInfo": "PersonName",
249
+ "filterable": true,
250
+ "filteredLookupInfo": null,
251
+ "highScaleNumber": false,
252
+ "htmlFormatted": false,
253
+ "inlineHelpText": null,
254
+ "label": "Last Name",
255
+ "length": 80,
256
+ "maskType": null,
257
+ "nameField": false,
258
+ "polymorphicForeignKey": false,
259
+ "precision": 0,
260
+ "reference": false,
261
+ "referenceTargetField": null,
262
+ "referenceToInfos": [],
263
+ "relationshipName": null,
264
+ "required": true,
265
+ "scale": 0,
266
+ "searchPrefilterable": false,
267
+ "sortable": true,
268
+ "unique": false,
269
+ "updateable": true
270
+ },
271
+ "Name": {
272
+ "apiName": "Name",
273
+ "calculated": false,
274
+ "compound": true,
275
+ "compoundComponentName": null,
276
+ "compoundFieldName": null,
277
+ "controllerName": null,
278
+ "controllingFields": [],
279
+ "createable": false,
280
+ "custom": false,
281
+ "dataType": "String",
282
+ "externalId": false,
283
+ "extraTypeInfo": "PersonName",
284
+ "filterable": true,
285
+ "filteredLookupInfo": null,
286
+ "highScaleNumber": false,
287
+ "htmlFormatted": false,
288
+ "inlineHelpText": null,
289
+ "label": "Full Name",
290
+ "length": 121,
291
+ "maskType": null,
292
+ "nameField": true,
293
+ "polymorphicForeignKey": false,
294
+ "precision": 0,
295
+ "reference": false,
296
+ "referenceTargetField": null,
297
+ "referenceToInfos": [],
298
+ "relationshipName": null,
299
+ "required": true,
300
+ "scale": 0,
301
+ "searchPrefilterable": false,
302
+ "sortable": true,
303
+ "unique": false,
304
+ "updateable": false
305
+ },
306
+ "SystemModstamp": {
307
+ "apiName": "SystemModstamp",
308
+ "calculated": false,
309
+ "compound": false,
310
+ "compoundComponentName": null,
311
+ "compoundFieldName": null,
312
+ "controllerName": null,
313
+ "controllingFields": [],
314
+ "createable": false,
315
+ "custom": false,
316
+ "dataType": "DateTime",
317
+ "externalId": false,
318
+ "extraTypeInfo": null,
319
+ "filterable": true,
320
+ "filteredLookupInfo": null,
321
+ "highScaleNumber": false,
322
+ "htmlFormatted": false,
323
+ "inlineHelpText": null,
324
+ "label": "System Modstamp",
325
+ "length": 0,
326
+ "maskType": null,
327
+ "nameField": false,
328
+ "polymorphicForeignKey": false,
329
+ "precision": 0,
330
+ "reference": false,
331
+ "referenceTargetField": null,
332
+ "referenceToInfos": [],
333
+ "relationshipName": null,
334
+ "required": true,
335
+ "scale": 0,
336
+ "searchPrefilterable": false,
337
+ "sortable": true,
338
+ "unique": false,
339
+ "updateable": false
340
+ }
341
+ },
342
+ "keyPrefix": "a01",
343
+ "label": "Pilot",
344
+ "labelPlural": "Pilots",
345
+ "layoutable": true,
346
+ "mruEnabled": true,
347
+ "nameFields": ["FirstName", "LastName", "Name"],
348
+ "queryable": true,
349
+ "recordTypeInfos": {
350
+ "012000000000000AAA": {
351
+ "available": true,
352
+ "defaultRecordTypeMapping": true,
353
+ "master": true,
354
+ "name": "Master",
355
+ "recordTypeId": "012000000000000AAA"
356
+ }
357
+ },
358
+ "searchLayoutable": true,
359
+ "searchable": true,
360
+ "themeInfo": {
361
+ "color": "65CAE4",
362
+ "iconUrl": "https://corsa04-basic-2015684969.vpod.t.force.com/img/icon/t4v35/standard/user_120.png"
363
+ },
364
+ "updateable": true
365
+ },
366
+ "status": 200
367
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "data": {
3
+ "apiName": "Aircraft",
4
+ "childRelationships": {},
5
+ "fields": {
6
+ "Name": {
7
+ "displayValue": null,
8
+ "value": "Boeing 737 9765"
9
+ },
10
+ "Price": {
11
+ "displayValue": "1500000.01",
12
+ "value": 1500000.01
13
+ },
14
+ "ManufacturedDate": {
15
+ "displayValue": "2021-10-11",
16
+ "value": "2021-10-11"
17
+ },
18
+ "LastServiceDateTime": {
19
+ "displayValue": "2021-10-11T06:53:20.000Z",
20
+ "value": "2021-10-11T06:53:20.000Z"
21
+ },
22
+ "LastFlightTime": {
23
+ "displayValue": "12:45:30",
24
+ "value": "12:45:30"
25
+ },
26
+ "CreatedById": {
27
+ "displayValue": null,
28
+ "value": "005B0000000GR4OIAW"
29
+ },
30
+ "CreatedDate": {
31
+ "displayValue": null,
32
+ "value": "2020-01-01T00:00:00.000Z"
33
+ },
34
+ "LastModifiedById": {
35
+ "displayValue": null,
36
+ "value": "005B0000000GR4OIAW"
37
+ },
38
+ "LastModifiedDate": {
39
+ "displayValue": null,
40
+ "value": "2020-01-01T00:00:00.000Z"
41
+ },
42
+ "OwnerId": {
43
+ "displayValue": null,
44
+ "value": "005B0000000GR4OIAW"
45
+ },
46
+ "Id": {
47
+ "displayValue": null,
48
+ "value": "a0w0GR4ORmHKPlAQNX"
49
+ },
50
+ "IsDeleted": {
51
+ "displayValue": null,
52
+ "value": null
53
+ },
54
+ "IsLocked": {
55
+ "displayValue": null,
56
+ "value": null
57
+ },
58
+ "LastFaultDateTime": {
59
+ "displayValue": null,
60
+ "value": null
61
+ },
62
+ "LastFliedBy": {
63
+ "displayValue": null,
64
+ "value": null
65
+ },
66
+ "LastFliedById": {
67
+ "displayValue": null,
68
+ "value": null
69
+ },
70
+ "SystemModstamp": {
71
+ "displayValue": null,
72
+ "value": null
73
+ }
74
+ },
75
+ "id": "a0w0GR4ORmHKPlAQNX",
76
+ "lastModifiedById": "005B0000000GR4OIAW",
77
+ "lastModifiedDate": "2020-01-01T00:00:00.000Z",
78
+ "recordTypeId": "012000000000000AAA",
79
+ "recordTypeInfo": null,
80
+ "systemModstamp": "2020-01-01T00:00:00.000Z",
81
+ "drafts": {
82
+ "created": true,
83
+ "edited": false,
84
+ "deleted": false,
85
+ "serverValues": {},
86
+ "draftActionIds": ["157783680000000"],
87
+ "latestDraftActionId": "157783680000000"
88
+ }
89
+ }
90
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "beforeJS": "globalThis.backupIntl = globalThis.Intl; globalThis.Intl = undefined;",
3
+ "afterJS": "globalThis.Intl = globalThis.backupIntl;",
4
+ "testCaseName": "createRecord shows fallback displayValue for scalars when INTL not present",
5
+ "adapters": [
6
+ {
7
+ "name": "createRecord",
8
+ "config": {
9
+ "apiName": "Aircraft",
10
+ "fields": {
11
+ "Name": "Boeing 737 9765",
12
+ "Price": 1500000.01,
13
+ "ManufacturedDate": "2021-10-11",
14
+ "LastServiceDateTime": "2021-10-11T06:53:20.000Z",
15
+ "LastFlightTime": "12:45:30"
16
+ }
17
+ },
18
+ "expectedResult": "./adapter-testcases/createRecord/scalar-displayValue-nonIntl-fallback-response.adapter-snapshot.result.json"
19
+ }
20
+ ],
21
+ "networkMocks": [
22
+ "./adapter-testcases/createRecord/objectInfos/Aircraft-objectInfo.network-mock.json"
23
+ ],
24
+ "freezeTime": true
25
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "data": {
3
+ "apiName": "Aircraft",
4
+ "childRelationships": {},
5
+ "fields": {
6
+ "Name": {
7
+ "displayValue": null,
8
+ "value": "Boeing 737 9765"
9
+ },
10
+ "Price": {
11
+ "displayValue": "formatted",
12
+ "value": 1500000.01
13
+ },
14
+ "ManufacturedDate": {
15
+ "displayValue": "formatted",
16
+ "value": "2021-10-11"
17
+ },
18
+ "LastServiceDateTime": {
19
+ "displayValue": "formatted",
20
+ "value": "2021-10-11T06:53:20.000Z"
21
+ },
22
+ "LastFaultDateTime": {
23
+ "displayValue": "formatted",
24
+ "value": "2023-03-16T18:00:00.000Z"
25
+ },
26
+ "LastFlightTime": {
27
+ "displayValue": "formatted",
28
+ "value": "12:45:30"
29
+ },
30
+ "CreatedById": {
31
+ "displayValue": null,
32
+ "value": "005B0000000GR4OIAW"
33
+ },
34
+ "CreatedDate": {
35
+ "displayValue": null,
36
+ "value": "2020-01-01T00:00:00.000Z"
37
+ },
38
+ "LastModifiedById": {
39
+ "displayValue": null,
40
+ "value": "005B0000000GR4OIAW"
41
+ },
42
+ "LastModifiedDate": {
43
+ "displayValue": null,
44
+ "value": "2020-01-01T00:00:00.000Z"
45
+ },
46
+ "OwnerId": {
47
+ "displayValue": null,
48
+ "value": "005B0000000GR4OIAW"
49
+ },
50
+ "Id": {
51
+ "displayValue": null,
52
+ "value": "a0w0GR4ORmHKPlAQNX"
53
+ },
54
+ "IsDeleted": {
55
+ "displayValue": null,
56
+ "value": null
57
+ },
58
+ "IsLocked": {
59
+ "displayValue": null,
60
+ "value": null
61
+ },
62
+ "LastFliedBy": {
63
+ "displayValue": null,
64
+ "value": null
65
+ },
66
+ "LastFliedById": {
67
+ "displayValue": null,
68
+ "value": null
69
+ },
70
+ "SystemModstamp": {
71
+ "displayValue": null,
72
+ "value": null
73
+ }
74
+ },
75
+ "id": "a0w0GR4ORmHKPlAQNX",
76
+ "lastModifiedById": "005B0000000GR4OIAW",
77
+ "lastModifiedDate": "2020-01-01T00:00:00.000Z",
78
+ "recordTypeId": "012000000000000AAA",
79
+ "recordTypeInfo": null,
80
+ "systemModstamp": "2020-01-01T00:00:00.000Z",
81
+ "drafts": {
82
+ "created": true,
83
+ "edited": false,
84
+ "deleted": false,
85
+ "serverValues": {},
86
+ "draftActionIds": ["157783680000000"],
87
+ "latestDraftActionId": "157783680000000"
88
+ }
89
+ }
90
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "testCaseName": "createRecord shows correct displayValue for scalars",
3
+ "adapters": [
4
+ {
5
+ "name": "createRecord",
6
+ "config": {
7
+ "apiName": "Aircraft",
8
+ "fields": {
9
+ "Name": "Boeing 737 9765",
10
+ "Price": 1500000.01,
11
+ "ManufacturedDate": "2021-10-11",
12
+ "LastServiceDateTime": "2021-10-11T06:53:20.000Z",
13
+ "LastFaultDateTime": "2023-03-16T18:00:00.000+0000",
14
+ "LastFlightTime": "12:45:30"
15
+ }
16
+ },
17
+ "expectedResult": "./adapter-testcases/createRecord/scalar-displayValue-response.adapter-snapshot.result.json"
18
+ }
19
+ ],
20
+ "networkMocks": [
21
+ "./adapter-testcases/createRecord/objectInfos/Aircraft-objectInfo.network-mock.json"
22
+ ],
23
+ "freezeTime": true
24
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "testCaseName": "AssignedToMe should work in adapter forwarding",
3
+ "adapters": [
4
+ {
5
+ "name": "getObjectInfo",
6
+ "config": { "objectApiName": "ServiceAppointment" }
7
+ },
8
+ {
9
+ "name": "getObjectInfo",
10
+ "config": { "objectApiName": "AssignedResource" }
11
+ },
12
+ {
13
+ "name": "getObjectInfo",
14
+ "config": { "objectApiName": "ServiceResource" }
15
+ },
16
+ {
17
+ "name": "graphQL",
18
+ "config": {
19
+ "query": "{ uiapi { query { ServiceAppointment(scope: ASSIGNEDTOME, orderBy: {SchedStartTime: {order: ASC, nulls: FIRST}}) @connection { edges { node @resource(type: \"Record\") { Id ServiceResources @connection { edges { node @resource(type: \"Record\"){ Id } } } } } } } } }",
20
+ "variables": {},
21
+ "useUiApiAdapter": true
22
+ },
23
+ "requestContext": {
24
+ "cachePolicy": { "type": "stale-while-revalidate", "staleDurationSeconds": 30 }
25
+ },
26
+ "expectedToSucceed": true,
27
+ "expectedResult": "./adapter-testcases/graphQL/snapshotdata/adapter-forward-assignedtome.adapter-snapshot.result.json"
28
+ }
29
+ ],
30
+ "networkMocks": [
31
+ "./adapter-testcases/graphQL/objectInfos/ServiceAppointment.network-mock.json",
32
+ "./adapter-testcases/graphQL/objectInfos/AssignedResource.network-mock.json",
33
+ "./adapter-testcases/graphQL/objectInfos/ServiceResource.network-mock.json",
34
+ "./adapter-testcases/graphQL/serverresponse/assignedtome.server-response.network-mock.json"
35
+ ],
36
+ "freezeTime": true
37
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "testCaseName": "legacy adapter query can be forwarded to adapter in uiapi",
3
+ "adapters": [
4
+ {
5
+ "name": "getObjectInfo",
6
+ "config": { "objectApiName": "WorkOrder" }
7
+ },
8
+ {
9
+ "name": "graphQL",
10
+ "config": {
11
+ "query": "query { uiapi { query { WorkOrder(first: 1) @connection { edges { node @resource(type: \"Record\"){ Id OwnerId { value } IsDeleted { value } WorkOrderNumber { value } RecordTypeId { value } CreatedDate { value } CreatedById { value } LastModifiedDate { value } LastModifiedById { value } SystemModstamp { value } MayEdit { value } IsLocked { value } LastViewedDate { value } LastReferencedDate { value } AccountId { value } ContactId { value } CaseId { value } EntitlementId { value } ServiceContractId { value } AssetId { value } Street { value } City { value } State { value } PostalCode { value } Country { value } Latitude { value } Longitude { value } GeocodeAccuracy { value } Description { value } StartDate { value } EndDate { value } Subject { value } RootWorkOrderId { value } Status { value } Priority { value } Tax { value } Subtotal { value } TotalPrice { value } LineItemCount { value } Pricebook2Id { value } Discount { value } GrandTotal { value } ParentWorkOrderId { value } IsClosed { value } IsStopped { value } StopStartDate { value } SlaStartDate { value } SlaExitDate { value } BusinessHoursId { value } MilestoneStatus { value } DurationInMinutes { value } DurationSource { value } WorkTypeId { value } ServiceTerritoryId { value } LocationId { value } MaintenancePlanId { value } SuggestedMaintenanceDate { value } MinimumCrewSize { value } ServiceReportTemplateId { value } IsGeneratedFromMaintenancePlan { value } ServiceReportLanguage { value } MaintenanceWorkRuleId { value } AssetWarrantyId { value } ProductServiceCampaignId { value } ProductServiceCampaignItemId { value } Work_Order_Count__c { value } External_Id__c { value } FSL__IsFillInCandidate__c { value } FSL__Prevent_Geocoding_For_Chatter_Actions__c { value } FSL__Scheduling_Priority__c { value } FSL__VisitingHours__c { value } ServiceCrewId__c { value } ServiceCrewMemberId__c { value } TimeSlotId__c { value } ProductRequiredId__c { value } Huge_Object__c { value } } } } } } }",
12
+ "variables": {},
13
+ "useUiApiAdapter": true
14
+ },
15
+ "requestContext": {
16
+ "cachePolicy": { "type": "stale-while-revalidate", "staleDurationSeconds": 30 }
17
+ },
18
+ "expectedToSucceed": true,
19
+ "expectedResult": "./adapter-testcases/graphQL/snapshotdata/adapter-forward-baseline.adapter-snapshot.result.json"
20
+ }
21
+ ],
22
+ "networkMocks": [
23
+ "./adapter-testcases/graphQL/objectInfos/WorkOrder.network-mock.json",
24
+ "./adapter-testcases/graphQL/serverresponse/adapter-forward-baseline.server-response.network-mock.json"
25
+ ],
26
+ "freezeTime": true
27
+ }