@salesforce/lds-adapters-service-ecm 1.392.0 → 1.394.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.
package/sfdc/index.js CHANGED
@@ -1457,6 +1457,34 @@ function validate$G(obj, path = 'CatalogItemAttributeInputRepresentation') {
1457
1457
  return new TypeError(message);
1458
1458
  }
1459
1459
  }
1460
+ if (obj.contextDefinitionId !== undefined) {
1461
+ const obj_contextDefinitionId = obj.contextDefinitionId;
1462
+ const path_contextDefinitionId = path + '.contextDefinitionId';
1463
+ let obj_contextDefinitionId_union0 = null;
1464
+ const obj_contextDefinitionId_union0_error = (() => {
1465
+ if (typeof obj_contextDefinitionId !== 'string') {
1466
+ return new TypeError('Expected "string" but received "' + typeof obj_contextDefinitionId + '" (at "' + path_contextDefinitionId + '")');
1467
+ }
1468
+ })();
1469
+ if (obj_contextDefinitionId_union0_error != null) {
1470
+ obj_contextDefinitionId_union0 = obj_contextDefinitionId_union0_error.message;
1471
+ }
1472
+ let obj_contextDefinitionId_union1 = null;
1473
+ const obj_contextDefinitionId_union1_error = (() => {
1474
+ if (obj_contextDefinitionId !== null) {
1475
+ return new TypeError('Expected "null" but received "' + typeof obj_contextDefinitionId + '" (at "' + path_contextDefinitionId + '")');
1476
+ }
1477
+ })();
1478
+ if (obj_contextDefinitionId_union1_error != null) {
1479
+ obj_contextDefinitionId_union1 = obj_contextDefinitionId_union1_error.message;
1480
+ }
1481
+ if (obj_contextDefinitionId_union0 && obj_contextDefinitionId_union1) {
1482
+ let message = 'Object doesn\'t match union (at "' + path_contextDefinitionId + '")';
1483
+ message += '\n' + obj_contextDefinitionId_union0.split('\n').map((line) => '\t' + line).join('\n');
1484
+ message += '\n' + obj_contextDefinitionId_union1.split('\n').map((line) => '\t' + line).join('\n');
1485
+ return new TypeError(message);
1486
+ }
1487
+ }
1460
1488
  if (obj.dataType !== undefined) {
1461
1489
  const obj_dataType = obj.dataType;
1462
1490
  const path_dataType = path + '.dataType';
@@ -1817,6 +1845,62 @@ function validate$G(obj, path = 'CatalogItemAttributeInputRepresentation') {
1817
1845
  }
1818
1846
  }
1819
1847
  }
1848
+ if (obj.referenceField !== undefined) {
1849
+ const obj_referenceField = obj.referenceField;
1850
+ const path_referenceField = path + '.referenceField';
1851
+ let obj_referenceField_union0 = null;
1852
+ const obj_referenceField_union0_error = (() => {
1853
+ if (typeof obj_referenceField !== 'string') {
1854
+ return new TypeError('Expected "string" but received "' + typeof obj_referenceField + '" (at "' + path_referenceField + '")');
1855
+ }
1856
+ })();
1857
+ if (obj_referenceField_union0_error != null) {
1858
+ obj_referenceField_union0 = obj_referenceField_union0_error.message;
1859
+ }
1860
+ let obj_referenceField_union1 = null;
1861
+ const obj_referenceField_union1_error = (() => {
1862
+ if (obj_referenceField !== null) {
1863
+ return new TypeError('Expected "null" but received "' + typeof obj_referenceField + '" (at "' + path_referenceField + '")');
1864
+ }
1865
+ })();
1866
+ if (obj_referenceField_union1_error != null) {
1867
+ obj_referenceField_union1 = obj_referenceField_union1_error.message;
1868
+ }
1869
+ if (obj_referenceField_union0 && obj_referenceField_union1) {
1870
+ let message = 'Object doesn\'t match union (at "' + path_referenceField + '")';
1871
+ message += '\n' + obj_referenceField_union0.split('\n').map((line) => '\t' + line).join('\n');
1872
+ message += '\n' + obj_referenceField_union1.split('\n').map((line) => '\t' + line).join('\n');
1873
+ return new TypeError(message);
1874
+ }
1875
+ }
1876
+ if (obj.referenceObject !== undefined) {
1877
+ const obj_referenceObject = obj.referenceObject;
1878
+ const path_referenceObject = path + '.referenceObject';
1879
+ let obj_referenceObject_union0 = null;
1880
+ const obj_referenceObject_union0_error = (() => {
1881
+ if (typeof obj_referenceObject !== 'string') {
1882
+ return new TypeError('Expected "string" but received "' + typeof obj_referenceObject + '" (at "' + path_referenceObject + '")');
1883
+ }
1884
+ })();
1885
+ if (obj_referenceObject_union0_error != null) {
1886
+ obj_referenceObject_union0 = obj_referenceObject_union0_error.message;
1887
+ }
1888
+ let obj_referenceObject_union1 = null;
1889
+ const obj_referenceObject_union1_error = (() => {
1890
+ if (obj_referenceObject !== null) {
1891
+ return new TypeError('Expected "null" but received "' + typeof obj_referenceObject + '" (at "' + path_referenceObject + '")');
1892
+ }
1893
+ })();
1894
+ if (obj_referenceObject_union1_error != null) {
1895
+ obj_referenceObject_union1 = obj_referenceObject_union1_error.message;
1896
+ }
1897
+ if (obj_referenceObject_union0 && obj_referenceObject_union1) {
1898
+ let message = 'Object doesn\'t match union (at "' + path_referenceObject + '")';
1899
+ message += '\n' + obj_referenceObject_union0.split('\n').map((line) => '\t' + line).join('\n');
1900
+ message += '\n' + obj_referenceObject_union1.split('\n').map((line) => '\t' + line).join('\n');
1901
+ return new TypeError(message);
1902
+ }
1903
+ }
1820
1904
  if (obj.sequence !== undefined) {
1821
1905
  const obj_sequence = obj.sequence;
1822
1906
  const path_sequence = path + '.sequence';
@@ -4652,7 +4736,7 @@ function equals$h(existing, incoming) {
4652
4736
  return true;
4653
4737
  }
4654
4738
 
4655
- const VERSION$g = "564fd7f64d997ab6ecc936f5787a27f9";
4739
+ const VERSION$g = "56047c3264f6e0d4375d956b121d1947";
4656
4740
  function validate$o(obj, path = 'CatalogItemAttributeOutputRepresentation') {
4657
4741
  const v_error = (() => {
4658
4742
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4686,6 +4770,34 @@ function validate$o(obj, path = 'CatalogItemAttributeOutputRepresentation') {
4686
4770
  return new TypeError(message);
4687
4771
  }
4688
4772
  }
4773
+ if (obj.baseObject !== undefined) {
4774
+ const obj_baseObject = obj.baseObject;
4775
+ const path_baseObject = path + '.baseObject';
4776
+ let obj_baseObject_union0 = null;
4777
+ const obj_baseObject_union0_error = (() => {
4778
+ if (typeof obj_baseObject !== 'string') {
4779
+ return new TypeError('Expected "string" but received "' + typeof obj_baseObject + '" (at "' + path_baseObject + '")');
4780
+ }
4781
+ })();
4782
+ if (obj_baseObject_union0_error != null) {
4783
+ obj_baseObject_union0 = obj_baseObject_union0_error.message;
4784
+ }
4785
+ let obj_baseObject_union1 = null;
4786
+ const obj_baseObject_union1_error = (() => {
4787
+ if (obj_baseObject !== null) {
4788
+ return new TypeError('Expected "null" but received "' + typeof obj_baseObject + '" (at "' + path_baseObject + '")');
4789
+ }
4790
+ })();
4791
+ if (obj_baseObject_union1_error != null) {
4792
+ obj_baseObject_union1 = obj_baseObject_union1_error.message;
4793
+ }
4794
+ if (obj_baseObject_union0 && obj_baseObject_union1) {
4795
+ let message = 'Object doesn\'t match union (at "' + path_baseObject + '")';
4796
+ message += '\n' + obj_baseObject_union0.split('\n').map((line) => '\t' + line).join('\n');
4797
+ message += '\n' + obj_baseObject_union1.split('\n').map((line) => '\t' + line).join('\n');
4798
+ return new TypeError(message);
4799
+ }
4800
+ }
4689
4801
  if (obj.dataType !== undefined) {
4690
4802
  const obj_dataType = obj.dataType;
4691
4803
  const path_dataType = path + '.dataType';
@@ -4770,6 +4882,34 @@ function validate$o(obj, path = 'CatalogItemAttributeOutputRepresentation') {
4770
4882
  return new TypeError(message);
4771
4883
  }
4772
4884
  }
4885
+ if (obj.fieldType !== undefined) {
4886
+ const obj_fieldType = obj.fieldType;
4887
+ const path_fieldType = path + '.fieldType';
4888
+ let obj_fieldType_union0 = null;
4889
+ const obj_fieldType_union0_error = (() => {
4890
+ if (typeof obj_fieldType !== 'string') {
4891
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldType + '" (at "' + path_fieldType + '")');
4892
+ }
4893
+ })();
4894
+ if (obj_fieldType_union0_error != null) {
4895
+ obj_fieldType_union0 = obj_fieldType_union0_error.message;
4896
+ }
4897
+ let obj_fieldType_union1 = null;
4898
+ const obj_fieldType_union1_error = (() => {
4899
+ if (obj_fieldType !== null) {
4900
+ return new TypeError('Expected "null" but received "' + typeof obj_fieldType + '" (at "' + path_fieldType + '")');
4901
+ }
4902
+ })();
4903
+ if (obj_fieldType_union1_error != null) {
4904
+ obj_fieldType_union1 = obj_fieldType_union1_error.message;
4905
+ }
4906
+ if (obj_fieldType_union0 && obj_fieldType_union1) {
4907
+ let message = 'Object doesn\'t match union (at "' + path_fieldType + '")';
4908
+ message += '\n' + obj_fieldType_union0.split('\n').map((line) => '\t' + line).join('\n');
4909
+ message += '\n' + obj_fieldType_union1.split('\n').map((line) => '\t' + line).join('\n');
4910
+ return new TypeError(message);
4911
+ }
4912
+ }
4773
4913
  if (obj.id !== undefined) {
4774
4914
  const obj_id = obj.id;
4775
4915
  const path_id = path + '.id';
@@ -5074,6 +5214,62 @@ function validate$o(obj, path = 'CatalogItemAttributeOutputRepresentation') {
5074
5214
  }
5075
5215
  }
5076
5216
  }
5217
+ if (obj.referenceField !== undefined) {
5218
+ const obj_referenceField = obj.referenceField;
5219
+ const path_referenceField = path + '.referenceField';
5220
+ let obj_referenceField_union0 = null;
5221
+ const obj_referenceField_union0_error = (() => {
5222
+ if (typeof obj_referenceField !== 'string') {
5223
+ return new TypeError('Expected "string" but received "' + typeof obj_referenceField + '" (at "' + path_referenceField + '")');
5224
+ }
5225
+ })();
5226
+ if (obj_referenceField_union0_error != null) {
5227
+ obj_referenceField_union0 = obj_referenceField_union0_error.message;
5228
+ }
5229
+ let obj_referenceField_union1 = null;
5230
+ const obj_referenceField_union1_error = (() => {
5231
+ if (obj_referenceField !== null) {
5232
+ return new TypeError('Expected "null" but received "' + typeof obj_referenceField + '" (at "' + path_referenceField + '")');
5233
+ }
5234
+ })();
5235
+ if (obj_referenceField_union1_error != null) {
5236
+ obj_referenceField_union1 = obj_referenceField_union1_error.message;
5237
+ }
5238
+ if (obj_referenceField_union0 && obj_referenceField_union1) {
5239
+ let message = 'Object doesn\'t match union (at "' + path_referenceField + '")';
5240
+ message += '\n' + obj_referenceField_union0.split('\n').map((line) => '\t' + line).join('\n');
5241
+ message += '\n' + obj_referenceField_union1.split('\n').map((line) => '\t' + line).join('\n');
5242
+ return new TypeError(message);
5243
+ }
5244
+ }
5245
+ if (obj.referenceObject !== undefined) {
5246
+ const obj_referenceObject = obj.referenceObject;
5247
+ const path_referenceObject = path + '.referenceObject';
5248
+ let obj_referenceObject_union0 = null;
5249
+ const obj_referenceObject_union0_error = (() => {
5250
+ if (typeof obj_referenceObject !== 'string') {
5251
+ return new TypeError('Expected "string" but received "' + typeof obj_referenceObject + '" (at "' + path_referenceObject + '")');
5252
+ }
5253
+ })();
5254
+ if (obj_referenceObject_union0_error != null) {
5255
+ obj_referenceObject_union0 = obj_referenceObject_union0_error.message;
5256
+ }
5257
+ let obj_referenceObject_union1 = null;
5258
+ const obj_referenceObject_union1_error = (() => {
5259
+ if (obj_referenceObject !== null) {
5260
+ return new TypeError('Expected "null" but received "' + typeof obj_referenceObject + '" (at "' + path_referenceObject + '")');
5261
+ }
5262
+ })();
5263
+ if (obj_referenceObject_union1_error != null) {
5264
+ obj_referenceObject_union1 = obj_referenceObject_union1_error.message;
5265
+ }
5266
+ if (obj_referenceObject_union0 && obj_referenceObject_union1) {
5267
+ let message = 'Object doesn\'t match union (at "' + path_referenceObject + '")';
5268
+ message += '\n' + obj_referenceObject_union0.split('\n').map((line) => '\t' + line).join('\n');
5269
+ message += '\n' + obj_referenceObject_union1.split('\n').map((line) => '\t' + line).join('\n');
5270
+ return new TypeError(message);
5271
+ }
5272
+ }
5077
5273
  if (obj.sequence !== undefined) {
5078
5274
  const obj_sequence = obj.sequence;
5079
5275
  const path_sequence = path + '.sequence';
@@ -5117,6 +5313,11 @@ const select$u = function CatalogItemAttributeOutputRepresentationSelect() {
5117
5313
  kind: 'Scalar',
5118
5314
  required: false
5119
5315
  },
5316
+ {
5317
+ name: 'baseObject',
5318
+ kind: 'Scalar',
5319
+ required: false
5320
+ },
5120
5321
  {
5121
5322
  name: 'dataType',
5122
5323
  kind: 'Scalar',
@@ -5132,6 +5333,11 @@ const select$u = function CatalogItemAttributeOutputRepresentationSelect() {
5132
5333
  kind: 'Scalar',
5133
5334
  required: false
5134
5335
  },
5336
+ {
5337
+ name: 'fieldType',
5338
+ kind: 'Scalar',
5339
+ required: false
5340
+ },
5135
5341
  {
5136
5342
  name: 'id',
5137
5343
  kind: 'Scalar',
@@ -5195,6 +5401,16 @@ const select$u = function CatalogItemAttributeOutputRepresentationSelect() {
5195
5401
  selections: PicklistAttributeTypeOutputRepresentation__selections,
5196
5402
  required: false
5197
5403
  },
5404
+ {
5405
+ name: 'referenceField',
5406
+ kind: 'Scalar',
5407
+ required: false
5408
+ },
5409
+ {
5410
+ name: 'referenceObject',
5411
+ kind: 'Scalar',
5412
+ required: false
5413
+ },
5198
5414
  {
5199
5415
  name: 'sequence',
5200
5416
  kind: 'Scalar',
@@ -5243,6 +5459,19 @@ function equals$g(existing, incoming) {
5243
5459
  return false;
5244
5460
  }
5245
5461
  }
5462
+ const existing_baseObject = existing.baseObject;
5463
+ const incoming_baseObject = incoming.baseObject;
5464
+ // if at least one of these optionals is defined
5465
+ if (existing_baseObject !== undefined || incoming_baseObject !== undefined) {
5466
+ // if one of these is not defined we know the other is defined and therefore
5467
+ // not equal
5468
+ if (existing_baseObject === undefined || incoming_baseObject === undefined) {
5469
+ return false;
5470
+ }
5471
+ if (!(existing_baseObject === incoming_baseObject)) {
5472
+ return false;
5473
+ }
5474
+ }
5246
5475
  const existing_dataType = existing.dataType;
5247
5476
  const incoming_dataType = incoming.dataType;
5248
5477
  // if at least one of these optionals is defined
@@ -5282,6 +5511,19 @@ function equals$g(existing, incoming) {
5282
5511
  return false;
5283
5512
  }
5284
5513
  }
5514
+ const existing_fieldType = existing.fieldType;
5515
+ const incoming_fieldType = incoming.fieldType;
5516
+ // if at least one of these optionals is defined
5517
+ if (existing_fieldType !== undefined || incoming_fieldType !== undefined) {
5518
+ // if one of these is not defined we know the other is defined and therefore
5519
+ // not equal
5520
+ if (existing_fieldType === undefined || incoming_fieldType === undefined) {
5521
+ return false;
5522
+ }
5523
+ if (!(existing_fieldType === incoming_fieldType)) {
5524
+ return false;
5525
+ }
5526
+ }
5285
5527
  const existing_id = existing.id;
5286
5528
  const incoming_id = incoming.id;
5287
5529
  // if at least one of these optionals is defined
@@ -5420,6 +5662,32 @@ function equals$g(existing, incoming) {
5420
5662
  return false;
5421
5663
  }
5422
5664
  }
5665
+ const existing_referenceField = existing.referenceField;
5666
+ const incoming_referenceField = incoming.referenceField;
5667
+ // if at least one of these optionals is defined
5668
+ if (existing_referenceField !== undefined || incoming_referenceField !== undefined) {
5669
+ // if one of these is not defined we know the other is defined and therefore
5670
+ // not equal
5671
+ if (existing_referenceField === undefined || incoming_referenceField === undefined) {
5672
+ return false;
5673
+ }
5674
+ if (!(existing_referenceField === incoming_referenceField)) {
5675
+ return false;
5676
+ }
5677
+ }
5678
+ const existing_referenceObject = existing.referenceObject;
5679
+ const incoming_referenceObject = incoming.referenceObject;
5680
+ // if at least one of these optionals is defined
5681
+ if (existing_referenceObject !== undefined || incoming_referenceObject !== undefined) {
5682
+ // if one of these is not defined we know the other is defined and therefore
5683
+ // not equal
5684
+ if (existing_referenceObject === undefined || incoming_referenceObject === undefined) {
5685
+ return false;
5686
+ }
5687
+ if (!(existing_referenceObject === incoming_referenceObject)) {
5688
+ return false;
5689
+ }
5690
+ }
5423
5691
  const existing_sequence = existing.sequence;
5424
5692
  const incoming_sequence = incoming.sequence;
5425
5693
  // if at least one of these optionals is defined
@@ -8916,12 +9184,19 @@ const getCatalogItemAdapterFactory = (luvio) => function ecm__getCatalogItem(unt
8916
9184
  buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
8917
9185
  };
8918
9186
 
8919
- const VERSION$6 = "8da8a9539ab11c385bafdc5028d51ad1";
8920
- function validate$9(obj, path = 'DecisionTableParameterOutputRepresentation') {
9187
+ const VERSION$6 = "0bc134ba5fc7c9ad95ed90ab7be5bd2c";
9188
+ function validate$9(obj, path = 'EligibilityRuleParameterRepresentation') {
8921
9189
  const v_error = (() => {
8922
9190
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
8923
9191
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
8924
9192
  }
9193
+ if (obj.columnDataType !== undefined) {
9194
+ const obj_columnDataType = obj.columnDataType;
9195
+ const path_columnDataType = path + '.columnDataType';
9196
+ if (typeof obj_columnDataType !== 'string') {
9197
+ return new TypeError('Expected "string" but received "' + typeof obj_columnDataType + '" (at "' + path_columnDataType + '")');
9198
+ }
9199
+ }
8925
9200
  if (obj.columnMapping !== undefined) {
8926
9201
  const obj_columnMapping = obj.columnMapping;
8927
9202
  const path_columnMapping = path + '.columnMapping';
@@ -9006,6 +9281,13 @@ function validate$9(obj, path = 'DecisionTableParameterOutputRepresentation') {
9006
9281
  return new TypeError('Expected "string" but received "' + typeof obj_sortType + '" (at "' + path_sortType + '")');
9007
9282
  }
9008
9283
  }
9284
+ if (obj.sourceObjectLookUp !== undefined) {
9285
+ const obj_sourceObjectLookUp = obj.sourceObjectLookUp;
9286
+ const path_sourceObjectLookUp = path + '.sourceObjectLookUp';
9287
+ if (typeof obj_sourceObjectLookUp !== 'string') {
9288
+ return new TypeError('Expected "string" but received "' + typeof obj_sourceObjectLookUp + '" (at "' + path_sourceObjectLookUp + '")');
9289
+ }
9290
+ }
9009
9291
  if (obj.usage !== undefined) {
9010
9292
  const obj_usage = obj.usage;
9011
9293
  const path_usage = path + '.usage';
@@ -9016,12 +9298,17 @@ function validate$9(obj, path = 'DecisionTableParameterOutputRepresentation') {
9016
9298
  })();
9017
9299
  return v_error === undefined ? null : v_error;
9018
9300
  }
9019
- const select$b = function DecisionTableParameterOutputRepresentationSelect() {
9301
+ const select$b = function EligibilityRuleParameterRepresentationSelect() {
9020
9302
  return {
9021
9303
  kind: 'Fragment',
9022
9304
  version: VERSION$6,
9023
9305
  private: [],
9024
9306
  selections: [
9307
+ {
9308
+ name: 'columnDataType',
9309
+ kind: 'Scalar',
9310
+ required: false
9311
+ },
9025
9312
  {
9026
9313
  name: 'columnMapping',
9027
9314
  kind: 'Scalar',
@@ -9082,6 +9369,11 @@ const select$b = function DecisionTableParameterOutputRepresentationSelect() {
9082
9369
  kind: 'Scalar',
9083
9370
  required: false
9084
9371
  },
9372
+ {
9373
+ name: 'sourceObjectLookUp',
9374
+ kind: 'Scalar',
9375
+ required: false
9376
+ },
9085
9377
  {
9086
9378
  name: 'usage',
9087
9379
  kind: 'Scalar',
@@ -9169,6 +9461,19 @@ function equals$6(existing, incoming) {
9169
9461
  return false;
9170
9462
  }
9171
9463
  }
9464
+ const existing_columnDataType = existing.columnDataType;
9465
+ const incoming_columnDataType = incoming.columnDataType;
9466
+ // if at least one of these optionals is defined
9467
+ if (existing_columnDataType !== undefined || incoming_columnDataType !== undefined) {
9468
+ // if one of these is not defined we know the other is defined and therefore
9469
+ // not equal
9470
+ if (existing_columnDataType === undefined || incoming_columnDataType === undefined) {
9471
+ return false;
9472
+ }
9473
+ if (!(existing_columnDataType === incoming_columnDataType)) {
9474
+ return false;
9475
+ }
9476
+ }
9172
9477
  const existing_columnMapping = existing.columnMapping;
9173
9478
  const incoming_columnMapping = incoming.columnMapping;
9174
9479
  // if at least one of these optionals is defined
@@ -9247,6 +9552,19 @@ function equals$6(existing, incoming) {
9247
9552
  return false;
9248
9553
  }
9249
9554
  }
9555
+ const existing_sourceObjectLookUp = existing.sourceObjectLookUp;
9556
+ const incoming_sourceObjectLookUp = incoming.sourceObjectLookUp;
9557
+ // if at least one of these optionals is defined
9558
+ if (existing_sourceObjectLookUp !== undefined || incoming_sourceObjectLookUp !== undefined) {
9559
+ // if one of these is not defined we know the other is defined and therefore
9560
+ // not equal
9561
+ if (existing_sourceObjectLookUp === undefined || incoming_sourceObjectLookUp === undefined) {
9562
+ return false;
9563
+ }
9564
+ if (!(existing_sourceObjectLookUp === incoming_sourceObjectLookUp)) {
9565
+ return false;
9566
+ }
9567
+ }
9250
9568
  const existing_usage = existing.usage;
9251
9569
  const incoming_usage = incoming.usage;
9252
9570
  // if at least one of these optionals is defined
@@ -9410,17 +9728,12 @@ function equals$5(existing, incoming) {
9410
9728
  return true;
9411
9729
  }
9412
9730
 
9413
- const VERSION$4 = "53a2c9a83f2af963d29b270a557a29ab";
9731
+ const VERSION$4 = "528d0c1033363f78ba017b5d63b84d7b";
9414
9732
  function validate$7(obj, path = 'EligibilityRuleDetailsRepresentation') {
9415
9733
  const v_error = (() => {
9416
9734
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
9417
9735
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
9418
9736
  }
9419
- const obj_cellLevelCriteriaEnabled = obj.cellLevelCriteriaEnabled;
9420
- const path_cellLevelCriteriaEnabled = path + '.cellLevelCriteriaEnabled';
9421
- if (typeof obj_cellLevelCriteriaEnabled !== 'boolean') {
9422
- return new TypeError('Expected "boolean" but received "' + typeof obj_cellLevelCriteriaEnabled + '" (at "' + path_cellLevelCriteriaEnabled + '")');
9423
- }
9424
9737
  const obj_conditionCriteria = obj.conditionCriteria;
9425
9738
  const path_conditionCriteria = path + '.conditionCriteria';
9426
9739
  if (typeof obj_conditionCriteria !== 'string') {
@@ -9431,6 +9744,11 @@ function validate$7(obj, path = 'EligibilityRuleDetailsRepresentation') {
9431
9744
  if (typeof obj_conditionType !== 'string') {
9432
9745
  return new TypeError('Expected "string" but received "' + typeof obj_conditionType + '" (at "' + path_conditionType + '")');
9433
9746
  }
9747
+ const obj_createdDate = obj.createdDate;
9748
+ const path_createdDate = path + '.createdDate';
9749
+ if (typeof obj_createdDate !== 'string') {
9750
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
9751
+ }
9434
9752
  const obj_decisionTableId = obj.decisionTableId;
9435
9753
  const path_decisionTableId = path + '.decisionTableId';
9436
9754
  if (typeof obj_decisionTableId !== 'string') {
@@ -9446,6 +9764,35 @@ function validate$7(obj, path = 'EligibilityRuleDetailsRepresentation') {
9446
9764
  if (typeof obj_description !== 'string') {
9447
9765
  return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
9448
9766
  }
9767
+ const obj_hasIncrementalSyncFailed = obj.hasIncrementalSyncFailed;
9768
+ const path_hasIncrementalSyncFailed = path + '.hasIncrementalSyncFailed';
9769
+ if (typeof obj_hasIncrementalSyncFailed !== 'boolean') {
9770
+ return new TypeError('Expected "boolean" but received "' + typeof obj_hasIncrementalSyncFailed + '" (at "' + path_hasIncrementalSyncFailed + '")');
9771
+ }
9772
+ const obj_isIncrementalSyncEnabled = obj.isIncrementalSyncEnabled;
9773
+ const path_isIncrementalSyncEnabled = path + '.isIncrementalSyncEnabled';
9774
+ if (typeof obj_isIncrementalSyncEnabled !== 'boolean') {
9775
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isIncrementalSyncEnabled + '" (at "' + path_isIncrementalSyncEnabled + '")');
9776
+ }
9777
+ if (obj.lastIncrementalSyncDate !== undefined) {
9778
+ const obj_lastIncrementalSyncDate = obj.lastIncrementalSyncDate;
9779
+ const path_lastIncrementalSyncDate = path + '.lastIncrementalSyncDate';
9780
+ if (typeof obj_lastIncrementalSyncDate !== 'string') {
9781
+ return new TypeError('Expected "string" but received "' + typeof obj_lastIncrementalSyncDate + '" (at "' + path_lastIncrementalSyncDate + '")');
9782
+ }
9783
+ }
9784
+ const obj_lastModifiedDate = obj.lastModifiedDate;
9785
+ const path_lastModifiedDate = path + '.lastModifiedDate';
9786
+ if (typeof obj_lastModifiedDate !== 'string') {
9787
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
9788
+ }
9789
+ if (obj.lastSyncDate !== undefined) {
9790
+ const obj_lastSyncDate = obj.lastSyncDate;
9791
+ const path_lastSyncDate = path + '.lastSyncDate';
9792
+ if (typeof obj_lastSyncDate !== 'string') {
9793
+ return new TypeError('Expected "string" but received "' + typeof obj_lastSyncDate + '" (at "' + path_lastSyncDate + '")');
9794
+ }
9795
+ }
9449
9796
  const obj_parameters = obj.parameters;
9450
9797
  const path_parameters = path + '.parameters';
9451
9798
  if (!ArrayIsArray(obj_parameters)) {
@@ -9456,11 +9803,28 @@ function validate$7(obj, path = 'EligibilityRuleDetailsRepresentation') {
9456
9803
  const path_parameters_item = path_parameters + '[' + i + ']';
9457
9804
  const referencepath_parameters_itemValidationError = validate$9(obj_parameters_item, path_parameters_item);
9458
9805
  if (referencepath_parameters_itemValidationError !== null) {
9459
- let message = 'Object doesn\'t match DecisionTableParameterOutputRepresentation (at "' + path_parameters_item + '")\n';
9806
+ let message = 'Object doesn\'t match EligibilityRuleParameterRepresentation (at "' + path_parameters_item + '")\n';
9460
9807
  message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
9461
9808
  return new TypeError(message);
9462
9809
  }
9463
9810
  }
9811
+ if (obj.refreshFailureReason !== undefined) {
9812
+ const obj_refreshFailureReason = obj.refreshFailureReason;
9813
+ const path_refreshFailureReason = path + '.refreshFailureReason';
9814
+ if (typeof obj_refreshFailureReason !== 'string') {
9815
+ return new TypeError('Expected "string" but received "' + typeof obj_refreshFailureReason + '" (at "' + path_refreshFailureReason + '")');
9816
+ }
9817
+ }
9818
+ const obj_refreshStatus = obj.refreshStatus;
9819
+ const path_refreshStatus = path + '.refreshStatus';
9820
+ if (typeof obj_refreshStatus !== 'string') {
9821
+ return new TypeError('Expected "string" but received "' + typeof obj_refreshStatus + '" (at "' + path_refreshStatus + '")');
9822
+ }
9823
+ const obj_rowLevelOverrideType = obj.rowLevelOverrideType;
9824
+ const path_rowLevelOverrideType = path + '.rowLevelOverrideType';
9825
+ if (typeof obj_rowLevelOverrideType !== 'string') {
9826
+ return new TypeError('Expected "string" but received "' + typeof obj_rowLevelOverrideType + '" (at "' + path_rowLevelOverrideType + '")');
9827
+ }
9464
9828
  const obj_sourceCriteria = obj.sourceCriteria;
9465
9829
  const path_sourceCriteria = path + '.sourceCriteria';
9466
9830
  if (!ArrayIsArray(obj_sourceCriteria)) {
@@ -9500,7 +9864,7 @@ function validate$7(obj, path = 'EligibilityRuleDetailsRepresentation') {
9500
9864
  return v_error === undefined ? null : v_error;
9501
9865
  }
9502
9866
  const select$9 = function EligibilityRuleDetailsRepresentationSelect() {
9503
- const { selections: DecisionTableParameterOutputRepresentation__selections, opaque: DecisionTableParameterOutputRepresentation__opaque, } = select$b();
9867
+ const { selections: EligibilityRuleParameterRepresentation__selections, opaque: EligibilityRuleParameterRepresentation__opaque, } = select$b();
9504
9868
  const { selections: DecisionTableSourceCriteriaOutputRepresentation__selections, opaque: DecisionTableSourceCriteriaOutputRepresentation__opaque, } = select$a();
9505
9869
  return {
9506
9870
  kind: 'Fragment',
@@ -9508,15 +9872,15 @@ const select$9 = function EligibilityRuleDetailsRepresentationSelect() {
9508
9872
  private: [],
9509
9873
  selections: [
9510
9874
  {
9511
- name: 'cellLevelCriteriaEnabled',
9875
+ name: 'conditionCriteria',
9512
9876
  kind: 'Scalar'
9513
9877
  },
9514
9878
  {
9515
- name: 'conditionCriteria',
9879
+ name: 'conditionType',
9516
9880
  kind: 'Scalar'
9517
9881
  },
9518
9882
  {
9519
- name: 'conditionType',
9883
+ name: 'createdDate',
9520
9884
  kind: 'Scalar'
9521
9885
  },
9522
9886
  {
@@ -9531,11 +9895,46 @@ const select$9 = function EligibilityRuleDetailsRepresentationSelect() {
9531
9895
  name: 'description',
9532
9896
  kind: 'Scalar'
9533
9897
  },
9898
+ {
9899
+ name: 'hasIncrementalSyncFailed',
9900
+ kind: 'Scalar'
9901
+ },
9902
+ {
9903
+ name: 'isIncrementalSyncEnabled',
9904
+ kind: 'Scalar'
9905
+ },
9906
+ {
9907
+ name: 'lastIncrementalSyncDate',
9908
+ kind: 'Scalar',
9909
+ required: false
9910
+ },
9911
+ {
9912
+ name: 'lastModifiedDate',
9913
+ kind: 'Scalar'
9914
+ },
9915
+ {
9916
+ name: 'lastSyncDate',
9917
+ kind: 'Scalar',
9918
+ required: false
9919
+ },
9534
9920
  {
9535
9921
  name: 'parameters',
9536
9922
  kind: 'Object',
9537
9923
  plural: true,
9538
- selections: DecisionTableParameterOutputRepresentation__selections
9924
+ selections: EligibilityRuleParameterRepresentation__selections
9925
+ },
9926
+ {
9927
+ name: 'refreshFailureReason',
9928
+ kind: 'Scalar',
9929
+ required: false
9930
+ },
9931
+ {
9932
+ name: 'refreshStatus',
9933
+ kind: 'Scalar'
9934
+ },
9935
+ {
9936
+ name: 'rowLevelOverrideType',
9937
+ kind: 'Scalar'
9539
9938
  },
9540
9939
  {
9541
9940
  name: 'sourceCriteria',
@@ -9563,9 +9962,14 @@ const select$9 = function EligibilityRuleDetailsRepresentationSelect() {
9563
9962
  };
9564
9963
  };
9565
9964
  function equals$4(existing, incoming) {
9566
- const existing_cellLevelCriteriaEnabled = existing.cellLevelCriteriaEnabled;
9567
- const incoming_cellLevelCriteriaEnabled = incoming.cellLevelCriteriaEnabled;
9568
- if (!(existing_cellLevelCriteriaEnabled === incoming_cellLevelCriteriaEnabled)) {
9965
+ const existing_hasIncrementalSyncFailed = existing.hasIncrementalSyncFailed;
9966
+ const incoming_hasIncrementalSyncFailed = incoming.hasIncrementalSyncFailed;
9967
+ if (!(existing_hasIncrementalSyncFailed === incoming_hasIncrementalSyncFailed)) {
9968
+ return false;
9969
+ }
9970
+ const existing_isIncrementalSyncEnabled = existing.isIncrementalSyncEnabled;
9971
+ const incoming_isIncrementalSyncEnabled = incoming.isIncrementalSyncEnabled;
9972
+ if (!(existing_isIncrementalSyncEnabled === incoming_isIncrementalSyncEnabled)) {
9569
9973
  return false;
9570
9974
  }
9571
9975
  const existing_conditionCriteria = existing.conditionCriteria;
@@ -9578,6 +9982,11 @@ function equals$4(existing, incoming) {
9578
9982
  if (!(existing_conditionType === incoming_conditionType)) {
9579
9983
  return false;
9580
9984
  }
9985
+ const existing_createdDate = existing.createdDate;
9986
+ const incoming_createdDate = incoming.createdDate;
9987
+ if (!(existing_createdDate === incoming_createdDate)) {
9988
+ return false;
9989
+ }
9581
9990
  const existing_decisionTableId = existing.decisionTableId;
9582
9991
  const incoming_decisionTableId = incoming.decisionTableId;
9583
9992
  if (!(existing_decisionTableId === incoming_decisionTableId)) {
@@ -9593,6 +10002,60 @@ function equals$4(existing, incoming) {
9593
10002
  if (!(existing_description === incoming_description)) {
9594
10003
  return false;
9595
10004
  }
10005
+ const existing_lastIncrementalSyncDate = existing.lastIncrementalSyncDate;
10006
+ const incoming_lastIncrementalSyncDate = incoming.lastIncrementalSyncDate;
10007
+ // if at least one of these optionals is defined
10008
+ if (existing_lastIncrementalSyncDate !== undefined || incoming_lastIncrementalSyncDate !== undefined) {
10009
+ // if one of these is not defined we know the other is defined and therefore
10010
+ // not equal
10011
+ if (existing_lastIncrementalSyncDate === undefined || incoming_lastIncrementalSyncDate === undefined) {
10012
+ return false;
10013
+ }
10014
+ if (!(existing_lastIncrementalSyncDate === incoming_lastIncrementalSyncDate)) {
10015
+ return false;
10016
+ }
10017
+ }
10018
+ const existing_lastModifiedDate = existing.lastModifiedDate;
10019
+ const incoming_lastModifiedDate = incoming.lastModifiedDate;
10020
+ if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
10021
+ return false;
10022
+ }
10023
+ const existing_lastSyncDate = existing.lastSyncDate;
10024
+ const incoming_lastSyncDate = incoming.lastSyncDate;
10025
+ // if at least one of these optionals is defined
10026
+ if (existing_lastSyncDate !== undefined || incoming_lastSyncDate !== undefined) {
10027
+ // if one of these is not defined we know the other is defined and therefore
10028
+ // not equal
10029
+ if (existing_lastSyncDate === undefined || incoming_lastSyncDate === undefined) {
10030
+ return false;
10031
+ }
10032
+ if (!(existing_lastSyncDate === incoming_lastSyncDate)) {
10033
+ return false;
10034
+ }
10035
+ }
10036
+ const existing_refreshFailureReason = existing.refreshFailureReason;
10037
+ const incoming_refreshFailureReason = incoming.refreshFailureReason;
10038
+ // if at least one of these optionals is defined
10039
+ if (existing_refreshFailureReason !== undefined || incoming_refreshFailureReason !== undefined) {
10040
+ // if one of these is not defined we know the other is defined and therefore
10041
+ // not equal
10042
+ if (existing_refreshFailureReason === undefined || incoming_refreshFailureReason === undefined) {
10043
+ return false;
10044
+ }
10045
+ if (!(existing_refreshFailureReason === incoming_refreshFailureReason)) {
10046
+ return false;
10047
+ }
10048
+ }
10049
+ const existing_refreshStatus = existing.refreshStatus;
10050
+ const incoming_refreshStatus = incoming.refreshStatus;
10051
+ if (!(existing_refreshStatus === incoming_refreshStatus)) {
10052
+ return false;
10053
+ }
10054
+ const existing_rowLevelOverrideType = existing.rowLevelOverrideType;
10055
+ const incoming_rowLevelOverrideType = incoming.rowLevelOverrideType;
10056
+ if (!(existing_rowLevelOverrideType === incoming_rowLevelOverrideType)) {
10057
+ return false;
10058
+ }
9596
10059
  const existing_sourceObject = existing.sourceObject;
9597
10060
  const incoming_sourceObject = incoming.sourceObject;
9598
10061
  if (!(existing_sourceObject === incoming_sourceObject)) {
@@ -10240,8 +10703,8 @@ function validate$4(obj, path = 'EligibilityRuleValueInputRepresentation') {
10240
10703
  }
10241
10704
 
10242
10705
  const TTL$1 = 6000;
10243
- const VERSION$1 = "1223e9f0d3678a6dc50dabe1f18066b9";
10244
- function validate$3(obj, path = 'RuleOutputRepresentation') {
10706
+ const VERSION$1 = "46e43120927331c84fedc0b4e2f9addc";
10707
+ function validate$3(obj, path = 'EligibilityRuleRepresentation') {
10245
10708
  const v_error = (() => {
10246
10709
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
10247
10710
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -10269,7 +10732,7 @@ function validate$3(obj, path = 'RuleOutputRepresentation') {
10269
10732
  })();
10270
10733
  return v_error === undefined ? null : v_error;
10271
10734
  }
10272
- const RepresentationType$1 = 'RuleOutputRepresentation';
10735
+ const RepresentationType$1 = 'EligibilityRuleRepresentation';
10273
10736
  function keyBuilder$1(luvio, config) {
10274
10737
  return keyPrefix + '::' + RepresentationType$1 + ':' + config.sourceObjectRecordId;
10275
10738
  }
@@ -10282,7 +10745,7 @@ function keyBuilderFromType$1(luvio, object) {
10282
10745
  function normalize$1(input, existing, path, luvio, store, timestamp) {
10283
10746
  return input;
10284
10747
  }
10285
- const select$4 = function RuleOutputRepresentationSelect() {
10748
+ const select$4 = function EligibilityRuleRepresentationSelect() {
10286
10749
  return {
10287
10750
  kind: 'Fragment',
10288
10751
  version: VERSION$1,
@@ -10330,7 +10793,7 @@ function equals$1(existing, incoming) {
10330
10793
  }
10331
10794
  return true;
10332
10795
  }
10333
- const ingest$1 = function RuleOutputRepresentationIngest(input, path, luvio, store, timestamp) {
10796
+ const ingest$1 = function EligibilityRuleRepresentationIngest(input, path, luvio, store, timestamp) {
10334
10797
  if (process.env.NODE_ENV !== 'production') {
10335
10798
  const validateError = validate$3(input);
10336
10799
  if (validateError !== null) {
@@ -11098,4 +11561,4 @@ withDefaultLuvio((luvio) => {
11098
11561
  });
11099
11562
 
11100
11563
  export { createAgentAction, createAgentFlow, createCatalogItem, deployTemplate, downloadServiceProcessTemplate, downloadServiceProcessTemplate_imperative, generateIntakeForm, generateOmniScript, getAgentActions, getAgentActions_imperative, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getAllServiceProcessTemplate, getAllServiceProcessTemplate_imperative, getCatalogItem, getCatalogItem_imperative, getEligibilityRuleMetadata, getEligibilityRuleMetadata_imperative, getServiceRequest, getServiceRequest_imperative, saveEligibilityRule, updateCatalogItem, updateEpcCategories };
11101
- // version: 1.392.0-3cd2606b7f
11564
+ // version: 1.394.0-db58817a4e