@salesforce/lds-worker-api 0.131.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/LICENSE.txt +82 -0
- package/README.md +9 -0
- package/dist/sfdc/es/draftQueueImplementation.d.ts +2 -0
- package/dist/sfdc/es/executeAdapter.d.ts +89 -0
- package/dist/sfdc/es/language.d.ts +13 -0
- package/dist/sfdc/es/ldsWorkerApi.js +761 -0
- package/dist/sfdc/es/lightningAdapterApi.d.ts +11 -0
- package/dist/sfdc/es/main.d.ts +8 -0
- package/dist/sfdc/es/nimbusDraftQueue.d.ts +6 -0
- package/dist/sfdc/es/primingApi.d.ts +23 -0
- package/dist/sfdc/es/responses.d.ts +44 -0
- package/dist/sfdc/es/standalone-stubs/instrumentation.d.ts +21 -0
- package/dist/sfdc/es/standalone-stubs/o11y.d.ts +18 -0
- package/dist/sfdc/es/standalone-stubs/unwrap.d.ts +1 -0
- package/dist/sfdc/es/standalone.d.ts +1 -0
- package/dist/sfdc/es/ttl.d.ts +2 -0
- package/dist/standalone/es/draftQueueImplementation.d.ts +2 -0
- package/dist/standalone/es/executeAdapter.d.ts +89 -0
- package/dist/standalone/es/language.d.ts +13 -0
- package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/currency.d.ts +2 -0
- package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/dateTime.shortDateFormat.d.ts +2 -0
- package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/dateTime.shortDateTimeFormat.d.ts +2 -0
- package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/dateTime.shortTimeFormat.d.ts +2 -0
- package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/locale.d.ts +2 -0
- package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/timeZone.d.ts +2 -0
- package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/@salesforce/user/Id.d.ts +2 -0
- package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/lightning/i18nCldrOptions.d.ts +2 -0
- package/dist/standalone/es/lds-runtime-mobile/src/__mocks__/lightning/i18nService.d.ts +10 -0
- package/dist/standalone/es/lds-worker-api/src/standalone-stubs/unwrap.d.ts +1 -0
- package/dist/standalone/es/lds-worker-api.js +77826 -0
- package/dist/standalone/es/lightningAdapterApi.d.ts +11 -0
- package/dist/standalone/es/main.d.ts +8 -0
- package/dist/standalone/es/nimbusDraftQueue.d.ts +6 -0
- package/dist/standalone/es/primingApi.d.ts +23 -0
- package/dist/standalone/es/responses.d.ts +44 -0
- package/dist/standalone/es/standalone-stubs/instrumentation.d.ts +21 -0
- package/dist/standalone/es/standalone-stubs/o11y.d.ts +18 -0
- package/dist/standalone/es/standalone.d.ts +1 -0
- package/dist/standalone/es/ttl.d.ts +2 -0
- package/dist/standalone/umd/draftQueueImplementation.d.ts +2 -0
- package/dist/standalone/umd/executeAdapter.d.ts +89 -0
- package/dist/standalone/umd/language.d.ts +13 -0
- package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/currency.d.ts +2 -0
- package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/dateTime.shortDateFormat.d.ts +2 -0
- package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/dateTime.shortDateTimeFormat.d.ts +2 -0
- package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/dateTime.shortTimeFormat.d.ts +2 -0
- package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/locale.d.ts +2 -0
- package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/@salesforce/i18n/timeZone.d.ts +2 -0
- package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/@salesforce/user/Id.d.ts +2 -0
- package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/lightning/i18nCldrOptions.d.ts +2 -0
- package/dist/standalone/umd/lds-runtime-mobile/src/__mocks__/lightning/i18nService.d.ts +10 -0
- package/dist/standalone/umd/lds-worker-api/src/standalone-stubs/unwrap.d.ts +1 -0
- package/dist/standalone/umd/lds-worker-api.js +77849 -0
- package/dist/standalone/umd/lightningAdapterApi.d.ts +11 -0
- package/dist/standalone/umd/main.d.ts +8 -0
- package/dist/standalone/umd/nimbusDraftQueue.d.ts +6 -0
- package/dist/standalone/umd/primingApi.d.ts +23 -0
- package/dist/standalone/umd/responses.d.ts +44 -0
- package/dist/standalone/umd/standalone-stubs/instrumentation.d.ts +21 -0
- package/dist/standalone/umd/standalone-stubs/o11y.d.ts +18 -0
- package/dist/standalone/umd/standalone.d.ts +1 -0
- package/dist/standalone/umd/ttl.d.ts +2 -0
- package/package.json +74 -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 +550 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/objectInfos/Pilot-objectInfo.network-mock.json +347 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/scalar-displayValue-nonIntl-fallback-response.adapter-snapshot.result.json +86 -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 +86 -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 +34 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-baseline.adapter-testcase.json +24 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-child-relationship.adapter-testcase.json +29 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-parent-relationship.adapter-testcase.json +29 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/adapter-forward-reserved-entity-name.adapter-testcase.json +25 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/assignedtome.adapter-testcase.json +33 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/date-predicate.adapter-testcase.json +23 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/graphql-get-errors.adapter-testcase.json +23 -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 +28 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/Account.network-mock.json +2784 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/AssignedResource.network-mock.json +863 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/Case.network-mock.json +1856 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/ServiceAppointment.network-mock.json +2888 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/ServiceResource.network-mock.json +1316 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/TimeSheetEntry.network-mock.json +977 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/User.network-mock.json +6604 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/WorkOrder.network-mock.json +3058 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/WorkType.network-mock.json +940 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectinfo.adapter-testcase.json +18 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/polyfield.adapter-testcase.json +43 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/polyquery-and-operator.adapter-testcase.json +28 -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,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"data": {
|
|
3
|
+
"uiapi": {
|
|
4
|
+
"query": {
|
|
5
|
+
"Account": {
|
|
6
|
+
"edges": [
|
|
7
|
+
{
|
|
8
|
+
"node": {
|
|
9
|
+
"Id": "001x0000004cKZHAA2",
|
|
10
|
+
"_drafts": null
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"ServiceAppointment": {
|
|
16
|
+
"edges": [
|
|
17
|
+
{
|
|
18
|
+
"node": {
|
|
19
|
+
"Id": "08px000000JOa8mAAD",
|
|
20
|
+
"AppointmentNumber": {
|
|
21
|
+
"value": "19474374"
|
|
22
|
+
},
|
|
23
|
+
"_drafts": null
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"second": {
|
|
29
|
+
"edges": [
|
|
30
|
+
{
|
|
31
|
+
"node": {
|
|
32
|
+
"Id": "08px000000JOa8mAAD",
|
|
33
|
+
"AccountId": {
|
|
34
|
+
"value": "001x0000004cKfzAAE"
|
|
35
|
+
},
|
|
36
|
+
"_drafts": null
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"node": {
|
|
41
|
+
"Id": "08px000000JOa8nAAD",
|
|
42
|
+
"AccountId": {
|
|
43
|
+
"value": "001x0000004cKfzAAE"
|
|
44
|
+
},
|
|
45
|
+
"_drafts": null
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
{
|
|
2
|
+
"data": {
|
|
3
|
+
"uiapi": {
|
|
4
|
+
"objectInfos": [
|
|
5
|
+
{
|
|
6
|
+
"ApiName": "IncludeAllDataTypes",
|
|
7
|
+
"fields": [
|
|
8
|
+
{
|
|
9
|
+
"ApiName": "ShippingLatitude",
|
|
10
|
+
"label": "Shipping Latitude",
|
|
11
|
+
"dataType": "DOUBLE",
|
|
12
|
+
"sortable": true
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"ApiName": "LastModifiedDate",
|
|
16
|
+
"label": "Last Modified Date",
|
|
17
|
+
"dataType": "DATETIME",
|
|
18
|
+
"sortable": true
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"ApiName": "ChannelProgramName",
|
|
22
|
+
"label": "Channel Program Name",
|
|
23
|
+
"dataType": "STRING",
|
|
24
|
+
"sortable": false
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"ApiName": "Industry",
|
|
28
|
+
"label": "Industry",
|
|
29
|
+
"dataType": "PICKLIST",
|
|
30
|
+
"sortable": true
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"ApiName": "CreatedById",
|
|
34
|
+
"label": "Created By ID",
|
|
35
|
+
"dataType": "REFERENCE",
|
|
36
|
+
"sortable": true
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"ApiName": "IsDeleted",
|
|
40
|
+
"label": "Deleted",
|
|
41
|
+
"dataType": "BOOLEAN",
|
|
42
|
+
"sortable": true
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"ApiName": "ShippingStreet",
|
|
46
|
+
"label": "Shipping Street",
|
|
47
|
+
"dataType": "TEXTAREA",
|
|
48
|
+
"sortable": true
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"ApiName": "AnnualRevenue",
|
|
52
|
+
"label": "Annual Revenue",
|
|
53
|
+
"dataType": "CURRENCY",
|
|
54
|
+
"sortable": true
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"ApiName": "Website",
|
|
58
|
+
"label": "Website",
|
|
59
|
+
"dataType": "URL",
|
|
60
|
+
"sortable": true
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"ApiName": "NumberOfEmployees",
|
|
64
|
+
"label": "Employees",
|
|
65
|
+
"dataType": "INT",
|
|
66
|
+
"sortable": true
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"ApiName": "BillingAddress",
|
|
70
|
+
"label": "Billing Address",
|
|
71
|
+
"dataType": "ADDRESS",
|
|
72
|
+
"sortable": false
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"ApiName": "Phone",
|
|
76
|
+
"label": "Account Phone",
|
|
77
|
+
"dataType": "PHONE",
|
|
78
|
+
"sortable": true
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"ApiName": "LastActivityDate",
|
|
82
|
+
"label": "Last Activity",
|
|
83
|
+
"dataType": "DATE",
|
|
84
|
+
"sortable": true
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
{
|
|
88
|
+
"ApiName": "SuppliedEmail",
|
|
89
|
+
"label": "Email Address",
|
|
90
|
+
"dataType": "EMAIL",
|
|
91
|
+
"sortable": true
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"ApiName": "EncryptedText_Field_1__c",
|
|
95
|
+
"label": "EncryptedText Field 1",
|
|
96
|
+
"dataType": "ENCRYPTEDSTRING",
|
|
97
|
+
"sortable": true
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"ApiName": "VersionData",
|
|
101
|
+
"label": "Version Data",
|
|
102
|
+
"dataType": "BASE64",
|
|
103
|
+
"sortable": false
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"ApiName": "JSON_Field_1__c",
|
|
107
|
+
"label": "JSON Field 1",
|
|
108
|
+
"dataType": "JSON",
|
|
109
|
+
"sortable": false
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"ApiName": "Custom_Field_1__c",
|
|
113
|
+
"label": "Custom Field 1",
|
|
114
|
+
"dataType": "LONG",
|
|
115
|
+
"sortable": true
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"ApiName": "Custom_Field_2__c",
|
|
119
|
+
"label": "Custom Field 2",
|
|
120
|
+
"dataType": "LOCATION",
|
|
121
|
+
"sortable": true
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"ApiName": "Custom_Field_3__c",
|
|
125
|
+
"label": "Custom Field 3",
|
|
126
|
+
"dataType": "MULTIPICKLIST",
|
|
127
|
+
"sortable": false
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"ApiName": "Custom_Field_4__c",
|
|
131
|
+
"label": "Custom Field 4",
|
|
132
|
+
"dataType": "COMBOBOX",
|
|
133
|
+
"sortable": false
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"ApiName": "Custom_Field_5__c",
|
|
137
|
+
"label": "Custom Field 5",
|
|
138
|
+
"dataType": "COMPLEXVALUE",
|
|
139
|
+
"sortable": false
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"ApiName": "Custom_Field_6__c",
|
|
143
|
+
"label": "Custom Field 6",
|
|
144
|
+
"dataType": "JUNCTIONIDLIST",
|
|
145
|
+
"sortable": false
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"ApiName": "Probability",
|
|
149
|
+
"label": "Probability (%)",
|
|
150
|
+
"dataType": "PERCENT",
|
|
151
|
+
"sortable": false
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"ApiName": "Flight_Time",
|
|
155
|
+
"label": "Flight Time",
|
|
156
|
+
"dataType": "TIME",
|
|
157
|
+
"sortable": false
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"ApiName": "OldValue",
|
|
161
|
+
"label": "Old Value",
|
|
162
|
+
"dataType": "ANYTYPE",
|
|
163
|
+
"sortable": true
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"data": {
|
|
3
|
+
"uiapi": {
|
|
4
|
+
"query": {
|
|
5
|
+
"ServiceAppointment": {
|
|
6
|
+
"edges": [
|
|
7
|
+
{
|
|
8
|
+
"node": {
|
|
9
|
+
"Id": "08px000000JaaA8AAJ",
|
|
10
|
+
"ParentRecord": {
|
|
11
|
+
"Id": "0WOx0000005kE9xGAE",
|
|
12
|
+
"WorkOrderNumber": {
|
|
13
|
+
"value": "07413701"
|
|
14
|
+
},
|
|
15
|
+
"WorkType": {
|
|
16
|
+
"Name": {
|
|
17
|
+
"value": "Perf Work Type-1"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"_drafts": null
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"testCaseName": "Mismatching metadata version fails the only-if-cached adapter call",
|
|
3
|
+
"l2DataSetPath": "./adapter-testcases/metadataVersion/old-metadata-fails-cache-only-adapter-call.l2DataSet.tsv",
|
|
4
|
+
"adapters": [
|
|
5
|
+
{
|
|
6
|
+
"_comment": "get object info for Pilot",
|
|
7
|
+
"name": "getObjectInfo",
|
|
8
|
+
"config": { "objectApiName": "Pilot" },
|
|
9
|
+
"requestContext": {
|
|
10
|
+
"cachePolicy": { "type": "only-if-cached" }
|
|
11
|
+
},
|
|
12
|
+
"expectedResult": "./adapter-testcases/metadataVersion/adapter-snapshot.result.json"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"freezeTime": true
|
|
16
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
key data metadata
|
|
2
|
+
UiApi::ObjectInfoRepresentation:Pilot {"apiName":"Pilot","associateEntityType":null,"associateParentEntity":null,"childRelationships":[],"createable":true,"custom":false,"defaultRecordTypeId":"012000000000000AAA","deletable":false,"dependentFields":{},"eTag":"bc958a32268f93e2105e47efb7f14c00","feedEnabled":true,"fields":{"CreatedById":{"apiName":"CreatedById","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"Reference","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Created By ID","length":18,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":true,"referenceTargetField":null,"referenceToInfos":[{"apiName":"User","nameFields":["FirstName","LastName","Name"]}],"relationshipName":"CreatedBy","required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"CreatedDate":{"apiName":"CreatedDate","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"DateTime","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Created Date","length":0,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"FirstName":{"apiName":"FirstName","calculated":false,"compound":false,"compoundComponentName":"FirstName","compoundFieldName":"Name","controllerName":null,"controllingFields":[],"createable":true,"custom":false,"dataType":"String","extraTypeInfo":"PersonName","filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"First Name","length":40,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":false,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":true},"Id":{"apiName":"Id","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"String","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Pilot ID","length":18,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"LastModifiedById":{"apiName":"LastModifiedById","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"Reference","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Last Modified By ID","length":18,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":true,"referenceTargetField":null,"referenceToInfos":[{"apiName":"User","nameFields":["FirstName","LastName","Name"]}],"relationshipName":"LastModifiedBy","required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"LastModifiedDate":{"apiName":"LastModifiedDate","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"DateTime","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Last Modified Date","length":0,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"LastName":{"apiName":"LastName","calculated":false,"compound":false,"compoundComponentName":"LastName","compoundFieldName":"Name","controllerName":null,"controllingFields":[],"createable":true,"custom":false,"dataType":"String","extraTypeInfo":"PersonName","filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Last Name","length":80,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":true},"Name":{"apiName":"Name","calculated":false,"compound":true,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"String","extraTypeInfo":"PersonName","filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Full Name","length":121,"nameField":true,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"SystemModstamp":{"apiName":"SystemModstamp","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"DateTime","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"System Modstamp","length":0,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false}},"keyPrefix":"a01","label":"Pilot","labelPlural":"Pilots","layoutable":true,"mruEnabled":true,"nameFields":["FirstName","LastName","Name"],"queryable":true,"recordTypeInfos":{"012000000000000AAA":{"available":true,"defaultRecordTypeMapping":true,"master":true,"name":"Master","recordTypeId":"012000000000000AAA"}},"searchable":true,"themeInfo":{"color":"65CAE4","iconUrl":"https://corsa04-basic-2015684969.vpod.t.force.com/img/icon/t4v35/standard/user_120.png"},"updateable":true} {"ingestionTimestamp":1577836800000,"expirationTimestamp":1577837700000,"representationName":"ObjectInfoRepresentation","namespace":"UiApi","version":"ec9370a0cd56f4769fe9ec5cd942ff30","metadataVersion":"0.100.0"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"testCaseName": "Mismatching version fails only-if-cached adapter call",
|
|
3
|
+
"l2DataSetPath": "./adapter-testcases/metadataVersion/old-version-fails-cache-only-adapter-call.l2DataSet.tsv",
|
|
4
|
+
"adapters": [
|
|
5
|
+
{
|
|
6
|
+
"_comment": "get Boeing 737 record last flied by name",
|
|
7
|
+
"name": "getObjectInfo",
|
|
8
|
+
"config": { "objectApiName": "Pilot" },
|
|
9
|
+
"requestContext": {
|
|
10
|
+
"cachePolicy": { "type": "only-if-cached" }
|
|
11
|
+
},
|
|
12
|
+
"expectedResult": "./adapter-testcases/metadataVersion/adapter-snapshot.result.json"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"freezeTime": true
|
|
16
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
key data metadata
|
|
2
|
+
UiApi::ObjectInfoRepresentation:Pilot {"apiName":"Pilot","associateEntityType":null,"associateParentEntity":null,"childRelationships":[],"createable":true,"custom":false,"defaultRecordTypeId":"012000000000000AAA","deletable":false,"dependentFields":{},"eTag":"bc958a32268f93e2105e47efb7f14c00","feedEnabled":true,"fields":{"CreatedById":{"apiName":"CreatedById","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"Reference","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Created By ID","length":18,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":true,"referenceTargetField":null,"referenceToInfos":[{"apiName":"User","nameFields":["FirstName","LastName","Name"]}],"relationshipName":"CreatedBy","required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"CreatedDate":{"apiName":"CreatedDate","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"DateTime","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Created Date","length":0,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"FirstName":{"apiName":"FirstName","calculated":false,"compound":false,"compoundComponentName":"FirstName","compoundFieldName":"Name","controllerName":null,"controllingFields":[],"createable":true,"custom":false,"dataType":"String","extraTypeInfo":"PersonName","filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"First Name","length":40,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":false,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":true},"Id":{"apiName":"Id","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"String","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Pilot ID","length":18,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"LastModifiedById":{"apiName":"LastModifiedById","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"Reference","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Last Modified By ID","length":18,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":true,"referenceTargetField":null,"referenceToInfos":[{"apiName":"User","nameFields":["FirstName","LastName","Name"]}],"relationshipName":"LastModifiedBy","required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"LastModifiedDate":{"apiName":"LastModifiedDate","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"DateTime","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Last Modified Date","length":0,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"LastName":{"apiName":"LastName","calculated":false,"compound":false,"compoundComponentName":"LastName","compoundFieldName":"Name","controllerName":null,"controllingFields":[],"createable":true,"custom":false,"dataType":"String","extraTypeInfo":"PersonName","filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Last Name","length":80,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":true},"Name":{"apiName":"Name","calculated":false,"compound":true,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"String","extraTypeInfo":"PersonName","filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"Full Name","length":121,"nameField":true,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false},"SystemModstamp":{"apiName":"SystemModstamp","calculated":false,"compound":false,"compoundComponentName":null,"compoundFieldName":null,"controllerName":null,"controllingFields":[],"createable":false,"custom":false,"dataType":"DateTime","extraTypeInfo":null,"filterable":true,"filteredLookupInfo":null,"highScaleNumber":false,"htmlFormatted":false,"inlineHelpText":null,"label":"System Modstamp","length":0,"nameField":false,"polymorphicForeignKey":false,"precision":0,"reference":false,"referenceTargetField":null,"referenceToInfos":[],"relationshipName":null,"required":true,"scale":0,"searchPrefilterable":false,"sortable":true,"unique":false,"updateable":false}},"keyPrefix":"a01","label":"Pilot","labelPlural":"Pilots","layoutable":true,"mruEnabled":true,"nameFields":["FirstName","LastName","Name"],"queryable":true,"recordTypeInfos":{"012000000000000AAA":{"available":true,"defaultRecordTypeMapping":true,"master":true,"name":"Master","recordTypeId":"012000000000000AAA"}},"searchable":true,"themeInfo":{"color":"65CAE4","iconUrl":"https://corsa04-basic-2015684969.vpod.t.force.com/img/icon/t4v35/standard/user_120.png"},"updateable":true} {"ingestionTimestamp":1577836800000,"expirationTimestamp":1577837700000,"representationName":"ObjectInfoRepresentation","namespace":"UiApi","version":"ac9370a0cd56f4769fe9ec5cd942ff30","metadataVersion":"0.111.0"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "./fixtures/adapter-testcases/network-mock.schema.json",
|
|
4
|
+
"title": "Mock Network Response",
|
|
5
|
+
"description": "A mock network response, used in adapter test cases.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"status": { "type": "number" },
|
|
9
|
+
"headers": { "type": "object", "additionalProperties": { "type": "string" } },
|
|
10
|
+
"body": { "type": ["object", "null"] }
|
|
11
|
+
},
|
|
12
|
+
"additionalProperties": false,
|
|
13
|
+
"required": ["status", "body"]
|
|
14
|
+
}
|