@salesforce/lds-adapters-uiapi 1.360.1 → 1.362.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/graphql/types/Analytics__AnalyticsRepresentation.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/graphql/types/Analytics__AnalyticsRepresentationInterface.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/graphql/types/Analytics__DataspaceRepresentation.d.ts +39 -0
- package/dist/es/es2018/types/src/generated/graphql/types/Analytics__SemanticDefinition.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/types/FieldValueRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/selectors/record.d.ts +1 -1
- package/dist/es/es2018/uiapi-records-service.js +4798 -4524
- package/package.json +7 -7
- package/sfdc/graphqlAdapters.js +3074 -2858
- package/sfdc/index.js +129 -75
- package/sfdc/uiapi-static-functions.js +1 -1
- package/src/raml/api.raml +1 -1
- package/src/raml/uiapi.graphql +10 -0
package/sfdc/index.js
CHANGED
|
@@ -1682,7 +1682,7 @@ function validate$1_(obj, path = 'ListInfoRepresentation') {
|
|
|
1682
1682
|
for (let i = 0; i < obj_displayColumns.length; i++) {
|
|
1683
1683
|
const obj_displayColumns_item = obj_displayColumns[i];
|
|
1684
1684
|
const path_displayColumns_item = path_displayColumns + '[' + i + ']';
|
|
1685
|
-
if (typeof obj_displayColumns_item !== 'object') {
|
|
1685
|
+
if (typeof obj_displayColumns_item !== 'object' || Array.isArray(obj_displayColumns_item)) {
|
|
1686
1686
|
return new TypeError('Expected "object" but received "' + typeof obj_displayColumns_item + '" (at "' + path_displayColumns_item + '")');
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
@@ -2209,7 +2209,7 @@ function equals$18(existing, incoming) {
|
|
|
2209
2209
|
return true;
|
|
2210
2210
|
}
|
|
2211
2211
|
|
|
2212
|
-
const VERSION$1i = "
|
|
2212
|
+
const VERSION$1i = "2738fe8faf98ecd076d7c4df86fd5bf0";
|
|
2213
2213
|
function validate$1Y(obj, path = 'FieldValueRepresentation') {
|
|
2214
2214
|
const v_error = (() => {
|
|
2215
2215
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2245,7 +2245,7 @@ function validate$1Y(obj, path = 'FieldValueRepresentation') {
|
|
|
2245
2245
|
const path_value = path + '.value';
|
|
2246
2246
|
let obj_value_union0 = null;
|
|
2247
2247
|
const obj_value_union0_error = (() => {
|
|
2248
|
-
if (typeof obj_value !== 'object') {
|
|
2248
|
+
if (typeof obj_value !== 'object' || Array.isArray(obj_value)) {
|
|
2249
2249
|
return new TypeError('Expected "object" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
2250
2250
|
}
|
|
2251
2251
|
})();
|
|
@@ -2281,20 +2281,37 @@ function validate$1Y(obj, path = 'FieldValueRepresentation') {
|
|
|
2281
2281
|
}
|
|
2282
2282
|
let obj_value_union4 = null;
|
|
2283
2283
|
const obj_value_union4_error = (() => {
|
|
2284
|
-
if (obj_value
|
|
2285
|
-
return new TypeError('Expected "
|
|
2284
|
+
if (!ArrayIsArray(obj_value)) {
|
|
2285
|
+
return new TypeError('Expected "array" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
2286
|
+
}
|
|
2287
|
+
for (let i = 0; i < obj_value.length; i++) {
|
|
2288
|
+
const obj_value_item = obj_value[i];
|
|
2289
|
+
const path_value_item = path_value + '[' + i + ']';
|
|
2290
|
+
if (typeof obj_value_item !== 'string') {
|
|
2291
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value_item + '" (at "' + path_value_item + '")');
|
|
2292
|
+
}
|
|
2286
2293
|
}
|
|
2287
2294
|
})();
|
|
2288
2295
|
if (obj_value_union4_error != null) {
|
|
2289
2296
|
obj_value_union4 = obj_value_union4_error.message;
|
|
2290
2297
|
}
|
|
2291
|
-
|
|
2298
|
+
let obj_value_union5 = null;
|
|
2299
|
+
const obj_value_union5_error = (() => {
|
|
2300
|
+
if (obj_value !== null) {
|
|
2301
|
+
return new TypeError('Expected "null" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
2302
|
+
}
|
|
2303
|
+
})();
|
|
2304
|
+
if (obj_value_union5_error != null) {
|
|
2305
|
+
obj_value_union5 = obj_value_union5_error.message;
|
|
2306
|
+
}
|
|
2307
|
+
if (obj_value_union0 && obj_value_union1 && obj_value_union2 && obj_value_union3 && obj_value_union4 && obj_value_union5) {
|
|
2292
2308
|
let message = 'Object doesn\'t match union (at "' + path_value + '")';
|
|
2293
2309
|
message += '\n' + obj_value_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2294
2310
|
message += '\n' + obj_value_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2295
2311
|
message += '\n' + obj_value_union2.split('\n').map((line) => '\t' + line).join('\n');
|
|
2296
2312
|
message += '\n' + obj_value_union3.split('\n').map((line) => '\t' + line).join('\n');
|
|
2297
2313
|
message += '\n' + obj_value_union4.split('\n').map((line) => '\t' + line).join('\n');
|
|
2314
|
+
message += '\n' + obj_value_union5.split('\n').map((line) => '\t' + line).join('\n');
|
|
2298
2315
|
return new TypeError(message);
|
|
2299
2316
|
}
|
|
2300
2317
|
})();
|
|
@@ -2304,7 +2321,7 @@ const RepresentationType$X = 'FieldValueRepresentation';
|
|
|
2304
2321
|
function normalize$Q(input, existing, path, luvio, store, timestamp) {
|
|
2305
2322
|
const input_value = input.value;
|
|
2306
2323
|
const input_value_id = path.fullPath + '__value';
|
|
2307
|
-
if (input_value !== null && typeof input_value === 'object') {
|
|
2324
|
+
if (!Array.isArray(input_value) && input_value !== null && typeof input_value === 'object') {
|
|
2308
2325
|
input.value = ingest$O(input_value, {
|
|
2309
2326
|
fullPath: input_value_id,
|
|
2310
2327
|
propertyName: 'value',
|
|
@@ -2329,10 +2346,10 @@ const select$1X = function FieldValueRepresentationSelect() {
|
|
|
2329
2346
|
kind: 'Scalar'
|
|
2330
2347
|
},
|
|
2331
2348
|
{
|
|
2349
|
+
kind: 'Object',
|
|
2332
2350
|
name: 'value',
|
|
2333
|
-
kind: 'Link',
|
|
2334
2351
|
nullable: true,
|
|
2335
|
-
|
|
2352
|
+
// Complex union deep
|
|
2336
2353
|
}
|
|
2337
2354
|
]
|
|
2338
2355
|
};
|
|
@@ -2345,12 +2362,32 @@ function equals$17(existing, incoming) {
|
|
|
2345
2362
|
}
|
|
2346
2363
|
const existing_value = existing.value;
|
|
2347
2364
|
const incoming_value = incoming.value;
|
|
2348
|
-
if (!(
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
existing_value
|
|
2365
|
+
if (!((() => {
|
|
2366
|
+
if (existing_value === null || incoming_value === null) {
|
|
2367
|
+
return existing_value === incoming_value;
|
|
2368
|
+
}
|
|
2369
|
+
if (Array.isArray(existing_value) && Array.isArray(incoming_value)) {
|
|
2370
|
+
const equals_value_items = equalsArray(existing_value, incoming_value, (existing_value_item, incoming_value_item) => {
|
|
2371
|
+
if (!(existing_value_item === incoming_value_item)) {
|
|
2372
|
+
return false;
|
|
2373
|
+
}
|
|
2374
|
+
});
|
|
2375
|
+
if (equals_value_items === false) {
|
|
2376
|
+
return false;
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2379
|
+
else {
|
|
2380
|
+
if (!(existing_value === incoming_value
|
|
2381
|
+
|| (existing_value != null &&
|
|
2382
|
+
incoming_value != null &&
|
|
2383
|
+
existing_value.__ref != null &&
|
|
2384
|
+
incoming_value.__ref != null &&
|
|
2385
|
+
existing_value.__ref === incoming_value.__ref))) {
|
|
2386
|
+
return false;
|
|
2387
|
+
}
|
|
2388
|
+
}
|
|
2389
|
+
return true;
|
|
2390
|
+
})())) {
|
|
2354
2391
|
return false;
|
|
2355
2392
|
}
|
|
2356
2393
|
return true;
|
|
@@ -2375,7 +2412,7 @@ function getTypeCacheKeys$Y(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
2375
2412
|
representationName: RepresentationType$X,
|
|
2376
2413
|
mergeable: false
|
|
2377
2414
|
});
|
|
2378
|
-
if (input.value !== null && typeof input.value === 'object') {
|
|
2415
|
+
if (!Array.isArray(input.value) && input.value !== null && typeof input.value === 'object') {
|
|
2379
2416
|
getTypeCacheKeys$X(rootKeySet, luvio, input.value);
|
|
2380
2417
|
}
|
|
2381
2418
|
}
|
|
@@ -2561,7 +2598,7 @@ function validate$1X(obj, path = 'RecordCollectionRepresentation') {
|
|
|
2561
2598
|
for (let i = 0; i < obj_records.length; i++) {
|
|
2562
2599
|
const obj_records_item = obj_records[i];
|
|
2563
2600
|
const path_records_item = path_records + '[' + i + ']';
|
|
2564
|
-
if (typeof obj_records_item !== 'object') {
|
|
2601
|
+
if (typeof obj_records_item !== 'object' || Array.isArray(obj_records_item)) {
|
|
2565
2602
|
return new TypeError('Expected "object" but received "' + typeof obj_records_item + '" (at "' + path_records_item + '")');
|
|
2566
2603
|
}
|
|
2567
2604
|
}
|
|
@@ -2737,7 +2774,7 @@ function validate$1W(obj, path = 'RecordRepresentation') {
|
|
|
2737
2774
|
const key = obj_childRelationships_keys[i];
|
|
2738
2775
|
const obj_childRelationships_prop = obj_childRelationships[key];
|
|
2739
2776
|
const path_childRelationships_prop = path_childRelationships + '["' + key + '"]';
|
|
2740
|
-
if (typeof obj_childRelationships_prop !== 'object') {
|
|
2777
|
+
if (typeof obj_childRelationships_prop !== 'object' || Array.isArray(obj_childRelationships_prop)) {
|
|
2741
2778
|
return new TypeError('Expected "object" but received "' + typeof obj_childRelationships_prop + '" (at "' + path_childRelationships_prop + '")');
|
|
2742
2779
|
}
|
|
2743
2780
|
}
|
|
@@ -2756,7 +2793,7 @@ function validate$1W(obj, path = 'RecordRepresentation') {
|
|
|
2756
2793
|
const key = obj_fields_keys[i];
|
|
2757
2794
|
const obj_fields_prop = obj_fields[key];
|
|
2758
2795
|
const path_fields_prop = path_fields + '["' + key + '"]';
|
|
2759
|
-
if (typeof obj_fields_prop !== 'object') {
|
|
2796
|
+
if (typeof obj_fields_prop !== 'object' || Array.isArray(obj_fields_prop)) {
|
|
2760
2797
|
return new TypeError('Expected "object" but received "' + typeof obj_fields_prop + '" (at "' + path_fields_prop + '")');
|
|
2761
2798
|
}
|
|
2762
2799
|
}
|
|
@@ -4781,6 +4818,11 @@ const SCALAR_VALUE_SELECTION = {
|
|
|
4781
4818
|
kind: 'Scalar',
|
|
4782
4819
|
name: 'value',
|
|
4783
4820
|
};
|
|
4821
|
+
const ARRAY_VALUE_SELECTION = {
|
|
4822
|
+
kind: 'Scalar',
|
|
4823
|
+
name: 'value',
|
|
4824
|
+
plural: true,
|
|
4825
|
+
};
|
|
4784
4826
|
const DISPLAY_VALUE_SELECTION = {
|
|
4785
4827
|
kind: 'Scalar',
|
|
4786
4828
|
name: 'displayValue',
|
|
@@ -4866,6 +4908,10 @@ function createPathSelectionFromValue(fields) {
|
|
|
4866
4908
|
},
|
|
4867
4909
|
};
|
|
4868
4910
|
}
|
|
4911
|
+
else if (Array.isArray(fieldValue)) {
|
|
4912
|
+
// this should change if we ever accept arrays of non-scalars
|
|
4913
|
+
fieldValueSelection = ARRAY_VALUE_SELECTION;
|
|
4914
|
+
}
|
|
4869
4915
|
const fieldSelection = {
|
|
4870
4916
|
kind: 'Link',
|
|
4871
4917
|
name: fieldName,
|
|
@@ -4967,7 +5013,7 @@ const DRAFTS_SELECTION = {
|
|
|
4967
5013
|
required: false,
|
|
4968
5014
|
};
|
|
4969
5015
|
function isSpanningRecord(fieldValue) {
|
|
4970
|
-
return fieldValue !== null && typeof fieldValue === 'object';
|
|
5016
|
+
return fieldValue !== null && typeof fieldValue === 'object' && !Array.isArray(fieldValue);
|
|
4971
5017
|
}
|
|
4972
5018
|
function createRecordSelection(fieldDefinition) {
|
|
4973
5019
|
const sel = dynamicSelect$8({
|
|
@@ -5060,7 +5106,7 @@ function extractTrackedFieldsToTrie(recordId, node, root, config, visitedRecordI
|
|
|
5060
5106
|
continue;
|
|
5061
5107
|
}
|
|
5062
5108
|
const { maxDepth, onlyFetchLeafNodeIdAndName } = config;
|
|
5063
|
-
if (field.isScalar('value') === false) {
|
|
5109
|
+
if (field.isScalar('value') === false && !Array.isArray(field.data?.value)) {
|
|
5064
5110
|
if (depth + 1 > maxDepth) {
|
|
5065
5111
|
if (onlyFetchLeafNodeIdAndName === true) {
|
|
5066
5112
|
addScalarFieldId(current);
|
|
@@ -5097,7 +5143,7 @@ function extractTrackedFieldsToTrie(recordId, node, root, config, visitedRecordI
|
|
|
5097
5143
|
addScalarFieldName(current);
|
|
5098
5144
|
continue;
|
|
5099
5145
|
}
|
|
5100
|
-
if (field.scalar('value') === null) {
|
|
5146
|
+
if (field.scalar('value') === null && !Array.isArray(field.data?.value)) {
|
|
5101
5147
|
continue;
|
|
5102
5148
|
}
|
|
5103
5149
|
}
|
|
@@ -5237,7 +5283,7 @@ function markNulledOutPath(record, path) {
|
|
|
5237
5283
|
const link = fieldValueRepresentation.link(fieldName);
|
|
5238
5284
|
const resolved = link.follow();
|
|
5239
5285
|
if (isGraphNode(resolved) &&
|
|
5240
|
-
resolved.isScalar('value') &&
|
|
5286
|
+
(resolved.isScalar('value') || !Array.isArray(resolved.data?.value)) &&
|
|
5241
5287
|
path.length > 0 && // TODO [W-14082782]: temporary fix
|
|
5242
5288
|
!isFrozen(link.data)) {
|
|
5243
5289
|
const linkState = link.linkData();
|
|
@@ -5281,7 +5327,7 @@ function _markMissingPath(record, path) {
|
|
|
5281
5327
|
return;
|
|
5282
5328
|
}
|
|
5283
5329
|
// if value is not a scalar, follow the link and mark it as missing
|
|
5284
|
-
if (fieldValue.isScalar('value') === false) {
|
|
5330
|
+
if (fieldValue.isScalar('value') === false && !Array.isArray(fieldValue.data?.value)) {
|
|
5285
5331
|
_markMissingPath(fieldValue
|
|
5286
5332
|
.link('value')
|
|
5287
5333
|
.follow(), path);
|
|
@@ -5402,7 +5448,7 @@ function mergePendingFields(newRecord, oldRecord, existingNode) {
|
|
|
5402
5448
|
.link(spanningFieldName);
|
|
5403
5449
|
const field = fieldValueRep.follow();
|
|
5404
5450
|
if (isGraphNode(field)) {
|
|
5405
|
-
if (field.isScalar('value') === false) {
|
|
5451
|
+
if (field.isScalar('value') === false && !Array.isArray(field.data?.value)) {
|
|
5406
5452
|
const record = field
|
|
5407
5453
|
.link('value')
|
|
5408
5454
|
.follow();
|
|
@@ -5644,7 +5690,7 @@ function fixDisplayValue(existing, incoming, path) {
|
|
|
5644
5690
|
function normalize$O(input, existing, path, luvio, store, timestamp, fieldsTrie, optionalFieldsTrie, recordConflictMap) {
|
|
5645
5691
|
const input_value = input.value;
|
|
5646
5692
|
const input_value_id = path.fullPath + '__value';
|
|
5647
|
-
if (input_value !== null && typeof input_value === 'object') {
|
|
5693
|
+
if (input_value !== null && typeof input_value === 'object' && !Array.isArray(input_value)) {
|
|
5648
5694
|
const ingest = createRecordIngest(fieldsTrie, optionalFieldsTrie, recordConflictMap);
|
|
5649
5695
|
input.value = ingest(input_value, {
|
|
5650
5696
|
fullPath: input_value_id,
|
|
@@ -6812,7 +6858,7 @@ function validate$1V(obj, path = 'ListRecordCollectionRepresentation') {
|
|
|
6812
6858
|
for (let i = 0; i < obj_records.length; i++) {
|
|
6813
6859
|
const obj_records_item = obj_records[i];
|
|
6814
6860
|
const path_records_item = path_records + '[' + i + ']';
|
|
6815
|
-
if (typeof obj_records_item !== 'object') {
|
|
6861
|
+
if (typeof obj_records_item !== 'object' || Array.isArray(obj_records_item)) {
|
|
6816
6862
|
return new TypeError('Expected "object" but received "' + typeof obj_records_item + '" (at "' + path_records_item + '")');
|
|
6817
6863
|
}
|
|
6818
6864
|
}
|
|
@@ -7223,14 +7269,22 @@ function equals$14(existing, incoming) {
|
|
|
7223
7269
|
if (existing_sortBy === null || incoming_sortBy === null) {
|
|
7224
7270
|
return existing_sortBy === incoming_sortBy;
|
|
7225
7271
|
}
|
|
7226
|
-
|
|
7227
|
-
|
|
7272
|
+
if (Array.isArray(existing_sortBy) && Array.isArray(incoming_sortBy)) {
|
|
7273
|
+
const equals_sortBy_items = equalsArray(existing_sortBy, incoming_sortBy, (existing_sortBy_item, incoming_sortBy_item) => {
|
|
7274
|
+
if (!(existing_sortBy_item === incoming_sortBy_item)) {
|
|
7275
|
+
return false;
|
|
7276
|
+
}
|
|
7277
|
+
});
|
|
7278
|
+
if (equals_sortBy_items === false) {
|
|
7279
|
+
return false;
|
|
7280
|
+
}
|
|
7281
|
+
}
|
|
7282
|
+
else {
|
|
7283
|
+
if (!(existing_sortBy === incoming_sortBy)) {
|
|
7228
7284
|
return false;
|
|
7229
7285
|
}
|
|
7230
|
-
});
|
|
7231
|
-
if (equals_sortBy_items === false) {
|
|
7232
|
-
return false;
|
|
7233
7286
|
}
|
|
7287
|
+
return true;
|
|
7234
7288
|
})())) {
|
|
7235
7289
|
return false;
|
|
7236
7290
|
}
|
|
@@ -7363,12 +7417,12 @@ function validate$1U(obj, path = 'ListUiRepresentation') {
|
|
|
7363
7417
|
}
|
|
7364
7418
|
const obj_info = obj.info;
|
|
7365
7419
|
const path_info = path + '.info';
|
|
7366
|
-
if (typeof obj_info !== 'object') {
|
|
7420
|
+
if (typeof obj_info !== 'object' || Array.isArray(obj_info)) {
|
|
7367
7421
|
return new TypeError('Expected "object" but received "' + typeof obj_info + '" (at "' + path_info + '")');
|
|
7368
7422
|
}
|
|
7369
7423
|
const obj_records = obj.records;
|
|
7370
7424
|
const path_records = path + '.records';
|
|
7371
|
-
if (typeof obj_records !== 'object') {
|
|
7425
|
+
if (typeof obj_records !== 'object' || Array.isArray(obj_records)) {
|
|
7372
7426
|
return new TypeError('Expected "object" but received "' + typeof obj_records + '" (at "' + path_records + '")');
|
|
7373
7427
|
}
|
|
7374
7428
|
})();
|
|
@@ -7765,7 +7819,7 @@ function validate$1S(obj, path = 'ListInfoSummaryCollectionRepresentation') {
|
|
|
7765
7819
|
for (let i = 0; i < obj_lists.length; i++) {
|
|
7766
7820
|
const obj_lists_item = obj_lists[i];
|
|
7767
7821
|
const path_lists_item = path_lists + '[' + i + ']';
|
|
7768
|
-
if (typeof obj_lists_item !== 'object') {
|
|
7822
|
+
if (typeof obj_lists_item !== 'object' || Array.isArray(obj_lists_item)) {
|
|
7769
7823
|
return new TypeError('Expected "object" but received "' + typeof obj_lists_item + '" (at "' + path_lists_item + '")');
|
|
7770
7824
|
}
|
|
7771
7825
|
}
|
|
@@ -8903,7 +8957,7 @@ function validate$1Q(obj, path = 'ListViewSummaryCollectionRepresentation') {
|
|
|
8903
8957
|
for (let i = 0; i < obj_lists.length; i++) {
|
|
8904
8958
|
const obj_lists_item = obj_lists[i];
|
|
8905
8959
|
const path_lists_item = path_lists + '[' + i + ']';
|
|
8906
|
-
if (typeof obj_lists_item !== 'object') {
|
|
8960
|
+
if (typeof obj_lists_item !== 'object' || Array.isArray(obj_lists_item)) {
|
|
8907
8961
|
return new TypeError('Expected "object" but received "' + typeof obj_lists_item + '" (at "' + path_lists_item + '")');
|
|
8908
8962
|
}
|
|
8909
8963
|
}
|
|
@@ -12258,7 +12312,7 @@ function validate$1B(obj, path = 'RecordUiRepresentation') {
|
|
|
12258
12312
|
const key = obj_layoutUserStates_keys[i];
|
|
12259
12313
|
const obj_layoutUserStates_prop = obj_layoutUserStates[key];
|
|
12260
12314
|
const path_layoutUserStates_prop = path_layoutUserStates + '["' + key + '"]';
|
|
12261
|
-
if (typeof obj_layoutUserStates_prop !== 'object') {
|
|
12315
|
+
if (typeof obj_layoutUserStates_prop !== 'object' || Array.isArray(obj_layoutUserStates_prop)) {
|
|
12262
12316
|
return new TypeError('Expected "object" but received "' + typeof obj_layoutUserStates_prop + '" (at "' + path_layoutUserStates_prop + '")');
|
|
12263
12317
|
}
|
|
12264
12318
|
}
|
|
@@ -12296,7 +12350,7 @@ function validate$1B(obj, path = 'RecordUiRepresentation') {
|
|
|
12296
12350
|
const key = obj_layouts_prop_prop_prop_keys[i];
|
|
12297
12351
|
const obj_layouts_prop_prop_prop_prop = obj_layouts_prop_prop_prop[key];
|
|
12298
12352
|
const path_layouts_prop_prop_prop_prop = path_layouts_prop_prop_prop + '["' + key + '"]';
|
|
12299
|
-
if (typeof obj_layouts_prop_prop_prop_prop !== 'object') {
|
|
12353
|
+
if (typeof obj_layouts_prop_prop_prop_prop !== 'object' || Array.isArray(obj_layouts_prop_prop_prop_prop)) {
|
|
12300
12354
|
return new TypeError('Expected "object" but received "' + typeof obj_layouts_prop_prop_prop_prop + '" (at "' + path_layouts_prop_prop_prop_prop + '")');
|
|
12301
12355
|
}
|
|
12302
12356
|
}
|
|
@@ -12313,7 +12367,7 @@ function validate$1B(obj, path = 'RecordUiRepresentation') {
|
|
|
12313
12367
|
const key = obj_objectInfos_keys[i];
|
|
12314
12368
|
const obj_objectInfos_prop = obj_objectInfos[key];
|
|
12315
12369
|
const path_objectInfos_prop = path_objectInfos + '["' + key + '"]';
|
|
12316
|
-
if (typeof obj_objectInfos_prop !== 'object') {
|
|
12370
|
+
if (typeof obj_objectInfos_prop !== 'object' || Array.isArray(obj_objectInfos_prop)) {
|
|
12317
12371
|
return new TypeError('Expected "object" but received "' + typeof obj_objectInfos_prop + '" (at "' + path_objectInfos_prop + '")');
|
|
12318
12372
|
}
|
|
12319
12373
|
}
|
|
@@ -12327,7 +12381,7 @@ function validate$1B(obj, path = 'RecordUiRepresentation') {
|
|
|
12327
12381
|
const key = obj_records_keys[i];
|
|
12328
12382
|
const obj_records_prop = obj_records[key];
|
|
12329
12383
|
const path_records_prop = path_records + '["' + key + '"]';
|
|
12330
|
-
if (typeof obj_records_prop !== 'object') {
|
|
12384
|
+
if (typeof obj_records_prop !== 'object' || Array.isArray(obj_records_prop)) {
|
|
12331
12385
|
return new TypeError('Expected "object" but received "' + typeof obj_records_prop + '" (at "' + path_records_prop + '")');
|
|
12332
12386
|
}
|
|
12333
12387
|
}
|
|
@@ -13868,7 +13922,7 @@ function validate$1z(obj, path = 'ObjectInfoDirectoryRepresentation') {
|
|
|
13868
13922
|
const key = obj_objects_keys[i];
|
|
13869
13923
|
const obj_objects_prop = obj_objects[key];
|
|
13870
13924
|
const path_objects_prop = path_objects + '["' + key + '"]';
|
|
13871
|
-
if (typeof obj_objects_prop !== 'object') {
|
|
13925
|
+
if (typeof obj_objects_prop !== 'object' || Array.isArray(obj_objects_prop)) {
|
|
13872
13926
|
return new TypeError('Expected "object" but received "' + typeof obj_objects_prop + '" (at "' + path_objects_prop + '")');
|
|
13873
13927
|
}
|
|
13874
13928
|
}
|
|
@@ -14176,7 +14230,7 @@ function validate$1x(obj, path = 'QuickActionDefaultsRepresentation') {
|
|
|
14176
14230
|
const key = obj_fields_keys[i];
|
|
14177
14231
|
const obj_fields_prop = obj_fields[key];
|
|
14178
14232
|
const path_fields_prop = path_fields + '["' + key + '"]';
|
|
14179
|
-
if (typeof obj_fields_prop !== 'object') {
|
|
14233
|
+
if (typeof obj_fields_prop !== 'object' || Array.isArray(obj_fields_prop)) {
|
|
14180
14234
|
return new TypeError('Expected "object" but received "' + typeof obj_fields_prop + '" (at "' + path_fields_prop + '")');
|
|
14181
14235
|
}
|
|
14182
14236
|
}
|
|
@@ -14896,7 +14950,7 @@ function validate$1v(obj, path = 'EntityActionRepresentation') {
|
|
|
14896
14950
|
for (let i = 0; i < obj_actions.length; i++) {
|
|
14897
14951
|
const obj_actions_item = obj_actions[i];
|
|
14898
14952
|
const path_actions_item = path_actions + '[' + i + ']';
|
|
14899
|
-
if (typeof obj_actions_item !== 'object') {
|
|
14953
|
+
if (typeof obj_actions_item !== 'object' || Array.isArray(obj_actions_item)) {
|
|
14900
14954
|
return new TypeError('Expected "object" but received "' + typeof obj_actions_item + '" (at "' + path_actions_item + '")');
|
|
14901
14955
|
}
|
|
14902
14956
|
}
|
|
@@ -15038,7 +15092,7 @@ function validate$1u(obj, path = 'ActionRepresentation') {
|
|
|
15038
15092
|
const key = obj_actions_keys[i];
|
|
15039
15093
|
const obj_actions_prop = obj_actions[key];
|
|
15040
15094
|
const path_actions_prop = path_actions + '["' + key + '"]';
|
|
15041
|
-
if (typeof obj_actions_prop !== 'object') {
|
|
15095
|
+
if (typeof obj_actions_prop !== 'object' || Array.isArray(obj_actions_prop)) {
|
|
15042
15096
|
return new TypeError('Expected "object" but received "' + typeof obj_actions_prop + '" (at "' + path_actions_prop + '")');
|
|
15043
15097
|
}
|
|
15044
15098
|
}
|
|
@@ -19020,7 +19074,7 @@ function validate$1i(obj, path = 'NavItemRepresentation') {
|
|
|
19020
19074
|
const path_pageReference = path + '.pageReference';
|
|
19021
19075
|
let obj_pageReference_union0 = null;
|
|
19022
19076
|
const obj_pageReference_union0_error = (() => {
|
|
19023
|
-
if (typeof obj_pageReference !== 'object') {
|
|
19077
|
+
if (typeof obj_pageReference !== 'object' || Array.isArray(obj_pageReference)) {
|
|
19024
19078
|
return new TypeError('Expected "object" but received "' + typeof obj_pageReference + '" (at "' + path_pageReference + '")');
|
|
19025
19079
|
}
|
|
19026
19080
|
})();
|
|
@@ -19084,7 +19138,7 @@ function keyBuilderFromType$m(luvio, object) {
|
|
|
19084
19138
|
function normalize$s(input, existing, path, luvio, store, timestamp) {
|
|
19085
19139
|
const input_pageReference = input.pageReference;
|
|
19086
19140
|
const input_pageReference_id = path.fullPath + '__pageReference';
|
|
19087
|
-
if (input_pageReference !== null && typeof input_pageReference === 'object') {
|
|
19141
|
+
if (!Array.isArray(input_pageReference) && input_pageReference !== null && typeof input_pageReference === 'object') {
|
|
19088
19142
|
input.pageReference = ingest$t(input_pageReference, {
|
|
19089
19143
|
fullPath: input_pageReference_id,
|
|
19090
19144
|
propertyName: 'pageReference',
|
|
@@ -19272,7 +19326,7 @@ function getTypeCacheKeys$z(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
19272
19326
|
representationName: RepresentationType$y,
|
|
19273
19327
|
mergeable: false
|
|
19274
19328
|
});
|
|
19275
|
-
if (input.pageReference !== null && typeof input.pageReference === 'object') {
|
|
19329
|
+
if (!Array.isArray(input.pageReference) && input.pageReference !== null && typeof input.pageReference === 'object') {
|
|
19276
19330
|
getTypeCacheKeys$A(rootKeySet, luvio, input.pageReference, () => rootKey + "__" + "pageReference");
|
|
19277
19331
|
}
|
|
19278
19332
|
}
|
|
@@ -19474,7 +19528,7 @@ function validate$1h(obj, path = 'AppRepresentation') {
|
|
|
19474
19528
|
for (let i = 0; i < obj_navItems.length; i++) {
|
|
19475
19529
|
const obj_navItems_item = obj_navItems[i];
|
|
19476
19530
|
const path_navItems_item = path_navItems + '[' + i + ']';
|
|
19477
|
-
if (typeof obj_navItems_item !== 'object') {
|
|
19531
|
+
if (typeof obj_navItems_item !== 'object' || Array.isArray(obj_navItems_item)) {
|
|
19478
19532
|
return new TypeError('Expected "object" but received "' + typeof obj_navItems_item + '" (at "' + path_navItems_item + '")');
|
|
19479
19533
|
}
|
|
19480
19534
|
}
|
|
@@ -19501,7 +19555,7 @@ function validate$1h(obj, path = 'AppRepresentation') {
|
|
|
19501
19555
|
for (let i = 0; i < obj_userNavItems.length; i++) {
|
|
19502
19556
|
const obj_userNavItems_item = obj_userNavItems[i];
|
|
19503
19557
|
const path_userNavItems_item = path_userNavItems + '[' + i + ']';
|
|
19504
|
-
if (typeof obj_userNavItems_item !== 'object') {
|
|
19558
|
+
if (typeof obj_userNavItems_item !== 'object' || Array.isArray(obj_userNavItems_item)) {
|
|
19505
19559
|
return new TypeError('Expected "object" but received "' + typeof obj_userNavItems_item + '" (at "' + path_userNavItems_item + '")');
|
|
19506
19560
|
}
|
|
19507
19561
|
}
|
|
@@ -19799,7 +19853,7 @@ function validate$1g(obj, path = 'AppsRepresentation') {
|
|
|
19799
19853
|
for (let i = 0; i < obj_apps.length; i++) {
|
|
19800
19854
|
const obj_apps_item = obj_apps[i];
|
|
19801
19855
|
const path_apps_item = path_apps + '[' + i + ']';
|
|
19802
|
-
if (typeof obj_apps_item !== 'object') {
|
|
19856
|
+
if (typeof obj_apps_item !== 'object' || Array.isArray(obj_apps_item)) {
|
|
19803
19857
|
return new TypeError('Expected "object" but received "' + typeof obj_apps_item + '" (at "' + path_apps_item + '")');
|
|
19804
19858
|
}
|
|
19805
19859
|
}
|
|
@@ -23713,7 +23767,7 @@ function validate$10(obj, path = 'NavItemsRepresentation') {
|
|
|
23713
23767
|
for (let i = 0; i < obj_navItems.length; i++) {
|
|
23714
23768
|
const obj_navItems_item = obj_navItems[i];
|
|
23715
23769
|
const path_navItems_item = path_navItems + '[' + i + ']';
|
|
23716
|
-
if (typeof obj_navItems_item !== 'object') {
|
|
23770
|
+
if (typeof obj_navItems_item !== 'object' || Array.isArray(obj_navItems_item)) {
|
|
23717
23771
|
return new TypeError('Expected "object" but received "' + typeof obj_navItems_item + '" (at "' + path_navItems_item + '")');
|
|
23718
23772
|
}
|
|
23719
23773
|
}
|
|
@@ -24869,7 +24923,7 @@ function validate$Y(obj, path = 'PicklistValuesCollectionRepresentation') {
|
|
|
24869
24923
|
const key = obj_picklistFieldValues_keys[i];
|
|
24870
24924
|
const obj_picklistFieldValues_prop = obj_picklistFieldValues[key];
|
|
24871
24925
|
const path_picklistFieldValues_prop = path_picklistFieldValues + '["' + key + '"]';
|
|
24872
|
-
if (typeof obj_picklistFieldValues_prop !== 'object') {
|
|
24926
|
+
if (typeof obj_picklistFieldValues_prop !== 'object' || Array.isArray(obj_picklistFieldValues_prop)) {
|
|
24873
24927
|
return new TypeError('Expected "object" but received "' + typeof obj_picklistFieldValues_prop + '" (at "' + path_picklistFieldValues_prop + '")');
|
|
24874
24928
|
}
|
|
24875
24929
|
}
|
|
@@ -26366,7 +26420,7 @@ function validate$P(obj, path = 'RecordAvatarBatchRepresentation') {
|
|
|
26366
26420
|
}
|
|
26367
26421
|
const obj_result = obj.result;
|
|
26368
26422
|
const path_result = path + '.result';
|
|
26369
|
-
if (typeof obj_result !== 'object') {
|
|
26423
|
+
if (typeof obj_result !== 'object' || Array.isArray(obj_result)) {
|
|
26370
26424
|
return new TypeError('Expected "object" but received "' + typeof obj_result + '" (at "' + path_result + '")');
|
|
26371
26425
|
}
|
|
26372
26426
|
})();
|
|
@@ -26758,7 +26812,7 @@ function validate$K(obj, path = 'RecordAvatarBulkMapRepresentation') {
|
|
|
26758
26812
|
const key = obj_keys[i];
|
|
26759
26813
|
const obj_prop = obj[key];
|
|
26760
26814
|
const path_prop = path + '["' + key + '"]';
|
|
26761
|
-
if (typeof obj_prop !== 'object') {
|
|
26815
|
+
if (typeof obj_prop !== 'object' || Array.isArray(obj_prop)) {
|
|
26762
26816
|
return new TypeError('Expected "object" but received "' + typeof obj_prop + '" (at "' + path_prop + '")');
|
|
26763
26817
|
}
|
|
26764
26818
|
}
|
|
@@ -30892,7 +30946,7 @@ function validate$A(obj, path = 'RelatedListRecordCollectionRepresentation') {
|
|
|
30892
30946
|
for (let i = 0; i < obj_records.length; i++) {
|
|
30893
30947
|
const obj_records_item = obj_records[i];
|
|
30894
30948
|
const path_records_item = path_records + '[' + i + ']';
|
|
30895
|
-
if (typeof obj_records_item !== 'object') {
|
|
30949
|
+
if (typeof obj_records_item !== 'object' || Array.isArray(obj_records_item)) {
|
|
30896
30950
|
return new TypeError('Expected "object" but received "' + typeof obj_records_item + '" (at "' + path_records_item + '")');
|
|
30897
30951
|
}
|
|
30898
30952
|
}
|
|
@@ -33257,7 +33311,7 @@ function validate$j(obj, path = 'SearchResultCollectionRepresentation') {
|
|
|
33257
33311
|
for (let i = 0; i < obj_records.length; i++) {
|
|
33258
33312
|
const obj_records_item = obj_records[i];
|
|
33259
33313
|
const path_records_item = path_records + '[' + i + ']';
|
|
33260
|
-
if (typeof obj_records_item !== 'object') {
|
|
33314
|
+
if (typeof obj_records_item !== 'object' || Array.isArray(obj_records_item)) {
|
|
33261
33315
|
return new TypeError('Expected "object" but received "' + typeof obj_records_item + '" (at "' + path_records_item + '")');
|
|
33262
33316
|
}
|
|
33263
33317
|
}
|
|
@@ -33290,7 +33344,7 @@ function validate$i(obj, path = 'KeywordSearchResultsRepresentation') {
|
|
|
33290
33344
|
for (let i = 0; i < obj_results.length; i++) {
|
|
33291
33345
|
const obj_results_item = obj_results[i];
|
|
33292
33346
|
const path_results_item = path_results + '[' + i + ']';
|
|
33293
|
-
if (typeof obj_results_item !== 'object') {
|
|
33347
|
+
if (typeof obj_results_item !== 'object' || Array.isArray(obj_results_item)) {
|
|
33294
33348
|
return new TypeError('Expected "object" but received "' + typeof obj_results_item + '" (at "' + path_results_item + '")');
|
|
33295
33349
|
}
|
|
33296
33350
|
}
|
|
@@ -33331,7 +33385,7 @@ function validate$h(obj, path = 'NLSResultsRepresentation') {
|
|
|
33331
33385
|
}
|
|
33332
33386
|
const obj_results = obj.results;
|
|
33333
33387
|
const path_results = path + '.results';
|
|
33334
|
-
if (typeof obj_results !== 'object') {
|
|
33388
|
+
if (typeof obj_results !== 'object' || Array.isArray(obj_results)) {
|
|
33335
33389
|
return new TypeError('Expected "object" but received "' + typeof obj_results + '" (at "' + path_results + '")');
|
|
33336
33390
|
}
|
|
33337
33391
|
})();
|
|
@@ -35499,7 +35553,7 @@ function validate$6(obj, path = 'RecordCreateDefaultRecordRepresentation') {
|
|
|
35499
35553
|
const key = obj_childRelationships_keys[i];
|
|
35500
35554
|
const obj_childRelationships_prop = obj_childRelationships[key];
|
|
35501
35555
|
const path_childRelationships_prop = path_childRelationships + '["' + key + '"]';
|
|
35502
|
-
if (typeof obj_childRelationships_prop !== 'object') {
|
|
35556
|
+
if (typeof obj_childRelationships_prop !== 'object' || Array.isArray(obj_childRelationships_prop)) {
|
|
35503
35557
|
return new TypeError('Expected "object" but received "' + typeof obj_childRelationships_prop + '" (at "' + path_childRelationships_prop + '")');
|
|
35504
35558
|
}
|
|
35505
35559
|
}
|
|
@@ -35518,7 +35572,7 @@ function validate$6(obj, path = 'RecordCreateDefaultRecordRepresentation') {
|
|
|
35518
35572
|
const key = obj_fields_keys[i];
|
|
35519
35573
|
const obj_fields_prop = obj_fields[key];
|
|
35520
35574
|
const path_fields_prop = path_fields + '["' + key + '"]';
|
|
35521
|
-
if (typeof obj_fields_prop !== 'object') {
|
|
35575
|
+
if (typeof obj_fields_prop !== 'object' || Array.isArray(obj_fields_prop)) {
|
|
35522
35576
|
return new TypeError('Expected "object" but received "' + typeof obj_fields_prop + '" (at "' + path_fields_prop + '")');
|
|
35523
35577
|
}
|
|
35524
35578
|
}
|
|
@@ -35828,7 +35882,7 @@ function validate$5(obj, path = 'RecordDefaultsRepresentation') {
|
|
|
35828
35882
|
const path_layout = path + '.layout';
|
|
35829
35883
|
let obj_layout_union0 = null;
|
|
35830
35884
|
const obj_layout_union0_error = (() => {
|
|
35831
|
-
if (typeof obj_layout !== 'object') {
|
|
35885
|
+
if (typeof obj_layout !== 'object' || Array.isArray(obj_layout)) {
|
|
35832
35886
|
return new TypeError('Expected "object" but received "' + typeof obj_layout + '" (at "' + path_layout + '")');
|
|
35833
35887
|
}
|
|
35834
35888
|
})();
|
|
@@ -35860,13 +35914,13 @@ function validate$5(obj, path = 'RecordDefaultsRepresentation') {
|
|
|
35860
35914
|
const key = obj_objectInfos_keys[i];
|
|
35861
35915
|
const obj_objectInfos_prop = obj_objectInfos[key];
|
|
35862
35916
|
const path_objectInfos_prop = path_objectInfos + '["' + key + '"]';
|
|
35863
|
-
if (typeof obj_objectInfos_prop !== 'object') {
|
|
35917
|
+
if (typeof obj_objectInfos_prop !== 'object' || Array.isArray(obj_objectInfos_prop)) {
|
|
35864
35918
|
return new TypeError('Expected "object" but received "' + typeof obj_objectInfos_prop + '" (at "' + path_objectInfos_prop + '")');
|
|
35865
35919
|
}
|
|
35866
35920
|
}
|
|
35867
35921
|
const obj_record = obj.record;
|
|
35868
35922
|
const path_record = path + '.record';
|
|
35869
|
-
if (typeof obj_record !== 'object') {
|
|
35923
|
+
if (typeof obj_record !== 'object' || Array.isArray(obj_record)) {
|
|
35870
35924
|
return new TypeError('Expected "object" but received "' + typeof obj_record + '" (at "' + path_record + '")');
|
|
35871
35925
|
}
|
|
35872
35926
|
})();
|
|
@@ -35876,7 +35930,7 @@ const RepresentationType$5 = 'RecordDefaultsRepresentation';
|
|
|
35876
35930
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
35877
35931
|
const input_layout = input.layout;
|
|
35878
35932
|
const input_layout_id = path.fullPath + '__layout';
|
|
35879
|
-
if (input_layout !== null && typeof input_layout === 'object') {
|
|
35933
|
+
if (!Array.isArray(input_layout) && input_layout !== null && typeof input_layout === 'object') {
|
|
35880
35934
|
input.layout = ingest$G(input_layout, {
|
|
35881
35935
|
fullPath: input_layout_id,
|
|
35882
35936
|
propertyName: 'layout',
|
|
@@ -35969,7 +36023,7 @@ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
35969
36023
|
representationName: RepresentationType$5,
|
|
35970
36024
|
mergeable: false
|
|
35971
36025
|
});
|
|
35972
|
-
if (input.layout !== null && typeof input.layout === 'object') {
|
|
36026
|
+
if (!Array.isArray(input.layout) && input.layout !== null && typeof input.layout === 'object') {
|
|
35973
36027
|
getTypeCacheKeys$N(rootKeySet, luvio, input.layout);
|
|
35974
36028
|
}
|
|
35975
36029
|
const input_objectInfos = input.objectInfos;
|
|
@@ -36207,7 +36261,7 @@ function validate$4(obj, path = 'RecordTemplateCloneRepresentation') {
|
|
|
36207
36261
|
const key = obj_fields_keys[i];
|
|
36208
36262
|
const obj_fields_prop = obj_fields[key];
|
|
36209
36263
|
const path_fields_prop = path_fields + '["' + key + '"]';
|
|
36210
|
-
if (typeof obj_fields_prop !== 'object') {
|
|
36264
|
+
if (typeof obj_fields_prop !== 'object' || Array.isArray(obj_fields_prop)) {
|
|
36211
36265
|
return new TypeError('Expected "object" but received "' + typeof obj_fields_prop + '" (at "' + path_fields_prop + '")');
|
|
36212
36266
|
}
|
|
36213
36267
|
}
|
|
@@ -36406,13 +36460,13 @@ function validate$3(obj, path = 'RecordDefaultsTemplateCloneRepresentation') {
|
|
|
36406
36460
|
const key = obj_objectInfos_keys[i];
|
|
36407
36461
|
const obj_objectInfos_prop = obj_objectInfos[key];
|
|
36408
36462
|
const path_objectInfos_prop = path_objectInfos + '["' + key + '"]';
|
|
36409
|
-
if (typeof obj_objectInfos_prop !== 'object') {
|
|
36463
|
+
if (typeof obj_objectInfos_prop !== 'object' || Array.isArray(obj_objectInfos_prop)) {
|
|
36410
36464
|
return new TypeError('Expected "object" but received "' + typeof obj_objectInfos_prop + '" (at "' + path_objectInfos_prop + '")');
|
|
36411
36465
|
}
|
|
36412
36466
|
}
|
|
36413
36467
|
const obj_record = obj.record;
|
|
36414
36468
|
const path_record = path + '.record';
|
|
36415
|
-
if (typeof obj_record !== 'object') {
|
|
36469
|
+
if (typeof obj_record !== 'object' || Array.isArray(obj_record)) {
|
|
36416
36470
|
return new TypeError('Expected "object" but received "' + typeof obj_record + '" (at "' + path_record + '")');
|
|
36417
36471
|
}
|
|
36418
36472
|
})();
|
|
@@ -36857,7 +36911,7 @@ function validate$2(obj, path = 'RecordTemplateCreateRepresentation') {
|
|
|
36857
36911
|
const key = obj_fields_keys[i];
|
|
36858
36912
|
const obj_fields_prop = obj_fields[key];
|
|
36859
36913
|
const path_fields_prop = path_fields + '["' + key + '"]';
|
|
36860
|
-
if (typeof obj_fields_prop !== 'object') {
|
|
36914
|
+
if (typeof obj_fields_prop !== 'object' || Array.isArray(obj_fields_prop)) {
|
|
36861
36915
|
return new TypeError('Expected "object" but received "' + typeof obj_fields_prop + '" (at "' + path_fields_prop + '")');
|
|
36862
36916
|
}
|
|
36863
36917
|
}
|
|
@@ -37043,13 +37097,13 @@ function validate$1(obj, path = 'RecordDefaultsTemplateCreateRepresentation') {
|
|
|
37043
37097
|
const key = obj_objectInfos_keys[i];
|
|
37044
37098
|
const obj_objectInfos_prop = obj_objectInfos[key];
|
|
37045
37099
|
const path_objectInfos_prop = path_objectInfos + '["' + key + '"]';
|
|
37046
|
-
if (typeof obj_objectInfos_prop !== 'object') {
|
|
37100
|
+
if (typeof obj_objectInfos_prop !== 'object' || Array.isArray(obj_objectInfos_prop)) {
|
|
37047
37101
|
return new TypeError('Expected "object" but received "' + typeof obj_objectInfos_prop + '" (at "' + path_objectInfos_prop + '")');
|
|
37048
37102
|
}
|
|
37049
37103
|
}
|
|
37050
37104
|
const obj_record = obj.record;
|
|
37051
37105
|
const path_record = path + '.record';
|
|
37052
|
-
if (typeof obj_record !== 'object') {
|
|
37106
|
+
if (typeof obj_record !== 'object' || Array.isArray(obj_record)) {
|
|
37053
37107
|
return new TypeError('Expected "object" but received "' + typeof obj_record + '" (at "' + path_record + '")');
|
|
37054
37108
|
}
|
|
37055
37109
|
})();
|
|
@@ -37837,7 +37891,7 @@ function validate(obj, path = 'ContentDocumentCompositeRepresentation') {
|
|
|
37837
37891
|
}
|
|
37838
37892
|
const obj_contentDocument = obj.contentDocument;
|
|
37839
37893
|
const path_contentDocument = path + '.contentDocument';
|
|
37840
|
-
if (typeof obj_contentDocument !== 'object') {
|
|
37894
|
+
if (typeof obj_contentDocument !== 'object' || Array.isArray(obj_contentDocument)) {
|
|
37841
37895
|
return new TypeError('Expected "object" but received "' + typeof obj_contentDocument + '" (at "' + path_contentDocument + '")');
|
|
37842
37896
|
}
|
|
37843
37897
|
const obj_contentDocumentLinks = obj.contentDocumentLinks;
|
|
@@ -37848,13 +37902,13 @@ function validate(obj, path = 'ContentDocumentCompositeRepresentation') {
|
|
|
37848
37902
|
for (let i = 0; i < obj_contentDocumentLinks.length; i++) {
|
|
37849
37903
|
const obj_contentDocumentLinks_item = obj_contentDocumentLinks[i];
|
|
37850
37904
|
const path_contentDocumentLinks_item = path_contentDocumentLinks + '[' + i + ']';
|
|
37851
|
-
if (typeof obj_contentDocumentLinks_item !== 'object') {
|
|
37905
|
+
if (typeof obj_contentDocumentLinks_item !== 'object' || Array.isArray(obj_contentDocumentLinks_item)) {
|
|
37852
37906
|
return new TypeError('Expected "object" but received "' + typeof obj_contentDocumentLinks_item + '" (at "' + path_contentDocumentLinks_item + '")');
|
|
37853
37907
|
}
|
|
37854
37908
|
}
|
|
37855
37909
|
const obj_contentVersion = obj.contentVersion;
|
|
37856
37910
|
const path_contentVersion = path + '.contentVersion';
|
|
37857
|
-
if (typeof obj_contentVersion !== 'object') {
|
|
37911
|
+
if (typeof obj_contentVersion !== 'object' || Array.isArray(obj_contentVersion)) {
|
|
37858
37912
|
return new TypeError('Expected "object" but received "' + typeof obj_contentVersion + '" (at "' + path_contentVersion + '")');
|
|
37859
37913
|
}
|
|
37860
37914
|
})();
|
|
@@ -38946,4 +39000,4 @@ withDefaultLuvio((luvio) => {
|
|
|
38946
39000
|
});
|
|
38947
39001
|
|
|
38948
39002
|
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$1g 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, createRelatedListPlusAdapterWithPrediction, 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, getRecordId18Array, getRecordIngestionOverride, getRecordNotifyChange, getRecordTemplateClone, getRecordTemplateClone_imperative, getRecordTemplateCreate, getRecordTemplateCreate_imperative, getRecordUi, getRecordUi_imperative, getRecord_imperative, getRecords, getRecordsAdapterFactory, getRecords_imperative, getRelatedListActions, getRelatedListActionsAdapterFactory, 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, getRelatedListsInfoAdapterFactory, 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 };
|
|
38949
|
-
// version: 1.
|
|
39003
|
+
// version: 1.362.0-d2e818ae61
|