@salesforce/lds-worker-api 1.242.1 → 1.244.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.
|
@@ -2605,7 +2605,10 @@
|
|
|
2605
2605
|
this.markPending();
|
|
2606
2606
|
return;
|
|
2607
2607
|
default:
|
|
2608
|
-
|
|
2608
|
+
// if we have a link reference we override the required property passed to true
|
|
2609
|
+
// because if there was a missing reference the `isMissing` property would be true and the links state would
|
|
2610
|
+
// have returned `Missing`.
|
|
2611
|
+
this.readStoreLinkWithRef(linkState, fragment, sink, property, true);
|
|
2609
2612
|
}
|
|
2610
2613
|
}
|
|
2611
2614
|
markRedirectsSeen(state) {
|
|
@@ -3905,7 +3908,7 @@
|
|
|
3905
3908
|
}
|
|
3906
3909
|
return resourceParams;
|
|
3907
3910
|
}
|
|
3908
|
-
// engine version: 0.150.
|
|
3911
|
+
// engine version: 0.150.3-a08cc935
|
|
3909
3912
|
|
|
3910
3913
|
/**
|
|
3911
3914
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4033,7 +4036,7 @@
|
|
|
4033
4036
|
}
|
|
4034
4037
|
callbacks.push(callback);
|
|
4035
4038
|
}
|
|
4036
|
-
// version: 1.
|
|
4039
|
+
// version: 1.244.0-72e322fff
|
|
4037
4040
|
|
|
4038
4041
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4039
4042
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15494,7 +15497,7 @@
|
|
|
15494
15497
|
}
|
|
15495
15498
|
return superResult;
|
|
15496
15499
|
}
|
|
15497
|
-
// version: 1.
|
|
15500
|
+
// version: 1.244.0-72e322fff
|
|
15498
15501
|
|
|
15499
15502
|
function unwrap(data) {
|
|
15500
15503
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16419,7 +16422,7 @@
|
|
|
16419
16422
|
const { apiFamily, name } = metadata;
|
|
16420
16423
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16421
16424
|
}
|
|
16422
|
-
// version: 1.
|
|
16425
|
+
// version: 1.244.0-72e322fff
|
|
16423
16426
|
|
|
16424
16427
|
/**
|
|
16425
16428
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16518,7 +16521,7 @@
|
|
|
16518
16521
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16519
16522
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16520
16523
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16521
|
-
// engine version: 0.150.
|
|
16524
|
+
// engine version: 0.150.3-a08cc935
|
|
16522
16525
|
|
|
16523
16526
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16524
16527
|
|
|
@@ -17106,60 +17109,11 @@
|
|
|
17106
17109
|
entry['__metadata'] = createLink$3(metadataKey);
|
|
17107
17110
|
}
|
|
17108
17111
|
|
|
17109
|
-
const VERSION$
|
|
17110
|
-
|
|
17111
|
-
const v_error = (() => {
|
|
17112
|
-
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
17113
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
17114
|
-
}
|
|
17115
|
-
const obj_fieldApiName = obj.fieldApiName;
|
|
17116
|
-
const path_fieldApiName = path + '.fieldApiName';
|
|
17117
|
-
if (typeof obj_fieldApiName !== 'string') {
|
|
17118
|
-
return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
|
|
17119
|
-
}
|
|
17120
|
-
const obj_label = obj.label;
|
|
17121
|
-
const path_label = path + '.label';
|
|
17122
|
-
if (typeof obj_label !== 'string') {
|
|
17123
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
17124
|
-
}
|
|
17125
|
-
const obj_lookupId = obj.lookupId;
|
|
17126
|
-
const path_lookupId = path + '.lookupId';
|
|
17127
|
-
let obj_lookupId_union0 = null;
|
|
17128
|
-
const obj_lookupId_union0_error = (() => {
|
|
17129
|
-
if (typeof obj_lookupId !== 'string') {
|
|
17130
|
-
return new TypeError('Expected "string" but received "' + typeof obj_lookupId + '" (at "' + path_lookupId + '")');
|
|
17131
|
-
}
|
|
17132
|
-
})();
|
|
17133
|
-
if (obj_lookupId_union0_error != null) {
|
|
17134
|
-
obj_lookupId_union0 = obj_lookupId_union0_error.message;
|
|
17135
|
-
}
|
|
17136
|
-
let obj_lookupId_union1 = null;
|
|
17137
|
-
const obj_lookupId_union1_error = (() => {
|
|
17138
|
-
if (obj_lookupId !== null) {
|
|
17139
|
-
return new TypeError('Expected "null" but received "' + typeof obj_lookupId + '" (at "' + path_lookupId + '")');
|
|
17140
|
-
}
|
|
17141
|
-
})();
|
|
17142
|
-
if (obj_lookupId_union1_error != null) {
|
|
17143
|
-
obj_lookupId_union1 = obj_lookupId_union1_error.message;
|
|
17144
|
-
}
|
|
17145
|
-
if (obj_lookupId_union0 && obj_lookupId_union1) {
|
|
17146
|
-
let message = 'Object doesn\'t match union (at "' + path_lookupId + '")';
|
|
17147
|
-
message += '\n' + obj_lookupId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
17148
|
-
message += '\n' + obj_lookupId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
17149
|
-
return new TypeError(message);
|
|
17150
|
-
}
|
|
17151
|
-
const obj_sortable = obj.sortable;
|
|
17152
|
-
const path_sortable = path + '.sortable';
|
|
17153
|
-
if (typeof obj_sortable !== 'boolean') {
|
|
17154
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_sortable + '" (at "' + path_sortable + '")');
|
|
17155
|
-
}
|
|
17156
|
-
})();
|
|
17157
|
-
return v_error === undefined ? null : v_error;
|
|
17158
|
-
}
|
|
17159
|
-
const select$1U = function ListColumnRepresentationSelect() {
|
|
17112
|
+
const VERSION$1o = "275ae22194003d1e53f548b81219c5cb";
|
|
17113
|
+
const select$1W$1 = function ListColumnRepresentationSelect() {
|
|
17160
17114
|
return {
|
|
17161
17115
|
kind: 'Fragment',
|
|
17162
|
-
version: VERSION$
|
|
17116
|
+
version: VERSION$1o,
|
|
17163
17117
|
private: [],
|
|
17164
17118
|
selections: [
|
|
17165
17119
|
{
|
|
@@ -17182,46 +17136,11 @@
|
|
|
17182
17136
|
};
|
|
17183
17137
|
};
|
|
17184
17138
|
|
|
17185
|
-
const VERSION$
|
|
17186
|
-
|
|
17187
|
-
const v_error = (() => {
|
|
17188
|
-
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
17189
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
17190
|
-
}
|
|
17191
|
-
const obj_fieldApiName = obj.fieldApiName;
|
|
17192
|
-
const path_fieldApiName = path + '.fieldApiName';
|
|
17193
|
-
if (typeof obj_fieldApiName !== 'string') {
|
|
17194
|
-
return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
|
|
17195
|
-
}
|
|
17196
|
-
const obj_label = obj.label;
|
|
17197
|
-
const path_label = path + '.label';
|
|
17198
|
-
if (typeof obj_label !== 'string') {
|
|
17199
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
17200
|
-
}
|
|
17201
|
-
const obj_operandLabels = obj.operandLabels;
|
|
17202
|
-
const path_operandLabels = path + '.operandLabels';
|
|
17203
|
-
if (!ArrayIsArray$2(obj_operandLabels)) {
|
|
17204
|
-
return new TypeError('Expected "array" but received "' + typeof obj_operandLabels + '" (at "' + path_operandLabels + '")');
|
|
17205
|
-
}
|
|
17206
|
-
for (let i = 0; i < obj_operandLabels.length; i++) {
|
|
17207
|
-
const obj_operandLabels_item = obj_operandLabels[i];
|
|
17208
|
-
const path_operandLabels_item = path_operandLabels + '[' + i + ']';
|
|
17209
|
-
if (typeof obj_operandLabels_item !== 'string') {
|
|
17210
|
-
return new TypeError('Expected "string" but received "' + typeof obj_operandLabels_item + '" (at "' + path_operandLabels_item + '")');
|
|
17211
|
-
}
|
|
17212
|
-
}
|
|
17213
|
-
const obj_operator = obj.operator;
|
|
17214
|
-
const path_operator = path + '.operator';
|
|
17215
|
-
if (typeof obj_operator !== 'string') {
|
|
17216
|
-
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
17217
|
-
}
|
|
17218
|
-
})();
|
|
17219
|
-
return v_error === undefined ? null : v_error;
|
|
17220
|
-
}
|
|
17221
|
-
const select$1T = function ListFilterByInfoRepresentationSelect() {
|
|
17139
|
+
const VERSION$1n = "623aa9ce3a11031e35faf5671a41746e";
|
|
17140
|
+
const select$1V = function ListFilterByInfoRepresentationSelect() {
|
|
17222
17141
|
return {
|
|
17223
17142
|
kind: 'Fragment',
|
|
17224
|
-
version: VERSION$
|
|
17143
|
+
version: VERSION$1n,
|
|
17225
17144
|
private: [],
|
|
17226
17145
|
selections: [
|
|
17227
17146
|
{
|
|
@@ -17245,11 +17164,11 @@
|
|
|
17245
17164
|
};
|
|
17246
17165
|
};
|
|
17247
17166
|
|
|
17248
|
-
const VERSION$
|
|
17249
|
-
const select$
|
|
17167
|
+
const VERSION$1m = "76042ff4af603b2ac0ec69fa0bd12046";
|
|
17168
|
+
const select$1U = function ListReferenceRepresentationSelect() {
|
|
17250
17169
|
return {
|
|
17251
17170
|
kind: 'Fragment',
|
|
17252
|
-
version: VERSION$
|
|
17171
|
+
version: VERSION$1m,
|
|
17253
17172
|
private: [],
|
|
17254
17173
|
selections: [
|
|
17255
17174
|
{
|
|
@@ -17295,6 +17214,47 @@
|
|
|
17295
17214
|
return true;
|
|
17296
17215
|
}
|
|
17297
17216
|
|
|
17217
|
+
const VERSION$1l = "494e0262f07ff2cc5f82d1e0262fec4f";
|
|
17218
|
+
const select$1T = function ListInfoShareRepresentationSelect() {
|
|
17219
|
+
return {
|
|
17220
|
+
kind: 'Fragment',
|
|
17221
|
+
version: VERSION$1l,
|
|
17222
|
+
private: [],
|
|
17223
|
+
selections: [
|
|
17224
|
+
{
|
|
17225
|
+
name: 'groupApiName',
|
|
17226
|
+
kind: 'Scalar'
|
|
17227
|
+
},
|
|
17228
|
+
{
|
|
17229
|
+
name: 'label',
|
|
17230
|
+
kind: 'Scalar'
|
|
17231
|
+
}
|
|
17232
|
+
]
|
|
17233
|
+
};
|
|
17234
|
+
};
|
|
17235
|
+
|
|
17236
|
+
const VERSION$1k = "561657f32721ec1dac1601575b029640";
|
|
17237
|
+
const select$1S = function ListInfoShareCategoryRepresentationSelect() {
|
|
17238
|
+
const { selections: ListInfoShareRepresentation__selections, opaque: ListInfoShareRepresentation__opaque, } = select$1T();
|
|
17239
|
+
return {
|
|
17240
|
+
kind: 'Fragment',
|
|
17241
|
+
version: VERSION$1k,
|
|
17242
|
+
private: [],
|
|
17243
|
+
selections: [
|
|
17244
|
+
{
|
|
17245
|
+
name: 'shareType',
|
|
17246
|
+
kind: 'Scalar'
|
|
17247
|
+
},
|
|
17248
|
+
{
|
|
17249
|
+
name: 'shares',
|
|
17250
|
+
kind: 'Object',
|
|
17251
|
+
plural: true,
|
|
17252
|
+
selections: ListInfoShareRepresentation__selections
|
|
17253
|
+
}
|
|
17254
|
+
]
|
|
17255
|
+
};
|
|
17256
|
+
};
|
|
17257
|
+
|
|
17298
17258
|
const VERSION$1j = "32def9b631252c12b91a8209c1f49f5a";
|
|
17299
17259
|
const select$1R = function ListOrderByInfoRepresentationSelect() {
|
|
17300
17260
|
return {
|
|
@@ -17319,24 +17279,6 @@
|
|
|
17319
17279
|
};
|
|
17320
17280
|
|
|
17321
17281
|
const VERSION$1i = "2634258f216db34315c06d759a35676d";
|
|
17322
|
-
function validate$1G(obj, path = 'ListScopeEntityRepresentation') {
|
|
17323
|
-
const v_error = (() => {
|
|
17324
|
-
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
17325
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
17326
|
-
}
|
|
17327
|
-
const obj_id = obj.id;
|
|
17328
|
-
const path_id = path + '.id';
|
|
17329
|
-
if (typeof obj_id !== 'string') {
|
|
17330
|
-
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
17331
|
-
}
|
|
17332
|
-
const obj_label = obj.label;
|
|
17333
|
-
const path_label = path + '.label';
|
|
17334
|
-
if (typeof obj_label !== 'string') {
|
|
17335
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
17336
|
-
}
|
|
17337
|
-
})();
|
|
17338
|
-
return v_error === undefined ? null : v_error;
|
|
17339
|
-
}
|
|
17340
17282
|
const select$1Q = function ListScopeEntityRepresentationSelect() {
|
|
17341
17283
|
return {
|
|
17342
17284
|
kind: 'Fragment',
|
|
@@ -17356,29 +17298,6 @@
|
|
|
17356
17298
|
};
|
|
17357
17299
|
|
|
17358
17300
|
const VERSION$1h = "3b85c5a08d50ce328481b9f8ab56127b";
|
|
17359
|
-
function validate$1F(obj, path = 'ListScopeRelatedEntityRepresentation') {
|
|
17360
|
-
const v_error = (() => {
|
|
17361
|
-
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
17362
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
17363
|
-
}
|
|
17364
|
-
const obj_id = obj.id;
|
|
17365
|
-
const path_id = path + '.id';
|
|
17366
|
-
if (typeof obj_id !== 'string') {
|
|
17367
|
-
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
17368
|
-
}
|
|
17369
|
-
const obj_label = obj.label;
|
|
17370
|
-
const path_label = path + '.label';
|
|
17371
|
-
if (typeof obj_label !== 'string') {
|
|
17372
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
17373
|
-
}
|
|
17374
|
-
const obj_type = obj.type;
|
|
17375
|
-
const path_type = path + '.type';
|
|
17376
|
-
if (typeof obj_type !== 'string') {
|
|
17377
|
-
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
17378
|
-
}
|
|
17379
|
-
})();
|
|
17380
|
-
return v_error === undefined ? null : v_error;
|
|
17381
|
-
}
|
|
17382
17301
|
const select$1P = function ListScopeRelatedEntityRepresentationSelect() {
|
|
17383
17302
|
return {
|
|
17384
17303
|
kind: 'Fragment',
|
|
@@ -17401,83 +17320,7 @@
|
|
|
17401
17320
|
};
|
|
17402
17321
|
};
|
|
17403
17322
|
|
|
17404
|
-
const VERSION$1g = "
|
|
17405
|
-
function validate$1E(obj, path = 'ListScopeRepresentation') {
|
|
17406
|
-
const v_error = (() => {
|
|
17407
|
-
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
17408
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
17409
|
-
}
|
|
17410
|
-
const obj_apiName = obj.apiName;
|
|
17411
|
-
const path_apiName = path + '.apiName';
|
|
17412
|
-
if (typeof obj_apiName !== 'string') {
|
|
17413
|
-
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
17414
|
-
}
|
|
17415
|
-
const obj_entity = obj.entity;
|
|
17416
|
-
const path_entity = path + '.entity';
|
|
17417
|
-
let obj_entity_union0 = null;
|
|
17418
|
-
const obj_entity_union0_error = (() => {
|
|
17419
|
-
const referencepath_entityValidationError = validate$1G(obj_entity, path_entity);
|
|
17420
|
-
if (referencepath_entityValidationError !== null) {
|
|
17421
|
-
let message = 'Object doesn\'t match ListScopeEntityRepresentation (at "' + path_entity + '")\n';
|
|
17422
|
-
message += referencepath_entityValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
17423
|
-
return new TypeError(message);
|
|
17424
|
-
}
|
|
17425
|
-
})();
|
|
17426
|
-
if (obj_entity_union0_error != null) {
|
|
17427
|
-
obj_entity_union0 = obj_entity_union0_error.message;
|
|
17428
|
-
}
|
|
17429
|
-
let obj_entity_union1 = null;
|
|
17430
|
-
const obj_entity_union1_error = (() => {
|
|
17431
|
-
if (obj_entity !== null) {
|
|
17432
|
-
return new TypeError('Expected "null" but received "' + typeof obj_entity + '" (at "' + path_entity + '")');
|
|
17433
|
-
}
|
|
17434
|
-
})();
|
|
17435
|
-
if (obj_entity_union1_error != null) {
|
|
17436
|
-
obj_entity_union1 = obj_entity_union1_error.message;
|
|
17437
|
-
}
|
|
17438
|
-
if (obj_entity_union0 && obj_entity_union1) {
|
|
17439
|
-
let message = 'Object doesn\'t match union (at "' + path_entity + '")';
|
|
17440
|
-
message += '\n' + obj_entity_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
17441
|
-
message += '\n' + obj_entity_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
17442
|
-
return new TypeError(message);
|
|
17443
|
-
}
|
|
17444
|
-
const obj_label = obj.label;
|
|
17445
|
-
const path_label = path + '.label';
|
|
17446
|
-
if (typeof obj_label !== 'string') {
|
|
17447
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
17448
|
-
}
|
|
17449
|
-
const obj_relatedEntity = obj.relatedEntity;
|
|
17450
|
-
const path_relatedEntity = path + '.relatedEntity';
|
|
17451
|
-
let obj_relatedEntity_union0 = null;
|
|
17452
|
-
const obj_relatedEntity_union0_error = (() => {
|
|
17453
|
-
const referencepath_relatedEntityValidationError = validate$1F(obj_relatedEntity, path_relatedEntity);
|
|
17454
|
-
if (referencepath_relatedEntityValidationError !== null) {
|
|
17455
|
-
let message = 'Object doesn\'t match ListScopeRelatedEntityRepresentation (at "' + path_relatedEntity + '")\n';
|
|
17456
|
-
message += referencepath_relatedEntityValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
17457
|
-
return new TypeError(message);
|
|
17458
|
-
}
|
|
17459
|
-
})();
|
|
17460
|
-
if (obj_relatedEntity_union0_error != null) {
|
|
17461
|
-
obj_relatedEntity_union0 = obj_relatedEntity_union0_error.message;
|
|
17462
|
-
}
|
|
17463
|
-
let obj_relatedEntity_union1 = null;
|
|
17464
|
-
const obj_relatedEntity_union1_error = (() => {
|
|
17465
|
-
if (obj_relatedEntity !== null) {
|
|
17466
|
-
return new TypeError('Expected "null" but received "' + typeof obj_relatedEntity + '" (at "' + path_relatedEntity + '")');
|
|
17467
|
-
}
|
|
17468
|
-
})();
|
|
17469
|
-
if (obj_relatedEntity_union1_error != null) {
|
|
17470
|
-
obj_relatedEntity_union1 = obj_relatedEntity_union1_error.message;
|
|
17471
|
-
}
|
|
17472
|
-
if (obj_relatedEntity_union0 && obj_relatedEntity_union1) {
|
|
17473
|
-
let message = 'Object doesn\'t match union (at "' + path_relatedEntity + '")';
|
|
17474
|
-
message += '\n' + obj_relatedEntity_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
17475
|
-
message += '\n' + obj_relatedEntity_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
17476
|
-
return new TypeError(message);
|
|
17477
|
-
}
|
|
17478
|
-
})();
|
|
17479
|
-
return v_error === undefined ? null : v_error;
|
|
17480
|
-
}
|
|
17323
|
+
const VERSION$1g = "2fe9814e7124b47f59da585483c1b3f9";
|
|
17481
17324
|
const select$1O = function ListScopeRepresentationSelect() {
|
|
17482
17325
|
const { selections: ListScopeEntityRepresentation__selections, opaque: ListScopeEntityRepresentation__opaque, } = select$1Q();
|
|
17483
17326
|
const { selections: ListScopeRelatedEntityRepresentation__selections, opaque: ListScopeRelatedEntityRepresentation__opaque, } = select$1P();
|
|
@@ -17532,7 +17375,7 @@
|
|
|
17532
17375
|
};
|
|
17533
17376
|
|
|
17534
17377
|
const TTL$y = 900000;
|
|
17535
|
-
const VERSION$1e = "
|
|
17378
|
+
const VERSION$1e = "0dbff3feaaa7ced2709e9ae46c58a3e7";
|
|
17536
17379
|
const RepresentationType$R = 'ListInfoRepresentation';
|
|
17537
17380
|
function keyBuilder$1V(luvio, config) {
|
|
17538
17381
|
return keyPrefix$1 + '::' + RepresentationType$R + ':' + (config.listViewApiName === null ? '' : config.listViewApiName) + ':' + config.objectApiName + ':' + config.type;
|
|
@@ -17549,9 +17392,10 @@
|
|
|
17549
17392
|
return input;
|
|
17550
17393
|
}
|
|
17551
17394
|
const select$1M = function ListInfoRepresentationSelect() {
|
|
17552
|
-
const { selections: ListColumnRepresentation__selections, opaque: ListColumnRepresentation__opaque, } = select$
|
|
17553
|
-
const { selections: ListFilterByInfoRepresentation__selections, opaque: ListFilterByInfoRepresentation__opaque, } = select$
|
|
17554
|
-
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$
|
|
17395
|
+
const { selections: ListColumnRepresentation__selections, opaque: ListColumnRepresentation__opaque, } = select$1W$1();
|
|
17396
|
+
const { selections: ListFilterByInfoRepresentation__selections, opaque: ListFilterByInfoRepresentation__opaque, } = select$1V();
|
|
17397
|
+
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$1U();
|
|
17398
|
+
const { selections: ListInfoShareCategoryRepresentation__selections, opaque: ListInfoShareCategoryRepresentation__opaque, } = select$1S();
|
|
17555
17399
|
const { selections: ListOrderByInfoRepresentation__selections, opaque: ListOrderByInfoRepresentation__opaque, } = select$1R();
|
|
17556
17400
|
const { selections: ListScopeRepresentation__selections, opaque: ListScopeRepresentation__opaque, } = select$1O();
|
|
17557
17401
|
const { selections: ListUserPreferenceRepresentation__selections, opaque: ListUserPreferenceRepresentation__opaque, } = select$1N();
|
|
@@ -17599,6 +17443,13 @@
|
|
|
17599
17443
|
kind: 'Object',
|
|
17600
17444
|
selections: ListReferenceRepresentation__selections
|
|
17601
17445
|
},
|
|
17446
|
+
{
|
|
17447
|
+
name: 'listShares',
|
|
17448
|
+
kind: 'Object',
|
|
17449
|
+
plural: true,
|
|
17450
|
+
selections: ListInfoShareCategoryRepresentation__selections,
|
|
17451
|
+
required: false
|
|
17452
|
+
},
|
|
17602
17453
|
{
|
|
17603
17454
|
name: 'objectApiNames',
|
|
17604
17455
|
kind: 'Scalar',
|
|
@@ -20511,6 +20362,7 @@
|
|
|
20511
20362
|
const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) => {
|
|
20512
20363
|
const childNormalize = createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap);
|
|
20513
20364
|
return (input, path, luvio, store, timestamp) => {
|
|
20365
|
+
input.eTag = ''; //[W-13724550] Record Reps ALWAYS have '' etag, to be consistent with GraphQL, as it is not queryable via GraphQL.
|
|
20514
20366
|
const key = keyBuilderFromType$z(luvio, input);
|
|
20515
20367
|
let existingRecord = store.readEntry(key);
|
|
20516
20368
|
const recordPath = {
|
|
@@ -21212,6 +21064,7 @@
|
|
|
21212
21064
|
|
|
21213
21065
|
const createIngestRecordWithFields = (fields, optionalFields) => {
|
|
21214
21066
|
return (input, path, luvio, store, timestamp) => {
|
|
21067
|
+
input.eTag = ''; //[W-13724550] Record Reps ALWAYS have '' etag, to be consistent with GraphQL, as it is not queryable via GraphQL.
|
|
21215
21068
|
const conflictMap = {
|
|
21216
21069
|
conflicts: {},
|
|
21217
21070
|
serverRequestCount: 0,
|
|
@@ -21364,7 +21217,7 @@
|
|
|
21364
21217
|
return input;
|
|
21365
21218
|
}
|
|
21366
21219
|
const select$1H = function ListRecordCollectionRepresentationSelect(paginationParams) {
|
|
21367
|
-
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$
|
|
21220
|
+
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$1U();
|
|
21368
21221
|
return {
|
|
21369
21222
|
kind: 'Fragment',
|
|
21370
21223
|
reader: true,
|
|
@@ -21478,7 +21331,7 @@
|
|
|
21478
21331
|
kind: 'Link',
|
|
21479
21332
|
fragment: select$1I()
|
|
21480
21333
|
} : params.records;
|
|
21481
|
-
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$
|
|
21334
|
+
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$1U();
|
|
21482
21335
|
return {
|
|
21483
21336
|
kind: 'Fragment',
|
|
21484
21337
|
reader: true,
|
|
@@ -27380,7 +27233,7 @@
|
|
|
27380
27233
|
buildCachedSnapshotCachePolicy$B, buildNetworkSnapshotCachePolicy$B);
|
|
27381
27234
|
};
|
|
27382
27235
|
|
|
27383
|
-
function validate$
|
|
27236
|
+
function validate$19(obj, path = 'ActionRelatedListSingleBatchInputRepresentation') {
|
|
27384
27237
|
const v_error = (() => {
|
|
27385
27238
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
27386
27239
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -27791,7 +27644,7 @@
|
|
|
27791
27644
|
const untrustedConfig_relatedListsActionParameters_array = [];
|
|
27792
27645
|
for (let i = 0, arrayLength = untrustedConfig_relatedListsActionParameters.length; i < arrayLength; i++) {
|
|
27793
27646
|
const untrustedConfig_relatedListsActionParameters_item = untrustedConfig_relatedListsActionParameters[i];
|
|
27794
|
-
const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$
|
|
27647
|
+
const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$19(untrustedConfig_relatedListsActionParameters_item);
|
|
27795
27648
|
if (referenceActionRelatedListSingleBatchInputRepresentationValidationError === null) {
|
|
27796
27649
|
untrustedConfig_relatedListsActionParameters_array.push(untrustedConfig_relatedListsActionParameters_item);
|
|
27797
27650
|
}
|
|
@@ -30030,6 +29883,103 @@
|
|
|
30030
29883
|
buildCachedSnapshotCachePolicy$s, buildNetworkSnapshotCachePolicy$s);
|
|
30031
29884
|
};
|
|
30032
29885
|
|
|
29886
|
+
function validate$$(obj, path = 'ListFilterByInfoInputRepresentation') {
|
|
29887
|
+
const v_error = (() => {
|
|
29888
|
+
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
29889
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
29890
|
+
}
|
|
29891
|
+
const obj_fieldApiName = obj.fieldApiName;
|
|
29892
|
+
const path_fieldApiName = path + '.fieldApiName';
|
|
29893
|
+
if (typeof obj_fieldApiName !== 'string') {
|
|
29894
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
|
|
29895
|
+
}
|
|
29896
|
+
const obj_operandLabels = obj.operandLabels;
|
|
29897
|
+
const path_operandLabels = path + '.operandLabels';
|
|
29898
|
+
if (!ArrayIsArray$2(obj_operandLabels)) {
|
|
29899
|
+
return new TypeError('Expected "array" but received "' + typeof obj_operandLabels + '" (at "' + path_operandLabels + '")');
|
|
29900
|
+
}
|
|
29901
|
+
for (let i = 0; i < obj_operandLabels.length; i++) {
|
|
29902
|
+
const obj_operandLabels_item = obj_operandLabels[i];
|
|
29903
|
+
const path_operandLabels_item = path_operandLabels + '[' + i + ']';
|
|
29904
|
+
if (typeof obj_operandLabels_item !== 'string') {
|
|
29905
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operandLabels_item + '" (at "' + path_operandLabels_item + '")');
|
|
29906
|
+
}
|
|
29907
|
+
}
|
|
29908
|
+
const obj_operator = obj.operator;
|
|
29909
|
+
const path_operator = path + '.operator';
|
|
29910
|
+
if (typeof obj_operator !== 'string') {
|
|
29911
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
29912
|
+
}
|
|
29913
|
+
})();
|
|
29914
|
+
return v_error === undefined ? null : v_error;
|
|
29915
|
+
}
|
|
29916
|
+
|
|
29917
|
+
function validate$_(obj, path = 'ListScopeInputRepresentation') {
|
|
29918
|
+
const v_error = (() => {
|
|
29919
|
+
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
29920
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
29921
|
+
}
|
|
29922
|
+
const obj_apiName = obj.apiName;
|
|
29923
|
+
const path_apiName = path + '.apiName';
|
|
29924
|
+
if (typeof obj_apiName !== 'string') {
|
|
29925
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
29926
|
+
}
|
|
29927
|
+
const obj_entityId = obj.entityId;
|
|
29928
|
+
const path_entityId = path + '.entityId';
|
|
29929
|
+
let obj_entityId_union0 = null;
|
|
29930
|
+
const obj_entityId_union0_error = (() => {
|
|
29931
|
+
if (typeof obj_entityId !== 'string') {
|
|
29932
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityId + '" (at "' + path_entityId + '")');
|
|
29933
|
+
}
|
|
29934
|
+
})();
|
|
29935
|
+
if (obj_entityId_union0_error != null) {
|
|
29936
|
+
obj_entityId_union0 = obj_entityId_union0_error.message;
|
|
29937
|
+
}
|
|
29938
|
+
let obj_entityId_union1 = null;
|
|
29939
|
+
const obj_entityId_union1_error = (() => {
|
|
29940
|
+
if (obj_entityId !== null) {
|
|
29941
|
+
return new TypeError('Expected "null" but received "' + typeof obj_entityId + '" (at "' + path_entityId + '")');
|
|
29942
|
+
}
|
|
29943
|
+
})();
|
|
29944
|
+
if (obj_entityId_union1_error != null) {
|
|
29945
|
+
obj_entityId_union1 = obj_entityId_union1_error.message;
|
|
29946
|
+
}
|
|
29947
|
+
if (obj_entityId_union0 && obj_entityId_union1) {
|
|
29948
|
+
let message = 'Object doesn\'t match union (at "' + path_entityId + '")';
|
|
29949
|
+
message += '\n' + obj_entityId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
29950
|
+
message += '\n' + obj_entityId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
29951
|
+
return new TypeError(message);
|
|
29952
|
+
}
|
|
29953
|
+
const obj_relatedEntityId = obj.relatedEntityId;
|
|
29954
|
+
const path_relatedEntityId = path + '.relatedEntityId';
|
|
29955
|
+
let obj_relatedEntityId_union0 = null;
|
|
29956
|
+
const obj_relatedEntityId_union0_error = (() => {
|
|
29957
|
+
if (typeof obj_relatedEntityId !== 'string') {
|
|
29958
|
+
return new TypeError('Expected "string" but received "' + typeof obj_relatedEntityId + '" (at "' + path_relatedEntityId + '")');
|
|
29959
|
+
}
|
|
29960
|
+
})();
|
|
29961
|
+
if (obj_relatedEntityId_union0_error != null) {
|
|
29962
|
+
obj_relatedEntityId_union0 = obj_relatedEntityId_union0_error.message;
|
|
29963
|
+
}
|
|
29964
|
+
let obj_relatedEntityId_union1 = null;
|
|
29965
|
+
const obj_relatedEntityId_union1_error = (() => {
|
|
29966
|
+
if (obj_relatedEntityId !== null) {
|
|
29967
|
+
return new TypeError('Expected "null" but received "' + typeof obj_relatedEntityId + '" (at "' + path_relatedEntityId + '")');
|
|
29968
|
+
}
|
|
29969
|
+
})();
|
|
29970
|
+
if (obj_relatedEntityId_union1_error != null) {
|
|
29971
|
+
obj_relatedEntityId_union1 = obj_relatedEntityId_union1_error.message;
|
|
29972
|
+
}
|
|
29973
|
+
if (obj_relatedEntityId_union0 && obj_relatedEntityId_union1) {
|
|
29974
|
+
let message = 'Object doesn\'t match union (at "' + path_relatedEntityId + '")';
|
|
29975
|
+
message += '\n' + obj_relatedEntityId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
29976
|
+
message += '\n' + obj_relatedEntityId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
29977
|
+
return new TypeError(message);
|
|
29978
|
+
}
|
|
29979
|
+
})();
|
|
29980
|
+
return v_error === undefined ? null : v_error;
|
|
29981
|
+
}
|
|
29982
|
+
|
|
30033
29983
|
function select$14$1(luvio, params) {
|
|
30034
29984
|
return select$1M();
|
|
30035
29985
|
}
|
|
@@ -30065,10 +30015,11 @@
|
|
|
30065
30015
|
const adapterName$A = 'createListInfo';
|
|
30066
30016
|
const createListInfo_ConfigPropertyMetadata = [
|
|
30067
30017
|
generateParamConfigMetadata$2('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1$1),
|
|
30068
|
-
generateParamConfigMetadata$2('displayColumns', false, 2 /* Body */,
|
|
30069
|
-
generateParamConfigMetadata$2('filterLogicString', false, 2 /* Body */,
|
|
30018
|
+
generateParamConfigMetadata$2('displayColumns', false, 2 /* Body */, 0 /* String */, true),
|
|
30019
|
+
generateParamConfigMetadata$2('filterLogicString', false, 2 /* Body */, 0 /* String */),
|
|
30070
30020
|
generateParamConfigMetadata$2('filteredByInfo', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
30071
30021
|
generateParamConfigMetadata$2('label', false, 2 /* Body */, 0 /* String */),
|
|
30022
|
+
generateParamConfigMetadata$2('listShares', false, 2 /* Body */, 0 /* String */, true),
|
|
30072
30023
|
generateParamConfigMetadata$2('listViewApiName', false, 2 /* Body */, 0 /* String */),
|
|
30073
30024
|
generateParamConfigMetadata$2('scope', false, 2 /* Body */, 4 /* Unsupported */),
|
|
30074
30025
|
generateParamConfigMetadata$2('visibility', false, 2 /* Body */, 0 /* String */),
|
|
@@ -30078,46 +30029,21 @@
|
|
|
30078
30029
|
function typeCheckConfig$E(untrustedConfig) {
|
|
30079
30030
|
const config = {};
|
|
30080
30031
|
typeCheckConfig$12(untrustedConfig, config, createListInfo_ConfigPropertyMetadata);
|
|
30081
|
-
const untrustedConfig_displayColumns = untrustedConfig.displayColumns;
|
|
30082
|
-
if (ArrayIsArray$1(untrustedConfig_displayColumns)) {
|
|
30083
|
-
const untrustedConfig_displayColumns_array = [];
|
|
30084
|
-
for (let i = 0, arrayLength = untrustedConfig_displayColumns.length; i < arrayLength; i++) {
|
|
30085
|
-
const untrustedConfig_displayColumns_item = untrustedConfig_displayColumns[i];
|
|
30086
|
-
const referenceListColumnRepresentationValidationError = validate$1K(untrustedConfig_displayColumns_item);
|
|
30087
|
-
if (referenceListColumnRepresentationValidationError === null) {
|
|
30088
|
-
untrustedConfig_displayColumns_array.push(untrustedConfig_displayColumns_item);
|
|
30089
|
-
}
|
|
30090
|
-
if (untrustedConfig_displayColumns_item === null) {
|
|
30091
|
-
untrustedConfig_displayColumns_array.push(untrustedConfig_displayColumns_item);
|
|
30092
|
-
}
|
|
30093
|
-
}
|
|
30094
|
-
config.displayColumns = untrustedConfig_displayColumns_array;
|
|
30095
|
-
}
|
|
30096
|
-
const untrustedConfig_filterLogicString = untrustedConfig.filterLogicString;
|
|
30097
|
-
if (typeof untrustedConfig_filterLogicString === 'string') {
|
|
30098
|
-
config.filterLogicString = untrustedConfig_filterLogicString;
|
|
30099
|
-
}
|
|
30100
|
-
if (untrustedConfig_filterLogicString === null) {
|
|
30101
|
-
config.filterLogicString = untrustedConfig_filterLogicString;
|
|
30102
|
-
}
|
|
30103
30032
|
const untrustedConfig_filteredByInfo = untrustedConfig.filteredByInfo;
|
|
30104
30033
|
if (ArrayIsArray$1(untrustedConfig_filteredByInfo)) {
|
|
30105
30034
|
const untrustedConfig_filteredByInfo_array = [];
|
|
30106
30035
|
for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
|
|
30107
30036
|
const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
|
|
30108
|
-
const
|
|
30109
|
-
if (
|
|
30037
|
+
const referenceListFilterByInfoInputRepresentationValidationError = validate$$(untrustedConfig_filteredByInfo_item);
|
|
30038
|
+
if (referenceListFilterByInfoInputRepresentationValidationError === null) {
|
|
30110
30039
|
untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
|
|
30111
30040
|
}
|
|
30112
30041
|
}
|
|
30113
30042
|
config.filteredByInfo = untrustedConfig_filteredByInfo_array;
|
|
30114
30043
|
}
|
|
30115
30044
|
const untrustedConfig_scope = untrustedConfig.scope;
|
|
30116
|
-
const
|
|
30117
|
-
if (
|
|
30118
|
-
config.scope = untrustedConfig_scope;
|
|
30119
|
-
}
|
|
30120
|
-
if (untrustedConfig_scope === null) {
|
|
30045
|
+
const referenceListScopeInputRepresentationValidationError = validate$_(untrustedConfig_scope);
|
|
30046
|
+
if (referenceListScopeInputRepresentationValidationError === null) {
|
|
30121
30047
|
config.scope = untrustedConfig_scope;
|
|
30122
30048
|
}
|
|
30123
30049
|
return config;
|
|
@@ -30282,10 +30208,11 @@
|
|
|
30282
30208
|
const updateListInfoByName_ConfigPropertyMetadata = [
|
|
30283
30209
|
generateParamConfigMetadata$2('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
30284
30210
|
generateParamConfigMetadata$2('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1$1),
|
|
30285
|
-
generateParamConfigMetadata$2('displayColumns', false, 2 /* Body */,
|
|
30286
|
-
generateParamConfigMetadata$2('filterLogicString', false, 2 /* Body */,
|
|
30211
|
+
generateParamConfigMetadata$2('displayColumns', false, 2 /* Body */, 0 /* String */, true),
|
|
30212
|
+
generateParamConfigMetadata$2('filterLogicString', false, 2 /* Body */, 0 /* String */),
|
|
30287
30213
|
generateParamConfigMetadata$2('filteredByInfo', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
30288
30214
|
generateParamConfigMetadata$2('label', false, 2 /* Body */, 0 /* String */),
|
|
30215
|
+
generateParamConfigMetadata$2('listShares', false, 2 /* Body */, 0 /* String */, true),
|
|
30289
30216
|
generateParamConfigMetadata$2('scope', false, 2 /* Body */, 4 /* Unsupported */),
|
|
30290
30217
|
generateParamConfigMetadata$2('visibility', false, 2 /* Body */, 0 /* String */),
|
|
30291
30218
|
];
|
|
@@ -30294,46 +30221,21 @@
|
|
|
30294
30221
|
function typeCheckConfig$C(untrustedConfig) {
|
|
30295
30222
|
const config = {};
|
|
30296
30223
|
typeCheckConfig$12(untrustedConfig, config, updateListInfoByName_ConfigPropertyMetadata);
|
|
30297
|
-
const untrustedConfig_displayColumns = untrustedConfig.displayColumns;
|
|
30298
|
-
if (ArrayIsArray$1(untrustedConfig_displayColumns)) {
|
|
30299
|
-
const untrustedConfig_displayColumns_array = [];
|
|
30300
|
-
for (let i = 0, arrayLength = untrustedConfig_displayColumns.length; i < arrayLength; i++) {
|
|
30301
|
-
const untrustedConfig_displayColumns_item = untrustedConfig_displayColumns[i];
|
|
30302
|
-
const referenceListColumnRepresentationValidationError = validate$1K(untrustedConfig_displayColumns_item);
|
|
30303
|
-
if (referenceListColumnRepresentationValidationError === null) {
|
|
30304
|
-
untrustedConfig_displayColumns_array.push(untrustedConfig_displayColumns_item);
|
|
30305
|
-
}
|
|
30306
|
-
if (untrustedConfig_displayColumns_item === null) {
|
|
30307
|
-
untrustedConfig_displayColumns_array.push(untrustedConfig_displayColumns_item);
|
|
30308
|
-
}
|
|
30309
|
-
}
|
|
30310
|
-
config.displayColumns = untrustedConfig_displayColumns_array;
|
|
30311
|
-
}
|
|
30312
|
-
const untrustedConfig_filterLogicString = untrustedConfig.filterLogicString;
|
|
30313
|
-
if (typeof untrustedConfig_filterLogicString === 'string') {
|
|
30314
|
-
config.filterLogicString = untrustedConfig_filterLogicString;
|
|
30315
|
-
}
|
|
30316
|
-
if (untrustedConfig_filterLogicString === null) {
|
|
30317
|
-
config.filterLogicString = untrustedConfig_filterLogicString;
|
|
30318
|
-
}
|
|
30319
30224
|
const untrustedConfig_filteredByInfo = untrustedConfig.filteredByInfo;
|
|
30320
30225
|
if (ArrayIsArray$1(untrustedConfig_filteredByInfo)) {
|
|
30321
30226
|
const untrustedConfig_filteredByInfo_array = [];
|
|
30322
30227
|
for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
|
|
30323
30228
|
const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
|
|
30324
|
-
const
|
|
30325
|
-
if (
|
|
30229
|
+
const referenceListFilterByInfoInputRepresentationValidationError = validate$$(untrustedConfig_filteredByInfo_item);
|
|
30230
|
+
if (referenceListFilterByInfoInputRepresentationValidationError === null) {
|
|
30326
30231
|
untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
|
|
30327
30232
|
}
|
|
30328
30233
|
}
|
|
30329
30234
|
config.filteredByInfo = untrustedConfig_filteredByInfo_array;
|
|
30330
30235
|
}
|
|
30331
30236
|
const untrustedConfig_scope = untrustedConfig.scope;
|
|
30332
|
-
const
|
|
30333
|
-
if (
|
|
30334
|
-
config.scope = untrustedConfig_scope;
|
|
30335
|
-
}
|
|
30336
|
-
if (untrustedConfig_scope === null) {
|
|
30237
|
+
const referenceListScopeInputRepresentationValidationError = validate$_(untrustedConfig_scope);
|
|
30238
|
+
if (referenceListScopeInputRepresentationValidationError === null) {
|
|
30337
30239
|
config.scope = untrustedConfig_scope;
|
|
30338
30240
|
}
|
|
30339
30241
|
return config;
|
|
@@ -40826,7 +40728,7 @@
|
|
|
40826
40728
|
};
|
|
40827
40729
|
};
|
|
40828
40730
|
|
|
40829
|
-
const VERSION$
|
|
40731
|
+
const VERSION$1p = "5f97eb4f2c3f805ef9d98ba7f0530b3e";
|
|
40830
40732
|
const RepresentationType$S = 'ContentDocumentCompositeRepresentation';
|
|
40831
40733
|
function keyBuilder$1W(luvio, config) {
|
|
40832
40734
|
return keyPrefix$1 + '::' + RepresentationType$S + ':' + config.contentDocumentId;
|
|
@@ -40906,7 +40808,7 @@
|
|
|
40906
40808
|
const ingest$15 = function ContentDocumentCompositeRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
40907
40809
|
const key = keyBuilderFromType$B(luvio, input);
|
|
40908
40810
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
40909
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "UiApi", VERSION$
|
|
40811
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "UiApi", VERSION$1p, RepresentationType$S, equals$12);
|
|
40910
40812
|
return createLink$3(key);
|
|
40911
40813
|
};
|
|
40912
40814
|
function getTypeCacheKeys$18(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -40973,11 +40875,11 @@
|
|
|
40973
40875
|
priority: 'normal',
|
|
40974
40876
|
};
|
|
40975
40877
|
}
|
|
40976
|
-
const select$
|
|
40878
|
+
const select$21 = function ContentDocumentCompositeRepresentationSelect(body) {
|
|
40977
40879
|
return {
|
|
40978
40880
|
kind: 'Fragment',
|
|
40979
40881
|
private: [],
|
|
40980
|
-
version: VERSION$
|
|
40882
|
+
version: VERSION$1p,
|
|
40981
40883
|
selections: [
|
|
40982
40884
|
{
|
|
40983
40885
|
name: 'contentDocument',
|
|
@@ -41016,7 +40918,7 @@
|
|
|
41016
40918
|
function ingestSuccess$1$1(luvio, resourceParams, response) {
|
|
41017
40919
|
const { body } = response;
|
|
41018
40920
|
const key = keyBuilderFromType$B(luvio, body);
|
|
41019
|
-
const node = select$
|
|
40921
|
+
const node = select$21(body);
|
|
41020
40922
|
luvio.storeIngest(key, ingest$15, body);
|
|
41021
40923
|
const snapshot = luvio.storeLookup({
|
|
41022
40924
|
recordId: key,
|
|
@@ -41087,7 +40989,7 @@
|
|
|
41087
40989
|
function ingestSuccess$M(luvio, resourceParams, response) {
|
|
41088
40990
|
const { body } = response;
|
|
41089
40991
|
const key = keyBuilderFromType$B(luvio, body);
|
|
41090
|
-
const node = select$
|
|
40992
|
+
const node = select$21(body);
|
|
41091
40993
|
luvio.storeIngest(key, ingest$15, body);
|
|
41092
40994
|
const snapshot = luvio.storeLookup({
|
|
41093
40995
|
recordId: key,
|
|
@@ -41747,7 +41649,7 @@
|
|
|
41747
41649
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
41748
41650
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41749
41651
|
});
|
|
41750
|
-
// version: 1.
|
|
41652
|
+
// version: 1.244.0-4d142822f
|
|
41751
41653
|
|
|
41752
41654
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
41753
41655
|
|
|
@@ -47932,9 +47834,6 @@
|
|
|
47932
47834
|
}
|
|
47933
47835
|
async buildPendingAction(request, queue) {
|
|
47934
47836
|
const targetId = await this.getIdFromRequest(request);
|
|
47935
|
-
if (targetId === undefined) {
|
|
47936
|
-
return Promise.reject(new Error('Cannot determine target id from the resource request'));
|
|
47937
|
-
}
|
|
47938
47837
|
const tag = this.buildTagForTargetId(targetId);
|
|
47939
47838
|
const handlerActions = queue.filter((x) => x.handler === this.handlerId);
|
|
47940
47839
|
if (request.method === 'post' && actionsForTag(tag, handlerActions).length > 0) {
|
|
@@ -52945,7 +52844,7 @@
|
|
|
52945
52844
|
function getRecordIdFromRecordRequest(request) {
|
|
52946
52845
|
const { method, basePath } = request;
|
|
52947
52846
|
if (basePath === undefined) {
|
|
52948
|
-
|
|
52847
|
+
throw Error(`Could not determine record id from request without a basePath`);
|
|
52949
52848
|
}
|
|
52950
52849
|
let recordId = '';
|
|
52951
52850
|
switch (method) {
|
|
@@ -52954,13 +52853,13 @@
|
|
|
52954
52853
|
case 'delete': {
|
|
52955
52854
|
const matches = basePath.match(RECORD_ENDPOINT_REGEX$1);
|
|
52956
52855
|
if (!matches || matches.length !== 3) {
|
|
52957
|
-
|
|
52856
|
+
throw Error(`Could not determine record id from request path ${basePath}`);
|
|
52958
52857
|
}
|
|
52959
52858
|
recordId = matches[2];
|
|
52960
52859
|
break;
|
|
52961
52860
|
}
|
|
52962
52861
|
default: {
|
|
52963
|
-
|
|
52862
|
+
throw Error(`Could not determine record id from request type `);
|
|
52964
52863
|
}
|
|
52965
52864
|
}
|
|
52966
52865
|
return recordId;
|
|
@@ -53816,7 +53715,7 @@
|
|
|
53816
53715
|
if (request.method === 'post') {
|
|
53817
53716
|
const apiName = request.body.apiName;
|
|
53818
53717
|
if (apiName === undefined) {
|
|
53819
|
-
|
|
53718
|
+
throw Error('Could not determine api name from request body');
|
|
53820
53719
|
}
|
|
53821
53720
|
return this.recordService.synthesizeId(apiName);
|
|
53822
53721
|
}
|
|
@@ -54531,11 +54430,11 @@
|
|
|
54531
54430
|
const objectInfo = await getAdapterData(this.objectInfoAdapter, {
|
|
54532
54431
|
objectApiName: apiName,
|
|
54533
54432
|
});
|
|
54534
|
-
if (objectInfo === undefined) {
|
|
54535
|
-
|
|
54433
|
+
if (objectInfo === undefined || objectInfo.keyPrefix === null) {
|
|
54434
|
+
throw Error(`Could not find or fetch object info for ${apiName}`);
|
|
54536
54435
|
}
|
|
54537
54436
|
if (objectInfo.keyPrefix === null) {
|
|
54538
|
-
|
|
54437
|
+
throw Error(`Could not find key prefix for ${apiName}. Cannot synthesize id.`);
|
|
54539
54438
|
}
|
|
54540
54439
|
return this.generateId(objectInfo.keyPrefix);
|
|
54541
54440
|
}
|
|
@@ -54611,7 +54510,7 @@
|
|
|
54611
54510
|
getIdFromRequest(request) {
|
|
54612
54511
|
const apiName = request.body.apiName;
|
|
54613
54512
|
if (typeof apiName !== 'string') {
|
|
54614
|
-
throw Error('expected api name not found');
|
|
54513
|
+
throw Error('expected api name not found in request body');
|
|
54615
54514
|
}
|
|
54616
54515
|
const id = this.draftRecordService.synthesizeId(apiName);
|
|
54617
54516
|
return Promise.resolve(id);
|
|
@@ -55073,16 +54972,18 @@
|
|
|
55073
54972
|
// remember ContentDocument ID
|
|
55074
54973
|
pendingAction.metadata[CONTENT_DOCUMENT_DRAFT_ID_KEY] = targetId;
|
|
55075
54974
|
// generate and remember ContentVersion ID
|
|
55076
|
-
const contentVersionId = await this.draftRecordService
|
|
55077
|
-
|
|
54975
|
+
const contentVersionId = await this.draftRecordService
|
|
54976
|
+
.synthesizeId(CONTENT_VERSION_API_NAME)
|
|
54977
|
+
.catch(() => {
|
|
55078
54978
|
return Promise.reject(new DraftSynthesisError('Cannot generate local ContentVersion synthetic id', 'CANNOT_GENERATE_ID'));
|
|
55079
|
-
}
|
|
54979
|
+
});
|
|
55080
54980
|
pendingAction.metadata[CONTENT_VERSION_DRAFT_ID_KEY] = contentVersionId;
|
|
55081
54981
|
// generate and remember ContentDocumentLink ID
|
|
55082
|
-
const contentDocumentLinkId = await this.draftRecordService
|
|
55083
|
-
|
|
54982
|
+
const contentDocumentLinkId = await this.draftRecordService
|
|
54983
|
+
.synthesizeId(CONTENT_DOCUMENT_LINK_API_NAME)
|
|
54984
|
+
.catch(() => {
|
|
55084
54985
|
return Promise.reject(new DraftSynthesisError('Cannot generate local ContentDocumentLink synthetic id', 'CANNOT_GENERATE_ID'));
|
|
55085
|
-
}
|
|
54986
|
+
});
|
|
55086
54987
|
pendingAction.metadata[CONTENT_DOCUMENT_LINK_DRAFT_ID_KEY] = contentDocumentLinkId;
|
|
55087
54988
|
// assert that object infos and references exist
|
|
55088
54989
|
const metaDataResult = await this.draftRecordService.getRecordDraftMetadata(targetId, pendingAction);
|
|
@@ -55111,8 +55012,7 @@
|
|
|
55111
55012
|
return false;
|
|
55112
55013
|
}
|
|
55113
55014
|
async getIdFromRequest(_request) {
|
|
55114
|
-
|
|
55115
|
-
return id;
|
|
55015
|
+
return this.draftRecordService.synthesizeId(CONTENT_DOCUMENT_API_NAME);
|
|
55116
55016
|
}
|
|
55117
55017
|
getIdFromResponseBody(responseBody) {
|
|
55118
55018
|
return responseBody.contentDocument.id;
|
|
@@ -57929,6 +57829,9 @@
|
|
|
57929
57829
|
this.ldsRecordRefresher = config.ldsRecordRefresher;
|
|
57930
57830
|
this.networkWorkerPool = new AsyncWorkerPool(this.concurrency);
|
|
57931
57831
|
this.useBatchGQL = ldsPrimingGraphqlBatch.isOpen({ fallback: false });
|
|
57832
|
+
if (this.useBatchGQL) {
|
|
57833
|
+
this.batchSize = this.batchSize / DEFAULT_GQL_QUERY_BATCH_SIZE;
|
|
57834
|
+
}
|
|
57932
57835
|
this.conflictPool = new ConflictPool(config.store, this.objectInfoLoader);
|
|
57933
57836
|
}
|
|
57934
57837
|
// function that enqueues priming work
|
|
@@ -58788,7 +58691,7 @@
|
|
|
58788
58691
|
id: '@salesforce/lds-network-adapter',
|
|
58789
58692
|
instrument: instrument$2,
|
|
58790
58693
|
});
|
|
58791
|
-
// version: 1.
|
|
58694
|
+
// version: 1.244.0-72e322fff
|
|
58792
58695
|
|
|
58793
58696
|
const { create: create$3, keys: keys$3 } = Object;
|
|
58794
58697
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -77256,7 +77159,7 @@
|
|
|
77256
77159
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
77257
77160
|
instrument: instrument$1,
|
|
77258
77161
|
});
|
|
77259
|
-
// version: 1.
|
|
77162
|
+
// version: 1.244.0-4d142822f
|
|
77260
77163
|
|
|
77261
77164
|
// On core the unstable adapters are re-exported with different names,
|
|
77262
77165
|
// we want to match them here.
|
|
@@ -79505,7 +79408,7 @@
|
|
|
79505
79408
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
79506
79409
|
graphQLImperative = ldsAdapter;
|
|
79507
79410
|
});
|
|
79508
|
-
// version: 1.
|
|
79411
|
+
// version: 1.244.0-4d142822f
|
|
79509
79412
|
|
|
79510
79413
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
79511
79414
|
__proto__: null,
|
|
@@ -80203,7 +80106,7 @@
|
|
|
80203
80106
|
function register(r) {
|
|
80204
80107
|
callbacks$1.forEach((callback) => callback(r));
|
|
80205
80108
|
}
|
|
80206
|
-
// version: 1.
|
|
80109
|
+
// version: 1.244.0-72e322fff
|
|
80207
80110
|
|
|
80208
80111
|
/**
|
|
80209
80112
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -84864,4 +84767,4 @@
|
|
|
84864
84767
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
84865
84768
|
|
|
84866
84769
|
}));
|
|
84867
|
-
// version: 1.
|
|
84770
|
+
// version: 1.244.0-72e322fff
|