@salesforce/lds-adapters-service-ecm 1.451.0-dev1 → 1.451.0-dev2
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.
|
@@ -2546,7 +2546,7 @@ function equals$s(existing, incoming) {
|
|
|
2546
2546
|
return true;
|
|
2547
2547
|
}
|
|
2548
2548
|
|
|
2549
|
-
const VERSION$r = "
|
|
2549
|
+
const VERSION$r = "477c5e02bbaf9950fb16065017d83318";
|
|
2550
2550
|
function validate$z(obj, path = 'IntakeFormOutputRepresentation') {
|
|
2551
2551
|
const v_error = (() => {
|
|
2552
2552
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2720,6 +2720,62 @@ function validate$z(obj, path = 'IntakeFormOutputRepresentation') {
|
|
|
2720
2720
|
return new TypeError(message);
|
|
2721
2721
|
}
|
|
2722
2722
|
}
|
|
2723
|
+
if (obj.supportsProcessTypeIdInput !== undefined) {
|
|
2724
|
+
const obj_supportsProcessTypeIdInput = obj.supportsProcessTypeIdInput;
|
|
2725
|
+
const path_supportsProcessTypeIdInput = path + '.supportsProcessTypeIdInput';
|
|
2726
|
+
let obj_supportsProcessTypeIdInput_union0 = null;
|
|
2727
|
+
const obj_supportsProcessTypeIdInput_union0_error = (() => {
|
|
2728
|
+
if (typeof obj_supportsProcessTypeIdInput !== 'boolean') {
|
|
2729
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_supportsProcessTypeIdInput + '" (at "' + path_supportsProcessTypeIdInput + '")');
|
|
2730
|
+
}
|
|
2731
|
+
})();
|
|
2732
|
+
if (obj_supportsProcessTypeIdInput_union0_error != null) {
|
|
2733
|
+
obj_supportsProcessTypeIdInput_union0 = obj_supportsProcessTypeIdInput_union0_error.message;
|
|
2734
|
+
}
|
|
2735
|
+
let obj_supportsProcessTypeIdInput_union1 = null;
|
|
2736
|
+
const obj_supportsProcessTypeIdInput_union1_error = (() => {
|
|
2737
|
+
if (obj_supportsProcessTypeIdInput !== null) {
|
|
2738
|
+
return new TypeError('Expected "null" but received "' + typeof obj_supportsProcessTypeIdInput + '" (at "' + path_supportsProcessTypeIdInput + '")');
|
|
2739
|
+
}
|
|
2740
|
+
})();
|
|
2741
|
+
if (obj_supportsProcessTypeIdInput_union1_error != null) {
|
|
2742
|
+
obj_supportsProcessTypeIdInput_union1 = obj_supportsProcessTypeIdInput_union1_error.message;
|
|
2743
|
+
}
|
|
2744
|
+
if (obj_supportsProcessTypeIdInput_union0 && obj_supportsProcessTypeIdInput_union1) {
|
|
2745
|
+
let message = 'Object doesn\'t match union (at "' + path_supportsProcessTypeIdInput + '")';
|
|
2746
|
+
message += '\n' + obj_supportsProcessTypeIdInput_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2747
|
+
message += '\n' + obj_supportsProcessTypeIdInput_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2748
|
+
return new TypeError(message);
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
if (obj.supportsSubmitUpdate !== undefined) {
|
|
2752
|
+
const obj_supportsSubmitUpdate = obj.supportsSubmitUpdate;
|
|
2753
|
+
const path_supportsSubmitUpdate = path + '.supportsSubmitUpdate';
|
|
2754
|
+
let obj_supportsSubmitUpdate_union0 = null;
|
|
2755
|
+
const obj_supportsSubmitUpdate_union0_error = (() => {
|
|
2756
|
+
if (typeof obj_supportsSubmitUpdate !== 'boolean') {
|
|
2757
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_supportsSubmitUpdate + '" (at "' + path_supportsSubmitUpdate + '")');
|
|
2758
|
+
}
|
|
2759
|
+
})();
|
|
2760
|
+
if (obj_supportsSubmitUpdate_union0_error != null) {
|
|
2761
|
+
obj_supportsSubmitUpdate_union0 = obj_supportsSubmitUpdate_union0_error.message;
|
|
2762
|
+
}
|
|
2763
|
+
let obj_supportsSubmitUpdate_union1 = null;
|
|
2764
|
+
const obj_supportsSubmitUpdate_union1_error = (() => {
|
|
2765
|
+
if (obj_supportsSubmitUpdate !== null) {
|
|
2766
|
+
return new TypeError('Expected "null" but received "' + typeof obj_supportsSubmitUpdate + '" (at "' + path_supportsSubmitUpdate + '")');
|
|
2767
|
+
}
|
|
2768
|
+
})();
|
|
2769
|
+
if (obj_supportsSubmitUpdate_union1_error != null) {
|
|
2770
|
+
obj_supportsSubmitUpdate_union1 = obj_supportsSubmitUpdate_union1_error.message;
|
|
2771
|
+
}
|
|
2772
|
+
if (obj_supportsSubmitUpdate_union0 && obj_supportsSubmitUpdate_union1) {
|
|
2773
|
+
let message = 'Object doesn\'t match union (at "' + path_supportsSubmitUpdate + '")';
|
|
2774
|
+
message += '\n' + obj_supportsSubmitUpdate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2775
|
+
message += '\n' + obj_supportsSubmitUpdate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2776
|
+
return new TypeError(message);
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2723
2779
|
if (obj.type !== undefined) {
|
|
2724
2780
|
const obj_type = obj.type;
|
|
2725
2781
|
const path_type = path + '.type';
|
|
@@ -2815,6 +2871,16 @@ const select$H = function IntakeFormOutputRepresentationSelect() {
|
|
|
2815
2871
|
kind: 'Scalar',
|
|
2816
2872
|
required: false
|
|
2817
2873
|
},
|
|
2874
|
+
{
|
|
2875
|
+
name: 'supportsProcessTypeIdInput',
|
|
2876
|
+
kind: 'Scalar',
|
|
2877
|
+
required: false
|
|
2878
|
+
},
|
|
2879
|
+
{
|
|
2880
|
+
name: 'supportsSubmitUpdate',
|
|
2881
|
+
kind: 'Scalar',
|
|
2882
|
+
required: false
|
|
2883
|
+
},
|
|
2818
2884
|
{
|
|
2819
2885
|
name: 'type',
|
|
2820
2886
|
kind: 'Scalar',
|
|
@@ -2907,6 +2973,32 @@ function equals$r(existing, incoming) {
|
|
|
2907
2973
|
return false;
|
|
2908
2974
|
}
|
|
2909
2975
|
}
|
|
2976
|
+
const existing_supportsProcessTypeIdInput = existing.supportsProcessTypeIdInput;
|
|
2977
|
+
const incoming_supportsProcessTypeIdInput = incoming.supportsProcessTypeIdInput;
|
|
2978
|
+
// if at least one of these optionals is defined
|
|
2979
|
+
if (existing_supportsProcessTypeIdInput !== undefined || incoming_supportsProcessTypeIdInput !== undefined) {
|
|
2980
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2981
|
+
// not equal
|
|
2982
|
+
if (existing_supportsProcessTypeIdInput === undefined || incoming_supportsProcessTypeIdInput === undefined) {
|
|
2983
|
+
return false;
|
|
2984
|
+
}
|
|
2985
|
+
if (!(existing_supportsProcessTypeIdInput === incoming_supportsProcessTypeIdInput)) {
|
|
2986
|
+
return false;
|
|
2987
|
+
}
|
|
2988
|
+
}
|
|
2989
|
+
const existing_supportsSubmitUpdate = existing.supportsSubmitUpdate;
|
|
2990
|
+
const incoming_supportsSubmitUpdate = incoming.supportsSubmitUpdate;
|
|
2991
|
+
// if at least one of these optionals is defined
|
|
2992
|
+
if (existing_supportsSubmitUpdate !== undefined || incoming_supportsSubmitUpdate !== undefined) {
|
|
2993
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2994
|
+
// not equal
|
|
2995
|
+
if (existing_supportsSubmitUpdate === undefined || incoming_supportsSubmitUpdate === undefined) {
|
|
2996
|
+
return false;
|
|
2997
|
+
}
|
|
2998
|
+
if (!(existing_supportsSubmitUpdate === incoming_supportsSubmitUpdate)) {
|
|
2999
|
+
return false;
|
|
3000
|
+
}
|
|
3001
|
+
}
|
|
2910
3002
|
const existing_type = existing.type;
|
|
2911
3003
|
const incoming_type = incoming.type;
|
|
2912
3004
|
// if at least one of these optionals is defined
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "477c5e02bbaf9950fb16065017d83318";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: IntakeFormOutputRepresentation, existing: IntakeFormOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): IntakeFormOutputRepresentationNormalized;
|
|
@@ -26,6 +26,10 @@ export interface IntakeFormOutputRepresentationNormalized {
|
|
|
26
26
|
omniScriptSubType?: string | null;
|
|
27
27
|
/** OmniScript Type */
|
|
28
28
|
omniScriptType?: string | null;
|
|
29
|
+
/** Indicates whether users can enter the process type ID (true) or not (false). The default value is false. */
|
|
30
|
+
supportsProcessTypeIdInput?: boolean | null;
|
|
31
|
+
/** Indicates whether users can submit the request changes (true) or not (false). The default value is false. */
|
|
32
|
+
supportsSubmitUpdate?: boolean | null;
|
|
29
33
|
/** Intake Form Type */
|
|
30
34
|
type?: string | null;
|
|
31
35
|
/** Unique Name */
|
|
@@ -44,6 +48,8 @@ export interface IntakeFormOutputRepresentation {
|
|
|
44
48
|
omniScriptLanguage?: string | null;
|
|
45
49
|
omniScriptSubType?: string | null;
|
|
46
50
|
omniScriptType?: string | null;
|
|
51
|
+
supportsProcessTypeIdInput?: boolean | null;
|
|
52
|
+
supportsSubmitUpdate?: boolean | null;
|
|
47
53
|
type?: string | null;
|
|
48
54
|
uniqueName?: string | null;
|
|
49
55
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-ecm",
|
|
3
|
-
"version": "1.451.0-
|
|
3
|
+
"version": "1.451.0-dev2",
|
|
4
4
|
"description": "Service Automation Request",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/service-ecm.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.451.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.451.0-dev2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.451.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.451.0-dev2"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -3565,7 +3565,7 @@ function equals$o(existing, incoming) {
|
|
|
3565
3565
|
return true;
|
|
3566
3566
|
}
|
|
3567
3567
|
|
|
3568
|
-
const VERSION$n = "
|
|
3568
|
+
const VERSION$n = "477c5e02bbaf9950fb16065017d83318";
|
|
3569
3569
|
function validate$v(obj, path = 'IntakeFormOutputRepresentation') {
|
|
3570
3570
|
const v_error = (() => {
|
|
3571
3571
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3739,6 +3739,62 @@ function validate$v(obj, path = 'IntakeFormOutputRepresentation') {
|
|
|
3739
3739
|
return new TypeError(message);
|
|
3740
3740
|
}
|
|
3741
3741
|
}
|
|
3742
|
+
if (obj.supportsProcessTypeIdInput !== undefined) {
|
|
3743
|
+
const obj_supportsProcessTypeIdInput = obj.supportsProcessTypeIdInput;
|
|
3744
|
+
const path_supportsProcessTypeIdInput = path + '.supportsProcessTypeIdInput';
|
|
3745
|
+
let obj_supportsProcessTypeIdInput_union0 = null;
|
|
3746
|
+
const obj_supportsProcessTypeIdInput_union0_error = (() => {
|
|
3747
|
+
if (typeof obj_supportsProcessTypeIdInput !== 'boolean') {
|
|
3748
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_supportsProcessTypeIdInput + '" (at "' + path_supportsProcessTypeIdInput + '")');
|
|
3749
|
+
}
|
|
3750
|
+
})();
|
|
3751
|
+
if (obj_supportsProcessTypeIdInput_union0_error != null) {
|
|
3752
|
+
obj_supportsProcessTypeIdInput_union0 = obj_supportsProcessTypeIdInput_union0_error.message;
|
|
3753
|
+
}
|
|
3754
|
+
let obj_supportsProcessTypeIdInput_union1 = null;
|
|
3755
|
+
const obj_supportsProcessTypeIdInput_union1_error = (() => {
|
|
3756
|
+
if (obj_supportsProcessTypeIdInput !== null) {
|
|
3757
|
+
return new TypeError('Expected "null" but received "' + typeof obj_supportsProcessTypeIdInput + '" (at "' + path_supportsProcessTypeIdInput + '")');
|
|
3758
|
+
}
|
|
3759
|
+
})();
|
|
3760
|
+
if (obj_supportsProcessTypeIdInput_union1_error != null) {
|
|
3761
|
+
obj_supportsProcessTypeIdInput_union1 = obj_supportsProcessTypeIdInput_union1_error.message;
|
|
3762
|
+
}
|
|
3763
|
+
if (obj_supportsProcessTypeIdInput_union0 && obj_supportsProcessTypeIdInput_union1) {
|
|
3764
|
+
let message = 'Object doesn\'t match union (at "' + path_supportsProcessTypeIdInput + '")';
|
|
3765
|
+
message += '\n' + obj_supportsProcessTypeIdInput_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3766
|
+
message += '\n' + obj_supportsProcessTypeIdInput_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3767
|
+
return new TypeError(message);
|
|
3768
|
+
}
|
|
3769
|
+
}
|
|
3770
|
+
if (obj.supportsSubmitUpdate !== undefined) {
|
|
3771
|
+
const obj_supportsSubmitUpdate = obj.supportsSubmitUpdate;
|
|
3772
|
+
const path_supportsSubmitUpdate = path + '.supportsSubmitUpdate';
|
|
3773
|
+
let obj_supportsSubmitUpdate_union0 = null;
|
|
3774
|
+
const obj_supportsSubmitUpdate_union0_error = (() => {
|
|
3775
|
+
if (typeof obj_supportsSubmitUpdate !== 'boolean') {
|
|
3776
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_supportsSubmitUpdate + '" (at "' + path_supportsSubmitUpdate + '")');
|
|
3777
|
+
}
|
|
3778
|
+
})();
|
|
3779
|
+
if (obj_supportsSubmitUpdate_union0_error != null) {
|
|
3780
|
+
obj_supportsSubmitUpdate_union0 = obj_supportsSubmitUpdate_union0_error.message;
|
|
3781
|
+
}
|
|
3782
|
+
let obj_supportsSubmitUpdate_union1 = null;
|
|
3783
|
+
const obj_supportsSubmitUpdate_union1_error = (() => {
|
|
3784
|
+
if (obj_supportsSubmitUpdate !== null) {
|
|
3785
|
+
return new TypeError('Expected "null" but received "' + typeof obj_supportsSubmitUpdate + '" (at "' + path_supportsSubmitUpdate + '")');
|
|
3786
|
+
}
|
|
3787
|
+
})();
|
|
3788
|
+
if (obj_supportsSubmitUpdate_union1_error != null) {
|
|
3789
|
+
obj_supportsSubmitUpdate_union1 = obj_supportsSubmitUpdate_union1_error.message;
|
|
3790
|
+
}
|
|
3791
|
+
if (obj_supportsSubmitUpdate_union0 && obj_supportsSubmitUpdate_union1) {
|
|
3792
|
+
let message = 'Object doesn\'t match union (at "' + path_supportsSubmitUpdate + '")';
|
|
3793
|
+
message += '\n' + obj_supportsSubmitUpdate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3794
|
+
message += '\n' + obj_supportsSubmitUpdate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3795
|
+
return new TypeError(message);
|
|
3796
|
+
}
|
|
3797
|
+
}
|
|
3742
3798
|
if (obj.type !== undefined) {
|
|
3743
3799
|
const obj_type = obj.type;
|
|
3744
3800
|
const path_type = path + '.type';
|
|
@@ -3834,6 +3890,16 @@ const select$B = function IntakeFormOutputRepresentationSelect() {
|
|
|
3834
3890
|
kind: 'Scalar',
|
|
3835
3891
|
required: false
|
|
3836
3892
|
},
|
|
3893
|
+
{
|
|
3894
|
+
name: 'supportsProcessTypeIdInput',
|
|
3895
|
+
kind: 'Scalar',
|
|
3896
|
+
required: false
|
|
3897
|
+
},
|
|
3898
|
+
{
|
|
3899
|
+
name: 'supportsSubmitUpdate',
|
|
3900
|
+
kind: 'Scalar',
|
|
3901
|
+
required: false
|
|
3902
|
+
},
|
|
3837
3903
|
{
|
|
3838
3904
|
name: 'type',
|
|
3839
3905
|
kind: 'Scalar',
|
|
@@ -3926,6 +3992,32 @@ function equals$n(existing, incoming) {
|
|
|
3926
3992
|
return false;
|
|
3927
3993
|
}
|
|
3928
3994
|
}
|
|
3995
|
+
const existing_supportsProcessTypeIdInput = existing.supportsProcessTypeIdInput;
|
|
3996
|
+
const incoming_supportsProcessTypeIdInput = incoming.supportsProcessTypeIdInput;
|
|
3997
|
+
// if at least one of these optionals is defined
|
|
3998
|
+
if (existing_supportsProcessTypeIdInput !== undefined || incoming_supportsProcessTypeIdInput !== undefined) {
|
|
3999
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4000
|
+
// not equal
|
|
4001
|
+
if (existing_supportsProcessTypeIdInput === undefined || incoming_supportsProcessTypeIdInput === undefined) {
|
|
4002
|
+
return false;
|
|
4003
|
+
}
|
|
4004
|
+
if (!(existing_supportsProcessTypeIdInput === incoming_supportsProcessTypeIdInput)) {
|
|
4005
|
+
return false;
|
|
4006
|
+
}
|
|
4007
|
+
}
|
|
4008
|
+
const existing_supportsSubmitUpdate = existing.supportsSubmitUpdate;
|
|
4009
|
+
const incoming_supportsSubmitUpdate = incoming.supportsSubmitUpdate;
|
|
4010
|
+
// if at least one of these optionals is defined
|
|
4011
|
+
if (existing_supportsSubmitUpdate !== undefined || incoming_supportsSubmitUpdate !== undefined) {
|
|
4012
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4013
|
+
// not equal
|
|
4014
|
+
if (existing_supportsSubmitUpdate === undefined || incoming_supportsSubmitUpdate === undefined) {
|
|
4015
|
+
return false;
|
|
4016
|
+
}
|
|
4017
|
+
if (!(existing_supportsSubmitUpdate === incoming_supportsSubmitUpdate)) {
|
|
4018
|
+
return false;
|
|
4019
|
+
}
|
|
4020
|
+
}
|
|
3929
4021
|
const existing_type = existing.type;
|
|
3930
4022
|
const incoming_type = incoming.type;
|
|
3931
4023
|
// if at least one of these optionals is defined
|
|
@@ -12572,4 +12664,4 @@ withDefaultLuvio((luvio) => {
|
|
|
12572
12664
|
});
|
|
12573
12665
|
|
|
12574
12666
|
export { createAgentAction, createAgentFlow, createCatalogItem, deployTemplate, downloadServiceProcessTemplate, downloadServiceProcessTemplate_imperative, generateIntakeForm, generateOmniScript, getAgentActions, getAgentActions_imperative, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getAllServiceProcessTemplate, getAllServiceProcessTemplate_imperative, getCatalogItem, getCatalogItem_imperative, getEligibilityRuleMetadata, getEligibilityRuleMetadata_imperative, getServiceRequest, getServiceRequest_imperative, saveEligibilityRule, updateCatalogItem, updateEpcCategories };
|
|
12575
|
-
// version: 1.451.0-
|
|
12667
|
+
// version: 1.451.0-dev2-312b888699
|
package/src/raml/api.raml
CHANGED
|
@@ -821,6 +821,14 @@ types:
|
|
|
821
821
|
required: false
|
|
822
822
|
description: OmniScript Type
|
|
823
823
|
type: string | nil
|
|
824
|
+
supportsProcessTypeIdInput:
|
|
825
|
+
required: false
|
|
826
|
+
description: Indicates whether users can enter the process type ID (true) or not (false). The default value is false.
|
|
827
|
+
type: boolean | nil
|
|
828
|
+
supportsSubmitUpdate:
|
|
829
|
+
required: false
|
|
830
|
+
description: Indicates whether users can submit the request changes (true) or not (false). The default value is false.
|
|
831
|
+
type: boolean | nil
|
|
824
832
|
type:
|
|
825
833
|
required: false
|
|
826
834
|
description: Intake Form Type
|