@salesforce/lds-adapters-uiapi 1.321.0 → 1.322.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/dist/es/es2018/types/src/generated/types/RecordLayoutUserStateRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/graphql-artifacts/types/Setup__SetupQueryAggregate/getFieldType.d.ts +5 -0
- package/dist/es/es2018/uiapi-records-service.js +43 -23
- package/package.json +6 -6
- package/sfdc/graphqlAdapters.js +38 -50
- package/sfdc/index.js +43 -24
- package/src/raml/api.raml +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RecordLayoutSectionUserStateRepresentation as RecordLayoutSectionUserStateRepresentation_RecordLayoutSectionUserStateRepresentation } from './RecordLayoutSectionUserStateRepresentation';
|
|
2
2
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
3
3
|
export declare const TTL = 900000;
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "12123f1aca1b5a48303b1d099f9f5629";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -33,7 +33,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
33
33
|
export interface RecordLayoutUserStateRepresentationNormalized {
|
|
34
34
|
apiName: string;
|
|
35
35
|
/** Layout ID. */
|
|
36
|
-
id: string;
|
|
36
|
+
id: string | null;
|
|
37
37
|
/** Layout type. */
|
|
38
38
|
layoutType: string;
|
|
39
39
|
/** Mode. */
|
|
@@ -55,7 +55,7 @@ export interface RecordLayoutUserStateRepresentationNormalized {
|
|
|
55
55
|
*/
|
|
56
56
|
export interface RecordLayoutUserStateRepresentation {
|
|
57
57
|
apiName: string;
|
|
58
|
-
id: string;
|
|
58
|
+
id: string | null;
|
|
59
59
|
layoutType: string;
|
|
60
60
|
mode: string;
|
|
61
61
|
recordTypeId: string;
|
|
@@ -12427,7 +12427,7 @@ function validate$1E(obj, path = 'RecordLayoutSectionUserStateRepresentation') {
|
|
|
12427
12427
|
}
|
|
12428
12428
|
|
|
12429
12429
|
const TTL$B = 900000;
|
|
12430
|
-
const VERSION$2u = "
|
|
12430
|
+
const VERSION$2u = "12123f1aca1b5a48303b1d099f9f5629";
|
|
12431
12431
|
function validate$1D(obj, path = 'RecordLayoutUserStateRepresentation') {
|
|
12432
12432
|
const v_error = (() => {
|
|
12433
12433
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -12440,8 +12440,29 @@ function validate$1D(obj, path = 'RecordLayoutUserStateRepresentation') {
|
|
|
12440
12440
|
}
|
|
12441
12441
|
const obj_id = obj.id;
|
|
12442
12442
|
const path_id = path + '.id';
|
|
12443
|
-
|
|
12444
|
-
|
|
12443
|
+
let obj_id_union0 = null;
|
|
12444
|
+
const obj_id_union0_error = (() => {
|
|
12445
|
+
if (typeof obj_id !== 'string') {
|
|
12446
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
12447
|
+
}
|
|
12448
|
+
})();
|
|
12449
|
+
if (obj_id_union0_error != null) {
|
|
12450
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
12451
|
+
}
|
|
12452
|
+
let obj_id_union1 = null;
|
|
12453
|
+
const obj_id_union1_error = (() => {
|
|
12454
|
+
if (obj_id !== null) {
|
|
12455
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
12456
|
+
}
|
|
12457
|
+
})();
|
|
12458
|
+
if (obj_id_union1_error != null) {
|
|
12459
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
12460
|
+
}
|
|
12461
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
12462
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
12463
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
12464
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
12465
|
+
return new TypeError(message);
|
|
12445
12466
|
}
|
|
12446
12467
|
const obj_layoutType = obj.layoutType;
|
|
12447
12468
|
const path_layoutType = path + '.layoutType';
|
|
@@ -21211,11 +21232,11 @@ function validateAdapterConfig$Q(untrustedConfig, _configPropertyNames) {
|
|
|
21211
21232
|
if (config === null) {
|
|
21212
21233
|
return null;
|
|
21213
21234
|
}
|
|
21214
|
-
// recordTypeId coercion is nuts: if `null` (but not undefined) then use MASTER record type id
|
|
21215
21235
|
let recordTypeId = config.recordTypeId;
|
|
21216
21236
|
if (recordTypeId === undefined) {
|
|
21217
21237
|
// must check untrusted bc config has been coerced
|
|
21218
|
-
if (untrustedConfig.recordTypeId !== null
|
|
21238
|
+
if (untrustedConfig.recordTypeId !== null &&
|
|
21239
|
+
untrustedConfig.recordTypeId !== undefined) {
|
|
21219
21240
|
return null;
|
|
21220
21241
|
}
|
|
21221
21242
|
recordTypeId = MAIN_RECORD_TYPE_ID;
|
|
@@ -52300,6 +52321,23 @@ function getInContextFragmentType$d(fragment, fragmentMap) {
|
|
|
52300
52321
|
return sharedGetFragmentType(fragment, fragmentMap);
|
|
52301
52322
|
}
|
|
52302
52323
|
|
|
52324
|
+
function getFieldType$b(field) {
|
|
52325
|
+
switch (field.name.value) {
|
|
52326
|
+
case '__typename': {
|
|
52327
|
+
return {
|
|
52328
|
+
isArray: false,
|
|
52329
|
+
typename: 'String',
|
|
52330
|
+
};
|
|
52331
|
+
}
|
|
52332
|
+
default: {
|
|
52333
|
+
return {
|
|
52334
|
+
isArray: false,
|
|
52335
|
+
typename: 'Setup__SetupAggregateConnection',
|
|
52336
|
+
};
|
|
52337
|
+
}
|
|
52338
|
+
}
|
|
52339
|
+
}
|
|
52340
|
+
|
|
52303
52341
|
const name$2 = 'Setup__SetupQueryAggregate';
|
|
52304
52342
|
const VERSION$e = '0592284764c8e58016880e291b9ffb64';
|
|
52305
52343
|
function keyBuilder$g(luvio, path, data) {
|
|
@@ -52417,24 +52455,6 @@ function getTypeCacheKeys$b(cacheKeySink, astNode, state) {
|
|
|
52417
52455
|
}
|
|
52418
52456
|
// Deal with mapped types' cache keys
|
|
52419
52457
|
}
|
|
52420
|
-
function getFieldType$b(field) {
|
|
52421
|
-
switch (field.name.value) {
|
|
52422
|
-
case '__typename': {
|
|
52423
|
-
return {
|
|
52424
|
-
isArray: false,
|
|
52425
|
-
typename: 'String'
|
|
52426
|
-
};
|
|
52427
|
-
}
|
|
52428
|
-
case 'recordQueryAggregate': {
|
|
52429
|
-
return {
|
|
52430
|
-
isArray: false,
|
|
52431
|
-
typename: 'Setup__SetupAggregateConnection'
|
|
52432
|
-
};
|
|
52433
|
-
}
|
|
52434
|
-
default:
|
|
52435
|
-
return undefined;
|
|
52436
|
-
}
|
|
52437
|
-
}
|
|
52438
52458
|
function ingestFieldByType$2(typename, parentKey, requestedField, sink, fieldKey, fieldData, state) {
|
|
52439
52459
|
// TODO: add validation logic to only allow nullable fields to be null in the future
|
|
52440
52460
|
if (fieldData === null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-uiapi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.322.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",
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@salesforce/lds-bindings": "^1.
|
|
72
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
71
|
+
"@salesforce/lds-bindings": "^1.322.0",
|
|
72
|
+
"@salesforce/lds-default-luvio": "^1.322.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.322.0",
|
|
77
|
+
"@salesforce/lds-jest": "^1.322.0",
|
|
78
|
+
"@salesforce/lds-store-binary": "^1.322.0"
|
|
79
79
|
},
|
|
80
80
|
"luvioBundlesize": [
|
|
81
81
|
{
|
package/sfdc/graphqlAdapters.js
CHANGED
|
@@ -210,7 +210,7 @@ function createPageInfo(edges, startOffset, endOffset, maxOffset, metadata) {
|
|
|
210
210
|
if (edges === undefined) {
|
|
211
211
|
return undefined;
|
|
212
212
|
}
|
|
213
|
-
const listIsIncomplete = (
|
|
213
|
+
const listIsIncomplete = (metadata?.__END__ === undefined);
|
|
214
214
|
const hasNextPage = listIsIncomplete || (endOffset !== undefined && maxOffset !== undefined && (endOffset - 1 < maxOffset));
|
|
215
215
|
const hasPreviousPage = startOffset !== undefined && startOffset > 0;
|
|
216
216
|
let startCursor = null;
|
|
@@ -246,7 +246,7 @@ function findMaxOffset(metadata) {
|
|
|
246
246
|
}
|
|
247
247
|
// end is included in the above case.
|
|
248
248
|
return Object.values(metadata)
|
|
249
|
-
.reduce((acc, value) => Math.max(value
|
|
249
|
+
.reduce((acc, value) => Math.max(value ?? -1, acc), -1);
|
|
250
250
|
}
|
|
251
251
|
function getPageTokenAndOffset(paginationMetadata, token) {
|
|
252
252
|
if (token === undefined) {
|
|
@@ -6656,14 +6656,13 @@ function mergeData$O(existingData, newData) {
|
|
|
6656
6656
|
};
|
|
6657
6657
|
}
|
|
6658
6658
|
function ingestPaginationMetadata$3(astNode, state, key, sink, existingData) {
|
|
6659
|
-
var _a;
|
|
6660
6659
|
const { data, luvio, store } = state;
|
|
6661
6660
|
const { pageInfo: { hasNextPage, startCursor }, edges } = data;
|
|
6662
6661
|
if (!hasGraphQLPaginationFields(data))
|
|
6663
6662
|
return;
|
|
6664
6663
|
const paginationKey = key + '__pagination';
|
|
6665
6664
|
let existingPaginationMetadata = store.readEntry(paginationKey);
|
|
6666
|
-
const afterArg =
|
|
6665
|
+
const afterArg = astNode.arguments?.find(argument => { return argument.name.value === 'after'; });
|
|
6667
6666
|
const afterArgVal = evaluateArgumentValue(afterArg, 'StringValue', state.variables);
|
|
6668
6667
|
const isPagedResponse = afterArgVal !== undefined &&
|
|
6669
6668
|
existingPaginationMetadata !== undefined &&
|
|
@@ -11918,14 +11917,13 @@ function mergeData$t(existingData, newData) {
|
|
|
11918
11917
|
};
|
|
11919
11918
|
}
|
|
11920
11919
|
function ingestPaginationMetadata$2(astNode, state, key, sink, existingData) {
|
|
11921
|
-
var _a;
|
|
11922
11920
|
const { data, luvio, store } = state;
|
|
11923
11921
|
const { pageInfo: { hasNextPage, startCursor }, edges } = data;
|
|
11924
11922
|
if (!hasGraphQLPaginationFields(data))
|
|
11925
11923
|
return;
|
|
11926
11924
|
const paginationKey = key + '__pagination';
|
|
11927
11925
|
let existingPaginationMetadata = store.readEntry(paginationKey);
|
|
11928
|
-
const afterArg =
|
|
11926
|
+
const afterArg = astNode.arguments?.find(argument => { return argument.name.value === 'after'; });
|
|
11929
11927
|
const afterArgVal = evaluateArgumentValue(afterArg, 'StringValue', state.variables);
|
|
11930
11928
|
const isPagedResponse = afterArgVal !== undefined &&
|
|
11931
11929
|
existingPaginationMetadata !== undefined &&
|
|
@@ -16832,14 +16830,13 @@ function mergeData$8(existingData, newData) {
|
|
|
16832
16830
|
};
|
|
16833
16831
|
}
|
|
16834
16832
|
function ingestPaginationMetadata$1(astNode, state, key, sink, existingData) {
|
|
16835
|
-
var _a;
|
|
16836
16833
|
const { data, luvio, store } = state;
|
|
16837
16834
|
const { pageInfo: { hasNextPage, startCursor }, edges } = data;
|
|
16838
16835
|
if (!hasGraphQLPaginationFields(data))
|
|
16839
16836
|
return;
|
|
16840
16837
|
const paginationKey = key + '__pagination';
|
|
16841
16838
|
let existingPaginationMetadata = store.readEntry(paginationKey);
|
|
16842
|
-
const afterArg =
|
|
16839
|
+
const afterArg = astNode.arguments?.find(argument => { return argument.name.value === 'after'; });
|
|
16843
16840
|
const afterArgVal = evaluateArgumentValue(afterArg, 'StringValue', state.variables);
|
|
16844
16841
|
const isPagedResponse = afterArgVal !== undefined &&
|
|
16845
16842
|
existingPaginationMetadata !== undefined &&
|
|
@@ -18187,14 +18184,13 @@ function mergeData$3(existingData, newData) {
|
|
|
18187
18184
|
};
|
|
18188
18185
|
}
|
|
18189
18186
|
function ingestPaginationMetadata(astNode, state, key, sink, existingData) {
|
|
18190
|
-
var _a;
|
|
18191
18187
|
const { data, luvio, store } = state;
|
|
18192
18188
|
const { pageInfo: { hasNextPage, startCursor }, edges } = data;
|
|
18193
18189
|
if (!hasGraphQLPaginationFields(data))
|
|
18194
18190
|
return;
|
|
18195
18191
|
const paginationKey = key + '__pagination';
|
|
18196
18192
|
let existingPaginationMetadata = store.readEntry(paginationKey);
|
|
18197
|
-
const afterArg =
|
|
18193
|
+
const afterArg = astNode.arguments?.find(argument => { return argument.name.value === 'after'; });
|
|
18198
18194
|
const afterArgVal = evaluateArgumentValue(afterArg, 'StringValue', state.variables);
|
|
18199
18195
|
const isPagedResponse = afterArgVal !== undefined &&
|
|
18200
18196
|
existingPaginationMetadata !== undefined &&
|
|
@@ -18440,6 +18436,23 @@ function getInContextFragmentType$d(fragment, fragmentMap) {
|
|
|
18440
18436
|
return sharedGetFragmentType(fragment, fragmentMap);
|
|
18441
18437
|
}
|
|
18442
18438
|
|
|
18439
|
+
function getFieldType$b(field) {
|
|
18440
|
+
switch (field.name.value) {
|
|
18441
|
+
case '__typename': {
|
|
18442
|
+
return {
|
|
18443
|
+
isArray: false,
|
|
18444
|
+
typename: 'String',
|
|
18445
|
+
};
|
|
18446
|
+
}
|
|
18447
|
+
default: {
|
|
18448
|
+
return {
|
|
18449
|
+
isArray: false,
|
|
18450
|
+
typename: 'Setup__SetupAggregateConnection',
|
|
18451
|
+
};
|
|
18452
|
+
}
|
|
18453
|
+
}
|
|
18454
|
+
}
|
|
18455
|
+
|
|
18443
18456
|
const name$2 = 'Setup__SetupQueryAggregate';
|
|
18444
18457
|
const VERSION$a = '0592284764c8e58016880e291b9ffb64';
|
|
18445
18458
|
function keyBuilder$6(luvio, path, data) {
|
|
@@ -18557,24 +18570,6 @@ function getTypeCacheKeys$3(cacheKeySink, astNode, state) {
|
|
|
18557
18570
|
}
|
|
18558
18571
|
// Deal with mapped types' cache keys
|
|
18559
18572
|
}
|
|
18560
|
-
function getFieldType$b(field) {
|
|
18561
|
-
switch (field.name.value) {
|
|
18562
|
-
case '__typename': {
|
|
18563
|
-
return {
|
|
18564
|
-
isArray: false,
|
|
18565
|
-
typename: 'String'
|
|
18566
|
-
};
|
|
18567
|
-
}
|
|
18568
|
-
case 'recordQueryAggregate': {
|
|
18569
|
-
return {
|
|
18570
|
-
isArray: false,
|
|
18571
|
-
typename: 'Setup__SetupAggregateConnection'
|
|
18572
|
-
};
|
|
18573
|
-
}
|
|
18574
|
-
default:
|
|
18575
|
-
return undefined;
|
|
18576
|
-
}
|
|
18577
|
-
}
|
|
18578
18573
|
function ingestFieldByType$2(typename, parentKey, requestedField, sink, fieldKey, fieldData, state) {
|
|
18579
18574
|
// TODO: add validation logic to only allow nullable fields to be null in the future
|
|
18580
18575
|
if (fieldData === null) {
|
|
@@ -19612,8 +19607,7 @@ function applyToSelection$4(selection, directive, variables) {
|
|
|
19612
19607
|
}
|
|
19613
19608
|
|
|
19614
19609
|
function applyToSelection$3(selection, directive, variables) {
|
|
19615
|
-
|
|
19616
|
-
const ifArg = (_a = directive.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => argument.name.value === "if");
|
|
19610
|
+
const ifArg = directive.arguments?.find(argument => argument.name.value === "if");
|
|
19617
19611
|
if (ifArg && ifArg.value) {
|
|
19618
19612
|
if (ifArg.value.kind === "BooleanValue") {
|
|
19619
19613
|
return ifArg.value.value ? selection : undefined;
|
|
@@ -19626,8 +19620,7 @@ function applyToSelection$3(selection, directive, variables) {
|
|
|
19626
19620
|
}
|
|
19627
19621
|
|
|
19628
19622
|
function applyToSelection$2(selection, directive, variables) {
|
|
19629
|
-
|
|
19630
|
-
const ifArg = (_a = directive.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => argument.name.value === "if");
|
|
19623
|
+
const ifArg = directive.arguments?.find(argument => argument.name.value === "if");
|
|
19631
19624
|
if (ifArg && ifArg.value) {
|
|
19632
19625
|
if (ifArg.value.kind === "BooleanValue") {
|
|
19633
19626
|
return ifArg.value.value ? undefined : selection;
|
|
@@ -19801,7 +19794,7 @@ function injectSelectionSet(selectionSetNode, queryTransformHelper, fragmentMap)
|
|
|
19801
19794
|
selections: queryTransformHelper.getMinimumSelections()
|
|
19802
19795
|
};
|
|
19803
19796
|
const mergedSelections = mergeSelectionSets(selectionSetNode, minimumSelectionSet);
|
|
19804
|
-
mergedSelections
|
|
19797
|
+
mergedSelections?.selections.forEach(selection => {
|
|
19805
19798
|
if (selection.kind === 'Field') {
|
|
19806
19799
|
const fieldType = queryTransformHelper.getFieldType(selection);
|
|
19807
19800
|
const fieldTransformHelper = fieldType === undefined ? undefined : getQueryTransformerForType(fieldType.typename);
|
|
@@ -20438,13 +20431,12 @@ function evaluateArgumentValue(argumentNode, expectedKind, variables) {
|
|
|
20438
20431
|
}
|
|
20439
20432
|
// Shared export for getting the offset of the current page in the edges array
|
|
20440
20433
|
function getArrayOffsetForPage(state, node, key) {
|
|
20441
|
-
var _a;
|
|
20442
20434
|
const { variables, data, store } = state;
|
|
20443
20435
|
// if we have pagination metadata, see if we can locate either the start or
|
|
20444
20436
|
// after cursor in it to determine the correct index to use for the fullPath
|
|
20445
20437
|
const paginationKey = key + '__pagination';
|
|
20446
20438
|
let existingPaginationMetadata = store.readEntry(paginationKey);
|
|
20447
|
-
const afterArg =
|
|
20439
|
+
const afterArg = node.arguments?.find(argument => { return argument.name.value === 'after'; });
|
|
20448
20440
|
const afterArgVal = evaluateArgumentValue(afterArg, 'StringValue', variables);
|
|
20449
20441
|
if (existingPaginationMetadata !== undefined) {
|
|
20450
20442
|
// if the starting cursor for current page exists in the existing metadata use that as offset
|
|
@@ -20574,8 +20566,7 @@ function augmentDefaultVariableValues(variableDefinitions, variables) {
|
|
|
20574
20566
|
});
|
|
20575
20567
|
}
|
|
20576
20568
|
function selectCalculateSink(sink, field, buildSelectionForNodeFn, source, reader, variables, fragments, parentRecordId) {
|
|
20577
|
-
|
|
20578
|
-
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
20569
|
+
field.selectionSet?.selections.forEach((sel) => {
|
|
20579
20570
|
const builtSelection = buildSelectionForNodeFn(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
20580
20571
|
if (builtSelection !== undefined) {
|
|
20581
20572
|
deepMerge(sink, builtSelection);
|
|
@@ -20584,7 +20575,6 @@ function selectCalculateSink(sink, field, buildSelectionForNodeFn, source, reade
|
|
|
20584
20575
|
return sink;
|
|
20585
20576
|
}
|
|
20586
20577
|
function selectTypeLinkWithPagination(resolvedLink, sel, fieldData, reader, key, sink, variables, fragments, selectFn) {
|
|
20587
|
-
var _a, _b, _c, _d, _e;
|
|
20588
20578
|
const source = resolvedLink.data.data;
|
|
20589
20579
|
const parentRecordId = resolvedLink.recordId;
|
|
20590
20580
|
const totalEdges = source.edges !== undefined ? source.edges.length : 0;
|
|
@@ -20594,10 +20584,10 @@ function selectTypeLinkWithPagination(resolvedLink, sel, fieldData, reader, key,
|
|
|
20594
20584
|
reader.markMissing();
|
|
20595
20585
|
return;
|
|
20596
20586
|
}
|
|
20597
|
-
const firstArg =
|
|
20587
|
+
const firstArg = sel.arguments?.find(argument => { return argument.name.value === 'first'; });
|
|
20598
20588
|
const firstArgVal = evaluateArgumentValue(firstArg, 'IntValue', variables);
|
|
20599
20589
|
const pageSize = firstArgVal !== undefined ? firstArgVal : totalEdges;
|
|
20600
|
-
const afterArg =
|
|
20590
|
+
const afterArg = sel.arguments?.find(argument => { return argument.name.value === 'after'; });
|
|
20601
20591
|
const afterArgVal = evaluateArgumentValue(afterArg, 'StringValue', variables);
|
|
20602
20592
|
const paginationParams = {
|
|
20603
20593
|
pageSize: parseInt(pageSize, 10),
|
|
@@ -20659,7 +20649,7 @@ function selectTypeLinkWithPagination(resolvedLink, sel, fieldData, reader, key,
|
|
|
20659
20649
|
reader.markMissingLink(fieldData.__ref);
|
|
20660
20650
|
reader.markMissing();
|
|
20661
20651
|
// optimize pagination when "first" and "after" args are part of the variable
|
|
20662
|
-
if (
|
|
20652
|
+
if (firstArg?.value?.kind === 'Variable' && afterArg?.value?.kind === 'Variable') {
|
|
20663
20653
|
optimizePagination(metadata, firstArg.value.name.value, afterArg.value.name.value, variables);
|
|
20664
20654
|
}
|
|
20665
20655
|
return;
|
|
@@ -20675,9 +20665,9 @@ function selectTypeLinkWithPagination(resolvedLink, sel, fieldData, reader, key,
|
|
|
20675
20665
|
};
|
|
20676
20666
|
reader.markSeenId(parentRecordId);
|
|
20677
20667
|
const result = selectFn(sel, variables, fragments)(paginatedData, reader, parentRecordId);
|
|
20678
|
-
const pageInfo = createPageInfo(result
|
|
20668
|
+
const pageInfo = createPageInfo(result?.edges, startOffset, endOffset, maxOffset, metadata);
|
|
20679
20669
|
if (pageInfo !== undefined) {
|
|
20680
|
-
const selectedPageInfo = selectPageInfo(
|
|
20670
|
+
const selectedPageInfo = selectPageInfo(sel.selectionSet?.selections, fragments, pageInfo);
|
|
20681
20671
|
if (selectedPageInfo !== undefined) {
|
|
20682
20672
|
reader.assignNonScalar(result, 'pageInfo', selectedPageInfo);
|
|
20683
20673
|
}
|
|
@@ -20685,11 +20675,10 @@ function selectTypeLinkWithPagination(resolvedLink, sel, fieldData, reader, key,
|
|
|
20685
20675
|
reader.assignNonScalar(sink, key, result);
|
|
20686
20676
|
}
|
|
20687
20677
|
function selectPageInfo(selections, fragments, pageInfo) {
|
|
20688
|
-
var _a;
|
|
20689
20678
|
const pageInfoSelection = getSelectionNode(selections, fragments, 'pageInfo');
|
|
20690
20679
|
if (pageInfo === undefined || pageInfoSelection === undefined || pageInfoSelection.kind !== 'Field')
|
|
20691
20680
|
return undefined;
|
|
20692
|
-
const pageInfoSelections =
|
|
20681
|
+
const pageInfoSelections = pageInfoSelection.selectionSet?.selections;
|
|
20693
20682
|
const selectedPageInfo = Object.assign({}, pageInfo);
|
|
20694
20683
|
Object.keys(pageInfo).forEach((fieldName) => {
|
|
20695
20684
|
if (getSelectionNode(pageInfoSelections, fragments, fieldName) === undefined) {
|
|
@@ -20708,7 +20697,7 @@ function getSelectionNode(selections, fragments, fieldName) {
|
|
|
20708
20697
|
}
|
|
20709
20698
|
else if (selection.kind === 'FragmentSpread') {
|
|
20710
20699
|
const fragment = fragments[selection.name.value];
|
|
20711
|
-
return getSelectionNode(fragment
|
|
20700
|
+
return getSelectionNode(fragment?.selectionSet.selections, fragments, fieldName);
|
|
20712
20701
|
}
|
|
20713
20702
|
else if (selection.kind === 'InlineFragment') {
|
|
20714
20703
|
return getSelectionNode(selection.selectionSet.selections, fragments, fieldName);
|
|
@@ -21005,12 +20994,11 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
21005
20994
|
const request = createResourceRequest$1(resourceParams);
|
|
21006
20995
|
return luvio.dispatchResourceRequest(request, options)
|
|
21007
20996
|
.then((response) => {
|
|
21008
|
-
|
|
21009
|
-
const graphqlErrors = (_a = response === null || response === void 0 ? void 0 : response.body) === null || _a === void 0 ? void 0 : _a.errors;
|
|
20997
|
+
const graphqlErrors = response?.body?.errors;
|
|
21010
20998
|
if ((graphqlErrors || []).length === 0) {
|
|
21011
20999
|
return response;
|
|
21012
21000
|
}
|
|
21013
|
-
return Promise.reject({ errorType: 'adapterError', error:
|
|
21001
|
+
return Promise.reject({ errorType: 'adapterError', error: response?.body?.errors });
|
|
21014
21002
|
})
|
|
21015
21003
|
.then((response) => {
|
|
21016
21004
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
@@ -22269,4 +22257,4 @@ register({
|
|
|
22269
22257
|
});
|
|
22270
22258
|
|
|
22271
22259
|
export { configurationForGraphQLAdapters as configuration, graphql, factory$1 as graphqlAdapterFactory, graphqlBatch, graphqlBatch_imperative, graphql_imperative };
|
|
22272
|
-
// version: 1.
|
|
22260
|
+
// version: 1.322.0-87f682c9f3
|
package/sfdc/index.js
CHANGED
|
@@ -143,7 +143,7 @@ const configurationForOneStoreEnabledAdapters = {
|
|
|
143
143
|
* @returns Luvio or one store wire adapter constructor.
|
|
144
144
|
*/
|
|
145
145
|
function getLuvioOrOneStoreAdapter(luvioAdapter, oneStoreAdapter) {
|
|
146
|
-
return oneStoreAdapter
|
|
146
|
+
return oneStoreAdapter ?? luvioAdapter;
|
|
147
147
|
}
|
|
148
148
|
const getKeywordSearchResultsFactory = new Configurable();
|
|
149
149
|
const getListRecordsByNameFactory = new Configurable();
|
|
@@ -12069,7 +12069,7 @@ function validate$1A(obj, path = 'RecordLayoutSectionUserStateRepresentation') {
|
|
|
12069
12069
|
}
|
|
12070
12070
|
|
|
12071
12071
|
const TTL$v = 900000;
|
|
12072
|
-
const VERSION$14 = "
|
|
12072
|
+
const VERSION$14 = "12123f1aca1b5a48303b1d099f9f5629";
|
|
12073
12073
|
function validate$1z(obj, path = 'RecordLayoutUserStateRepresentation') {
|
|
12074
12074
|
const v_error = (() => {
|
|
12075
12075
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -12082,8 +12082,29 @@ function validate$1z(obj, path = 'RecordLayoutUserStateRepresentation') {
|
|
|
12082
12082
|
}
|
|
12083
12083
|
const obj_id = obj.id;
|
|
12084
12084
|
const path_id = path + '.id';
|
|
12085
|
-
|
|
12086
|
-
|
|
12085
|
+
let obj_id_union0 = null;
|
|
12086
|
+
const obj_id_union0_error = (() => {
|
|
12087
|
+
if (typeof obj_id !== 'string') {
|
|
12088
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
12089
|
+
}
|
|
12090
|
+
})();
|
|
12091
|
+
if (obj_id_union0_error != null) {
|
|
12092
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
12093
|
+
}
|
|
12094
|
+
let obj_id_union1 = null;
|
|
12095
|
+
const obj_id_union1_error = (() => {
|
|
12096
|
+
if (obj_id !== null) {
|
|
12097
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
12098
|
+
}
|
|
12099
|
+
})();
|
|
12100
|
+
if (obj_id_union1_error != null) {
|
|
12101
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
12102
|
+
}
|
|
12103
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
12104
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
12105
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
12106
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
12107
|
+
return new TypeError(message);
|
|
12087
12108
|
}
|
|
12088
12109
|
const obj_layoutType = obj.layoutType;
|
|
12089
12110
|
const path_layoutType = path + '.layoutType';
|
|
@@ -20714,11 +20735,11 @@ function validateAdapterConfig$N(untrustedConfig, _configPropertyNames) {
|
|
|
20714
20735
|
if (config === null) {
|
|
20715
20736
|
return null;
|
|
20716
20737
|
}
|
|
20717
|
-
// recordTypeId coercion is nuts: if `null` (but not undefined) then use MASTER record type id
|
|
20718
20738
|
let recordTypeId = config.recordTypeId;
|
|
20719
20739
|
if (recordTypeId === undefined) {
|
|
20720
20740
|
// must check untrusted bc config has been coerced
|
|
20721
|
-
if (untrustedConfig.recordTypeId !== null
|
|
20741
|
+
if (untrustedConfig.recordTypeId !== null &&
|
|
20742
|
+
untrustedConfig.recordTypeId !== undefined) {
|
|
20722
20743
|
return null;
|
|
20723
20744
|
}
|
|
20724
20745
|
recordTypeId = MAIN_RECORD_TYPE_ID;
|
|
@@ -34684,8 +34705,7 @@ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
34684
34705
|
}
|
|
34685
34706
|
|
|
34686
34707
|
function keyBuilder$8(luvio, params) {
|
|
34687
|
-
|
|
34688
|
-
return keyPrefix + '::LookupValuesRepresentation:(' + 'dependentFieldBindings:' + params.queryParams.dependentFieldBindings + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'q:' + params.queryParams.q + ',' + 'searchType:' + params.queryParams.searchType + ',' + 'sourceRecordId:' + params.queryParams.sourceRecordId + ',' + 'targetApiName:' + params.queryParams.targetApiName + ',' + 'fieldApiName:' + params.urlParams.fieldApiName + ',' + 'objectApiName:' + params.urlParams.objectApiName + ',' + (((_a = params.body.sourceRecord) === null || _a === void 0 ? void 0 : _a.allowSaveOnDuplicate) === undefined ? 'sourceRecord.allowSaveOnDuplicate' : 'sourceRecord.allowSaveOnDuplicate:' + ((_b = params.body.sourceRecord) === null || _b === void 0 ? void 0 : _b.allowSaveOnDuplicate)) + '::' + (((_c = params.body.sourceRecord) === null || _c === void 0 ? void 0 : _c.apiName) === undefined ? 'sourceRecord.apiName' : 'sourceRecord.apiName:' + ((_d = params.body.sourceRecord) === null || _d === void 0 ? void 0 : _d.apiName)) + '::' + stableJSONStringify((_e = params.body.sourceRecord) === null || _e === void 0 ? void 0 : _e.fields) + '::' + (params.body.orderBy === undefined ? undefined : ('[' + params.body.orderBy.map(element => 'orderBy.fieldApiName:' + element.fieldApiName + '::' + 'orderBy.isAscending:' + element.isAscending).join(',') + ']')) + ')';
|
|
34708
|
+
return keyPrefix + '::LookupValuesRepresentation:(' + 'dependentFieldBindings:' + params.queryParams.dependentFieldBindings + ',' + 'page:' + params.queryParams.page + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'q:' + params.queryParams.q + ',' + 'searchType:' + params.queryParams.searchType + ',' + 'sourceRecordId:' + params.queryParams.sourceRecordId + ',' + 'targetApiName:' + params.queryParams.targetApiName + ',' + 'fieldApiName:' + params.urlParams.fieldApiName + ',' + 'objectApiName:' + params.urlParams.objectApiName + ',' + (params.body.sourceRecord?.allowSaveOnDuplicate === undefined ? 'sourceRecord.allowSaveOnDuplicate' : 'sourceRecord.allowSaveOnDuplicate:' + params.body.sourceRecord?.allowSaveOnDuplicate) + '::' + (params.body.sourceRecord?.apiName === undefined ? 'sourceRecord.apiName' : 'sourceRecord.apiName:' + params.body.sourceRecord?.apiName) + '::' + stableJSONStringify(params.body.sourceRecord?.fields) + '::' + (params.body.orderBy === undefined ? undefined : ('[' + params.body.orderBy.map(element => 'orderBy.fieldApiName:' + element.fieldApiName + '::' + 'orderBy.isAscending:' + element.isAscending).join(',') + ']')) + ')';
|
|
34689
34709
|
}
|
|
34690
34710
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
34691
34711
|
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
|
|
@@ -38089,7 +38109,6 @@ const getSearchFilterMetadataMetadata = { apiFamily: keyPrefix, name: adapterNam
|
|
|
38089
38109
|
const getSearchFilterOptionsMetadata = { apiFamily: keyPrefix, name: adapterName$b, ttl: 30000 };
|
|
38090
38110
|
const getSearchResultsMetadata = { apiFamily: keyPrefix, name: adapterName$9, ttl: 200 };
|
|
38091
38111
|
function bindExportsTo(luvio) {
|
|
38092
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
38093
38112
|
// LDS adapters
|
|
38094
38113
|
const getActionOverrides_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getActionOverrides', getActionOverridesAdapterFactory), getActionOverridesMetadata);
|
|
38095
38114
|
const getAllApps_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllApps', getAllAppsAdapterFactory), getAllAppsMetadata);
|
|
@@ -38098,7 +38117,7 @@ function bindExportsTo(luvio) {
|
|
|
38098
38117
|
const getDuplicates_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDuplicates', getDuplicatesAdapterFactory), getDuplicatesMetadata);
|
|
38099
38118
|
const getFlexipageFormulaOverrides_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getFlexipageFormulaOverrides', getFlexipageFormulaOverridesAdapterFactory), getFlexipageFormulaOverridesMetadata);
|
|
38100
38119
|
const getGlobalActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getGlobalActions', getGlobalActionsAdapterFactory), getGlobalActionsMetadata);
|
|
38101
|
-
const getKeywordSearchResults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getKeywordSearchResults',
|
|
38120
|
+
const getKeywordSearchResults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getKeywordSearchResults', configurationForEnvironmentFactoryOverrides.getKeywordSearchResultsAdapterFactory() ?? getKeywordSearchResultsAdapterFactory), getKeywordSearchResultsMetadata);
|
|
38102
38121
|
const getLayout_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getLayout', getLayoutAdapterFactory), getLayoutMetadata);
|
|
38103
38122
|
const getLayoutUserState_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getLayoutUserState', getLayoutUserStateAdapterFactory), getLayoutUserStateMetadata);
|
|
38104
38123
|
const getListInfoByName_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getListInfoByName', getListInfoByNameAdapterFactory), luvio, 'getListInfoByName'), getListInfoByNameMetadata);
|
|
@@ -38106,11 +38125,11 @@ function bindExportsTo(luvio) {
|
|
|
38106
38125
|
const getListInfosByObjectName_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getListInfosByObjectName', getListInfosByObjectNameAdapterFactory), luvio, 'getListInfosByObjectName'), getListInfosByObjectNameMetadata);
|
|
38107
38126
|
const getListObjectInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getListObjectInfo', getListObjectInfoAdapterFactory), luvio, 'getListObjectInfo'), getListObjectInfoMetadata);
|
|
38108
38127
|
const getListPreferences_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getListPreferences', getListPreferencesAdapterFactory), getListPreferencesMetadata);
|
|
38109
|
-
const getListRecordsByName_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getListRecordsByName',
|
|
38110
|
-
const getListUi_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getListUi',
|
|
38128
|
+
const getListRecordsByName_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getListRecordsByName', configurationForEnvironmentFactoryOverrides.getListRecordsByNameAdapterFactory() ?? factory$a), luvio, 'getListRecordsByName'), getListRecordsByNameMetadata);
|
|
38129
|
+
const getListUi_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getListUi', configurationForEnvironmentFactoryOverrides.getListUiAdapterFactory() ?? factory$h), getListUiMetadata);
|
|
38111
38130
|
const getLookupActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getLookupActions', getLookupActionsAdapterFactory), getLookupActionsMetadata);
|
|
38112
38131
|
const getLookupMetadata_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getLookupMetadata', getLookupMetadataAdapterFactory), getLookupMetadataMetadata);
|
|
38113
|
-
const getLookupRecords_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getLookupRecords',
|
|
38132
|
+
const getLookupRecords_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getLookupRecords', configurationForEnvironmentFactoryOverrides.getLookupRecordsAdapterFactory() ?? factory$9), getLookupRecordsMetadata);
|
|
38114
38133
|
const getNavItems_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getNavItems', getNavItemsAdapterFactory), getNavItemsMetadata);
|
|
38115
38134
|
const getObjectCreateActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getObjectCreateActions', getObjectCreateActionsAdapterFactory), getObjectCreateActionsMetadata);
|
|
38116
38135
|
const getObjectInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getObjectInfo', getObjectInfoAdapterFactory), luvio, 'getObjectInfo'), getObjectInfoMetadata);
|
|
@@ -38118,18 +38137,18 @@ function bindExportsTo(luvio) {
|
|
|
38118
38137
|
const getPathLayout_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPathLayout', getPathLayoutAdapterFactory), getPathLayoutMetadata);
|
|
38119
38138
|
const getPicklistValues_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPicklistValues', getPicklistValuesAdapterFactory), getPicklistValuesMetadata);
|
|
38120
38139
|
const getPicklistValuesByRecordType_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getPicklistValuesByRecordType', getPicklistValuesByRecordTypeAdapterFactory), getPicklistValuesByRecordTypeMetadata);
|
|
38121
|
-
const getQuickActionDefaults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getQuickActionDefaults',
|
|
38140
|
+
const getQuickActionDefaults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getQuickActionDefaults', configurationForEnvironmentFactoryOverrides.getQuickActionDefaultsAdapterFactory() ?? getQuickActionDefaultsAdapterFactory), getQuickActionDefaultsMetadata);
|
|
38122
38141
|
const getQuickActionInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getQuickActionInfo', getQuickActionInfoAdapterFactory), getQuickActionInfoMetadata);
|
|
38123
38142
|
const getQuickActionLayout_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getQuickActionLayout', getQuickActionLayoutAdapterFactory), getQuickActionLayoutMetadata);
|
|
38124
|
-
const getRecord_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRecord',
|
|
38143
|
+
const getRecord_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRecord', configurationForEnvironmentFactoryOverrides.getRecordAdapterFactory() ?? factory$f), luvio, 'getRecord'), getRecordMetadata);
|
|
38125
38144
|
const getRecordActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRecordActions', getRecordActionsAdapterFactory), luvio, 'getRecordActions'), getRecordActionsMetadata);
|
|
38126
38145
|
const getRecordAvatars_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRecordAvatars', getRecordAvatarsAdapterFactory), luvio, 'getRecordAvatars'), getRecordAvatarsMetadata);
|
|
38127
|
-
const getRecordCreateDefaults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordCreateDefaults',
|
|
38146
|
+
const getRecordCreateDefaults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordCreateDefaults', configurationForEnvironmentFactoryOverrides.getRecordCreateDefaultsAdapterFactory() ?? factory$7), getRecordCreateDefaultsMetadata);
|
|
38128
38147
|
const getRecordEditActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordEditActions', getRecordEditActionsAdapterFactory), getRecordEditActionsMetadata);
|
|
38129
|
-
const getRecordTemplateClone_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordTemplateClone',
|
|
38130
|
-
const getRecordTemplateCreate_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordTemplateCreate',
|
|
38131
|
-
const getRecordUi_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordUi',
|
|
38132
|
-
const getRecords_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRecords',
|
|
38148
|
+
const getRecordTemplateClone_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordTemplateClone', configurationForEnvironmentFactoryOverrides.getRecordTemplateCloneAdapterFactory() ?? factory$6), getRecordTemplateCloneMetadata);
|
|
38149
|
+
const getRecordTemplateCreate_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordTemplateCreate', configurationForEnvironmentFactoryOverrides.getRecordTemplateCreateAdapterFactory() ?? factory$5), getRecordTemplateCreateMetadata);
|
|
38150
|
+
const getRecordUi_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordUi', configurationForEnvironmentFactoryOverrides.getRecordUiAdapterFactory() ?? factory$g), getRecordUiMetadata);
|
|
38151
|
+
const getRecords_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRecords', configurationForEnvironmentFactoryOverrides.getRecordsAdapterFactory() ?? getRecordsAdapterFactory), luvio, 'getRecords'), getRecordsMetadata);
|
|
38133
38152
|
const getRelatedListActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListActions', getRelatedListActionsAdapterFactory), getRelatedListActionsMetadata);
|
|
38134
38153
|
const getRelatedListCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListCount', getRelatedListCountAdapterFactory), getRelatedListCountMetadata);
|
|
38135
38154
|
const getRelatedListInfo_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListInfo', getRelatedListInfoAdapterFactory), luvio, 'getRelatedListInfo'), getRelatedListInfoMetadata);
|
|
@@ -38137,14 +38156,14 @@ function bindExportsTo(luvio) {
|
|
|
38137
38156
|
const getRelatedListPreferences_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferences', getRelatedListPreferencesAdapterFactory), getRelatedListPreferencesMetadata);
|
|
38138
38157
|
const getRelatedListPreferencesBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferencesBatch', getRelatedListPreferencesBatchAdapterFactory), getRelatedListPreferencesBatchMetadata);
|
|
38139
38158
|
const getRelatedListRecordActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListRecordActions', getRelatedListRecordActionsAdapterFactory), getRelatedListRecordActionsMetadata);
|
|
38140
|
-
const getRelatedListRecords_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecords',
|
|
38141
|
-
const getRelatedListRecordsBatch_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecordsBatch',
|
|
38159
|
+
const getRelatedListRecords_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecords', configurationForEnvironmentFactoryOverrides.getRelatedListRecordsAdapterFactory() ?? getRelatedListRecordsAdapterFactory), luvio, 'getRelatedListRecords'), getRelatedListRecordsMetadata);
|
|
38160
|
+
const getRelatedListRecordsBatch_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListRecordsBatch', configurationForEnvironmentFactoryOverrides.getRelatedListRecordsBatchAdapterFactory() ?? getRelatedListRecordsBatchAdapterFactory), luvio, 'getRelatedListRecordsBatch'), getRelatedListRecordsBatchMetadata);
|
|
38142
38161
|
const getRelatedListsActions_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListsActions', getRelatedListsActionsAdapterFactory), luvio, 'getRelatedListsActions'), getRelatedListsActionsMetadata);
|
|
38143
38162
|
const getRelatedListsCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListsCount', getRelatedListsCountAdapterFactory), getRelatedListsCountMetadata);
|
|
38144
38163
|
const getRelatedListsInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListsInfo', getRelatedListsInfoAdapterFactory), getRelatedListsInfoMetadata);
|
|
38145
38164
|
const getSearchFilterMetadata_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchFilterMetadata', getSearchFilterMetadataAdapterFactory), getSearchFilterMetadataMetadata);
|
|
38146
38165
|
const getSearchFilterOptions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchFilterOptions', getSearchFilterOptionsAdapterFactory), getSearchFilterOptionsMetadata);
|
|
38147
|
-
const getSearchResults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchResults',
|
|
38166
|
+
const getSearchResults_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getSearchResults', configurationForEnvironmentFactoryOverrides.getSearchResultsAdapterFactory() ?? getSearchResultsAdapterFactory), getSearchResultsMetadata);
|
|
38148
38167
|
function unwrapSnapshotData(factory) {
|
|
38149
38168
|
const adapter = factory(luvio);
|
|
38150
38169
|
return (...config) => adapter(...config).then(snapshot => snapshot.data);
|
|
@@ -38485,4 +38504,4 @@ withDefaultLuvio((luvio) => {
|
|
|
38485
38504
|
});
|
|
38486
38505
|
|
|
38487
38506
|
export { API_NAMESPACE, InMemoryRecordRepresentationQueryEvaluator, MRU, RepresentationType$J as ObjectInfoDirectoryEntryRepresentationType, RepresentationType$O as ObjectInfoRepresentationType, RECORD_FIELDS_KEY_JUNCTION, RECORD_ID_PREFIX, RECORD_REPRESENTATION_NAME, RECORD_VIEW_ENTITY_ID_PREFIX, RECORD_VIEW_ENTITY_REPRESENTATION_NAME, RepresentationType$V as RecordRepresentationRepresentationType, TTL$z as RecordRepresentationTTL, RepresentationType$V as RecordRepresentationType, VERSION$1e 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, getListInfoByNameAdapterFactory, getListInfoByName_imperative, getListInfosByName, getListInfosByName_imperative, getListInfosByObjectName, getListInfosByObjectNameAdapterFactory, getListInfosByObjectName_imperative, getListObjectInfo, getListObjectInfoAdapterFactory, getListObjectInfo_imperative, getListPreferences, getListPreferences_imperative, getListRecordsByName, factory$a as getListRecordsByNameAdapterFactory, 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, getQuickActionInfo, getQuickActionInfo_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, getRelatedListInfoAdapterFactory, 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$X as getTypeCacheKeysRecord, ingest as ingestContentDocumentCompositeRepresentation, ingest$H as ingestObjectInfo, ingest$B as ingestQuickActionExecutionRepresentation, ingest$O as ingestRecord, instrument, isStoreKeyRecordViewEntity, isSupportedEntity, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$D as keyBuilderFromTypeRecordRepresentation, keyBuilder$1Y as keyBuilderObjectInfo, keyBuilder$1R as keyBuilderQuickActionExecutionRepresentation, keyBuilder$29 as keyBuilderRecord, notifyAllListInfoSummaryUpdateAvailable, notifyAllListRecordUpdateAvailable, notifyListInfoSummaryUpdateAvailable, notifyListInfoUpdateAvailable, notifyListRecordCollectionUpdateAvailable, notifyListViewSummaryUpdateAvailable, notifyQuickActionDefaultsUpdateAvailable, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, registerPrefetcher, updateLayoutUserState, updateListInfoByName, updateListPreferences, updateRecord, updateRecordAvatar, updateRelatedListInfo, updateRelatedListPreferences };
|
|
38488
|
-
// version: 1.
|
|
38507
|
+
// version: 1.322.0-87f682c9f3
|
package/src/raml/api.raml
CHANGED