@salesforce/lds-adapters-service-ecm 1.392.0 → 1.393.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/dist/es/es2018/service-ecm.js +342 -21
- package/dist/es/es2018/types/src/generated/types/CatalogItemAttributeInputRepresentation.d.ts +10 -1
- package/dist/es/es2018/types/src/generated/types/CatalogItemAttributeOutputRepresentation.d.ts +13 -1
- package/dist/es/es2018/types/src/generated/types/EligibilityRuleDetailsRepresentation.d.ts +13 -7
- package/dist/es/es2018/types/src/generated/types/{DecisionTableParameterOutputRepresentation.d.ts → EligibilityRuleParameterRepresentation.d.ts} +11 -8
- package/package.json +3 -3
- package/sfdc/index.js +343 -22
- package/src/raml/api.raml +61 -6
|
@@ -438,6 +438,34 @@ function validate$K(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
438
438
|
return new TypeError(message);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
+
if (obj.contextDefinitionId !== undefined) {
|
|
442
|
+
const obj_contextDefinitionId = obj.contextDefinitionId;
|
|
443
|
+
const path_contextDefinitionId = path + '.contextDefinitionId';
|
|
444
|
+
let obj_contextDefinitionId_union0 = null;
|
|
445
|
+
const obj_contextDefinitionId_union0_error = (() => {
|
|
446
|
+
if (typeof obj_contextDefinitionId !== 'string') {
|
|
447
|
+
return new TypeError('Expected "string" but received "' + typeof obj_contextDefinitionId + '" (at "' + path_contextDefinitionId + '")');
|
|
448
|
+
}
|
|
449
|
+
})();
|
|
450
|
+
if (obj_contextDefinitionId_union0_error != null) {
|
|
451
|
+
obj_contextDefinitionId_union0 = obj_contextDefinitionId_union0_error.message;
|
|
452
|
+
}
|
|
453
|
+
let obj_contextDefinitionId_union1 = null;
|
|
454
|
+
const obj_contextDefinitionId_union1_error = (() => {
|
|
455
|
+
if (obj_contextDefinitionId !== null) {
|
|
456
|
+
return new TypeError('Expected "null" but received "' + typeof obj_contextDefinitionId + '" (at "' + path_contextDefinitionId + '")');
|
|
457
|
+
}
|
|
458
|
+
})();
|
|
459
|
+
if (obj_contextDefinitionId_union1_error != null) {
|
|
460
|
+
obj_contextDefinitionId_union1 = obj_contextDefinitionId_union1_error.message;
|
|
461
|
+
}
|
|
462
|
+
if (obj_contextDefinitionId_union0 && obj_contextDefinitionId_union1) {
|
|
463
|
+
let message = 'Object doesn\'t match union (at "' + path_contextDefinitionId + '")';
|
|
464
|
+
message += '\n' + obj_contextDefinitionId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
465
|
+
message += '\n' + obj_contextDefinitionId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
466
|
+
return new TypeError(message);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
441
469
|
if (obj.dataType !== undefined) {
|
|
442
470
|
const obj_dataType = obj.dataType;
|
|
443
471
|
const path_dataType = path + '.dataType';
|
|
@@ -798,6 +826,62 @@ function validate$K(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
798
826
|
}
|
|
799
827
|
}
|
|
800
828
|
}
|
|
829
|
+
if (obj.referenceField !== undefined) {
|
|
830
|
+
const obj_referenceField = obj.referenceField;
|
|
831
|
+
const path_referenceField = path + '.referenceField';
|
|
832
|
+
let obj_referenceField_union0 = null;
|
|
833
|
+
const obj_referenceField_union0_error = (() => {
|
|
834
|
+
if (typeof obj_referenceField !== 'string') {
|
|
835
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceField + '" (at "' + path_referenceField + '")');
|
|
836
|
+
}
|
|
837
|
+
})();
|
|
838
|
+
if (obj_referenceField_union0_error != null) {
|
|
839
|
+
obj_referenceField_union0 = obj_referenceField_union0_error.message;
|
|
840
|
+
}
|
|
841
|
+
let obj_referenceField_union1 = null;
|
|
842
|
+
const obj_referenceField_union1_error = (() => {
|
|
843
|
+
if (obj_referenceField !== null) {
|
|
844
|
+
return new TypeError('Expected "null" but received "' + typeof obj_referenceField + '" (at "' + path_referenceField + '")');
|
|
845
|
+
}
|
|
846
|
+
})();
|
|
847
|
+
if (obj_referenceField_union1_error != null) {
|
|
848
|
+
obj_referenceField_union1 = obj_referenceField_union1_error.message;
|
|
849
|
+
}
|
|
850
|
+
if (obj_referenceField_union0 && obj_referenceField_union1) {
|
|
851
|
+
let message = 'Object doesn\'t match union (at "' + path_referenceField + '")';
|
|
852
|
+
message += '\n' + obj_referenceField_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
853
|
+
message += '\n' + obj_referenceField_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
854
|
+
return new TypeError(message);
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
if (obj.referenceObject !== undefined) {
|
|
858
|
+
const obj_referenceObject = obj.referenceObject;
|
|
859
|
+
const path_referenceObject = path + '.referenceObject';
|
|
860
|
+
let obj_referenceObject_union0 = null;
|
|
861
|
+
const obj_referenceObject_union0_error = (() => {
|
|
862
|
+
if (typeof obj_referenceObject !== 'string') {
|
|
863
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceObject + '" (at "' + path_referenceObject + '")');
|
|
864
|
+
}
|
|
865
|
+
})();
|
|
866
|
+
if (obj_referenceObject_union0_error != null) {
|
|
867
|
+
obj_referenceObject_union0 = obj_referenceObject_union0_error.message;
|
|
868
|
+
}
|
|
869
|
+
let obj_referenceObject_union1 = null;
|
|
870
|
+
const obj_referenceObject_union1_error = (() => {
|
|
871
|
+
if (obj_referenceObject !== null) {
|
|
872
|
+
return new TypeError('Expected "null" but received "' + typeof obj_referenceObject + '" (at "' + path_referenceObject + '")');
|
|
873
|
+
}
|
|
874
|
+
})();
|
|
875
|
+
if (obj_referenceObject_union1_error != null) {
|
|
876
|
+
obj_referenceObject_union1 = obj_referenceObject_union1_error.message;
|
|
877
|
+
}
|
|
878
|
+
if (obj_referenceObject_union0 && obj_referenceObject_union1) {
|
|
879
|
+
let message = 'Object doesn\'t match union (at "' + path_referenceObject + '")';
|
|
880
|
+
message += '\n' + obj_referenceObject_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
881
|
+
message += '\n' + obj_referenceObject_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
882
|
+
return new TypeError(message);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
801
885
|
if (obj.sequence !== undefined) {
|
|
802
886
|
const obj_sequence = obj.sequence;
|
|
803
887
|
const path_sequence = path + '.sequence';
|
|
@@ -3633,7 +3717,7 @@ function equals$l(existing, incoming) {
|
|
|
3633
3717
|
return true;
|
|
3634
3718
|
}
|
|
3635
3719
|
|
|
3636
|
-
const VERSION$k = "
|
|
3720
|
+
const VERSION$k = "56047c3264f6e0d4375d956b121d1947";
|
|
3637
3721
|
function validate$s(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
3638
3722
|
const v_error = (() => {
|
|
3639
3723
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3667,6 +3751,34 @@ function validate$s(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
3667
3751
|
return new TypeError(message);
|
|
3668
3752
|
}
|
|
3669
3753
|
}
|
|
3754
|
+
if (obj.baseObject !== undefined) {
|
|
3755
|
+
const obj_baseObject = obj.baseObject;
|
|
3756
|
+
const path_baseObject = path + '.baseObject';
|
|
3757
|
+
let obj_baseObject_union0 = null;
|
|
3758
|
+
const obj_baseObject_union0_error = (() => {
|
|
3759
|
+
if (typeof obj_baseObject !== 'string') {
|
|
3760
|
+
return new TypeError('Expected "string" but received "' + typeof obj_baseObject + '" (at "' + path_baseObject + '")');
|
|
3761
|
+
}
|
|
3762
|
+
})();
|
|
3763
|
+
if (obj_baseObject_union0_error != null) {
|
|
3764
|
+
obj_baseObject_union0 = obj_baseObject_union0_error.message;
|
|
3765
|
+
}
|
|
3766
|
+
let obj_baseObject_union1 = null;
|
|
3767
|
+
const obj_baseObject_union1_error = (() => {
|
|
3768
|
+
if (obj_baseObject !== null) {
|
|
3769
|
+
return new TypeError('Expected "null" but received "' + typeof obj_baseObject + '" (at "' + path_baseObject + '")');
|
|
3770
|
+
}
|
|
3771
|
+
})();
|
|
3772
|
+
if (obj_baseObject_union1_error != null) {
|
|
3773
|
+
obj_baseObject_union1 = obj_baseObject_union1_error.message;
|
|
3774
|
+
}
|
|
3775
|
+
if (obj_baseObject_union0 && obj_baseObject_union1) {
|
|
3776
|
+
let message = 'Object doesn\'t match union (at "' + path_baseObject + '")';
|
|
3777
|
+
message += '\n' + obj_baseObject_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3778
|
+
message += '\n' + obj_baseObject_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3779
|
+
return new TypeError(message);
|
|
3780
|
+
}
|
|
3781
|
+
}
|
|
3670
3782
|
if (obj.dataType !== undefined) {
|
|
3671
3783
|
const obj_dataType = obj.dataType;
|
|
3672
3784
|
const path_dataType = path + '.dataType';
|
|
@@ -3751,6 +3863,34 @@ function validate$s(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
3751
3863
|
return new TypeError(message);
|
|
3752
3864
|
}
|
|
3753
3865
|
}
|
|
3866
|
+
if (obj.fieldType !== undefined) {
|
|
3867
|
+
const obj_fieldType = obj.fieldType;
|
|
3868
|
+
const path_fieldType = path + '.fieldType';
|
|
3869
|
+
let obj_fieldType_union0 = null;
|
|
3870
|
+
const obj_fieldType_union0_error = (() => {
|
|
3871
|
+
if (typeof obj_fieldType !== 'string') {
|
|
3872
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldType + '" (at "' + path_fieldType + '")');
|
|
3873
|
+
}
|
|
3874
|
+
})();
|
|
3875
|
+
if (obj_fieldType_union0_error != null) {
|
|
3876
|
+
obj_fieldType_union0 = obj_fieldType_union0_error.message;
|
|
3877
|
+
}
|
|
3878
|
+
let obj_fieldType_union1 = null;
|
|
3879
|
+
const obj_fieldType_union1_error = (() => {
|
|
3880
|
+
if (obj_fieldType !== null) {
|
|
3881
|
+
return new TypeError('Expected "null" but received "' + typeof obj_fieldType + '" (at "' + path_fieldType + '")');
|
|
3882
|
+
}
|
|
3883
|
+
})();
|
|
3884
|
+
if (obj_fieldType_union1_error != null) {
|
|
3885
|
+
obj_fieldType_union1 = obj_fieldType_union1_error.message;
|
|
3886
|
+
}
|
|
3887
|
+
if (obj_fieldType_union0 && obj_fieldType_union1) {
|
|
3888
|
+
let message = 'Object doesn\'t match union (at "' + path_fieldType + '")';
|
|
3889
|
+
message += '\n' + obj_fieldType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3890
|
+
message += '\n' + obj_fieldType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3891
|
+
return new TypeError(message);
|
|
3892
|
+
}
|
|
3893
|
+
}
|
|
3754
3894
|
if (obj.id !== undefined) {
|
|
3755
3895
|
const obj_id = obj.id;
|
|
3756
3896
|
const path_id = path + '.id';
|
|
@@ -4055,6 +4195,62 @@ function validate$s(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
4055
4195
|
}
|
|
4056
4196
|
}
|
|
4057
4197
|
}
|
|
4198
|
+
if (obj.referenceField !== undefined) {
|
|
4199
|
+
const obj_referenceField = obj.referenceField;
|
|
4200
|
+
const path_referenceField = path + '.referenceField';
|
|
4201
|
+
let obj_referenceField_union0 = null;
|
|
4202
|
+
const obj_referenceField_union0_error = (() => {
|
|
4203
|
+
if (typeof obj_referenceField !== 'string') {
|
|
4204
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceField + '" (at "' + path_referenceField + '")');
|
|
4205
|
+
}
|
|
4206
|
+
})();
|
|
4207
|
+
if (obj_referenceField_union0_error != null) {
|
|
4208
|
+
obj_referenceField_union0 = obj_referenceField_union0_error.message;
|
|
4209
|
+
}
|
|
4210
|
+
let obj_referenceField_union1 = null;
|
|
4211
|
+
const obj_referenceField_union1_error = (() => {
|
|
4212
|
+
if (obj_referenceField !== null) {
|
|
4213
|
+
return new TypeError('Expected "null" but received "' + typeof obj_referenceField + '" (at "' + path_referenceField + '")');
|
|
4214
|
+
}
|
|
4215
|
+
})();
|
|
4216
|
+
if (obj_referenceField_union1_error != null) {
|
|
4217
|
+
obj_referenceField_union1 = obj_referenceField_union1_error.message;
|
|
4218
|
+
}
|
|
4219
|
+
if (obj_referenceField_union0 && obj_referenceField_union1) {
|
|
4220
|
+
let message = 'Object doesn\'t match union (at "' + path_referenceField + '")';
|
|
4221
|
+
message += '\n' + obj_referenceField_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4222
|
+
message += '\n' + obj_referenceField_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4223
|
+
return new TypeError(message);
|
|
4224
|
+
}
|
|
4225
|
+
}
|
|
4226
|
+
if (obj.referenceObject !== undefined) {
|
|
4227
|
+
const obj_referenceObject = obj.referenceObject;
|
|
4228
|
+
const path_referenceObject = path + '.referenceObject';
|
|
4229
|
+
let obj_referenceObject_union0 = null;
|
|
4230
|
+
const obj_referenceObject_union0_error = (() => {
|
|
4231
|
+
if (typeof obj_referenceObject !== 'string') {
|
|
4232
|
+
return new TypeError('Expected "string" but received "' + typeof obj_referenceObject + '" (at "' + path_referenceObject + '")');
|
|
4233
|
+
}
|
|
4234
|
+
})();
|
|
4235
|
+
if (obj_referenceObject_union0_error != null) {
|
|
4236
|
+
obj_referenceObject_union0 = obj_referenceObject_union0_error.message;
|
|
4237
|
+
}
|
|
4238
|
+
let obj_referenceObject_union1 = null;
|
|
4239
|
+
const obj_referenceObject_union1_error = (() => {
|
|
4240
|
+
if (obj_referenceObject !== null) {
|
|
4241
|
+
return new TypeError('Expected "null" but received "' + typeof obj_referenceObject + '" (at "' + path_referenceObject + '")');
|
|
4242
|
+
}
|
|
4243
|
+
})();
|
|
4244
|
+
if (obj_referenceObject_union1_error != null) {
|
|
4245
|
+
obj_referenceObject_union1 = obj_referenceObject_union1_error.message;
|
|
4246
|
+
}
|
|
4247
|
+
if (obj_referenceObject_union0 && obj_referenceObject_union1) {
|
|
4248
|
+
let message = 'Object doesn\'t match union (at "' + path_referenceObject + '")';
|
|
4249
|
+
message += '\n' + obj_referenceObject_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4250
|
+
message += '\n' + obj_referenceObject_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4251
|
+
return new TypeError(message);
|
|
4252
|
+
}
|
|
4253
|
+
}
|
|
4058
4254
|
if (obj.sequence !== undefined) {
|
|
4059
4255
|
const obj_sequence = obj.sequence;
|
|
4060
4256
|
const path_sequence = path + '.sequence';
|
|
@@ -4098,6 +4294,11 @@ const select$A = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
4098
4294
|
kind: 'Scalar',
|
|
4099
4295
|
required: false
|
|
4100
4296
|
},
|
|
4297
|
+
{
|
|
4298
|
+
name: 'baseObject',
|
|
4299
|
+
kind: 'Scalar',
|
|
4300
|
+
required: false
|
|
4301
|
+
},
|
|
4101
4302
|
{
|
|
4102
4303
|
name: 'dataType',
|
|
4103
4304
|
kind: 'Scalar',
|
|
@@ -4113,6 +4314,11 @@ const select$A = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
4113
4314
|
kind: 'Scalar',
|
|
4114
4315
|
required: false
|
|
4115
4316
|
},
|
|
4317
|
+
{
|
|
4318
|
+
name: 'fieldType',
|
|
4319
|
+
kind: 'Scalar',
|
|
4320
|
+
required: false
|
|
4321
|
+
},
|
|
4116
4322
|
{
|
|
4117
4323
|
name: 'id',
|
|
4118
4324
|
kind: 'Scalar',
|
|
@@ -4176,6 +4382,16 @@ const select$A = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
4176
4382
|
selections: PicklistAttributeTypeOutputRepresentation__selections,
|
|
4177
4383
|
required: false
|
|
4178
4384
|
},
|
|
4385
|
+
{
|
|
4386
|
+
name: 'referenceField',
|
|
4387
|
+
kind: 'Scalar',
|
|
4388
|
+
required: false
|
|
4389
|
+
},
|
|
4390
|
+
{
|
|
4391
|
+
name: 'referenceObject',
|
|
4392
|
+
kind: 'Scalar',
|
|
4393
|
+
required: false
|
|
4394
|
+
},
|
|
4179
4395
|
{
|
|
4180
4396
|
name: 'sequence',
|
|
4181
4397
|
kind: 'Scalar',
|
|
@@ -4224,6 +4440,19 @@ function equals$k(existing, incoming) {
|
|
|
4224
4440
|
return false;
|
|
4225
4441
|
}
|
|
4226
4442
|
}
|
|
4443
|
+
const existing_baseObject = existing.baseObject;
|
|
4444
|
+
const incoming_baseObject = incoming.baseObject;
|
|
4445
|
+
// if at least one of these optionals is defined
|
|
4446
|
+
if (existing_baseObject !== undefined || incoming_baseObject !== undefined) {
|
|
4447
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4448
|
+
// not equal
|
|
4449
|
+
if (existing_baseObject === undefined || incoming_baseObject === undefined) {
|
|
4450
|
+
return false;
|
|
4451
|
+
}
|
|
4452
|
+
if (!(existing_baseObject === incoming_baseObject)) {
|
|
4453
|
+
return false;
|
|
4454
|
+
}
|
|
4455
|
+
}
|
|
4227
4456
|
const existing_dataType = existing.dataType;
|
|
4228
4457
|
const incoming_dataType = incoming.dataType;
|
|
4229
4458
|
// if at least one of these optionals is defined
|
|
@@ -4263,6 +4492,19 @@ function equals$k(existing, incoming) {
|
|
|
4263
4492
|
return false;
|
|
4264
4493
|
}
|
|
4265
4494
|
}
|
|
4495
|
+
const existing_fieldType = existing.fieldType;
|
|
4496
|
+
const incoming_fieldType = incoming.fieldType;
|
|
4497
|
+
// if at least one of these optionals is defined
|
|
4498
|
+
if (existing_fieldType !== undefined || incoming_fieldType !== undefined) {
|
|
4499
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4500
|
+
// not equal
|
|
4501
|
+
if (existing_fieldType === undefined || incoming_fieldType === undefined) {
|
|
4502
|
+
return false;
|
|
4503
|
+
}
|
|
4504
|
+
if (!(existing_fieldType === incoming_fieldType)) {
|
|
4505
|
+
return false;
|
|
4506
|
+
}
|
|
4507
|
+
}
|
|
4266
4508
|
const existing_id = existing.id;
|
|
4267
4509
|
const incoming_id = incoming.id;
|
|
4268
4510
|
// if at least one of these optionals is defined
|
|
@@ -4401,6 +4643,32 @@ function equals$k(existing, incoming) {
|
|
|
4401
4643
|
return false;
|
|
4402
4644
|
}
|
|
4403
4645
|
}
|
|
4646
|
+
const existing_referenceField = existing.referenceField;
|
|
4647
|
+
const incoming_referenceField = incoming.referenceField;
|
|
4648
|
+
// if at least one of these optionals is defined
|
|
4649
|
+
if (existing_referenceField !== undefined || incoming_referenceField !== undefined) {
|
|
4650
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4651
|
+
// not equal
|
|
4652
|
+
if (existing_referenceField === undefined || incoming_referenceField === undefined) {
|
|
4653
|
+
return false;
|
|
4654
|
+
}
|
|
4655
|
+
if (!(existing_referenceField === incoming_referenceField)) {
|
|
4656
|
+
return false;
|
|
4657
|
+
}
|
|
4658
|
+
}
|
|
4659
|
+
const existing_referenceObject = existing.referenceObject;
|
|
4660
|
+
const incoming_referenceObject = incoming.referenceObject;
|
|
4661
|
+
// if at least one of these optionals is defined
|
|
4662
|
+
if (existing_referenceObject !== undefined || incoming_referenceObject !== undefined) {
|
|
4663
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4664
|
+
// not equal
|
|
4665
|
+
if (existing_referenceObject === undefined || incoming_referenceObject === undefined) {
|
|
4666
|
+
return false;
|
|
4667
|
+
}
|
|
4668
|
+
if (!(existing_referenceObject === incoming_referenceObject)) {
|
|
4669
|
+
return false;
|
|
4670
|
+
}
|
|
4671
|
+
}
|
|
4404
4672
|
const existing_sequence = existing.sequence;
|
|
4405
4673
|
const incoming_sequence = incoming.sequence;
|
|
4406
4674
|
// if at least one of these optionals is defined
|
|
@@ -9981,12 +10249,19 @@ const saveEligibilityRuleAdapterFactory = (luvio) => {
|
|
|
9981
10249
|
};
|
|
9982
10250
|
};
|
|
9983
10251
|
|
|
9984
|
-
const VERSION$3 = "
|
|
9985
|
-
function validate$3(obj, path = '
|
|
10252
|
+
const VERSION$3 = "16a21367b1c0bba3e8f0ed1efce35f85";
|
|
10253
|
+
function validate$3(obj, path = 'EligibilityRuleParameterRepresentation') {
|
|
9986
10254
|
const v_error = (() => {
|
|
9987
10255
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
9988
10256
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
9989
10257
|
}
|
|
10258
|
+
if (obj.columnDataType !== undefined) {
|
|
10259
|
+
const obj_columnDataType = obj.columnDataType;
|
|
10260
|
+
const path_columnDataType = path + '.columnDataType';
|
|
10261
|
+
if (typeof obj_columnDataType !== 'string') {
|
|
10262
|
+
return new TypeError('Expected "string" but received "' + typeof obj_columnDataType + '" (at "' + path_columnDataType + '")');
|
|
10263
|
+
}
|
|
10264
|
+
}
|
|
9990
10265
|
if (obj.columnMapping !== undefined) {
|
|
9991
10266
|
const obj_columnMapping = obj.columnMapping;
|
|
9992
10267
|
const path_columnMapping = path + '.columnMapping';
|
|
@@ -10081,12 +10356,17 @@ function validate$3(obj, path = 'DecisionTableParameterOutputRepresentation') {
|
|
|
10081
10356
|
})();
|
|
10082
10357
|
return v_error === undefined ? null : v_error;
|
|
10083
10358
|
}
|
|
10084
|
-
const select$4 = function
|
|
10359
|
+
const select$4 = function EligibilityRuleParameterRepresentationSelect() {
|
|
10085
10360
|
return {
|
|
10086
10361
|
kind: 'Fragment',
|
|
10087
10362
|
version: VERSION$3,
|
|
10088
10363
|
private: [],
|
|
10089
10364
|
selections: [
|
|
10365
|
+
{
|
|
10366
|
+
name: 'columnDataType',
|
|
10367
|
+
kind: 'Scalar',
|
|
10368
|
+
required: false
|
|
10369
|
+
},
|
|
10090
10370
|
{
|
|
10091
10371
|
name: 'columnMapping',
|
|
10092
10372
|
kind: 'Scalar',
|
|
@@ -10234,6 +10514,19 @@ function equals$3(existing, incoming) {
|
|
|
10234
10514
|
return false;
|
|
10235
10515
|
}
|
|
10236
10516
|
}
|
|
10517
|
+
const existing_columnDataType = existing.columnDataType;
|
|
10518
|
+
const incoming_columnDataType = incoming.columnDataType;
|
|
10519
|
+
// if at least one of these optionals is defined
|
|
10520
|
+
if (existing_columnDataType !== undefined || incoming_columnDataType !== undefined) {
|
|
10521
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10522
|
+
// not equal
|
|
10523
|
+
if (existing_columnDataType === undefined || incoming_columnDataType === undefined) {
|
|
10524
|
+
return false;
|
|
10525
|
+
}
|
|
10526
|
+
if (!(existing_columnDataType === incoming_columnDataType)) {
|
|
10527
|
+
return false;
|
|
10528
|
+
}
|
|
10529
|
+
}
|
|
10237
10530
|
const existing_columnMapping = existing.columnMapping;
|
|
10238
10531
|
const incoming_columnMapping = incoming.columnMapping;
|
|
10239
10532
|
// if at least one of these optionals is defined
|
|
@@ -10475,17 +10768,12 @@ function equals$2(existing, incoming) {
|
|
|
10475
10768
|
return true;
|
|
10476
10769
|
}
|
|
10477
10770
|
|
|
10478
|
-
const VERSION$1 = "
|
|
10771
|
+
const VERSION$1 = "95c6a3da04e0fcc9db2a92b64485382c";
|
|
10479
10772
|
function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
10480
10773
|
const v_error = (() => {
|
|
10481
10774
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10482
10775
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
10483
10776
|
}
|
|
10484
|
-
const obj_cellLevelCriteriaEnabled = obj.cellLevelCriteriaEnabled;
|
|
10485
|
-
const path_cellLevelCriteriaEnabled = path + '.cellLevelCriteriaEnabled';
|
|
10486
|
-
if (typeof obj_cellLevelCriteriaEnabled !== 'boolean') {
|
|
10487
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_cellLevelCriteriaEnabled + '" (at "' + path_cellLevelCriteriaEnabled + '")');
|
|
10488
|
-
}
|
|
10489
10777
|
const obj_conditionCriteria = obj.conditionCriteria;
|
|
10490
10778
|
const path_conditionCriteria = path + '.conditionCriteria';
|
|
10491
10779
|
if (typeof obj_conditionCriteria !== 'string') {
|
|
@@ -10496,6 +10784,11 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10496
10784
|
if (typeof obj_conditionType !== 'string') {
|
|
10497
10785
|
return new TypeError('Expected "string" but received "' + typeof obj_conditionType + '" (at "' + path_conditionType + '")');
|
|
10498
10786
|
}
|
|
10787
|
+
const obj_createdDate = obj.createdDate;
|
|
10788
|
+
const path_createdDate = path + '.createdDate';
|
|
10789
|
+
if (typeof obj_createdDate !== 'string') {
|
|
10790
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
10791
|
+
}
|
|
10499
10792
|
const obj_decisionTableId = obj.decisionTableId;
|
|
10500
10793
|
const path_decisionTableId = path + '.decisionTableId';
|
|
10501
10794
|
if (typeof obj_decisionTableId !== 'string') {
|
|
@@ -10511,6 +10804,11 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10511
10804
|
if (typeof obj_description !== 'string') {
|
|
10512
10805
|
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
10513
10806
|
}
|
|
10807
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
10808
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
10809
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
10810
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
10811
|
+
}
|
|
10514
10812
|
const obj_parameters = obj.parameters;
|
|
10515
10813
|
const path_parameters = path + '.parameters';
|
|
10516
10814
|
if (!ArrayIsArray(obj_parameters)) {
|
|
@@ -10521,11 +10819,16 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10521
10819
|
const path_parameters_item = path_parameters + '[' + i + ']';
|
|
10522
10820
|
const referencepath_parameters_itemValidationError = validate$3(obj_parameters_item, path_parameters_item);
|
|
10523
10821
|
if (referencepath_parameters_itemValidationError !== null) {
|
|
10524
|
-
let message = 'Object doesn\'t match
|
|
10822
|
+
let message = 'Object doesn\'t match EligibilityRuleParameterRepresentation (at "' + path_parameters_item + '")\n';
|
|
10525
10823
|
message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
10526
10824
|
return new TypeError(message);
|
|
10527
10825
|
}
|
|
10528
10826
|
}
|
|
10827
|
+
const obj_rowLevelOverrideType = obj.rowLevelOverrideType;
|
|
10828
|
+
const path_rowLevelOverrideType = path + '.rowLevelOverrideType';
|
|
10829
|
+
if (typeof obj_rowLevelOverrideType !== 'string') {
|
|
10830
|
+
return new TypeError('Expected "string" but received "' + typeof obj_rowLevelOverrideType + '" (at "' + path_rowLevelOverrideType + '")');
|
|
10831
|
+
}
|
|
10529
10832
|
const obj_sourceCriteria = obj.sourceCriteria;
|
|
10530
10833
|
const path_sourceCriteria = path + '.sourceCriteria';
|
|
10531
10834
|
if (!ArrayIsArray(obj_sourceCriteria)) {
|
|
@@ -10565,7 +10868,7 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10565
10868
|
return v_error === undefined ? null : v_error;
|
|
10566
10869
|
}
|
|
10567
10870
|
const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
10568
|
-
const { selections:
|
|
10871
|
+
const { selections: EligibilityRuleParameterRepresentation__selections, opaque: EligibilityRuleParameterRepresentation__opaque, } = select$4();
|
|
10569
10872
|
const { selections: DecisionTableSourceCriteriaOutputRepresentation__selections, opaque: DecisionTableSourceCriteriaOutputRepresentation__opaque, } = select$3();
|
|
10570
10873
|
return {
|
|
10571
10874
|
kind: 'Fragment',
|
|
@@ -10573,15 +10876,15 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
10573
10876
|
private: [],
|
|
10574
10877
|
selections: [
|
|
10575
10878
|
{
|
|
10576
|
-
name: '
|
|
10879
|
+
name: 'conditionCriteria',
|
|
10577
10880
|
kind: 'Scalar'
|
|
10578
10881
|
},
|
|
10579
10882
|
{
|
|
10580
|
-
name: '
|
|
10883
|
+
name: 'conditionType',
|
|
10581
10884
|
kind: 'Scalar'
|
|
10582
10885
|
},
|
|
10583
10886
|
{
|
|
10584
|
-
name: '
|
|
10887
|
+
name: 'createdDate',
|
|
10585
10888
|
kind: 'Scalar'
|
|
10586
10889
|
},
|
|
10587
10890
|
{
|
|
@@ -10596,11 +10899,19 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
10596
10899
|
name: 'description',
|
|
10597
10900
|
kind: 'Scalar'
|
|
10598
10901
|
},
|
|
10902
|
+
{
|
|
10903
|
+
name: 'lastModifiedDate',
|
|
10904
|
+
kind: 'Scalar'
|
|
10905
|
+
},
|
|
10599
10906
|
{
|
|
10600
10907
|
name: 'parameters',
|
|
10601
10908
|
kind: 'Object',
|
|
10602
10909
|
plural: true,
|
|
10603
|
-
selections:
|
|
10910
|
+
selections: EligibilityRuleParameterRepresentation__selections
|
|
10911
|
+
},
|
|
10912
|
+
{
|
|
10913
|
+
name: 'rowLevelOverrideType',
|
|
10914
|
+
kind: 'Scalar'
|
|
10604
10915
|
},
|
|
10605
10916
|
{
|
|
10606
10917
|
name: 'sourceCriteria',
|
|
@@ -10628,11 +10939,6 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
10628
10939
|
};
|
|
10629
10940
|
};
|
|
10630
10941
|
function equals$1(existing, incoming) {
|
|
10631
|
-
const existing_cellLevelCriteriaEnabled = existing.cellLevelCriteriaEnabled;
|
|
10632
|
-
const incoming_cellLevelCriteriaEnabled = incoming.cellLevelCriteriaEnabled;
|
|
10633
|
-
if (!(existing_cellLevelCriteriaEnabled === incoming_cellLevelCriteriaEnabled)) {
|
|
10634
|
-
return false;
|
|
10635
|
-
}
|
|
10636
10942
|
const existing_conditionCriteria = existing.conditionCriteria;
|
|
10637
10943
|
const incoming_conditionCriteria = incoming.conditionCriteria;
|
|
10638
10944
|
if (!(existing_conditionCriteria === incoming_conditionCriteria)) {
|
|
@@ -10643,6 +10949,11 @@ function equals$1(existing, incoming) {
|
|
|
10643
10949
|
if (!(existing_conditionType === incoming_conditionType)) {
|
|
10644
10950
|
return false;
|
|
10645
10951
|
}
|
|
10952
|
+
const existing_createdDate = existing.createdDate;
|
|
10953
|
+
const incoming_createdDate = incoming.createdDate;
|
|
10954
|
+
if (!(existing_createdDate === incoming_createdDate)) {
|
|
10955
|
+
return false;
|
|
10956
|
+
}
|
|
10646
10957
|
const existing_decisionTableId = existing.decisionTableId;
|
|
10647
10958
|
const incoming_decisionTableId = incoming.decisionTableId;
|
|
10648
10959
|
if (!(existing_decisionTableId === incoming_decisionTableId)) {
|
|
@@ -10658,6 +10969,16 @@ function equals$1(existing, incoming) {
|
|
|
10658
10969
|
if (!(existing_description === incoming_description)) {
|
|
10659
10970
|
return false;
|
|
10660
10971
|
}
|
|
10972
|
+
const existing_lastModifiedDate = existing.lastModifiedDate;
|
|
10973
|
+
const incoming_lastModifiedDate = incoming.lastModifiedDate;
|
|
10974
|
+
if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
|
|
10975
|
+
return false;
|
|
10976
|
+
}
|
|
10977
|
+
const existing_rowLevelOverrideType = existing.rowLevelOverrideType;
|
|
10978
|
+
const incoming_rowLevelOverrideType = incoming.rowLevelOverrideType;
|
|
10979
|
+
if (!(existing_rowLevelOverrideType === incoming_rowLevelOverrideType)) {
|
|
10980
|
+
return false;
|
|
10981
|
+
}
|
|
10661
10982
|
const existing_sourceObject = existing.sourceObject;
|
|
10662
10983
|
const incoming_sourceObject = incoming.sourceObject;
|
|
10663
10984
|
if (!(existing_sourceObject === incoming_sourceObject)) {
|
package/dist/es/es2018/types/src/generated/types/CatalogItemAttributeInputRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PicklistAttributeTypeInputRepresentation as PicklistAttributeTypeInputRepresentation_PicklistAttributeTypeInputRepresentation } from './PicklistAttributeTypeInputRepresentation';
|
|
2
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "17b33d61d728cd79c608dff8fe01fceb";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: CatalogItemAttributeInputRepresentation, existing: CatalogItemAttributeInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CatalogItemAttributeInputRepresentationNormalized;
|
|
@@ -17,6 +17,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
17
17
|
export interface CatalogItemAttributeInputRepresentationNormalized {
|
|
18
18
|
/** Attribute API Name */
|
|
19
19
|
apiName?: string | null;
|
|
20
|
+
/** Context Definition Id */
|
|
21
|
+
contextDefinitionId?: string | null;
|
|
20
22
|
/** Attribute Data Type */
|
|
21
23
|
dataType?: string | null;
|
|
22
24
|
/** Attribute Default Value */
|
|
@@ -45,6 +47,10 @@ export interface CatalogItemAttributeInputRepresentationNormalized {
|
|
|
45
47
|
parent?: string | null;
|
|
46
48
|
/** Picklist Options */
|
|
47
49
|
picklistOptions?: Array<PicklistAttributeTypeInputRepresentation_PicklistAttributeTypeInputRepresentation | null>;
|
|
50
|
+
/** Reference Field for lookup */
|
|
51
|
+
referenceField?: string | null;
|
|
52
|
+
/** Reference Object for lookup */
|
|
53
|
+
referenceObject?: string | null;
|
|
48
54
|
/** Sequence Number */
|
|
49
55
|
sequence?: number | null;
|
|
50
56
|
}
|
|
@@ -56,6 +62,7 @@ export interface CatalogItemAttributeInputRepresentationNormalized {
|
|
|
56
62
|
*/
|
|
57
63
|
export interface CatalogItemAttributeInputRepresentation {
|
|
58
64
|
apiName?: string | null;
|
|
65
|
+
contextDefinitionId?: string | null;
|
|
59
66
|
dataType?: string | null;
|
|
60
67
|
defaultValue?: string | null;
|
|
61
68
|
description?: string | null;
|
|
@@ -70,5 +77,7 @@ export interface CatalogItemAttributeInputRepresentation {
|
|
|
70
77
|
operationType?: string | null;
|
|
71
78
|
parent?: string | null;
|
|
72
79
|
picklistOptions?: Array<PicklistAttributeTypeInputRepresentation_PicklistAttributeTypeInputRepresentation | null>;
|
|
80
|
+
referenceField?: string | null;
|
|
81
|
+
referenceObject?: string | null;
|
|
73
82
|
sequence?: number | null;
|
|
74
83
|
}
|
package/dist/es/es2018/types/src/generated/types/CatalogItemAttributeOutputRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PicklistAttributeTypeOutputRepresentation as PicklistAttributeTypeOutputRepresentation_PicklistAttributeTypeOutputRepresentation } from './PicklistAttributeTypeOutputRepresentation';
|
|
2
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "56047c3264f6e0d4375d956b121d1947";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: CatalogItemAttributeOutputRepresentation, existing: CatalogItemAttributeOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CatalogItemAttributeOutputRepresentationNormalized;
|
|
@@ -17,12 +17,16 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
17
17
|
export interface CatalogItemAttributeOutputRepresentationNormalized {
|
|
18
18
|
/** Attribute Api Name */
|
|
19
19
|
apiName?: string | null;
|
|
20
|
+
/** Attribute base object */
|
|
21
|
+
baseObject?: string | null;
|
|
20
22
|
/** Attribute Data Type */
|
|
21
23
|
dataType?: string | null;
|
|
22
24
|
/** Attribute Default Value */
|
|
23
25
|
defaultValue?: string | null;
|
|
24
26
|
/** Attribute Description */
|
|
25
27
|
description?: string | null;
|
|
28
|
+
/** Type of the attribute field */
|
|
29
|
+
fieldType?: string | null;
|
|
26
30
|
/** Attribute Id */
|
|
27
31
|
id?: string | null;
|
|
28
32
|
/** Attribute Context Attribute Id */
|
|
@@ -47,6 +51,10 @@ export interface CatalogItemAttributeOutputRepresentationNormalized {
|
|
|
47
51
|
parent?: string | null;
|
|
48
52
|
/** Picklist Options */
|
|
49
53
|
picklistOptions?: Array<PicklistAttributeTypeOutputRepresentation_PicklistAttributeTypeOutputRepresentation | null>;
|
|
54
|
+
/** Reference Field for lookup */
|
|
55
|
+
referenceField?: string | null;
|
|
56
|
+
/** Reference Object for lookup */
|
|
57
|
+
referenceObject?: string | null;
|
|
50
58
|
/** Attribute Sequence */
|
|
51
59
|
sequence?: number | null;
|
|
52
60
|
}
|
|
@@ -58,9 +66,11 @@ export interface CatalogItemAttributeOutputRepresentationNormalized {
|
|
|
58
66
|
*/
|
|
59
67
|
export interface CatalogItemAttributeOutputRepresentation {
|
|
60
68
|
apiName?: string | null;
|
|
69
|
+
baseObject?: string | null;
|
|
61
70
|
dataType?: string | null;
|
|
62
71
|
defaultValue?: string | null;
|
|
63
72
|
description?: string | null;
|
|
73
|
+
fieldType?: string | null;
|
|
64
74
|
id?: string | null;
|
|
65
75
|
isContextDefinitionAttribute?: boolean | null;
|
|
66
76
|
isDeleted?: boolean | null;
|
|
@@ -73,5 +83,7 @@ export interface CatalogItemAttributeOutputRepresentation {
|
|
|
73
83
|
name?: string | null;
|
|
74
84
|
parent?: string | null;
|
|
75
85
|
picklistOptions?: Array<PicklistAttributeTypeOutputRepresentation_PicklistAttributeTypeOutputRepresentation | null>;
|
|
86
|
+
referenceField?: string | null;
|
|
87
|
+
referenceObject?: string | null;
|
|
76
88
|
sequence?: number | null;
|
|
77
89
|
}
|