@salesforce/lds-adapters-analytics-unifiedanalytics 1.342.0 → 1.344.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/analytics-unifiedanalytics.js +536 -107
- package/dist/es/es2018/types/src/generated/adapters/createDataAssetRequest.d.ts +10 -10
- package/dist/es/es2018/types/src/generated/adapters/getOrg.d.ts +4 -5
- package/dist/es/es2018/types/src/generated/adapters/updateDataAssetRequest.d.ts +10 -10
- package/dist/es/es2018/types/src/generated/resources/{getTableauOrgsByUserName.d.ts → getTableauOrgs.d.ts} +0 -3
- package/dist/es/es2018/types/src/generated/resources/patchTableauDataAssetsRequestsByRequestIdOrApiName.d.ts +10 -10
- package/dist/es/es2018/types/src/generated/resources/postTableauDataAssetsRequests.d.ts +10 -10
- package/dist/es/es2018/types/src/generated/types/DataAssetRepresentation.d.ts +31 -6
- package/dist/es/es2018/types/src/generated/types/DataAssetRequestInputRepresentation.d.ts +21 -21
- package/dist/es/es2018/types/src/generated/types/DataAssetRequestRepresentation.d.ts +37 -37
- package/dist/es/es2018/types/src/generated/types/OrgCollectionRepresentation.d.ts +6 -6
- package/dist/es/es2018/types/src/generated/types/OrgRepresentation.d.ts +4 -4
- package/package.json +3 -3
- package/sfdc/index.js +537 -108
- package/src/raml/api.raml +69 -41
- package/src/raml/luvio.raml +1 -1
- package/dist/es/es2018/types/src/generated/types/OrgInputRepresentation.d.ts +0 -28
|
@@ -3642,7 +3642,7 @@ function validate$C(obj, path = 'AnalyticsUserRepresentation') {
|
|
|
3642
3642
|
}
|
|
3643
3643
|
|
|
3644
3644
|
const TTL$h = 500;
|
|
3645
|
-
const VERSION$r = "
|
|
3645
|
+
const VERSION$r = "43c05ab1871f7e0f8c17a6eaf58cdc17";
|
|
3646
3646
|
function validate$B(obj, path = 'DataAssetRequestRepresentation') {
|
|
3647
3647
|
const v_error = (() => {
|
|
3648
3648
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3650,16 +3650,58 @@ function validate$B(obj, path = 'DataAssetRequestRepresentation') {
|
|
|
3650
3650
|
}
|
|
3651
3651
|
const obj_acknowledgedBy = obj.acknowledgedBy;
|
|
3652
3652
|
const path_acknowledgedBy = path + '.acknowledgedBy';
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3653
|
+
let obj_acknowledgedBy_union0 = null;
|
|
3654
|
+
const obj_acknowledgedBy_union0_error = (() => {
|
|
3655
|
+
const referencepath_acknowledgedByValidationError = validate$C(obj_acknowledgedBy, path_acknowledgedBy);
|
|
3656
|
+
if (referencepath_acknowledgedByValidationError !== null) {
|
|
3657
|
+
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_acknowledgedBy + '")\n';
|
|
3658
|
+
message += referencepath_acknowledgedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3659
|
+
return new TypeError(message);
|
|
3660
|
+
}
|
|
3661
|
+
})();
|
|
3662
|
+
if (obj_acknowledgedBy_union0_error != null) {
|
|
3663
|
+
obj_acknowledgedBy_union0 = obj_acknowledgedBy_union0_error.message;
|
|
3664
|
+
}
|
|
3665
|
+
let obj_acknowledgedBy_union1 = null;
|
|
3666
|
+
const obj_acknowledgedBy_union1_error = (() => {
|
|
3667
|
+
if (obj_acknowledgedBy !== null) {
|
|
3668
|
+
return new TypeError('Expected "null" but received "' + typeof obj_acknowledgedBy + '" (at "' + path_acknowledgedBy + '")');
|
|
3669
|
+
}
|
|
3670
|
+
})();
|
|
3671
|
+
if (obj_acknowledgedBy_union1_error != null) {
|
|
3672
|
+
obj_acknowledgedBy_union1 = obj_acknowledgedBy_union1_error.message;
|
|
3673
|
+
}
|
|
3674
|
+
if (obj_acknowledgedBy_union0 && obj_acknowledgedBy_union1) {
|
|
3675
|
+
let message = 'Object doesn\'t match union (at "' + path_acknowledgedBy + '")';
|
|
3676
|
+
message += '\n' + obj_acknowledgedBy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3677
|
+
message += '\n' + obj_acknowledgedBy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3657
3678
|
return new TypeError(message);
|
|
3658
3679
|
}
|
|
3659
3680
|
const obj_acknowledgedDate = obj.acknowledgedDate;
|
|
3660
3681
|
const path_acknowledgedDate = path + '.acknowledgedDate';
|
|
3661
|
-
|
|
3662
|
-
|
|
3682
|
+
let obj_acknowledgedDate_union0 = null;
|
|
3683
|
+
const obj_acknowledgedDate_union0_error = (() => {
|
|
3684
|
+
if (typeof obj_acknowledgedDate !== 'string') {
|
|
3685
|
+
return new TypeError('Expected "string" but received "' + typeof obj_acknowledgedDate + '" (at "' + path_acknowledgedDate + '")');
|
|
3686
|
+
}
|
|
3687
|
+
})();
|
|
3688
|
+
if (obj_acknowledgedDate_union0_error != null) {
|
|
3689
|
+
obj_acknowledgedDate_union0 = obj_acknowledgedDate_union0_error.message;
|
|
3690
|
+
}
|
|
3691
|
+
let obj_acknowledgedDate_union1 = null;
|
|
3692
|
+
const obj_acknowledgedDate_union1_error = (() => {
|
|
3693
|
+
if (obj_acknowledgedDate !== null) {
|
|
3694
|
+
return new TypeError('Expected "null" but received "' + typeof obj_acknowledgedDate + '" (at "' + path_acknowledgedDate + '")');
|
|
3695
|
+
}
|
|
3696
|
+
})();
|
|
3697
|
+
if (obj_acknowledgedDate_union1_error != null) {
|
|
3698
|
+
obj_acknowledgedDate_union1 = obj_acknowledgedDate_union1_error.message;
|
|
3699
|
+
}
|
|
3700
|
+
if (obj_acknowledgedDate_union0 && obj_acknowledgedDate_union1) {
|
|
3701
|
+
let message = 'Object doesn\'t match union (at "' + path_acknowledgedDate + '")';
|
|
3702
|
+
message += '\n' + obj_acknowledgedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3703
|
+
message += '\n' + obj_acknowledgedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3704
|
+
return new TypeError(message);
|
|
3663
3705
|
}
|
|
3664
3706
|
const obj_assetId = obj.assetId;
|
|
3665
3707
|
const path_assetId = path + '.assetId';
|
|
@@ -3668,39 +3710,165 @@ function validate$B(obj, path = 'DataAssetRequestRepresentation') {
|
|
|
3668
3710
|
}
|
|
3669
3711
|
const obj_assetLabel = obj.assetLabel;
|
|
3670
3712
|
const path_assetLabel = path + '.assetLabel';
|
|
3671
|
-
|
|
3672
|
-
|
|
3713
|
+
let obj_assetLabel_union0 = null;
|
|
3714
|
+
const obj_assetLabel_union0_error = (() => {
|
|
3715
|
+
if (typeof obj_assetLabel !== 'string') {
|
|
3716
|
+
return new TypeError('Expected "string" but received "' + typeof obj_assetLabel + '" (at "' + path_assetLabel + '")');
|
|
3717
|
+
}
|
|
3718
|
+
})();
|
|
3719
|
+
if (obj_assetLabel_union0_error != null) {
|
|
3720
|
+
obj_assetLabel_union0 = obj_assetLabel_union0_error.message;
|
|
3721
|
+
}
|
|
3722
|
+
let obj_assetLabel_union1 = null;
|
|
3723
|
+
const obj_assetLabel_union1_error = (() => {
|
|
3724
|
+
if (obj_assetLabel !== null) {
|
|
3725
|
+
return new TypeError('Expected "null" but received "' + typeof obj_assetLabel + '" (at "' + path_assetLabel + '")');
|
|
3726
|
+
}
|
|
3727
|
+
})();
|
|
3728
|
+
if (obj_assetLabel_union1_error != null) {
|
|
3729
|
+
obj_assetLabel_union1 = obj_assetLabel_union1_error.message;
|
|
3730
|
+
}
|
|
3731
|
+
if (obj_assetLabel_union0 && obj_assetLabel_union1) {
|
|
3732
|
+
let message = 'Object doesn\'t match union (at "' + path_assetLabel + '")';
|
|
3733
|
+
message += '\n' + obj_assetLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3734
|
+
message += '\n' + obj_assetLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3735
|
+
return new TypeError(message);
|
|
3673
3736
|
}
|
|
3674
3737
|
const obj_cancelledBy = obj.cancelledBy;
|
|
3675
3738
|
const path_cancelledBy = path + '.cancelledBy';
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3739
|
+
let obj_cancelledBy_union0 = null;
|
|
3740
|
+
const obj_cancelledBy_union0_error = (() => {
|
|
3741
|
+
const referencepath_cancelledByValidationError = validate$C(obj_cancelledBy, path_cancelledBy);
|
|
3742
|
+
if (referencepath_cancelledByValidationError !== null) {
|
|
3743
|
+
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_cancelledBy + '")\n';
|
|
3744
|
+
message += referencepath_cancelledByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3745
|
+
return new TypeError(message);
|
|
3746
|
+
}
|
|
3747
|
+
})();
|
|
3748
|
+
if (obj_cancelledBy_union0_error != null) {
|
|
3749
|
+
obj_cancelledBy_union0 = obj_cancelledBy_union0_error.message;
|
|
3750
|
+
}
|
|
3751
|
+
let obj_cancelledBy_union1 = null;
|
|
3752
|
+
const obj_cancelledBy_union1_error = (() => {
|
|
3753
|
+
if (obj_cancelledBy !== null) {
|
|
3754
|
+
return new TypeError('Expected "null" but received "' + typeof obj_cancelledBy + '" (at "' + path_cancelledBy + '")');
|
|
3755
|
+
}
|
|
3756
|
+
})();
|
|
3757
|
+
if (obj_cancelledBy_union1_error != null) {
|
|
3758
|
+
obj_cancelledBy_union1 = obj_cancelledBy_union1_error.message;
|
|
3759
|
+
}
|
|
3760
|
+
if (obj_cancelledBy_union0 && obj_cancelledBy_union1) {
|
|
3761
|
+
let message = 'Object doesn\'t match union (at "' + path_cancelledBy + '")';
|
|
3762
|
+
message += '\n' + obj_cancelledBy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3763
|
+
message += '\n' + obj_cancelledBy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3680
3764
|
return new TypeError(message);
|
|
3681
3765
|
}
|
|
3682
3766
|
const obj_cancelledDate = obj.cancelledDate;
|
|
3683
3767
|
const path_cancelledDate = path + '.cancelledDate';
|
|
3684
|
-
|
|
3685
|
-
|
|
3768
|
+
let obj_cancelledDate_union0 = null;
|
|
3769
|
+
const obj_cancelledDate_union0_error = (() => {
|
|
3770
|
+
if (typeof obj_cancelledDate !== 'string') {
|
|
3771
|
+
return new TypeError('Expected "string" but received "' + typeof obj_cancelledDate + '" (at "' + path_cancelledDate + '")');
|
|
3772
|
+
}
|
|
3773
|
+
})();
|
|
3774
|
+
if (obj_cancelledDate_union0_error != null) {
|
|
3775
|
+
obj_cancelledDate_union0 = obj_cancelledDate_union0_error.message;
|
|
3776
|
+
}
|
|
3777
|
+
let obj_cancelledDate_union1 = null;
|
|
3778
|
+
const obj_cancelledDate_union1_error = (() => {
|
|
3779
|
+
if (obj_cancelledDate !== null) {
|
|
3780
|
+
return new TypeError('Expected "null" but received "' + typeof obj_cancelledDate + '" (at "' + path_cancelledDate + '")');
|
|
3781
|
+
}
|
|
3782
|
+
})();
|
|
3783
|
+
if (obj_cancelledDate_union1_error != null) {
|
|
3784
|
+
obj_cancelledDate_union1 = obj_cancelledDate_union1_error.message;
|
|
3785
|
+
}
|
|
3786
|
+
if (obj_cancelledDate_union0 && obj_cancelledDate_union1) {
|
|
3787
|
+
let message = 'Object doesn\'t match union (at "' + path_cancelledDate + '")';
|
|
3788
|
+
message += '\n' + obj_cancelledDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3789
|
+
message += '\n' + obj_cancelledDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3790
|
+
return new TypeError(message);
|
|
3686
3791
|
}
|
|
3687
3792
|
const obj_completedBy = obj.completedBy;
|
|
3688
3793
|
const path_completedBy = path + '.completedBy';
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3794
|
+
let obj_completedBy_union0 = null;
|
|
3795
|
+
const obj_completedBy_union0_error = (() => {
|
|
3796
|
+
const referencepath_completedByValidationError = validate$C(obj_completedBy, path_completedBy);
|
|
3797
|
+
if (referencepath_completedByValidationError !== null) {
|
|
3798
|
+
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_completedBy + '")\n';
|
|
3799
|
+
message += referencepath_completedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3800
|
+
return new TypeError(message);
|
|
3801
|
+
}
|
|
3802
|
+
})();
|
|
3803
|
+
if (obj_completedBy_union0_error != null) {
|
|
3804
|
+
obj_completedBy_union0 = obj_completedBy_union0_error.message;
|
|
3805
|
+
}
|
|
3806
|
+
let obj_completedBy_union1 = null;
|
|
3807
|
+
const obj_completedBy_union1_error = (() => {
|
|
3808
|
+
if (obj_completedBy !== null) {
|
|
3809
|
+
return new TypeError('Expected "null" but received "' + typeof obj_completedBy + '" (at "' + path_completedBy + '")');
|
|
3810
|
+
}
|
|
3811
|
+
})();
|
|
3812
|
+
if (obj_completedBy_union1_error != null) {
|
|
3813
|
+
obj_completedBy_union1 = obj_completedBy_union1_error.message;
|
|
3814
|
+
}
|
|
3815
|
+
if (obj_completedBy_union0 && obj_completedBy_union1) {
|
|
3816
|
+
let message = 'Object doesn\'t match union (at "' + path_completedBy + '")';
|
|
3817
|
+
message += '\n' + obj_completedBy_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3818
|
+
message += '\n' + obj_completedBy_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3693
3819
|
return new TypeError(message);
|
|
3694
3820
|
}
|
|
3695
3821
|
const obj_completedDate = obj.completedDate;
|
|
3696
3822
|
const path_completedDate = path + '.completedDate';
|
|
3697
|
-
|
|
3698
|
-
|
|
3823
|
+
let obj_completedDate_union0 = null;
|
|
3824
|
+
const obj_completedDate_union0_error = (() => {
|
|
3825
|
+
if (typeof obj_completedDate !== 'string') {
|
|
3826
|
+
return new TypeError('Expected "string" but received "' + typeof obj_completedDate + '" (at "' + path_completedDate + '")');
|
|
3827
|
+
}
|
|
3828
|
+
})();
|
|
3829
|
+
if (obj_completedDate_union0_error != null) {
|
|
3830
|
+
obj_completedDate_union0 = obj_completedDate_union0_error.message;
|
|
3831
|
+
}
|
|
3832
|
+
let obj_completedDate_union1 = null;
|
|
3833
|
+
const obj_completedDate_union1_error = (() => {
|
|
3834
|
+
if (obj_completedDate !== null) {
|
|
3835
|
+
return new TypeError('Expected "null" but received "' + typeof obj_completedDate + '" (at "' + path_completedDate + '")');
|
|
3836
|
+
}
|
|
3837
|
+
})();
|
|
3838
|
+
if (obj_completedDate_union1_error != null) {
|
|
3839
|
+
obj_completedDate_union1 = obj_completedDate_union1_error.message;
|
|
3840
|
+
}
|
|
3841
|
+
if (obj_completedDate_union0 && obj_completedDate_union1) {
|
|
3842
|
+
let message = 'Object doesn\'t match union (at "' + path_completedDate + '")';
|
|
3843
|
+
message += '\n' + obj_completedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3844
|
+
message += '\n' + obj_completedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3845
|
+
return new TypeError(message);
|
|
3699
3846
|
}
|
|
3700
3847
|
const obj_failedDate = obj.failedDate;
|
|
3701
3848
|
const path_failedDate = path + '.failedDate';
|
|
3702
|
-
|
|
3703
|
-
|
|
3849
|
+
let obj_failedDate_union0 = null;
|
|
3850
|
+
const obj_failedDate_union0_error = (() => {
|
|
3851
|
+
if (typeof obj_failedDate !== 'string') {
|
|
3852
|
+
return new TypeError('Expected "string" but received "' + typeof obj_failedDate + '" (at "' + path_failedDate + '")');
|
|
3853
|
+
}
|
|
3854
|
+
})();
|
|
3855
|
+
if (obj_failedDate_union0_error != null) {
|
|
3856
|
+
obj_failedDate_union0 = obj_failedDate_union0_error.message;
|
|
3857
|
+
}
|
|
3858
|
+
let obj_failedDate_union1 = null;
|
|
3859
|
+
const obj_failedDate_union1_error = (() => {
|
|
3860
|
+
if (obj_failedDate !== null) {
|
|
3861
|
+
return new TypeError('Expected "null" but received "' + typeof obj_failedDate + '" (at "' + path_failedDate + '")');
|
|
3862
|
+
}
|
|
3863
|
+
})();
|
|
3864
|
+
if (obj_failedDate_union1_error != null) {
|
|
3865
|
+
obj_failedDate_union1 = obj_failedDate_union1_error.message;
|
|
3866
|
+
}
|
|
3867
|
+
if (obj_failedDate_union0 && obj_failedDate_union1) {
|
|
3868
|
+
let message = 'Object doesn\'t match union (at "' + path_failedDate + '")';
|
|
3869
|
+
message += '\n' + obj_failedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3870
|
+
message += '\n' + obj_failedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3871
|
+
return new TypeError(message);
|
|
3704
3872
|
}
|
|
3705
3873
|
const obj_id = obj.id;
|
|
3706
3874
|
const path_id = path + '.id';
|
|
@@ -3709,8 +3877,29 @@ function validate$B(obj, path = 'DataAssetRequestRepresentation') {
|
|
|
3709
3877
|
}
|
|
3710
3878
|
const obj_installedDate = obj.installedDate;
|
|
3711
3879
|
const path_installedDate = path + '.installedDate';
|
|
3712
|
-
|
|
3713
|
-
|
|
3880
|
+
let obj_installedDate_union0 = null;
|
|
3881
|
+
const obj_installedDate_union0_error = (() => {
|
|
3882
|
+
if (typeof obj_installedDate !== 'string') {
|
|
3883
|
+
return new TypeError('Expected "string" but received "' + typeof obj_installedDate + '" (at "' + path_installedDate + '")');
|
|
3884
|
+
}
|
|
3885
|
+
})();
|
|
3886
|
+
if (obj_installedDate_union0_error != null) {
|
|
3887
|
+
obj_installedDate_union0 = obj_installedDate_union0_error.message;
|
|
3888
|
+
}
|
|
3889
|
+
let obj_installedDate_union1 = null;
|
|
3890
|
+
const obj_installedDate_union1_error = (() => {
|
|
3891
|
+
if (obj_installedDate !== null) {
|
|
3892
|
+
return new TypeError('Expected "null" but received "' + typeof obj_installedDate + '" (at "' + path_installedDate + '")');
|
|
3893
|
+
}
|
|
3894
|
+
})();
|
|
3895
|
+
if (obj_installedDate_union1_error != null) {
|
|
3896
|
+
obj_installedDate_union1 = obj_installedDate_union1_error.message;
|
|
3897
|
+
}
|
|
3898
|
+
if (obj_installedDate_union0 && obj_installedDate_union1) {
|
|
3899
|
+
let message = 'Object doesn\'t match union (at "' + path_installedDate + '")';
|
|
3900
|
+
message += '\n' + obj_installedDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3901
|
+
message += '\n' + obj_installedDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3902
|
+
return new TypeError(message);
|
|
3714
3903
|
}
|
|
3715
3904
|
const obj_label = obj.label;
|
|
3716
3905
|
const path_label = path + '.label';
|
|
@@ -3719,38 +3908,185 @@ function validate$B(obj, path = 'DataAssetRequestRepresentation') {
|
|
|
3719
3908
|
}
|
|
3720
3909
|
const obj_migrationSucceededDate = obj.migrationSucceededDate;
|
|
3721
3910
|
const path_migrationSucceededDate = path + '.migrationSucceededDate';
|
|
3722
|
-
|
|
3723
|
-
|
|
3911
|
+
let obj_migrationSucceededDate_union0 = null;
|
|
3912
|
+
const obj_migrationSucceededDate_union0_error = (() => {
|
|
3913
|
+
if (typeof obj_migrationSucceededDate !== 'string') {
|
|
3914
|
+
return new TypeError('Expected "string" but received "' + typeof obj_migrationSucceededDate + '" (at "' + path_migrationSucceededDate + '")');
|
|
3915
|
+
}
|
|
3916
|
+
})();
|
|
3917
|
+
if (obj_migrationSucceededDate_union0_error != null) {
|
|
3918
|
+
obj_migrationSucceededDate_union0 = obj_migrationSucceededDate_union0_error.message;
|
|
3919
|
+
}
|
|
3920
|
+
let obj_migrationSucceededDate_union1 = null;
|
|
3921
|
+
const obj_migrationSucceededDate_union1_error = (() => {
|
|
3922
|
+
if (obj_migrationSucceededDate !== null) {
|
|
3923
|
+
return new TypeError('Expected "null" but received "' + typeof obj_migrationSucceededDate + '" (at "' + path_migrationSucceededDate + '")');
|
|
3924
|
+
}
|
|
3925
|
+
})();
|
|
3926
|
+
if (obj_migrationSucceededDate_union1_error != null) {
|
|
3927
|
+
obj_migrationSucceededDate_union1 = obj_migrationSucceededDate_union1_error.message;
|
|
3928
|
+
}
|
|
3929
|
+
if (obj_migrationSucceededDate_union0 && obj_migrationSucceededDate_union1) {
|
|
3930
|
+
let message = 'Object doesn\'t match union (at "' + path_migrationSucceededDate + '")';
|
|
3931
|
+
message += '\n' + obj_migrationSucceededDate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3932
|
+
message += '\n' + obj_migrationSucceededDate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3933
|
+
return new TypeError(message);
|
|
3724
3934
|
}
|
|
3725
3935
|
const obj_numberOfDependencies = obj.numberOfDependencies;
|
|
3726
3936
|
const path_numberOfDependencies = path + '.numberOfDependencies';
|
|
3727
|
-
|
|
3728
|
-
|
|
3937
|
+
let obj_numberOfDependencies_union0 = null;
|
|
3938
|
+
const obj_numberOfDependencies_union0_error = (() => {
|
|
3939
|
+
if (typeof obj_numberOfDependencies !== 'number' || (typeof obj_numberOfDependencies === 'number' && Math.floor(obj_numberOfDependencies) !== obj_numberOfDependencies)) {
|
|
3940
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_numberOfDependencies + '" (at "' + path_numberOfDependencies + '")');
|
|
3941
|
+
}
|
|
3942
|
+
})();
|
|
3943
|
+
if (obj_numberOfDependencies_union0_error != null) {
|
|
3944
|
+
obj_numberOfDependencies_union0 = obj_numberOfDependencies_union0_error.message;
|
|
3945
|
+
}
|
|
3946
|
+
let obj_numberOfDependencies_union1 = null;
|
|
3947
|
+
const obj_numberOfDependencies_union1_error = (() => {
|
|
3948
|
+
if (obj_numberOfDependencies !== null) {
|
|
3949
|
+
return new TypeError('Expected "null" but received "' + typeof obj_numberOfDependencies + '" (at "' + path_numberOfDependencies + '")');
|
|
3950
|
+
}
|
|
3951
|
+
})();
|
|
3952
|
+
if (obj_numberOfDependencies_union1_error != null) {
|
|
3953
|
+
obj_numberOfDependencies_union1 = obj_numberOfDependencies_union1_error.message;
|
|
3954
|
+
}
|
|
3955
|
+
if (obj_numberOfDependencies_union0 && obj_numberOfDependencies_union1) {
|
|
3956
|
+
let message = 'Object doesn\'t match union (at "' + path_numberOfDependencies + '")';
|
|
3957
|
+
message += '\n' + obj_numberOfDependencies_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3958
|
+
message += '\n' + obj_numberOfDependencies_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3959
|
+
return new TypeError(message);
|
|
3729
3960
|
}
|
|
3730
3961
|
const obj_personalOrgId = obj.personalOrgId;
|
|
3731
3962
|
const path_personalOrgId = path + '.personalOrgId';
|
|
3732
|
-
|
|
3733
|
-
|
|
3963
|
+
let obj_personalOrgId_union0 = null;
|
|
3964
|
+
const obj_personalOrgId_union0_error = (() => {
|
|
3965
|
+
if (typeof obj_personalOrgId !== 'string') {
|
|
3966
|
+
return new TypeError('Expected "string" but received "' + typeof obj_personalOrgId + '" (at "' + path_personalOrgId + '")');
|
|
3967
|
+
}
|
|
3968
|
+
})();
|
|
3969
|
+
if (obj_personalOrgId_union0_error != null) {
|
|
3970
|
+
obj_personalOrgId_union0 = obj_personalOrgId_union0_error.message;
|
|
3971
|
+
}
|
|
3972
|
+
let obj_personalOrgId_union1 = null;
|
|
3973
|
+
const obj_personalOrgId_union1_error = (() => {
|
|
3974
|
+
if (obj_personalOrgId !== null) {
|
|
3975
|
+
return new TypeError('Expected "null" but received "' + typeof obj_personalOrgId + '" (at "' + path_personalOrgId + '")');
|
|
3976
|
+
}
|
|
3977
|
+
})();
|
|
3978
|
+
if (obj_personalOrgId_union1_error != null) {
|
|
3979
|
+
obj_personalOrgId_union1 = obj_personalOrgId_union1_error.message;
|
|
3980
|
+
}
|
|
3981
|
+
if (obj_personalOrgId_union0 && obj_personalOrgId_union1) {
|
|
3982
|
+
let message = 'Object doesn\'t match union (at "' + path_personalOrgId + '")';
|
|
3983
|
+
message += '\n' + obj_personalOrgId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3984
|
+
message += '\n' + obj_personalOrgId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3985
|
+
return new TypeError(message);
|
|
3734
3986
|
}
|
|
3735
3987
|
const obj_personalOrgWorkspaceId = obj.personalOrgWorkspaceId;
|
|
3736
3988
|
const path_personalOrgWorkspaceId = path + '.personalOrgWorkspaceId';
|
|
3737
|
-
|
|
3738
|
-
|
|
3989
|
+
let obj_personalOrgWorkspaceId_union0 = null;
|
|
3990
|
+
const obj_personalOrgWorkspaceId_union0_error = (() => {
|
|
3991
|
+
if (typeof obj_personalOrgWorkspaceId !== 'string') {
|
|
3992
|
+
return new TypeError('Expected "string" but received "' + typeof obj_personalOrgWorkspaceId + '" (at "' + path_personalOrgWorkspaceId + '")');
|
|
3993
|
+
}
|
|
3994
|
+
})();
|
|
3995
|
+
if (obj_personalOrgWorkspaceId_union0_error != null) {
|
|
3996
|
+
obj_personalOrgWorkspaceId_union0 = obj_personalOrgWorkspaceId_union0_error.message;
|
|
3997
|
+
}
|
|
3998
|
+
let obj_personalOrgWorkspaceId_union1 = null;
|
|
3999
|
+
const obj_personalOrgWorkspaceId_union1_error = (() => {
|
|
4000
|
+
if (obj_personalOrgWorkspaceId !== null) {
|
|
4001
|
+
return new TypeError('Expected "null" but received "' + typeof obj_personalOrgWorkspaceId + '" (at "' + path_personalOrgWorkspaceId + '")');
|
|
4002
|
+
}
|
|
4003
|
+
})();
|
|
4004
|
+
if (obj_personalOrgWorkspaceId_union1_error != null) {
|
|
4005
|
+
obj_personalOrgWorkspaceId_union1 = obj_personalOrgWorkspaceId_union1_error.message;
|
|
4006
|
+
}
|
|
4007
|
+
if (obj_personalOrgWorkspaceId_union0 && obj_personalOrgWorkspaceId_union1) {
|
|
4008
|
+
let message = 'Object doesn\'t match union (at "' + path_personalOrgWorkspaceId + '")';
|
|
4009
|
+
message += '\n' + obj_personalOrgWorkspaceId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4010
|
+
message += '\n' + obj_personalOrgWorkspaceId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4011
|
+
return new TypeError(message);
|
|
3739
4012
|
}
|
|
3740
4013
|
const obj_productionOrgId = obj.productionOrgId;
|
|
3741
4014
|
const path_productionOrgId = path + '.productionOrgId';
|
|
3742
|
-
|
|
3743
|
-
|
|
4015
|
+
let obj_productionOrgId_union0 = null;
|
|
4016
|
+
const obj_productionOrgId_union0_error = (() => {
|
|
4017
|
+
if (typeof obj_productionOrgId !== 'string') {
|
|
4018
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productionOrgId + '" (at "' + path_productionOrgId + '")');
|
|
4019
|
+
}
|
|
4020
|
+
})();
|
|
4021
|
+
if (obj_productionOrgId_union0_error != null) {
|
|
4022
|
+
obj_productionOrgId_union0 = obj_productionOrgId_union0_error.message;
|
|
4023
|
+
}
|
|
4024
|
+
let obj_productionOrgId_union1 = null;
|
|
4025
|
+
const obj_productionOrgId_union1_error = (() => {
|
|
4026
|
+
if (obj_productionOrgId !== null) {
|
|
4027
|
+
return new TypeError('Expected "null" but received "' + typeof obj_productionOrgId + '" (at "' + path_productionOrgId + '")');
|
|
4028
|
+
}
|
|
4029
|
+
})();
|
|
4030
|
+
if (obj_productionOrgId_union1_error != null) {
|
|
4031
|
+
obj_productionOrgId_union1 = obj_productionOrgId_union1_error.message;
|
|
4032
|
+
}
|
|
4033
|
+
if (obj_productionOrgId_union0 && obj_productionOrgId_union1) {
|
|
4034
|
+
let message = 'Object doesn\'t match union (at "' + path_productionOrgId + '")';
|
|
4035
|
+
message += '\n' + obj_productionOrgId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4036
|
+
message += '\n' + obj_productionOrgId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4037
|
+
return new TypeError(message);
|
|
3744
4038
|
}
|
|
3745
4039
|
const obj_productionOrgWorkspaceId = obj.productionOrgWorkspaceId;
|
|
3746
4040
|
const path_productionOrgWorkspaceId = path + '.productionOrgWorkspaceId';
|
|
3747
|
-
|
|
3748
|
-
|
|
4041
|
+
let obj_productionOrgWorkspaceId_union0 = null;
|
|
4042
|
+
const obj_productionOrgWorkspaceId_union0_error = (() => {
|
|
4043
|
+
if (typeof obj_productionOrgWorkspaceId !== 'string') {
|
|
4044
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productionOrgWorkspaceId + '" (at "' + path_productionOrgWorkspaceId + '")');
|
|
4045
|
+
}
|
|
4046
|
+
})();
|
|
4047
|
+
if (obj_productionOrgWorkspaceId_union0_error != null) {
|
|
4048
|
+
obj_productionOrgWorkspaceId_union0 = obj_productionOrgWorkspaceId_union0_error.message;
|
|
4049
|
+
}
|
|
4050
|
+
let obj_productionOrgWorkspaceId_union1 = null;
|
|
4051
|
+
const obj_productionOrgWorkspaceId_union1_error = (() => {
|
|
4052
|
+
if (obj_productionOrgWorkspaceId !== null) {
|
|
4053
|
+
return new TypeError('Expected "null" but received "' + typeof obj_productionOrgWorkspaceId + '" (at "' + path_productionOrgWorkspaceId + '")');
|
|
4054
|
+
}
|
|
4055
|
+
})();
|
|
4056
|
+
if (obj_productionOrgWorkspaceId_union1_error != null) {
|
|
4057
|
+
obj_productionOrgWorkspaceId_union1 = obj_productionOrgWorkspaceId_union1_error.message;
|
|
4058
|
+
}
|
|
4059
|
+
if (obj_productionOrgWorkspaceId_union0 && obj_productionOrgWorkspaceId_union1) {
|
|
4060
|
+
let message = 'Object doesn\'t match union (at "' + path_productionOrgWorkspaceId + '")';
|
|
4061
|
+
message += '\n' + obj_productionOrgWorkspaceId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4062
|
+
message += '\n' + obj_productionOrgWorkspaceId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4063
|
+
return new TypeError(message);
|
|
3749
4064
|
}
|
|
3750
4065
|
const obj_rejectionComment = obj.rejectionComment;
|
|
3751
4066
|
const path_rejectionComment = path + '.rejectionComment';
|
|
3752
|
-
|
|
3753
|
-
|
|
4067
|
+
let obj_rejectionComment_union0 = null;
|
|
4068
|
+
const obj_rejectionComment_union0_error = (() => {
|
|
4069
|
+
if (typeof obj_rejectionComment !== 'string') {
|
|
4070
|
+
return new TypeError('Expected "string" but received "' + typeof obj_rejectionComment + '" (at "' + path_rejectionComment + '")');
|
|
4071
|
+
}
|
|
4072
|
+
})();
|
|
4073
|
+
if (obj_rejectionComment_union0_error != null) {
|
|
4074
|
+
obj_rejectionComment_union0 = obj_rejectionComment_union0_error.message;
|
|
4075
|
+
}
|
|
4076
|
+
let obj_rejectionComment_union1 = null;
|
|
4077
|
+
const obj_rejectionComment_union1_error = (() => {
|
|
4078
|
+
if (obj_rejectionComment !== null) {
|
|
4079
|
+
return new TypeError('Expected "null" but received "' + typeof obj_rejectionComment + '" (at "' + path_rejectionComment + '")');
|
|
4080
|
+
}
|
|
4081
|
+
})();
|
|
4082
|
+
if (obj_rejectionComment_union1_error != null) {
|
|
4083
|
+
obj_rejectionComment_union1 = obj_rejectionComment_union1_error.message;
|
|
4084
|
+
}
|
|
4085
|
+
if (obj_rejectionComment_union0 && obj_rejectionComment_union1) {
|
|
4086
|
+
let message = 'Object doesn\'t match union (at "' + path_rejectionComment + '")';
|
|
4087
|
+
message += '\n' + obj_rejectionComment_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4088
|
+
message += '\n' + obj_rejectionComment_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4089
|
+
return new TypeError(message);
|
|
3754
4090
|
}
|
|
3755
4091
|
const obj_requestType = obj.requestType;
|
|
3756
4092
|
const path_requestType = path + '.requestType';
|
|
@@ -3777,8 +4113,29 @@ function validate$B(obj, path = 'DataAssetRequestRepresentation') {
|
|
|
3777
4113
|
}
|
|
3778
4114
|
const obj_sourceRequestId = obj.sourceRequestId;
|
|
3779
4115
|
const path_sourceRequestId = path + '.sourceRequestId';
|
|
3780
|
-
|
|
3781
|
-
|
|
4116
|
+
let obj_sourceRequestId_union0 = null;
|
|
4117
|
+
const obj_sourceRequestId_union0_error = (() => {
|
|
4118
|
+
if (typeof obj_sourceRequestId !== 'string') {
|
|
4119
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceRequestId + '" (at "' + path_sourceRequestId + '")');
|
|
4120
|
+
}
|
|
4121
|
+
})();
|
|
4122
|
+
if (obj_sourceRequestId_union0_error != null) {
|
|
4123
|
+
obj_sourceRequestId_union0 = obj_sourceRequestId_union0_error.message;
|
|
4124
|
+
}
|
|
4125
|
+
let obj_sourceRequestId_union1 = null;
|
|
4126
|
+
const obj_sourceRequestId_union1_error = (() => {
|
|
4127
|
+
if (obj_sourceRequestId !== null) {
|
|
4128
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sourceRequestId + '" (at "' + path_sourceRequestId + '")');
|
|
4129
|
+
}
|
|
4130
|
+
})();
|
|
4131
|
+
if (obj_sourceRequestId_union1_error != null) {
|
|
4132
|
+
obj_sourceRequestId_union1 = obj_sourceRequestId_union1_error.message;
|
|
4133
|
+
}
|
|
4134
|
+
if (obj_sourceRequestId_union0 && obj_sourceRequestId_union1) {
|
|
4135
|
+
let message = 'Object doesn\'t match union (at "' + path_sourceRequestId + '")';
|
|
4136
|
+
message += '\n' + obj_sourceRequestId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4137
|
+
message += '\n' + obj_sourceRequestId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4138
|
+
return new TypeError(message);
|
|
3782
4139
|
}
|
|
3783
4140
|
const obj_status = obj.status;
|
|
3784
4141
|
const path_status = path + '.status';
|
|
@@ -3787,8 +4144,29 @@ function validate$B(obj, path = 'DataAssetRequestRepresentation') {
|
|
|
3787
4144
|
}
|
|
3788
4145
|
const obj_targetRequestId = obj.targetRequestId;
|
|
3789
4146
|
const path_targetRequestId = path + '.targetRequestId';
|
|
3790
|
-
|
|
3791
|
-
|
|
4147
|
+
let obj_targetRequestId_union0 = null;
|
|
4148
|
+
const obj_targetRequestId_union0_error = (() => {
|
|
4149
|
+
if (typeof obj_targetRequestId !== 'string') {
|
|
4150
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetRequestId + '" (at "' + path_targetRequestId + '")');
|
|
4151
|
+
}
|
|
4152
|
+
})();
|
|
4153
|
+
if (obj_targetRequestId_union0_error != null) {
|
|
4154
|
+
obj_targetRequestId_union0 = obj_targetRequestId_union0_error.message;
|
|
4155
|
+
}
|
|
4156
|
+
let obj_targetRequestId_union1 = null;
|
|
4157
|
+
const obj_targetRequestId_union1_error = (() => {
|
|
4158
|
+
if (obj_targetRequestId !== null) {
|
|
4159
|
+
return new TypeError('Expected "null" but received "' + typeof obj_targetRequestId + '" (at "' + path_targetRequestId + '")');
|
|
4160
|
+
}
|
|
4161
|
+
})();
|
|
4162
|
+
if (obj_targetRequestId_union1_error != null) {
|
|
4163
|
+
obj_targetRequestId_union1 = obj_targetRequestId_union1_error.message;
|
|
4164
|
+
}
|
|
4165
|
+
if (obj_targetRequestId_union0 && obj_targetRequestId_union1) {
|
|
4166
|
+
let message = 'Object doesn\'t match union (at "' + path_targetRequestId + '")';
|
|
4167
|
+
message += '\n' + obj_targetRequestId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4168
|
+
message += '\n' + obj_targetRequestId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4169
|
+
return new TypeError(message);
|
|
3792
4170
|
}
|
|
3793
4171
|
const obj_workspaceAssetId = obj.workspaceAssetId;
|
|
3794
4172
|
const path_workspaceAssetId = path + '.workspaceAssetId';
|
|
@@ -4099,16 +4477,16 @@ function createResourceRequest$E(config) {
|
|
|
4099
4477
|
|
|
4100
4478
|
const adapterName$E = 'createDataAssetRequest';
|
|
4101
4479
|
const createDataAssetRequest_ConfigPropertyMetadata = [
|
|
4102
|
-
generateParamConfigMetadata('assetId',
|
|
4103
|
-
generateParamConfigMetadata('id',
|
|
4104
|
-
generateParamConfigMetadata('label',
|
|
4105
|
-
generateParamConfigMetadata('numberOfDependencies',
|
|
4106
|
-
generateParamConfigMetadata('rejectionComment',
|
|
4107
|
-
generateParamConfigMetadata('requestType',
|
|
4108
|
-
generateParamConfigMetadata('requesterComment',
|
|
4109
|
-
generateParamConfigMetadata('sourceRequestId',
|
|
4110
|
-
generateParamConfigMetadata('status',
|
|
4111
|
-
generateParamConfigMetadata('workspaceIdOrApiName',
|
|
4480
|
+
generateParamConfigMetadata('assetId', false, 2 /* Body */, 0 /* String */),
|
|
4481
|
+
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
4482
|
+
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
4483
|
+
generateParamConfigMetadata('numberOfDependencies', false, 2 /* Body */, 3 /* Integer */),
|
|
4484
|
+
generateParamConfigMetadata('rejectionComment', false, 2 /* Body */, 0 /* String */),
|
|
4485
|
+
generateParamConfigMetadata('requestType', false, 2 /* Body */, 0 /* String */),
|
|
4486
|
+
generateParamConfigMetadata('requesterComment', false, 2 /* Body */, 0 /* String */),
|
|
4487
|
+
generateParamConfigMetadata('sourceRequestId', false, 2 /* Body */, 0 /* String */),
|
|
4488
|
+
generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
|
|
4489
|
+
generateParamConfigMetadata('workspaceIdOrApiName', false, 2 /* Body */, 0 /* String */),
|
|
4112
4490
|
];
|
|
4113
4491
|
const createDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$E, createDataAssetRequest_ConfigPropertyMetadata);
|
|
4114
4492
|
const createResourceParams$E = /*#__PURE__*/ createResourceParams$Q(createDataAssetRequest_ConfigPropertyMetadata);
|
|
@@ -4538,16 +4916,16 @@ function createResourceRequest$B(config) {
|
|
|
4538
4916
|
const adapterName$B = 'updateDataAssetRequest';
|
|
4539
4917
|
const updateDataAssetRequest_ConfigPropertyMetadata = [
|
|
4540
4918
|
generateParamConfigMetadata('requestIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4541
|
-
generateParamConfigMetadata('assetId',
|
|
4542
|
-
generateParamConfigMetadata('id',
|
|
4543
|
-
generateParamConfigMetadata('label',
|
|
4544
|
-
generateParamConfigMetadata('numberOfDependencies',
|
|
4545
|
-
generateParamConfigMetadata('rejectionComment',
|
|
4546
|
-
generateParamConfigMetadata('requestType',
|
|
4547
|
-
generateParamConfigMetadata('requesterComment',
|
|
4548
|
-
generateParamConfigMetadata('sourceRequestId',
|
|
4549
|
-
generateParamConfigMetadata('status',
|
|
4550
|
-
generateParamConfigMetadata('workspaceIdOrApiName',
|
|
4919
|
+
generateParamConfigMetadata('assetId', false, 2 /* Body */, 0 /* String */),
|
|
4920
|
+
generateParamConfigMetadata('id', false, 2 /* Body */, 0 /* String */),
|
|
4921
|
+
generateParamConfigMetadata('label', false, 2 /* Body */, 0 /* String */),
|
|
4922
|
+
generateParamConfigMetadata('numberOfDependencies', false, 2 /* Body */, 3 /* Integer */),
|
|
4923
|
+
generateParamConfigMetadata('rejectionComment', false, 2 /* Body */, 0 /* String */),
|
|
4924
|
+
generateParamConfigMetadata('requestType', false, 2 /* Body */, 0 /* String */),
|
|
4925
|
+
generateParamConfigMetadata('requesterComment', false, 2 /* Body */, 0 /* String */),
|
|
4926
|
+
generateParamConfigMetadata('sourceRequestId', false, 2 /* Body */, 0 /* String */),
|
|
4927
|
+
generateParamConfigMetadata('status', false, 2 /* Body */, 0 /* String */),
|
|
4928
|
+
generateParamConfigMetadata('workspaceIdOrApiName', false, 2 /* Body */, 0 /* String */),
|
|
4551
4929
|
];
|
|
4552
4930
|
const updateDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
4553
4931
|
const createResourceParams$B = /*#__PURE__*/ createResourceParams$Q(updateDataAssetRequest_ConfigPropertyMetadata);
|
|
@@ -4613,10 +4991,64 @@ function validate$y(obj, path = 'DataAssetRepresentation') {
|
|
|
4613
4991
|
if (typeof obj_assetType !== 'string') {
|
|
4614
4992
|
return new TypeError('Expected "string" but received "' + typeof obj_assetType + '" (at "' + path_assetType + '")');
|
|
4615
4993
|
}
|
|
4616
|
-
const
|
|
4617
|
-
const
|
|
4618
|
-
|
|
4619
|
-
|
|
4994
|
+
const obj_createdBy = obj.createdBy;
|
|
4995
|
+
const path_createdBy = path + '.createdBy';
|
|
4996
|
+
const referencepath_createdByValidationError = validate$C(obj_createdBy, path_createdBy);
|
|
4997
|
+
if (referencepath_createdByValidationError !== null) {
|
|
4998
|
+
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
|
|
4999
|
+
message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5000
|
+
return new TypeError(message);
|
|
5001
|
+
}
|
|
5002
|
+
if (obj.createdDate !== undefined) {
|
|
5003
|
+
const obj_createdDate = obj.createdDate;
|
|
5004
|
+
const path_createdDate = path + '.createdDate';
|
|
5005
|
+
if (typeof obj_createdDate !== 'string') {
|
|
5006
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
5007
|
+
}
|
|
5008
|
+
}
|
|
5009
|
+
if (obj.description !== undefined) {
|
|
5010
|
+
const obj_description = obj.description;
|
|
5011
|
+
const path_description = path + '.description';
|
|
5012
|
+
if (typeof obj_description !== 'string') {
|
|
5013
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
5014
|
+
}
|
|
5015
|
+
}
|
|
5016
|
+
if (obj.id !== undefined) {
|
|
5017
|
+
const obj_id = obj.id;
|
|
5018
|
+
const path_id = path + '.id';
|
|
5019
|
+
if (typeof obj_id !== 'string') {
|
|
5020
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
5021
|
+
}
|
|
5022
|
+
}
|
|
5023
|
+
const obj_label = obj.label;
|
|
5024
|
+
const path_label = path + '.label';
|
|
5025
|
+
if (typeof obj_label !== 'string') {
|
|
5026
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
5027
|
+
}
|
|
5028
|
+
const obj_lastModifiedBy = obj.lastModifiedBy;
|
|
5029
|
+
const path_lastModifiedBy = path + '.lastModifiedBy';
|
|
5030
|
+
const referencepath_lastModifiedByValidationError = validate$C(obj_lastModifiedBy, path_lastModifiedBy);
|
|
5031
|
+
if (referencepath_lastModifiedByValidationError !== null) {
|
|
5032
|
+
let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
|
|
5033
|
+
message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5034
|
+
return new TypeError(message);
|
|
5035
|
+
}
|
|
5036
|
+
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
5037
|
+
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
5038
|
+
if (typeof obj_lastModifiedDate !== 'string') {
|
|
5039
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
5040
|
+
}
|
|
5041
|
+
const obj_name = obj.name;
|
|
5042
|
+
const path_name = path + '.name';
|
|
5043
|
+
if (typeof obj_name !== 'string') {
|
|
5044
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
5045
|
+
}
|
|
5046
|
+
if (obj.workspaceId !== undefined) {
|
|
5047
|
+
const obj_workspaceId = obj.workspaceId;
|
|
5048
|
+
const path_workspaceId = path + '.workspaceId';
|
|
5049
|
+
if (typeof obj_workspaceId !== 'string') {
|
|
5050
|
+
return new TypeError('Expected "string" but received "' + typeof obj_workspaceId + '" (at "' + path_workspaceId + '")');
|
|
5051
|
+
}
|
|
4620
5052
|
}
|
|
4621
5053
|
})();
|
|
4622
5054
|
return v_error === undefined ? null : v_error;
|
|
@@ -5965,16 +6397,16 @@ function validate$p(obj, path = 'OrgRepresentation') {
|
|
|
5965
6397
|
if (typeof obj_id !== 'string') {
|
|
5966
6398
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
5967
6399
|
}
|
|
6400
|
+
const obj_isCurrentOrg = obj.isCurrentOrg;
|
|
6401
|
+
const path_isCurrentOrg = path + '.isCurrentOrg';
|
|
6402
|
+
if (typeof obj_isCurrentOrg !== 'boolean') {
|
|
6403
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isCurrentOrg + '" (at "' + path_isCurrentOrg + '")');
|
|
6404
|
+
}
|
|
5968
6405
|
const obj_label = obj.label;
|
|
5969
6406
|
const path_label = path + '.label';
|
|
5970
6407
|
if (typeof obj_label !== 'string') {
|
|
5971
6408
|
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
5972
6409
|
}
|
|
5973
|
-
const obj_orgUrl = obj.orgUrl;
|
|
5974
|
-
const path_orgUrl = path + '.orgUrl';
|
|
5975
|
-
if (typeof obj_orgUrl !== 'string') {
|
|
5976
|
-
return new TypeError('Expected "string" but received "' + typeof obj_orgUrl + '" (at "' + path_orgUrl + '")');
|
|
5977
|
-
}
|
|
5978
6410
|
const obj_targetUrl = obj.targetUrl;
|
|
5979
6411
|
const path_targetUrl = path + '.targetUrl';
|
|
5980
6412
|
if (typeof obj_targetUrl !== 'string') {
|
|
@@ -5985,35 +6417,35 @@ function validate$p(obj, path = 'OrgRepresentation') {
|
|
|
5985
6417
|
}
|
|
5986
6418
|
|
|
5987
6419
|
const TTL$8 = 500;
|
|
5988
|
-
const VERSION$i = "
|
|
6420
|
+
const VERSION$i = "dba0af366d4e42611a2437d6eeb19b6e";
|
|
5989
6421
|
function validate$o(obj, path = 'OrgCollectionRepresentation') {
|
|
5990
6422
|
const v_error = (() => {
|
|
5991
6423
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5992
6424
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5993
6425
|
}
|
|
5994
|
-
const
|
|
5995
|
-
const
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
}
|
|
6007
|
-
for (let i = 0; i < obj_orgs.length; i++) {
|
|
6008
|
-
const obj_orgs_item = obj_orgs[i];
|
|
6009
|
-
const path_orgs_item = path_orgs + '[' + i + ']';
|
|
6010
|
-
const referencepath_orgs_itemValidationError = validate$p(obj_orgs_item, path_orgs_item);
|
|
6011
|
-
if (referencepath_orgs_itemValidationError !== null) {
|
|
6012
|
-
let message = 'Object doesn\'t match OrgRepresentation (at "' + path_orgs_item + '")\n';
|
|
6013
|
-
message += referencepath_orgs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
6426
|
+
const obj_personalOrgs = obj.personalOrgs;
|
|
6427
|
+
const path_personalOrgs = path + '.personalOrgs';
|
|
6428
|
+
if (!ArrayIsArray(obj_personalOrgs)) {
|
|
6429
|
+
return new TypeError('Expected "array" but received "' + typeof obj_personalOrgs + '" (at "' + path_personalOrgs + '")');
|
|
6430
|
+
}
|
|
6431
|
+
for (let i = 0; i < obj_personalOrgs.length; i++) {
|
|
6432
|
+
const obj_personalOrgs_item = obj_personalOrgs[i];
|
|
6433
|
+
const path_personalOrgs_item = path_personalOrgs + '[' + i + ']';
|
|
6434
|
+
const referencepath_personalOrgs_itemValidationError = validate$p(obj_personalOrgs_item, path_personalOrgs_item);
|
|
6435
|
+
if (referencepath_personalOrgs_itemValidationError !== null) {
|
|
6436
|
+
let message = 'Object doesn\'t match OrgRepresentation (at "' + path_personalOrgs_item + '")\n';
|
|
6437
|
+
message += referencepath_personalOrgs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
6014
6438
|
return new TypeError(message);
|
|
6015
6439
|
}
|
|
6016
6440
|
}
|
|
6441
|
+
const obj_productionOrg = obj.productionOrg;
|
|
6442
|
+
const path_productionOrg = path + '.productionOrg';
|
|
6443
|
+
const referencepath_productionOrgValidationError = validate$p(obj_productionOrg, path_productionOrg);
|
|
6444
|
+
if (referencepath_productionOrgValidationError !== null) {
|
|
6445
|
+
let message = 'Object doesn\'t match OrgRepresentation (at "' + path_productionOrg + '")\n';
|
|
6446
|
+
message += referencepath_productionOrgValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
6447
|
+
return new TypeError(message);
|
|
6448
|
+
}
|
|
6017
6449
|
})();
|
|
6018
6450
|
return v_error === undefined ? null : v_error;
|
|
6019
6451
|
}
|
|
@@ -6061,14 +6493,14 @@ function select$G(luvio, params) {
|
|
|
6061
6493
|
return select$H();
|
|
6062
6494
|
}
|
|
6063
6495
|
function keyBuilder$G(luvio, params) {
|
|
6064
|
-
return keyPrefix + '::OrgCollectionRepresentation:(' + '
|
|
6496
|
+
return keyPrefix + '::OrgCollectionRepresentation:(' + ')';
|
|
6065
6497
|
}
|
|
6066
6498
|
function getResponseCacheKeys$t(storeKeyMap, luvio, resourceParams, response) {
|
|
6067
|
-
getTypeCacheKeys$i(storeKeyMap, luvio, response, () => keyBuilder$G(
|
|
6499
|
+
getTypeCacheKeys$i(storeKeyMap, luvio, response, () => keyBuilder$G());
|
|
6068
6500
|
}
|
|
6069
6501
|
function ingestSuccess$o(luvio, resourceParams, response, snapshotRefresh) {
|
|
6070
6502
|
const { body } = response;
|
|
6071
|
-
const key = keyBuilder$G(
|
|
6503
|
+
const key = keyBuilder$G();
|
|
6072
6504
|
luvio.storeIngest(key, ingest$i, body);
|
|
6073
6505
|
const snapshot = luvio.storeLookup({
|
|
6074
6506
|
recordId: key,
|
|
@@ -6084,7 +6516,7 @@ function ingestSuccess$o(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6084
6516
|
return snapshot;
|
|
6085
6517
|
}
|
|
6086
6518
|
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
6087
|
-
const key = keyBuilder$G(
|
|
6519
|
+
const key = keyBuilder$G();
|
|
6088
6520
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6089
6521
|
const storeMetadataParams = {
|
|
6090
6522
|
ttl: TTL$8,
|
|
@@ -6099,10 +6531,10 @@ function createResourceRequest$t(config) {
|
|
|
6099
6531
|
const headers = {};
|
|
6100
6532
|
return {
|
|
6101
6533
|
baseUri: '/services/data/v64.0',
|
|
6102
|
-
basePath: '/tableau/orgs
|
|
6534
|
+
basePath: '/tableau/orgs',
|
|
6103
6535
|
method: 'get',
|
|
6104
6536
|
body: null,
|
|
6105
|
-
urlParams:
|
|
6537
|
+
urlParams: {},
|
|
6106
6538
|
queryParams: {},
|
|
6107
6539
|
headers,
|
|
6108
6540
|
priority: 'normal',
|
|
@@ -6110,18 +6542,15 @@ function createResourceRequest$t(config) {
|
|
|
6110
6542
|
}
|
|
6111
6543
|
|
|
6112
6544
|
const adapterName$t = 'getOrg';
|
|
6113
|
-
const getOrg_ConfigPropertyMetadata = [
|
|
6114
|
-
generateParamConfigMetadata('userName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6115
|
-
];
|
|
6545
|
+
const getOrg_ConfigPropertyMetadata = [];
|
|
6116
6546
|
const getOrg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, getOrg_ConfigPropertyMetadata);
|
|
6117
6547
|
const createResourceParams$t = /*#__PURE__*/ createResourceParams$Q(getOrg_ConfigPropertyMetadata);
|
|
6118
6548
|
function keyBuilder$F(luvio, config) {
|
|
6119
|
-
|
|
6120
|
-
return keyBuilder$G(
|
|
6549
|
+
createResourceParams$t(config);
|
|
6550
|
+
return keyBuilder$G();
|
|
6121
6551
|
}
|
|
6122
6552
|
function typeCheckConfig$t(untrustedConfig) {
|
|
6123
6553
|
const config = {};
|
|
6124
|
-
typeCheckConfig$Q(untrustedConfig, config, getOrg_ConfigPropertyMetadata);
|
|
6125
6554
|
return config;
|
|
6126
6555
|
}
|
|
6127
6556
|
function validateAdapterConfig$t(untrustedConfig, configPropertyNames) {
|
|
@@ -6131,7 +6560,7 @@ function validateAdapterConfig$t(untrustedConfig, configPropertyNames) {
|
|
|
6131
6560
|
if (process.env.NODE_ENV !== 'production') {
|
|
6132
6561
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6133
6562
|
}
|
|
6134
|
-
const config = typeCheckConfig$t(
|
|
6563
|
+
const config = typeCheckConfig$t();
|
|
6135
6564
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6136
6565
|
return null;
|
|
6137
6566
|
}
|
|
@@ -6157,7 +6586,7 @@ function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
|
6157
6586
|
}
|
|
6158
6587
|
function buildNetworkSnapshot$t(luvio, config, options) {
|
|
6159
6588
|
const resourceParams = createResourceParams$t(config);
|
|
6160
|
-
const request = createResourceRequest$t(
|
|
6589
|
+
const request = createResourceRequest$t();
|
|
6161
6590
|
return luvio.dispatchResourceRequest(request, options)
|
|
6162
6591
|
.then((response) => {
|
|
6163
6592
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|