@salesforce/lds-adapters-uiapi 1.294.0 → 1.296.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.
|
@@ -54965,11 +54965,23 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
|
54965
54965
|
return config;
|
|
54966
54966
|
}
|
|
54967
54967
|
|
|
54968
|
+
const ISO8601_DATE_REGEX = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z$/;
|
|
54968
54969
|
function getHeaders(clientOptions) {
|
|
54969
54970
|
const headers = {};
|
|
54970
54971
|
if (untrustedIsObject(clientOptions)) {
|
|
54971
54972
|
if (typeof clientOptions.ifUnmodifiedSince === 'string') {
|
|
54972
54973
|
headers.ifUnmodifiedSince = clientOptions.ifUnmodifiedSince;
|
|
54974
|
+
// HTTP standard format date is expected by UI-API
|
|
54975
|
+
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since
|
|
54976
|
+
// A component built for Connect API must use If-Unmodified-Since
|
|
54977
|
+
// dates formatted as ISO 8601, which does not match the HTTP spec.
|
|
54978
|
+
// For compatibility, convert the date to match the standard.
|
|
54979
|
+
if (headers.ifUnmodifiedSince.match(ISO8601_DATE_REGEX)) {
|
|
54980
|
+
const utcString = new Date(headers.ifUnmodifiedSince).toUTCString();
|
|
54981
|
+
if (utcString !== 'Invalid Date') {
|
|
54982
|
+
headers.ifUnmodifiedSince = utcString;
|
|
54983
|
+
}
|
|
54984
|
+
}
|
|
54973
54985
|
}
|
|
54974
54986
|
}
|
|
54975
54987
|
return headers;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-uiapi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.296.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Wire adapters for record related UI API endpoints",
|
|
6
6
|
"main": "dist/es/es2018/uiapi-records-service.js",
|
|
@@ -61,21 +61,21 @@
|
|
|
61
61
|
"artifacts": {
|
|
62
62
|
"graphqlAdapters.js": {
|
|
63
63
|
"output": {
|
|
64
|
-
"path": "ui-
|
|
64
|
+
"path": "ui-bridge-components/modules/native/ldsAdaptersUiapiMobileGraphql/ldsAdaptersUiapiMobileGraphql.js"
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@salesforce/lds-bindings": "^1.
|
|
72
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
71
|
+
"@salesforce/lds-bindings": "^1.296.0",
|
|
72
|
+
"@salesforce/lds-default-luvio": "^1.296.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@databases/sqlite": "^3.0.0",
|
|
76
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
77
|
-
"@salesforce/lds-jest": "^1.
|
|
78
|
-
"@salesforce/lds-store-binary": "^1.
|
|
76
|
+
"@salesforce/lds-compiler-plugins": "^1.296.0",
|
|
77
|
+
"@salesforce/lds-jest": "^1.296.0",
|
|
78
|
+
"@salesforce/lds-store-binary": "^1.296.0"
|
|
79
79
|
},
|
|
80
80
|
"luvioBundlesize": [
|
|
81
81
|
{
|
package/sfdc/graphqlAdapters.js
CHANGED
|
@@ -19749,4 +19749,4 @@ register({
|
|
|
19749
19749
|
});
|
|
19750
19750
|
|
|
19751
19751
|
export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
|
|
19752
|
-
// version: 1.
|
|
19752
|
+
// version: 1.296.0-b5e933418
|
package/sfdc/index.js
CHANGED
|
@@ -35946,11 +35946,23 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
|
35946
35946
|
return config;
|
|
35947
35947
|
}
|
|
35948
35948
|
|
|
35949
|
+
const ISO8601_DATE_REGEX = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z$/;
|
|
35949
35950
|
function getHeaders(clientOptions) {
|
|
35950
35951
|
const headers = {};
|
|
35951
35952
|
if (untrustedIsObject(clientOptions)) {
|
|
35952
35953
|
if (typeof clientOptions.ifUnmodifiedSince === 'string') {
|
|
35953
35954
|
headers.ifUnmodifiedSince = clientOptions.ifUnmodifiedSince;
|
|
35955
|
+
// HTTP standard format date is expected by UI-API
|
|
35956
|
+
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since
|
|
35957
|
+
// A component built for Connect API must use If-Unmodified-Since
|
|
35958
|
+
// dates formatted as ISO 8601, which does not match the HTTP spec.
|
|
35959
|
+
// For compatibility, convert the date to match the standard.
|
|
35960
|
+
if (headers.ifUnmodifiedSince.match(ISO8601_DATE_REGEX)) {
|
|
35961
|
+
const utcString = new Date(headers.ifUnmodifiedSince).toUTCString();
|
|
35962
|
+
if (utcString !== 'Invalid Date') {
|
|
35963
|
+
headers.ifUnmodifiedSince = utcString;
|
|
35964
|
+
}
|
|
35965
|
+
}
|
|
35954
35966
|
}
|
|
35955
35967
|
}
|
|
35956
35968
|
return headers;
|
|
@@ -37111,4 +37123,4 @@ withDefaultLuvio((luvio) => {
|
|
|
37111
37123
|
});
|
|
37112
37124
|
|
|
37113
37125
|
export { API_NAMESPACE, InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$I as ObjectInfoDirectoryEntryRepresentationType, RepresentationType$N as ObjectInfoRepresentationType, RECORD_FIELDS_KEY_JUNCTION, RECORD_ID_PREFIX, RECORD_REPRESENTATION_NAME, RECORD_VIEW_ENTITY_ID_PREFIX, RECORD_VIEW_ENTITY_REPRESENTATION_NAME, RepresentationType$U as RecordRepresentationRepresentationType, TTL$y as RecordRepresentationTTL, RepresentationType$U as RecordRepresentationType, VERSION$1a as RecordRepresentationVersion, keyPrefix as UiApiNamespace, buildRecordRepKeyFromId, getFieldApiNamesArray as coerceFieldIdArray, getObjectApiName$1 as coerceObjectId, getObjectApiNamesArray as coerceObjectIdArray, configurationForRestAdapters as configuration, createContentDocumentAndVersion, createContentVersion, createIngestRecordWithFields, createLDSAdapterWithPrediction, createListInfo, createRecord, createRelatedListAdapterWithPrediction, deleteListInfo, deleteRecord, executeBatchRecordOperations, extractRecordIdFromStoreKey, getActionOverrides, getActionOverrides_imperative, getAllApps, getAllApps_imperative, getAppDetails, getAppDetails_imperative, getDuplicateConfiguration, getDuplicateConfiguration_imperative, getDuplicates, getDuplicates_imperative, getFlexipageFormulaOverrides, getFlexipageFormulaOverrides_imperative, getGlobalActions, getGlobalActions_imperative, getKeywordSearchResults, getKeywordSearchResults_imperative, getLayout, getLayoutUserState, getLayoutUserState_imperative, getLayout_imperative, getListInfoByName, getListInfoByName_imperative, getListInfosByName, getListInfosByName_imperative, getListInfosByObjectName, getListInfosByObjectName_imperative, getListObjectInfo, getListObjectInfo_imperative, getListPreferences, getListPreferences_imperative, getListRecordsByName, getListRecordsByName_imperative, getListUi, getListUi_imperative, getLookupActions, getLookupActions_imperative, getLookupMetadata, getLookupMetadata_imperative, getLookupRecords, getLookupRecords_imperative, getNavItems, getNavItems_imperative, getObjectCreateActions, getObjectCreateActions_imperative, getObjectInfo, getObjectInfoAdapterFactory, getObjectInfoDirectoryAdapterFactory, getObjectInfo_imperative, getObjectInfos, getObjectInfosAdapterFactory, getObjectInfos_imperative, getPathLayout, getPathLayout_imperative, getPicklistValues, getPicklistValuesByRecordType, getPicklistValuesByRecordType_imperative, getPicklistValues_imperative, getQuickActionDefaults, getQuickActionDefaults_imperative, getQuickActionLayout, getQuickActionLayout_imperative, getRecord, getRecordActions, getRecordActionsAdapterFactory, getRecordActions_imperative, factory$f as getRecordAdapterFactory, getRecordAvatars, getRecordAvatarsAdapterFactory, getRecordAvatars_imperative, getRecordCreateDefaults, getRecordCreateDefaults_imperative, getRecordEditActions, getRecordEditActions_imperative, getRecordId18, getRecordNotifyChange, getRecordTemplateClone, getRecordTemplateClone_imperative, getRecordTemplateCreate, getRecordTemplateCreate_imperative, getRecordUi, getRecordUi_imperative, getRecord_imperative, getRecords, getRecordsAdapterFactory, getRecords_imperative, getRelatedListActions, getRelatedListActions_imperative, getRelatedListCount, getRelatedListCount_imperative, getRelatedListInfo, getRelatedListInfoBatch, getRelatedListInfoBatchAdapterFactory, getRelatedListInfoBatch_imperative, getRelatedListInfo_imperative, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListPreferencesBatch_imperative, getRelatedListPreferences_imperative, getRelatedListRecordActions, getRelatedListRecordActions_imperative, getRelatedListRecords, getRelatedListRecordsAdapterFactory, getRelatedListRecordsBatch, getRelatedListRecordsBatchAdapterFactory, getRelatedListRecordsBatch_imperative, getRelatedListRecords_imperative, getRelatedListsActions, getRelatedListsActionsAdapterFactory, getRelatedListsActions_imperative, getRelatedListsCount, getRelatedListsCount_imperative, getRelatedListsInfo, getRelatedListsInfo_imperative, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadata, getSearchFilterMetadata_imperative, getSearchFilterOptions, getSearchFilterOptions_imperative, getSearchResults, getSearchResults_imperative, getTypeCacheKeys$W as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$G as ingestObjectInfo, ingest$A as ingestQuickActionExecutionRepresentation, ingest$N as ingestRecord, instrument, isStoreKeyRecordViewEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$C as keyBuilderFromTypeRecordRepresentation, keyBuilder$1V as keyBuilderObjectInfo, keyBuilder$1O as keyBuilderQuickActionExecutionRepresentation, keyBuilder$26 as keyBuilderRecord, notifyAllListInfoSummaryUpdateAvailable, notifyAllListRecordUpdateAvailable, notifyListInfoSummaryUpdateAvailable, notifyListInfoUpdateAvailable, notifyListRecordCollectionUpdateAvailable, notifyListViewSummaryUpdateAvailable, notifyQuickActionDefaultsUpdateAvailable, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, registerPrefetcher, updateLayoutUserState, updateListInfoByName, updateListPreferences, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
37114
|
-
// version: 1.
|
|
37126
|
+
// version: 1.296.0-b5e933418
|
package/src/raml/uiapi.graphql
CHANGED
|
@@ -50,6 +50,7 @@ type StringAggregate implements FieldValue {
|
|
|
50
50
|
type Query {
|
|
51
51
|
uiapi: UIAPI!
|
|
52
52
|
setup: Setup__Setup!
|
|
53
|
+
analytics: Analytics__Analytics!
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
input EmailOperators {
|
|
@@ -1518,6 +1519,54 @@ type RecordQuery {
|
|
|
1518
1519
|
recordQuery(first: Int, after: String, where: RecordFilter, orderBy: RecordOrderBy, scope: String, upperBound: Int): RecordConnection @fieldCategory
|
|
1519
1520
|
}
|
|
1520
1521
|
|
|
1522
|
+
# add browse family schema
|
|
1523
|
+
type Analytics__Analytics {
|
|
1524
|
+
browse(orderBy: Analytics__AnalyticsOrderBy): Analytics__AnalyticsBrowse!
|
|
1525
|
+
# Add other fields here if needed
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
type Analytics__AnalyticsBrowse {
|
|
1529
|
+
edges: [Analytics__AnalyticsEdge]
|
|
1530
|
+
totalCount: Int!
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
type Analytics__AnalyticsEdge {
|
|
1534
|
+
node: Analytics__AnalyticsRepresentation
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
type Analytics__AnalyticsRepresentation {
|
|
1538
|
+
MasterLabel: StringValue
|
|
1539
|
+
CreatedById: IDValue
|
|
1540
|
+
LastModifiedDate: DateTimeValue
|
|
1541
|
+
Id: ID!
|
|
1542
|
+
ApiName: String!
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
input Analytics__AnalyticsOrderBy {
|
|
1546
|
+
MasterLabel: Analytics__OrderByInput
|
|
1547
|
+
Id: Analytics__OrderByInput
|
|
1548
|
+
ApiName: Analytics__OrderByInput
|
|
1549
|
+
CreatedById: Analytics__OrderByInput
|
|
1550
|
+
LastModifiedDate: Analytics__OrderByInput
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
input Analytics__OrderByInput {
|
|
1554
|
+
MasterLabel: Analytics__OrderByEnum
|
|
1555
|
+
id: Analytics__OrderByEnum
|
|
1556
|
+
apiName: Analytics__OrderByEnum
|
|
1557
|
+
CreatedById: Analytics__OrderByEnum
|
|
1558
|
+
LastModifiedDate: Analytics__OrderByEnum
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
input Analytics__OrderByEnum {
|
|
1562
|
+
order: Analytics__SortEnumType
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
enum Analytics__SortEnumType {
|
|
1566
|
+
ASC
|
|
1567
|
+
DESC
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1521
1570
|
directive @generic on OBJECT | INTERFACE | UNION | ENUM | INPUT_OBJECT
|
|
1522
1571
|
directive @fieldCategory on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE
|
|
1523
1572
|
directive @category(name: String!) on FIELD
|