@salesforce/lds-worker-api 1.242.1 → 1.243.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.
|
@@ -4033,7 +4033,7 @@
|
|
|
4033
4033
|
}
|
|
4034
4034
|
callbacks.push(callback);
|
|
4035
4035
|
}
|
|
4036
|
-
// version: 1.
|
|
4036
|
+
// version: 1.243.0-87f38263e
|
|
4037
4037
|
|
|
4038
4038
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4039
4039
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15494,7 +15494,7 @@
|
|
|
15494
15494
|
}
|
|
15495
15495
|
return superResult;
|
|
15496
15496
|
}
|
|
15497
|
-
// version: 1.
|
|
15497
|
+
// version: 1.243.0-87f38263e
|
|
15498
15498
|
|
|
15499
15499
|
function unwrap(data) {
|
|
15500
15500
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16419,7 +16419,7 @@
|
|
|
16419
16419
|
const { apiFamily, name } = metadata;
|
|
16420
16420
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16421
16421
|
}
|
|
16422
|
-
// version: 1.
|
|
16422
|
+
// version: 1.243.0-87f38263e
|
|
16423
16423
|
|
|
16424
16424
|
/**
|
|
16425
16425
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -17106,60 +17106,11 @@
|
|
|
17106
17106
|
entry['__metadata'] = createLink$3(metadataKey);
|
|
17107
17107
|
}
|
|
17108
17108
|
|
|
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() {
|
|
17109
|
+
const VERSION$1o = "275ae22194003d1e53f548b81219c5cb";
|
|
17110
|
+
const select$1W$1 = function ListColumnRepresentationSelect() {
|
|
17160
17111
|
return {
|
|
17161
17112
|
kind: 'Fragment',
|
|
17162
|
-
version: VERSION$
|
|
17113
|
+
version: VERSION$1o,
|
|
17163
17114
|
private: [],
|
|
17164
17115
|
selections: [
|
|
17165
17116
|
{
|
|
@@ -17182,46 +17133,11 @@
|
|
|
17182
17133
|
};
|
|
17183
17134
|
};
|
|
17184
17135
|
|
|
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() {
|
|
17136
|
+
const VERSION$1n = "623aa9ce3a11031e35faf5671a41746e";
|
|
17137
|
+
const select$1V = function ListFilterByInfoRepresentationSelect() {
|
|
17222
17138
|
return {
|
|
17223
17139
|
kind: 'Fragment',
|
|
17224
|
-
version: VERSION$
|
|
17140
|
+
version: VERSION$1n,
|
|
17225
17141
|
private: [],
|
|
17226
17142
|
selections: [
|
|
17227
17143
|
{
|
|
@@ -17245,11 +17161,11 @@
|
|
|
17245
17161
|
};
|
|
17246
17162
|
};
|
|
17247
17163
|
|
|
17248
|
-
const VERSION$
|
|
17249
|
-
const select$
|
|
17164
|
+
const VERSION$1m = "76042ff4af603b2ac0ec69fa0bd12046";
|
|
17165
|
+
const select$1U = function ListReferenceRepresentationSelect() {
|
|
17250
17166
|
return {
|
|
17251
17167
|
kind: 'Fragment',
|
|
17252
|
-
version: VERSION$
|
|
17168
|
+
version: VERSION$1m,
|
|
17253
17169
|
private: [],
|
|
17254
17170
|
selections: [
|
|
17255
17171
|
{
|
|
@@ -17295,6 +17211,47 @@
|
|
|
17295
17211
|
return true;
|
|
17296
17212
|
}
|
|
17297
17213
|
|
|
17214
|
+
const VERSION$1l = "494e0262f07ff2cc5f82d1e0262fec4f";
|
|
17215
|
+
const select$1T = function ListInfoShareRepresentationSelect() {
|
|
17216
|
+
return {
|
|
17217
|
+
kind: 'Fragment',
|
|
17218
|
+
version: VERSION$1l,
|
|
17219
|
+
private: [],
|
|
17220
|
+
selections: [
|
|
17221
|
+
{
|
|
17222
|
+
name: 'groupApiName',
|
|
17223
|
+
kind: 'Scalar'
|
|
17224
|
+
},
|
|
17225
|
+
{
|
|
17226
|
+
name: 'label',
|
|
17227
|
+
kind: 'Scalar'
|
|
17228
|
+
}
|
|
17229
|
+
]
|
|
17230
|
+
};
|
|
17231
|
+
};
|
|
17232
|
+
|
|
17233
|
+
const VERSION$1k = "561657f32721ec1dac1601575b029640";
|
|
17234
|
+
const select$1S = function ListInfoShareCategoryRepresentationSelect() {
|
|
17235
|
+
const { selections: ListInfoShareRepresentation__selections, opaque: ListInfoShareRepresentation__opaque, } = select$1T();
|
|
17236
|
+
return {
|
|
17237
|
+
kind: 'Fragment',
|
|
17238
|
+
version: VERSION$1k,
|
|
17239
|
+
private: [],
|
|
17240
|
+
selections: [
|
|
17241
|
+
{
|
|
17242
|
+
name: 'shareType',
|
|
17243
|
+
kind: 'Scalar'
|
|
17244
|
+
},
|
|
17245
|
+
{
|
|
17246
|
+
name: 'shares',
|
|
17247
|
+
kind: 'Object',
|
|
17248
|
+
plural: true,
|
|
17249
|
+
selections: ListInfoShareRepresentation__selections
|
|
17250
|
+
}
|
|
17251
|
+
]
|
|
17252
|
+
};
|
|
17253
|
+
};
|
|
17254
|
+
|
|
17298
17255
|
const VERSION$1j = "32def9b631252c12b91a8209c1f49f5a";
|
|
17299
17256
|
const select$1R = function ListOrderByInfoRepresentationSelect() {
|
|
17300
17257
|
return {
|
|
@@ -17319,24 +17276,6 @@
|
|
|
17319
17276
|
};
|
|
17320
17277
|
|
|
17321
17278
|
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
17279
|
const select$1Q = function ListScopeEntityRepresentationSelect() {
|
|
17341
17280
|
return {
|
|
17342
17281
|
kind: 'Fragment',
|
|
@@ -17356,29 +17295,6 @@
|
|
|
17356
17295
|
};
|
|
17357
17296
|
|
|
17358
17297
|
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
17298
|
const select$1P = function ListScopeRelatedEntityRepresentationSelect() {
|
|
17383
17299
|
return {
|
|
17384
17300
|
kind: 'Fragment',
|
|
@@ -17401,83 +17317,7 @@
|
|
|
17401
17317
|
};
|
|
17402
17318
|
};
|
|
17403
17319
|
|
|
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
|
-
}
|
|
17320
|
+
const VERSION$1g = "2fe9814e7124b47f59da585483c1b3f9";
|
|
17481
17321
|
const select$1O = function ListScopeRepresentationSelect() {
|
|
17482
17322
|
const { selections: ListScopeEntityRepresentation__selections, opaque: ListScopeEntityRepresentation__opaque, } = select$1Q();
|
|
17483
17323
|
const { selections: ListScopeRelatedEntityRepresentation__selections, opaque: ListScopeRelatedEntityRepresentation__opaque, } = select$1P();
|
|
@@ -17532,7 +17372,7 @@
|
|
|
17532
17372
|
};
|
|
17533
17373
|
|
|
17534
17374
|
const TTL$y = 900000;
|
|
17535
|
-
const VERSION$1e = "
|
|
17375
|
+
const VERSION$1e = "0dbff3feaaa7ced2709e9ae46c58a3e7";
|
|
17536
17376
|
const RepresentationType$R = 'ListInfoRepresentation';
|
|
17537
17377
|
function keyBuilder$1V(luvio, config) {
|
|
17538
17378
|
return keyPrefix$1 + '::' + RepresentationType$R + ':' + (config.listViewApiName === null ? '' : config.listViewApiName) + ':' + config.objectApiName + ':' + config.type;
|
|
@@ -17549,9 +17389,10 @@
|
|
|
17549
17389
|
return input;
|
|
17550
17390
|
}
|
|
17551
17391
|
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$
|
|
17392
|
+
const { selections: ListColumnRepresentation__selections, opaque: ListColumnRepresentation__opaque, } = select$1W$1();
|
|
17393
|
+
const { selections: ListFilterByInfoRepresentation__selections, opaque: ListFilterByInfoRepresentation__opaque, } = select$1V();
|
|
17394
|
+
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$1U();
|
|
17395
|
+
const { selections: ListInfoShareCategoryRepresentation__selections, opaque: ListInfoShareCategoryRepresentation__opaque, } = select$1S();
|
|
17555
17396
|
const { selections: ListOrderByInfoRepresentation__selections, opaque: ListOrderByInfoRepresentation__opaque, } = select$1R();
|
|
17556
17397
|
const { selections: ListScopeRepresentation__selections, opaque: ListScopeRepresentation__opaque, } = select$1O();
|
|
17557
17398
|
const { selections: ListUserPreferenceRepresentation__selections, opaque: ListUserPreferenceRepresentation__opaque, } = select$1N();
|
|
@@ -17599,6 +17440,13 @@
|
|
|
17599
17440
|
kind: 'Object',
|
|
17600
17441
|
selections: ListReferenceRepresentation__selections
|
|
17601
17442
|
},
|
|
17443
|
+
{
|
|
17444
|
+
name: 'listShares',
|
|
17445
|
+
kind: 'Object',
|
|
17446
|
+
plural: true,
|
|
17447
|
+
selections: ListInfoShareCategoryRepresentation__selections,
|
|
17448
|
+
required: false
|
|
17449
|
+
},
|
|
17602
17450
|
{
|
|
17603
17451
|
name: 'objectApiNames',
|
|
17604
17452
|
kind: 'Scalar',
|
|
@@ -20511,6 +20359,7 @@
|
|
|
20511
20359
|
const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) => {
|
|
20512
20360
|
const childNormalize = createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap);
|
|
20513
20361
|
return (input, path, luvio, store, timestamp) => {
|
|
20362
|
+
input.eTag = ''; //[W-13724550] Record Reps ALWAYS have '' etag, to be consistent with GraphQL, as it is not queryable via GraphQL.
|
|
20514
20363
|
const key = keyBuilderFromType$z(luvio, input);
|
|
20515
20364
|
let existingRecord = store.readEntry(key);
|
|
20516
20365
|
const recordPath = {
|
|
@@ -21212,6 +21061,7 @@
|
|
|
21212
21061
|
|
|
21213
21062
|
const createIngestRecordWithFields = (fields, optionalFields) => {
|
|
21214
21063
|
return (input, path, luvio, store, timestamp) => {
|
|
21064
|
+
input.eTag = ''; //[W-13724550] Record Reps ALWAYS have '' etag, to be consistent with GraphQL, as it is not queryable via GraphQL.
|
|
21215
21065
|
const conflictMap = {
|
|
21216
21066
|
conflicts: {},
|
|
21217
21067
|
serverRequestCount: 0,
|
|
@@ -21364,7 +21214,7 @@
|
|
|
21364
21214
|
return input;
|
|
21365
21215
|
}
|
|
21366
21216
|
const select$1H = function ListRecordCollectionRepresentationSelect(paginationParams) {
|
|
21367
|
-
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$
|
|
21217
|
+
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$1U();
|
|
21368
21218
|
return {
|
|
21369
21219
|
kind: 'Fragment',
|
|
21370
21220
|
reader: true,
|
|
@@ -21478,7 +21328,7 @@
|
|
|
21478
21328
|
kind: 'Link',
|
|
21479
21329
|
fragment: select$1I()
|
|
21480
21330
|
} : params.records;
|
|
21481
|
-
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$
|
|
21331
|
+
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$1U();
|
|
21482
21332
|
return {
|
|
21483
21333
|
kind: 'Fragment',
|
|
21484
21334
|
reader: true,
|
|
@@ -27380,7 +27230,7 @@
|
|
|
27380
27230
|
buildCachedSnapshotCachePolicy$B, buildNetworkSnapshotCachePolicy$B);
|
|
27381
27231
|
};
|
|
27382
27232
|
|
|
27383
|
-
function validate$
|
|
27233
|
+
function validate$19(obj, path = 'ActionRelatedListSingleBatchInputRepresentation') {
|
|
27384
27234
|
const v_error = (() => {
|
|
27385
27235
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
27386
27236
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -27791,7 +27641,7 @@
|
|
|
27791
27641
|
const untrustedConfig_relatedListsActionParameters_array = [];
|
|
27792
27642
|
for (let i = 0, arrayLength = untrustedConfig_relatedListsActionParameters.length; i < arrayLength; i++) {
|
|
27793
27643
|
const untrustedConfig_relatedListsActionParameters_item = untrustedConfig_relatedListsActionParameters[i];
|
|
27794
|
-
const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$
|
|
27644
|
+
const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$19(untrustedConfig_relatedListsActionParameters_item);
|
|
27795
27645
|
if (referenceActionRelatedListSingleBatchInputRepresentationValidationError === null) {
|
|
27796
27646
|
untrustedConfig_relatedListsActionParameters_array.push(untrustedConfig_relatedListsActionParameters_item);
|
|
27797
27647
|
}
|
|
@@ -30030,6 +29880,103 @@
|
|
|
30030
29880
|
buildCachedSnapshotCachePolicy$s, buildNetworkSnapshotCachePolicy$s);
|
|
30031
29881
|
};
|
|
30032
29882
|
|
|
29883
|
+
function validate$$(obj, path = 'ListFilterByInfoInputRepresentation') {
|
|
29884
|
+
const v_error = (() => {
|
|
29885
|
+
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
29886
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
29887
|
+
}
|
|
29888
|
+
const obj_fieldApiName = obj.fieldApiName;
|
|
29889
|
+
const path_fieldApiName = path + '.fieldApiName';
|
|
29890
|
+
if (typeof obj_fieldApiName !== 'string') {
|
|
29891
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
|
|
29892
|
+
}
|
|
29893
|
+
const obj_operandLabels = obj.operandLabels;
|
|
29894
|
+
const path_operandLabels = path + '.operandLabels';
|
|
29895
|
+
if (!ArrayIsArray$2(obj_operandLabels)) {
|
|
29896
|
+
return new TypeError('Expected "array" but received "' + typeof obj_operandLabels + '" (at "' + path_operandLabels + '")');
|
|
29897
|
+
}
|
|
29898
|
+
for (let i = 0; i < obj_operandLabels.length; i++) {
|
|
29899
|
+
const obj_operandLabels_item = obj_operandLabels[i];
|
|
29900
|
+
const path_operandLabels_item = path_operandLabels + '[' + i + ']';
|
|
29901
|
+
if (typeof obj_operandLabels_item !== 'string') {
|
|
29902
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operandLabels_item + '" (at "' + path_operandLabels_item + '")');
|
|
29903
|
+
}
|
|
29904
|
+
}
|
|
29905
|
+
const obj_operator = obj.operator;
|
|
29906
|
+
const path_operator = path + '.operator';
|
|
29907
|
+
if (typeof obj_operator !== 'string') {
|
|
29908
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
29909
|
+
}
|
|
29910
|
+
})();
|
|
29911
|
+
return v_error === undefined ? null : v_error;
|
|
29912
|
+
}
|
|
29913
|
+
|
|
29914
|
+
function validate$_(obj, path = 'ListScopeInputRepresentation') {
|
|
29915
|
+
const v_error = (() => {
|
|
29916
|
+
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
29917
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
29918
|
+
}
|
|
29919
|
+
const obj_apiName = obj.apiName;
|
|
29920
|
+
const path_apiName = path + '.apiName';
|
|
29921
|
+
if (typeof obj_apiName !== 'string') {
|
|
29922
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
29923
|
+
}
|
|
29924
|
+
const obj_entityId = obj.entityId;
|
|
29925
|
+
const path_entityId = path + '.entityId';
|
|
29926
|
+
let obj_entityId_union0 = null;
|
|
29927
|
+
const obj_entityId_union0_error = (() => {
|
|
29928
|
+
if (typeof obj_entityId !== 'string') {
|
|
29929
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityId + '" (at "' + path_entityId + '")');
|
|
29930
|
+
}
|
|
29931
|
+
})();
|
|
29932
|
+
if (obj_entityId_union0_error != null) {
|
|
29933
|
+
obj_entityId_union0 = obj_entityId_union0_error.message;
|
|
29934
|
+
}
|
|
29935
|
+
let obj_entityId_union1 = null;
|
|
29936
|
+
const obj_entityId_union1_error = (() => {
|
|
29937
|
+
if (obj_entityId !== null) {
|
|
29938
|
+
return new TypeError('Expected "null" but received "' + typeof obj_entityId + '" (at "' + path_entityId + '")');
|
|
29939
|
+
}
|
|
29940
|
+
})();
|
|
29941
|
+
if (obj_entityId_union1_error != null) {
|
|
29942
|
+
obj_entityId_union1 = obj_entityId_union1_error.message;
|
|
29943
|
+
}
|
|
29944
|
+
if (obj_entityId_union0 && obj_entityId_union1) {
|
|
29945
|
+
let message = 'Object doesn\'t match union (at "' + path_entityId + '")';
|
|
29946
|
+
message += '\n' + obj_entityId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
29947
|
+
message += '\n' + obj_entityId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
29948
|
+
return new TypeError(message);
|
|
29949
|
+
}
|
|
29950
|
+
const obj_relatedEntityId = obj.relatedEntityId;
|
|
29951
|
+
const path_relatedEntityId = path + '.relatedEntityId';
|
|
29952
|
+
let obj_relatedEntityId_union0 = null;
|
|
29953
|
+
const obj_relatedEntityId_union0_error = (() => {
|
|
29954
|
+
if (typeof obj_relatedEntityId !== 'string') {
|
|
29955
|
+
return new TypeError('Expected "string" but received "' + typeof obj_relatedEntityId + '" (at "' + path_relatedEntityId + '")');
|
|
29956
|
+
}
|
|
29957
|
+
})();
|
|
29958
|
+
if (obj_relatedEntityId_union0_error != null) {
|
|
29959
|
+
obj_relatedEntityId_union0 = obj_relatedEntityId_union0_error.message;
|
|
29960
|
+
}
|
|
29961
|
+
let obj_relatedEntityId_union1 = null;
|
|
29962
|
+
const obj_relatedEntityId_union1_error = (() => {
|
|
29963
|
+
if (obj_relatedEntityId !== null) {
|
|
29964
|
+
return new TypeError('Expected "null" but received "' + typeof obj_relatedEntityId + '" (at "' + path_relatedEntityId + '")');
|
|
29965
|
+
}
|
|
29966
|
+
})();
|
|
29967
|
+
if (obj_relatedEntityId_union1_error != null) {
|
|
29968
|
+
obj_relatedEntityId_union1 = obj_relatedEntityId_union1_error.message;
|
|
29969
|
+
}
|
|
29970
|
+
if (obj_relatedEntityId_union0 && obj_relatedEntityId_union1) {
|
|
29971
|
+
let message = 'Object doesn\'t match union (at "' + path_relatedEntityId + '")';
|
|
29972
|
+
message += '\n' + obj_relatedEntityId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
29973
|
+
message += '\n' + obj_relatedEntityId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
29974
|
+
return new TypeError(message);
|
|
29975
|
+
}
|
|
29976
|
+
})();
|
|
29977
|
+
return v_error === undefined ? null : v_error;
|
|
29978
|
+
}
|
|
29979
|
+
|
|
30033
29980
|
function select$14$1(luvio, params) {
|
|
30034
29981
|
return select$1M();
|
|
30035
29982
|
}
|
|
@@ -30065,10 +30012,11 @@
|
|
|
30065
30012
|
const adapterName$A = 'createListInfo';
|
|
30066
30013
|
const createListInfo_ConfigPropertyMetadata = [
|
|
30067
30014
|
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 */,
|
|
30015
|
+
generateParamConfigMetadata$2('displayColumns', false, 2 /* Body */, 0 /* String */, true),
|
|
30016
|
+
generateParamConfigMetadata$2('filterLogicString', false, 2 /* Body */, 0 /* String */),
|
|
30070
30017
|
generateParamConfigMetadata$2('filteredByInfo', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
30071
30018
|
generateParamConfigMetadata$2('label', false, 2 /* Body */, 0 /* String */),
|
|
30019
|
+
generateParamConfigMetadata$2('listShares', false, 2 /* Body */, 0 /* String */, true),
|
|
30072
30020
|
generateParamConfigMetadata$2('listViewApiName', false, 2 /* Body */, 0 /* String */),
|
|
30073
30021
|
generateParamConfigMetadata$2('scope', false, 2 /* Body */, 4 /* Unsupported */),
|
|
30074
30022
|
generateParamConfigMetadata$2('visibility', false, 2 /* Body */, 0 /* String */),
|
|
@@ -30078,46 +30026,21 @@
|
|
|
30078
30026
|
function typeCheckConfig$E(untrustedConfig) {
|
|
30079
30027
|
const config = {};
|
|
30080
30028
|
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
30029
|
const untrustedConfig_filteredByInfo = untrustedConfig.filteredByInfo;
|
|
30104
30030
|
if (ArrayIsArray$1(untrustedConfig_filteredByInfo)) {
|
|
30105
30031
|
const untrustedConfig_filteredByInfo_array = [];
|
|
30106
30032
|
for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
|
|
30107
30033
|
const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
|
|
30108
|
-
const
|
|
30109
|
-
if (
|
|
30034
|
+
const referenceListFilterByInfoInputRepresentationValidationError = validate$$(untrustedConfig_filteredByInfo_item);
|
|
30035
|
+
if (referenceListFilterByInfoInputRepresentationValidationError === null) {
|
|
30110
30036
|
untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
|
|
30111
30037
|
}
|
|
30112
30038
|
}
|
|
30113
30039
|
config.filteredByInfo = untrustedConfig_filteredByInfo_array;
|
|
30114
30040
|
}
|
|
30115
30041
|
const untrustedConfig_scope = untrustedConfig.scope;
|
|
30116
|
-
const
|
|
30117
|
-
if (
|
|
30118
|
-
config.scope = untrustedConfig_scope;
|
|
30119
|
-
}
|
|
30120
|
-
if (untrustedConfig_scope === null) {
|
|
30042
|
+
const referenceListScopeInputRepresentationValidationError = validate$_(untrustedConfig_scope);
|
|
30043
|
+
if (referenceListScopeInputRepresentationValidationError === null) {
|
|
30121
30044
|
config.scope = untrustedConfig_scope;
|
|
30122
30045
|
}
|
|
30123
30046
|
return config;
|
|
@@ -30282,10 +30205,11 @@
|
|
|
30282
30205
|
const updateListInfoByName_ConfigPropertyMetadata = [
|
|
30283
30206
|
generateParamConfigMetadata$2('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
30284
30207
|
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 */,
|
|
30208
|
+
generateParamConfigMetadata$2('displayColumns', false, 2 /* Body */, 0 /* String */, true),
|
|
30209
|
+
generateParamConfigMetadata$2('filterLogicString', false, 2 /* Body */, 0 /* String */),
|
|
30287
30210
|
generateParamConfigMetadata$2('filteredByInfo', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
30288
30211
|
generateParamConfigMetadata$2('label', false, 2 /* Body */, 0 /* String */),
|
|
30212
|
+
generateParamConfigMetadata$2('listShares', false, 2 /* Body */, 0 /* String */, true),
|
|
30289
30213
|
generateParamConfigMetadata$2('scope', false, 2 /* Body */, 4 /* Unsupported */),
|
|
30290
30214
|
generateParamConfigMetadata$2('visibility', false, 2 /* Body */, 0 /* String */),
|
|
30291
30215
|
];
|
|
@@ -30294,46 +30218,21 @@
|
|
|
30294
30218
|
function typeCheckConfig$C(untrustedConfig) {
|
|
30295
30219
|
const config = {};
|
|
30296
30220
|
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
30221
|
const untrustedConfig_filteredByInfo = untrustedConfig.filteredByInfo;
|
|
30320
30222
|
if (ArrayIsArray$1(untrustedConfig_filteredByInfo)) {
|
|
30321
30223
|
const untrustedConfig_filteredByInfo_array = [];
|
|
30322
30224
|
for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
|
|
30323
30225
|
const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
|
|
30324
|
-
const
|
|
30325
|
-
if (
|
|
30226
|
+
const referenceListFilterByInfoInputRepresentationValidationError = validate$$(untrustedConfig_filteredByInfo_item);
|
|
30227
|
+
if (referenceListFilterByInfoInputRepresentationValidationError === null) {
|
|
30326
30228
|
untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
|
|
30327
30229
|
}
|
|
30328
30230
|
}
|
|
30329
30231
|
config.filteredByInfo = untrustedConfig_filteredByInfo_array;
|
|
30330
30232
|
}
|
|
30331
30233
|
const untrustedConfig_scope = untrustedConfig.scope;
|
|
30332
|
-
const
|
|
30333
|
-
if (
|
|
30334
|
-
config.scope = untrustedConfig_scope;
|
|
30335
|
-
}
|
|
30336
|
-
if (untrustedConfig_scope === null) {
|
|
30234
|
+
const referenceListScopeInputRepresentationValidationError = validate$_(untrustedConfig_scope);
|
|
30235
|
+
if (referenceListScopeInputRepresentationValidationError === null) {
|
|
30337
30236
|
config.scope = untrustedConfig_scope;
|
|
30338
30237
|
}
|
|
30339
30238
|
return config;
|
|
@@ -40826,7 +40725,7 @@
|
|
|
40826
40725
|
};
|
|
40827
40726
|
};
|
|
40828
40727
|
|
|
40829
|
-
const VERSION$
|
|
40728
|
+
const VERSION$1p = "5f97eb4f2c3f805ef9d98ba7f0530b3e";
|
|
40830
40729
|
const RepresentationType$S = 'ContentDocumentCompositeRepresentation';
|
|
40831
40730
|
function keyBuilder$1W(luvio, config) {
|
|
40832
40731
|
return keyPrefix$1 + '::' + RepresentationType$S + ':' + config.contentDocumentId;
|
|
@@ -40906,7 +40805,7 @@
|
|
|
40906
40805
|
const ingest$15 = function ContentDocumentCompositeRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
40907
40806
|
const key = keyBuilderFromType$B(luvio, input);
|
|
40908
40807
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
40909
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "UiApi", VERSION$
|
|
40808
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "UiApi", VERSION$1p, RepresentationType$S, equals$12);
|
|
40910
40809
|
return createLink$3(key);
|
|
40911
40810
|
};
|
|
40912
40811
|
function getTypeCacheKeys$18(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -40973,11 +40872,11 @@
|
|
|
40973
40872
|
priority: 'normal',
|
|
40974
40873
|
};
|
|
40975
40874
|
}
|
|
40976
|
-
const select$
|
|
40875
|
+
const select$21 = function ContentDocumentCompositeRepresentationSelect(body) {
|
|
40977
40876
|
return {
|
|
40978
40877
|
kind: 'Fragment',
|
|
40979
40878
|
private: [],
|
|
40980
|
-
version: VERSION$
|
|
40879
|
+
version: VERSION$1p,
|
|
40981
40880
|
selections: [
|
|
40982
40881
|
{
|
|
40983
40882
|
name: 'contentDocument',
|
|
@@ -41016,7 +40915,7 @@
|
|
|
41016
40915
|
function ingestSuccess$1$1(luvio, resourceParams, response) {
|
|
41017
40916
|
const { body } = response;
|
|
41018
40917
|
const key = keyBuilderFromType$B(luvio, body);
|
|
41019
|
-
const node = select$
|
|
40918
|
+
const node = select$21(body);
|
|
41020
40919
|
luvio.storeIngest(key, ingest$15, body);
|
|
41021
40920
|
const snapshot = luvio.storeLookup({
|
|
41022
40921
|
recordId: key,
|
|
@@ -41087,7 +40986,7 @@
|
|
|
41087
40986
|
function ingestSuccess$M(luvio, resourceParams, response) {
|
|
41088
40987
|
const { body } = response;
|
|
41089
40988
|
const key = keyBuilderFromType$B(luvio, body);
|
|
41090
|
-
const node = select$
|
|
40989
|
+
const node = select$21(body);
|
|
41091
40990
|
luvio.storeIngest(key, ingest$15, body);
|
|
41092
40991
|
const snapshot = luvio.storeLookup({
|
|
41093
40992
|
recordId: key,
|
|
@@ -41747,7 +41646,7 @@
|
|
|
41747
41646
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
41748
41647
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41749
41648
|
});
|
|
41750
|
-
// version: 1.
|
|
41649
|
+
// version: 1.243.0-c7d8ec9e0
|
|
41751
41650
|
|
|
41752
41651
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
41753
41652
|
|
|
@@ -47932,9 +47831,6 @@
|
|
|
47932
47831
|
}
|
|
47933
47832
|
async buildPendingAction(request, queue) {
|
|
47934
47833
|
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
47834
|
const tag = this.buildTagForTargetId(targetId);
|
|
47939
47835
|
const handlerActions = queue.filter((x) => x.handler === this.handlerId);
|
|
47940
47836
|
if (request.method === 'post' && actionsForTag(tag, handlerActions).length > 0) {
|
|
@@ -52945,7 +52841,7 @@
|
|
|
52945
52841
|
function getRecordIdFromRecordRequest(request) {
|
|
52946
52842
|
const { method, basePath } = request;
|
|
52947
52843
|
if (basePath === undefined) {
|
|
52948
|
-
|
|
52844
|
+
throw Error(`Could not determine record id from request without a basePath`);
|
|
52949
52845
|
}
|
|
52950
52846
|
let recordId = '';
|
|
52951
52847
|
switch (method) {
|
|
@@ -52954,13 +52850,13 @@
|
|
|
52954
52850
|
case 'delete': {
|
|
52955
52851
|
const matches = basePath.match(RECORD_ENDPOINT_REGEX$1);
|
|
52956
52852
|
if (!matches || matches.length !== 3) {
|
|
52957
|
-
|
|
52853
|
+
throw Error(`Could not determine record id from request path ${basePath}`);
|
|
52958
52854
|
}
|
|
52959
52855
|
recordId = matches[2];
|
|
52960
52856
|
break;
|
|
52961
52857
|
}
|
|
52962
52858
|
default: {
|
|
52963
|
-
|
|
52859
|
+
throw Error(`Could not determine record id from request type `);
|
|
52964
52860
|
}
|
|
52965
52861
|
}
|
|
52966
52862
|
return recordId;
|
|
@@ -53816,7 +53712,7 @@
|
|
|
53816
53712
|
if (request.method === 'post') {
|
|
53817
53713
|
const apiName = request.body.apiName;
|
|
53818
53714
|
if (apiName === undefined) {
|
|
53819
|
-
|
|
53715
|
+
throw Error('Could not determine api name from request body');
|
|
53820
53716
|
}
|
|
53821
53717
|
return this.recordService.synthesizeId(apiName);
|
|
53822
53718
|
}
|
|
@@ -54531,11 +54427,11 @@
|
|
|
54531
54427
|
const objectInfo = await getAdapterData(this.objectInfoAdapter, {
|
|
54532
54428
|
objectApiName: apiName,
|
|
54533
54429
|
});
|
|
54534
|
-
if (objectInfo === undefined) {
|
|
54535
|
-
|
|
54430
|
+
if (objectInfo === undefined || objectInfo.keyPrefix === null) {
|
|
54431
|
+
throw Error(`Could not find or fetch object info for ${apiName}`);
|
|
54536
54432
|
}
|
|
54537
54433
|
if (objectInfo.keyPrefix === null) {
|
|
54538
|
-
|
|
54434
|
+
throw Error(`Could not find key prefix for ${apiName}. Cannot synthesize id.`);
|
|
54539
54435
|
}
|
|
54540
54436
|
return this.generateId(objectInfo.keyPrefix);
|
|
54541
54437
|
}
|
|
@@ -54611,7 +54507,7 @@
|
|
|
54611
54507
|
getIdFromRequest(request) {
|
|
54612
54508
|
const apiName = request.body.apiName;
|
|
54613
54509
|
if (typeof apiName !== 'string') {
|
|
54614
|
-
throw Error('expected api name not found');
|
|
54510
|
+
throw Error('expected api name not found in request body');
|
|
54615
54511
|
}
|
|
54616
54512
|
const id = this.draftRecordService.synthesizeId(apiName);
|
|
54617
54513
|
return Promise.resolve(id);
|
|
@@ -55073,16 +54969,18 @@
|
|
|
55073
54969
|
// remember ContentDocument ID
|
|
55074
54970
|
pendingAction.metadata[CONTENT_DOCUMENT_DRAFT_ID_KEY] = targetId;
|
|
55075
54971
|
// generate and remember ContentVersion ID
|
|
55076
|
-
const contentVersionId = await this.draftRecordService
|
|
55077
|
-
|
|
54972
|
+
const contentVersionId = await this.draftRecordService
|
|
54973
|
+
.synthesizeId(CONTENT_VERSION_API_NAME)
|
|
54974
|
+
.catch(() => {
|
|
55078
54975
|
return Promise.reject(new DraftSynthesisError('Cannot generate local ContentVersion synthetic id', 'CANNOT_GENERATE_ID'));
|
|
55079
|
-
}
|
|
54976
|
+
});
|
|
55080
54977
|
pendingAction.metadata[CONTENT_VERSION_DRAFT_ID_KEY] = contentVersionId;
|
|
55081
54978
|
// generate and remember ContentDocumentLink ID
|
|
55082
|
-
const contentDocumentLinkId = await this.draftRecordService
|
|
55083
|
-
|
|
54979
|
+
const contentDocumentLinkId = await this.draftRecordService
|
|
54980
|
+
.synthesizeId(CONTENT_DOCUMENT_LINK_API_NAME)
|
|
54981
|
+
.catch(() => {
|
|
55084
54982
|
return Promise.reject(new DraftSynthesisError('Cannot generate local ContentDocumentLink synthetic id', 'CANNOT_GENERATE_ID'));
|
|
55085
|
-
}
|
|
54983
|
+
});
|
|
55086
54984
|
pendingAction.metadata[CONTENT_DOCUMENT_LINK_DRAFT_ID_KEY] = contentDocumentLinkId;
|
|
55087
54985
|
// assert that object infos and references exist
|
|
55088
54986
|
const metaDataResult = await this.draftRecordService.getRecordDraftMetadata(targetId, pendingAction);
|
|
@@ -55111,8 +55009,7 @@
|
|
|
55111
55009
|
return false;
|
|
55112
55010
|
}
|
|
55113
55011
|
async getIdFromRequest(_request) {
|
|
55114
|
-
|
|
55115
|
-
return id;
|
|
55012
|
+
return this.draftRecordService.synthesizeId(CONTENT_DOCUMENT_API_NAME);
|
|
55116
55013
|
}
|
|
55117
55014
|
getIdFromResponseBody(responseBody) {
|
|
55118
55015
|
return responseBody.contentDocument.id;
|
|
@@ -57929,6 +57826,9 @@
|
|
|
57929
57826
|
this.ldsRecordRefresher = config.ldsRecordRefresher;
|
|
57930
57827
|
this.networkWorkerPool = new AsyncWorkerPool(this.concurrency);
|
|
57931
57828
|
this.useBatchGQL = ldsPrimingGraphqlBatch.isOpen({ fallback: false });
|
|
57829
|
+
if (this.useBatchGQL) {
|
|
57830
|
+
this.batchSize = this.batchSize / DEFAULT_GQL_QUERY_BATCH_SIZE;
|
|
57831
|
+
}
|
|
57932
57832
|
this.conflictPool = new ConflictPool(config.store, this.objectInfoLoader);
|
|
57933
57833
|
}
|
|
57934
57834
|
// function that enqueues priming work
|
|
@@ -58788,7 +58688,7 @@
|
|
|
58788
58688
|
id: '@salesforce/lds-network-adapter',
|
|
58789
58689
|
instrument: instrument$2,
|
|
58790
58690
|
});
|
|
58791
|
-
// version: 1.
|
|
58691
|
+
// version: 1.243.0-87f38263e
|
|
58792
58692
|
|
|
58793
58693
|
const { create: create$3, keys: keys$3 } = Object;
|
|
58794
58694
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -77256,7 +77156,7 @@
|
|
|
77256
77156
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
77257
77157
|
instrument: instrument$1,
|
|
77258
77158
|
});
|
|
77259
|
-
// version: 1.
|
|
77159
|
+
// version: 1.243.0-c7d8ec9e0
|
|
77260
77160
|
|
|
77261
77161
|
// On core the unstable adapters are re-exported with different names,
|
|
77262
77162
|
// we want to match them here.
|
|
@@ -79505,7 +79405,7 @@
|
|
|
79505
79405
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
79506
79406
|
graphQLImperative = ldsAdapter;
|
|
79507
79407
|
});
|
|
79508
|
-
// version: 1.
|
|
79408
|
+
// version: 1.243.0-c7d8ec9e0
|
|
79509
79409
|
|
|
79510
79410
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
79511
79411
|
__proto__: null,
|
|
@@ -80203,7 +80103,7 @@
|
|
|
80203
80103
|
function register(r) {
|
|
80204
80104
|
callbacks$1.forEach((callback) => callback(r));
|
|
80205
80105
|
}
|
|
80206
|
-
// version: 1.
|
|
80106
|
+
// version: 1.243.0-87f38263e
|
|
80207
80107
|
|
|
80208
80108
|
/**
|
|
80209
80109
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -84864,4 +84764,4 @@
|
|
|
84864
84764
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
84865
84765
|
|
|
84866
84766
|
}));
|
|
84867
|
-
// version: 1.
|
|
84767
|
+
// version: 1.243.0-87f38263e
|