@salesforce/lds-adapters-industries-einstein-aiaccelerator 1.309.0-dev8 → 1.309.0-dev9
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/industries-einstein-aiaccelerator.js +511 -65
- package/dist/es/es2018/types/src/generated/adapters/getPredictions.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/resources/postConnectAiacceleratorV2Predictions.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/types/FieldCount.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/PredictionOutput.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/PredictionOutputObject.d.ts +10 -9
- package/dist/es/es2018/types/src/generated/types/PredictionRequestRepresentation.d.ts +9 -9
- package/dist/es/es2018/types/src/generated/types/PredictionResponseRepresentation.d.ts +11 -11
- package/dist/es/es2018/types/src/generated/types/PredictionWarning.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/Predictor.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/PredictorField.d.ts +11 -11
- package/package.json +4 -4
- package/sfdc/index.js +512 -66
- package/src/raml/api.raml +25 -25
|
@@ -3732,36 +3732,141 @@ function validate$6(obj, path = 'PredictorField') {
|
|
|
3732
3732
|
if (obj.customText !== undefined) {
|
|
3733
3733
|
const obj_customText = obj.customText;
|
|
3734
3734
|
const path_customText = path + '.customText';
|
|
3735
|
-
|
|
3736
|
-
|
|
3735
|
+
let obj_customText_union0 = null;
|
|
3736
|
+
const obj_customText_union0_error = (() => {
|
|
3737
|
+
if (typeof obj_customText !== 'string') {
|
|
3738
|
+
return new TypeError('Expected "string" but received "' + typeof obj_customText + '" (at "' + path_customText + '")');
|
|
3739
|
+
}
|
|
3740
|
+
})();
|
|
3741
|
+
if (obj_customText_union0_error != null) {
|
|
3742
|
+
obj_customText_union0 = obj_customText_union0_error.message;
|
|
3743
|
+
}
|
|
3744
|
+
let obj_customText_union1 = null;
|
|
3745
|
+
const obj_customText_union1_error = (() => {
|
|
3746
|
+
if (obj_customText !== null) {
|
|
3747
|
+
return new TypeError('Expected "null" but received "' + typeof obj_customText + '" (at "' + path_customText + '")');
|
|
3748
|
+
}
|
|
3749
|
+
})();
|
|
3750
|
+
if (obj_customText_union1_error != null) {
|
|
3751
|
+
obj_customText_union1 = obj_customText_union1_error.message;
|
|
3752
|
+
}
|
|
3753
|
+
if (obj_customText_union0 && obj_customText_union1) {
|
|
3754
|
+
let message = 'Object doesn\'t match union (at "' + path_customText + '")';
|
|
3755
|
+
message += '\n' + obj_customText_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3756
|
+
message += '\n' + obj_customText_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3757
|
+
return new TypeError(message);
|
|
3737
3758
|
}
|
|
3738
3759
|
}
|
|
3739
3760
|
if (obj.label !== undefined) {
|
|
3740
3761
|
const obj_label = obj.label;
|
|
3741
3762
|
const path_label = path + '.label';
|
|
3742
|
-
|
|
3743
|
-
|
|
3763
|
+
let obj_label_union0 = null;
|
|
3764
|
+
const obj_label_union0_error = (() => {
|
|
3765
|
+
if (typeof obj_label !== 'string') {
|
|
3766
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
3767
|
+
}
|
|
3768
|
+
})();
|
|
3769
|
+
if (obj_label_union0_error != null) {
|
|
3770
|
+
obj_label_union0 = obj_label_union0_error.message;
|
|
3771
|
+
}
|
|
3772
|
+
let obj_label_union1 = null;
|
|
3773
|
+
const obj_label_union1_error = (() => {
|
|
3774
|
+
if (obj_label !== null) {
|
|
3775
|
+
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
3776
|
+
}
|
|
3777
|
+
})();
|
|
3778
|
+
if (obj_label_union1_error != null) {
|
|
3779
|
+
obj_label_union1 = obj_label_union1_error.message;
|
|
3780
|
+
}
|
|
3781
|
+
if (obj_label_union0 && obj_label_union1) {
|
|
3782
|
+
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
3783
|
+
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3784
|
+
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3785
|
+
return new TypeError(message);
|
|
3744
3786
|
}
|
|
3745
3787
|
}
|
|
3746
3788
|
if (obj.name !== undefined) {
|
|
3747
3789
|
const obj_name = obj.name;
|
|
3748
3790
|
const path_name = path + '.name';
|
|
3749
|
-
|
|
3750
|
-
|
|
3791
|
+
let obj_name_union0 = null;
|
|
3792
|
+
const obj_name_union0_error = (() => {
|
|
3793
|
+
if (typeof obj_name !== 'string') {
|
|
3794
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
3795
|
+
}
|
|
3796
|
+
})();
|
|
3797
|
+
if (obj_name_union0_error != null) {
|
|
3798
|
+
obj_name_union0 = obj_name_union0_error.message;
|
|
3799
|
+
}
|
|
3800
|
+
let obj_name_union1 = null;
|
|
3801
|
+
const obj_name_union1_error = (() => {
|
|
3802
|
+
if (obj_name !== null) {
|
|
3803
|
+
return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
3804
|
+
}
|
|
3805
|
+
})();
|
|
3806
|
+
if (obj_name_union1_error != null) {
|
|
3807
|
+
obj_name_union1 = obj_name_union1_error.message;
|
|
3808
|
+
}
|
|
3809
|
+
if (obj_name_union0 && obj_name_union1) {
|
|
3810
|
+
let message = 'Object doesn\'t match union (at "' + path_name + '")';
|
|
3811
|
+
message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3812
|
+
message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3813
|
+
return new TypeError(message);
|
|
3751
3814
|
}
|
|
3752
3815
|
}
|
|
3753
3816
|
if (obj.prescribedValue !== undefined) {
|
|
3754
3817
|
const obj_prescribedValue = obj.prescribedValue;
|
|
3755
3818
|
const path_prescribedValue = path + '.prescribedValue';
|
|
3756
|
-
|
|
3757
|
-
|
|
3819
|
+
let obj_prescribedValue_union0 = null;
|
|
3820
|
+
const obj_prescribedValue_union0_error = (() => {
|
|
3821
|
+
if (typeof obj_prescribedValue !== 'string') {
|
|
3822
|
+
return new TypeError('Expected "string" but received "' + typeof obj_prescribedValue + '" (at "' + path_prescribedValue + '")');
|
|
3823
|
+
}
|
|
3824
|
+
})();
|
|
3825
|
+
if (obj_prescribedValue_union0_error != null) {
|
|
3826
|
+
obj_prescribedValue_union0 = obj_prescribedValue_union0_error.message;
|
|
3827
|
+
}
|
|
3828
|
+
let obj_prescribedValue_union1 = null;
|
|
3829
|
+
const obj_prescribedValue_union1_error = (() => {
|
|
3830
|
+
if (obj_prescribedValue !== null) {
|
|
3831
|
+
return new TypeError('Expected "null" but received "' + typeof obj_prescribedValue + '" (at "' + path_prescribedValue + '")');
|
|
3832
|
+
}
|
|
3833
|
+
})();
|
|
3834
|
+
if (obj_prescribedValue_union1_error != null) {
|
|
3835
|
+
obj_prescribedValue_union1 = obj_prescribedValue_union1_error.message;
|
|
3836
|
+
}
|
|
3837
|
+
if (obj_prescribedValue_union0 && obj_prescribedValue_union1) {
|
|
3838
|
+
let message = 'Object doesn\'t match union (at "' + path_prescribedValue + '")';
|
|
3839
|
+
message += '\n' + obj_prescribedValue_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3840
|
+
message += '\n' + obj_prescribedValue_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3841
|
+
return new TypeError(message);
|
|
3758
3842
|
}
|
|
3759
3843
|
}
|
|
3760
3844
|
if (obj.value !== undefined) {
|
|
3761
3845
|
const obj_value = obj.value;
|
|
3762
3846
|
const path_value = path + '.value';
|
|
3763
|
-
|
|
3764
|
-
|
|
3847
|
+
let obj_value_union0 = null;
|
|
3848
|
+
const obj_value_union0_error = (() => {
|
|
3849
|
+
if (typeof obj_value !== 'string') {
|
|
3850
|
+
return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
3851
|
+
}
|
|
3852
|
+
})();
|
|
3853
|
+
if (obj_value_union0_error != null) {
|
|
3854
|
+
obj_value_union0 = obj_value_union0_error.message;
|
|
3855
|
+
}
|
|
3856
|
+
let obj_value_union1 = null;
|
|
3857
|
+
const obj_value_union1_error = (() => {
|
|
3858
|
+
if (obj_value !== null) {
|
|
3859
|
+
return new TypeError('Expected "null" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
3860
|
+
}
|
|
3861
|
+
})();
|
|
3862
|
+
if (obj_value_union1_error != null) {
|
|
3863
|
+
obj_value_union1 = obj_value_union1_error.message;
|
|
3864
|
+
}
|
|
3865
|
+
if (obj_value_union0 && obj_value_union1) {
|
|
3866
|
+
let message = 'Object doesn\'t match union (at "' + path_value + '")';
|
|
3867
|
+
message += '\n' + obj_value_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3868
|
+
message += '\n' + obj_value_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3869
|
+
return new TypeError(message);
|
|
3765
3870
|
}
|
|
3766
3871
|
}
|
|
3767
3872
|
})();
|
|
@@ -3789,10 +3894,31 @@ function validate$5(obj, path = 'Predictor') {
|
|
|
3789
3894
|
for (let i = 0; i < obj_predictorFields.length; i++) {
|
|
3790
3895
|
const obj_predictorFields_item = obj_predictorFields[i];
|
|
3791
3896
|
const path_predictorFields_item = path_predictorFields + '[' + i + ']';
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3897
|
+
let obj_predictorFields_item_union0 = null;
|
|
3898
|
+
const obj_predictorFields_item_union0_error = (() => {
|
|
3899
|
+
const referencepath_predictorFields_itemValidationError = validate$6(obj_predictorFields_item, path_predictorFields_item);
|
|
3900
|
+
if (referencepath_predictorFields_itemValidationError !== null) {
|
|
3901
|
+
let message = 'Object doesn\'t match PredictorField (at "' + path_predictorFields_item + '")\n';
|
|
3902
|
+
message += referencepath_predictorFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3903
|
+
return new TypeError(message);
|
|
3904
|
+
}
|
|
3905
|
+
})();
|
|
3906
|
+
if (obj_predictorFields_item_union0_error != null) {
|
|
3907
|
+
obj_predictorFields_item_union0 = obj_predictorFields_item_union0_error.message;
|
|
3908
|
+
}
|
|
3909
|
+
let obj_predictorFields_item_union1 = null;
|
|
3910
|
+
const obj_predictorFields_item_union1_error = (() => {
|
|
3911
|
+
if (obj_predictorFields_item !== null) {
|
|
3912
|
+
return new TypeError('Expected "null" but received "' + typeof obj_predictorFields_item + '" (at "' + path_predictorFields_item + '")');
|
|
3913
|
+
}
|
|
3914
|
+
})();
|
|
3915
|
+
if (obj_predictorFields_item_union1_error != null) {
|
|
3916
|
+
obj_predictorFields_item_union1 = obj_predictorFields_item_union1_error.message;
|
|
3917
|
+
}
|
|
3918
|
+
if (obj_predictorFields_item_union0 && obj_predictorFields_item_union1) {
|
|
3919
|
+
let message = 'Object doesn\'t match union (at "' + path_predictorFields_item + '")';
|
|
3920
|
+
message += '\n' + obj_predictorFields_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3921
|
+
message += '\n' + obj_predictorFields_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3796
3922
|
return new TypeError(message);
|
|
3797
3923
|
}
|
|
3798
3924
|
}
|
|
@@ -3840,8 +3966,29 @@ function validate$4(obj, path = 'PredictionOutput') {
|
|
|
3840
3966
|
if (obj.customPredictionLabel !== undefined) {
|
|
3841
3967
|
const obj_customPredictionLabel = obj.customPredictionLabel;
|
|
3842
3968
|
const path_customPredictionLabel = path + '.customPredictionLabel';
|
|
3843
|
-
|
|
3844
|
-
|
|
3969
|
+
let obj_customPredictionLabel_union0 = null;
|
|
3970
|
+
const obj_customPredictionLabel_union0_error = (() => {
|
|
3971
|
+
if (typeof obj_customPredictionLabel !== 'string') {
|
|
3972
|
+
return new TypeError('Expected "string" but received "' + typeof obj_customPredictionLabel + '" (at "' + path_customPredictionLabel + '")');
|
|
3973
|
+
}
|
|
3974
|
+
})();
|
|
3975
|
+
if (obj_customPredictionLabel_union0_error != null) {
|
|
3976
|
+
obj_customPredictionLabel_union0 = obj_customPredictionLabel_union0_error.message;
|
|
3977
|
+
}
|
|
3978
|
+
let obj_customPredictionLabel_union1 = null;
|
|
3979
|
+
const obj_customPredictionLabel_union1_error = (() => {
|
|
3980
|
+
if (obj_customPredictionLabel !== null) {
|
|
3981
|
+
return new TypeError('Expected "null" but received "' + typeof obj_customPredictionLabel + '" (at "' + path_customPredictionLabel + '")');
|
|
3982
|
+
}
|
|
3983
|
+
})();
|
|
3984
|
+
if (obj_customPredictionLabel_union1_error != null) {
|
|
3985
|
+
obj_customPredictionLabel_union1 = obj_customPredictionLabel_union1_error.message;
|
|
3986
|
+
}
|
|
3987
|
+
if (obj_customPredictionLabel_union0 && obj_customPredictionLabel_union1) {
|
|
3988
|
+
let message = 'Object doesn\'t match union (at "' + path_customPredictionLabel + '")';
|
|
3989
|
+
message += '\n' + obj_customPredictionLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3990
|
+
message += '\n' + obj_customPredictionLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3991
|
+
return new TypeError(message);
|
|
3845
3992
|
}
|
|
3846
3993
|
}
|
|
3847
3994
|
if (obj.predictionScore !== undefined) {
|
|
@@ -3860,10 +4007,31 @@ function validate$4(obj, path = 'PredictionOutput') {
|
|
|
3860
4007
|
for (let i = 0; i < obj_topPredictors.length; i++) {
|
|
3861
4008
|
const obj_topPredictors_item = obj_topPredictors[i];
|
|
3862
4009
|
const path_topPredictors_item = path_topPredictors + '[' + i + ']';
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
4010
|
+
let obj_topPredictors_item_union0 = null;
|
|
4011
|
+
const obj_topPredictors_item_union0_error = (() => {
|
|
4012
|
+
const referencepath_topPredictors_itemValidationError = validate$5(obj_topPredictors_item, path_topPredictors_item);
|
|
4013
|
+
if (referencepath_topPredictors_itemValidationError !== null) {
|
|
4014
|
+
let message = 'Object doesn\'t match Predictor (at "' + path_topPredictors_item + '")\n';
|
|
4015
|
+
message += referencepath_topPredictors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4016
|
+
return new TypeError(message);
|
|
4017
|
+
}
|
|
4018
|
+
})();
|
|
4019
|
+
if (obj_topPredictors_item_union0_error != null) {
|
|
4020
|
+
obj_topPredictors_item_union0 = obj_topPredictors_item_union0_error.message;
|
|
4021
|
+
}
|
|
4022
|
+
let obj_topPredictors_item_union1 = null;
|
|
4023
|
+
const obj_topPredictors_item_union1_error = (() => {
|
|
4024
|
+
if (obj_topPredictors_item !== null) {
|
|
4025
|
+
return new TypeError('Expected "null" but received "' + typeof obj_topPredictors_item + '" (at "' + path_topPredictors_item + '")');
|
|
4026
|
+
}
|
|
4027
|
+
})();
|
|
4028
|
+
if (obj_topPredictors_item_union1_error != null) {
|
|
4029
|
+
obj_topPredictors_item_union1 = obj_topPredictors_item_union1_error.message;
|
|
4030
|
+
}
|
|
4031
|
+
if (obj_topPredictors_item_union0 && obj_topPredictors_item_union1) {
|
|
4032
|
+
let message = 'Object doesn\'t match union (at "' + path_topPredictors_item + '")';
|
|
4033
|
+
message += '\n' + obj_topPredictors_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4034
|
+
message += '\n' + obj_topPredictors_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3867
4035
|
return new TypeError(message);
|
|
3868
4036
|
}
|
|
3869
4037
|
}
|
|
@@ -3880,15 +4048,57 @@ function validate$3(obj, path = 'FieldCount') {
|
|
|
3880
4048
|
if (obj.count !== undefined) {
|
|
3881
4049
|
const obj_count = obj.count;
|
|
3882
4050
|
const path_count = path + '.count';
|
|
3883
|
-
|
|
3884
|
-
|
|
4051
|
+
let obj_count_union0 = null;
|
|
4052
|
+
const obj_count_union0_error = (() => {
|
|
4053
|
+
if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
|
|
4054
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
|
|
4055
|
+
}
|
|
4056
|
+
})();
|
|
4057
|
+
if (obj_count_union0_error != null) {
|
|
4058
|
+
obj_count_union0 = obj_count_union0_error.message;
|
|
4059
|
+
}
|
|
4060
|
+
let obj_count_union1 = null;
|
|
4061
|
+
const obj_count_union1_error = (() => {
|
|
4062
|
+
if (obj_count !== null) {
|
|
4063
|
+
return new TypeError('Expected "null" but received "' + typeof obj_count + '" (at "' + path_count + '")');
|
|
4064
|
+
}
|
|
4065
|
+
})();
|
|
4066
|
+
if (obj_count_union1_error != null) {
|
|
4067
|
+
obj_count_union1 = obj_count_union1_error.message;
|
|
4068
|
+
}
|
|
4069
|
+
if (obj_count_union0 && obj_count_union1) {
|
|
4070
|
+
let message = 'Object doesn\'t match union (at "' + path_count + '")';
|
|
4071
|
+
message += '\n' + obj_count_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4072
|
+
message += '\n' + obj_count_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4073
|
+
return new TypeError(message);
|
|
3885
4074
|
}
|
|
3886
4075
|
}
|
|
3887
4076
|
if (obj.fieldValue !== undefined) {
|
|
3888
4077
|
const obj_fieldValue = obj.fieldValue;
|
|
3889
4078
|
const path_fieldValue = path + '.fieldValue';
|
|
3890
|
-
|
|
3891
|
-
|
|
4079
|
+
let obj_fieldValue_union0 = null;
|
|
4080
|
+
const obj_fieldValue_union0_error = (() => {
|
|
4081
|
+
if (typeof obj_fieldValue !== 'string') {
|
|
4082
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldValue + '" (at "' + path_fieldValue + '")');
|
|
4083
|
+
}
|
|
4084
|
+
})();
|
|
4085
|
+
if (obj_fieldValue_union0_error != null) {
|
|
4086
|
+
obj_fieldValue_union0 = obj_fieldValue_union0_error.message;
|
|
4087
|
+
}
|
|
4088
|
+
let obj_fieldValue_union1 = null;
|
|
4089
|
+
const obj_fieldValue_union1_error = (() => {
|
|
4090
|
+
if (obj_fieldValue !== null) {
|
|
4091
|
+
return new TypeError('Expected "null" but received "' + typeof obj_fieldValue + '" (at "' + path_fieldValue + '")');
|
|
4092
|
+
}
|
|
4093
|
+
})();
|
|
4094
|
+
if (obj_fieldValue_union1_error != null) {
|
|
4095
|
+
obj_fieldValue_union1 = obj_fieldValue_union1_error.message;
|
|
4096
|
+
}
|
|
4097
|
+
if (obj_fieldValue_union0 && obj_fieldValue_union1) {
|
|
4098
|
+
let message = 'Object doesn\'t match union (at "' + path_fieldValue + '")';
|
|
4099
|
+
message += '\n' + obj_fieldValue_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4100
|
+
message += '\n' + obj_fieldValue_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4101
|
+
return new TypeError(message);
|
|
3892
4102
|
}
|
|
3893
4103
|
}
|
|
3894
4104
|
})();
|
|
@@ -3909,8 +4119,29 @@ function validate$2(obj, path = 'PredictionWarning') {
|
|
|
3909
4119
|
for (let i = 0; i < obj_missingFieldNames.length; i++) {
|
|
3910
4120
|
const obj_missingFieldNames_item = obj_missingFieldNames[i];
|
|
3911
4121
|
const path_missingFieldNames_item = path_missingFieldNames + '[' + i + ']';
|
|
3912
|
-
|
|
3913
|
-
|
|
4122
|
+
let obj_missingFieldNames_item_union0 = null;
|
|
4123
|
+
const obj_missingFieldNames_item_union0_error = (() => {
|
|
4124
|
+
if (typeof obj_missingFieldNames_item !== 'string') {
|
|
4125
|
+
return new TypeError('Expected "string" but received "' + typeof obj_missingFieldNames_item + '" (at "' + path_missingFieldNames_item + '")');
|
|
4126
|
+
}
|
|
4127
|
+
})();
|
|
4128
|
+
if (obj_missingFieldNames_item_union0_error != null) {
|
|
4129
|
+
obj_missingFieldNames_item_union0 = obj_missingFieldNames_item_union0_error.message;
|
|
4130
|
+
}
|
|
4131
|
+
let obj_missingFieldNames_item_union1 = null;
|
|
4132
|
+
const obj_missingFieldNames_item_union1_error = (() => {
|
|
4133
|
+
if (obj_missingFieldNames_item !== null) {
|
|
4134
|
+
return new TypeError('Expected "null" but received "' + typeof obj_missingFieldNames_item + '" (at "' + path_missingFieldNames_item + '")');
|
|
4135
|
+
}
|
|
4136
|
+
})();
|
|
4137
|
+
if (obj_missingFieldNames_item_union1_error != null) {
|
|
4138
|
+
obj_missingFieldNames_item_union1 = obj_missingFieldNames_item_union1_error.message;
|
|
4139
|
+
}
|
|
4140
|
+
if (obj_missingFieldNames_item_union0 && obj_missingFieldNames_item_union1) {
|
|
4141
|
+
let message = 'Object doesn\'t match union (at "' + path_missingFieldNames_item + '")';
|
|
4142
|
+
message += '\n' + obj_missingFieldNames_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4143
|
+
message += '\n' + obj_missingFieldNames_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4144
|
+
return new TypeError(message);
|
|
3914
4145
|
}
|
|
3915
4146
|
}
|
|
3916
4147
|
}
|
|
@@ -3923,10 +4154,31 @@ function validate$2(obj, path = 'PredictionWarning') {
|
|
|
3923
4154
|
for (let i = 0; i < obj_outOfBoundFields.length; i++) {
|
|
3924
4155
|
const obj_outOfBoundFields_item = obj_outOfBoundFields[i];
|
|
3925
4156
|
const path_outOfBoundFields_item = path_outOfBoundFields + '[' + i + ']';
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
4157
|
+
let obj_outOfBoundFields_item_union0 = null;
|
|
4158
|
+
const obj_outOfBoundFields_item_union0_error = (() => {
|
|
4159
|
+
const referencepath_outOfBoundFields_itemValidationError = validate$3(obj_outOfBoundFields_item, path_outOfBoundFields_item);
|
|
4160
|
+
if (referencepath_outOfBoundFields_itemValidationError !== null) {
|
|
4161
|
+
let message = 'Object doesn\'t match FieldCount (at "' + path_outOfBoundFields_item + '")\n';
|
|
4162
|
+
message += referencepath_outOfBoundFields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4163
|
+
return new TypeError(message);
|
|
4164
|
+
}
|
|
4165
|
+
})();
|
|
4166
|
+
if (obj_outOfBoundFields_item_union0_error != null) {
|
|
4167
|
+
obj_outOfBoundFields_item_union0 = obj_outOfBoundFields_item_union0_error.message;
|
|
4168
|
+
}
|
|
4169
|
+
let obj_outOfBoundFields_item_union1 = null;
|
|
4170
|
+
const obj_outOfBoundFields_item_union1_error = (() => {
|
|
4171
|
+
if (obj_outOfBoundFields_item !== null) {
|
|
4172
|
+
return new TypeError('Expected "null" but received "' + typeof obj_outOfBoundFields_item + '" (at "' + path_outOfBoundFields_item + '")');
|
|
4173
|
+
}
|
|
4174
|
+
})();
|
|
4175
|
+
if (obj_outOfBoundFields_item_union1_error != null) {
|
|
4176
|
+
obj_outOfBoundFields_item_union1 = obj_outOfBoundFields_item_union1_error.message;
|
|
4177
|
+
}
|
|
4178
|
+
if (obj_outOfBoundFields_item_union0 && obj_outOfBoundFields_item_union1) {
|
|
4179
|
+
let message = 'Object doesn\'t match union (at "' + path_outOfBoundFields_item + '")';
|
|
4180
|
+
message += '\n' + obj_outOfBoundFields_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4181
|
+
message += '\n' + obj_outOfBoundFields_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3930
4182
|
return new TypeError(message);
|
|
3931
4183
|
}
|
|
3932
4184
|
}
|
|
@@ -3949,10 +4201,31 @@ function validate$1(obj, path = 'PredictionOutputObject') {
|
|
|
3949
4201
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
3950
4202
|
const obj_errors_item = obj_errors[i];
|
|
3951
4203
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
4204
|
+
let obj_errors_item_union0 = null;
|
|
4205
|
+
const obj_errors_item_union0_error = (() => {
|
|
4206
|
+
const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
|
|
4207
|
+
if (referencepath_errors_itemValidationError !== null) {
|
|
4208
|
+
let message = 'Object doesn\'t match Error (at "' + path_errors_item + '")\n';
|
|
4209
|
+
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4210
|
+
return new TypeError(message);
|
|
4211
|
+
}
|
|
4212
|
+
})();
|
|
4213
|
+
if (obj_errors_item_union0_error != null) {
|
|
4214
|
+
obj_errors_item_union0 = obj_errors_item_union0_error.message;
|
|
4215
|
+
}
|
|
4216
|
+
let obj_errors_item_union1 = null;
|
|
4217
|
+
const obj_errors_item_union1_error = (() => {
|
|
4218
|
+
if (obj_errors_item !== null) {
|
|
4219
|
+
return new TypeError('Expected "null" but received "' + typeof obj_errors_item + '" (at "' + path_errors_item + '")');
|
|
4220
|
+
}
|
|
4221
|
+
})();
|
|
4222
|
+
if (obj_errors_item_union1_error != null) {
|
|
4223
|
+
obj_errors_item_union1 = obj_errors_item_union1_error.message;
|
|
4224
|
+
}
|
|
4225
|
+
if (obj_errors_item_union0 && obj_errors_item_union1) {
|
|
4226
|
+
let message = 'Object doesn\'t match union (at "' + path_errors_item + '")';
|
|
4227
|
+
message += '\n' + obj_errors_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4228
|
+
message += '\n' + obj_errors_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3956
4229
|
return new TypeError(message);
|
|
3957
4230
|
}
|
|
3958
4231
|
}
|
|
@@ -3992,10 +4265,31 @@ function validate$1(obj, path = 'PredictionOutputObject') {
|
|
|
3992
4265
|
for (let i = 0; i < obj_predictionOutput.length; i++) {
|
|
3993
4266
|
const obj_predictionOutput_item = obj_predictionOutput[i];
|
|
3994
4267
|
const path_predictionOutput_item = path_predictionOutput + '[' + i + ']';
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
4268
|
+
let obj_predictionOutput_item_union0 = null;
|
|
4269
|
+
const obj_predictionOutput_item_union0_error = (() => {
|
|
4270
|
+
const referencepath_predictionOutput_itemValidationError = validate$4(obj_predictionOutput_item, path_predictionOutput_item);
|
|
4271
|
+
if (referencepath_predictionOutput_itemValidationError !== null) {
|
|
4272
|
+
let message = 'Object doesn\'t match PredictionOutput (at "' + path_predictionOutput_item + '")\n';
|
|
4273
|
+
message += referencepath_predictionOutput_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4274
|
+
return new TypeError(message);
|
|
4275
|
+
}
|
|
4276
|
+
})();
|
|
4277
|
+
if (obj_predictionOutput_item_union0_error != null) {
|
|
4278
|
+
obj_predictionOutput_item_union0 = obj_predictionOutput_item_union0_error.message;
|
|
4279
|
+
}
|
|
4280
|
+
let obj_predictionOutput_item_union1 = null;
|
|
4281
|
+
const obj_predictionOutput_item_union1_error = (() => {
|
|
4282
|
+
if (obj_predictionOutput_item !== null) {
|
|
4283
|
+
return new TypeError('Expected "null" but received "' + typeof obj_predictionOutput_item + '" (at "' + path_predictionOutput_item + '")');
|
|
4284
|
+
}
|
|
4285
|
+
})();
|
|
4286
|
+
if (obj_predictionOutput_item_union1_error != null) {
|
|
4287
|
+
obj_predictionOutput_item_union1 = obj_predictionOutput_item_union1_error.message;
|
|
4288
|
+
}
|
|
4289
|
+
if (obj_predictionOutput_item_union0 && obj_predictionOutput_item_union1) {
|
|
4290
|
+
let message = 'Object doesn\'t match union (at "' + path_predictionOutput_item + '")';
|
|
4291
|
+
message += '\n' + obj_predictionOutput_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4292
|
+
message += '\n' + obj_predictionOutput_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3999
4293
|
return new TypeError(message);
|
|
4000
4294
|
}
|
|
4001
4295
|
}
|
|
@@ -4003,35 +4297,75 @@ function validate$1(obj, path = 'PredictionOutputObject') {
|
|
|
4003
4297
|
if (obj.predictionWarning !== undefined) {
|
|
4004
4298
|
const obj_predictionWarning = obj.predictionWarning;
|
|
4005
4299
|
const path_predictionWarning = path + '.predictionWarning';
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4300
|
+
let obj_predictionWarning_union0 = null;
|
|
4301
|
+
const obj_predictionWarning_union0_error = (() => {
|
|
4302
|
+
const referencepath_predictionWarningValidationError = validate$2(obj_predictionWarning, path_predictionWarning);
|
|
4303
|
+
if (referencepath_predictionWarningValidationError !== null) {
|
|
4304
|
+
let message = 'Object doesn\'t match PredictionWarning (at "' + path_predictionWarning + '")\n';
|
|
4305
|
+
message += referencepath_predictionWarningValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4306
|
+
return new TypeError(message);
|
|
4307
|
+
}
|
|
4308
|
+
})();
|
|
4309
|
+
if (obj_predictionWarning_union0_error != null) {
|
|
4310
|
+
obj_predictionWarning_union0 = obj_predictionWarning_union0_error.message;
|
|
4311
|
+
}
|
|
4312
|
+
let obj_predictionWarning_union1 = null;
|
|
4313
|
+
const obj_predictionWarning_union1_error = (() => {
|
|
4314
|
+
if (obj_predictionWarning !== null) {
|
|
4315
|
+
return new TypeError('Expected "null" but received "' + typeof obj_predictionWarning + '" (at "' + path_predictionWarning + '")');
|
|
4316
|
+
}
|
|
4317
|
+
})();
|
|
4318
|
+
if (obj_predictionWarning_union1_error != null) {
|
|
4319
|
+
obj_predictionWarning_union1 = obj_predictionWarning_union1_error.message;
|
|
4320
|
+
}
|
|
4321
|
+
if (obj_predictionWarning_union0 && obj_predictionWarning_union1) {
|
|
4322
|
+
let message = 'Object doesn\'t match union (at "' + path_predictionWarning + '")';
|
|
4323
|
+
message += '\n' + obj_predictionWarning_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4324
|
+
message += '\n' + obj_predictionWarning_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4010
4325
|
return new TypeError(message);
|
|
4011
4326
|
}
|
|
4012
4327
|
}
|
|
4013
4328
|
const obj_recordId = obj.recordId;
|
|
4014
4329
|
const path_recordId = path + '.recordId';
|
|
4015
|
-
|
|
4016
|
-
|
|
4330
|
+
let obj_recordId_union0 = null;
|
|
4331
|
+
const obj_recordId_union0_error = (() => {
|
|
4332
|
+
if (typeof obj_recordId !== 'string') {
|
|
4333
|
+
return new TypeError('Expected "string" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
|
|
4334
|
+
}
|
|
4335
|
+
})();
|
|
4336
|
+
if (obj_recordId_union0_error != null) {
|
|
4337
|
+
obj_recordId_union0 = obj_recordId_union0_error.message;
|
|
4338
|
+
}
|
|
4339
|
+
let obj_recordId_union1 = null;
|
|
4340
|
+
const obj_recordId_union1_error = (() => {
|
|
4341
|
+
if (obj_recordId !== null) {
|
|
4342
|
+
return new TypeError('Expected "null" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
|
|
4343
|
+
}
|
|
4344
|
+
})();
|
|
4345
|
+
if (obj_recordId_union1_error != null) {
|
|
4346
|
+
obj_recordId_union1 = obj_recordId_union1_error.message;
|
|
4347
|
+
}
|
|
4348
|
+
if (obj_recordId_union0 && obj_recordId_union1) {
|
|
4349
|
+
let message = 'Object doesn\'t match union (at "' + path_recordId + '")';
|
|
4350
|
+
message += '\n' + obj_recordId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4351
|
+
message += '\n' + obj_recordId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4352
|
+
return new TypeError(message);
|
|
4017
4353
|
}
|
|
4018
4354
|
})();
|
|
4019
4355
|
return v_error === undefined ? null : v_error;
|
|
4020
4356
|
}
|
|
4021
4357
|
|
|
4022
4358
|
const TTL = 1000;
|
|
4023
|
-
const VERSION = "
|
|
4359
|
+
const VERSION = "b41e19933ddff4d62138587673e7d951";
|
|
4024
4360
|
function validate(obj, path = 'PredictionResponseRepresentation') {
|
|
4025
4361
|
const v_error = (() => {
|
|
4026
4362
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4027
4363
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4028
4364
|
}
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
return new TypeError('Expected "string" but received "' + typeof obj_predictionModel + '" (at "' + path_predictionModel + '")');
|
|
4034
|
-
}
|
|
4365
|
+
const obj_predictionModel = obj.predictionModel;
|
|
4366
|
+
const path_predictionModel = path + '.predictionModel';
|
|
4367
|
+
if (typeof obj_predictionModel !== 'string') {
|
|
4368
|
+
return new TypeError('Expected "string" but received "' + typeof obj_predictionModel + '" (at "' + path_predictionModel + '")');
|
|
4035
4369
|
}
|
|
4036
4370
|
if (obj.predictionOutputObjects !== undefined) {
|
|
4037
4371
|
const obj_predictionOutputObjects = obj.predictionOutputObjects;
|
|
@@ -4042,10 +4376,31 @@ function validate(obj, path = 'PredictionResponseRepresentation') {
|
|
|
4042
4376
|
for (let i = 0; i < obj_predictionOutputObjects.length; i++) {
|
|
4043
4377
|
const obj_predictionOutputObjects_item = obj_predictionOutputObjects[i];
|
|
4044
4378
|
const path_predictionOutputObjects_item = path_predictionOutputObjects + '[' + i + ']';
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4379
|
+
let obj_predictionOutputObjects_item_union0 = null;
|
|
4380
|
+
const obj_predictionOutputObjects_item_union0_error = (() => {
|
|
4381
|
+
const referencepath_predictionOutputObjects_itemValidationError = validate$1(obj_predictionOutputObjects_item, path_predictionOutputObjects_item);
|
|
4382
|
+
if (referencepath_predictionOutputObjects_itemValidationError !== null) {
|
|
4383
|
+
let message = 'Object doesn\'t match PredictionOutputObject (at "' + path_predictionOutputObjects_item + '")\n';
|
|
4384
|
+
message += referencepath_predictionOutputObjects_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4385
|
+
return new TypeError(message);
|
|
4386
|
+
}
|
|
4387
|
+
})();
|
|
4388
|
+
if (obj_predictionOutputObjects_item_union0_error != null) {
|
|
4389
|
+
obj_predictionOutputObjects_item_union0 = obj_predictionOutputObjects_item_union0_error.message;
|
|
4390
|
+
}
|
|
4391
|
+
let obj_predictionOutputObjects_item_union1 = null;
|
|
4392
|
+
const obj_predictionOutputObjects_item_union1_error = (() => {
|
|
4393
|
+
if (obj_predictionOutputObjects_item !== null) {
|
|
4394
|
+
return new TypeError('Expected "null" but received "' + typeof obj_predictionOutputObjects_item + '" (at "' + path_predictionOutputObjects_item + '")');
|
|
4395
|
+
}
|
|
4396
|
+
})();
|
|
4397
|
+
if (obj_predictionOutputObjects_item_union1_error != null) {
|
|
4398
|
+
obj_predictionOutputObjects_item_union1 = obj_predictionOutputObjects_item_union1_error.message;
|
|
4399
|
+
}
|
|
4400
|
+
if (obj_predictionOutputObjects_item_union0 && obj_predictionOutputObjects_item_union1) {
|
|
4401
|
+
let message = 'Object doesn\'t match union (at "' + path_predictionOutputObjects_item + '")';
|
|
4402
|
+
message += '\n' + obj_predictionOutputObjects_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4403
|
+
message += '\n' + obj_predictionOutputObjects_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4049
4404
|
return new TypeError(message);
|
|
4050
4405
|
}
|
|
4051
4406
|
}
|
|
@@ -4053,15 +4408,57 @@ function validate(obj, path = 'PredictionResponseRepresentation') {
|
|
|
4053
4408
|
if (obj.predictionPlatform !== undefined) {
|
|
4054
4409
|
const obj_predictionPlatform = obj.predictionPlatform;
|
|
4055
4410
|
const path_predictionPlatform = path + '.predictionPlatform';
|
|
4056
|
-
|
|
4057
|
-
|
|
4411
|
+
let obj_predictionPlatform_union0 = null;
|
|
4412
|
+
const obj_predictionPlatform_union0_error = (() => {
|
|
4413
|
+
if (typeof obj_predictionPlatform !== 'string') {
|
|
4414
|
+
return new TypeError('Expected "string" but received "' + typeof obj_predictionPlatform + '" (at "' + path_predictionPlatform + '")');
|
|
4415
|
+
}
|
|
4416
|
+
})();
|
|
4417
|
+
if (obj_predictionPlatform_union0_error != null) {
|
|
4418
|
+
obj_predictionPlatform_union0 = obj_predictionPlatform_union0_error.message;
|
|
4419
|
+
}
|
|
4420
|
+
let obj_predictionPlatform_union1 = null;
|
|
4421
|
+
const obj_predictionPlatform_union1_error = (() => {
|
|
4422
|
+
if (obj_predictionPlatform !== null) {
|
|
4423
|
+
return new TypeError('Expected "null" but received "' + typeof obj_predictionPlatform + '" (at "' + path_predictionPlatform + '")');
|
|
4424
|
+
}
|
|
4425
|
+
})();
|
|
4426
|
+
if (obj_predictionPlatform_union1_error != null) {
|
|
4427
|
+
obj_predictionPlatform_union1 = obj_predictionPlatform_union1_error.message;
|
|
4428
|
+
}
|
|
4429
|
+
if (obj_predictionPlatform_union0 && obj_predictionPlatform_union1) {
|
|
4430
|
+
let message = 'Object doesn\'t match union (at "' + path_predictionPlatform + '")';
|
|
4431
|
+
message += '\n' + obj_predictionPlatform_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4432
|
+
message += '\n' + obj_predictionPlatform_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4433
|
+
return new TypeError(message);
|
|
4058
4434
|
}
|
|
4059
4435
|
}
|
|
4060
4436
|
if (obj.predictionType !== undefined) {
|
|
4061
4437
|
const obj_predictionType = obj.predictionType;
|
|
4062
4438
|
const path_predictionType = path + '.predictionType';
|
|
4063
|
-
|
|
4064
|
-
|
|
4439
|
+
let obj_predictionType_union0 = null;
|
|
4440
|
+
const obj_predictionType_union0_error = (() => {
|
|
4441
|
+
if (typeof obj_predictionType !== 'string') {
|
|
4442
|
+
return new TypeError('Expected "string" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
|
|
4443
|
+
}
|
|
4444
|
+
})();
|
|
4445
|
+
if (obj_predictionType_union0_error != null) {
|
|
4446
|
+
obj_predictionType_union0 = obj_predictionType_union0_error.message;
|
|
4447
|
+
}
|
|
4448
|
+
let obj_predictionType_union1 = null;
|
|
4449
|
+
const obj_predictionType_union1_error = (() => {
|
|
4450
|
+
if (obj_predictionType !== null) {
|
|
4451
|
+
return new TypeError('Expected "null" but received "' + typeof obj_predictionType + '" (at "' + path_predictionType + '")');
|
|
4452
|
+
}
|
|
4453
|
+
})();
|
|
4454
|
+
if (obj_predictionType_union1_error != null) {
|
|
4455
|
+
obj_predictionType_union1 = obj_predictionType_union1_error.message;
|
|
4456
|
+
}
|
|
4457
|
+
if (obj_predictionType_union0 && obj_predictionType_union1) {
|
|
4458
|
+
let message = 'Object doesn\'t match union (at "' + path_predictionType + '")';
|
|
4459
|
+
message += '\n' + obj_predictionType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4460
|
+
message += '\n' + obj_predictionType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4461
|
+
return new TypeError(message);
|
|
4065
4462
|
}
|
|
4066
4463
|
}
|
|
4067
4464
|
const obj_status = obj.status;
|
|
@@ -4074,8 +4471,29 @@ function validate(obj, path = 'PredictionResponseRepresentation') {
|
|
|
4074
4471
|
}
|
|
4075
4472
|
const obj_usecaseName = obj.usecaseName;
|
|
4076
4473
|
const path_usecaseName = path + '.usecaseName';
|
|
4077
|
-
|
|
4078
|
-
|
|
4474
|
+
let obj_usecaseName_union0 = null;
|
|
4475
|
+
const obj_usecaseName_union0_error = (() => {
|
|
4476
|
+
if (typeof obj_usecaseName !== 'string') {
|
|
4477
|
+
return new TypeError('Expected "string" but received "' + typeof obj_usecaseName + '" (at "' + path_usecaseName + '")');
|
|
4478
|
+
}
|
|
4479
|
+
})();
|
|
4480
|
+
if (obj_usecaseName_union0_error != null) {
|
|
4481
|
+
obj_usecaseName_union0 = obj_usecaseName_union0_error.message;
|
|
4482
|
+
}
|
|
4483
|
+
let obj_usecaseName_union1 = null;
|
|
4484
|
+
const obj_usecaseName_union1_error = (() => {
|
|
4485
|
+
if (obj_usecaseName !== null) {
|
|
4486
|
+
return new TypeError('Expected "null" but received "' + typeof obj_usecaseName + '" (at "' + path_usecaseName + '")');
|
|
4487
|
+
}
|
|
4488
|
+
})();
|
|
4489
|
+
if (obj_usecaseName_union1_error != null) {
|
|
4490
|
+
obj_usecaseName_union1 = obj_usecaseName_union1_error.message;
|
|
4491
|
+
}
|
|
4492
|
+
if (obj_usecaseName_union0 && obj_usecaseName_union1) {
|
|
4493
|
+
let message = 'Object doesn\'t match union (at "' + path_usecaseName + '")';
|
|
4494
|
+
message += '\n' + obj_usecaseName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4495
|
+
message += '\n' + obj_usecaseName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4496
|
+
return new TypeError(message);
|
|
4079
4497
|
}
|
|
4080
4498
|
})();
|
|
4081
4499
|
return v_error === undefined ? null : v_error;
|
|
@@ -4168,13 +4586,13 @@ function createResourceRequest(config) {
|
|
|
4168
4586
|
|
|
4169
4587
|
const adapterName = 'getPredictions';
|
|
4170
4588
|
const getPredictions_ConfigPropertyMetadata = [
|
|
4171
|
-
generateParamConfigMetadata('maxInsights', false, 2 /* Body */,
|
|
4589
|
+
generateParamConfigMetadata('maxInsights', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4172
4590
|
generateParamConfigMetadata('predictionModel', true, 2 /* Body */, 0 /* String */),
|
|
4173
|
-
generateParamConfigMetadata('predictionPlatform', false, 2 /* Body */,
|
|
4591
|
+
generateParamConfigMetadata('predictionPlatform', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4174
4592
|
generateParamConfigMetadata('records', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4175
|
-
generateParamConfigMetadata('scoreFilterCriteria', false, 2 /* Body */,
|
|
4593
|
+
generateParamConfigMetadata('scoreFilterCriteria', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4176
4594
|
generateParamConfigMetadata('scoringThreshold', false, 2 /* Body */, 2 /* Number */),
|
|
4177
|
-
generateParamConfigMetadata('sortingOrder', false, 2 /* Body */,
|
|
4595
|
+
generateParamConfigMetadata('sortingOrder', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4178
4596
|
generateParamConfigMetadata('usecaseName', true, 2 /* Body */, 0 /* String */),
|
|
4179
4597
|
];
|
|
4180
4598
|
const getPredictions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getPredictions_ConfigPropertyMetadata);
|
|
@@ -4182,6 +4600,20 @@ const createResourceParams = /*#__PURE__*/ createResourceParams$3(getPredictions
|
|
|
4182
4600
|
function typeCheckConfig(untrustedConfig) {
|
|
4183
4601
|
const config = {};
|
|
4184
4602
|
typeCheckConfig$3(untrustedConfig, config, getPredictions_ConfigPropertyMetadata);
|
|
4603
|
+
const untrustedConfig_maxInsights = untrustedConfig.maxInsights;
|
|
4604
|
+
if (typeof untrustedConfig_maxInsights === 'number' && Math.floor(untrustedConfig_maxInsights) === untrustedConfig_maxInsights) {
|
|
4605
|
+
config.maxInsights = untrustedConfig_maxInsights;
|
|
4606
|
+
}
|
|
4607
|
+
if (untrustedConfig_maxInsights === null) {
|
|
4608
|
+
config.maxInsights = untrustedConfig_maxInsights;
|
|
4609
|
+
}
|
|
4610
|
+
const untrustedConfig_predictionPlatform = untrustedConfig.predictionPlatform;
|
|
4611
|
+
if (typeof untrustedConfig_predictionPlatform === 'string') {
|
|
4612
|
+
config.predictionPlatform = untrustedConfig_predictionPlatform;
|
|
4613
|
+
}
|
|
4614
|
+
if (untrustedConfig_predictionPlatform === null) {
|
|
4615
|
+
config.predictionPlatform = untrustedConfig_predictionPlatform;
|
|
4616
|
+
}
|
|
4185
4617
|
const untrustedConfig_records = untrustedConfig.records;
|
|
4186
4618
|
const referenceWrappedListValidationError = validate$z(untrustedConfig_records);
|
|
4187
4619
|
if (referenceWrappedListValidationError === null) {
|
|
@@ -4190,6 +4622,20 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
4190
4622
|
if (untrustedConfig_records === null) {
|
|
4191
4623
|
config.records = untrustedConfig_records;
|
|
4192
4624
|
}
|
|
4625
|
+
const untrustedConfig_scoreFilterCriteria = untrustedConfig.scoreFilterCriteria;
|
|
4626
|
+
if (typeof untrustedConfig_scoreFilterCriteria === 'string') {
|
|
4627
|
+
config.scoreFilterCriteria = untrustedConfig_scoreFilterCriteria;
|
|
4628
|
+
}
|
|
4629
|
+
if (untrustedConfig_scoreFilterCriteria === null) {
|
|
4630
|
+
config.scoreFilterCriteria = untrustedConfig_scoreFilterCriteria;
|
|
4631
|
+
}
|
|
4632
|
+
const untrustedConfig_sortingOrder = untrustedConfig.sortingOrder;
|
|
4633
|
+
if (typeof untrustedConfig_sortingOrder === 'string') {
|
|
4634
|
+
config.sortingOrder = untrustedConfig_sortingOrder;
|
|
4635
|
+
}
|
|
4636
|
+
if (untrustedConfig_sortingOrder === null) {
|
|
4637
|
+
config.sortingOrder = untrustedConfig_sortingOrder;
|
|
4638
|
+
}
|
|
4193
4639
|
return config;
|
|
4194
4640
|
}
|
|
4195
4641
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|