@salesforce/lds-worker-api 1.242.1 → 1.244.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2599,7 +2599,10 @@ class Reader {
2599
2599
  this.markPending();
2600
2600
  return;
2601
2601
  default:
2602
- this.readStoreLinkWithRef(linkState, fragment, sink, property, required);
2602
+ // if we have a link reference we override the required property passed to true
2603
+ // because if there was a missing reference the `isMissing` property would be true and the links state would
2604
+ // have returned `Missing`.
2605
+ this.readStoreLinkWithRef(linkState, fragment, sink, property, true);
2603
2606
  }
2604
2607
  }
2605
2608
  markRedirectsSeen(state) {
@@ -3899,7 +3902,7 @@ function createResourceParamsImpl(config, configMetadata) {
3899
3902
  }
3900
3903
  return resourceParams;
3901
3904
  }
3902
- // engine version: 0.150.2-5dcb5d26
3905
+ // engine version: 0.150.3-a08cc935
3903
3906
 
3904
3907
  /**
3905
3908
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -4027,7 +4030,7 @@ function withDefaultLuvio(callback) {
4027
4030
  }
4028
4031
  callbacks.push(callback);
4029
4032
  }
4030
- // version: 1.242.1-58f8f4bb1
4033
+ // version: 1.244.0-72e322fff
4031
4034
 
4032
4035
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4033
4036
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15488,7 +15491,7 @@ function gql(literals, ...subs) {
15488
15491
  }
15489
15492
  return superResult;
15490
15493
  }
15491
- // version: 1.242.1-58f8f4bb1
15494
+ // version: 1.244.0-72e322fff
15492
15495
 
15493
15496
  function unwrap(data) {
15494
15497
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16413,7 +16416,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16413
16416
  const { apiFamily, name } = metadata;
16414
16417
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16415
16418
  }
16416
- // version: 1.242.1-58f8f4bb1
16419
+ // version: 1.244.0-72e322fff
16417
16420
 
16418
16421
  /**
16419
16422
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -16512,7 +16515,7 @@ var TypeCheckShapes;
16512
16515
  TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
16513
16516
  TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
16514
16517
  })(TypeCheckShapes || (TypeCheckShapes = {}));
16515
- // engine version: 0.150.2-5dcb5d26
16518
+ // engine version: 0.150.3-a08cc935
16516
16519
 
16517
16520
  const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
16518
16521
 
@@ -17100,60 +17103,11 @@ function assignMetadataLink$1(entry, metadataKey) {
17100
17103
  entry['__metadata'] = createLink$3(metadataKey);
17101
17104
  }
17102
17105
 
17103
- const VERSION$1m = "275ae22194003d1e53f548b81219c5cb";
17104
- function validate$1K(obj, path = 'ListColumnRepresentation') {
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() {
17106
+ const VERSION$1o = "275ae22194003d1e53f548b81219c5cb";
17107
+ const select$1W$1 = function ListColumnRepresentationSelect() {
17154
17108
  return {
17155
17109
  kind: 'Fragment',
17156
- version: VERSION$1m,
17110
+ version: VERSION$1o,
17157
17111
  private: [],
17158
17112
  selections: [
17159
17113
  {
@@ -17176,46 +17130,11 @@ const select$1U = function ListColumnRepresentationSelect() {
17176
17130
  };
17177
17131
  };
17178
17132
 
17179
- const VERSION$1l = "623aa9ce3a11031e35faf5671a41746e";
17180
- function validate$1J(obj, path = 'ListFilterByInfoRepresentation') {
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() {
17133
+ const VERSION$1n = "623aa9ce3a11031e35faf5671a41746e";
17134
+ const select$1V = function ListFilterByInfoRepresentationSelect() {
17216
17135
  return {
17217
17136
  kind: 'Fragment',
17218
- version: VERSION$1l,
17137
+ version: VERSION$1n,
17219
17138
  private: [],
17220
17139
  selections: [
17221
17140
  {
@@ -17239,11 +17158,11 @@ const select$1T = function ListFilterByInfoRepresentationSelect() {
17239
17158
  };
17240
17159
  };
17241
17160
 
17242
- const VERSION$1k = "76042ff4af603b2ac0ec69fa0bd12046";
17243
- const select$1S = function ListReferenceRepresentationSelect() {
17161
+ const VERSION$1m = "76042ff4af603b2ac0ec69fa0bd12046";
17162
+ const select$1U = function ListReferenceRepresentationSelect() {
17244
17163
  return {
17245
17164
  kind: 'Fragment',
17246
- version: VERSION$1k,
17165
+ version: VERSION$1m,
17247
17166
  private: [],
17248
17167
  selections: [
17249
17168
  {
@@ -17289,6 +17208,47 @@ function equals$11(existing, incoming) {
17289
17208
  return true;
17290
17209
  }
17291
17210
 
17211
+ const VERSION$1l = "494e0262f07ff2cc5f82d1e0262fec4f";
17212
+ const select$1T = function ListInfoShareRepresentationSelect() {
17213
+ return {
17214
+ kind: 'Fragment',
17215
+ version: VERSION$1l,
17216
+ private: [],
17217
+ selections: [
17218
+ {
17219
+ name: 'groupApiName',
17220
+ kind: 'Scalar'
17221
+ },
17222
+ {
17223
+ name: 'label',
17224
+ kind: 'Scalar'
17225
+ }
17226
+ ]
17227
+ };
17228
+ };
17229
+
17230
+ const VERSION$1k = "561657f32721ec1dac1601575b029640";
17231
+ const select$1S = function ListInfoShareCategoryRepresentationSelect() {
17232
+ const { selections: ListInfoShareRepresentation__selections, opaque: ListInfoShareRepresentation__opaque, } = select$1T();
17233
+ return {
17234
+ kind: 'Fragment',
17235
+ version: VERSION$1k,
17236
+ private: [],
17237
+ selections: [
17238
+ {
17239
+ name: 'shareType',
17240
+ kind: 'Scalar'
17241
+ },
17242
+ {
17243
+ name: 'shares',
17244
+ kind: 'Object',
17245
+ plural: true,
17246
+ selections: ListInfoShareRepresentation__selections
17247
+ }
17248
+ ]
17249
+ };
17250
+ };
17251
+
17292
17252
  const VERSION$1j = "32def9b631252c12b91a8209c1f49f5a";
17293
17253
  const select$1R = function ListOrderByInfoRepresentationSelect() {
17294
17254
  return {
@@ -17313,24 +17273,6 @@ const select$1R = function ListOrderByInfoRepresentationSelect() {
17313
17273
  };
17314
17274
 
17315
17275
  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
17276
  const select$1Q = function ListScopeEntityRepresentationSelect() {
17335
17277
  return {
17336
17278
  kind: 'Fragment',
@@ -17350,29 +17292,6 @@ const select$1Q = function ListScopeEntityRepresentationSelect() {
17350
17292
  };
17351
17293
 
17352
17294
  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
17295
  const select$1P = function ListScopeRelatedEntityRepresentationSelect() {
17377
17296
  return {
17378
17297
  kind: 'Fragment',
@@ -17395,83 +17314,7 @@ const select$1P = function ListScopeRelatedEntityRepresentationSelect() {
17395
17314
  };
17396
17315
  };
17397
17316
 
17398
- const VERSION$1g = "a51de242c746e5500a833e84dfaa2170";
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
- }
17317
+ const VERSION$1g = "2fe9814e7124b47f59da585483c1b3f9";
17475
17318
  const select$1O = function ListScopeRepresentationSelect() {
17476
17319
  const { selections: ListScopeEntityRepresentation__selections, opaque: ListScopeEntityRepresentation__opaque, } = select$1Q();
17477
17320
  const { selections: ListScopeRelatedEntityRepresentation__selections, opaque: ListScopeRelatedEntityRepresentation__opaque, } = select$1P();
@@ -17526,7 +17369,7 @@ const select$1N = function ListUserPreferenceRepresentationSelect() {
17526
17369
  };
17527
17370
 
17528
17371
  const TTL$y = 900000;
17529
- const VERSION$1e = "8b55d621d80c84ec2e331abc4e12fc56";
17372
+ const VERSION$1e = "0dbff3feaaa7ced2709e9ae46c58a3e7";
17530
17373
  const RepresentationType$R = 'ListInfoRepresentation';
17531
17374
  function keyBuilder$1V(luvio, config) {
17532
17375
  return keyPrefix$1 + '::' + RepresentationType$R + ':' + (config.listViewApiName === null ? '' : config.listViewApiName) + ':' + config.objectApiName + ':' + config.type;
@@ -17543,9 +17386,10 @@ function normalize$L(input, existing, path, luvio, store, timestamp) {
17543
17386
  return input;
17544
17387
  }
17545
17388
  const select$1M = function ListInfoRepresentationSelect() {
17546
- const { selections: ListColumnRepresentation__selections, opaque: ListColumnRepresentation__opaque, } = select$1U();
17547
- const { selections: ListFilterByInfoRepresentation__selections, opaque: ListFilterByInfoRepresentation__opaque, } = select$1T();
17548
- const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$1S();
17389
+ const { selections: ListColumnRepresentation__selections, opaque: ListColumnRepresentation__opaque, } = select$1W$1();
17390
+ const { selections: ListFilterByInfoRepresentation__selections, opaque: ListFilterByInfoRepresentation__opaque, } = select$1V();
17391
+ const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$1U();
17392
+ const { selections: ListInfoShareCategoryRepresentation__selections, opaque: ListInfoShareCategoryRepresentation__opaque, } = select$1S();
17549
17393
  const { selections: ListOrderByInfoRepresentation__selections, opaque: ListOrderByInfoRepresentation__opaque, } = select$1R();
17550
17394
  const { selections: ListScopeRepresentation__selections, opaque: ListScopeRepresentation__opaque, } = select$1O();
17551
17395
  const { selections: ListUserPreferenceRepresentation__selections, opaque: ListUserPreferenceRepresentation__opaque, } = select$1N();
@@ -17593,6 +17437,13 @@ const select$1M = function ListInfoRepresentationSelect() {
17593
17437
  kind: 'Object',
17594
17438
  selections: ListReferenceRepresentation__selections
17595
17439
  },
17440
+ {
17441
+ name: 'listShares',
17442
+ kind: 'Object',
17443
+ plural: true,
17444
+ selections: ListInfoShareCategoryRepresentation__selections,
17445
+ required: false
17446
+ },
17596
17447
  {
17597
17448
  name: 'objectApiNames',
17598
17449
  kind: 'Scalar',
@@ -20505,6 +20356,7 @@ function createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConfli
20505
20356
  const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) => {
20506
20357
  const childNormalize = createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap);
20507
20358
  return (input, path, luvio, store, timestamp) => {
20359
+ input.eTag = ''; //[W-13724550] Record Reps ALWAYS have '' etag, to be consistent with GraphQL, as it is not queryable via GraphQL.
20508
20360
  const key = keyBuilderFromType$z(luvio, input);
20509
20361
  let existingRecord = store.readEntry(key);
20510
20362
  const recordPath = {
@@ -21206,6 +21058,7 @@ function resolveConflict(luvio, map) {
21206
21058
 
21207
21059
  const createIngestRecordWithFields = (fields, optionalFields) => {
21208
21060
  return (input, path, luvio, store, timestamp) => {
21061
+ input.eTag = ''; //[W-13724550] Record Reps ALWAYS have '' etag, to be consistent with GraphQL, as it is not queryable via GraphQL.
21209
21062
  const conflictMap = {
21210
21063
  conflicts: {},
21211
21064
  serverRequestCount: 0,
@@ -21358,7 +21211,7 @@ function normalize$H(input, existing, path, luvio, store, timestamp) {
21358
21211
  return input;
21359
21212
  }
21360
21213
  const select$1H = function ListRecordCollectionRepresentationSelect(paginationParams) {
21361
- const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$1S();
21214
+ const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$1U();
21362
21215
  return {
21363
21216
  kind: 'Fragment',
21364
21217
  reader: true,
@@ -21472,7 +21325,7 @@ const dynamicSelect$7 = function dynamicListRecordCollectionRepresentationSelect
21472
21325
  kind: 'Link',
21473
21326
  fragment: select$1I()
21474
21327
  } : params.records;
21475
- const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$1S();
21328
+ const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$1U();
21476
21329
  return {
21477
21330
  kind: 'Fragment',
21478
21331
  reader: true,
@@ -27374,7 +27227,7 @@ const getRecordEditActionsAdapterFactory = (luvio) => function UiApi__getRecordE
27374
27227
  buildCachedSnapshotCachePolicy$B, buildNetworkSnapshotCachePolicy$B);
27375
27228
  };
27376
27229
 
27377
- function validate$17(obj, path = 'ActionRelatedListSingleBatchInputRepresentation') {
27230
+ function validate$19(obj, path = 'ActionRelatedListSingleBatchInputRepresentation') {
27378
27231
  const v_error = (() => {
27379
27232
  if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
27380
27233
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -27785,7 +27638,7 @@ function typeCheckConfig$N(untrustedConfig) {
27785
27638
  const untrustedConfig_relatedListsActionParameters_array = [];
27786
27639
  for (let i = 0, arrayLength = untrustedConfig_relatedListsActionParameters.length; i < arrayLength; i++) {
27787
27640
  const untrustedConfig_relatedListsActionParameters_item = untrustedConfig_relatedListsActionParameters[i];
27788
- const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$17(untrustedConfig_relatedListsActionParameters_item);
27641
+ const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$19(untrustedConfig_relatedListsActionParameters_item);
27789
27642
  if (referenceActionRelatedListSingleBatchInputRepresentationValidationError === null) {
27790
27643
  untrustedConfig_relatedListsActionParameters_array.push(untrustedConfig_relatedListsActionParameters_item);
27791
27644
  }
@@ -30024,6 +29877,103 @@ const getListInfosByNameAdapterFactory = (luvio) => function UiApi__getListInfos
30024
29877
  buildCachedSnapshotCachePolicy$s, buildNetworkSnapshotCachePolicy$s);
30025
29878
  };
30026
29879
 
29880
+ function validate$$(obj, path = 'ListFilterByInfoInputRepresentation') {
29881
+ const v_error = (() => {
29882
+ if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
29883
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
29884
+ }
29885
+ const obj_fieldApiName = obj.fieldApiName;
29886
+ const path_fieldApiName = path + '.fieldApiName';
29887
+ if (typeof obj_fieldApiName !== 'string') {
29888
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
29889
+ }
29890
+ const obj_operandLabels = obj.operandLabels;
29891
+ const path_operandLabels = path + '.operandLabels';
29892
+ if (!ArrayIsArray$2(obj_operandLabels)) {
29893
+ return new TypeError('Expected "array" but received "' + typeof obj_operandLabels + '" (at "' + path_operandLabels + '")');
29894
+ }
29895
+ for (let i = 0; i < obj_operandLabels.length; i++) {
29896
+ const obj_operandLabels_item = obj_operandLabels[i];
29897
+ const path_operandLabels_item = path_operandLabels + '[' + i + ']';
29898
+ if (typeof obj_operandLabels_item !== 'string') {
29899
+ return new TypeError('Expected "string" but received "' + typeof obj_operandLabels_item + '" (at "' + path_operandLabels_item + '")');
29900
+ }
29901
+ }
29902
+ const obj_operator = obj.operator;
29903
+ const path_operator = path + '.operator';
29904
+ if (typeof obj_operator !== 'string') {
29905
+ return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
29906
+ }
29907
+ })();
29908
+ return v_error === undefined ? null : v_error;
29909
+ }
29910
+
29911
+ function validate$_(obj, path = 'ListScopeInputRepresentation') {
29912
+ const v_error = (() => {
29913
+ if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
29914
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
29915
+ }
29916
+ const obj_apiName = obj.apiName;
29917
+ const path_apiName = path + '.apiName';
29918
+ if (typeof obj_apiName !== 'string') {
29919
+ return new TypeError('Expected "string" but received "' + typeof obj_apiName + '" (at "' + path_apiName + '")');
29920
+ }
29921
+ const obj_entityId = obj.entityId;
29922
+ const path_entityId = path + '.entityId';
29923
+ let obj_entityId_union0 = null;
29924
+ const obj_entityId_union0_error = (() => {
29925
+ if (typeof obj_entityId !== 'string') {
29926
+ return new TypeError('Expected "string" but received "' + typeof obj_entityId + '" (at "' + path_entityId + '")');
29927
+ }
29928
+ })();
29929
+ if (obj_entityId_union0_error != null) {
29930
+ obj_entityId_union0 = obj_entityId_union0_error.message;
29931
+ }
29932
+ let obj_entityId_union1 = null;
29933
+ const obj_entityId_union1_error = (() => {
29934
+ if (obj_entityId !== null) {
29935
+ return new TypeError('Expected "null" but received "' + typeof obj_entityId + '" (at "' + path_entityId + '")');
29936
+ }
29937
+ })();
29938
+ if (obj_entityId_union1_error != null) {
29939
+ obj_entityId_union1 = obj_entityId_union1_error.message;
29940
+ }
29941
+ if (obj_entityId_union0 && obj_entityId_union1) {
29942
+ let message = 'Object doesn\'t match union (at "' + path_entityId + '")';
29943
+ message += '\n' + obj_entityId_union0.split('\n').map((line) => '\t' + line).join('\n');
29944
+ message += '\n' + obj_entityId_union1.split('\n').map((line) => '\t' + line).join('\n');
29945
+ return new TypeError(message);
29946
+ }
29947
+ const obj_relatedEntityId = obj.relatedEntityId;
29948
+ const path_relatedEntityId = path + '.relatedEntityId';
29949
+ let obj_relatedEntityId_union0 = null;
29950
+ const obj_relatedEntityId_union0_error = (() => {
29951
+ if (typeof obj_relatedEntityId !== 'string') {
29952
+ return new TypeError('Expected "string" but received "' + typeof obj_relatedEntityId + '" (at "' + path_relatedEntityId + '")');
29953
+ }
29954
+ })();
29955
+ if (obj_relatedEntityId_union0_error != null) {
29956
+ obj_relatedEntityId_union0 = obj_relatedEntityId_union0_error.message;
29957
+ }
29958
+ let obj_relatedEntityId_union1 = null;
29959
+ const obj_relatedEntityId_union1_error = (() => {
29960
+ if (obj_relatedEntityId !== null) {
29961
+ return new TypeError('Expected "null" but received "' + typeof obj_relatedEntityId + '" (at "' + path_relatedEntityId + '")');
29962
+ }
29963
+ })();
29964
+ if (obj_relatedEntityId_union1_error != null) {
29965
+ obj_relatedEntityId_union1 = obj_relatedEntityId_union1_error.message;
29966
+ }
29967
+ if (obj_relatedEntityId_union0 && obj_relatedEntityId_union1) {
29968
+ let message = 'Object doesn\'t match union (at "' + path_relatedEntityId + '")';
29969
+ message += '\n' + obj_relatedEntityId_union0.split('\n').map((line) => '\t' + line).join('\n');
29970
+ message += '\n' + obj_relatedEntityId_union1.split('\n').map((line) => '\t' + line).join('\n');
29971
+ return new TypeError(message);
29972
+ }
29973
+ })();
29974
+ return v_error === undefined ? null : v_error;
29975
+ }
29976
+
30027
29977
  function select$14$1(luvio, params) {
30028
29978
  return select$1M();
30029
29979
  }
@@ -30059,10 +30009,11 @@ function createResourceRequest$B(config) {
30059
30009
  const adapterName$A = 'createListInfo';
30060
30010
  const createListInfo_ConfigPropertyMetadata = [
30061
30011
  generateParamConfigMetadata$2('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1$1),
30062
- generateParamConfigMetadata$2('displayColumns', false, 2 /* Body */, 4 /* Unsupported */, true),
30063
- generateParamConfigMetadata$2('filterLogicString', false, 2 /* Body */, 4 /* Unsupported */),
30012
+ generateParamConfigMetadata$2('displayColumns', false, 2 /* Body */, 0 /* String */, true),
30013
+ generateParamConfigMetadata$2('filterLogicString', false, 2 /* Body */, 0 /* String */),
30064
30014
  generateParamConfigMetadata$2('filteredByInfo', false, 2 /* Body */, 4 /* Unsupported */, true),
30065
30015
  generateParamConfigMetadata$2('label', false, 2 /* Body */, 0 /* String */),
30016
+ generateParamConfigMetadata$2('listShares', false, 2 /* Body */, 0 /* String */, true),
30066
30017
  generateParamConfigMetadata$2('listViewApiName', false, 2 /* Body */, 0 /* String */),
30067
30018
  generateParamConfigMetadata$2('scope', false, 2 /* Body */, 4 /* Unsupported */),
30068
30019
  generateParamConfigMetadata$2('visibility', false, 2 /* Body */, 0 /* String */),
@@ -30072,46 +30023,21 @@ const createResourceParams$A = /*#__PURE__*/ createResourceParams$Z(createListIn
30072
30023
  function typeCheckConfig$E(untrustedConfig) {
30073
30024
  const config = {};
30074
30025
  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
30026
  const untrustedConfig_filteredByInfo = untrustedConfig.filteredByInfo;
30098
30027
  if (ArrayIsArray$1(untrustedConfig_filteredByInfo)) {
30099
30028
  const untrustedConfig_filteredByInfo_array = [];
30100
30029
  for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
30101
30030
  const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
30102
- const referenceListFilterByInfoRepresentationValidationError = validate$1J(untrustedConfig_filteredByInfo_item);
30103
- if (referenceListFilterByInfoRepresentationValidationError === null) {
30031
+ const referenceListFilterByInfoInputRepresentationValidationError = validate$$(untrustedConfig_filteredByInfo_item);
30032
+ if (referenceListFilterByInfoInputRepresentationValidationError === null) {
30104
30033
  untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
30105
30034
  }
30106
30035
  }
30107
30036
  config.filteredByInfo = untrustedConfig_filteredByInfo_array;
30108
30037
  }
30109
30038
  const untrustedConfig_scope = untrustedConfig.scope;
30110
- const referenceListScopeRepresentationValidationError = validate$1E(untrustedConfig_scope);
30111
- if (referenceListScopeRepresentationValidationError === null) {
30112
- config.scope = untrustedConfig_scope;
30113
- }
30114
- if (untrustedConfig_scope === null) {
30039
+ const referenceListScopeInputRepresentationValidationError = validate$_(untrustedConfig_scope);
30040
+ if (referenceListScopeInputRepresentationValidationError === null) {
30115
30041
  config.scope = untrustedConfig_scope;
30116
30042
  }
30117
30043
  return config;
@@ -30276,10 +30202,11 @@ const adapterName$y = 'updateListInfoByName';
30276
30202
  const updateListInfoByName_ConfigPropertyMetadata = [
30277
30203
  generateParamConfigMetadata$2('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
30278
30204
  generateParamConfigMetadata$2('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1$1),
30279
- generateParamConfigMetadata$2('displayColumns', false, 2 /* Body */, 4 /* Unsupported */, true),
30280
- generateParamConfigMetadata$2('filterLogicString', false, 2 /* Body */, 4 /* Unsupported */),
30205
+ generateParamConfigMetadata$2('displayColumns', false, 2 /* Body */, 0 /* String */, true),
30206
+ generateParamConfigMetadata$2('filterLogicString', false, 2 /* Body */, 0 /* String */),
30281
30207
  generateParamConfigMetadata$2('filteredByInfo', false, 2 /* Body */, 4 /* Unsupported */, true),
30282
30208
  generateParamConfigMetadata$2('label', false, 2 /* Body */, 0 /* String */),
30209
+ generateParamConfigMetadata$2('listShares', false, 2 /* Body */, 0 /* String */, true),
30283
30210
  generateParamConfigMetadata$2('scope', false, 2 /* Body */, 4 /* Unsupported */),
30284
30211
  generateParamConfigMetadata$2('visibility', false, 2 /* Body */, 0 /* String */),
30285
30212
  ];
@@ -30288,46 +30215,21 @@ const createResourceParams$y = /*#__PURE__*/ createResourceParams$Z(updateListIn
30288
30215
  function typeCheckConfig$C(untrustedConfig) {
30289
30216
  const config = {};
30290
30217
  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
30218
  const untrustedConfig_filteredByInfo = untrustedConfig.filteredByInfo;
30314
30219
  if (ArrayIsArray$1(untrustedConfig_filteredByInfo)) {
30315
30220
  const untrustedConfig_filteredByInfo_array = [];
30316
30221
  for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
30317
30222
  const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
30318
- const referenceListFilterByInfoRepresentationValidationError = validate$1J(untrustedConfig_filteredByInfo_item);
30319
- if (referenceListFilterByInfoRepresentationValidationError === null) {
30223
+ const referenceListFilterByInfoInputRepresentationValidationError = validate$$(untrustedConfig_filteredByInfo_item);
30224
+ if (referenceListFilterByInfoInputRepresentationValidationError === null) {
30320
30225
  untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
30321
30226
  }
30322
30227
  }
30323
30228
  config.filteredByInfo = untrustedConfig_filteredByInfo_array;
30324
30229
  }
30325
30230
  const untrustedConfig_scope = untrustedConfig.scope;
30326
- const referenceListScopeRepresentationValidationError = validate$1E(untrustedConfig_scope);
30327
- if (referenceListScopeRepresentationValidationError === null) {
30328
- config.scope = untrustedConfig_scope;
30329
- }
30330
- if (untrustedConfig_scope === null) {
30231
+ const referenceListScopeInputRepresentationValidationError = validate$_(untrustedConfig_scope);
30232
+ if (referenceListScopeInputRepresentationValidationError === null) {
30331
30233
  config.scope = untrustedConfig_scope;
30332
30234
  }
30333
30235
  return config;
@@ -40820,7 +40722,7 @@ const factory$2 = (luvio) => {
40820
40722
  };
40821
40723
  };
40822
40724
 
40823
- const VERSION$1n = "5f97eb4f2c3f805ef9d98ba7f0530b3e";
40725
+ const VERSION$1p = "5f97eb4f2c3f805ef9d98ba7f0530b3e";
40824
40726
  const RepresentationType$S = 'ContentDocumentCompositeRepresentation';
40825
40727
  function keyBuilder$1W(luvio, config) {
40826
40728
  return keyPrefix$1 + '::' + RepresentationType$S + ':' + config.contentDocumentId;
@@ -40900,7 +40802,7 @@ function equals$12(existing, incoming) {
40900
40802
  const ingest$15 = function ContentDocumentCompositeRepresentationIngest(input, path, luvio, store, timestamp) {
40901
40803
  const key = keyBuilderFromType$B(luvio, input);
40902
40804
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
40903
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "UiApi", VERSION$1n, RepresentationType$S, equals$12);
40805
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "UiApi", VERSION$1p, RepresentationType$S, equals$12);
40904
40806
  return createLink$3(key);
40905
40807
  };
40906
40808
  function getTypeCacheKeys$18(rootKeySet, luvio, input, fullPathFactory) {
@@ -40967,11 +40869,11 @@ function createResourceRequest$1$1(config) {
40967
40869
  priority: 'normal',
40968
40870
  };
40969
40871
  }
40970
- const select$1V = function ContentDocumentCompositeRepresentationSelect(body) {
40872
+ const select$21 = function ContentDocumentCompositeRepresentationSelect(body) {
40971
40873
  return {
40972
40874
  kind: 'Fragment',
40973
40875
  private: [],
40974
- version: VERSION$1n,
40876
+ version: VERSION$1p,
40975
40877
  selections: [
40976
40878
  {
40977
40879
  name: 'contentDocument',
@@ -41010,7 +40912,7 @@ const select$1V = function ContentDocumentCompositeRepresentationSelect(body) {
41010
40912
  function ingestSuccess$1$1(luvio, resourceParams, response) {
41011
40913
  const { body } = response;
41012
40914
  const key = keyBuilderFromType$B(luvio, body);
41013
- const node = select$1V(body);
40915
+ const node = select$21(body);
41014
40916
  luvio.storeIngest(key, ingest$15, body);
41015
40917
  const snapshot = luvio.storeLookup({
41016
40918
  recordId: key,
@@ -41081,7 +40983,7 @@ function createResourceRequest$14(config) {
41081
40983
  function ingestSuccess$M(luvio, resourceParams, response) {
41082
40984
  const { body } = response;
41083
40985
  const key = keyBuilderFromType$B(luvio, body);
41084
- const node = select$1V(body);
40986
+ const node = select$21(body);
41085
40987
  luvio.storeIngest(key, ingest$15, body);
41086
40988
  const snapshot = luvio.storeLookup({
41087
40989
  recordId: key,
@@ -41741,7 +41643,7 @@ withDefaultLuvio((luvio) => {
41741
41643
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
41742
41644
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
41743
41645
  });
41744
- // version: 1.242.1-5a8ee3f4c
41646
+ // version: 1.244.0-4d142822f
41745
41647
 
41746
41648
  var caseSensitiveUserId = '005B0000000GR4OIAW';
41747
41649
 
@@ -47926,9 +47828,6 @@ class AbstractResourceRequestActionHandler {
47926
47828
  }
47927
47829
  async buildPendingAction(request, queue) {
47928
47830
  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
47831
  const tag = this.buildTagForTargetId(targetId);
47933
47832
  const handlerActions = queue.filter((x) => x.handler === this.handlerId);
47934
47833
  if (request.method === 'post' && actionsForTag(tag, handlerActions).length > 0) {
@@ -52939,7 +52838,7 @@ const RECORD_ENDPOINT_REGEX$1 = /^\/ui-api\/records\/?(([a-zA-Z0-9]+))?$/;
52939
52838
  function getRecordIdFromRecordRequest(request) {
52940
52839
  const { method, basePath } = request;
52941
52840
  if (basePath === undefined) {
52942
- return undefined;
52841
+ throw Error(`Could not determine record id from request without a basePath`);
52943
52842
  }
52944
52843
  let recordId = '';
52945
52844
  switch (method) {
@@ -52948,13 +52847,13 @@ function getRecordIdFromRecordRequest(request) {
52948
52847
  case 'delete': {
52949
52848
  const matches = basePath.match(RECORD_ENDPOINT_REGEX$1);
52950
52849
  if (!matches || matches.length !== 3) {
52951
- return undefined;
52850
+ throw Error(`Could not determine record id from request path ${basePath}`);
52952
52851
  }
52953
52852
  recordId = matches[2];
52954
52853
  break;
52955
52854
  }
52956
52855
  default: {
52957
- return undefined;
52856
+ throw Error(`Could not determine record id from request type `);
52958
52857
  }
52959
52858
  }
52960
52859
  return recordId;
@@ -53810,7 +53709,7 @@ class UiApiActionHandler extends AbstractResourceRequestActionHandler {
53810
53709
  if (request.method === 'post') {
53811
53710
  const apiName = request.body.apiName;
53812
53711
  if (apiName === undefined) {
53813
- return undefined;
53712
+ throw Error('Could not determine api name from request body');
53814
53713
  }
53815
53714
  return this.recordService.synthesizeId(apiName);
53816
53715
  }
@@ -54525,11 +54424,11 @@ class UiApiDraftRecordService {
54525
54424
  const objectInfo = await getAdapterData(this.objectInfoAdapter, {
54526
54425
  objectApiName: apiName,
54527
54426
  });
54528
- if (objectInfo === undefined) {
54529
- return undefined;
54427
+ if (objectInfo === undefined || objectInfo.keyPrefix === null) {
54428
+ throw Error(`Could not find or fetch object info for ${apiName}`);
54530
54429
  }
54531
54430
  if (objectInfo.keyPrefix === null) {
54532
- return undefined;
54431
+ throw Error(`Could not find key prefix for ${apiName}. Cannot synthesize id.`);
54533
54432
  }
54534
54433
  return this.generateId(objectInfo.keyPrefix);
54535
54434
  }
@@ -54605,7 +54504,7 @@ class QuickActionExecutionRepresentationHandler extends AbstractResourceRequestA
54605
54504
  getIdFromRequest(request) {
54606
54505
  const apiName = request.body.apiName;
54607
54506
  if (typeof apiName !== 'string') {
54608
- throw Error('expected api name not found');
54507
+ throw Error('expected api name not found in request body');
54609
54508
  }
54610
54509
  const id = this.draftRecordService.synthesizeId(apiName);
54611
54510
  return Promise.resolve(id);
@@ -55067,16 +54966,18 @@ class ContentDocumentCompositeRepresentationActionHandler extends AbstractResour
55067
54966
  // remember ContentDocument ID
55068
54967
  pendingAction.metadata[CONTENT_DOCUMENT_DRAFT_ID_KEY] = targetId;
55069
54968
  // generate and remember ContentVersion ID
55070
- const contentVersionId = await this.draftRecordService.synthesizeId(CONTENT_VERSION_API_NAME);
55071
- if (contentVersionId === undefined) {
54969
+ const contentVersionId = await this.draftRecordService
54970
+ .synthesizeId(CONTENT_VERSION_API_NAME)
54971
+ .catch(() => {
55072
54972
  return Promise.reject(new DraftSynthesisError('Cannot generate local ContentVersion synthetic id', 'CANNOT_GENERATE_ID'));
55073
- }
54973
+ });
55074
54974
  pendingAction.metadata[CONTENT_VERSION_DRAFT_ID_KEY] = contentVersionId;
55075
54975
  // generate and remember ContentDocumentLink ID
55076
- const contentDocumentLinkId = await this.draftRecordService.synthesizeId(CONTENT_DOCUMENT_LINK_API_NAME);
55077
- if (contentDocumentLinkId === undefined) {
54976
+ const contentDocumentLinkId = await this.draftRecordService
54977
+ .synthesizeId(CONTENT_DOCUMENT_LINK_API_NAME)
54978
+ .catch(() => {
55078
54979
  return Promise.reject(new DraftSynthesisError('Cannot generate local ContentDocumentLink synthetic id', 'CANNOT_GENERATE_ID'));
55079
- }
54980
+ });
55080
54981
  pendingAction.metadata[CONTENT_DOCUMENT_LINK_DRAFT_ID_KEY] = contentDocumentLinkId;
55081
54982
  // assert that object infos and references exist
55082
54983
  const metaDataResult = await this.draftRecordService.getRecordDraftMetadata(targetId, pendingAction);
@@ -55105,8 +55006,7 @@ class ContentDocumentCompositeRepresentationActionHandler extends AbstractResour
55105
55006
  return false;
55106
55007
  }
55107
55008
  async getIdFromRequest(_request) {
55108
- const id = this.draftRecordService.synthesizeId(CONTENT_DOCUMENT_API_NAME);
55109
- return id;
55009
+ return this.draftRecordService.synthesizeId(CONTENT_DOCUMENT_API_NAME);
55110
55010
  }
55111
55011
  getIdFromResponseBody(responseBody) {
55112
55012
  return responseBody.contentDocument.id;
@@ -57923,6 +57823,9 @@ class PrimingSession extends EventEmitter {
57923
57823
  this.ldsRecordRefresher = config.ldsRecordRefresher;
57924
57824
  this.networkWorkerPool = new AsyncWorkerPool(this.concurrency);
57925
57825
  this.useBatchGQL = ldsPrimingGraphqlBatch.isOpen({ fallback: false });
57826
+ if (this.useBatchGQL) {
57827
+ this.batchSize = this.batchSize / DEFAULT_GQL_QUERY_BATCH_SIZE;
57828
+ }
57926
57829
  this.conflictPool = new ConflictPool(config.store, this.objectInfoLoader);
57927
57830
  }
57928
57831
  // function that enqueues priming work
@@ -58782,7 +58685,7 @@ register$1({
58782
58685
  id: '@salesforce/lds-network-adapter',
58783
58686
  instrument: instrument$2,
58784
58687
  });
58785
- // version: 1.242.1-58f8f4bb1
58688
+ // version: 1.244.0-72e322fff
58786
58689
 
58787
58690
  const { create: create$3, keys: keys$3 } = Object;
58788
58691
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -77250,7 +77153,7 @@ register$1({
77250
77153
  configuration: { ...configurationForGraphQLAdapters$1 },
77251
77154
  instrument: instrument$1,
77252
77155
  });
77253
- // version: 1.242.1-5a8ee3f4c
77156
+ // version: 1.244.0-4d142822f
77254
77157
 
77255
77158
  // On core the unstable adapters are re-exported with different names,
77256
77159
  // we want to match them here.
@@ -79499,7 +79402,7 @@ withDefaultLuvio((luvio) => {
79499
79402
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
79500
79403
  graphQLImperative = ldsAdapter;
79501
79404
  });
79502
- // version: 1.242.1-5a8ee3f4c
79405
+ // version: 1.244.0-4d142822f
79503
79406
 
79504
79407
  var gqlApi = /*#__PURE__*/Object.freeze({
79505
79408
  __proto__: null,
@@ -80197,7 +80100,7 @@ const callbacks$1 = [];
80197
80100
  function register(r) {
80198
80101
  callbacks$1.forEach((callback) => callback(r));
80199
80102
  }
80200
- // version: 1.242.1-58f8f4bb1
80103
+ // version: 1.244.0-72e322fff
80201
80104
 
80202
80105
  /**
80203
80106
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -84843,4 +84746,4 @@ const { luvio } = getRuntime();
84843
84746
  setDefaultLuvio({ luvio });
84844
84747
 
84845
84748
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
84846
- // version: 1.242.1-58f8f4bb1
84749
+ // version: 1.244.0-72e322fff