@salesforce/lwc-adapters-uiapi 1.141.1 → 1.142.1
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/main.js +288 -93
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -364,7 +364,7 @@ var FragmentReadResultState;
|
|
|
364
364
|
({
|
|
365
365
|
state: FragmentReadResultState.Missing,
|
|
366
366
|
});
|
|
367
|
-
// engine version: 0.
|
|
367
|
+
// engine version: 0.142.3-97d0da6c
|
|
368
368
|
|
|
369
369
|
/**
|
|
370
370
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -7576,6 +7576,20 @@ function buildQueryTypeStringKey(args) {
|
|
|
7576
7576
|
return `${keyPrefix}::${schemaName}::${queryTypeName}[${serializeOperationNode(operationNode, variables, fragmentMap)}]`;
|
|
7577
7577
|
}
|
|
7578
7578
|
|
|
7579
|
+
/**
|
|
7580
|
+
* @description Spec compliant way to retrieve the correct Operation from the Document that Luvio should operate on. https://spec.graphql.org/June2018/#sec-Named-Operation-Definitions
|
|
7581
|
+
* @param document
|
|
7582
|
+
* @param operationName
|
|
7583
|
+
* @returns The Operation in the GraphQL document we should use for the current call.
|
|
7584
|
+
*/
|
|
7585
|
+
function getOperationFromDocument(document, operationName) {
|
|
7586
|
+
const operations = document.definitions.filter((def) => def.kind === 'OperationDefinition');
|
|
7587
|
+
if (operationName) {
|
|
7588
|
+
return operations.find((def) => def.name !== undefined && def.name.value === operationName);
|
|
7589
|
+
}
|
|
7590
|
+
return operations[0]; // If a named operation is not provided, we return the first one
|
|
7591
|
+
}
|
|
7592
|
+
|
|
7579
7593
|
/**
|
|
7580
7594
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
7581
7595
|
* All rights reserved.
|
|
@@ -7951,8 +7965,8 @@ function assignMetadataLink(entry, metadataKey) {
|
|
|
7951
7965
|
entry['__metadata'] = createLink$1(metadataKey);
|
|
7952
7966
|
}
|
|
7953
7967
|
|
|
7954
|
-
const VERSION$
|
|
7955
|
-
function validate$
|
|
7968
|
+
const VERSION$2o = "275ae22194003d1e53f548b81219c5cb";
|
|
7969
|
+
function validate$1H(obj, path = 'ListColumnRepresentation') {
|
|
7956
7970
|
const v_error = (() => {
|
|
7957
7971
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7958
7972
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8001,10 +8015,10 @@ function validate$1E(obj, path = 'ListColumnRepresentation') {
|
|
|
8001
8015
|
})();
|
|
8002
8016
|
return v_error === undefined ? null : v_error;
|
|
8003
8017
|
}
|
|
8004
|
-
const select$
|
|
8018
|
+
const select$2U = function ListColumnRepresentationSelect() {
|
|
8005
8019
|
return {
|
|
8006
8020
|
kind: 'Fragment',
|
|
8007
|
-
version: VERSION$
|
|
8021
|
+
version: VERSION$2o,
|
|
8008
8022
|
private: [],
|
|
8009
8023
|
selections: [
|
|
8010
8024
|
{
|
|
@@ -8027,8 +8041,8 @@ const select$2R = function ListColumnRepresentationSelect() {
|
|
|
8027
8041
|
};
|
|
8028
8042
|
};
|
|
8029
8043
|
|
|
8030
|
-
const VERSION$
|
|
8031
|
-
function validate$
|
|
8044
|
+
const VERSION$2n = "623aa9ce3a11031e35faf5671a41746e";
|
|
8045
|
+
function validate$1G(obj, path = 'ListFilterByInfoRepresentation') {
|
|
8032
8046
|
const v_error = (() => {
|
|
8033
8047
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8034
8048
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8063,10 +8077,10 @@ function validate$1D(obj, path = 'ListFilterByInfoRepresentation') {
|
|
|
8063
8077
|
})();
|
|
8064
8078
|
return v_error === undefined ? null : v_error;
|
|
8065
8079
|
}
|
|
8066
|
-
const select$
|
|
8080
|
+
const select$2T = function ListFilterByInfoRepresentationSelect() {
|
|
8067
8081
|
return {
|
|
8068
8082
|
kind: 'Fragment',
|
|
8069
|
-
version: VERSION$
|
|
8083
|
+
version: VERSION$2n,
|
|
8070
8084
|
private: [],
|
|
8071
8085
|
selections: [
|
|
8072
8086
|
{
|
|
@@ -8090,8 +8104,8 @@ const select$2Q = function ListFilterByInfoRepresentationSelect() {
|
|
|
8090
8104
|
};
|
|
8091
8105
|
};
|
|
8092
8106
|
|
|
8093
|
-
const VERSION$
|
|
8094
|
-
function validate$
|
|
8107
|
+
const VERSION$2m = "76042ff4af603b2ac0ec69fa0bd12046";
|
|
8108
|
+
function validate$1F(obj, path = 'ListReferenceRepresentation') {
|
|
8095
8109
|
const v_error = (() => {
|
|
8096
8110
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8097
8111
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8161,10 +8175,10 @@ function validate$1C(obj, path = 'ListReferenceRepresentation') {
|
|
|
8161
8175
|
})();
|
|
8162
8176
|
return v_error === undefined ? null : v_error;
|
|
8163
8177
|
}
|
|
8164
|
-
const select$
|
|
8178
|
+
const select$2S = function ListReferenceRepresentationSelect() {
|
|
8165
8179
|
return {
|
|
8166
8180
|
kind: 'Fragment',
|
|
8167
|
-
version: VERSION$
|
|
8181
|
+
version: VERSION$2m,
|
|
8168
8182
|
private: [],
|
|
8169
8183
|
selections: [
|
|
8170
8184
|
{
|
|
@@ -8210,8 +8224,8 @@ function equals$$(existing, incoming) {
|
|
|
8210
8224
|
return true;
|
|
8211
8225
|
}
|
|
8212
8226
|
|
|
8213
|
-
const VERSION$
|
|
8214
|
-
function validate$
|
|
8227
|
+
const VERSION$2l = "32def9b631252c12b91a8209c1f49f5a";
|
|
8228
|
+
function validate$1E(obj, path = 'ListOrderByInfoRepresentation') {
|
|
8215
8229
|
const v_error = (() => {
|
|
8216
8230
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8217
8231
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -8255,10 +8269,10 @@ function validate$1B(obj, path = 'ListOrderByInfoRepresentation') {
|
|
|
8255
8269
|
})();
|
|
8256
8270
|
return v_error === undefined ? null : v_error;
|
|
8257
8271
|
}
|
|
8258
|
-
const select$
|
|
8272
|
+
const select$2R = function ListOrderByInfoRepresentationSelect() {
|
|
8259
8273
|
return {
|
|
8260
8274
|
kind: 'Fragment',
|
|
8261
|
-
version: VERSION$
|
|
8275
|
+
version: VERSION$2l,
|
|
8262
8276
|
private: [],
|
|
8263
8277
|
selections: [
|
|
8264
8278
|
{
|
|
@@ -8277,6 +8291,154 @@ const select$2O = function ListOrderByInfoRepresentationSelect() {
|
|
|
8277
8291
|
};
|
|
8278
8292
|
};
|
|
8279
8293
|
|
|
8294
|
+
const VERSION$2k = "2634258f216db34315c06d759a35676d";
|
|
8295
|
+
function validate$1D(obj, path = 'ListScopeEntityRepresentation') {
|
|
8296
|
+
const v_error = (() => {
|
|
8297
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8298
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8299
|
+
}
|
|
8300
|
+
const obj_id = obj.id;
|
|
8301
|
+
const path_id = path + '.id';
|
|
8302
|
+
if (typeof obj_id !== 'string') {
|
|
8303
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
8304
|
+
}
|
|
8305
|
+
const obj_label = obj.label;
|
|
8306
|
+
const path_label = path + '.label';
|
|
8307
|
+
if (typeof obj_label !== 'string') {
|
|
8308
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
8309
|
+
}
|
|
8310
|
+
})();
|
|
8311
|
+
return v_error === undefined ? null : v_error;
|
|
8312
|
+
}
|
|
8313
|
+
const select$2Q = function ListScopeEntityRepresentationSelect() {
|
|
8314
|
+
return {
|
|
8315
|
+
kind: 'Fragment',
|
|
8316
|
+
version: VERSION$2k,
|
|
8317
|
+
private: [],
|
|
8318
|
+
selections: [
|
|
8319
|
+
{
|
|
8320
|
+
name: 'id',
|
|
8321
|
+
kind: 'Scalar'
|
|
8322
|
+
},
|
|
8323
|
+
{
|
|
8324
|
+
name: 'label',
|
|
8325
|
+
kind: 'Scalar'
|
|
8326
|
+
}
|
|
8327
|
+
]
|
|
8328
|
+
};
|
|
8329
|
+
};
|
|
8330
|
+
|
|
8331
|
+
const VERSION$2j = "3b85c5a08d50ce328481b9f8ab56127b";
|
|
8332
|
+
function validate$1C(obj, path = 'ListScopeRelatedEntityRepresentation') {
|
|
8333
|
+
const v_error = (() => {
|
|
8334
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8335
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8336
|
+
}
|
|
8337
|
+
const obj_id = obj.id;
|
|
8338
|
+
const path_id = path + '.id';
|
|
8339
|
+
if (typeof obj_id !== 'string') {
|
|
8340
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
8341
|
+
}
|
|
8342
|
+
const obj_label = obj.label;
|
|
8343
|
+
const path_label = path + '.label';
|
|
8344
|
+
if (typeof obj_label !== 'string') {
|
|
8345
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
8346
|
+
}
|
|
8347
|
+
const obj_type = obj.type;
|
|
8348
|
+
const path_type = path + '.type';
|
|
8349
|
+
if (typeof obj_type !== 'string') {
|
|
8350
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
8351
|
+
}
|
|
8352
|
+
})();
|
|
8353
|
+
return v_error === undefined ? null : v_error;
|
|
8354
|
+
}
|
|
8355
|
+
const select$2P = function ListScopeRelatedEntityRepresentationSelect() {
|
|
8356
|
+
return {
|
|
8357
|
+
kind: 'Fragment',
|
|
8358
|
+
version: VERSION$2j,
|
|
8359
|
+
private: [],
|
|
8360
|
+
selections: [
|
|
8361
|
+
{
|
|
8362
|
+
name: 'id',
|
|
8363
|
+
kind: 'Scalar'
|
|
8364
|
+
},
|
|
8365
|
+
{
|
|
8366
|
+
name: 'label',
|
|
8367
|
+
kind: 'Scalar'
|
|
8368
|
+
},
|
|
8369
|
+
{
|
|
8370
|
+
name: 'type',
|
|
8371
|
+
kind: 'Scalar'
|
|
8372
|
+
}
|
|
8373
|
+
]
|
|
8374
|
+
};
|
|
8375
|
+
};
|
|
8376
|
+
|
|
8377
|
+
const VERSION$2i = "fce88f94b1244707458c795247592939";
|
|
8378
|
+
function validate$1B(obj, path = 'ListScopeRepresentation') {
|
|
8379
|
+
const v_error = (() => {
|
|
8380
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8381
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
8382
|
+
}
|
|
8383
|
+
const obj_apiName = obj.apiName;
|
|
8384
|
+
const path_apiName = path + '.apiName';
|
|
8385
|
+
if (typeof obj_apiName !== 'string') {
|
|
8386
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
8387
|
+
}
|
|
8388
|
+
const obj_entity = obj.entity;
|
|
8389
|
+
const path_entity = path + '.entity';
|
|
8390
|
+
const referencepath_entityValidationError = validate$1D(obj_entity, path_entity);
|
|
8391
|
+
if (referencepath_entityValidationError !== null) {
|
|
8392
|
+
let message = 'Object doesn\'t match ListScopeEntityRepresentation (at "' + path_entity + '")\n';
|
|
8393
|
+
message += referencepath_entityValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8394
|
+
return new TypeError(message);
|
|
8395
|
+
}
|
|
8396
|
+
const obj_label = obj.label;
|
|
8397
|
+
const path_label = path + '.label';
|
|
8398
|
+
if (typeof obj_label !== 'string') {
|
|
8399
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
8400
|
+
}
|
|
8401
|
+
const obj_relatedEntity = obj.relatedEntity;
|
|
8402
|
+
const path_relatedEntity = path + '.relatedEntity';
|
|
8403
|
+
const referencepath_relatedEntityValidationError = validate$1C(obj_relatedEntity, path_relatedEntity);
|
|
8404
|
+
if (referencepath_relatedEntityValidationError !== null) {
|
|
8405
|
+
let message = 'Object doesn\'t match ListScopeRelatedEntityRepresentation (at "' + path_relatedEntity + '")\n';
|
|
8406
|
+
message += referencepath_relatedEntityValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8407
|
+
return new TypeError(message);
|
|
8408
|
+
}
|
|
8409
|
+
})();
|
|
8410
|
+
return v_error === undefined ? null : v_error;
|
|
8411
|
+
}
|
|
8412
|
+
const select$2O = function ListScopeRepresentationSelect() {
|
|
8413
|
+
const { selections: ListScopeEntityRepresentation__selections, opaque: ListScopeEntityRepresentation__opaque, } = select$2Q();
|
|
8414
|
+
const { selections: ListScopeRelatedEntityRepresentation__selections, opaque: ListScopeRelatedEntityRepresentation__opaque, } = select$2P();
|
|
8415
|
+
return {
|
|
8416
|
+
kind: 'Fragment',
|
|
8417
|
+
version: VERSION$2i,
|
|
8418
|
+
private: [],
|
|
8419
|
+
selections: [
|
|
8420
|
+
{
|
|
8421
|
+
name: 'apiName',
|
|
8422
|
+
kind: 'Scalar'
|
|
8423
|
+
},
|
|
8424
|
+
{
|
|
8425
|
+
name: 'entity',
|
|
8426
|
+
kind: 'Object',
|
|
8427
|
+
selections: ListScopeEntityRepresentation__selections
|
|
8428
|
+
},
|
|
8429
|
+
{
|
|
8430
|
+
name: 'label',
|
|
8431
|
+
kind: 'Scalar'
|
|
8432
|
+
},
|
|
8433
|
+
{
|
|
8434
|
+
name: 'relatedEntity',
|
|
8435
|
+
kind: 'Object',
|
|
8436
|
+
selections: ListScopeRelatedEntityRepresentation__selections
|
|
8437
|
+
}
|
|
8438
|
+
]
|
|
8439
|
+
};
|
|
8440
|
+
};
|
|
8441
|
+
|
|
8280
8442
|
const VERSION$2h = "6506134f4d72fdfa349fe60ef1af2413";
|
|
8281
8443
|
function validate$1A(obj, path = 'ListUserPreferenceRepresentation') {
|
|
8282
8444
|
const v_error = (() => {
|
|
@@ -8335,7 +8497,7 @@ const select$2N = function ListUserPreferenceRepresentationSelect() {
|
|
|
8335
8497
|
};
|
|
8336
8498
|
|
|
8337
8499
|
const TTL$C = 900000;
|
|
8338
|
-
const VERSION$2g = "
|
|
8500
|
+
const VERSION$2g = "8b55d621d80c84ec2e331abc4e12fc56";
|
|
8339
8501
|
function validate$1z(obj, path = 'ListInfoRepresentation') {
|
|
8340
8502
|
const v_error = (() => {
|
|
8341
8503
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -8364,7 +8526,7 @@ function validate$1z(obj, path = 'ListInfoRepresentation') {
|
|
|
8364
8526
|
for (let i = 0; i < obj_displayColumns.length; i++) {
|
|
8365
8527
|
const obj_displayColumns_item = obj_displayColumns[i];
|
|
8366
8528
|
const path_displayColumns_item = path_displayColumns + '[' + i + ']';
|
|
8367
|
-
const referencepath_displayColumns_itemValidationError = validate$
|
|
8529
|
+
const referencepath_displayColumns_itemValidationError = validate$1H(obj_displayColumns_item, path_displayColumns_item);
|
|
8368
8530
|
if (referencepath_displayColumns_itemValidationError !== null) {
|
|
8369
8531
|
let message = 'Object doesn\'t match ListColumnRepresentation (at "' + path_displayColumns_item + '")\n';
|
|
8370
8532
|
message += referencepath_displayColumns_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8410,7 +8572,7 @@ function validate$1z(obj, path = 'ListInfoRepresentation') {
|
|
|
8410
8572
|
for (let i = 0; i < obj_filteredByInfo.length; i++) {
|
|
8411
8573
|
const obj_filteredByInfo_item = obj_filteredByInfo[i];
|
|
8412
8574
|
const path_filteredByInfo_item = path_filteredByInfo + '[' + i + ']';
|
|
8413
|
-
const referencepath_filteredByInfo_itemValidationError = validate$
|
|
8575
|
+
const referencepath_filteredByInfo_itemValidationError = validate$1G(obj_filteredByInfo_item, path_filteredByInfo_item);
|
|
8414
8576
|
if (referencepath_filteredByInfo_itemValidationError !== null) {
|
|
8415
8577
|
let message = 'Object doesn\'t match ListFilterByInfoRepresentation (at "' + path_filteredByInfo_item + '")\n';
|
|
8416
8578
|
message += referencepath_filteredByInfo_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8445,7 +8607,7 @@ function validate$1z(obj, path = 'ListInfoRepresentation') {
|
|
|
8445
8607
|
}
|
|
8446
8608
|
const obj_listReference = obj.listReference;
|
|
8447
8609
|
const path_listReference = path + '.listReference';
|
|
8448
|
-
const referencepath_listReferenceValidationError = validate$
|
|
8610
|
+
const referencepath_listReferenceValidationError = validate$1F(obj_listReference, path_listReference);
|
|
8449
8611
|
if (referencepath_listReferenceValidationError !== null) {
|
|
8450
8612
|
let message = 'Object doesn\'t match ListReferenceRepresentation (at "' + path_listReference + '")\n';
|
|
8451
8613
|
message += referencepath_listReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -8473,13 +8635,44 @@ function validate$1z(obj, path = 'ListInfoRepresentation') {
|
|
|
8473
8635
|
for (let i = 0; i < obj_orderedByInfo.length; i++) {
|
|
8474
8636
|
const obj_orderedByInfo_item = obj_orderedByInfo[i];
|
|
8475
8637
|
const path_orderedByInfo_item = path_orderedByInfo + '[' + i + ']';
|
|
8476
|
-
const referencepath_orderedByInfo_itemValidationError = validate$
|
|
8638
|
+
const referencepath_orderedByInfo_itemValidationError = validate$1E(obj_orderedByInfo_item, path_orderedByInfo_item);
|
|
8477
8639
|
if (referencepath_orderedByInfo_itemValidationError !== null) {
|
|
8478
8640
|
let message = 'Object doesn\'t match ListOrderByInfoRepresentation (at "' + path_orderedByInfo_item + '")\n';
|
|
8479
8641
|
message += referencepath_orderedByInfo_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8480
8642
|
return new TypeError(message);
|
|
8481
8643
|
}
|
|
8482
8644
|
}
|
|
8645
|
+
if (obj.scope !== undefined) {
|
|
8646
|
+
const obj_scope = obj.scope;
|
|
8647
|
+
const path_scope = path + '.scope';
|
|
8648
|
+
let obj_scope_union0 = null;
|
|
8649
|
+
const obj_scope_union0_error = (() => {
|
|
8650
|
+
const referencepath_scopeValidationError = validate$1B(obj_scope, path_scope);
|
|
8651
|
+
if (referencepath_scopeValidationError !== null) {
|
|
8652
|
+
let message = 'Object doesn\'t match ListScopeRepresentation (at "' + path_scope + '")\n';
|
|
8653
|
+
message += referencepath_scopeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8654
|
+
return new TypeError(message);
|
|
8655
|
+
}
|
|
8656
|
+
})();
|
|
8657
|
+
if (obj_scope_union0_error != null) {
|
|
8658
|
+
obj_scope_union0 = obj_scope_union0_error.message;
|
|
8659
|
+
}
|
|
8660
|
+
let obj_scope_union1 = null;
|
|
8661
|
+
const obj_scope_union1_error = (() => {
|
|
8662
|
+
if (obj_scope !== null) {
|
|
8663
|
+
return new TypeError('Expected "null" but received "' + typeof obj_scope + '" (at "' + path_scope + '")');
|
|
8664
|
+
}
|
|
8665
|
+
})();
|
|
8666
|
+
if (obj_scope_union1_error != null) {
|
|
8667
|
+
obj_scope_union1 = obj_scope_union1_error.message;
|
|
8668
|
+
}
|
|
8669
|
+
if (obj_scope_union0 && obj_scope_union1) {
|
|
8670
|
+
let message = 'Object doesn\'t match union (at "' + path_scope + '")';
|
|
8671
|
+
message += '\n' + obj_scope_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
8672
|
+
message += '\n' + obj_scope_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
8673
|
+
return new TypeError(message);
|
|
8674
|
+
}
|
|
8675
|
+
}
|
|
8483
8676
|
const obj_updateable = obj.updateable;
|
|
8484
8677
|
const path_updateable = path + '.updateable';
|
|
8485
8678
|
if (typeof obj_updateable !== 'boolean') {
|
|
@@ -8522,10 +8715,11 @@ function normalize$N(input, existing, path, luvio, store, timestamp) {
|
|
|
8522
8715
|
return input;
|
|
8523
8716
|
}
|
|
8524
8717
|
const select$2M = function ListInfoRepresentationSelect() {
|
|
8525
|
-
const { selections: ListColumnRepresentation__selections, opaque: ListColumnRepresentation__opaque, } = select$
|
|
8526
|
-
const { selections: ListFilterByInfoRepresentation__selections, opaque: ListFilterByInfoRepresentation__opaque, } = select$
|
|
8527
|
-
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$
|
|
8528
|
-
const { selections: ListOrderByInfoRepresentation__selections, opaque: ListOrderByInfoRepresentation__opaque, } = select$
|
|
8718
|
+
const { selections: ListColumnRepresentation__selections, opaque: ListColumnRepresentation__opaque, } = select$2U();
|
|
8719
|
+
const { selections: ListFilterByInfoRepresentation__selections, opaque: ListFilterByInfoRepresentation__opaque, } = select$2T();
|
|
8720
|
+
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$2S();
|
|
8721
|
+
const { selections: ListOrderByInfoRepresentation__selections, opaque: ListOrderByInfoRepresentation__opaque, } = select$2R();
|
|
8722
|
+
const { selections: ListScopeRepresentation__selections, opaque: ListScopeRepresentation__opaque, } = select$2O();
|
|
8529
8723
|
const { selections: ListUserPreferenceRepresentation__selections, opaque: ListUserPreferenceRepresentation__opaque, } = select$2N();
|
|
8530
8724
|
return {
|
|
8531
8725
|
kind: 'Fragment',
|
|
@@ -8583,6 +8777,13 @@ const select$2M = function ListInfoRepresentationSelect() {
|
|
|
8583
8777
|
plural: true,
|
|
8584
8778
|
selections: ListOrderByInfoRepresentation__selections
|
|
8585
8779
|
},
|
|
8780
|
+
{
|
|
8781
|
+
name: 'scope',
|
|
8782
|
+
kind: 'Object',
|
|
8783
|
+
nullable: true,
|
|
8784
|
+
selections: ListScopeRepresentation__selections,
|
|
8785
|
+
required: false
|
|
8786
|
+
},
|
|
8586
8787
|
{
|
|
8587
8788
|
name: 'updateable',
|
|
8588
8789
|
kind: 'Scalar'
|
|
@@ -13492,7 +13693,7 @@ function validate$1u(obj, path = 'ListRecordCollectionRepresentation') {
|
|
|
13492
13693
|
}
|
|
13493
13694
|
const obj_listReference = obj.listReference;
|
|
13494
13695
|
const path_listReference = path + '.listReference';
|
|
13495
|
-
const referencepath_listReferenceValidationError = validate$
|
|
13696
|
+
const referencepath_listReferenceValidationError = validate$1F(obj_listReference, path_listReference);
|
|
13496
13697
|
if (referencepath_listReferenceValidationError !== null) {
|
|
13497
13698
|
let message = 'Object doesn\'t match ListReferenceRepresentation (at "' + path_listReference + '")\n';
|
|
13498
13699
|
message += referencepath_listReferenceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -13703,7 +13904,7 @@ function normalize$J(input, existing, path, luvio, store, timestamp) {
|
|
|
13703
13904
|
return input;
|
|
13704
13905
|
}
|
|
13705
13906
|
const select$2H = function ListRecordCollectionRepresentationSelect(paginationParams) {
|
|
13706
|
-
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$
|
|
13907
|
+
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$2S();
|
|
13707
13908
|
return {
|
|
13708
13909
|
kind: 'Fragment',
|
|
13709
13910
|
reader: true,
|
|
@@ -13817,7 +14018,7 @@ const dynamicSelect$7 = function dynamicListRecordCollectionRepresentationSelect
|
|
|
13817
14018
|
kind: 'Link',
|
|
13818
14019
|
fragment: select$2I()
|
|
13819
14020
|
} : params.records;
|
|
13820
|
-
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$
|
|
14021
|
+
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$2S();
|
|
13821
14022
|
return {
|
|
13822
14023
|
kind: 'Fragment',
|
|
13823
14024
|
reader: true,
|
|
@@ -32277,7 +32478,7 @@ function validate$A(obj, path = 'RelatedListInfoRepresentation') {
|
|
|
32277
32478
|
for (let i = 0; i < obj_filteredByInfo.length; i++) {
|
|
32278
32479
|
const obj_filteredByInfo_item = obj_filteredByInfo[i];
|
|
32279
32480
|
const path_filteredByInfo_item = path_filteredByInfo + '[' + i + ']';
|
|
32280
|
-
const referencepath_filteredByInfo_itemValidationError = validate$
|
|
32481
|
+
const referencepath_filteredByInfo_itemValidationError = validate$1G(obj_filteredByInfo_item, path_filteredByInfo_item);
|
|
32281
32482
|
if (referencepath_filteredByInfo_itemValidationError !== null) {
|
|
32282
32483
|
let message = 'Object doesn\'t match ListFilterByInfoRepresentation (at "' + path_filteredByInfo_item + '")\n';
|
|
32283
32484
|
message += referencepath_filteredByInfo_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -32329,7 +32530,7 @@ function validate$A(obj, path = 'RelatedListInfoRepresentation') {
|
|
|
32329
32530
|
for (let i = 0; i < obj_orderedByInfo.length; i++) {
|
|
32330
32531
|
const obj_orderedByInfo_item = obj_orderedByInfo[i];
|
|
32331
32532
|
const path_orderedByInfo_item = path_orderedByInfo + '[' + i + ']';
|
|
32332
|
-
const referencepath_orderedByInfo_itemValidationError = validate$
|
|
32533
|
+
const referencepath_orderedByInfo_itemValidationError = validate$1E(obj_orderedByInfo_item, path_orderedByInfo_item);
|
|
32333
32534
|
if (referencepath_orderedByInfo_itemValidationError !== null) {
|
|
32334
32535
|
let message = 'Object doesn\'t match ListOrderByInfoRepresentation (at "' + path_orderedByInfo_item + '")\n';
|
|
32335
32536
|
message += referencepath_orderedByInfo_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -33673,7 +33874,7 @@ function validate$v(obj, path = 'RelatedListUserPreferencesRepresentation') {
|
|
|
33673
33874
|
for (let i = 0; i < obj_orderedBy.length; i++) {
|
|
33674
33875
|
const obj_orderedBy_item = obj_orderedBy[i];
|
|
33675
33876
|
const path_orderedBy_item = path_orderedBy + '[' + i + ']';
|
|
33676
|
-
const referencepath_orderedBy_itemValidationError = validate$
|
|
33877
|
+
const referencepath_orderedBy_itemValidationError = validate$1E(obj_orderedBy_item, path_orderedBy_item);
|
|
33677
33878
|
if (referencepath_orderedBy_itemValidationError !== null) {
|
|
33678
33879
|
let message = 'Object doesn\'t match ListOrderByInfoRepresentation (at "' + path_orderedBy_item + '")\n';
|
|
33679
33880
|
message += referencepath_orderedBy_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -37264,7 +37465,7 @@ function validate$h(obj, path = 'SearchResultCollectionRepresentation') {
|
|
|
37264
37465
|
for (let i = 0; i < obj_orderBy.length; i++) {
|
|
37265
37466
|
const obj_orderBy_item = obj_orderBy[i];
|
|
37266
37467
|
const path_orderBy_item = path_orderBy + '[' + i + ']';
|
|
37267
|
-
const referencepath_orderBy_itemValidationError = validate$
|
|
37468
|
+
const referencepath_orderBy_itemValidationError = validate$1E(obj_orderBy_item, path_orderBy_item);
|
|
37268
37469
|
if (referencepath_orderBy_itemValidationError !== null) {
|
|
37269
37470
|
let message = 'Object doesn\'t match ListOrderByInfoRepresentation (at "' + path_orderBy_item + '")\n';
|
|
37270
37471
|
message += referencepath_orderBy_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -57127,43 +57328,38 @@ function getInContextFragmentType(fragment, fragmentMap) {
|
|
|
57127
57328
|
const TTL$5 = 900000;
|
|
57128
57329
|
const VERSION$b = "b440235e7e724631f92002fe50e3e096";
|
|
57129
57330
|
const RepresentationType$c = 'GraphQLRepresentation';
|
|
57130
|
-
function select$8(luvio,
|
|
57131
|
-
const
|
|
57331
|
+
function select$8(luvio, document, variables, operationName) {
|
|
57332
|
+
const operationToExecute = getOperationFromDocument(document, operationName);
|
|
57132
57333
|
return {
|
|
57133
57334
|
kind: 'Fragment',
|
|
57134
57335
|
synthetic: true,
|
|
57135
57336
|
reader: true,
|
|
57136
57337
|
read: (builder) => {
|
|
57137
57338
|
builder.enterPath('data');
|
|
57138
|
-
let sink = {};
|
|
57139
|
-
const fragments = createFragmentMap(query);
|
|
57140
|
-
for (let i = 0, len = definitions.length; i < len; i += 1) {
|
|
57141
|
-
const def = definitions[i];
|
|
57142
|
-
if (def.kind === 'OperationDefinition') {
|
|
57143
|
-
const queryTypeRecordId = keyBuilder$e(luvio, def, variables, fragments);
|
|
57144
|
-
const snapshot = builder.read({
|
|
57145
|
-
recordId: queryTypeRecordId,
|
|
57146
|
-
node: {
|
|
57147
|
-
kind: 'Fragment',
|
|
57148
|
-
private: [],
|
|
57149
|
-
opaque: true,
|
|
57150
|
-
version: VERSION$c
|
|
57151
|
-
},
|
|
57152
|
-
variables: {}
|
|
57153
|
-
});
|
|
57154
|
-
if (snapshot.data === undefined) {
|
|
57155
|
-
builder.markMissingLink(queryTypeRecordId);
|
|
57156
|
-
break;
|
|
57157
|
-
}
|
|
57158
|
-
const data = select$9(def, variables, fragments)(snapshot.data, builder, queryTypeRecordId);
|
|
57159
|
-
sink = {
|
|
57160
|
-
...sink,
|
|
57161
|
-
...data,
|
|
57162
|
-
};
|
|
57163
|
-
}
|
|
57164
|
-
}
|
|
57165
57339
|
const gqlData = {};
|
|
57166
|
-
|
|
57340
|
+
if (operationToExecute === undefined) {
|
|
57341
|
+
builder.markMissing(); // Never give a cache hit for an undefined operation
|
|
57342
|
+
return gqlData;
|
|
57343
|
+
}
|
|
57344
|
+
const fragments = createFragmentMap(document);
|
|
57345
|
+
const queryTypeRecordId = keyBuilder$e(luvio, operationToExecute, variables, fragments);
|
|
57346
|
+
const snapshot = builder.read({
|
|
57347
|
+
recordId: queryTypeRecordId,
|
|
57348
|
+
node: {
|
|
57349
|
+
kind: 'Fragment',
|
|
57350
|
+
private: [],
|
|
57351
|
+
opaque: true,
|
|
57352
|
+
version: VERSION$c
|
|
57353
|
+
},
|
|
57354
|
+
variables: {}
|
|
57355
|
+
});
|
|
57356
|
+
if (snapshot.data === undefined) {
|
|
57357
|
+
builder.markMissingLink(queryTypeRecordId);
|
|
57358
|
+
}
|
|
57359
|
+
else {
|
|
57360
|
+
const data = select$9(operationToExecute, variables, fragments)(snapshot.data, builder, queryTypeRecordId);
|
|
57361
|
+
builder.assignNonScalar(gqlData, 'data', data);
|
|
57362
|
+
}
|
|
57167
57363
|
builder.exitPath();
|
|
57168
57364
|
return gqlData;
|
|
57169
57365
|
}
|
|
@@ -57183,10 +57379,10 @@ function ingestOperationNode(luvio, input, node, state) {
|
|
|
57183
57379
|
});
|
|
57184
57380
|
}
|
|
57185
57381
|
}
|
|
57186
|
-
const ingest$7 = function GraphQLRepresentationIngest(
|
|
57382
|
+
const ingest$7 = function GraphQLRepresentationIngest(document, variables, operationName) {
|
|
57187
57383
|
return (input, path, luvio, store, timestamp) => {
|
|
57188
57384
|
if (input.data) {
|
|
57189
|
-
const fragments = createFragmentMap(
|
|
57385
|
+
const fragments = createFragmentMap(document);
|
|
57190
57386
|
const state = {
|
|
57191
57387
|
data: input.data,
|
|
57192
57388
|
luvio,
|
|
@@ -57196,44 +57392,42 @@ const ingest$7 = function GraphQLRepresentationIngest(query, variables) {
|
|
|
57196
57392
|
variables,
|
|
57197
57393
|
fragments,
|
|
57198
57394
|
};
|
|
57199
|
-
|
|
57200
|
-
|
|
57201
|
-
|
|
57202
|
-
|
|
57203
|
-
});
|
|
57395
|
+
const operationToExecute = getOperationFromDocument(document, operationName);
|
|
57396
|
+
if (operationToExecute !== undefined) {
|
|
57397
|
+
ingestOperationNode(luvio, input, operationToExecute, state);
|
|
57398
|
+
}
|
|
57204
57399
|
}
|
|
57205
57400
|
return {
|
|
57206
57401
|
__ref: undefined
|
|
57207
57402
|
};
|
|
57208
57403
|
};
|
|
57209
57404
|
};
|
|
57210
|
-
function getTypeCacheKeys$8(luvio,
|
|
57405
|
+
function getTypeCacheKeys$8(luvio, document, variables, data, operationName) {
|
|
57211
57406
|
const sink = new StoreKeyMap();
|
|
57212
57407
|
if (data.data) {
|
|
57213
|
-
const fragments = createFragmentMap(
|
|
57214
|
-
|
|
57215
|
-
|
|
57216
|
-
|
|
57217
|
-
|
|
57218
|
-
|
|
57219
|
-
|
|
57220
|
-
|
|
57221
|
-
|
|
57222
|
-
|
|
57223
|
-
|
|
57224
|
-
|
|
57225
|
-
|
|
57226
|
-
|
|
57227
|
-
|
|
57228
|
-
|
|
57229
|
-
});
|
|
57408
|
+
const fragments = createFragmentMap(document);
|
|
57409
|
+
const operationToExecute = getOperationFromDocument(document, operationName);
|
|
57410
|
+
if (operationToExecute !== undefined) {
|
|
57411
|
+
const state = {
|
|
57412
|
+
luvio,
|
|
57413
|
+
variables,
|
|
57414
|
+
fragments,
|
|
57415
|
+
data: data.data,
|
|
57416
|
+
path: {
|
|
57417
|
+
parent: null,
|
|
57418
|
+
propertyName: null,
|
|
57419
|
+
fullPath: '' // TODO: W-13079691 - Need to take another pass at what we want to do for structured keys
|
|
57420
|
+
}
|
|
57421
|
+
};
|
|
57422
|
+
sink.merge(getTypeCacheKeys$9(operationToExecute, state));
|
|
57423
|
+
}
|
|
57230
57424
|
}
|
|
57231
57425
|
return sink;
|
|
57232
57426
|
}
|
|
57233
57427
|
|
|
57234
57428
|
function select$7(luvio, config) {
|
|
57235
|
-
const { query, variables } = config;
|
|
57236
|
-
return select$8(luvio, query, variables);
|
|
57429
|
+
const { query, variables, operationName } = config;
|
|
57430
|
+
return select$8(luvio, query, variables, operationName);
|
|
57237
57431
|
}
|
|
57238
57432
|
function keyBuilder$d(luvio, params) {
|
|
57239
57433
|
return keyPrefix + '::' + 'GraphQLRepresentation';
|
|
@@ -57241,13 +57435,14 @@ function keyBuilder$d(luvio, params) {
|
|
|
57241
57435
|
function getResponseCacheKeys$b(luvio, resourceParams, response) {
|
|
57242
57436
|
const query = resourceParams.body.query;
|
|
57243
57437
|
const variables = resourceParams.body.variables || {};
|
|
57244
|
-
|
|
57438
|
+
const operationName = resourceParams.body.operationName;
|
|
57439
|
+
return getTypeCacheKeys$8(luvio, query, variables, response, operationName);
|
|
57245
57440
|
}
|
|
57246
57441
|
function ingestSuccess$5(luvio, config, resourceParams, response, snapshotRefresh) {
|
|
57247
57442
|
const { body } = response;
|
|
57248
57443
|
const key = keyBuilder$d();
|
|
57249
|
-
const { query, variables } = resourceParams.body;
|
|
57250
|
-
luvio.storeIngest(key, ingest$7(query, variables), body);
|
|
57444
|
+
const { query, variables, operationName } = resourceParams.body;
|
|
57445
|
+
luvio.storeIngest(key, ingest$7(query, variables, operationName), body);
|
|
57251
57446
|
// revert the optimized pagination variables back to its original so that subsequent store lookup will include all records, not just the ones loaded by an optimized query
|
|
57252
57447
|
// see optimizePagination for initial update to optimize the query
|
|
57253
57448
|
revertPaginationOptimization(variables);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lwc-adapters-uiapi",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.142.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "UIAPI adapters with LWC bindings",
|
|
6
6
|
"module": "dist/main.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@salesforce/lds-adapters-uiapi": "*"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@luvio/lwc-luvio": "0.
|
|
37
|
+
"@luvio/lwc-luvio": "0.142.3",
|
|
38
38
|
"@salesforce/lds-default-luvio": "*"
|
|
39
39
|
}
|
|
40
40
|
}
|