@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.
|
@@ -4027,7 +4027,7 @@ function withDefaultLuvio(callback) {
|
|
|
4027
4027
|
}
|
|
4028
4028
|
callbacks.push(callback);
|
|
4029
4029
|
}
|
|
4030
|
-
// version: 1.
|
|
4030
|
+
// version: 1.243.0-87f38263e
|
|
4031
4031
|
|
|
4032
4032
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4033
4033
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15488,7 +15488,7 @@ function gql(literals, ...subs) {
|
|
|
15488
15488
|
}
|
|
15489
15489
|
return superResult;
|
|
15490
15490
|
}
|
|
15491
|
-
// version: 1.
|
|
15491
|
+
// version: 1.243.0-87f38263e
|
|
15492
15492
|
|
|
15493
15493
|
function unwrap(data) {
|
|
15494
15494
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16413,7 +16413,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16413
16413
|
const { apiFamily, name } = metadata;
|
|
16414
16414
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16415
16415
|
}
|
|
16416
|
-
// version: 1.
|
|
16416
|
+
// version: 1.243.0-87f38263e
|
|
16417
16417
|
|
|
16418
16418
|
/**
|
|
16419
16419
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -17100,60 +17100,11 @@ function assignMetadataLink$1(entry, metadataKey) {
|
|
|
17100
17100
|
entry['__metadata'] = createLink$3(metadataKey);
|
|
17101
17101
|
}
|
|
17102
17102
|
|
|
17103
|
-
const VERSION$
|
|
17104
|
-
|
|
17105
|
-
const v_error = (() => {
|
|
17106
|
-
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
17107
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
17108
|
-
}
|
|
17109
|
-
const obj_fieldApiName = obj.fieldApiName;
|
|
17110
|
-
const path_fieldApiName = path + '.fieldApiName';
|
|
17111
|
-
if (typeof obj_fieldApiName !== 'string') {
|
|
17112
|
-
return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
|
|
17113
|
-
}
|
|
17114
|
-
const obj_label = obj.label;
|
|
17115
|
-
const path_label = path + '.label';
|
|
17116
|
-
if (typeof obj_label !== 'string') {
|
|
17117
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
17118
|
-
}
|
|
17119
|
-
const obj_lookupId = obj.lookupId;
|
|
17120
|
-
const path_lookupId = path + '.lookupId';
|
|
17121
|
-
let obj_lookupId_union0 = null;
|
|
17122
|
-
const obj_lookupId_union0_error = (() => {
|
|
17123
|
-
if (typeof obj_lookupId !== 'string') {
|
|
17124
|
-
return new TypeError('Expected "string" but received "' + typeof obj_lookupId + '" (at "' + path_lookupId + '")');
|
|
17125
|
-
}
|
|
17126
|
-
})();
|
|
17127
|
-
if (obj_lookupId_union0_error != null) {
|
|
17128
|
-
obj_lookupId_union0 = obj_lookupId_union0_error.message;
|
|
17129
|
-
}
|
|
17130
|
-
let obj_lookupId_union1 = null;
|
|
17131
|
-
const obj_lookupId_union1_error = (() => {
|
|
17132
|
-
if (obj_lookupId !== null) {
|
|
17133
|
-
return new TypeError('Expected "null" but received "' + typeof obj_lookupId + '" (at "' + path_lookupId + '")');
|
|
17134
|
-
}
|
|
17135
|
-
})();
|
|
17136
|
-
if (obj_lookupId_union1_error != null) {
|
|
17137
|
-
obj_lookupId_union1 = obj_lookupId_union1_error.message;
|
|
17138
|
-
}
|
|
17139
|
-
if (obj_lookupId_union0 && obj_lookupId_union1) {
|
|
17140
|
-
let message = 'Object doesn\'t match union (at "' + path_lookupId + '")';
|
|
17141
|
-
message += '\n' + obj_lookupId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
17142
|
-
message += '\n' + obj_lookupId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
17143
|
-
return new TypeError(message);
|
|
17144
|
-
}
|
|
17145
|
-
const obj_sortable = obj.sortable;
|
|
17146
|
-
const path_sortable = path + '.sortable';
|
|
17147
|
-
if (typeof obj_sortable !== 'boolean') {
|
|
17148
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_sortable + '" (at "' + path_sortable + '")');
|
|
17149
|
-
}
|
|
17150
|
-
})();
|
|
17151
|
-
return v_error === undefined ? null : v_error;
|
|
17152
|
-
}
|
|
17153
|
-
const select$1U = function ListColumnRepresentationSelect() {
|
|
17103
|
+
const VERSION$1o = "275ae22194003d1e53f548b81219c5cb";
|
|
17104
|
+
const select$1W$1 = function ListColumnRepresentationSelect() {
|
|
17154
17105
|
return {
|
|
17155
17106
|
kind: 'Fragment',
|
|
17156
|
-
version: VERSION$
|
|
17107
|
+
version: VERSION$1o,
|
|
17157
17108
|
private: [],
|
|
17158
17109
|
selections: [
|
|
17159
17110
|
{
|
|
@@ -17176,46 +17127,11 @@ const select$1U = function ListColumnRepresentationSelect() {
|
|
|
17176
17127
|
};
|
|
17177
17128
|
};
|
|
17178
17129
|
|
|
17179
|
-
const VERSION$
|
|
17180
|
-
|
|
17181
|
-
const v_error = (() => {
|
|
17182
|
-
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
17183
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
17184
|
-
}
|
|
17185
|
-
const obj_fieldApiName = obj.fieldApiName;
|
|
17186
|
-
const path_fieldApiName = path + '.fieldApiName';
|
|
17187
|
-
if (typeof obj_fieldApiName !== 'string') {
|
|
17188
|
-
return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
|
|
17189
|
-
}
|
|
17190
|
-
const obj_label = obj.label;
|
|
17191
|
-
const path_label = path + '.label';
|
|
17192
|
-
if (typeof obj_label !== 'string') {
|
|
17193
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
17194
|
-
}
|
|
17195
|
-
const obj_operandLabels = obj.operandLabels;
|
|
17196
|
-
const path_operandLabels = path + '.operandLabels';
|
|
17197
|
-
if (!ArrayIsArray$2(obj_operandLabels)) {
|
|
17198
|
-
return new TypeError('Expected "array" but received "' + typeof obj_operandLabels + '" (at "' + path_operandLabels + '")');
|
|
17199
|
-
}
|
|
17200
|
-
for (let i = 0; i < obj_operandLabels.length; i++) {
|
|
17201
|
-
const obj_operandLabels_item = obj_operandLabels[i];
|
|
17202
|
-
const path_operandLabels_item = path_operandLabels + '[' + i + ']';
|
|
17203
|
-
if (typeof obj_operandLabels_item !== 'string') {
|
|
17204
|
-
return new TypeError('Expected "string" but received "' + typeof obj_operandLabels_item + '" (at "' + path_operandLabels_item + '")');
|
|
17205
|
-
}
|
|
17206
|
-
}
|
|
17207
|
-
const obj_operator = obj.operator;
|
|
17208
|
-
const path_operator = path + '.operator';
|
|
17209
|
-
if (typeof obj_operator !== 'string') {
|
|
17210
|
-
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
17211
|
-
}
|
|
17212
|
-
})();
|
|
17213
|
-
return v_error === undefined ? null : v_error;
|
|
17214
|
-
}
|
|
17215
|
-
const select$1T = function ListFilterByInfoRepresentationSelect() {
|
|
17130
|
+
const VERSION$1n = "623aa9ce3a11031e35faf5671a41746e";
|
|
17131
|
+
const select$1V = function ListFilterByInfoRepresentationSelect() {
|
|
17216
17132
|
return {
|
|
17217
17133
|
kind: 'Fragment',
|
|
17218
|
-
version: VERSION$
|
|
17134
|
+
version: VERSION$1n,
|
|
17219
17135
|
private: [],
|
|
17220
17136
|
selections: [
|
|
17221
17137
|
{
|
|
@@ -17239,11 +17155,11 @@ const select$1T = function ListFilterByInfoRepresentationSelect() {
|
|
|
17239
17155
|
};
|
|
17240
17156
|
};
|
|
17241
17157
|
|
|
17242
|
-
const VERSION$
|
|
17243
|
-
const select$
|
|
17158
|
+
const VERSION$1m = "76042ff4af603b2ac0ec69fa0bd12046";
|
|
17159
|
+
const select$1U = function ListReferenceRepresentationSelect() {
|
|
17244
17160
|
return {
|
|
17245
17161
|
kind: 'Fragment',
|
|
17246
|
-
version: VERSION$
|
|
17162
|
+
version: VERSION$1m,
|
|
17247
17163
|
private: [],
|
|
17248
17164
|
selections: [
|
|
17249
17165
|
{
|
|
@@ -17289,6 +17205,47 @@ function equals$11(existing, incoming) {
|
|
|
17289
17205
|
return true;
|
|
17290
17206
|
}
|
|
17291
17207
|
|
|
17208
|
+
const VERSION$1l = "494e0262f07ff2cc5f82d1e0262fec4f";
|
|
17209
|
+
const select$1T = function ListInfoShareRepresentationSelect() {
|
|
17210
|
+
return {
|
|
17211
|
+
kind: 'Fragment',
|
|
17212
|
+
version: VERSION$1l,
|
|
17213
|
+
private: [],
|
|
17214
|
+
selections: [
|
|
17215
|
+
{
|
|
17216
|
+
name: 'groupApiName',
|
|
17217
|
+
kind: 'Scalar'
|
|
17218
|
+
},
|
|
17219
|
+
{
|
|
17220
|
+
name: 'label',
|
|
17221
|
+
kind: 'Scalar'
|
|
17222
|
+
}
|
|
17223
|
+
]
|
|
17224
|
+
};
|
|
17225
|
+
};
|
|
17226
|
+
|
|
17227
|
+
const VERSION$1k = "561657f32721ec1dac1601575b029640";
|
|
17228
|
+
const select$1S = function ListInfoShareCategoryRepresentationSelect() {
|
|
17229
|
+
const { selections: ListInfoShareRepresentation__selections, opaque: ListInfoShareRepresentation__opaque, } = select$1T();
|
|
17230
|
+
return {
|
|
17231
|
+
kind: 'Fragment',
|
|
17232
|
+
version: VERSION$1k,
|
|
17233
|
+
private: [],
|
|
17234
|
+
selections: [
|
|
17235
|
+
{
|
|
17236
|
+
name: 'shareType',
|
|
17237
|
+
kind: 'Scalar'
|
|
17238
|
+
},
|
|
17239
|
+
{
|
|
17240
|
+
name: 'shares',
|
|
17241
|
+
kind: 'Object',
|
|
17242
|
+
plural: true,
|
|
17243
|
+
selections: ListInfoShareRepresentation__selections
|
|
17244
|
+
}
|
|
17245
|
+
]
|
|
17246
|
+
};
|
|
17247
|
+
};
|
|
17248
|
+
|
|
17292
17249
|
const VERSION$1j = "32def9b631252c12b91a8209c1f49f5a";
|
|
17293
17250
|
const select$1R = function ListOrderByInfoRepresentationSelect() {
|
|
17294
17251
|
return {
|
|
@@ -17313,24 +17270,6 @@ const select$1R = function ListOrderByInfoRepresentationSelect() {
|
|
|
17313
17270
|
};
|
|
17314
17271
|
|
|
17315
17272
|
const VERSION$1i = "2634258f216db34315c06d759a35676d";
|
|
17316
|
-
function validate$1G(obj, path = 'ListScopeEntityRepresentation') {
|
|
17317
|
-
const v_error = (() => {
|
|
17318
|
-
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
17319
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
17320
|
-
}
|
|
17321
|
-
const obj_id = obj.id;
|
|
17322
|
-
const path_id = path + '.id';
|
|
17323
|
-
if (typeof obj_id !== 'string') {
|
|
17324
|
-
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
17325
|
-
}
|
|
17326
|
-
const obj_label = obj.label;
|
|
17327
|
-
const path_label = path + '.label';
|
|
17328
|
-
if (typeof obj_label !== 'string') {
|
|
17329
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
17330
|
-
}
|
|
17331
|
-
})();
|
|
17332
|
-
return v_error === undefined ? null : v_error;
|
|
17333
|
-
}
|
|
17334
17273
|
const select$1Q = function ListScopeEntityRepresentationSelect() {
|
|
17335
17274
|
return {
|
|
17336
17275
|
kind: 'Fragment',
|
|
@@ -17350,29 +17289,6 @@ const select$1Q = function ListScopeEntityRepresentationSelect() {
|
|
|
17350
17289
|
};
|
|
17351
17290
|
|
|
17352
17291
|
const VERSION$1h = "3b85c5a08d50ce328481b9f8ab56127b";
|
|
17353
|
-
function validate$1F(obj, path = 'ListScopeRelatedEntityRepresentation') {
|
|
17354
|
-
const v_error = (() => {
|
|
17355
|
-
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
17356
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
17357
|
-
}
|
|
17358
|
-
const obj_id = obj.id;
|
|
17359
|
-
const path_id = path + '.id';
|
|
17360
|
-
if (typeof obj_id !== 'string') {
|
|
17361
|
-
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
17362
|
-
}
|
|
17363
|
-
const obj_label = obj.label;
|
|
17364
|
-
const path_label = path + '.label';
|
|
17365
|
-
if (typeof obj_label !== 'string') {
|
|
17366
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
17367
|
-
}
|
|
17368
|
-
const obj_type = obj.type;
|
|
17369
|
-
const path_type = path + '.type';
|
|
17370
|
-
if (typeof obj_type !== 'string') {
|
|
17371
|
-
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
17372
|
-
}
|
|
17373
|
-
})();
|
|
17374
|
-
return v_error === undefined ? null : v_error;
|
|
17375
|
-
}
|
|
17376
17292
|
const select$1P = function ListScopeRelatedEntityRepresentationSelect() {
|
|
17377
17293
|
return {
|
|
17378
17294
|
kind: 'Fragment',
|
|
@@ -17395,83 +17311,7 @@ const select$1P = function ListScopeRelatedEntityRepresentationSelect() {
|
|
|
17395
17311
|
};
|
|
17396
17312
|
};
|
|
17397
17313
|
|
|
17398
|
-
const VERSION$1g = "
|
|
17399
|
-
function validate$1E(obj, path = 'ListScopeRepresentation') {
|
|
17400
|
-
const v_error = (() => {
|
|
17401
|
-
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
17402
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
17403
|
-
}
|
|
17404
|
-
const obj_apiName = obj.apiName;
|
|
17405
|
-
const path_apiName = path + '.apiName';
|
|
17406
|
-
if (typeof obj_apiName !== 'string') {
|
|
17407
|
-
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
17408
|
-
}
|
|
17409
|
-
const obj_entity = obj.entity;
|
|
17410
|
-
const path_entity = path + '.entity';
|
|
17411
|
-
let obj_entity_union0 = null;
|
|
17412
|
-
const obj_entity_union0_error = (() => {
|
|
17413
|
-
const referencepath_entityValidationError = validate$1G(obj_entity, path_entity);
|
|
17414
|
-
if (referencepath_entityValidationError !== null) {
|
|
17415
|
-
let message = 'Object doesn\'t match ListScopeEntityRepresentation (at "' + path_entity + '")\n';
|
|
17416
|
-
message += referencepath_entityValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
17417
|
-
return new TypeError(message);
|
|
17418
|
-
}
|
|
17419
|
-
})();
|
|
17420
|
-
if (obj_entity_union0_error != null) {
|
|
17421
|
-
obj_entity_union0 = obj_entity_union0_error.message;
|
|
17422
|
-
}
|
|
17423
|
-
let obj_entity_union1 = null;
|
|
17424
|
-
const obj_entity_union1_error = (() => {
|
|
17425
|
-
if (obj_entity !== null) {
|
|
17426
|
-
return new TypeError('Expected "null" but received "' + typeof obj_entity + '" (at "' + path_entity + '")');
|
|
17427
|
-
}
|
|
17428
|
-
})();
|
|
17429
|
-
if (obj_entity_union1_error != null) {
|
|
17430
|
-
obj_entity_union1 = obj_entity_union1_error.message;
|
|
17431
|
-
}
|
|
17432
|
-
if (obj_entity_union0 && obj_entity_union1) {
|
|
17433
|
-
let message = 'Object doesn\'t match union (at "' + path_entity + '")';
|
|
17434
|
-
message += '\n' + obj_entity_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
17435
|
-
message += '\n' + obj_entity_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
17436
|
-
return new TypeError(message);
|
|
17437
|
-
}
|
|
17438
|
-
const obj_label = obj.label;
|
|
17439
|
-
const path_label = path + '.label';
|
|
17440
|
-
if (typeof obj_label !== 'string') {
|
|
17441
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
17442
|
-
}
|
|
17443
|
-
const obj_relatedEntity = obj.relatedEntity;
|
|
17444
|
-
const path_relatedEntity = path + '.relatedEntity';
|
|
17445
|
-
let obj_relatedEntity_union0 = null;
|
|
17446
|
-
const obj_relatedEntity_union0_error = (() => {
|
|
17447
|
-
const referencepath_relatedEntityValidationError = validate$1F(obj_relatedEntity, path_relatedEntity);
|
|
17448
|
-
if (referencepath_relatedEntityValidationError !== null) {
|
|
17449
|
-
let message = 'Object doesn\'t match ListScopeRelatedEntityRepresentation (at "' + path_relatedEntity + '")\n';
|
|
17450
|
-
message += referencepath_relatedEntityValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
17451
|
-
return new TypeError(message);
|
|
17452
|
-
}
|
|
17453
|
-
})();
|
|
17454
|
-
if (obj_relatedEntity_union0_error != null) {
|
|
17455
|
-
obj_relatedEntity_union0 = obj_relatedEntity_union0_error.message;
|
|
17456
|
-
}
|
|
17457
|
-
let obj_relatedEntity_union1 = null;
|
|
17458
|
-
const obj_relatedEntity_union1_error = (() => {
|
|
17459
|
-
if (obj_relatedEntity !== null) {
|
|
17460
|
-
return new TypeError('Expected "null" but received "' + typeof obj_relatedEntity + '" (at "' + path_relatedEntity + '")');
|
|
17461
|
-
}
|
|
17462
|
-
})();
|
|
17463
|
-
if (obj_relatedEntity_union1_error != null) {
|
|
17464
|
-
obj_relatedEntity_union1 = obj_relatedEntity_union1_error.message;
|
|
17465
|
-
}
|
|
17466
|
-
if (obj_relatedEntity_union0 && obj_relatedEntity_union1) {
|
|
17467
|
-
let message = 'Object doesn\'t match union (at "' + path_relatedEntity + '")';
|
|
17468
|
-
message += '\n' + obj_relatedEntity_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
17469
|
-
message += '\n' + obj_relatedEntity_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
17470
|
-
return new TypeError(message);
|
|
17471
|
-
}
|
|
17472
|
-
})();
|
|
17473
|
-
return v_error === undefined ? null : v_error;
|
|
17474
|
-
}
|
|
17314
|
+
const VERSION$1g = "2fe9814e7124b47f59da585483c1b3f9";
|
|
17475
17315
|
const select$1O = function ListScopeRepresentationSelect() {
|
|
17476
17316
|
const { selections: ListScopeEntityRepresentation__selections, opaque: ListScopeEntityRepresentation__opaque, } = select$1Q();
|
|
17477
17317
|
const { selections: ListScopeRelatedEntityRepresentation__selections, opaque: ListScopeRelatedEntityRepresentation__opaque, } = select$1P();
|
|
@@ -17526,7 +17366,7 @@ const select$1N = function ListUserPreferenceRepresentationSelect() {
|
|
|
17526
17366
|
};
|
|
17527
17367
|
|
|
17528
17368
|
const TTL$y = 900000;
|
|
17529
|
-
const VERSION$1e = "
|
|
17369
|
+
const VERSION$1e = "0dbff3feaaa7ced2709e9ae46c58a3e7";
|
|
17530
17370
|
const RepresentationType$R = 'ListInfoRepresentation';
|
|
17531
17371
|
function keyBuilder$1V(luvio, config) {
|
|
17532
17372
|
return keyPrefix$1 + '::' + RepresentationType$R + ':' + (config.listViewApiName === null ? '' : config.listViewApiName) + ':' + config.objectApiName + ':' + config.type;
|
|
@@ -17543,9 +17383,10 @@ function normalize$L(input, existing, path, luvio, store, timestamp) {
|
|
|
17543
17383
|
return input;
|
|
17544
17384
|
}
|
|
17545
17385
|
const select$1M = function ListInfoRepresentationSelect() {
|
|
17546
|
-
const { selections: ListColumnRepresentation__selections, opaque: ListColumnRepresentation__opaque, } = select$
|
|
17547
|
-
const { selections: ListFilterByInfoRepresentation__selections, opaque: ListFilterByInfoRepresentation__opaque, } = select$
|
|
17548
|
-
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$
|
|
17386
|
+
const { selections: ListColumnRepresentation__selections, opaque: ListColumnRepresentation__opaque, } = select$1W$1();
|
|
17387
|
+
const { selections: ListFilterByInfoRepresentation__selections, opaque: ListFilterByInfoRepresentation__opaque, } = select$1V();
|
|
17388
|
+
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$1U();
|
|
17389
|
+
const { selections: ListInfoShareCategoryRepresentation__selections, opaque: ListInfoShareCategoryRepresentation__opaque, } = select$1S();
|
|
17549
17390
|
const { selections: ListOrderByInfoRepresentation__selections, opaque: ListOrderByInfoRepresentation__opaque, } = select$1R();
|
|
17550
17391
|
const { selections: ListScopeRepresentation__selections, opaque: ListScopeRepresentation__opaque, } = select$1O();
|
|
17551
17392
|
const { selections: ListUserPreferenceRepresentation__selections, opaque: ListUserPreferenceRepresentation__opaque, } = select$1N();
|
|
@@ -17593,6 +17434,13 @@ const select$1M = function ListInfoRepresentationSelect() {
|
|
|
17593
17434
|
kind: 'Object',
|
|
17594
17435
|
selections: ListReferenceRepresentation__selections
|
|
17595
17436
|
},
|
|
17437
|
+
{
|
|
17438
|
+
name: 'listShares',
|
|
17439
|
+
kind: 'Object',
|
|
17440
|
+
plural: true,
|
|
17441
|
+
selections: ListInfoShareCategoryRepresentation__selections,
|
|
17442
|
+
required: false
|
|
17443
|
+
},
|
|
17596
17444
|
{
|
|
17597
17445
|
name: 'objectApiNames',
|
|
17598
17446
|
kind: 'Scalar',
|
|
@@ -20505,6 +20353,7 @@ function createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConfli
|
|
|
20505
20353
|
const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) => {
|
|
20506
20354
|
const childNormalize = createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap);
|
|
20507
20355
|
return (input, path, luvio, store, timestamp) => {
|
|
20356
|
+
input.eTag = ''; //[W-13724550] Record Reps ALWAYS have '' etag, to be consistent with GraphQL, as it is not queryable via GraphQL.
|
|
20508
20357
|
const key = keyBuilderFromType$z(luvio, input);
|
|
20509
20358
|
let existingRecord = store.readEntry(key);
|
|
20510
20359
|
const recordPath = {
|
|
@@ -21206,6 +21055,7 @@ function resolveConflict(luvio, map) {
|
|
|
21206
21055
|
|
|
21207
21056
|
const createIngestRecordWithFields = (fields, optionalFields) => {
|
|
21208
21057
|
return (input, path, luvio, store, timestamp) => {
|
|
21058
|
+
input.eTag = ''; //[W-13724550] Record Reps ALWAYS have '' etag, to be consistent with GraphQL, as it is not queryable via GraphQL.
|
|
21209
21059
|
const conflictMap = {
|
|
21210
21060
|
conflicts: {},
|
|
21211
21061
|
serverRequestCount: 0,
|
|
@@ -21358,7 +21208,7 @@ function normalize$H(input, existing, path, luvio, store, timestamp) {
|
|
|
21358
21208
|
return input;
|
|
21359
21209
|
}
|
|
21360
21210
|
const select$1H = function ListRecordCollectionRepresentationSelect(paginationParams) {
|
|
21361
|
-
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$
|
|
21211
|
+
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$1U();
|
|
21362
21212
|
return {
|
|
21363
21213
|
kind: 'Fragment',
|
|
21364
21214
|
reader: true,
|
|
@@ -21472,7 +21322,7 @@ const dynamicSelect$7 = function dynamicListRecordCollectionRepresentationSelect
|
|
|
21472
21322
|
kind: 'Link',
|
|
21473
21323
|
fragment: select$1I()
|
|
21474
21324
|
} : params.records;
|
|
21475
|
-
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$
|
|
21325
|
+
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$1U();
|
|
21476
21326
|
return {
|
|
21477
21327
|
kind: 'Fragment',
|
|
21478
21328
|
reader: true,
|
|
@@ -27374,7 +27224,7 @@ const getRecordEditActionsAdapterFactory = (luvio) => function UiApi__getRecordE
|
|
|
27374
27224
|
buildCachedSnapshotCachePolicy$B, buildNetworkSnapshotCachePolicy$B);
|
|
27375
27225
|
};
|
|
27376
27226
|
|
|
27377
|
-
function validate$
|
|
27227
|
+
function validate$19(obj, path = 'ActionRelatedListSingleBatchInputRepresentation') {
|
|
27378
27228
|
const v_error = (() => {
|
|
27379
27229
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
27380
27230
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -27785,7 +27635,7 @@ function typeCheckConfig$N(untrustedConfig) {
|
|
|
27785
27635
|
const untrustedConfig_relatedListsActionParameters_array = [];
|
|
27786
27636
|
for (let i = 0, arrayLength = untrustedConfig_relatedListsActionParameters.length; i < arrayLength; i++) {
|
|
27787
27637
|
const untrustedConfig_relatedListsActionParameters_item = untrustedConfig_relatedListsActionParameters[i];
|
|
27788
|
-
const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$
|
|
27638
|
+
const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$19(untrustedConfig_relatedListsActionParameters_item);
|
|
27789
27639
|
if (referenceActionRelatedListSingleBatchInputRepresentationValidationError === null) {
|
|
27790
27640
|
untrustedConfig_relatedListsActionParameters_array.push(untrustedConfig_relatedListsActionParameters_item);
|
|
27791
27641
|
}
|
|
@@ -30024,6 +29874,103 @@ const getListInfosByNameAdapterFactory = (luvio) => function UiApi__getListInfos
|
|
|
30024
29874
|
buildCachedSnapshotCachePolicy$s, buildNetworkSnapshotCachePolicy$s);
|
|
30025
29875
|
};
|
|
30026
29876
|
|
|
29877
|
+
function validate$$(obj, path = 'ListFilterByInfoInputRepresentation') {
|
|
29878
|
+
const v_error = (() => {
|
|
29879
|
+
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
29880
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
29881
|
+
}
|
|
29882
|
+
const obj_fieldApiName = obj.fieldApiName;
|
|
29883
|
+
const path_fieldApiName = path + '.fieldApiName';
|
|
29884
|
+
if (typeof obj_fieldApiName !== 'string') {
|
|
29885
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
|
|
29886
|
+
}
|
|
29887
|
+
const obj_operandLabels = obj.operandLabels;
|
|
29888
|
+
const path_operandLabels = path + '.operandLabels';
|
|
29889
|
+
if (!ArrayIsArray$2(obj_operandLabels)) {
|
|
29890
|
+
return new TypeError('Expected "array" but received "' + typeof obj_operandLabels + '" (at "' + path_operandLabels + '")');
|
|
29891
|
+
}
|
|
29892
|
+
for (let i = 0; i < obj_operandLabels.length; i++) {
|
|
29893
|
+
const obj_operandLabels_item = obj_operandLabels[i];
|
|
29894
|
+
const path_operandLabels_item = path_operandLabels + '[' + i + ']';
|
|
29895
|
+
if (typeof obj_operandLabels_item !== 'string') {
|
|
29896
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operandLabels_item + '" (at "' + path_operandLabels_item + '")');
|
|
29897
|
+
}
|
|
29898
|
+
}
|
|
29899
|
+
const obj_operator = obj.operator;
|
|
29900
|
+
const path_operator = path + '.operator';
|
|
29901
|
+
if (typeof obj_operator !== 'string') {
|
|
29902
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
29903
|
+
}
|
|
29904
|
+
})();
|
|
29905
|
+
return v_error === undefined ? null : v_error;
|
|
29906
|
+
}
|
|
29907
|
+
|
|
29908
|
+
function validate$_(obj, path = 'ListScopeInputRepresentation') {
|
|
29909
|
+
const v_error = (() => {
|
|
29910
|
+
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
29911
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
29912
|
+
}
|
|
29913
|
+
const obj_apiName = obj.apiName;
|
|
29914
|
+
const path_apiName = path + '.apiName';
|
|
29915
|
+
if (typeof obj_apiName !== 'string') {
|
|
29916
|
+
return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
|
|
29917
|
+
}
|
|
29918
|
+
const obj_entityId = obj.entityId;
|
|
29919
|
+
const path_entityId = path + '.entityId';
|
|
29920
|
+
let obj_entityId_union0 = null;
|
|
29921
|
+
const obj_entityId_union0_error = (() => {
|
|
29922
|
+
if (typeof obj_entityId !== 'string') {
|
|
29923
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityId + '" (at "' + path_entityId + '")');
|
|
29924
|
+
}
|
|
29925
|
+
})();
|
|
29926
|
+
if (obj_entityId_union0_error != null) {
|
|
29927
|
+
obj_entityId_union0 = obj_entityId_union0_error.message;
|
|
29928
|
+
}
|
|
29929
|
+
let obj_entityId_union1 = null;
|
|
29930
|
+
const obj_entityId_union1_error = (() => {
|
|
29931
|
+
if (obj_entityId !== null) {
|
|
29932
|
+
return new TypeError('Expected "null" but received "' + typeof obj_entityId + '" (at "' + path_entityId + '")');
|
|
29933
|
+
}
|
|
29934
|
+
})();
|
|
29935
|
+
if (obj_entityId_union1_error != null) {
|
|
29936
|
+
obj_entityId_union1 = obj_entityId_union1_error.message;
|
|
29937
|
+
}
|
|
29938
|
+
if (obj_entityId_union0 && obj_entityId_union1) {
|
|
29939
|
+
let message = 'Object doesn\'t match union (at "' + path_entityId + '")';
|
|
29940
|
+
message += '\n' + obj_entityId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
29941
|
+
message += '\n' + obj_entityId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
29942
|
+
return new TypeError(message);
|
|
29943
|
+
}
|
|
29944
|
+
const obj_relatedEntityId = obj.relatedEntityId;
|
|
29945
|
+
const path_relatedEntityId = path + '.relatedEntityId';
|
|
29946
|
+
let obj_relatedEntityId_union0 = null;
|
|
29947
|
+
const obj_relatedEntityId_union0_error = (() => {
|
|
29948
|
+
if (typeof obj_relatedEntityId !== 'string') {
|
|
29949
|
+
return new TypeError('Expected "string" but received "' + typeof obj_relatedEntityId + '" (at "' + path_relatedEntityId + '")');
|
|
29950
|
+
}
|
|
29951
|
+
})();
|
|
29952
|
+
if (obj_relatedEntityId_union0_error != null) {
|
|
29953
|
+
obj_relatedEntityId_union0 = obj_relatedEntityId_union0_error.message;
|
|
29954
|
+
}
|
|
29955
|
+
let obj_relatedEntityId_union1 = null;
|
|
29956
|
+
const obj_relatedEntityId_union1_error = (() => {
|
|
29957
|
+
if (obj_relatedEntityId !== null) {
|
|
29958
|
+
return new TypeError('Expected "null" but received "' + typeof obj_relatedEntityId + '" (at "' + path_relatedEntityId + '")');
|
|
29959
|
+
}
|
|
29960
|
+
})();
|
|
29961
|
+
if (obj_relatedEntityId_union1_error != null) {
|
|
29962
|
+
obj_relatedEntityId_union1 = obj_relatedEntityId_union1_error.message;
|
|
29963
|
+
}
|
|
29964
|
+
if (obj_relatedEntityId_union0 && obj_relatedEntityId_union1) {
|
|
29965
|
+
let message = 'Object doesn\'t match union (at "' + path_relatedEntityId + '")';
|
|
29966
|
+
message += '\n' + obj_relatedEntityId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
29967
|
+
message += '\n' + obj_relatedEntityId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
29968
|
+
return new TypeError(message);
|
|
29969
|
+
}
|
|
29970
|
+
})();
|
|
29971
|
+
return v_error === undefined ? null : v_error;
|
|
29972
|
+
}
|
|
29973
|
+
|
|
30027
29974
|
function select$14$1(luvio, params) {
|
|
30028
29975
|
return select$1M();
|
|
30029
29976
|
}
|
|
@@ -30059,10 +30006,11 @@ function createResourceRequest$B(config) {
|
|
|
30059
30006
|
const adapterName$A = 'createListInfo';
|
|
30060
30007
|
const createListInfo_ConfigPropertyMetadata = [
|
|
30061
30008
|
generateParamConfigMetadata$2('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1$1),
|
|
30062
|
-
generateParamConfigMetadata$2('displayColumns', false, 2 /* Body */,
|
|
30063
|
-
generateParamConfigMetadata$2('filterLogicString', false, 2 /* Body */,
|
|
30009
|
+
generateParamConfigMetadata$2('displayColumns', false, 2 /* Body */, 0 /* String */, true),
|
|
30010
|
+
generateParamConfigMetadata$2('filterLogicString', false, 2 /* Body */, 0 /* String */),
|
|
30064
30011
|
generateParamConfigMetadata$2('filteredByInfo', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
30065
30012
|
generateParamConfigMetadata$2('label', false, 2 /* Body */, 0 /* String */),
|
|
30013
|
+
generateParamConfigMetadata$2('listShares', false, 2 /* Body */, 0 /* String */, true),
|
|
30066
30014
|
generateParamConfigMetadata$2('listViewApiName', false, 2 /* Body */, 0 /* String */),
|
|
30067
30015
|
generateParamConfigMetadata$2('scope', false, 2 /* Body */, 4 /* Unsupported */),
|
|
30068
30016
|
generateParamConfigMetadata$2('visibility', false, 2 /* Body */, 0 /* String */),
|
|
@@ -30072,46 +30020,21 @@ const createResourceParams$A = /*#__PURE__*/ createResourceParams$Z(createListIn
|
|
|
30072
30020
|
function typeCheckConfig$E(untrustedConfig) {
|
|
30073
30021
|
const config = {};
|
|
30074
30022
|
typeCheckConfig$12(untrustedConfig, config, createListInfo_ConfigPropertyMetadata);
|
|
30075
|
-
const untrustedConfig_displayColumns = untrustedConfig.displayColumns;
|
|
30076
|
-
if (ArrayIsArray$1(untrustedConfig_displayColumns)) {
|
|
30077
|
-
const untrustedConfig_displayColumns_array = [];
|
|
30078
|
-
for (let i = 0, arrayLength = untrustedConfig_displayColumns.length; i < arrayLength; i++) {
|
|
30079
|
-
const untrustedConfig_displayColumns_item = untrustedConfig_displayColumns[i];
|
|
30080
|
-
const referenceListColumnRepresentationValidationError = validate$1K(untrustedConfig_displayColumns_item);
|
|
30081
|
-
if (referenceListColumnRepresentationValidationError === null) {
|
|
30082
|
-
untrustedConfig_displayColumns_array.push(untrustedConfig_displayColumns_item);
|
|
30083
|
-
}
|
|
30084
|
-
if (untrustedConfig_displayColumns_item === null) {
|
|
30085
|
-
untrustedConfig_displayColumns_array.push(untrustedConfig_displayColumns_item);
|
|
30086
|
-
}
|
|
30087
|
-
}
|
|
30088
|
-
config.displayColumns = untrustedConfig_displayColumns_array;
|
|
30089
|
-
}
|
|
30090
|
-
const untrustedConfig_filterLogicString = untrustedConfig.filterLogicString;
|
|
30091
|
-
if (typeof untrustedConfig_filterLogicString === 'string') {
|
|
30092
|
-
config.filterLogicString = untrustedConfig_filterLogicString;
|
|
30093
|
-
}
|
|
30094
|
-
if (untrustedConfig_filterLogicString === null) {
|
|
30095
|
-
config.filterLogicString = untrustedConfig_filterLogicString;
|
|
30096
|
-
}
|
|
30097
30023
|
const untrustedConfig_filteredByInfo = untrustedConfig.filteredByInfo;
|
|
30098
30024
|
if (ArrayIsArray$1(untrustedConfig_filteredByInfo)) {
|
|
30099
30025
|
const untrustedConfig_filteredByInfo_array = [];
|
|
30100
30026
|
for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
|
|
30101
30027
|
const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
|
|
30102
|
-
const
|
|
30103
|
-
if (
|
|
30028
|
+
const referenceListFilterByInfoInputRepresentationValidationError = validate$$(untrustedConfig_filteredByInfo_item);
|
|
30029
|
+
if (referenceListFilterByInfoInputRepresentationValidationError === null) {
|
|
30104
30030
|
untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
|
|
30105
30031
|
}
|
|
30106
30032
|
}
|
|
30107
30033
|
config.filteredByInfo = untrustedConfig_filteredByInfo_array;
|
|
30108
30034
|
}
|
|
30109
30035
|
const untrustedConfig_scope = untrustedConfig.scope;
|
|
30110
|
-
const
|
|
30111
|
-
if (
|
|
30112
|
-
config.scope = untrustedConfig_scope;
|
|
30113
|
-
}
|
|
30114
|
-
if (untrustedConfig_scope === null) {
|
|
30036
|
+
const referenceListScopeInputRepresentationValidationError = validate$_(untrustedConfig_scope);
|
|
30037
|
+
if (referenceListScopeInputRepresentationValidationError === null) {
|
|
30115
30038
|
config.scope = untrustedConfig_scope;
|
|
30116
30039
|
}
|
|
30117
30040
|
return config;
|
|
@@ -30276,10 +30199,11 @@ const adapterName$y = 'updateListInfoByName';
|
|
|
30276
30199
|
const updateListInfoByName_ConfigPropertyMetadata = [
|
|
30277
30200
|
generateParamConfigMetadata$2('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
30278
30201
|
generateParamConfigMetadata$2('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1$1),
|
|
30279
|
-
generateParamConfigMetadata$2('displayColumns', false, 2 /* Body */,
|
|
30280
|
-
generateParamConfigMetadata$2('filterLogicString', false, 2 /* Body */,
|
|
30202
|
+
generateParamConfigMetadata$2('displayColumns', false, 2 /* Body */, 0 /* String */, true),
|
|
30203
|
+
generateParamConfigMetadata$2('filterLogicString', false, 2 /* Body */, 0 /* String */),
|
|
30281
30204
|
generateParamConfigMetadata$2('filteredByInfo', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
30282
30205
|
generateParamConfigMetadata$2('label', false, 2 /* Body */, 0 /* String */),
|
|
30206
|
+
generateParamConfigMetadata$2('listShares', false, 2 /* Body */, 0 /* String */, true),
|
|
30283
30207
|
generateParamConfigMetadata$2('scope', false, 2 /* Body */, 4 /* Unsupported */),
|
|
30284
30208
|
generateParamConfigMetadata$2('visibility', false, 2 /* Body */, 0 /* String */),
|
|
30285
30209
|
];
|
|
@@ -30288,46 +30212,21 @@ const createResourceParams$y = /*#__PURE__*/ createResourceParams$Z(updateListIn
|
|
|
30288
30212
|
function typeCheckConfig$C(untrustedConfig) {
|
|
30289
30213
|
const config = {};
|
|
30290
30214
|
typeCheckConfig$12(untrustedConfig, config, updateListInfoByName_ConfigPropertyMetadata);
|
|
30291
|
-
const untrustedConfig_displayColumns = untrustedConfig.displayColumns;
|
|
30292
|
-
if (ArrayIsArray$1(untrustedConfig_displayColumns)) {
|
|
30293
|
-
const untrustedConfig_displayColumns_array = [];
|
|
30294
|
-
for (let i = 0, arrayLength = untrustedConfig_displayColumns.length; i < arrayLength; i++) {
|
|
30295
|
-
const untrustedConfig_displayColumns_item = untrustedConfig_displayColumns[i];
|
|
30296
|
-
const referenceListColumnRepresentationValidationError = validate$1K(untrustedConfig_displayColumns_item);
|
|
30297
|
-
if (referenceListColumnRepresentationValidationError === null) {
|
|
30298
|
-
untrustedConfig_displayColumns_array.push(untrustedConfig_displayColumns_item);
|
|
30299
|
-
}
|
|
30300
|
-
if (untrustedConfig_displayColumns_item === null) {
|
|
30301
|
-
untrustedConfig_displayColumns_array.push(untrustedConfig_displayColumns_item);
|
|
30302
|
-
}
|
|
30303
|
-
}
|
|
30304
|
-
config.displayColumns = untrustedConfig_displayColumns_array;
|
|
30305
|
-
}
|
|
30306
|
-
const untrustedConfig_filterLogicString = untrustedConfig.filterLogicString;
|
|
30307
|
-
if (typeof untrustedConfig_filterLogicString === 'string') {
|
|
30308
|
-
config.filterLogicString = untrustedConfig_filterLogicString;
|
|
30309
|
-
}
|
|
30310
|
-
if (untrustedConfig_filterLogicString === null) {
|
|
30311
|
-
config.filterLogicString = untrustedConfig_filterLogicString;
|
|
30312
|
-
}
|
|
30313
30215
|
const untrustedConfig_filteredByInfo = untrustedConfig.filteredByInfo;
|
|
30314
30216
|
if (ArrayIsArray$1(untrustedConfig_filteredByInfo)) {
|
|
30315
30217
|
const untrustedConfig_filteredByInfo_array = [];
|
|
30316
30218
|
for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
|
|
30317
30219
|
const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
|
|
30318
|
-
const
|
|
30319
|
-
if (
|
|
30220
|
+
const referenceListFilterByInfoInputRepresentationValidationError = validate$$(untrustedConfig_filteredByInfo_item);
|
|
30221
|
+
if (referenceListFilterByInfoInputRepresentationValidationError === null) {
|
|
30320
30222
|
untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
|
|
30321
30223
|
}
|
|
30322
30224
|
}
|
|
30323
30225
|
config.filteredByInfo = untrustedConfig_filteredByInfo_array;
|
|
30324
30226
|
}
|
|
30325
30227
|
const untrustedConfig_scope = untrustedConfig.scope;
|
|
30326
|
-
const
|
|
30327
|
-
if (
|
|
30328
|
-
config.scope = untrustedConfig_scope;
|
|
30329
|
-
}
|
|
30330
|
-
if (untrustedConfig_scope === null) {
|
|
30228
|
+
const referenceListScopeInputRepresentationValidationError = validate$_(untrustedConfig_scope);
|
|
30229
|
+
if (referenceListScopeInputRepresentationValidationError === null) {
|
|
30331
30230
|
config.scope = untrustedConfig_scope;
|
|
30332
30231
|
}
|
|
30333
30232
|
return config;
|
|
@@ -40820,7 +40719,7 @@ const factory$2 = (luvio) => {
|
|
|
40820
40719
|
};
|
|
40821
40720
|
};
|
|
40822
40721
|
|
|
40823
|
-
const VERSION$
|
|
40722
|
+
const VERSION$1p = "5f97eb4f2c3f805ef9d98ba7f0530b3e";
|
|
40824
40723
|
const RepresentationType$S = 'ContentDocumentCompositeRepresentation';
|
|
40825
40724
|
function keyBuilder$1W(luvio, config) {
|
|
40826
40725
|
return keyPrefix$1 + '::' + RepresentationType$S + ':' + config.contentDocumentId;
|
|
@@ -40900,7 +40799,7 @@ function equals$12(existing, incoming) {
|
|
|
40900
40799
|
const ingest$15 = function ContentDocumentCompositeRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
40901
40800
|
const key = keyBuilderFromType$B(luvio, input);
|
|
40902
40801
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
40903
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "UiApi", VERSION$
|
|
40802
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "UiApi", VERSION$1p, RepresentationType$S, equals$12);
|
|
40904
40803
|
return createLink$3(key);
|
|
40905
40804
|
};
|
|
40906
40805
|
function getTypeCacheKeys$18(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -40967,11 +40866,11 @@ function createResourceRequest$1$1(config) {
|
|
|
40967
40866
|
priority: 'normal',
|
|
40968
40867
|
};
|
|
40969
40868
|
}
|
|
40970
|
-
const select$
|
|
40869
|
+
const select$21 = function ContentDocumentCompositeRepresentationSelect(body) {
|
|
40971
40870
|
return {
|
|
40972
40871
|
kind: 'Fragment',
|
|
40973
40872
|
private: [],
|
|
40974
|
-
version: VERSION$
|
|
40873
|
+
version: VERSION$1p,
|
|
40975
40874
|
selections: [
|
|
40976
40875
|
{
|
|
40977
40876
|
name: 'contentDocument',
|
|
@@ -41010,7 +40909,7 @@ const select$1V = function ContentDocumentCompositeRepresentationSelect(body) {
|
|
|
41010
40909
|
function ingestSuccess$1$1(luvio, resourceParams, response) {
|
|
41011
40910
|
const { body } = response;
|
|
41012
40911
|
const key = keyBuilderFromType$B(luvio, body);
|
|
41013
|
-
const node = select$
|
|
40912
|
+
const node = select$21(body);
|
|
41014
40913
|
luvio.storeIngest(key, ingest$15, body);
|
|
41015
40914
|
const snapshot = luvio.storeLookup({
|
|
41016
40915
|
recordId: key,
|
|
@@ -41081,7 +40980,7 @@ function createResourceRequest$14(config) {
|
|
|
41081
40980
|
function ingestSuccess$M(luvio, resourceParams, response) {
|
|
41082
40981
|
const { body } = response;
|
|
41083
40982
|
const key = keyBuilderFromType$B(luvio, body);
|
|
41084
|
-
const node = select$
|
|
40983
|
+
const node = select$21(body);
|
|
41085
40984
|
luvio.storeIngest(key, ingest$15, body);
|
|
41086
40985
|
const snapshot = luvio.storeLookup({
|
|
41087
40986
|
recordId: key,
|
|
@@ -41741,7 +41640,7 @@ withDefaultLuvio((luvio) => {
|
|
|
41741
41640
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
41742
41641
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41743
41642
|
});
|
|
41744
|
-
// version: 1.
|
|
41643
|
+
// version: 1.243.0-c7d8ec9e0
|
|
41745
41644
|
|
|
41746
41645
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
41747
41646
|
|
|
@@ -47926,9 +47825,6 @@ class AbstractResourceRequestActionHandler {
|
|
|
47926
47825
|
}
|
|
47927
47826
|
async buildPendingAction(request, queue) {
|
|
47928
47827
|
const targetId = await this.getIdFromRequest(request);
|
|
47929
|
-
if (targetId === undefined) {
|
|
47930
|
-
return Promise.reject(new Error('Cannot determine target id from the resource request'));
|
|
47931
|
-
}
|
|
47932
47828
|
const tag = this.buildTagForTargetId(targetId);
|
|
47933
47829
|
const handlerActions = queue.filter((x) => x.handler === this.handlerId);
|
|
47934
47830
|
if (request.method === 'post' && actionsForTag(tag, handlerActions).length > 0) {
|
|
@@ -52939,7 +52835,7 @@ const RECORD_ENDPOINT_REGEX$1 = /^\/ui-api\/records\/?(([a-zA-Z0-9]+))?$/;
|
|
|
52939
52835
|
function getRecordIdFromRecordRequest(request) {
|
|
52940
52836
|
const { method, basePath } = request;
|
|
52941
52837
|
if (basePath === undefined) {
|
|
52942
|
-
|
|
52838
|
+
throw Error(`Could not determine record id from request without a basePath`);
|
|
52943
52839
|
}
|
|
52944
52840
|
let recordId = '';
|
|
52945
52841
|
switch (method) {
|
|
@@ -52948,13 +52844,13 @@ function getRecordIdFromRecordRequest(request) {
|
|
|
52948
52844
|
case 'delete': {
|
|
52949
52845
|
const matches = basePath.match(RECORD_ENDPOINT_REGEX$1);
|
|
52950
52846
|
if (!matches || matches.length !== 3) {
|
|
52951
|
-
|
|
52847
|
+
throw Error(`Could not determine record id from request path ${basePath}`);
|
|
52952
52848
|
}
|
|
52953
52849
|
recordId = matches[2];
|
|
52954
52850
|
break;
|
|
52955
52851
|
}
|
|
52956
52852
|
default: {
|
|
52957
|
-
|
|
52853
|
+
throw Error(`Could not determine record id from request type `);
|
|
52958
52854
|
}
|
|
52959
52855
|
}
|
|
52960
52856
|
return recordId;
|
|
@@ -53810,7 +53706,7 @@ class UiApiActionHandler extends AbstractResourceRequestActionHandler {
|
|
|
53810
53706
|
if (request.method === 'post') {
|
|
53811
53707
|
const apiName = request.body.apiName;
|
|
53812
53708
|
if (apiName === undefined) {
|
|
53813
|
-
|
|
53709
|
+
throw Error('Could not determine api name from request body');
|
|
53814
53710
|
}
|
|
53815
53711
|
return this.recordService.synthesizeId(apiName);
|
|
53816
53712
|
}
|
|
@@ -54525,11 +54421,11 @@ class UiApiDraftRecordService {
|
|
|
54525
54421
|
const objectInfo = await getAdapterData(this.objectInfoAdapter, {
|
|
54526
54422
|
objectApiName: apiName,
|
|
54527
54423
|
});
|
|
54528
|
-
if (objectInfo === undefined) {
|
|
54529
|
-
|
|
54424
|
+
if (objectInfo === undefined || objectInfo.keyPrefix === null) {
|
|
54425
|
+
throw Error(`Could not find or fetch object info for ${apiName}`);
|
|
54530
54426
|
}
|
|
54531
54427
|
if (objectInfo.keyPrefix === null) {
|
|
54532
|
-
|
|
54428
|
+
throw Error(`Could not find key prefix for ${apiName}. Cannot synthesize id.`);
|
|
54533
54429
|
}
|
|
54534
54430
|
return this.generateId(objectInfo.keyPrefix);
|
|
54535
54431
|
}
|
|
@@ -54605,7 +54501,7 @@ class QuickActionExecutionRepresentationHandler extends AbstractResourceRequestA
|
|
|
54605
54501
|
getIdFromRequest(request) {
|
|
54606
54502
|
const apiName = request.body.apiName;
|
|
54607
54503
|
if (typeof apiName !== 'string') {
|
|
54608
|
-
throw Error('expected api name not found');
|
|
54504
|
+
throw Error('expected api name not found in request body');
|
|
54609
54505
|
}
|
|
54610
54506
|
const id = this.draftRecordService.synthesizeId(apiName);
|
|
54611
54507
|
return Promise.resolve(id);
|
|
@@ -55067,16 +54963,18 @@ class ContentDocumentCompositeRepresentationActionHandler extends AbstractResour
|
|
|
55067
54963
|
// remember ContentDocument ID
|
|
55068
54964
|
pendingAction.metadata[CONTENT_DOCUMENT_DRAFT_ID_KEY] = targetId;
|
|
55069
54965
|
// generate and remember ContentVersion ID
|
|
55070
|
-
const contentVersionId = await this.draftRecordService
|
|
55071
|
-
|
|
54966
|
+
const contentVersionId = await this.draftRecordService
|
|
54967
|
+
.synthesizeId(CONTENT_VERSION_API_NAME)
|
|
54968
|
+
.catch(() => {
|
|
55072
54969
|
return Promise.reject(new DraftSynthesisError('Cannot generate local ContentVersion synthetic id', 'CANNOT_GENERATE_ID'));
|
|
55073
|
-
}
|
|
54970
|
+
});
|
|
55074
54971
|
pendingAction.metadata[CONTENT_VERSION_DRAFT_ID_KEY] = contentVersionId;
|
|
55075
54972
|
// generate and remember ContentDocumentLink ID
|
|
55076
|
-
const contentDocumentLinkId = await this.draftRecordService
|
|
55077
|
-
|
|
54973
|
+
const contentDocumentLinkId = await this.draftRecordService
|
|
54974
|
+
.synthesizeId(CONTENT_DOCUMENT_LINK_API_NAME)
|
|
54975
|
+
.catch(() => {
|
|
55078
54976
|
return Promise.reject(new DraftSynthesisError('Cannot generate local ContentDocumentLink synthetic id', 'CANNOT_GENERATE_ID'));
|
|
55079
|
-
}
|
|
54977
|
+
});
|
|
55080
54978
|
pendingAction.metadata[CONTENT_DOCUMENT_LINK_DRAFT_ID_KEY] = contentDocumentLinkId;
|
|
55081
54979
|
// assert that object infos and references exist
|
|
55082
54980
|
const metaDataResult = await this.draftRecordService.getRecordDraftMetadata(targetId, pendingAction);
|
|
@@ -55105,8 +55003,7 @@ class ContentDocumentCompositeRepresentationActionHandler extends AbstractResour
|
|
|
55105
55003
|
return false;
|
|
55106
55004
|
}
|
|
55107
55005
|
async getIdFromRequest(_request) {
|
|
55108
|
-
|
|
55109
|
-
return id;
|
|
55006
|
+
return this.draftRecordService.synthesizeId(CONTENT_DOCUMENT_API_NAME);
|
|
55110
55007
|
}
|
|
55111
55008
|
getIdFromResponseBody(responseBody) {
|
|
55112
55009
|
return responseBody.contentDocument.id;
|
|
@@ -57923,6 +57820,9 @@ class PrimingSession extends EventEmitter {
|
|
|
57923
57820
|
this.ldsRecordRefresher = config.ldsRecordRefresher;
|
|
57924
57821
|
this.networkWorkerPool = new AsyncWorkerPool(this.concurrency);
|
|
57925
57822
|
this.useBatchGQL = ldsPrimingGraphqlBatch.isOpen({ fallback: false });
|
|
57823
|
+
if (this.useBatchGQL) {
|
|
57824
|
+
this.batchSize = this.batchSize / DEFAULT_GQL_QUERY_BATCH_SIZE;
|
|
57825
|
+
}
|
|
57926
57826
|
this.conflictPool = new ConflictPool(config.store, this.objectInfoLoader);
|
|
57927
57827
|
}
|
|
57928
57828
|
// function that enqueues priming work
|
|
@@ -58782,7 +58682,7 @@ register$1({
|
|
|
58782
58682
|
id: '@salesforce/lds-network-adapter',
|
|
58783
58683
|
instrument: instrument$2,
|
|
58784
58684
|
});
|
|
58785
|
-
// version: 1.
|
|
58685
|
+
// version: 1.243.0-87f38263e
|
|
58786
58686
|
|
|
58787
58687
|
const { create: create$3, keys: keys$3 } = Object;
|
|
58788
58688
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -77250,7 +77150,7 @@ register$1({
|
|
|
77250
77150
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
77251
77151
|
instrument: instrument$1,
|
|
77252
77152
|
});
|
|
77253
|
-
// version: 1.
|
|
77153
|
+
// version: 1.243.0-c7d8ec9e0
|
|
77254
77154
|
|
|
77255
77155
|
// On core the unstable adapters are re-exported with different names,
|
|
77256
77156
|
// we want to match them here.
|
|
@@ -79499,7 +79399,7 @@ withDefaultLuvio((luvio) => {
|
|
|
79499
79399
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
79500
79400
|
graphQLImperative = ldsAdapter;
|
|
79501
79401
|
});
|
|
79502
|
-
// version: 1.
|
|
79402
|
+
// version: 1.243.0-c7d8ec9e0
|
|
79503
79403
|
|
|
79504
79404
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
79505
79405
|
__proto__: null,
|
|
@@ -80197,7 +80097,7 @@ const callbacks$1 = [];
|
|
|
80197
80097
|
function register(r) {
|
|
80198
80098
|
callbacks$1.forEach((callback) => callback(r));
|
|
80199
80099
|
}
|
|
80200
|
-
// version: 1.
|
|
80100
|
+
// version: 1.243.0-87f38263e
|
|
80201
80101
|
|
|
80202
80102
|
/**
|
|
80203
80103
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -84843,4 +84743,4 @@ const { luvio } = getRuntime();
|
|
|
84843
84743
|
setDefaultLuvio({ luvio });
|
|
84844
84744
|
|
|
84845
84745
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
84846
|
-
// version: 1.
|
|
84746
|
+
// version: 1.243.0-87f38263e
|