@salesforce/lds-adapters-service-ecm 1.343.0 → 1.345.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/service-ecm.js +641 -25
- package/dist/es/es2018/types/src/generated/adapters/createCatalogItem.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/adapters/updateCatalogItem.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/patchConnectServiceAutomationCatalogCatalogItemByCatalogItemId.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationCatalogCatalogItem.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/types/AgentActionInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/AgentActionOutputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/CatalogItemCreateInputRepresentation.d.ts +9 -1
- package/dist/es/es2018/types/src/generated/types/CatalogItemOutputRepresentation.d.ts +9 -2
- package/dist/es/es2018/types/src/generated/types/CatalogItemUpdateInputRepresentation.d.ts +9 -1
- package/dist/es/es2018/types/src/generated/types/ProductDetailsInputRepresentation.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/ProductRequestCreateInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/ProductRequestUpdateInputRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +642 -26
- package/src/raml/api.raml +98 -2
|
@@ -93,7 +93,128 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
function validate$
|
|
96
|
+
function validate$s(obj, path = 'AgentActionInputRepresentation') {
|
|
97
|
+
const v_error = (() => {
|
|
98
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
99
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
100
|
+
}
|
|
101
|
+
if (obj.agentActionId !== undefined) {
|
|
102
|
+
const obj_agentActionId = obj.agentActionId;
|
|
103
|
+
const path_agentActionId = path + '.agentActionId';
|
|
104
|
+
let obj_agentActionId_union0 = null;
|
|
105
|
+
const obj_agentActionId_union0_error = (() => {
|
|
106
|
+
if (typeof obj_agentActionId !== 'string') {
|
|
107
|
+
return new TypeError('Expected "string" but received "' + typeof obj_agentActionId + '" (at "' + path_agentActionId + '")');
|
|
108
|
+
}
|
|
109
|
+
})();
|
|
110
|
+
if (obj_agentActionId_union0_error != null) {
|
|
111
|
+
obj_agentActionId_union0 = obj_agentActionId_union0_error.message;
|
|
112
|
+
}
|
|
113
|
+
let obj_agentActionId_union1 = null;
|
|
114
|
+
const obj_agentActionId_union1_error = (() => {
|
|
115
|
+
if (obj_agentActionId !== null) {
|
|
116
|
+
return new TypeError('Expected "null" but received "' + typeof obj_agentActionId + '" (at "' + path_agentActionId + '")');
|
|
117
|
+
}
|
|
118
|
+
})();
|
|
119
|
+
if (obj_agentActionId_union1_error != null) {
|
|
120
|
+
obj_agentActionId_union1 = obj_agentActionId_union1_error.message;
|
|
121
|
+
}
|
|
122
|
+
if (obj_agentActionId_union0 && obj_agentActionId_union1) {
|
|
123
|
+
let message = 'Object doesn\'t match union (at "' + path_agentActionId + '")';
|
|
124
|
+
message += '\n' + obj_agentActionId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
125
|
+
message += '\n' + obj_agentActionId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
126
|
+
return new TypeError(message);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
if (obj.id !== undefined) {
|
|
130
|
+
const obj_id = obj.id;
|
|
131
|
+
const path_id = path + '.id';
|
|
132
|
+
let obj_id_union0 = null;
|
|
133
|
+
const obj_id_union0_error = (() => {
|
|
134
|
+
if (typeof obj_id !== 'string') {
|
|
135
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
136
|
+
}
|
|
137
|
+
})();
|
|
138
|
+
if (obj_id_union0_error != null) {
|
|
139
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
140
|
+
}
|
|
141
|
+
let obj_id_union1 = null;
|
|
142
|
+
const obj_id_union1_error = (() => {
|
|
143
|
+
if (obj_id !== null) {
|
|
144
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
145
|
+
}
|
|
146
|
+
})();
|
|
147
|
+
if (obj_id_union1_error != null) {
|
|
148
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
149
|
+
}
|
|
150
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
151
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
152
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
153
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
154
|
+
return new TypeError(message);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
if (obj.operationType !== undefined) {
|
|
158
|
+
const obj_operationType = obj.operationType;
|
|
159
|
+
const path_operationType = path + '.operationType';
|
|
160
|
+
let obj_operationType_union0 = null;
|
|
161
|
+
const obj_operationType_union0_error = (() => {
|
|
162
|
+
if (typeof obj_operationType !== 'string') {
|
|
163
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
|
|
164
|
+
}
|
|
165
|
+
})();
|
|
166
|
+
if (obj_operationType_union0_error != null) {
|
|
167
|
+
obj_operationType_union0 = obj_operationType_union0_error.message;
|
|
168
|
+
}
|
|
169
|
+
let obj_operationType_union1 = null;
|
|
170
|
+
const obj_operationType_union1_error = (() => {
|
|
171
|
+
if (obj_operationType !== null) {
|
|
172
|
+
return new TypeError('Expected "null" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
|
|
173
|
+
}
|
|
174
|
+
})();
|
|
175
|
+
if (obj_operationType_union1_error != null) {
|
|
176
|
+
obj_operationType_union1 = obj_operationType_union1_error.message;
|
|
177
|
+
}
|
|
178
|
+
if (obj_operationType_union0 && obj_operationType_union1) {
|
|
179
|
+
let message = 'Object doesn\'t match union (at "' + path_operationType + '")';
|
|
180
|
+
message += '\n' + obj_operationType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
181
|
+
message += '\n' + obj_operationType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
182
|
+
return new TypeError(message);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
if (obj.status !== undefined) {
|
|
186
|
+
const obj_status = obj.status;
|
|
187
|
+
const path_status = path + '.status';
|
|
188
|
+
let obj_status_union0 = null;
|
|
189
|
+
const obj_status_union0_error = (() => {
|
|
190
|
+
if (typeof obj_status !== 'string') {
|
|
191
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
192
|
+
}
|
|
193
|
+
})();
|
|
194
|
+
if (obj_status_union0_error != null) {
|
|
195
|
+
obj_status_union0 = obj_status_union0_error.message;
|
|
196
|
+
}
|
|
197
|
+
let obj_status_union1 = null;
|
|
198
|
+
const obj_status_union1_error = (() => {
|
|
199
|
+
if (obj_status !== null) {
|
|
200
|
+
return new TypeError('Expected "null" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
201
|
+
}
|
|
202
|
+
})();
|
|
203
|
+
if (obj_status_union1_error != null) {
|
|
204
|
+
obj_status_union1 = obj_status_union1_error.message;
|
|
205
|
+
}
|
|
206
|
+
if (obj_status_union0 && obj_status_union1) {
|
|
207
|
+
let message = 'Object doesn\'t match union (at "' + path_status + '")';
|
|
208
|
+
message += '\n' + obj_status_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
209
|
+
message += '\n' + obj_status_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
210
|
+
return new TypeError(message);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
})();
|
|
214
|
+
return v_error === undefined ? null : v_error;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
function validate$r(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
97
218
|
const v_error = (() => {
|
|
98
219
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
99
220
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -186,7 +307,7 @@ function validate$p(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
|
186
307
|
return v_error === undefined ? null : v_error;
|
|
187
308
|
}
|
|
188
309
|
|
|
189
|
-
function validate$
|
|
310
|
+
function validate$q(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
190
311
|
const v_error = (() => {
|
|
191
312
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
192
313
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -559,11 +680,53 @@ function validate$o(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
559
680
|
return v_error === undefined ? null : v_error;
|
|
560
681
|
}
|
|
561
682
|
|
|
562
|
-
function validate$
|
|
683
|
+
function validate$p(obj, path = 'SectionInputRepresentation') {
|
|
563
684
|
const v_error = (() => {
|
|
564
685
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
565
686
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
566
687
|
}
|
|
688
|
+
if (obj.attributes !== undefined) {
|
|
689
|
+
const obj_attributes = obj.attributes;
|
|
690
|
+
const path_attributes = path + '.attributes';
|
|
691
|
+
if (!ArrayIsArray(obj_attributes)) {
|
|
692
|
+
return new TypeError('Expected "array" but received "' + typeof obj_attributes + '" (at "' + path_attributes + '")');
|
|
693
|
+
}
|
|
694
|
+
for (let i = 0; i < obj_attributes.length; i++) {
|
|
695
|
+
const obj_attributes_item = obj_attributes[i];
|
|
696
|
+
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
697
|
+
if (obj_attributes_item === undefined) {
|
|
698
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_attributes_item + '" (at "' + path_attributes_item + '")');
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
if (obj.description !== undefined) {
|
|
703
|
+
const obj_description = obj.description;
|
|
704
|
+
const path_description = path + '.description';
|
|
705
|
+
let obj_description_union0 = null;
|
|
706
|
+
const obj_description_union0_error = (() => {
|
|
707
|
+
if (typeof obj_description !== 'string') {
|
|
708
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
709
|
+
}
|
|
710
|
+
})();
|
|
711
|
+
if (obj_description_union0_error != null) {
|
|
712
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
713
|
+
}
|
|
714
|
+
let obj_description_union1 = null;
|
|
715
|
+
const obj_description_union1_error = (() => {
|
|
716
|
+
if (obj_description !== null) {
|
|
717
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
718
|
+
}
|
|
719
|
+
})();
|
|
720
|
+
if (obj_description_union1_error != null) {
|
|
721
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
722
|
+
}
|
|
723
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
724
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
725
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
726
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
727
|
+
return new TypeError(message);
|
|
728
|
+
}
|
|
729
|
+
}
|
|
567
730
|
if (obj.id !== undefined) {
|
|
568
731
|
const obj_id = obj.id;
|
|
569
732
|
const path_id = path + '.id';
|
|
@@ -592,6 +755,34 @@ function validate$n(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
|
592
755
|
return new TypeError(message);
|
|
593
756
|
}
|
|
594
757
|
}
|
|
758
|
+
if (obj.name !== undefined) {
|
|
759
|
+
const obj_name = obj.name;
|
|
760
|
+
const path_name = path + '.name';
|
|
761
|
+
let obj_name_union0 = null;
|
|
762
|
+
const obj_name_union0_error = (() => {
|
|
763
|
+
if (typeof obj_name !== 'string') {
|
|
764
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
765
|
+
}
|
|
766
|
+
})();
|
|
767
|
+
if (obj_name_union0_error != null) {
|
|
768
|
+
obj_name_union0 = obj_name_union0_error.message;
|
|
769
|
+
}
|
|
770
|
+
let obj_name_union1 = null;
|
|
771
|
+
const obj_name_union1_error = (() => {
|
|
772
|
+
if (obj_name !== null) {
|
|
773
|
+
return new TypeError('Expected "null" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
774
|
+
}
|
|
775
|
+
})();
|
|
776
|
+
if (obj_name_union1_error != null) {
|
|
777
|
+
obj_name_union1 = obj_name_union1_error.message;
|
|
778
|
+
}
|
|
779
|
+
if (obj_name_union0 && obj_name_union1) {
|
|
780
|
+
let message = 'Object doesn\'t match union (at "' + path_name + '")';
|
|
781
|
+
message += '\n' + obj_name_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
782
|
+
message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
783
|
+
return new TypeError(message);
|
|
784
|
+
}
|
|
785
|
+
}
|
|
595
786
|
if (obj.operationType !== undefined) {
|
|
596
787
|
const obj_operationType = obj.operationType;
|
|
597
788
|
const path_operationType = path + '.operationType';
|
|
@@ -624,7 +815,72 @@ function validate$n(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
|
624
815
|
return v_error === undefined ? null : v_error;
|
|
625
816
|
}
|
|
626
817
|
|
|
627
|
-
function validate$
|
|
818
|
+
function validate$o(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
819
|
+
const v_error = (() => {
|
|
820
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
821
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
822
|
+
}
|
|
823
|
+
if (obj.id !== undefined) {
|
|
824
|
+
const obj_id = obj.id;
|
|
825
|
+
const path_id = path + '.id';
|
|
826
|
+
let obj_id_union0 = null;
|
|
827
|
+
const obj_id_union0_error = (() => {
|
|
828
|
+
if (typeof obj_id !== 'string') {
|
|
829
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
830
|
+
}
|
|
831
|
+
})();
|
|
832
|
+
if (obj_id_union0_error != null) {
|
|
833
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
834
|
+
}
|
|
835
|
+
let obj_id_union1 = null;
|
|
836
|
+
const obj_id_union1_error = (() => {
|
|
837
|
+
if (obj_id !== null) {
|
|
838
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
839
|
+
}
|
|
840
|
+
})();
|
|
841
|
+
if (obj_id_union1_error != null) {
|
|
842
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
843
|
+
}
|
|
844
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
845
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
846
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
847
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
848
|
+
return new TypeError(message);
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
if (obj.operationType !== undefined) {
|
|
852
|
+
const obj_operationType = obj.operationType;
|
|
853
|
+
const path_operationType = path + '.operationType';
|
|
854
|
+
let obj_operationType_union0 = null;
|
|
855
|
+
const obj_operationType_union0_error = (() => {
|
|
856
|
+
if (typeof obj_operationType !== 'string') {
|
|
857
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
|
|
858
|
+
}
|
|
859
|
+
})();
|
|
860
|
+
if (obj_operationType_union0_error != null) {
|
|
861
|
+
obj_operationType_union0 = obj_operationType_union0_error.message;
|
|
862
|
+
}
|
|
863
|
+
let obj_operationType_union1 = null;
|
|
864
|
+
const obj_operationType_union1_error = (() => {
|
|
865
|
+
if (obj_operationType !== null) {
|
|
866
|
+
return new TypeError('Expected "null" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
|
|
867
|
+
}
|
|
868
|
+
})();
|
|
869
|
+
if (obj_operationType_union1_error != null) {
|
|
870
|
+
obj_operationType_union1 = obj_operationType_union1_error.message;
|
|
871
|
+
}
|
|
872
|
+
if (obj_operationType_union0 && obj_operationType_union1) {
|
|
873
|
+
let message = 'Object doesn\'t match union (at "' + path_operationType + '")';
|
|
874
|
+
message += '\n' + obj_operationType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
875
|
+
message += '\n' + obj_operationType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
876
|
+
return new TypeError(message);
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
})();
|
|
880
|
+
return v_error === undefined ? null : v_error;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
function validate$n(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
628
884
|
const v_error = (() => {
|
|
629
885
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
630
886
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -745,7 +1001,7 @@ function validate$m(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
|
745
1001
|
return v_error === undefined ? null : v_error;
|
|
746
1002
|
}
|
|
747
1003
|
|
|
748
|
-
function validate$
|
|
1004
|
+
function validate$m(obj, path = 'IntakeFormInputRepresentation') {
|
|
749
1005
|
const v_error = (() => {
|
|
750
1006
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
751
1007
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -866,7 +1122,7 @@ function validate$l(obj, path = 'IntakeFormInputRepresentation') {
|
|
|
866
1122
|
return v_error === undefined ? null : v_error;
|
|
867
1123
|
}
|
|
868
1124
|
|
|
869
|
-
function validate$
|
|
1125
|
+
function validate$l(obj, path = 'IntegrationDefInputRepresentation') {
|
|
870
1126
|
const v_error = (() => {
|
|
871
1127
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
872
1128
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -959,7 +1215,7 @@ function validate$k(obj, path = 'IntegrationDefInputRepresentation') {
|
|
|
959
1215
|
return v_error === undefined ? null : v_error;
|
|
960
1216
|
}
|
|
961
1217
|
|
|
962
|
-
function validate$
|
|
1218
|
+
function validate$k(obj, path = 'PreprocessorInputRepresentation') {
|
|
963
1219
|
const v_error = (() => {
|
|
964
1220
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
965
1221
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1052,11 +1308,39 @@ function validate$j(obj, path = 'PreprocessorInputRepresentation') {
|
|
|
1052
1308
|
return v_error === undefined ? null : v_error;
|
|
1053
1309
|
}
|
|
1054
1310
|
|
|
1055
|
-
function validate$
|
|
1311
|
+
function validate$j(obj, path = 'ProductRequestCreateInputRepresentation') {
|
|
1056
1312
|
const v_error = (() => {
|
|
1057
1313
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1058
1314
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1059
1315
|
}
|
|
1316
|
+
if (obj.operationType !== undefined) {
|
|
1317
|
+
const obj_operationType = obj.operationType;
|
|
1318
|
+
const path_operationType = path + '.operationType';
|
|
1319
|
+
let obj_operationType_union0 = null;
|
|
1320
|
+
const obj_operationType_union0_error = (() => {
|
|
1321
|
+
if (typeof obj_operationType !== 'string') {
|
|
1322
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
|
|
1323
|
+
}
|
|
1324
|
+
})();
|
|
1325
|
+
if (obj_operationType_union0_error != null) {
|
|
1326
|
+
obj_operationType_union0 = obj_operationType_union0_error.message;
|
|
1327
|
+
}
|
|
1328
|
+
let obj_operationType_union1 = null;
|
|
1329
|
+
const obj_operationType_union1_error = (() => {
|
|
1330
|
+
if (obj_operationType !== null) {
|
|
1331
|
+
return new TypeError('Expected "null" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
|
|
1332
|
+
}
|
|
1333
|
+
})();
|
|
1334
|
+
if (obj_operationType_union1_error != null) {
|
|
1335
|
+
obj_operationType_union1 = obj_operationType_union1_error.message;
|
|
1336
|
+
}
|
|
1337
|
+
if (obj_operationType_union0 && obj_operationType_union1) {
|
|
1338
|
+
let message = 'Object doesn\'t match union (at "' + path_operationType + '")';
|
|
1339
|
+
message += '\n' + obj_operationType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1340
|
+
message += '\n' + obj_operationType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1341
|
+
return new TypeError(message);
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1060
1344
|
if (obj.productDetails !== undefined) {
|
|
1061
1345
|
const obj_productDetails = obj.productDetails;
|
|
1062
1346
|
const path_productDetails = path + '.productDetails';
|
|
@@ -1215,6 +1499,166 @@ function validate$i(obj, path = 'ProductRequestCreateInputRepresentation') {
|
|
|
1215
1499
|
return v_error === undefined ? null : v_error;
|
|
1216
1500
|
}
|
|
1217
1501
|
|
|
1502
|
+
const VERSION$e = "ac94c0c52190d3f2f063659052e5b46e";
|
|
1503
|
+
function validate$i(obj, path = 'AgentActionOutputRepresentation') {
|
|
1504
|
+
const v_error = (() => {
|
|
1505
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1506
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1507
|
+
}
|
|
1508
|
+
if (obj.agentActionId !== undefined) {
|
|
1509
|
+
const obj_agentActionId = obj.agentActionId;
|
|
1510
|
+
const path_agentActionId = path + '.agentActionId';
|
|
1511
|
+
let obj_agentActionId_union0 = null;
|
|
1512
|
+
const obj_agentActionId_union0_error = (() => {
|
|
1513
|
+
if (typeof obj_agentActionId !== 'string') {
|
|
1514
|
+
return new TypeError('Expected "string" but received "' + typeof obj_agentActionId + '" (at "' + path_agentActionId + '")');
|
|
1515
|
+
}
|
|
1516
|
+
})();
|
|
1517
|
+
if (obj_agentActionId_union0_error != null) {
|
|
1518
|
+
obj_agentActionId_union0 = obj_agentActionId_union0_error.message;
|
|
1519
|
+
}
|
|
1520
|
+
let obj_agentActionId_union1 = null;
|
|
1521
|
+
const obj_agentActionId_union1_error = (() => {
|
|
1522
|
+
if (obj_agentActionId !== null) {
|
|
1523
|
+
return new TypeError('Expected "null" but received "' + typeof obj_agentActionId + '" (at "' + path_agentActionId + '")');
|
|
1524
|
+
}
|
|
1525
|
+
})();
|
|
1526
|
+
if (obj_agentActionId_union1_error != null) {
|
|
1527
|
+
obj_agentActionId_union1 = obj_agentActionId_union1_error.message;
|
|
1528
|
+
}
|
|
1529
|
+
if (obj_agentActionId_union0 && obj_agentActionId_union1) {
|
|
1530
|
+
let message = 'Object doesn\'t match union (at "' + path_agentActionId + '")';
|
|
1531
|
+
message += '\n' + obj_agentActionId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1532
|
+
message += '\n' + obj_agentActionId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1533
|
+
return new TypeError(message);
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
if (obj.id !== undefined) {
|
|
1537
|
+
const obj_id = obj.id;
|
|
1538
|
+
const path_id = path + '.id';
|
|
1539
|
+
let obj_id_union0 = null;
|
|
1540
|
+
const obj_id_union0_error = (() => {
|
|
1541
|
+
if (typeof obj_id !== 'string') {
|
|
1542
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1543
|
+
}
|
|
1544
|
+
})();
|
|
1545
|
+
if (obj_id_union0_error != null) {
|
|
1546
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
1547
|
+
}
|
|
1548
|
+
let obj_id_union1 = null;
|
|
1549
|
+
const obj_id_union1_error = (() => {
|
|
1550
|
+
if (obj_id !== null) {
|
|
1551
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1552
|
+
}
|
|
1553
|
+
})();
|
|
1554
|
+
if (obj_id_union1_error != null) {
|
|
1555
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
1556
|
+
}
|
|
1557
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
1558
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
1559
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1560
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1561
|
+
return new TypeError(message);
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
if (obj.status !== undefined) {
|
|
1565
|
+
const obj_status = obj.status;
|
|
1566
|
+
const path_status = path + '.status';
|
|
1567
|
+
let obj_status_union0 = null;
|
|
1568
|
+
const obj_status_union0_error = (() => {
|
|
1569
|
+
if (typeof obj_status !== 'string') {
|
|
1570
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1571
|
+
}
|
|
1572
|
+
})();
|
|
1573
|
+
if (obj_status_union0_error != null) {
|
|
1574
|
+
obj_status_union0 = obj_status_union0_error.message;
|
|
1575
|
+
}
|
|
1576
|
+
let obj_status_union1 = null;
|
|
1577
|
+
const obj_status_union1_error = (() => {
|
|
1578
|
+
if (obj_status !== null) {
|
|
1579
|
+
return new TypeError('Expected "null" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1580
|
+
}
|
|
1581
|
+
})();
|
|
1582
|
+
if (obj_status_union1_error != null) {
|
|
1583
|
+
obj_status_union1 = obj_status_union1_error.message;
|
|
1584
|
+
}
|
|
1585
|
+
if (obj_status_union0 && obj_status_union1) {
|
|
1586
|
+
let message = 'Object doesn\'t match union (at "' + path_status + '")';
|
|
1587
|
+
message += '\n' + obj_status_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1588
|
+
message += '\n' + obj_status_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1589
|
+
return new TypeError(message);
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
})();
|
|
1593
|
+
return v_error === undefined ? null : v_error;
|
|
1594
|
+
}
|
|
1595
|
+
const select$k = function AgentActionOutputRepresentationSelect() {
|
|
1596
|
+
return {
|
|
1597
|
+
kind: 'Fragment',
|
|
1598
|
+
version: VERSION$e,
|
|
1599
|
+
private: [],
|
|
1600
|
+
selections: [
|
|
1601
|
+
{
|
|
1602
|
+
name: 'agentActionId',
|
|
1603
|
+
kind: 'Scalar',
|
|
1604
|
+
required: false
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
name: 'id',
|
|
1608
|
+
kind: 'Scalar',
|
|
1609
|
+
required: false
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
name: 'status',
|
|
1613
|
+
kind: 'Scalar',
|
|
1614
|
+
required: false
|
|
1615
|
+
}
|
|
1616
|
+
]
|
|
1617
|
+
};
|
|
1618
|
+
};
|
|
1619
|
+
function equals$e(existing, incoming) {
|
|
1620
|
+
const existing_agentActionId = existing.agentActionId;
|
|
1621
|
+
const incoming_agentActionId = incoming.agentActionId;
|
|
1622
|
+
// if at least one of these optionals is defined
|
|
1623
|
+
if (existing_agentActionId !== undefined || incoming_agentActionId !== undefined) {
|
|
1624
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1625
|
+
// not equal
|
|
1626
|
+
if (existing_agentActionId === undefined || incoming_agentActionId === undefined) {
|
|
1627
|
+
return false;
|
|
1628
|
+
}
|
|
1629
|
+
if (!(existing_agentActionId === incoming_agentActionId)) {
|
|
1630
|
+
return false;
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
const existing_id = existing.id;
|
|
1634
|
+
const incoming_id = incoming.id;
|
|
1635
|
+
// if at least one of these optionals is defined
|
|
1636
|
+
if (existing_id !== undefined || incoming_id !== undefined) {
|
|
1637
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1638
|
+
// not equal
|
|
1639
|
+
if (existing_id === undefined || incoming_id === undefined) {
|
|
1640
|
+
return false;
|
|
1641
|
+
}
|
|
1642
|
+
if (!(existing_id === incoming_id)) {
|
|
1643
|
+
return false;
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
const existing_status = existing.status;
|
|
1647
|
+
const incoming_status = incoming.status;
|
|
1648
|
+
// if at least one of these optionals is defined
|
|
1649
|
+
if (existing_status !== undefined || incoming_status !== undefined) {
|
|
1650
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1651
|
+
// not equal
|
|
1652
|
+
if (existing_status === undefined || incoming_status === undefined) {
|
|
1653
|
+
return false;
|
|
1654
|
+
}
|
|
1655
|
+
if (!(existing_status === incoming_status)) {
|
|
1656
|
+
return false;
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
return true;
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1218
1662
|
const VERSION$d = "0b2080174fe6d4ee4f4a0de27011fc7d";
|
|
1219
1663
|
function validate$h(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
1220
1664
|
const v_error = (() => {
|
|
@@ -3571,12 +4015,43 @@ function equals$4(existing, incoming) {
|
|
|
3571
4015
|
}
|
|
3572
4016
|
|
|
3573
4017
|
const TTL$3 = 6000;
|
|
3574
|
-
const VERSION$3 = "
|
|
4018
|
+
const VERSION$3 = "9cce3c8a5131820b99e02e05c1d95d43";
|
|
3575
4019
|
function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
3576
4020
|
const v_error = (() => {
|
|
3577
4021
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3578
4022
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3579
4023
|
}
|
|
4024
|
+
if (obj.agentAction !== undefined) {
|
|
4025
|
+
const obj_agentAction = obj.agentAction;
|
|
4026
|
+
const path_agentAction = path + '.agentAction';
|
|
4027
|
+
let obj_agentAction_union0 = null;
|
|
4028
|
+
const obj_agentAction_union0_error = (() => {
|
|
4029
|
+
const referencepath_agentActionValidationError = validate$i(obj_agentAction, path_agentAction);
|
|
4030
|
+
if (referencepath_agentActionValidationError !== null) {
|
|
4031
|
+
let message = 'Object doesn\'t match AgentActionOutputRepresentation (at "' + path_agentAction + '")\n';
|
|
4032
|
+
message += referencepath_agentActionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4033
|
+
return new TypeError(message);
|
|
4034
|
+
}
|
|
4035
|
+
})();
|
|
4036
|
+
if (obj_agentAction_union0_error != null) {
|
|
4037
|
+
obj_agentAction_union0 = obj_agentAction_union0_error.message;
|
|
4038
|
+
}
|
|
4039
|
+
let obj_agentAction_union1 = null;
|
|
4040
|
+
const obj_agentAction_union1_error = (() => {
|
|
4041
|
+
if (obj_agentAction !== null) {
|
|
4042
|
+
return new TypeError('Expected "null" but received "' + typeof obj_agentAction + '" (at "' + path_agentAction + '")');
|
|
4043
|
+
}
|
|
4044
|
+
})();
|
|
4045
|
+
if (obj_agentAction_union1_error != null) {
|
|
4046
|
+
obj_agentAction_union1 = obj_agentAction_union1_error.message;
|
|
4047
|
+
}
|
|
4048
|
+
if (obj_agentAction_union0 && obj_agentAction_union1) {
|
|
4049
|
+
let message = 'Object doesn\'t match union (at "' + path_agentAction + '")';
|
|
4050
|
+
message += '\n' + obj_agentAction_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4051
|
+
message += '\n' + obj_agentAction_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4052
|
+
return new TypeError(message);
|
|
4053
|
+
}
|
|
4054
|
+
}
|
|
3580
4055
|
if (obj.associatedArticles !== undefined) {
|
|
3581
4056
|
const obj_associatedArticles = obj.associatedArticles;
|
|
3582
4057
|
const path_associatedArticles = path + '.associatedArticles';
|
|
@@ -4054,6 +4529,44 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4054
4529
|
return new TypeError(message);
|
|
4055
4530
|
}
|
|
4056
4531
|
}
|
|
4532
|
+
if (obj.sections !== undefined) {
|
|
4533
|
+
const obj_sections = obj.sections;
|
|
4534
|
+
const path_sections = path + '.sections';
|
|
4535
|
+
if (!ArrayIsArray(obj_sections)) {
|
|
4536
|
+
return new TypeError('Expected "array" but received "' + typeof obj_sections + '" (at "' + path_sections + '")');
|
|
4537
|
+
}
|
|
4538
|
+
for (let i = 0; i < obj_sections.length; i++) {
|
|
4539
|
+
const obj_sections_item = obj_sections[i];
|
|
4540
|
+
const path_sections_item = path_sections + '[' + i + ']';
|
|
4541
|
+
let obj_sections_item_union0 = null;
|
|
4542
|
+
const obj_sections_item_union0_error = (() => {
|
|
4543
|
+
const referencepath_sections_itemValidationError = validate$8(obj_sections_item, path_sections_item);
|
|
4544
|
+
if (referencepath_sections_itemValidationError !== null) {
|
|
4545
|
+
let message = 'Object doesn\'t match SectionOutputRepresentation (at "' + path_sections_item + '")\n';
|
|
4546
|
+
message += referencepath_sections_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4547
|
+
return new TypeError(message);
|
|
4548
|
+
}
|
|
4549
|
+
})();
|
|
4550
|
+
if (obj_sections_item_union0_error != null) {
|
|
4551
|
+
obj_sections_item_union0 = obj_sections_item_union0_error.message;
|
|
4552
|
+
}
|
|
4553
|
+
let obj_sections_item_union1 = null;
|
|
4554
|
+
const obj_sections_item_union1_error = (() => {
|
|
4555
|
+
if (obj_sections_item !== null) {
|
|
4556
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sections_item + '" (at "' + path_sections_item + '")');
|
|
4557
|
+
}
|
|
4558
|
+
})();
|
|
4559
|
+
if (obj_sections_item_union1_error != null) {
|
|
4560
|
+
obj_sections_item_union1 = obj_sections_item_union1_error.message;
|
|
4561
|
+
}
|
|
4562
|
+
if (obj_sections_item_union0 && obj_sections_item_union1) {
|
|
4563
|
+
let message = 'Object doesn\'t match union (at "' + path_sections_item + '")';
|
|
4564
|
+
message += '\n' + obj_sections_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4565
|
+
message += '\n' + obj_sections_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4566
|
+
return new TypeError(message);
|
|
4567
|
+
}
|
|
4568
|
+
}
|
|
4569
|
+
}
|
|
4057
4570
|
if (obj.targetObject !== undefined) {
|
|
4058
4571
|
const obj_targetObject = obj.targetObject;
|
|
4059
4572
|
const path_targetObject = path + '.targetObject';
|
|
@@ -4127,6 +4640,7 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
4127
4640
|
return input;
|
|
4128
4641
|
}
|
|
4129
4642
|
const select$9 = function CatalogItemOutputRepresentationSelect() {
|
|
4643
|
+
const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$k();
|
|
4130
4644
|
const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$j();
|
|
4131
4645
|
const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$i();
|
|
4132
4646
|
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$h();
|
|
@@ -4140,6 +4654,13 @@ const select$9 = function CatalogItemOutputRepresentationSelect() {
|
|
|
4140
4654
|
version: VERSION$3,
|
|
4141
4655
|
private: [],
|
|
4142
4656
|
selections: [
|
|
4657
|
+
{
|
|
4658
|
+
name: 'agentAction',
|
|
4659
|
+
kind: 'Object',
|
|
4660
|
+
nullable: true,
|
|
4661
|
+
selections: AgentActionOutputRepresentation__selections,
|
|
4662
|
+
required: false
|
|
4663
|
+
},
|
|
4143
4664
|
{
|
|
4144
4665
|
name: 'associatedArticles',
|
|
4145
4666
|
kind: 'Object',
|
|
@@ -4235,6 +4756,14 @@ const select$9 = function CatalogItemOutputRepresentationSelect() {
|
|
|
4235
4756
|
selections: SectionOutputRepresentation__selections,
|
|
4236
4757
|
required: false
|
|
4237
4758
|
},
|
|
4759
|
+
{
|
|
4760
|
+
name: 'sections',
|
|
4761
|
+
kind: 'Object',
|
|
4762
|
+
nullable: true,
|
|
4763
|
+
plural: true,
|
|
4764
|
+
selections: SectionOutputRepresentation__selections,
|
|
4765
|
+
required: false
|
|
4766
|
+
},
|
|
4238
4767
|
{
|
|
4239
4768
|
name: 'targetObject',
|
|
4240
4769
|
kind: 'Scalar',
|
|
@@ -4249,6 +4778,22 @@ const select$9 = function CatalogItemOutputRepresentationSelect() {
|
|
|
4249
4778
|
};
|
|
4250
4779
|
};
|
|
4251
4780
|
function equals$3(existing, incoming) {
|
|
4781
|
+
const existing_agentAction = existing.agentAction;
|
|
4782
|
+
const incoming_agentAction = incoming.agentAction;
|
|
4783
|
+
// if at least one of these optionals is defined
|
|
4784
|
+
if (existing_agentAction !== undefined || incoming_agentAction !== undefined) {
|
|
4785
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4786
|
+
// not equal
|
|
4787
|
+
if (existing_agentAction === undefined || incoming_agentAction === undefined) {
|
|
4788
|
+
return false;
|
|
4789
|
+
}
|
|
4790
|
+
if (!(existing_agentAction === incoming_agentAction
|
|
4791
|
+
|| (existing_agentAction != null &&
|
|
4792
|
+
incoming_agentAction != null &&
|
|
4793
|
+
equals$e(existing_agentAction, incoming_agentAction)))) {
|
|
4794
|
+
return false;
|
|
4795
|
+
}
|
|
4796
|
+
}
|
|
4252
4797
|
const existing_associatedArticles = existing.associatedArticles;
|
|
4253
4798
|
const incoming_associatedArticles = incoming.associatedArticles;
|
|
4254
4799
|
// if at least one of these optionals is defined
|
|
@@ -4485,6 +5030,27 @@ function equals$3(existing, incoming) {
|
|
|
4485
5030
|
return false;
|
|
4486
5031
|
}
|
|
4487
5032
|
}
|
|
5033
|
+
const existing_sections = existing.sections;
|
|
5034
|
+
const incoming_sections = incoming.sections;
|
|
5035
|
+
// if at least one of these optionals is defined
|
|
5036
|
+
if (existing_sections !== undefined || incoming_sections !== undefined) {
|
|
5037
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5038
|
+
// not equal
|
|
5039
|
+
if (existing_sections === undefined || incoming_sections === undefined) {
|
|
5040
|
+
return false;
|
|
5041
|
+
}
|
|
5042
|
+
const equals_sections_items = equalsArray(existing_sections, incoming_sections, (existing_sections_item, incoming_sections_item) => {
|
|
5043
|
+
if (!(existing_sections_item === incoming_sections_item
|
|
5044
|
+
|| (existing_sections_item != null &&
|
|
5045
|
+
incoming_sections_item != null &&
|
|
5046
|
+
equals$4(existing_sections_item, incoming_sections_item)))) {
|
|
5047
|
+
return false;
|
|
5048
|
+
}
|
|
5049
|
+
});
|
|
5050
|
+
if (equals_sections_items === false) {
|
|
5051
|
+
return false;
|
|
5052
|
+
}
|
|
5053
|
+
}
|
|
4488
5054
|
const existing_targetObject = existing.targetObject;
|
|
4489
5055
|
const incoming_targetObject = incoming.targetObject;
|
|
4490
5056
|
// if at least one of these optionals is defined
|
|
@@ -4574,8 +5140,10 @@ function createResourceRequest$5(config) {
|
|
|
4574
5140
|
|
|
4575
5141
|
const adapterName$5 = 'createCatalogItem';
|
|
4576
5142
|
const createCatalogItem_ConfigPropertyMetadata = [
|
|
5143
|
+
generateParamConfigMetadata('agentAction', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4577
5144
|
generateParamConfigMetadata('associatedArticles', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4578
5145
|
generateParamConfigMetadata('attributes', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5146
|
+
generateParamConfigMetadata('sections', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4579
5147
|
generateParamConfigMetadata('contextDefinitionDevNameOrId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4580
5148
|
generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4581
5149
|
generateParamConfigMetadata('displayUrl', false, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -4594,12 +5162,20 @@ const createCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidati
|
|
|
4594
5162
|
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(createCatalogItem_ConfigPropertyMetadata);
|
|
4595
5163
|
function typeCheckConfig$5(untrustedConfig) {
|
|
4596
5164
|
const config = {};
|
|
5165
|
+
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
5166
|
+
const referenceAgentActionInputRepresentationValidationError = validate$s(untrustedConfig_agentAction);
|
|
5167
|
+
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
5168
|
+
config.agentAction = untrustedConfig_agentAction;
|
|
5169
|
+
}
|
|
5170
|
+
if (untrustedConfig_agentAction === null) {
|
|
5171
|
+
config.agentAction = untrustedConfig_agentAction;
|
|
5172
|
+
}
|
|
4597
5173
|
const untrustedConfig_associatedArticles = untrustedConfig.associatedArticles;
|
|
4598
5174
|
if (ArrayIsArray$1(untrustedConfig_associatedArticles)) {
|
|
4599
5175
|
const untrustedConfig_associatedArticles_array = [];
|
|
4600
5176
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
4601
5177
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
4602
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
5178
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$r(untrustedConfig_associatedArticles_item);
|
|
4603
5179
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
4604
5180
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
4605
5181
|
}
|
|
@@ -4614,7 +5190,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
4614
5190
|
const untrustedConfig_attributes_array = [];
|
|
4615
5191
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
4616
5192
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
4617
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
5193
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$q(untrustedConfig_attributes_item);
|
|
4618
5194
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
4619
5195
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
4620
5196
|
}
|
|
@@ -4624,6 +5200,21 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
4624
5200
|
}
|
|
4625
5201
|
config.attributes = untrustedConfig_attributes_array;
|
|
4626
5202
|
}
|
|
5203
|
+
const untrustedConfig_sections = untrustedConfig.sections;
|
|
5204
|
+
if (ArrayIsArray$1(untrustedConfig_sections)) {
|
|
5205
|
+
const untrustedConfig_sections_array = [];
|
|
5206
|
+
for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
|
|
5207
|
+
const untrustedConfig_sections_item = untrustedConfig_sections[i];
|
|
5208
|
+
const referenceSectionInputRepresentationValidationError = validate$p(untrustedConfig_sections_item);
|
|
5209
|
+
if (referenceSectionInputRepresentationValidationError === null) {
|
|
5210
|
+
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
5211
|
+
}
|
|
5212
|
+
if (untrustedConfig_sections_item === null) {
|
|
5213
|
+
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
5214
|
+
}
|
|
5215
|
+
}
|
|
5216
|
+
config.sections = untrustedConfig_sections_array;
|
|
5217
|
+
}
|
|
4627
5218
|
const untrustedConfig_contextDefinitionDevNameOrId = untrustedConfig.contextDefinitionDevNameOrId;
|
|
4628
5219
|
if (typeof untrustedConfig_contextDefinitionDevNameOrId === 'string') {
|
|
4629
5220
|
config.contextDefinitionDevNameOrId = untrustedConfig_contextDefinitionDevNameOrId;
|
|
@@ -4650,7 +5241,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
4650
5241
|
const untrustedConfig_eligibilityRules_array = [];
|
|
4651
5242
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
4652
5243
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
4653
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
5244
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$o(untrustedConfig_eligibilityRules_item);
|
|
4654
5245
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
4655
5246
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
4656
5247
|
}
|
|
@@ -4661,7 +5252,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
4661
5252
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
4662
5253
|
}
|
|
4663
5254
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
4664
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
5255
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$n(untrustedConfig_fulfillmentFlow);
|
|
4665
5256
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
4666
5257
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
4667
5258
|
}
|
|
@@ -4669,7 +5260,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
4669
5260
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
4670
5261
|
}
|
|
4671
5262
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
4672
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
5263
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$m(untrustedConfig_intakeForm);
|
|
4673
5264
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
4674
5265
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
4675
5266
|
}
|
|
@@ -4681,7 +5272,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
4681
5272
|
const untrustedConfig_integrations_array = [];
|
|
4682
5273
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
4683
5274
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
4684
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
5275
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$l(untrustedConfig_integrations_item);
|
|
4685
5276
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
4686
5277
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
4687
5278
|
}
|
|
@@ -4710,7 +5301,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
4710
5301
|
const untrustedConfig_preProcessors_array = [];
|
|
4711
5302
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
4712
5303
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
4713
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
5304
|
+
const referencePreprocessorInputRepresentationValidationError = validate$k(untrustedConfig_preProcessors_item);
|
|
4714
5305
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
4715
5306
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
4716
5307
|
}
|
|
@@ -4725,7 +5316,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
4725
5316
|
const untrustedConfig_productRequests_array = [];
|
|
4726
5317
|
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
4727
5318
|
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
4728
|
-
const referenceProductRequestCreateInputRepresentationValidationError = validate$
|
|
5319
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$j(untrustedConfig_productRequests_item);
|
|
4729
5320
|
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
4730
5321
|
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
4731
5322
|
}
|
|
@@ -4973,9 +5564,11 @@ function createResourceRequest$3(config) {
|
|
|
4973
5564
|
const adapterName$3 = 'updateCatalogItem';
|
|
4974
5565
|
const updateCatalogItem_ConfigPropertyMetadata = [
|
|
4975
5566
|
generateParamConfigMetadata('catalogItemId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5567
|
+
generateParamConfigMetadata('agentAction', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4976
5568
|
generateParamConfigMetadata('productId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4977
5569
|
generateParamConfigMetadata('associatedArticles', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4978
5570
|
generateParamConfigMetadata('attributes', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5571
|
+
generateParamConfigMetadata('sections', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4979
5572
|
generateParamConfigMetadata('contextDefinitionDevNameOrId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4980
5573
|
generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4981
5574
|
generateParamConfigMetadata('displayUrl', false, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -4995,6 +5588,14 @@ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$6(updateCatalo
|
|
|
4995
5588
|
function typeCheckConfig$3(untrustedConfig) {
|
|
4996
5589
|
const config = {};
|
|
4997
5590
|
typeCheckConfig$6(untrustedConfig, config, updateCatalogItem_ConfigPropertyMetadata);
|
|
5591
|
+
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
5592
|
+
const referenceAgentActionInputRepresentationValidationError = validate$s(untrustedConfig_agentAction);
|
|
5593
|
+
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
5594
|
+
config.agentAction = untrustedConfig_agentAction;
|
|
5595
|
+
}
|
|
5596
|
+
if (untrustedConfig_agentAction === null) {
|
|
5597
|
+
config.agentAction = untrustedConfig_agentAction;
|
|
5598
|
+
}
|
|
4998
5599
|
const untrustedConfig_productId = untrustedConfig.productId;
|
|
4999
5600
|
if (typeof untrustedConfig_productId === 'string') {
|
|
5000
5601
|
config.productId = untrustedConfig_productId;
|
|
@@ -5007,7 +5608,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
5007
5608
|
const untrustedConfig_associatedArticles_array = [];
|
|
5008
5609
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
5009
5610
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
5010
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
5611
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$r(untrustedConfig_associatedArticles_item);
|
|
5011
5612
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
5012
5613
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
5013
5614
|
}
|
|
@@ -5022,7 +5623,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
5022
5623
|
const untrustedConfig_attributes_array = [];
|
|
5023
5624
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
5024
5625
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
5025
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
5626
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$q(untrustedConfig_attributes_item);
|
|
5026
5627
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
5027
5628
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
5028
5629
|
}
|
|
@@ -5032,6 +5633,21 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
5032
5633
|
}
|
|
5033
5634
|
config.attributes = untrustedConfig_attributes_array;
|
|
5034
5635
|
}
|
|
5636
|
+
const untrustedConfig_sections = untrustedConfig.sections;
|
|
5637
|
+
if (ArrayIsArray$1(untrustedConfig_sections)) {
|
|
5638
|
+
const untrustedConfig_sections_array = [];
|
|
5639
|
+
for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
|
|
5640
|
+
const untrustedConfig_sections_item = untrustedConfig_sections[i];
|
|
5641
|
+
const referenceSectionInputRepresentationValidationError = validate$p(untrustedConfig_sections_item);
|
|
5642
|
+
if (referenceSectionInputRepresentationValidationError === null) {
|
|
5643
|
+
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
5644
|
+
}
|
|
5645
|
+
if (untrustedConfig_sections_item === null) {
|
|
5646
|
+
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
5647
|
+
}
|
|
5648
|
+
}
|
|
5649
|
+
config.sections = untrustedConfig_sections_array;
|
|
5650
|
+
}
|
|
5035
5651
|
const untrustedConfig_contextDefinitionDevNameOrId = untrustedConfig.contextDefinitionDevNameOrId;
|
|
5036
5652
|
if (typeof untrustedConfig_contextDefinitionDevNameOrId === 'string') {
|
|
5037
5653
|
config.contextDefinitionDevNameOrId = untrustedConfig_contextDefinitionDevNameOrId;
|
|
@@ -5058,7 +5674,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
5058
5674
|
const untrustedConfig_eligibilityRules_array = [];
|
|
5059
5675
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
5060
5676
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
5061
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
5677
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$o(untrustedConfig_eligibilityRules_item);
|
|
5062
5678
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
5063
5679
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
5064
5680
|
}
|
|
@@ -5069,7 +5685,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
5069
5685
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
5070
5686
|
}
|
|
5071
5687
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
5072
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
5688
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$n(untrustedConfig_fulfillmentFlow);
|
|
5073
5689
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
5074
5690
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
5075
5691
|
}
|
|
@@ -5077,7 +5693,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
5077
5693
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
5078
5694
|
}
|
|
5079
5695
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
5080
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
5696
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$m(untrustedConfig_intakeForm);
|
|
5081
5697
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
5082
5698
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
5083
5699
|
}
|
|
@@ -5089,7 +5705,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
5089
5705
|
const untrustedConfig_integrations_array = [];
|
|
5090
5706
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
5091
5707
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
5092
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
5708
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$l(untrustedConfig_integrations_item);
|
|
5093
5709
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
5094
5710
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
5095
5711
|
}
|
|
@@ -5118,7 +5734,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
5118
5734
|
const untrustedConfig_preProcessors_array = [];
|
|
5119
5735
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
5120
5736
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
5121
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
5737
|
+
const referencePreprocessorInputRepresentationValidationError = validate$k(untrustedConfig_preProcessors_item);
|
|
5122
5738
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
5123
5739
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
5124
5740
|
}
|
|
@@ -5133,7 +5749,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
5133
5749
|
const untrustedConfig_productRequests_array = [];
|
|
5134
5750
|
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
5135
5751
|
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
5136
|
-
const referenceProductRequestCreateInputRepresentationValidationError = validate$
|
|
5752
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$j(untrustedConfig_productRequests_item);
|
|
5137
5753
|
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
5138
5754
|
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
5139
5755
|
}
|