@salesforce/lds-adapters-uiapi 1.129.0 → 1.130.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/types/src/generated/graphql/types/type-util.d.ts +2 -1
- package/dist/es/es2018/uiapi-records-service.js +49 -10
- package/package.json +1 -1
- package/sfdc/graphqlAdapters.js +50 -11
- package/sfdc/index.js +1 -1
- package/sfdc/uiapi-static-functions.js +1 -1
- package/src/raml/api.raml +51 -50
- package/dist/es/es2018/types/src/generated/resources/getUiApiActionsRecordRelatedListBatchByRecordIds.d.ts +0 -30
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StoreLink as $64$luvio_engine_StoreLink, IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, SelectionPropertyKey as $64$luvio_engine_SelectionPropertyKey, Reader as $64$luvio_engine_Reader } from '@luvio/engine';
|
|
2
|
-
import { FragmentDefinitionNode as $64$luvio_graphql$45$parser_FragmentDefinitionNode, InlineFragmentNode as $64$luvio_graphql$45$parser_InlineFragmentNode, FieldNode as $64$luvio_graphql$45$parser_FieldNode, FragmentSpreadNode as $64$luvio_graphql$45$parser_FragmentSpreadNode, SelectionNode as $64$luvio_graphql$45$parser_SelectionNode, OperationDefinitionNode as $64$luvio_graphql$45$parser_OperationDefinitionNode, ArgumentNode as $64$luvio_graphql$45$parser_ArgumentNode, DocumentNode as $64$luvio_graphql$45$parser_DocumentNode, SelectionSetNode as $64$luvio_graphql$45$parser_SelectionSetNode } from '@luvio/graphql-parser';
|
|
2
|
+
import { FragmentDefinitionNode as $64$luvio_graphql$45$parser_FragmentDefinitionNode, InlineFragmentNode as $64$luvio_graphql$45$parser_InlineFragmentNode, FieldNode as $64$luvio_graphql$45$parser_FieldNode, FragmentSpreadNode as $64$luvio_graphql$45$parser_FragmentSpreadNode, SelectionNode as $64$luvio_graphql$45$parser_SelectionNode, OperationDefinitionNode as $64$luvio_graphql$45$parser_OperationDefinitionNode, ArgumentNode as $64$luvio_graphql$45$parser_ArgumentNode, DocumentNode as $64$luvio_graphql$45$parser_DocumentNode, SelectionSetNode as $64$luvio_graphql$45$parser_SelectionSetNode, VariableDefinitionNode as $64$luvio_graphql$45$parser_VariableDefinitionNode } from '@luvio/graphql-parser';
|
|
3
3
|
import { PaginationMetadata as pagination_cursor_PaginationMetadata, PaginationParams as pagination_cursor_PaginationParams, PageMetadata as pagination_cursor_PageMetadata } from '../../pagination/cursor';
|
|
4
4
|
export type GraphQLVariables = Record<string, any>;
|
|
5
5
|
export type NormalizedGraphQL<D = undefined> = {
|
|
@@ -98,4 +98,5 @@ export declare function buildSelectionForField<SourceType>(source: SourceType, r
|
|
|
98
98
|
typename: string;
|
|
99
99
|
} | undefined, selectType: (typename: string, sel: $64$luvio_graphql$45$parser_FieldNode, fieldData: any, reader: $64$luvio_engine_Reader<any>, key: $64$luvio_engine_SelectionPropertyKey, sink: any, variables: GraphQLVariables, fragments: GraphQLFragmentMap) => void): Record<string, any> | undefined;
|
|
100
100
|
export declare function selectTypeLink<T extends Function, NormalizedGraphQLType extends NormalizedGraphQL<unknown>>(sel: $64$luvio_graphql$45$parser_FieldNode, fieldData: any, reader: $64$luvio_engine_Reader<any>, key: $64$luvio_engine_SelectionPropertyKey, sink: any, variables: GraphQLVariables, fragments: GraphQLFragmentMap, version: string | undefined, selectFn: (field: $64$luvio_graphql$45$parser_FieldNode, variables: GraphQLVariables, fragments: GraphQLFragmentMap) => T, isCursorConnection: boolean): void;
|
|
101
|
+
export declare function augmentDefaultVariableValues(variableDefinitions: readonly $64$luvio_graphql$45$parser_VariableDefinitionNode[], variables: GraphQLVariables): void;
|
|
101
102
|
export {};
|
|
@@ -5903,16 +5903,27 @@ function trimEdges(edges, startOffset, endOffset) {
|
|
|
5903
5903
|
return trimmedEdges;
|
|
5904
5904
|
}
|
|
5905
5905
|
function optimizePagination(metadata, firstArgName, afterArgName, variables) {
|
|
5906
|
-
if (typeof metadata === 'object' && metadata !== null
|
|
5906
|
+
if (typeof metadata === 'object' && metadata !== null) {
|
|
5907
|
+
const requestedAfterCursor = variables[afterArgName];
|
|
5908
|
+
const afterCursorOffset = offsetFromToken(metadata, requestedAfterCursor);
|
|
5907
5909
|
// optimize only if after cursor is unspecified in the request or it's already loaded in metadata
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
const
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5910
|
+
if (afterCursorOffset >= 0) {
|
|
5911
|
+
const requestedItems = variables[firstArgName];
|
|
5912
|
+
const atMostOffset = afterCursorOffset + requestedItems; // The largest offset we care about for this page.
|
|
5913
|
+
const lastTokenAndOffset = tokenForAtMost(metadata, atMostOffset);
|
|
5914
|
+
if (lastTokenAndOffset !== undefined) {
|
|
5915
|
+
const [token, offset] = lastTokenAndOffset;
|
|
5916
|
+
const isSubpage = atMostOffset === offset; // We already have all the cursors we seem to need
|
|
5917
|
+
const isExactPagination = atMostOffset === offset + requestedItems; // Using the last cursor we have to paginate
|
|
5918
|
+
if (!(isSubpage || isExactPagination)) { // If we're asking for more than we have, only request what we're missing.
|
|
5919
|
+
const existingItems = afterCursorOffset === 0 ? offset + 1 : offset - afterCursorOffset;
|
|
5920
|
+
const itemsToRequest = requestedItems - existingItems;
|
|
5921
|
+
variables[firstArgName + '_original'] = requestedItems;
|
|
5922
|
+
variables[firstArgName] = itemsToRequest;
|
|
5923
|
+
variables[afterArgName + '_original'] = requestedAfterCursor;
|
|
5924
|
+
variables[afterArgName] = token;
|
|
5925
|
+
}
|
|
5926
|
+
}
|
|
5916
5927
|
}
|
|
5917
5928
|
}
|
|
5918
5929
|
}
|
|
@@ -37897,7 +37908,13 @@ function ingestPaginationMetadata(astNode, state, key, sink, existingData) {
|
|
|
37897
37908
|
}
|
|
37898
37909
|
const nextOffset = startOffset + edges.length;
|
|
37899
37910
|
const incomingPaginationMetadata = createPaginationMetadata(startOffset, edges);
|
|
37900
|
-
if (
|
|
37911
|
+
if (hasNextPage) {
|
|
37912
|
+
// Cleanup any __END__ cursors that are before than the newly ingested page
|
|
37913
|
+
if (existingPaginationMetadata !== undefined && existingPaginationMetadata.__END__ !== undefined && existingPaginationMetadata.__END__ < nextOffset) {
|
|
37914
|
+
delete existingPaginationMetadata.__END__;
|
|
37915
|
+
}
|
|
37916
|
+
}
|
|
37917
|
+
else {
|
|
37901
37918
|
incomingPaginationMetadata.__END__ = nextOffset;
|
|
37902
37919
|
}
|
|
37903
37920
|
// store the updated pagination metadata
|
|
@@ -44178,6 +44195,25 @@ function selectTypeLink(sel, fieldData, reader, key, sink, variables, fragments,
|
|
|
44178
44195
|
reader.markMissing();
|
|
44179
44196
|
}
|
|
44180
44197
|
}
|
|
44198
|
+
function augmentDefaultVariableValues(variableDefinitions, variables) {
|
|
44199
|
+
variableDefinitions.forEach(({ defaultValue, variable }) => {
|
|
44200
|
+
if (defaultValue !== undefined && variables[variable.name.value] === undefined) {
|
|
44201
|
+
switch (defaultValue.kind) {
|
|
44202
|
+
case ("IntValue"):
|
|
44203
|
+
case ("FloatValue"):
|
|
44204
|
+
variables[variable.name.value] = Number(defaultValue.value);
|
|
44205
|
+
break;
|
|
44206
|
+
case ("NullValue"):
|
|
44207
|
+
variables[variable.name.value] = null;
|
|
44208
|
+
break;
|
|
44209
|
+
case ("BooleanValue"):
|
|
44210
|
+
case ("StringValue"):
|
|
44211
|
+
case ("EnumValue"):
|
|
44212
|
+
variables[variable.name.value] = defaultValue.value;
|
|
44213
|
+
}
|
|
44214
|
+
}
|
|
44215
|
+
});
|
|
44216
|
+
}
|
|
44181
44217
|
function selectTypeLinkWithPagination(resolvedLink, sel, fieldData, reader, key, sink, variables, fragments, selectFn) {
|
|
44182
44218
|
var _a, _b, _c, _d, _e;
|
|
44183
44219
|
const source = resolvedLink.data.data;
|
|
@@ -44351,6 +44387,9 @@ function select$8(luvio, query, variables) {
|
|
|
44351
44387
|
}
|
|
44352
44388
|
function ingestOperationNode(luvio, input, node, state) {
|
|
44353
44389
|
if (node.operation === 'query') {
|
|
44390
|
+
if (node.variableDefinitions !== undefined) {
|
|
44391
|
+
augmentDefaultVariableValues(node.variableDefinitions, state.variables);
|
|
44392
|
+
}
|
|
44354
44393
|
ingest$8(node, {
|
|
44355
44394
|
...state,
|
|
44356
44395
|
path: {
|
package/package.json
CHANGED
package/sfdc/graphqlAdapters.js
CHANGED
|
@@ -343,16 +343,27 @@ function trimEdges(edges, startOffset, endOffset) {
|
|
|
343
343
|
return trimmedEdges;
|
|
344
344
|
}
|
|
345
345
|
function optimizePagination(metadata, firstArgName, afterArgName, variables) {
|
|
346
|
-
if (typeof metadata === 'object' && metadata !== null
|
|
346
|
+
if (typeof metadata === 'object' && metadata !== null) {
|
|
347
|
+
const requestedAfterCursor = variables[afterArgName];
|
|
348
|
+
const afterCursorOffset = offsetFromToken(metadata, requestedAfterCursor);
|
|
347
349
|
// optimize only if after cursor is unspecified in the request or it's already loaded in metadata
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
const
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
350
|
+
if (afterCursorOffset >= 0) {
|
|
351
|
+
const requestedItems = variables[firstArgName];
|
|
352
|
+
const atMostOffset = afterCursorOffset + requestedItems; // The largest offset we care about for this page.
|
|
353
|
+
const lastTokenAndOffset = tokenForAtMost(metadata, atMostOffset);
|
|
354
|
+
if (lastTokenAndOffset !== undefined) {
|
|
355
|
+
const [token, offset] = lastTokenAndOffset;
|
|
356
|
+
const isSubpage = atMostOffset === offset; // We already have all the cursors we seem to need
|
|
357
|
+
const isExactPagination = atMostOffset === offset + requestedItems; // Using the last cursor we have to paginate
|
|
358
|
+
if (!(isSubpage || isExactPagination)) { // If we're asking for more than we have, only request what we're missing.
|
|
359
|
+
const existingItems = afterCursorOffset === 0 ? offset + 1 : offset - afterCursorOffset;
|
|
360
|
+
const itemsToRequest = requestedItems - existingItems;
|
|
361
|
+
variables[firstArgName + '_original'] = requestedItems;
|
|
362
|
+
variables[firstArgName] = itemsToRequest;
|
|
363
|
+
variables[afterArgName + '_original'] = requestedAfterCursor;
|
|
364
|
+
variables[afterArgName] = token;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
356
367
|
}
|
|
357
368
|
}
|
|
358
369
|
}
|
|
@@ -6595,7 +6606,13 @@ function ingestPaginationMetadata(astNode, state, key, sink, existingData) {
|
|
|
6595
6606
|
}
|
|
6596
6607
|
const nextOffset = startOffset + edges.length;
|
|
6597
6608
|
const incomingPaginationMetadata = createPaginationMetadata(startOffset, edges);
|
|
6598
|
-
if (
|
|
6609
|
+
if (hasNextPage) {
|
|
6610
|
+
// Cleanup any __END__ cursors that are before than the newly ingested page
|
|
6611
|
+
if (existingPaginationMetadata !== undefined && existingPaginationMetadata.__END__ !== undefined && existingPaginationMetadata.__END__ < nextOffset) {
|
|
6612
|
+
delete existingPaginationMetadata.__END__;
|
|
6613
|
+
}
|
|
6614
|
+
}
|
|
6615
|
+
else {
|
|
6599
6616
|
incomingPaginationMetadata.__END__ = nextOffset;
|
|
6600
6617
|
}
|
|
6601
6618
|
// store the updated pagination metadata
|
|
@@ -12876,6 +12893,25 @@ function selectTypeLink(sel, fieldData, reader, key, sink, variables, fragments,
|
|
|
12876
12893
|
reader.markMissing();
|
|
12877
12894
|
}
|
|
12878
12895
|
}
|
|
12896
|
+
function augmentDefaultVariableValues(variableDefinitions, variables) {
|
|
12897
|
+
variableDefinitions.forEach(({ defaultValue, variable }) => {
|
|
12898
|
+
if (defaultValue !== undefined && variables[variable.name.value] === undefined) {
|
|
12899
|
+
switch (defaultValue.kind) {
|
|
12900
|
+
case ("IntValue"):
|
|
12901
|
+
case ("FloatValue"):
|
|
12902
|
+
variables[variable.name.value] = Number(defaultValue.value);
|
|
12903
|
+
break;
|
|
12904
|
+
case ("NullValue"):
|
|
12905
|
+
variables[variable.name.value] = null;
|
|
12906
|
+
break;
|
|
12907
|
+
case ("BooleanValue"):
|
|
12908
|
+
case ("StringValue"):
|
|
12909
|
+
case ("EnumValue"):
|
|
12910
|
+
variables[variable.name.value] = defaultValue.value;
|
|
12911
|
+
}
|
|
12912
|
+
}
|
|
12913
|
+
});
|
|
12914
|
+
}
|
|
12879
12915
|
function selectTypeLinkWithPagination(resolvedLink, sel, fieldData, reader, key, sink, variables, fragments, selectFn) {
|
|
12880
12916
|
var _a, _b, _c, _d, _e;
|
|
12881
12917
|
const source = resolvedLink.data.data;
|
|
@@ -13049,6 +13085,9 @@ function select$8(luvio, query, variables) {
|
|
|
13049
13085
|
}
|
|
13050
13086
|
function ingestOperationNode(luvio, input, node, state) {
|
|
13051
13087
|
if (node.operation === 'query') {
|
|
13088
|
+
if (node.variableDefinitions !== undefined) {
|
|
13089
|
+
augmentDefaultVariableValues(node.variableDefinitions, state.variables);
|
|
13090
|
+
}
|
|
13052
13091
|
ingest$1(node, {
|
|
13053
13092
|
...state,
|
|
13054
13093
|
path: {
|
|
@@ -14351,4 +14390,4 @@ register({
|
|
|
14351
14390
|
});
|
|
14352
14391
|
|
|
14353
14392
|
export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
|
|
14354
|
-
// version: 1.
|
|
14393
|
+
// version: 1.130.8-4b70f5879
|
package/sfdc/index.js
CHANGED
|
@@ -36050,4 +36050,4 @@ withDefaultLuvio((luvio) => {
|
|
|
36050
36050
|
});
|
|
36051
36051
|
|
|
36052
36052
|
export { InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$I as ObjectInfoRepresentationType, RepresentationType$N as RecordRepresentationRepresentationType, TTL$v as RecordRepresentationTTL, RepresentationType$N as RecordRepresentationType, VERSION$14 as RecordRepresentationVersion, keyPrefix as UiApiNamespace, configurationForRestAdapters as configuration, createContentDocumentAndVersion, createContentVersion, createIngestRecordWithFields, createRecord, deleteRecord, getActionOverrides, getActionOverrides_imperative, getAllApps, getAllApps_imperative, getAppDetails, getAppDetails_imperative, getDuplicateConfiguration, getDuplicateConfiguration_imperative, getDuplicates, getDuplicates_imperative, getGlobalActions, getGlobalActions_imperative, getKeywordSearchResults, getKeywordSearchResults_imperative, getLayout, getLayoutUserState, getLayoutUserState_imperative, getLayout_imperative, getListInfoByName, getListInfoByName_imperative, getListInfosByName, getListInfosByName_imperative, getListRecordsByName, getListRecordsByName_imperative, getListUi, getListUi_imperative, getLookupActions, getLookupActions_imperative, getLookupMetadata, getLookupMetadata_imperative, getLookupRecords, getLookupRecords_imperative, getNavItems, getNavItems_imperative, getObjectCreateActions, getObjectCreateActions_imperative, getObjectInfo, getObjectInfoAdapterFactory, getObjectInfo_imperative, getObjectInfos, getObjectInfosAdapterFactory, getObjectInfos_imperative, getPicklistValues, getPicklistValuesByRecordType, getPicklistValuesByRecordType_imperative, getPicklistValues_imperative, getQuickActionDefaults, getQuickActionDefaults_imperative, getQuickActionLayout, getQuickActionLayout_imperative, getRecord, getRecordActions, getRecordActions_imperative, factory$e as getRecordAdapterFactory, getRecordAvatars, getRecordAvatars_imperative, getRecordCreateDefaults, getRecordCreateDefaults_imperative, getRecordEditActions, getRecordEditActions_imperative, getRecordId18, getRecordNotifyChange, getRecordTemplateClone, getRecordTemplateClone_imperative, getRecordTemplateCreate, getRecordTemplateCreate_imperative, getRecordUi, getRecordUi_imperative, getRecord_imperative, getRecords, getRecords_imperative, getRelatedListActions, getRelatedListActions_imperative, getRelatedListCount, getRelatedListCount_imperative, getRelatedListInfo, getRelatedListInfoBatch, getRelatedListInfoBatch_imperative, getRelatedListInfo_imperative, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListPreferencesBatch_imperative, getRelatedListPreferences_imperative, getRelatedListRecordActions, getRelatedListRecordActions_imperative, getRelatedListRecords, getRelatedListRecordsBatch, getRelatedListRecordsBatch_imperative, getRelatedListRecords_imperative, getRelatedListsActions, getRelatedListsActions_imperative, getRelatedListsCount, getRelatedListsCount_imperative, getRelatedListsInfo, getRelatedListsInfo_imperative, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadata, getSearchFilterMetadata_imperative, getSearchFilterOptions, getSearchFilterOptions_imperative, getSearchResults, getSearchResults_imperative, getTypeCacheKeys$N as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$B as ingestObjectInfo, ingest$x as ingestQuickActionExecutionRepresentation, ingest$G as ingestRecord, instrument, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$x as keyBuilderFromTypeRecordRepresentation, keyBuilder$1F as keyBuilderObjectInfo, keyBuilder$1z as keyBuilderQuickActionExecutionRepresentation, keyBuilder$1Q as keyBuilderRecord, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, updateLayoutUserState, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
36053
|
-
// version: 1.
|
|
36053
|
+
// version: 1.130.8-4b70f5879
|
package/src/raml/api.raml
CHANGED
|
@@ -4784,56 +4784,57 @@ types:
|
|
|
4784
4784
|
type: string
|
|
4785
4785
|
(oas-collectionFormat): csv
|
|
4786
4786
|
/batch:
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4787
|
+
# TODO: Hand rolled
|
|
4788
|
+
# get:
|
|
4789
|
+
# description: Retrieve presentation-ready action data about specific
|
|
4790
|
+
# recordId for the RelatedList subcontexts relatedListIds but returned
|
|
4791
|
+
# in the manner LDS expects for batching.
|
|
4792
|
+
# responses:
|
|
4793
|
+
# '200':
|
|
4794
|
+
# description: Success
|
|
4795
|
+
# body:
|
|
4796
|
+
# application/json:
|
|
4797
|
+
# type: SimplifiedBatchRepresentation
|
|
4798
|
+
# queryParameters:
|
|
4799
|
+
# actionTypes:
|
|
4800
|
+
# type: array
|
|
4801
|
+
# required: false
|
|
4802
|
+
# items:
|
|
4803
|
+
# type: string
|
|
4804
|
+
# enum:
|
|
4805
|
+
# - ActionLink
|
|
4806
|
+
# - CustomButton
|
|
4807
|
+
# - InvocableAction
|
|
4808
|
+
# - ProductivityAction
|
|
4809
|
+
# - QuickAction
|
|
4810
|
+
# - StandardButton
|
|
4811
|
+
# (oas-collectionFormat): csv
|
|
4812
|
+
# apiNames:
|
|
4813
|
+
# type: array
|
|
4814
|
+
# required: false
|
|
4815
|
+
# items:
|
|
4816
|
+
# type: string
|
|
4817
|
+
# (oas-collectionFormat): csv
|
|
4818
|
+
# formFactor:
|
|
4819
|
+
# type: string
|
|
4820
|
+
# required: false
|
|
4821
|
+
# retrievalMode:
|
|
4822
|
+
# type: string
|
|
4823
|
+
# required: false
|
|
4824
|
+
# enum:
|
|
4825
|
+
# - All
|
|
4826
|
+
# - PageLayout
|
|
4827
|
+
# sections:
|
|
4828
|
+
# type: array
|
|
4829
|
+
# required: false
|
|
4830
|
+
# items:
|
|
4831
|
+
# type: string
|
|
4832
|
+
# enum:
|
|
4833
|
+
# - ActivityComposer
|
|
4834
|
+
# - CollaborateComposer
|
|
4835
|
+
# - Page
|
|
4836
|
+
# - SingleActionLinks
|
|
4837
|
+
# (oas-collectionFormat): csv
|
|
4837
4838
|
post:
|
|
4838
4839
|
description: Returns a batch of record data to populate several related lists.
|
|
4839
4840
|
responses:
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { FetchResponse as $64$luvio_engine_FetchResponse, Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, StoreKeySet as $64$luvio_engine_StoreKeySet, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
-
import { ResourceRequestConfig as postUiApiActionsRecordRelatedListByRecordIdsAndRelatedListId_ResourceRequestConfig } from './postUiApiActionsRecordRelatedListByRecordIdsAndRelatedListId';
|
|
3
|
-
import { SimplifiedBatchRepresentation as types_SimplifiedBatchRepresentation_SimplifiedBatchRepresentation } from '../types/SimplifiedBatchRepresentation';
|
|
4
|
-
export declare function createChildResourceParams(resourceParams: ResourceRequestConfig): postUiApiActionsRecordRelatedListByRecordIdsAndRelatedListId_ResourceRequestConfig[];
|
|
5
|
-
export interface ResourceRequestConfig {
|
|
6
|
-
urlParams: {
|
|
7
|
-
recordIds: Array<string>;
|
|
8
|
-
};
|
|
9
|
-
queryParams: {
|
|
10
|
-
actionTypes?: Array<string>;
|
|
11
|
-
apiNames?: Array<string>;
|
|
12
|
-
formFactor?: string;
|
|
13
|
-
retrievalMode?: string;
|
|
14
|
-
sections?: Array<string>;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export declare function selectChildResourceParams(luvio: $64$luvio_engine_Luvio, childResources: postUiApiActionsRecordRelatedListByRecordIdsAndRelatedListId_ResourceRequestConfig[], resourceParams: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
18
|
-
export declare function select(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
19
|
-
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
20
|
-
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
21
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_SimplifiedBatchRepresentation_SimplifiedBatchRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
22
|
-
export declare function ingestSuccessChildResourceParams(luvio: $64$luvio_engine_Luvio, childResourceParamsArray: postUiApiActionsRecordRelatedListByRecordIdsAndRelatedListId_ResourceRequestConfig[], childEnvelopes: Array<any>): {
|
|
23
|
-
childSnapshotData: types_SimplifiedBatchRepresentation_SimplifiedBatchRepresentation;
|
|
24
|
-
seenRecords: $64$luvio_engine_StoreKeySet<string | $64$luvio_engine_NormalizedKeyMetadata>;
|
|
25
|
-
snapshotState: string;
|
|
26
|
-
};
|
|
27
|
-
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SimplifiedBatchRepresentation_SimplifiedBatchRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SimplifiedBatchRepresentation_SimplifiedBatchRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_SimplifiedBatchRepresentation_SimplifiedBatchRepresentation, any> | $64$luvio_engine_StaleSnapshot<types_SimplifiedBatchRepresentation_SimplifiedBatchRepresentation, any> | $64$luvio_engine_PendingSnapshot<types_SimplifiedBatchRepresentation_SimplifiedBatchRepresentation, any>;
|
|
28
|
-
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SimplifiedBatchRepresentation_SimplifiedBatchRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
29
|
-
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
30
|
-
export default createResourceRequest;
|