@salesforce/lds-adapters-service-ecm 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/service-ecm.js +1346 -138
- package/dist/es/es2018/types/src/generated/adapters/createCatalogItem.d.ts +5 -0
- package/dist/es/es2018/types/src/generated/adapters/updateCatalogItem.d.ts +5 -0
- package/dist/es/es2018/types/src/generated/resources/patchConnectServiceAutomationCatalogCatalogItemByCatalogItemId.d.ts +5 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationCatalogCatalogItem.d.ts +5 -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 +12 -1
- package/dist/es/es2018/types/src/generated/types/CatalogItemOutputRepresentation.d.ts +12 -1
- package/dist/es/es2018/types/src/generated/types/CatalogItemUpdateInputRepresentation.d.ts +12 -1
- package/dist/es/es2018/types/src/generated/types/ProductDetailsInputRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ProductDetailsOutputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/ProductRequestCreateInputRepresentation.d.ts +46 -0
- package/dist/es/es2018/types/src/generated/types/ProductRequestOutputRepresentation.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/ProductRequestUpdateInputRepresentation.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/SectionInputRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/SectionOutputRepresentation.d.ts +4 -1
- package/package.json +3 -3
- package/sfdc/index.js +1347 -139
- package/src/raml/api.raml +286 -2
|
@@ -93,7 +93,128 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
function validate$
|
|
96
|
+
function validate$r(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$q(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$m(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
|
186
307
|
return v_error === undefined ? null : v_error;
|
|
187
308
|
}
|
|
188
309
|
|
|
189
|
-
function validate$
|
|
310
|
+
function validate$p(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,7 +680,7 @@ function validate$l(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
559
680
|
return v_error === undefined ? null : v_error;
|
|
560
681
|
}
|
|
561
682
|
|
|
562
|
-
function validate$
|
|
683
|
+
function validate$o(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
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 + '")');
|
|
@@ -624,7 +745,7 @@ function validate$k(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
|
624
745
|
return v_error === undefined ? null : v_error;
|
|
625
746
|
}
|
|
626
747
|
|
|
627
|
-
function validate$
|
|
748
|
+
function validate$n(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
628
749
|
const v_error = (() => {
|
|
629
750
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
630
751
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -745,7 +866,7 @@ function validate$j(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
|
745
866
|
return v_error === undefined ? null : v_error;
|
|
746
867
|
}
|
|
747
868
|
|
|
748
|
-
function validate$
|
|
869
|
+
function validate$m(obj, path = 'IntakeFormInputRepresentation') {
|
|
749
870
|
const v_error = (() => {
|
|
750
871
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
751
872
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -866,7 +987,7 @@ function validate$i(obj, path = 'IntakeFormInputRepresentation') {
|
|
|
866
987
|
return v_error === undefined ? null : v_error;
|
|
867
988
|
}
|
|
868
989
|
|
|
869
|
-
function validate$
|
|
990
|
+
function validate$l(obj, path = 'IntegrationDefInputRepresentation') {
|
|
870
991
|
const v_error = (() => {
|
|
871
992
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
872
993
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -959,7 +1080,7 @@ function validate$h(obj, path = 'IntegrationDefInputRepresentation') {
|
|
|
959
1080
|
return v_error === undefined ? null : v_error;
|
|
960
1081
|
}
|
|
961
1082
|
|
|
962
|
-
function validate$
|
|
1083
|
+
function validate$k(obj, path = 'PreprocessorInputRepresentation') {
|
|
963
1084
|
const v_error = (() => {
|
|
964
1085
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
965
1086
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1052,12 +1173,231 @@ function validate$g(obj, path = 'PreprocessorInputRepresentation') {
|
|
|
1052
1173
|
return v_error === undefined ? null : v_error;
|
|
1053
1174
|
}
|
|
1054
1175
|
|
|
1055
|
-
|
|
1056
|
-
|
|
1176
|
+
function validate$j(obj, path = 'ProductRequestCreateInputRepresentation') {
|
|
1177
|
+
const v_error = (() => {
|
|
1178
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1179
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1180
|
+
}
|
|
1181
|
+
if (obj.operationType !== undefined) {
|
|
1182
|
+
const obj_operationType = obj.operationType;
|
|
1183
|
+
const path_operationType = path + '.operationType';
|
|
1184
|
+
let obj_operationType_union0 = null;
|
|
1185
|
+
const obj_operationType_union0_error = (() => {
|
|
1186
|
+
if (typeof obj_operationType !== 'string') {
|
|
1187
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
|
|
1188
|
+
}
|
|
1189
|
+
})();
|
|
1190
|
+
if (obj_operationType_union0_error != null) {
|
|
1191
|
+
obj_operationType_union0 = obj_operationType_union0_error.message;
|
|
1192
|
+
}
|
|
1193
|
+
let obj_operationType_union1 = null;
|
|
1194
|
+
const obj_operationType_union1_error = (() => {
|
|
1195
|
+
if (obj_operationType !== null) {
|
|
1196
|
+
return new TypeError('Expected "null" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
|
|
1197
|
+
}
|
|
1198
|
+
})();
|
|
1199
|
+
if (obj_operationType_union1_error != null) {
|
|
1200
|
+
obj_operationType_union1 = obj_operationType_union1_error.message;
|
|
1201
|
+
}
|
|
1202
|
+
if (obj_operationType_union0 && obj_operationType_union1) {
|
|
1203
|
+
let message = 'Object doesn\'t match union (at "' + path_operationType + '")';
|
|
1204
|
+
message += '\n' + obj_operationType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1205
|
+
message += '\n' + obj_operationType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1206
|
+
return new TypeError(message);
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
if (obj.productDetails !== undefined) {
|
|
1210
|
+
const obj_productDetails = obj.productDetails;
|
|
1211
|
+
const path_productDetails = path + '.productDetails';
|
|
1212
|
+
if (!ArrayIsArray(obj_productDetails)) {
|
|
1213
|
+
return new TypeError('Expected "array" but received "' + typeof obj_productDetails + '" (at "' + path_productDetails + '")');
|
|
1214
|
+
}
|
|
1215
|
+
for (let i = 0; i < obj_productDetails.length; i++) {
|
|
1216
|
+
const obj_productDetails_item = obj_productDetails[i];
|
|
1217
|
+
const path_productDetails_item = path_productDetails + '[' + i + ']';
|
|
1218
|
+
if (obj_productDetails_item === undefined) {
|
|
1219
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_productDetails_item + '" (at "' + path_productDetails_item + '")');
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
if (obj.sectionDescription !== undefined) {
|
|
1224
|
+
const obj_sectionDescription = obj.sectionDescription;
|
|
1225
|
+
const path_sectionDescription = path + '.sectionDescription';
|
|
1226
|
+
let obj_sectionDescription_union0 = null;
|
|
1227
|
+
const obj_sectionDescription_union0_error = (() => {
|
|
1228
|
+
if (typeof obj_sectionDescription !== 'string') {
|
|
1229
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sectionDescription + '" (at "' + path_sectionDescription + '")');
|
|
1230
|
+
}
|
|
1231
|
+
})();
|
|
1232
|
+
if (obj_sectionDescription_union0_error != null) {
|
|
1233
|
+
obj_sectionDescription_union0 = obj_sectionDescription_union0_error.message;
|
|
1234
|
+
}
|
|
1235
|
+
let obj_sectionDescription_union1 = null;
|
|
1236
|
+
const obj_sectionDescription_union1_error = (() => {
|
|
1237
|
+
if (obj_sectionDescription !== null) {
|
|
1238
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionDescription + '" (at "' + path_sectionDescription + '")');
|
|
1239
|
+
}
|
|
1240
|
+
})();
|
|
1241
|
+
if (obj_sectionDescription_union1_error != null) {
|
|
1242
|
+
obj_sectionDescription_union1 = obj_sectionDescription_union1_error.message;
|
|
1243
|
+
}
|
|
1244
|
+
if (obj_sectionDescription_union0 && obj_sectionDescription_union1) {
|
|
1245
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionDescription + '")';
|
|
1246
|
+
message += '\n' + obj_sectionDescription_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1247
|
+
message += '\n' + obj_sectionDescription_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1248
|
+
return new TypeError(message);
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
if (obj.sectionMaxCount !== undefined) {
|
|
1252
|
+
const obj_sectionMaxCount = obj.sectionMaxCount;
|
|
1253
|
+
const path_sectionMaxCount = path + '.sectionMaxCount';
|
|
1254
|
+
let obj_sectionMaxCount_union0 = null;
|
|
1255
|
+
const obj_sectionMaxCount_union0_error = (() => {
|
|
1256
|
+
if (typeof obj_sectionMaxCount !== 'number' || (typeof obj_sectionMaxCount === 'number' && Math.floor(obj_sectionMaxCount) !== obj_sectionMaxCount)) {
|
|
1257
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sectionMaxCount + '" (at "' + path_sectionMaxCount + '")');
|
|
1258
|
+
}
|
|
1259
|
+
})();
|
|
1260
|
+
if (obj_sectionMaxCount_union0_error != null) {
|
|
1261
|
+
obj_sectionMaxCount_union0 = obj_sectionMaxCount_union0_error.message;
|
|
1262
|
+
}
|
|
1263
|
+
let obj_sectionMaxCount_union1 = null;
|
|
1264
|
+
const obj_sectionMaxCount_union1_error = (() => {
|
|
1265
|
+
if (obj_sectionMaxCount !== null) {
|
|
1266
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionMaxCount + '" (at "' + path_sectionMaxCount + '")');
|
|
1267
|
+
}
|
|
1268
|
+
})();
|
|
1269
|
+
if (obj_sectionMaxCount_union1_error != null) {
|
|
1270
|
+
obj_sectionMaxCount_union1 = obj_sectionMaxCount_union1_error.message;
|
|
1271
|
+
}
|
|
1272
|
+
if (obj_sectionMaxCount_union0 && obj_sectionMaxCount_union1) {
|
|
1273
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionMaxCount + '")';
|
|
1274
|
+
message += '\n' + obj_sectionMaxCount_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1275
|
+
message += '\n' + obj_sectionMaxCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1276
|
+
return new TypeError(message);
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
if (obj.sectionMinCount !== undefined) {
|
|
1280
|
+
const obj_sectionMinCount = obj.sectionMinCount;
|
|
1281
|
+
const path_sectionMinCount = path + '.sectionMinCount';
|
|
1282
|
+
let obj_sectionMinCount_union0 = null;
|
|
1283
|
+
const obj_sectionMinCount_union0_error = (() => {
|
|
1284
|
+
if (typeof obj_sectionMinCount !== 'number' || (typeof obj_sectionMinCount === 'number' && Math.floor(obj_sectionMinCount) !== obj_sectionMinCount)) {
|
|
1285
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sectionMinCount + '" (at "' + path_sectionMinCount + '")');
|
|
1286
|
+
}
|
|
1287
|
+
})();
|
|
1288
|
+
if (obj_sectionMinCount_union0_error != null) {
|
|
1289
|
+
obj_sectionMinCount_union0 = obj_sectionMinCount_union0_error.message;
|
|
1290
|
+
}
|
|
1291
|
+
let obj_sectionMinCount_union1 = null;
|
|
1292
|
+
const obj_sectionMinCount_union1_error = (() => {
|
|
1293
|
+
if (obj_sectionMinCount !== null) {
|
|
1294
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionMinCount + '" (at "' + path_sectionMinCount + '")');
|
|
1295
|
+
}
|
|
1296
|
+
})();
|
|
1297
|
+
if (obj_sectionMinCount_union1_error != null) {
|
|
1298
|
+
obj_sectionMinCount_union1 = obj_sectionMinCount_union1_error.message;
|
|
1299
|
+
}
|
|
1300
|
+
if (obj_sectionMinCount_union0 && obj_sectionMinCount_union1) {
|
|
1301
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionMinCount + '")';
|
|
1302
|
+
message += '\n' + obj_sectionMinCount_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1303
|
+
message += '\n' + obj_sectionMinCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1304
|
+
return new TypeError(message);
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
if (obj.sectionName !== undefined) {
|
|
1308
|
+
const obj_sectionName = obj.sectionName;
|
|
1309
|
+
const path_sectionName = path + '.sectionName';
|
|
1310
|
+
let obj_sectionName_union0 = null;
|
|
1311
|
+
const obj_sectionName_union0_error = (() => {
|
|
1312
|
+
if (typeof obj_sectionName !== 'string') {
|
|
1313
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sectionName + '" (at "' + path_sectionName + '")');
|
|
1314
|
+
}
|
|
1315
|
+
})();
|
|
1316
|
+
if (obj_sectionName_union0_error != null) {
|
|
1317
|
+
obj_sectionName_union0 = obj_sectionName_union0_error.message;
|
|
1318
|
+
}
|
|
1319
|
+
let obj_sectionName_union1 = null;
|
|
1320
|
+
const obj_sectionName_union1_error = (() => {
|
|
1321
|
+
if (obj_sectionName !== null) {
|
|
1322
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionName + '" (at "' + path_sectionName + '")');
|
|
1323
|
+
}
|
|
1324
|
+
})();
|
|
1325
|
+
if (obj_sectionName_union1_error != null) {
|
|
1326
|
+
obj_sectionName_union1 = obj_sectionName_union1_error.message;
|
|
1327
|
+
}
|
|
1328
|
+
if (obj_sectionName_union0 && obj_sectionName_union1) {
|
|
1329
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionName + '")';
|
|
1330
|
+
message += '\n' + obj_sectionName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1331
|
+
message += '\n' + obj_sectionName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1332
|
+
return new TypeError(message);
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
if (obj.sequence !== undefined) {
|
|
1336
|
+
const obj_sequence = obj.sequence;
|
|
1337
|
+
const path_sequence = path + '.sequence';
|
|
1338
|
+
let obj_sequence_union0 = null;
|
|
1339
|
+
const obj_sequence_union0_error = (() => {
|
|
1340
|
+
if (typeof obj_sequence !== 'number' || (typeof obj_sequence === 'number' && Math.floor(obj_sequence) !== obj_sequence)) {
|
|
1341
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sequence + '" (at "' + path_sequence + '")');
|
|
1342
|
+
}
|
|
1343
|
+
})();
|
|
1344
|
+
if (obj_sequence_union0_error != null) {
|
|
1345
|
+
obj_sequence_union0 = obj_sequence_union0_error.message;
|
|
1346
|
+
}
|
|
1347
|
+
let obj_sequence_union1 = null;
|
|
1348
|
+
const obj_sequence_union1_error = (() => {
|
|
1349
|
+
if (obj_sequence !== null) {
|
|
1350
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sequence + '" (at "' + path_sequence + '")');
|
|
1351
|
+
}
|
|
1352
|
+
})();
|
|
1353
|
+
if (obj_sequence_union1_error != null) {
|
|
1354
|
+
obj_sequence_union1 = obj_sequence_union1_error.message;
|
|
1355
|
+
}
|
|
1356
|
+
if (obj_sequence_union0 && obj_sequence_union1) {
|
|
1357
|
+
let message = 'Object doesn\'t match union (at "' + path_sequence + '")';
|
|
1358
|
+
message += '\n' + obj_sequence_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1359
|
+
message += '\n' + obj_sequence_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1360
|
+
return new TypeError(message);
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
})();
|
|
1364
|
+
return v_error === undefined ? null : v_error;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
const VERSION$e = "ac94c0c52190d3f2f063659052e5b46e";
|
|
1368
|
+
function validate$i(obj, path = 'AgentActionOutputRepresentation') {
|
|
1057
1369
|
const v_error = (() => {
|
|
1058
1370
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1059
1371
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1060
1372
|
}
|
|
1373
|
+
if (obj.agentActionId !== undefined) {
|
|
1374
|
+
const obj_agentActionId = obj.agentActionId;
|
|
1375
|
+
const path_agentActionId = path + '.agentActionId';
|
|
1376
|
+
let obj_agentActionId_union0 = null;
|
|
1377
|
+
const obj_agentActionId_union0_error = (() => {
|
|
1378
|
+
if (typeof obj_agentActionId !== 'string') {
|
|
1379
|
+
return new TypeError('Expected "string" but received "' + typeof obj_agentActionId + '" (at "' + path_agentActionId + '")');
|
|
1380
|
+
}
|
|
1381
|
+
})();
|
|
1382
|
+
if (obj_agentActionId_union0_error != null) {
|
|
1383
|
+
obj_agentActionId_union0 = obj_agentActionId_union0_error.message;
|
|
1384
|
+
}
|
|
1385
|
+
let obj_agentActionId_union1 = null;
|
|
1386
|
+
const obj_agentActionId_union1_error = (() => {
|
|
1387
|
+
if (obj_agentActionId !== null) {
|
|
1388
|
+
return new TypeError('Expected "null" but received "' + typeof obj_agentActionId + '" (at "' + path_agentActionId + '")');
|
|
1389
|
+
}
|
|
1390
|
+
})();
|
|
1391
|
+
if (obj_agentActionId_union1_error != null) {
|
|
1392
|
+
obj_agentActionId_union1 = obj_agentActionId_union1_error.message;
|
|
1393
|
+
}
|
|
1394
|
+
if (obj_agentActionId_union0 && obj_agentActionId_union1) {
|
|
1395
|
+
let message = 'Object doesn\'t match union (at "' + path_agentActionId + '")';
|
|
1396
|
+
message += '\n' + obj_agentActionId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1397
|
+
message += '\n' + obj_agentActionId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1398
|
+
return new TypeError(message);
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1061
1401
|
if (obj.id !== undefined) {
|
|
1062
1402
|
const obj_id = obj.id;
|
|
1063
1403
|
const path_id = path + '.id';
|
|
@@ -1086,57 +1426,75 @@ function validate$f(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
|
1086
1426
|
return new TypeError(message);
|
|
1087
1427
|
}
|
|
1088
1428
|
}
|
|
1089
|
-
if (obj.
|
|
1090
|
-
const
|
|
1091
|
-
const
|
|
1092
|
-
let
|
|
1093
|
-
const
|
|
1094
|
-
if (typeof
|
|
1095
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
1429
|
+
if (obj.status !== undefined) {
|
|
1430
|
+
const obj_status = obj.status;
|
|
1431
|
+
const path_status = path + '.status';
|
|
1432
|
+
let obj_status_union0 = null;
|
|
1433
|
+
const obj_status_union0_error = (() => {
|
|
1434
|
+
if (typeof obj_status !== 'string') {
|
|
1435
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1096
1436
|
}
|
|
1097
1437
|
})();
|
|
1098
|
-
if (
|
|
1099
|
-
|
|
1438
|
+
if (obj_status_union0_error != null) {
|
|
1439
|
+
obj_status_union0 = obj_status_union0_error.message;
|
|
1100
1440
|
}
|
|
1101
|
-
let
|
|
1102
|
-
const
|
|
1103
|
-
if (
|
|
1104
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
1441
|
+
let obj_status_union1 = null;
|
|
1442
|
+
const obj_status_union1_error = (() => {
|
|
1443
|
+
if (obj_status !== null) {
|
|
1444
|
+
return new TypeError('Expected "null" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1105
1445
|
}
|
|
1106
1446
|
})();
|
|
1107
|
-
if (
|
|
1108
|
-
|
|
1447
|
+
if (obj_status_union1_error != null) {
|
|
1448
|
+
obj_status_union1 = obj_status_union1_error.message;
|
|
1109
1449
|
}
|
|
1110
|
-
if (
|
|
1111
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
1112
|
-
message += '\n' +
|
|
1113
|
-
message += '\n' +
|
|
1450
|
+
if (obj_status_union0 && obj_status_union1) {
|
|
1451
|
+
let message = 'Object doesn\'t match union (at "' + path_status + '")';
|
|
1452
|
+
message += '\n' + obj_status_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1453
|
+
message += '\n' + obj_status_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1114
1454
|
return new TypeError(message);
|
|
1115
1455
|
}
|
|
1116
1456
|
}
|
|
1117
1457
|
})();
|
|
1118
1458
|
return v_error === undefined ? null : v_error;
|
|
1119
1459
|
}
|
|
1120
|
-
const select$
|
|
1460
|
+
const select$k = function AgentActionOutputRepresentationSelect() {
|
|
1121
1461
|
return {
|
|
1122
1462
|
kind: 'Fragment',
|
|
1123
|
-
version: VERSION$
|
|
1463
|
+
version: VERSION$e,
|
|
1124
1464
|
private: [],
|
|
1125
1465
|
selections: [
|
|
1466
|
+
{
|
|
1467
|
+
name: 'agentActionId',
|
|
1468
|
+
kind: 'Scalar',
|
|
1469
|
+
required: false
|
|
1470
|
+
},
|
|
1126
1471
|
{
|
|
1127
1472
|
name: 'id',
|
|
1128
1473
|
kind: 'Scalar',
|
|
1129
1474
|
required: false
|
|
1130
1475
|
},
|
|
1131
1476
|
{
|
|
1132
|
-
name: '
|
|
1477
|
+
name: 'status',
|
|
1133
1478
|
kind: 'Scalar',
|
|
1134
1479
|
required: false
|
|
1135
1480
|
}
|
|
1136
1481
|
]
|
|
1137
1482
|
};
|
|
1138
1483
|
};
|
|
1139
|
-
function equals$
|
|
1484
|
+
function equals$e(existing, incoming) {
|
|
1485
|
+
const existing_agentActionId = existing.agentActionId;
|
|
1486
|
+
const incoming_agentActionId = incoming.agentActionId;
|
|
1487
|
+
// if at least one of these optionals is defined
|
|
1488
|
+
if (existing_agentActionId !== undefined || incoming_agentActionId !== undefined) {
|
|
1489
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1490
|
+
// not equal
|
|
1491
|
+
if (existing_agentActionId === undefined || incoming_agentActionId === undefined) {
|
|
1492
|
+
return false;
|
|
1493
|
+
}
|
|
1494
|
+
if (!(existing_agentActionId === incoming_agentActionId)) {
|
|
1495
|
+
return false;
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1140
1498
|
const existing_id = existing.id;
|
|
1141
1499
|
const incoming_id = incoming.id;
|
|
1142
1500
|
// if at least one of these optionals is defined
|
|
@@ -1150,44 +1508,158 @@ function equals$b(existing, incoming) {
|
|
|
1150
1508
|
return false;
|
|
1151
1509
|
}
|
|
1152
1510
|
}
|
|
1153
|
-
const
|
|
1154
|
-
const
|
|
1511
|
+
const existing_status = existing.status;
|
|
1512
|
+
const incoming_status = incoming.status;
|
|
1155
1513
|
// if at least one of these optionals is defined
|
|
1156
|
-
if (
|
|
1514
|
+
if (existing_status !== undefined || incoming_status !== undefined) {
|
|
1157
1515
|
// if one of these is not defined we know the other is defined and therefore
|
|
1158
1516
|
// not equal
|
|
1159
|
-
if (
|
|
1517
|
+
if (existing_status === undefined || incoming_status === undefined) {
|
|
1160
1518
|
return false;
|
|
1161
1519
|
}
|
|
1162
|
-
if (!(
|
|
1520
|
+
if (!(existing_status === incoming_status)) {
|
|
1163
1521
|
return false;
|
|
1164
1522
|
}
|
|
1165
1523
|
}
|
|
1166
1524
|
return true;
|
|
1167
1525
|
}
|
|
1168
1526
|
|
|
1169
|
-
const VERSION$
|
|
1170
|
-
function validate$
|
|
1527
|
+
const VERSION$d = "0b2080174fe6d4ee4f4a0de27011fc7d";
|
|
1528
|
+
function validate$h(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
1171
1529
|
const v_error = (() => {
|
|
1172
1530
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1173
1531
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1174
1532
|
}
|
|
1175
|
-
if (obj.
|
|
1176
|
-
const
|
|
1177
|
-
const
|
|
1178
|
-
let
|
|
1179
|
-
const
|
|
1180
|
-
if (typeof
|
|
1181
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
1533
|
+
if (obj.id !== undefined) {
|
|
1534
|
+
const obj_id = obj.id;
|
|
1535
|
+
const path_id = path + '.id';
|
|
1536
|
+
let obj_id_union0 = null;
|
|
1537
|
+
const obj_id_union0_error = (() => {
|
|
1538
|
+
if (typeof obj_id !== 'string') {
|
|
1539
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1182
1540
|
}
|
|
1183
1541
|
})();
|
|
1184
|
-
if (
|
|
1185
|
-
|
|
1542
|
+
if (obj_id_union0_error != null) {
|
|
1543
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
1186
1544
|
}
|
|
1187
|
-
let
|
|
1188
|
-
const
|
|
1189
|
-
if (
|
|
1190
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
1545
|
+
let obj_id_union1 = null;
|
|
1546
|
+
const obj_id_union1_error = (() => {
|
|
1547
|
+
if (obj_id !== null) {
|
|
1548
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1549
|
+
}
|
|
1550
|
+
})();
|
|
1551
|
+
if (obj_id_union1_error != null) {
|
|
1552
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
1553
|
+
}
|
|
1554
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
1555
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
1556
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1557
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1558
|
+
return new TypeError(message);
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
if (obj.knowledgeArticleId !== undefined) {
|
|
1562
|
+
const obj_knowledgeArticleId = obj.knowledgeArticleId;
|
|
1563
|
+
const path_knowledgeArticleId = path + '.knowledgeArticleId';
|
|
1564
|
+
let obj_knowledgeArticleId_union0 = null;
|
|
1565
|
+
const obj_knowledgeArticleId_union0_error = (() => {
|
|
1566
|
+
if (typeof obj_knowledgeArticleId !== 'string') {
|
|
1567
|
+
return new TypeError('Expected "string" but received "' + typeof obj_knowledgeArticleId + '" (at "' + path_knowledgeArticleId + '")');
|
|
1568
|
+
}
|
|
1569
|
+
})();
|
|
1570
|
+
if (obj_knowledgeArticleId_union0_error != null) {
|
|
1571
|
+
obj_knowledgeArticleId_union0 = obj_knowledgeArticleId_union0_error.message;
|
|
1572
|
+
}
|
|
1573
|
+
let obj_knowledgeArticleId_union1 = null;
|
|
1574
|
+
const obj_knowledgeArticleId_union1_error = (() => {
|
|
1575
|
+
if (obj_knowledgeArticleId !== null) {
|
|
1576
|
+
return new TypeError('Expected "null" but received "' + typeof obj_knowledgeArticleId + '" (at "' + path_knowledgeArticleId + '")');
|
|
1577
|
+
}
|
|
1578
|
+
})();
|
|
1579
|
+
if (obj_knowledgeArticleId_union1_error != null) {
|
|
1580
|
+
obj_knowledgeArticleId_union1 = obj_knowledgeArticleId_union1_error.message;
|
|
1581
|
+
}
|
|
1582
|
+
if (obj_knowledgeArticleId_union0 && obj_knowledgeArticleId_union1) {
|
|
1583
|
+
let message = 'Object doesn\'t match union (at "' + path_knowledgeArticleId + '")';
|
|
1584
|
+
message += '\n' + obj_knowledgeArticleId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1585
|
+
message += '\n' + obj_knowledgeArticleId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1586
|
+
return new TypeError(message);
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
})();
|
|
1590
|
+
return v_error === undefined ? null : v_error;
|
|
1591
|
+
}
|
|
1592
|
+
const select$j = function AssociatedArticleOutputRepresentationSelect() {
|
|
1593
|
+
return {
|
|
1594
|
+
kind: 'Fragment',
|
|
1595
|
+
version: VERSION$d,
|
|
1596
|
+
private: [],
|
|
1597
|
+
selections: [
|
|
1598
|
+
{
|
|
1599
|
+
name: 'id',
|
|
1600
|
+
kind: 'Scalar',
|
|
1601
|
+
required: false
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
name: 'knowledgeArticleId',
|
|
1605
|
+
kind: 'Scalar',
|
|
1606
|
+
required: false
|
|
1607
|
+
}
|
|
1608
|
+
]
|
|
1609
|
+
};
|
|
1610
|
+
};
|
|
1611
|
+
function equals$d(existing, incoming) {
|
|
1612
|
+
const existing_id = existing.id;
|
|
1613
|
+
const incoming_id = incoming.id;
|
|
1614
|
+
// if at least one of these optionals is defined
|
|
1615
|
+
if (existing_id !== undefined || incoming_id !== undefined) {
|
|
1616
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1617
|
+
// not equal
|
|
1618
|
+
if (existing_id === undefined || incoming_id === undefined) {
|
|
1619
|
+
return false;
|
|
1620
|
+
}
|
|
1621
|
+
if (!(existing_id === incoming_id)) {
|
|
1622
|
+
return false;
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
const existing_knowledgeArticleId = existing.knowledgeArticleId;
|
|
1626
|
+
const incoming_knowledgeArticleId = incoming.knowledgeArticleId;
|
|
1627
|
+
// if at least one of these optionals is defined
|
|
1628
|
+
if (existing_knowledgeArticleId !== undefined || incoming_knowledgeArticleId !== undefined) {
|
|
1629
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1630
|
+
// not equal
|
|
1631
|
+
if (existing_knowledgeArticleId === undefined || incoming_knowledgeArticleId === undefined) {
|
|
1632
|
+
return false;
|
|
1633
|
+
}
|
|
1634
|
+
if (!(existing_knowledgeArticleId === incoming_knowledgeArticleId)) {
|
|
1635
|
+
return false;
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
return true;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
const VERSION$c = "6859d872ce6d03f8f07819eb40c43fe6";
|
|
1642
|
+
function validate$g(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
1643
|
+
const v_error = (() => {
|
|
1644
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1645
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1646
|
+
}
|
|
1647
|
+
if (obj.eligibilityRuleId !== undefined) {
|
|
1648
|
+
const obj_eligibilityRuleId = obj.eligibilityRuleId;
|
|
1649
|
+
const path_eligibilityRuleId = path + '.eligibilityRuleId';
|
|
1650
|
+
let obj_eligibilityRuleId_union0 = null;
|
|
1651
|
+
const obj_eligibilityRuleId_union0_error = (() => {
|
|
1652
|
+
if (typeof obj_eligibilityRuleId !== 'string') {
|
|
1653
|
+
return new TypeError('Expected "string" but received "' + typeof obj_eligibilityRuleId + '" (at "' + path_eligibilityRuleId + '")');
|
|
1654
|
+
}
|
|
1655
|
+
})();
|
|
1656
|
+
if (obj_eligibilityRuleId_union0_error != null) {
|
|
1657
|
+
obj_eligibilityRuleId_union0 = obj_eligibilityRuleId_union0_error.message;
|
|
1658
|
+
}
|
|
1659
|
+
let obj_eligibilityRuleId_union1 = null;
|
|
1660
|
+
const obj_eligibilityRuleId_union1_error = (() => {
|
|
1661
|
+
if (obj_eligibilityRuleId !== null) {
|
|
1662
|
+
return new TypeError('Expected "null" but received "' + typeof obj_eligibilityRuleId + '" (at "' + path_eligibilityRuleId + '")');
|
|
1191
1663
|
}
|
|
1192
1664
|
})();
|
|
1193
1665
|
if (obj_eligibilityRuleId_union1_error != null) {
|
|
@@ -1231,10 +1703,10 @@ function validate$e(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
|
1231
1703
|
})();
|
|
1232
1704
|
return v_error === undefined ? null : v_error;
|
|
1233
1705
|
}
|
|
1234
|
-
const select$
|
|
1706
|
+
const select$i = function EligibilityRuleOutputRepresentationSelect() {
|
|
1235
1707
|
return {
|
|
1236
1708
|
kind: 'Fragment',
|
|
1237
|
-
version: VERSION$
|
|
1709
|
+
version: VERSION$c,
|
|
1238
1710
|
private: [],
|
|
1239
1711
|
selections: [
|
|
1240
1712
|
{
|
|
@@ -1250,7 +1722,7 @@ const select$g = function EligibilityRuleOutputRepresentationSelect() {
|
|
|
1250
1722
|
]
|
|
1251
1723
|
};
|
|
1252
1724
|
};
|
|
1253
|
-
function equals$
|
|
1725
|
+
function equals$c(existing, incoming) {
|
|
1254
1726
|
const existing_eligibilityRuleId = existing.eligibilityRuleId;
|
|
1255
1727
|
const incoming_eligibilityRuleId = incoming.eligibilityRuleId;
|
|
1256
1728
|
// if at least one of these optionals is defined
|
|
@@ -1280,8 +1752,8 @@ function equals$a(existing, incoming) {
|
|
|
1280
1752
|
return true;
|
|
1281
1753
|
}
|
|
1282
1754
|
|
|
1283
|
-
const VERSION$
|
|
1284
|
-
function validate$
|
|
1755
|
+
const VERSION$b = "b5216beece7c04763cff6924e6953f93";
|
|
1756
|
+
function validate$f(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
1285
1757
|
const v_error = (() => {
|
|
1286
1758
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1287
1759
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1373,10 +1845,10 @@ function validate$d(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
|
1373
1845
|
})();
|
|
1374
1846
|
return v_error === undefined ? null : v_error;
|
|
1375
1847
|
}
|
|
1376
|
-
const select$
|
|
1848
|
+
const select$h = function FulfillmentFlowOutputRepresentationSelect() {
|
|
1377
1849
|
return {
|
|
1378
1850
|
kind: 'Fragment',
|
|
1379
|
-
version: VERSION$
|
|
1851
|
+
version: VERSION$b,
|
|
1380
1852
|
private: [],
|
|
1381
1853
|
selections: [
|
|
1382
1854
|
{
|
|
@@ -1397,7 +1869,7 @@ const select$f = function FulfillmentFlowOutputRepresentationSelect() {
|
|
|
1397
1869
|
]
|
|
1398
1870
|
};
|
|
1399
1871
|
};
|
|
1400
|
-
function equals$
|
|
1872
|
+
function equals$b(existing, incoming) {
|
|
1401
1873
|
const existing_fulFillmentFlowId = existing.fulFillmentFlowId;
|
|
1402
1874
|
const incoming_fulFillmentFlowId = incoming.fulFillmentFlowId;
|
|
1403
1875
|
// if at least one of these optionals is defined
|
|
@@ -1440,8 +1912,8 @@ function equals$9(existing, incoming) {
|
|
|
1440
1912
|
return true;
|
|
1441
1913
|
}
|
|
1442
1914
|
|
|
1443
|
-
const VERSION$
|
|
1444
|
-
function validate$
|
|
1915
|
+
const VERSION$a = "dc8ba723ca754951db42f9d0e6891a06";
|
|
1916
|
+
function validate$e(obj, path = 'IntakeFormOutputRepresentation') {
|
|
1445
1917
|
const v_error = (() => {
|
|
1446
1918
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1447
1919
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1673,10 +2145,10 @@ function validate$c(obj, path = 'IntakeFormOutputRepresentation') {
|
|
|
1673
2145
|
})();
|
|
1674
2146
|
return v_error === undefined ? null : v_error;
|
|
1675
2147
|
}
|
|
1676
|
-
const select$
|
|
2148
|
+
const select$g = function IntakeFormOutputRepresentationSelect() {
|
|
1677
2149
|
return {
|
|
1678
2150
|
kind: 'Fragment',
|
|
1679
|
-
version: VERSION$
|
|
2151
|
+
version: VERSION$a,
|
|
1680
2152
|
private: [],
|
|
1681
2153
|
selections: [
|
|
1682
2154
|
{
|
|
@@ -1722,7 +2194,7 @@ const select$e = function IntakeFormOutputRepresentationSelect() {
|
|
|
1722
2194
|
]
|
|
1723
2195
|
};
|
|
1724
2196
|
};
|
|
1725
|
-
function equals$
|
|
2197
|
+
function equals$a(existing, incoming) {
|
|
1726
2198
|
const existing_id = existing.id;
|
|
1727
2199
|
const incoming_id = incoming.id;
|
|
1728
2200
|
// if at least one of these optionals is defined
|
|
@@ -1830,8 +2302,8 @@ function equals$8(existing, incoming) {
|
|
|
1830
2302
|
return true;
|
|
1831
2303
|
}
|
|
1832
2304
|
|
|
1833
|
-
const VERSION$
|
|
1834
|
-
function validate$
|
|
2305
|
+
const VERSION$9 = "1006a153c933b8bc4b1d44663893e206";
|
|
2306
|
+
function validate$d(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
1835
2307
|
const v_error = (() => {
|
|
1836
2308
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1837
2309
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1895,10 +2367,10 @@ function validate$b(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
|
1895
2367
|
})();
|
|
1896
2368
|
return v_error === undefined ? null : v_error;
|
|
1897
2369
|
}
|
|
1898
|
-
const select$
|
|
2370
|
+
const select$f = function IntegrationDefinitionOutputPresentationSelect() {
|
|
1899
2371
|
return {
|
|
1900
2372
|
kind: 'Fragment',
|
|
1901
|
-
version: VERSION$
|
|
2373
|
+
version: VERSION$9,
|
|
1902
2374
|
private: [],
|
|
1903
2375
|
selections: [
|
|
1904
2376
|
{
|
|
@@ -1914,7 +2386,7 @@ const select$d = function IntegrationDefinitionOutputPresentationSelect() {
|
|
|
1914
2386
|
]
|
|
1915
2387
|
};
|
|
1916
2388
|
};
|
|
1917
|
-
function equals$
|
|
2389
|
+
function equals$9(existing, incoming) {
|
|
1918
2390
|
const existing_id = existing.id;
|
|
1919
2391
|
const incoming_id = incoming.id;
|
|
1920
2392
|
// if at least one of these optionals is defined
|
|
@@ -1944,8 +2416,122 @@ function equals$7(existing, incoming) {
|
|
|
1944
2416
|
return true;
|
|
1945
2417
|
}
|
|
1946
2418
|
|
|
1947
|
-
const VERSION$
|
|
1948
|
-
function validate$
|
|
2419
|
+
const VERSION$8 = "2d685b1e467eb8d61276e834ea3b74a3";
|
|
2420
|
+
function validate$c(obj, path = 'PreprocessorOutputRepresentation') {
|
|
2421
|
+
const v_error = (() => {
|
|
2422
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2423
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2424
|
+
}
|
|
2425
|
+
if (obj.id !== undefined) {
|
|
2426
|
+
const obj_id = obj.id;
|
|
2427
|
+
const path_id = path + '.id';
|
|
2428
|
+
let obj_id_union0 = null;
|
|
2429
|
+
const obj_id_union0_error = (() => {
|
|
2430
|
+
if (typeof obj_id !== 'string') {
|
|
2431
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2432
|
+
}
|
|
2433
|
+
})();
|
|
2434
|
+
if (obj_id_union0_error != null) {
|
|
2435
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
2436
|
+
}
|
|
2437
|
+
let obj_id_union1 = null;
|
|
2438
|
+
const obj_id_union1_error = (() => {
|
|
2439
|
+
if (obj_id !== null) {
|
|
2440
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2441
|
+
}
|
|
2442
|
+
})();
|
|
2443
|
+
if (obj_id_union1_error != null) {
|
|
2444
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
2445
|
+
}
|
|
2446
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
2447
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
2448
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2449
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2450
|
+
return new TypeError(message);
|
|
2451
|
+
}
|
|
2452
|
+
}
|
|
2453
|
+
if (obj.preProcessorsID !== undefined) {
|
|
2454
|
+
const obj_preProcessorsID = obj.preProcessorsID;
|
|
2455
|
+
const path_preProcessorsID = path + '.preProcessorsID';
|
|
2456
|
+
let obj_preProcessorsID_union0 = null;
|
|
2457
|
+
const obj_preProcessorsID_union0_error = (() => {
|
|
2458
|
+
if (typeof obj_preProcessorsID !== 'string') {
|
|
2459
|
+
return new TypeError('Expected "string" but received "' + typeof obj_preProcessorsID + '" (at "' + path_preProcessorsID + '")');
|
|
2460
|
+
}
|
|
2461
|
+
})();
|
|
2462
|
+
if (obj_preProcessorsID_union0_error != null) {
|
|
2463
|
+
obj_preProcessorsID_union0 = obj_preProcessorsID_union0_error.message;
|
|
2464
|
+
}
|
|
2465
|
+
let obj_preProcessorsID_union1 = null;
|
|
2466
|
+
const obj_preProcessorsID_union1_error = (() => {
|
|
2467
|
+
if (obj_preProcessorsID !== null) {
|
|
2468
|
+
return new TypeError('Expected "null" but received "' + typeof obj_preProcessorsID + '" (at "' + path_preProcessorsID + '")');
|
|
2469
|
+
}
|
|
2470
|
+
})();
|
|
2471
|
+
if (obj_preProcessorsID_union1_error != null) {
|
|
2472
|
+
obj_preProcessorsID_union1 = obj_preProcessorsID_union1_error.message;
|
|
2473
|
+
}
|
|
2474
|
+
if (obj_preProcessorsID_union0 && obj_preProcessorsID_union1) {
|
|
2475
|
+
let message = 'Object doesn\'t match union (at "' + path_preProcessorsID + '")';
|
|
2476
|
+
message += '\n' + obj_preProcessorsID_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2477
|
+
message += '\n' + obj_preProcessorsID_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2478
|
+
return new TypeError(message);
|
|
2479
|
+
}
|
|
2480
|
+
}
|
|
2481
|
+
})();
|
|
2482
|
+
return v_error === undefined ? null : v_error;
|
|
2483
|
+
}
|
|
2484
|
+
const select$e = function PreprocessorOutputRepresentationSelect() {
|
|
2485
|
+
return {
|
|
2486
|
+
kind: 'Fragment',
|
|
2487
|
+
version: VERSION$8,
|
|
2488
|
+
private: [],
|
|
2489
|
+
selections: [
|
|
2490
|
+
{
|
|
2491
|
+
name: 'id',
|
|
2492
|
+
kind: 'Scalar',
|
|
2493
|
+
required: false
|
|
2494
|
+
},
|
|
2495
|
+
{
|
|
2496
|
+
name: 'preProcessorsID',
|
|
2497
|
+
kind: 'Scalar',
|
|
2498
|
+
required: false
|
|
2499
|
+
}
|
|
2500
|
+
]
|
|
2501
|
+
};
|
|
2502
|
+
};
|
|
2503
|
+
function equals$8(existing, incoming) {
|
|
2504
|
+
const existing_id = existing.id;
|
|
2505
|
+
const incoming_id = incoming.id;
|
|
2506
|
+
// if at least one of these optionals is defined
|
|
2507
|
+
if (existing_id !== undefined || incoming_id !== undefined) {
|
|
2508
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2509
|
+
// not equal
|
|
2510
|
+
if (existing_id === undefined || incoming_id === undefined) {
|
|
2511
|
+
return false;
|
|
2512
|
+
}
|
|
2513
|
+
if (!(existing_id === incoming_id)) {
|
|
2514
|
+
return false;
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
const existing_preProcessorsID = existing.preProcessorsID;
|
|
2518
|
+
const incoming_preProcessorsID = incoming.preProcessorsID;
|
|
2519
|
+
// if at least one of these optionals is defined
|
|
2520
|
+
if (existing_preProcessorsID !== undefined || incoming_preProcessorsID !== undefined) {
|
|
2521
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2522
|
+
// not equal
|
|
2523
|
+
if (existing_preProcessorsID === undefined || incoming_preProcessorsID === undefined) {
|
|
2524
|
+
return false;
|
|
2525
|
+
}
|
|
2526
|
+
if (!(existing_preProcessorsID === incoming_preProcessorsID)) {
|
|
2527
|
+
return false;
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
return true;
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
const VERSION$7 = "237440975156389e5479f294d3d601de";
|
|
2534
|
+
function validate$b(obj, path = 'ProductDetailsOutputRepresentation') {
|
|
1949
2535
|
const v_error = (() => {
|
|
1950
2536
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1951
2537
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1978,50 +2564,321 @@ function validate$a(obj, path = 'PreprocessorOutputRepresentation') {
|
|
|
1978
2564
|
return new TypeError(message);
|
|
1979
2565
|
}
|
|
1980
2566
|
}
|
|
1981
|
-
if (obj.
|
|
1982
|
-
const
|
|
1983
|
-
const
|
|
1984
|
-
let
|
|
1985
|
-
const
|
|
1986
|
-
if (typeof
|
|
1987
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
2567
|
+
if (obj.productId !== undefined) {
|
|
2568
|
+
const obj_productId = obj.productId;
|
|
2569
|
+
const path_productId = path + '.productId';
|
|
2570
|
+
let obj_productId_union0 = null;
|
|
2571
|
+
const obj_productId_union0_error = (() => {
|
|
2572
|
+
if (typeof obj_productId !== 'string') {
|
|
2573
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productId + '" (at "' + path_productId + '")');
|
|
2574
|
+
}
|
|
2575
|
+
})();
|
|
2576
|
+
if (obj_productId_union0_error != null) {
|
|
2577
|
+
obj_productId_union0 = obj_productId_union0_error.message;
|
|
2578
|
+
}
|
|
2579
|
+
let obj_productId_union1 = null;
|
|
2580
|
+
const obj_productId_union1_error = (() => {
|
|
2581
|
+
if (obj_productId !== null) {
|
|
2582
|
+
return new TypeError('Expected "null" but received "' + typeof obj_productId + '" (at "' + path_productId + '")');
|
|
2583
|
+
}
|
|
2584
|
+
})();
|
|
2585
|
+
if (obj_productId_union1_error != null) {
|
|
2586
|
+
obj_productId_union1 = obj_productId_union1_error.message;
|
|
2587
|
+
}
|
|
2588
|
+
if (obj_productId_union0 && obj_productId_union1) {
|
|
2589
|
+
let message = 'Object doesn\'t match union (at "' + path_productId + '")';
|
|
2590
|
+
message += '\n' + obj_productId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2591
|
+
message += '\n' + obj_productId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2592
|
+
return new TypeError(message);
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
})();
|
|
2596
|
+
return v_error === undefined ? null : v_error;
|
|
2597
|
+
}
|
|
2598
|
+
const select$d = function ProductDetailsOutputRepresentationSelect() {
|
|
2599
|
+
return {
|
|
2600
|
+
kind: 'Fragment',
|
|
2601
|
+
version: VERSION$7,
|
|
2602
|
+
private: [],
|
|
2603
|
+
selections: [
|
|
2604
|
+
{
|
|
2605
|
+
name: 'id',
|
|
2606
|
+
kind: 'Scalar',
|
|
2607
|
+
required: false
|
|
2608
|
+
},
|
|
2609
|
+
{
|
|
2610
|
+
name: 'productId',
|
|
2611
|
+
kind: 'Scalar',
|
|
2612
|
+
required: false
|
|
2613
|
+
}
|
|
2614
|
+
]
|
|
2615
|
+
};
|
|
2616
|
+
};
|
|
2617
|
+
function equals$7(existing, incoming) {
|
|
2618
|
+
const existing_id = existing.id;
|
|
2619
|
+
const incoming_id = incoming.id;
|
|
2620
|
+
// if at least one of these optionals is defined
|
|
2621
|
+
if (existing_id !== undefined || incoming_id !== undefined) {
|
|
2622
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2623
|
+
// not equal
|
|
2624
|
+
if (existing_id === undefined || incoming_id === undefined) {
|
|
2625
|
+
return false;
|
|
2626
|
+
}
|
|
2627
|
+
if (!(existing_id === incoming_id)) {
|
|
2628
|
+
return false;
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
const existing_productId = existing.productId;
|
|
2632
|
+
const incoming_productId = incoming.productId;
|
|
2633
|
+
// if at least one of these optionals is defined
|
|
2634
|
+
if (existing_productId !== undefined || incoming_productId !== undefined) {
|
|
2635
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2636
|
+
// not equal
|
|
2637
|
+
if (existing_productId === undefined || incoming_productId === undefined) {
|
|
2638
|
+
return false;
|
|
2639
|
+
}
|
|
2640
|
+
if (!(existing_productId === incoming_productId)) {
|
|
2641
|
+
return false;
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
return true;
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2647
|
+
const VERSION$6 = "dc18ee4b99b0510d2c89ddf9261ea1e7";
|
|
2648
|
+
function validate$a(obj, path = 'ProductRequestOutputRepresentation') {
|
|
2649
|
+
const v_error = (() => {
|
|
2650
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2651
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2652
|
+
}
|
|
2653
|
+
if (obj.productDetails !== undefined) {
|
|
2654
|
+
const obj_productDetails = obj.productDetails;
|
|
2655
|
+
const path_productDetails = path + '.productDetails';
|
|
2656
|
+
if (!ArrayIsArray(obj_productDetails)) {
|
|
2657
|
+
return new TypeError('Expected "array" but received "' + typeof obj_productDetails + '" (at "' + path_productDetails + '")');
|
|
2658
|
+
}
|
|
2659
|
+
for (let i = 0; i < obj_productDetails.length; i++) {
|
|
2660
|
+
const obj_productDetails_item = obj_productDetails[i];
|
|
2661
|
+
const path_productDetails_item = path_productDetails + '[' + i + ']';
|
|
2662
|
+
const referencepath_productDetails_itemValidationError = validate$b(obj_productDetails_item, path_productDetails_item);
|
|
2663
|
+
if (referencepath_productDetails_itemValidationError !== null) {
|
|
2664
|
+
let message = 'Object doesn\'t match ProductDetailsOutputRepresentation (at "' + path_productDetails_item + '")\n';
|
|
2665
|
+
message += referencepath_productDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2666
|
+
return new TypeError(message);
|
|
2667
|
+
}
|
|
2668
|
+
}
|
|
2669
|
+
}
|
|
2670
|
+
if (obj.sectionDescription !== undefined) {
|
|
2671
|
+
const obj_sectionDescription = obj.sectionDescription;
|
|
2672
|
+
const path_sectionDescription = path + '.sectionDescription';
|
|
2673
|
+
let obj_sectionDescription_union0 = null;
|
|
2674
|
+
const obj_sectionDescription_union0_error = (() => {
|
|
2675
|
+
if (typeof obj_sectionDescription !== 'string') {
|
|
2676
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sectionDescription + '" (at "' + path_sectionDescription + '")');
|
|
2677
|
+
}
|
|
2678
|
+
})();
|
|
2679
|
+
if (obj_sectionDescription_union0_error != null) {
|
|
2680
|
+
obj_sectionDescription_union0 = obj_sectionDescription_union0_error.message;
|
|
2681
|
+
}
|
|
2682
|
+
let obj_sectionDescription_union1 = null;
|
|
2683
|
+
const obj_sectionDescription_union1_error = (() => {
|
|
2684
|
+
if (obj_sectionDescription !== null) {
|
|
2685
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionDescription + '" (at "' + path_sectionDescription + '")');
|
|
2686
|
+
}
|
|
2687
|
+
})();
|
|
2688
|
+
if (obj_sectionDescription_union1_error != null) {
|
|
2689
|
+
obj_sectionDescription_union1 = obj_sectionDescription_union1_error.message;
|
|
2690
|
+
}
|
|
2691
|
+
if (obj_sectionDescription_union0 && obj_sectionDescription_union1) {
|
|
2692
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionDescription + '")';
|
|
2693
|
+
message += '\n' + obj_sectionDescription_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2694
|
+
message += '\n' + obj_sectionDescription_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2695
|
+
return new TypeError(message);
|
|
2696
|
+
}
|
|
2697
|
+
}
|
|
2698
|
+
if (obj.sectionId !== undefined) {
|
|
2699
|
+
const obj_sectionId = obj.sectionId;
|
|
2700
|
+
const path_sectionId = path + '.sectionId';
|
|
2701
|
+
let obj_sectionId_union0 = null;
|
|
2702
|
+
const obj_sectionId_union0_error = (() => {
|
|
2703
|
+
if (typeof obj_sectionId !== 'string') {
|
|
2704
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sectionId + '" (at "' + path_sectionId + '")');
|
|
2705
|
+
}
|
|
2706
|
+
})();
|
|
2707
|
+
if (obj_sectionId_union0_error != null) {
|
|
2708
|
+
obj_sectionId_union0 = obj_sectionId_union0_error.message;
|
|
2709
|
+
}
|
|
2710
|
+
let obj_sectionId_union1 = null;
|
|
2711
|
+
const obj_sectionId_union1_error = (() => {
|
|
2712
|
+
if (obj_sectionId !== null) {
|
|
2713
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionId + '" (at "' + path_sectionId + '")');
|
|
2714
|
+
}
|
|
2715
|
+
})();
|
|
2716
|
+
if (obj_sectionId_union1_error != null) {
|
|
2717
|
+
obj_sectionId_union1 = obj_sectionId_union1_error.message;
|
|
2718
|
+
}
|
|
2719
|
+
if (obj_sectionId_union0 && obj_sectionId_union1) {
|
|
2720
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionId + '")';
|
|
2721
|
+
message += '\n' + obj_sectionId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2722
|
+
message += '\n' + obj_sectionId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2723
|
+
return new TypeError(message);
|
|
2724
|
+
}
|
|
2725
|
+
}
|
|
2726
|
+
if (obj.sectionMaxCount !== undefined) {
|
|
2727
|
+
const obj_sectionMaxCount = obj.sectionMaxCount;
|
|
2728
|
+
const path_sectionMaxCount = path + '.sectionMaxCount';
|
|
2729
|
+
let obj_sectionMaxCount_union0 = null;
|
|
2730
|
+
const obj_sectionMaxCount_union0_error = (() => {
|
|
2731
|
+
if (typeof obj_sectionMaxCount !== 'number' || (typeof obj_sectionMaxCount === 'number' && Math.floor(obj_sectionMaxCount) !== obj_sectionMaxCount)) {
|
|
2732
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sectionMaxCount + '" (at "' + path_sectionMaxCount + '")');
|
|
2733
|
+
}
|
|
2734
|
+
})();
|
|
2735
|
+
if (obj_sectionMaxCount_union0_error != null) {
|
|
2736
|
+
obj_sectionMaxCount_union0 = obj_sectionMaxCount_union0_error.message;
|
|
2737
|
+
}
|
|
2738
|
+
let obj_sectionMaxCount_union1 = null;
|
|
2739
|
+
const obj_sectionMaxCount_union1_error = (() => {
|
|
2740
|
+
if (obj_sectionMaxCount !== null) {
|
|
2741
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionMaxCount + '" (at "' + path_sectionMaxCount + '")');
|
|
2742
|
+
}
|
|
2743
|
+
})();
|
|
2744
|
+
if (obj_sectionMaxCount_union1_error != null) {
|
|
2745
|
+
obj_sectionMaxCount_union1 = obj_sectionMaxCount_union1_error.message;
|
|
2746
|
+
}
|
|
2747
|
+
if (obj_sectionMaxCount_union0 && obj_sectionMaxCount_union1) {
|
|
2748
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionMaxCount + '")';
|
|
2749
|
+
message += '\n' + obj_sectionMaxCount_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2750
|
+
message += '\n' + obj_sectionMaxCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2751
|
+
return new TypeError(message);
|
|
2752
|
+
}
|
|
2753
|
+
}
|
|
2754
|
+
if (obj.sectionMinCount !== undefined) {
|
|
2755
|
+
const obj_sectionMinCount = obj.sectionMinCount;
|
|
2756
|
+
const path_sectionMinCount = path + '.sectionMinCount';
|
|
2757
|
+
let obj_sectionMinCount_union0 = null;
|
|
2758
|
+
const obj_sectionMinCount_union0_error = (() => {
|
|
2759
|
+
if (typeof obj_sectionMinCount !== 'number' || (typeof obj_sectionMinCount === 'number' && Math.floor(obj_sectionMinCount) !== obj_sectionMinCount)) {
|
|
2760
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sectionMinCount + '" (at "' + path_sectionMinCount + '")');
|
|
2761
|
+
}
|
|
2762
|
+
})();
|
|
2763
|
+
if (obj_sectionMinCount_union0_error != null) {
|
|
2764
|
+
obj_sectionMinCount_union0 = obj_sectionMinCount_union0_error.message;
|
|
2765
|
+
}
|
|
2766
|
+
let obj_sectionMinCount_union1 = null;
|
|
2767
|
+
const obj_sectionMinCount_union1_error = (() => {
|
|
2768
|
+
if (obj_sectionMinCount !== null) {
|
|
2769
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionMinCount + '" (at "' + path_sectionMinCount + '")');
|
|
2770
|
+
}
|
|
2771
|
+
})();
|
|
2772
|
+
if (obj_sectionMinCount_union1_error != null) {
|
|
2773
|
+
obj_sectionMinCount_union1 = obj_sectionMinCount_union1_error.message;
|
|
2774
|
+
}
|
|
2775
|
+
if (obj_sectionMinCount_union0 && obj_sectionMinCount_union1) {
|
|
2776
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionMinCount + '")';
|
|
2777
|
+
message += '\n' + obj_sectionMinCount_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2778
|
+
message += '\n' + obj_sectionMinCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2779
|
+
return new TypeError(message);
|
|
2780
|
+
}
|
|
2781
|
+
}
|
|
2782
|
+
if (obj.sectionName !== undefined) {
|
|
2783
|
+
const obj_sectionName = obj.sectionName;
|
|
2784
|
+
const path_sectionName = path + '.sectionName';
|
|
2785
|
+
let obj_sectionName_union0 = null;
|
|
2786
|
+
const obj_sectionName_union0_error = (() => {
|
|
2787
|
+
if (typeof obj_sectionName !== 'string') {
|
|
2788
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sectionName + '" (at "' + path_sectionName + '")');
|
|
2789
|
+
}
|
|
2790
|
+
})();
|
|
2791
|
+
if (obj_sectionName_union0_error != null) {
|
|
2792
|
+
obj_sectionName_union0 = obj_sectionName_union0_error.message;
|
|
2793
|
+
}
|
|
2794
|
+
let obj_sectionName_union1 = null;
|
|
2795
|
+
const obj_sectionName_union1_error = (() => {
|
|
2796
|
+
if (obj_sectionName !== null) {
|
|
2797
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionName + '" (at "' + path_sectionName + '")');
|
|
2798
|
+
}
|
|
2799
|
+
})();
|
|
2800
|
+
if (obj_sectionName_union1_error != null) {
|
|
2801
|
+
obj_sectionName_union1 = obj_sectionName_union1_error.message;
|
|
2802
|
+
}
|
|
2803
|
+
if (obj_sectionName_union0 && obj_sectionName_union1) {
|
|
2804
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionName + '")';
|
|
2805
|
+
message += '\n' + obj_sectionName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2806
|
+
message += '\n' + obj_sectionName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2807
|
+
return new TypeError(message);
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
if (obj.sequence !== undefined) {
|
|
2811
|
+
const obj_sequence = obj.sequence;
|
|
2812
|
+
const path_sequence = path + '.sequence';
|
|
2813
|
+
let obj_sequence_union0 = null;
|
|
2814
|
+
const obj_sequence_union0_error = (() => {
|
|
2815
|
+
if (typeof obj_sequence !== 'number' || (typeof obj_sequence === 'number' && Math.floor(obj_sequence) !== obj_sequence)) {
|
|
2816
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sequence + '" (at "' + path_sequence + '")');
|
|
1988
2817
|
}
|
|
1989
2818
|
})();
|
|
1990
|
-
if (
|
|
1991
|
-
|
|
2819
|
+
if (obj_sequence_union0_error != null) {
|
|
2820
|
+
obj_sequence_union0 = obj_sequence_union0_error.message;
|
|
1992
2821
|
}
|
|
1993
|
-
let
|
|
1994
|
-
const
|
|
1995
|
-
if (
|
|
1996
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
2822
|
+
let obj_sequence_union1 = null;
|
|
2823
|
+
const obj_sequence_union1_error = (() => {
|
|
2824
|
+
if (obj_sequence !== null) {
|
|
2825
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sequence + '" (at "' + path_sequence + '")');
|
|
1997
2826
|
}
|
|
1998
2827
|
})();
|
|
1999
|
-
if (
|
|
2000
|
-
|
|
2828
|
+
if (obj_sequence_union1_error != null) {
|
|
2829
|
+
obj_sequence_union1 = obj_sequence_union1_error.message;
|
|
2001
2830
|
}
|
|
2002
|
-
if (
|
|
2003
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
2004
|
-
message += '\n' +
|
|
2005
|
-
message += '\n' +
|
|
2831
|
+
if (obj_sequence_union0 && obj_sequence_union1) {
|
|
2832
|
+
let message = 'Object doesn\'t match union (at "' + path_sequence + '")';
|
|
2833
|
+
message += '\n' + obj_sequence_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2834
|
+
message += '\n' + obj_sequence_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2006
2835
|
return new TypeError(message);
|
|
2007
2836
|
}
|
|
2008
2837
|
}
|
|
2009
2838
|
})();
|
|
2010
2839
|
return v_error === undefined ? null : v_error;
|
|
2011
2840
|
}
|
|
2012
|
-
const select$c = function
|
|
2841
|
+
const select$c = function ProductRequestOutputRepresentationSelect() {
|
|
2842
|
+
const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$d();
|
|
2013
2843
|
return {
|
|
2014
2844
|
kind: 'Fragment',
|
|
2015
2845
|
version: VERSION$6,
|
|
2016
2846
|
private: [],
|
|
2017
2847
|
selections: [
|
|
2018
2848
|
{
|
|
2019
|
-
name: '
|
|
2849
|
+
name: 'productDetails',
|
|
2850
|
+
kind: 'Object',
|
|
2851
|
+
plural: true,
|
|
2852
|
+
selections: ProductDetailsOutputRepresentation__selections,
|
|
2853
|
+
required: false
|
|
2854
|
+
},
|
|
2855
|
+
{
|
|
2856
|
+
name: 'sectionDescription',
|
|
2020
2857
|
kind: 'Scalar',
|
|
2021
2858
|
required: false
|
|
2022
2859
|
},
|
|
2023
2860
|
{
|
|
2024
|
-
name: '
|
|
2861
|
+
name: 'sectionId',
|
|
2862
|
+
kind: 'Scalar',
|
|
2863
|
+
required: false
|
|
2864
|
+
},
|
|
2865
|
+
{
|
|
2866
|
+
name: 'sectionMaxCount',
|
|
2867
|
+
kind: 'Scalar',
|
|
2868
|
+
required: false
|
|
2869
|
+
},
|
|
2870
|
+
{
|
|
2871
|
+
name: 'sectionMinCount',
|
|
2872
|
+
kind: 'Scalar',
|
|
2873
|
+
required: false
|
|
2874
|
+
},
|
|
2875
|
+
{
|
|
2876
|
+
name: 'sectionName',
|
|
2877
|
+
kind: 'Scalar',
|
|
2878
|
+
required: false
|
|
2879
|
+
},
|
|
2880
|
+
{
|
|
2881
|
+
name: 'sequence',
|
|
2025
2882
|
kind: 'Scalar',
|
|
2026
2883
|
required: false
|
|
2027
2884
|
}
|
|
@@ -2029,29 +2886,99 @@ const select$c = function PreprocessorOutputRepresentationSelect() {
|
|
|
2029
2886
|
};
|
|
2030
2887
|
};
|
|
2031
2888
|
function equals$6(existing, incoming) {
|
|
2032
|
-
const
|
|
2033
|
-
const
|
|
2889
|
+
const existing_productDetails = existing.productDetails;
|
|
2890
|
+
const incoming_productDetails = incoming.productDetails;
|
|
2034
2891
|
// if at least one of these optionals is defined
|
|
2035
|
-
if (
|
|
2892
|
+
if (existing_productDetails !== undefined || incoming_productDetails !== undefined) {
|
|
2036
2893
|
// if one of these is not defined we know the other is defined and therefore
|
|
2037
2894
|
// not equal
|
|
2038
|
-
if (
|
|
2895
|
+
if (existing_productDetails === undefined || incoming_productDetails === undefined) {
|
|
2039
2896
|
return false;
|
|
2040
2897
|
}
|
|
2041
|
-
|
|
2898
|
+
const equals_productDetails_items = equalsArray(existing_productDetails, incoming_productDetails, (existing_productDetails_item, incoming_productDetails_item) => {
|
|
2899
|
+
if (!(equals$7(existing_productDetails_item, incoming_productDetails_item))) {
|
|
2900
|
+
return false;
|
|
2901
|
+
}
|
|
2902
|
+
});
|
|
2903
|
+
if (equals_productDetails_items === false) {
|
|
2042
2904
|
return false;
|
|
2043
2905
|
}
|
|
2044
2906
|
}
|
|
2045
|
-
const
|
|
2046
|
-
const
|
|
2907
|
+
const existing_sectionDescription = existing.sectionDescription;
|
|
2908
|
+
const incoming_sectionDescription = incoming.sectionDescription;
|
|
2047
2909
|
// if at least one of these optionals is defined
|
|
2048
|
-
if (
|
|
2910
|
+
if (existing_sectionDescription !== undefined || incoming_sectionDescription !== undefined) {
|
|
2049
2911
|
// if one of these is not defined we know the other is defined and therefore
|
|
2050
2912
|
// not equal
|
|
2051
|
-
if (
|
|
2913
|
+
if (existing_sectionDescription === undefined || incoming_sectionDescription === undefined) {
|
|
2052
2914
|
return false;
|
|
2053
2915
|
}
|
|
2054
|
-
if (!(
|
|
2916
|
+
if (!(existing_sectionDescription === incoming_sectionDescription)) {
|
|
2917
|
+
return false;
|
|
2918
|
+
}
|
|
2919
|
+
}
|
|
2920
|
+
const existing_sectionId = existing.sectionId;
|
|
2921
|
+
const incoming_sectionId = incoming.sectionId;
|
|
2922
|
+
// if at least one of these optionals is defined
|
|
2923
|
+
if (existing_sectionId !== undefined || incoming_sectionId !== undefined) {
|
|
2924
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2925
|
+
// not equal
|
|
2926
|
+
if (existing_sectionId === undefined || incoming_sectionId === undefined) {
|
|
2927
|
+
return false;
|
|
2928
|
+
}
|
|
2929
|
+
if (!(existing_sectionId === incoming_sectionId)) {
|
|
2930
|
+
return false;
|
|
2931
|
+
}
|
|
2932
|
+
}
|
|
2933
|
+
const existing_sectionMaxCount = existing.sectionMaxCount;
|
|
2934
|
+
const incoming_sectionMaxCount = incoming.sectionMaxCount;
|
|
2935
|
+
// if at least one of these optionals is defined
|
|
2936
|
+
if (existing_sectionMaxCount !== undefined || incoming_sectionMaxCount !== undefined) {
|
|
2937
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2938
|
+
// not equal
|
|
2939
|
+
if (existing_sectionMaxCount === undefined || incoming_sectionMaxCount === undefined) {
|
|
2940
|
+
return false;
|
|
2941
|
+
}
|
|
2942
|
+
if (!(existing_sectionMaxCount === incoming_sectionMaxCount)) {
|
|
2943
|
+
return false;
|
|
2944
|
+
}
|
|
2945
|
+
}
|
|
2946
|
+
const existing_sectionMinCount = existing.sectionMinCount;
|
|
2947
|
+
const incoming_sectionMinCount = incoming.sectionMinCount;
|
|
2948
|
+
// if at least one of these optionals is defined
|
|
2949
|
+
if (existing_sectionMinCount !== undefined || incoming_sectionMinCount !== undefined) {
|
|
2950
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2951
|
+
// not equal
|
|
2952
|
+
if (existing_sectionMinCount === undefined || incoming_sectionMinCount === undefined) {
|
|
2953
|
+
return false;
|
|
2954
|
+
}
|
|
2955
|
+
if (!(existing_sectionMinCount === incoming_sectionMinCount)) {
|
|
2956
|
+
return false;
|
|
2957
|
+
}
|
|
2958
|
+
}
|
|
2959
|
+
const existing_sectionName = existing.sectionName;
|
|
2960
|
+
const incoming_sectionName = incoming.sectionName;
|
|
2961
|
+
// if at least one of these optionals is defined
|
|
2962
|
+
if (existing_sectionName !== undefined || incoming_sectionName !== undefined) {
|
|
2963
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2964
|
+
// not equal
|
|
2965
|
+
if (existing_sectionName === undefined || incoming_sectionName === undefined) {
|
|
2966
|
+
return false;
|
|
2967
|
+
}
|
|
2968
|
+
if (!(existing_sectionName === incoming_sectionName)) {
|
|
2969
|
+
return false;
|
|
2970
|
+
}
|
|
2971
|
+
}
|
|
2972
|
+
const existing_sequence = existing.sequence;
|
|
2973
|
+
const incoming_sequence = incoming.sequence;
|
|
2974
|
+
// if at least one of these optionals is defined
|
|
2975
|
+
if (existing_sequence !== undefined || incoming_sequence !== undefined) {
|
|
2976
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2977
|
+
// not equal
|
|
2978
|
+
if (existing_sequence === undefined || incoming_sequence === undefined) {
|
|
2979
|
+
return false;
|
|
2980
|
+
}
|
|
2981
|
+
if (!(existing_sequence === incoming_sequence)) {
|
|
2055
2982
|
return false;
|
|
2056
2983
|
}
|
|
2057
2984
|
}
|
|
@@ -2724,7 +3651,7 @@ function equals$5(existing, incoming) {
|
|
|
2724
3651
|
return true;
|
|
2725
3652
|
}
|
|
2726
3653
|
|
|
2727
|
-
const VERSION$4 = "
|
|
3654
|
+
const VERSION$4 = "f3d73b2bf4e29668882933f95c798ea8";
|
|
2728
3655
|
function validate$8(obj, path = 'SectionOutputRepresentation') {
|
|
2729
3656
|
const v_error = (() => {
|
|
2730
3657
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2796,6 +3723,34 @@ function validate$8(obj, path = 'SectionOutputRepresentation') {
|
|
|
2796
3723
|
return new TypeError(message);
|
|
2797
3724
|
}
|
|
2798
3725
|
}
|
|
3726
|
+
if (obj.id !== undefined) {
|
|
3727
|
+
const obj_id = obj.id;
|
|
3728
|
+
const path_id = path + '.id';
|
|
3729
|
+
let obj_id_union0 = null;
|
|
3730
|
+
const obj_id_union0_error = (() => {
|
|
3731
|
+
if (typeof obj_id !== 'string') {
|
|
3732
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3733
|
+
}
|
|
3734
|
+
})();
|
|
3735
|
+
if (obj_id_union0_error != null) {
|
|
3736
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
3737
|
+
}
|
|
3738
|
+
let obj_id_union1 = null;
|
|
3739
|
+
const obj_id_union1_error = (() => {
|
|
3740
|
+
if (obj_id !== null) {
|
|
3741
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3742
|
+
}
|
|
3743
|
+
})();
|
|
3744
|
+
if (obj_id_union1_error != null) {
|
|
3745
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
3746
|
+
}
|
|
3747
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
3748
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
3749
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3750
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3751
|
+
return new TypeError(message);
|
|
3752
|
+
}
|
|
3753
|
+
}
|
|
2799
3754
|
if (obj.name !== undefined) {
|
|
2800
3755
|
const obj_name = obj.name;
|
|
2801
3756
|
const path_name = path + '.name';
|
|
@@ -2847,6 +3802,11 @@ const select$a = function SectionOutputRepresentationSelect() {
|
|
|
2847
3802
|
kind: 'Scalar',
|
|
2848
3803
|
required: false
|
|
2849
3804
|
},
|
|
3805
|
+
{
|
|
3806
|
+
name: 'id',
|
|
3807
|
+
kind: 'Scalar',
|
|
3808
|
+
required: false
|
|
3809
|
+
},
|
|
2850
3810
|
{
|
|
2851
3811
|
name: 'name',
|
|
2852
3812
|
kind: 'Scalar',
|
|
@@ -2890,6 +3850,19 @@ function equals$4(existing, incoming) {
|
|
|
2890
3850
|
return false;
|
|
2891
3851
|
}
|
|
2892
3852
|
}
|
|
3853
|
+
const existing_id = existing.id;
|
|
3854
|
+
const incoming_id = incoming.id;
|
|
3855
|
+
// if at least one of these optionals is defined
|
|
3856
|
+
if (existing_id !== undefined || incoming_id !== undefined) {
|
|
3857
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3858
|
+
// not equal
|
|
3859
|
+
if (existing_id === undefined || incoming_id === undefined) {
|
|
3860
|
+
return false;
|
|
3861
|
+
}
|
|
3862
|
+
if (!(existing_id === incoming_id)) {
|
|
3863
|
+
return false;
|
|
3864
|
+
}
|
|
3865
|
+
}
|
|
2893
3866
|
const existing_name = existing.name;
|
|
2894
3867
|
const incoming_name = incoming.name;
|
|
2895
3868
|
// if at least one of these optionals is defined
|
|
@@ -2907,12 +3880,43 @@ function equals$4(existing, incoming) {
|
|
|
2907
3880
|
}
|
|
2908
3881
|
|
|
2909
3882
|
const TTL$3 = 6000;
|
|
2910
|
-
const VERSION$3 = "
|
|
3883
|
+
const VERSION$3 = "efbda596097be82303366398479b8fa4";
|
|
2911
3884
|
function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
2912
3885
|
const v_error = (() => {
|
|
2913
3886
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2914
3887
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2915
3888
|
}
|
|
3889
|
+
if (obj.agentAction !== undefined) {
|
|
3890
|
+
const obj_agentAction = obj.agentAction;
|
|
3891
|
+
const path_agentAction = path + '.agentAction';
|
|
3892
|
+
let obj_agentAction_union0 = null;
|
|
3893
|
+
const obj_agentAction_union0_error = (() => {
|
|
3894
|
+
const referencepath_agentActionValidationError = validate$i(obj_agentAction, path_agentAction);
|
|
3895
|
+
if (referencepath_agentActionValidationError !== null) {
|
|
3896
|
+
let message = 'Object doesn\'t match AgentActionOutputRepresentation (at "' + path_agentAction + '")\n';
|
|
3897
|
+
message += referencepath_agentActionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3898
|
+
return new TypeError(message);
|
|
3899
|
+
}
|
|
3900
|
+
})();
|
|
3901
|
+
if (obj_agentAction_union0_error != null) {
|
|
3902
|
+
obj_agentAction_union0 = obj_agentAction_union0_error.message;
|
|
3903
|
+
}
|
|
3904
|
+
let obj_agentAction_union1 = null;
|
|
3905
|
+
const obj_agentAction_union1_error = (() => {
|
|
3906
|
+
if (obj_agentAction !== null) {
|
|
3907
|
+
return new TypeError('Expected "null" but received "' + typeof obj_agentAction + '" (at "' + path_agentAction + '")');
|
|
3908
|
+
}
|
|
3909
|
+
})();
|
|
3910
|
+
if (obj_agentAction_union1_error != null) {
|
|
3911
|
+
obj_agentAction_union1 = obj_agentAction_union1_error.message;
|
|
3912
|
+
}
|
|
3913
|
+
if (obj_agentAction_union0 && obj_agentAction_union1) {
|
|
3914
|
+
let message = 'Object doesn\'t match union (at "' + path_agentAction + '")';
|
|
3915
|
+
message += '\n' + obj_agentAction_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3916
|
+
message += '\n' + obj_agentAction_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3917
|
+
return new TypeError(message);
|
|
3918
|
+
}
|
|
3919
|
+
}
|
|
2916
3920
|
if (obj.associatedArticles !== undefined) {
|
|
2917
3921
|
const obj_associatedArticles = obj.associatedArticles;
|
|
2918
3922
|
const path_associatedArticles = path + '.associatedArticles';
|
|
@@ -2924,7 +3928,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
2924
3928
|
const path_associatedArticles_item = path_associatedArticles + '[' + i + ']';
|
|
2925
3929
|
let obj_associatedArticles_item_union0 = null;
|
|
2926
3930
|
const obj_associatedArticles_item_union0_error = (() => {
|
|
2927
|
-
const referencepath_associatedArticles_itemValidationError = validate$
|
|
3931
|
+
const referencepath_associatedArticles_itemValidationError = validate$h(obj_associatedArticles_item, path_associatedArticles_item);
|
|
2928
3932
|
if (referencepath_associatedArticles_itemValidationError !== null) {
|
|
2929
3933
|
let message = 'Object doesn\'t match AssociatedArticleOutputRepresentation (at "' + path_associatedArticles_item + '")\n';
|
|
2930
3934
|
message += referencepath_associatedArticles_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3072,7 +4076,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
3072
4076
|
const path_eligibilityRules_item = path_eligibilityRules + '[' + i + ']';
|
|
3073
4077
|
let obj_eligibilityRules_item_union0 = null;
|
|
3074
4078
|
const obj_eligibilityRules_item_union0_error = (() => {
|
|
3075
|
-
const referencepath_eligibilityRules_itemValidationError = validate$
|
|
4079
|
+
const referencepath_eligibilityRules_itemValidationError = validate$g(obj_eligibilityRules_item, path_eligibilityRules_item);
|
|
3076
4080
|
if (referencepath_eligibilityRules_itemValidationError !== null) {
|
|
3077
4081
|
let message = 'Object doesn\'t match EligibilityRuleOutputRepresentation (at "' + path_eligibilityRules_item + '")\n';
|
|
3078
4082
|
message += referencepath_eligibilityRules_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3104,7 +4108,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
3104
4108
|
const path_fulfillmentFlow = path + '.fulfillmentFlow';
|
|
3105
4109
|
let obj_fulfillmentFlow_union0 = null;
|
|
3106
4110
|
const obj_fulfillmentFlow_union0_error = (() => {
|
|
3107
|
-
const referencepath_fulfillmentFlowValidationError = validate$
|
|
4111
|
+
const referencepath_fulfillmentFlowValidationError = validate$f(obj_fulfillmentFlow, path_fulfillmentFlow);
|
|
3108
4112
|
if (referencepath_fulfillmentFlowValidationError !== null) {
|
|
3109
4113
|
let message = 'Object doesn\'t match FulfillmentFlowOutputRepresentation (at "' + path_fulfillmentFlow + '")\n';
|
|
3110
4114
|
message += referencepath_fulfillmentFlowValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3135,7 +4139,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
3135
4139
|
const path_intakeForm = path + '.intakeForm';
|
|
3136
4140
|
let obj_intakeForm_union0 = null;
|
|
3137
4141
|
const obj_intakeForm_union0_error = (() => {
|
|
3138
|
-
const referencepath_intakeFormValidationError = validate$
|
|
4142
|
+
const referencepath_intakeFormValidationError = validate$e(obj_intakeForm, path_intakeForm);
|
|
3139
4143
|
if (referencepath_intakeFormValidationError !== null) {
|
|
3140
4144
|
let message = 'Object doesn\'t match IntakeFormOutputRepresentation (at "' + path_intakeForm + '")\n';
|
|
3141
4145
|
message += referencepath_intakeFormValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3172,7 +4176,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
3172
4176
|
const path_integrations_item = path_integrations + '[' + i + ']';
|
|
3173
4177
|
let obj_integrations_item_union0 = null;
|
|
3174
4178
|
const obj_integrations_item_union0_error = (() => {
|
|
3175
|
-
const referencepath_integrations_itemValidationError = validate$
|
|
4179
|
+
const referencepath_integrations_itemValidationError = validate$d(obj_integrations_item, path_integrations_item);
|
|
3176
4180
|
if (referencepath_integrations_itemValidationError !== null) {
|
|
3177
4181
|
let message = 'Object doesn\'t match IntegrationDefinitionOutputPresentation (at "' + path_integrations_item + '")\n';
|
|
3178
4182
|
message += referencepath_integrations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3266,7 +4270,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
3266
4270
|
const path_preProcessors_item = path_preProcessors + '[' + i + ']';
|
|
3267
4271
|
let obj_preProcessors_item_union0 = null;
|
|
3268
4272
|
const obj_preProcessors_item_union0_error = (() => {
|
|
3269
|
-
const referencepath_preProcessors_itemValidationError = validate$
|
|
4273
|
+
const referencepath_preProcessors_itemValidationError = validate$c(obj_preProcessors_item, path_preProcessors_item);
|
|
3270
4274
|
if (referencepath_preProcessors_itemValidationError !== null) {
|
|
3271
4275
|
let message = 'Object doesn\'t match PreprocessorOutputRepresentation (at "' + path_preProcessors_item + '")\n';
|
|
3272
4276
|
message += referencepath_preProcessors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3321,6 +4325,44 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
3321
4325
|
return new TypeError(message);
|
|
3322
4326
|
}
|
|
3323
4327
|
}
|
|
4328
|
+
if (obj.productRequests !== undefined) {
|
|
4329
|
+
const obj_productRequests = obj.productRequests;
|
|
4330
|
+
const path_productRequests = path + '.productRequests';
|
|
4331
|
+
if (!ArrayIsArray(obj_productRequests)) {
|
|
4332
|
+
return new TypeError('Expected "array" but received "' + typeof obj_productRequests + '" (at "' + path_productRequests + '")');
|
|
4333
|
+
}
|
|
4334
|
+
for (let i = 0; i < obj_productRequests.length; i++) {
|
|
4335
|
+
const obj_productRequests_item = obj_productRequests[i];
|
|
4336
|
+
const path_productRequests_item = path_productRequests + '[' + i + ']';
|
|
4337
|
+
let obj_productRequests_item_union0 = null;
|
|
4338
|
+
const obj_productRequests_item_union0_error = (() => {
|
|
4339
|
+
const referencepath_productRequests_itemValidationError = validate$a(obj_productRequests_item, path_productRequests_item);
|
|
4340
|
+
if (referencepath_productRequests_itemValidationError !== null) {
|
|
4341
|
+
let message = 'Object doesn\'t match ProductRequestOutputRepresentation (at "' + path_productRequests_item + '")\n';
|
|
4342
|
+
message += referencepath_productRequests_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4343
|
+
return new TypeError(message);
|
|
4344
|
+
}
|
|
4345
|
+
})();
|
|
4346
|
+
if (obj_productRequests_item_union0_error != null) {
|
|
4347
|
+
obj_productRequests_item_union0 = obj_productRequests_item_union0_error.message;
|
|
4348
|
+
}
|
|
4349
|
+
let obj_productRequests_item_union1 = null;
|
|
4350
|
+
const obj_productRequests_item_union1_error = (() => {
|
|
4351
|
+
if (obj_productRequests_item !== null) {
|
|
4352
|
+
return new TypeError('Expected "null" but received "' + typeof obj_productRequests_item + '" (at "' + path_productRequests_item + '")');
|
|
4353
|
+
}
|
|
4354
|
+
})();
|
|
4355
|
+
if (obj_productRequests_item_union1_error != null) {
|
|
4356
|
+
obj_productRequests_item_union1 = obj_productRequests_item_union1_error.message;
|
|
4357
|
+
}
|
|
4358
|
+
if (obj_productRequests_item_union0 && obj_productRequests_item_union1) {
|
|
4359
|
+
let message = 'Object doesn\'t match union (at "' + path_productRequests_item + '")';
|
|
4360
|
+
message += '\n' + obj_productRequests_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4361
|
+
message += '\n' + obj_productRequests_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4362
|
+
return new TypeError(message);
|
|
4363
|
+
}
|
|
4364
|
+
}
|
|
4365
|
+
}
|
|
3324
4366
|
if (obj.section !== undefined) {
|
|
3325
4367
|
const obj_section = obj.section;
|
|
3326
4368
|
const path_section = path + '.section';
|
|
@@ -3352,6 +4394,34 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
3352
4394
|
return new TypeError(message);
|
|
3353
4395
|
}
|
|
3354
4396
|
}
|
|
4397
|
+
if (obj.targetObject !== undefined) {
|
|
4398
|
+
const obj_targetObject = obj.targetObject;
|
|
4399
|
+
const path_targetObject = path + '.targetObject';
|
|
4400
|
+
let obj_targetObject_union0 = null;
|
|
4401
|
+
const obj_targetObject_union0_error = (() => {
|
|
4402
|
+
if (typeof obj_targetObject !== 'string') {
|
|
4403
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetObject + '" (at "' + path_targetObject + '")');
|
|
4404
|
+
}
|
|
4405
|
+
})();
|
|
4406
|
+
if (obj_targetObject_union0_error != null) {
|
|
4407
|
+
obj_targetObject_union0 = obj_targetObject_union0_error.message;
|
|
4408
|
+
}
|
|
4409
|
+
let obj_targetObject_union1 = null;
|
|
4410
|
+
const obj_targetObject_union1_error = (() => {
|
|
4411
|
+
if (obj_targetObject !== null) {
|
|
4412
|
+
return new TypeError('Expected "null" but received "' + typeof obj_targetObject + '" (at "' + path_targetObject + '")');
|
|
4413
|
+
}
|
|
4414
|
+
})();
|
|
4415
|
+
if (obj_targetObject_union1_error != null) {
|
|
4416
|
+
obj_targetObject_union1 = obj_targetObject_union1_error.message;
|
|
4417
|
+
}
|
|
4418
|
+
if (obj_targetObject_union0 && obj_targetObject_union1) {
|
|
4419
|
+
let message = 'Object doesn\'t match union (at "' + path_targetObject + '")';
|
|
4420
|
+
message += '\n' + obj_targetObject_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4421
|
+
message += '\n' + obj_targetObject_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4422
|
+
return new TypeError(message);
|
|
4423
|
+
}
|
|
4424
|
+
}
|
|
3355
4425
|
if (obj.usedFor !== undefined) {
|
|
3356
4426
|
const obj_usedFor = obj.usedFor;
|
|
3357
4427
|
const path_usedFor = path + '.usedFor';
|
|
@@ -3397,18 +4467,27 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
3397
4467
|
return input;
|
|
3398
4468
|
}
|
|
3399
4469
|
const select$9 = function CatalogItemOutputRepresentationSelect() {
|
|
3400
|
-
const { selections:
|
|
3401
|
-
const { selections:
|
|
3402
|
-
const { selections:
|
|
3403
|
-
const { selections:
|
|
3404
|
-
const { selections:
|
|
3405
|
-
const { selections:
|
|
4470
|
+
const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$k();
|
|
4471
|
+
const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$j();
|
|
4472
|
+
const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$i();
|
|
4473
|
+
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$h();
|
|
4474
|
+
const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$g();
|
|
4475
|
+
const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$f();
|
|
4476
|
+
const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$e();
|
|
4477
|
+
const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$c();
|
|
3406
4478
|
const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$a();
|
|
3407
4479
|
return {
|
|
3408
4480
|
kind: 'Fragment',
|
|
3409
4481
|
version: VERSION$3,
|
|
3410
4482
|
private: [],
|
|
3411
4483
|
selections: [
|
|
4484
|
+
{
|
|
4485
|
+
name: 'agentAction',
|
|
4486
|
+
kind: 'Object',
|
|
4487
|
+
nullable: true,
|
|
4488
|
+
selections: AgentActionOutputRepresentation__selections,
|
|
4489
|
+
required: false
|
|
4490
|
+
},
|
|
3412
4491
|
{
|
|
3413
4492
|
name: 'associatedArticles',
|
|
3414
4493
|
kind: 'Object',
|
|
@@ -3489,6 +4568,14 @@ const select$9 = function CatalogItemOutputRepresentationSelect() {
|
|
|
3489
4568
|
kind: 'Scalar',
|
|
3490
4569
|
required: false
|
|
3491
4570
|
},
|
|
4571
|
+
{
|
|
4572
|
+
name: 'productRequests',
|
|
4573
|
+
kind: 'Object',
|
|
4574
|
+
nullable: true,
|
|
4575
|
+
plural: true,
|
|
4576
|
+
selections: ProductRequestOutputRepresentation__selections,
|
|
4577
|
+
required: false
|
|
4578
|
+
},
|
|
3492
4579
|
{
|
|
3493
4580
|
name: 'section',
|
|
3494
4581
|
kind: 'Object',
|
|
@@ -3496,6 +4583,11 @@ const select$9 = function CatalogItemOutputRepresentationSelect() {
|
|
|
3496
4583
|
selections: SectionOutputRepresentation__selections,
|
|
3497
4584
|
required: false
|
|
3498
4585
|
},
|
|
4586
|
+
{
|
|
4587
|
+
name: 'targetObject',
|
|
4588
|
+
kind: 'Scalar',
|
|
4589
|
+
required: false
|
|
4590
|
+
},
|
|
3499
4591
|
{
|
|
3500
4592
|
name: 'usedFor',
|
|
3501
4593
|
kind: 'Scalar',
|
|
@@ -3505,6 +4597,22 @@ const select$9 = function CatalogItemOutputRepresentationSelect() {
|
|
|
3505
4597
|
};
|
|
3506
4598
|
};
|
|
3507
4599
|
function equals$3(existing, incoming) {
|
|
4600
|
+
const existing_agentAction = existing.agentAction;
|
|
4601
|
+
const incoming_agentAction = incoming.agentAction;
|
|
4602
|
+
// if at least one of these optionals is defined
|
|
4603
|
+
if (existing_agentAction !== undefined || incoming_agentAction !== undefined) {
|
|
4604
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4605
|
+
// not equal
|
|
4606
|
+
if (existing_agentAction === undefined || incoming_agentAction === undefined) {
|
|
4607
|
+
return false;
|
|
4608
|
+
}
|
|
4609
|
+
if (!(existing_agentAction === incoming_agentAction
|
|
4610
|
+
|| (existing_agentAction != null &&
|
|
4611
|
+
incoming_agentAction != null &&
|
|
4612
|
+
equals$e(existing_agentAction, incoming_agentAction)))) {
|
|
4613
|
+
return false;
|
|
4614
|
+
}
|
|
4615
|
+
}
|
|
3508
4616
|
const existing_associatedArticles = existing.associatedArticles;
|
|
3509
4617
|
const incoming_associatedArticles = incoming.associatedArticles;
|
|
3510
4618
|
// if at least one of these optionals is defined
|
|
@@ -3518,7 +4626,7 @@ function equals$3(existing, incoming) {
|
|
|
3518
4626
|
if (!(existing_associatedArticles_item === incoming_associatedArticles_item
|
|
3519
4627
|
|| (existing_associatedArticles_item != null &&
|
|
3520
4628
|
incoming_associatedArticles_item != null &&
|
|
3521
|
-
equals$
|
|
4629
|
+
equals$d(existing_associatedArticles_item, incoming_associatedArticles_item)))) {
|
|
3522
4630
|
return false;
|
|
3523
4631
|
}
|
|
3524
4632
|
});
|
|
@@ -3583,7 +4691,7 @@ function equals$3(existing, incoming) {
|
|
|
3583
4691
|
if (!(existing_eligibilityRules_item === incoming_eligibilityRules_item
|
|
3584
4692
|
|| (existing_eligibilityRules_item != null &&
|
|
3585
4693
|
incoming_eligibilityRules_item != null &&
|
|
3586
|
-
equals$
|
|
4694
|
+
equals$c(existing_eligibilityRules_item, incoming_eligibilityRules_item)))) {
|
|
3587
4695
|
return false;
|
|
3588
4696
|
}
|
|
3589
4697
|
});
|
|
@@ -3603,7 +4711,7 @@ function equals$3(existing, incoming) {
|
|
|
3603
4711
|
if (!(existing_fulfillmentFlow === incoming_fulfillmentFlow
|
|
3604
4712
|
|| (existing_fulfillmentFlow != null &&
|
|
3605
4713
|
incoming_fulfillmentFlow != null &&
|
|
3606
|
-
equals$
|
|
4714
|
+
equals$b(existing_fulfillmentFlow, incoming_fulfillmentFlow)))) {
|
|
3607
4715
|
return false;
|
|
3608
4716
|
}
|
|
3609
4717
|
}
|
|
@@ -3619,7 +4727,7 @@ function equals$3(existing, incoming) {
|
|
|
3619
4727
|
if (!(existing_intakeForm === incoming_intakeForm
|
|
3620
4728
|
|| (existing_intakeForm != null &&
|
|
3621
4729
|
incoming_intakeForm != null &&
|
|
3622
|
-
equals$
|
|
4730
|
+
equals$a(existing_intakeForm, incoming_intakeForm)))) {
|
|
3623
4731
|
return false;
|
|
3624
4732
|
}
|
|
3625
4733
|
}
|
|
@@ -3636,7 +4744,7 @@ function equals$3(existing, incoming) {
|
|
|
3636
4744
|
if (!(existing_integrations_item === incoming_integrations_item
|
|
3637
4745
|
|| (existing_integrations_item != null &&
|
|
3638
4746
|
incoming_integrations_item != null &&
|
|
3639
|
-
equals$
|
|
4747
|
+
equals$9(existing_integrations_item, incoming_integrations_item)))) {
|
|
3640
4748
|
return false;
|
|
3641
4749
|
}
|
|
3642
4750
|
});
|
|
@@ -3683,7 +4791,7 @@ function equals$3(existing, incoming) {
|
|
|
3683
4791
|
if (!(existing_preProcessors_item === incoming_preProcessors_item
|
|
3684
4792
|
|| (existing_preProcessors_item != null &&
|
|
3685
4793
|
incoming_preProcessors_item != null &&
|
|
3686
|
-
equals$
|
|
4794
|
+
equals$8(existing_preProcessors_item, incoming_preProcessors_item)))) {
|
|
3687
4795
|
return false;
|
|
3688
4796
|
}
|
|
3689
4797
|
});
|
|
@@ -3704,6 +4812,27 @@ function equals$3(existing, incoming) {
|
|
|
3704
4812
|
return false;
|
|
3705
4813
|
}
|
|
3706
4814
|
}
|
|
4815
|
+
const existing_productRequests = existing.productRequests;
|
|
4816
|
+
const incoming_productRequests = incoming.productRequests;
|
|
4817
|
+
// if at least one of these optionals is defined
|
|
4818
|
+
if (existing_productRequests !== undefined || incoming_productRequests !== undefined) {
|
|
4819
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4820
|
+
// not equal
|
|
4821
|
+
if (existing_productRequests === undefined || incoming_productRequests === undefined) {
|
|
4822
|
+
return false;
|
|
4823
|
+
}
|
|
4824
|
+
const equals_productRequests_items = equalsArray(existing_productRequests, incoming_productRequests, (existing_productRequests_item, incoming_productRequests_item) => {
|
|
4825
|
+
if (!(existing_productRequests_item === incoming_productRequests_item
|
|
4826
|
+
|| (existing_productRequests_item != null &&
|
|
4827
|
+
incoming_productRequests_item != null &&
|
|
4828
|
+
equals$6(existing_productRequests_item, incoming_productRequests_item)))) {
|
|
4829
|
+
return false;
|
|
4830
|
+
}
|
|
4831
|
+
});
|
|
4832
|
+
if (equals_productRequests_items === false) {
|
|
4833
|
+
return false;
|
|
4834
|
+
}
|
|
4835
|
+
}
|
|
3707
4836
|
const existing_section = existing.section;
|
|
3708
4837
|
const incoming_section = incoming.section;
|
|
3709
4838
|
// if at least one of these optionals is defined
|
|
@@ -3720,6 +4849,19 @@ function equals$3(existing, incoming) {
|
|
|
3720
4849
|
return false;
|
|
3721
4850
|
}
|
|
3722
4851
|
}
|
|
4852
|
+
const existing_targetObject = existing.targetObject;
|
|
4853
|
+
const incoming_targetObject = incoming.targetObject;
|
|
4854
|
+
// if at least one of these optionals is defined
|
|
4855
|
+
if (existing_targetObject !== undefined || incoming_targetObject !== undefined) {
|
|
4856
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4857
|
+
// not equal
|
|
4858
|
+
if (existing_targetObject === undefined || incoming_targetObject === undefined) {
|
|
4859
|
+
return false;
|
|
4860
|
+
}
|
|
4861
|
+
if (!(existing_targetObject === incoming_targetObject)) {
|
|
4862
|
+
return false;
|
|
4863
|
+
}
|
|
4864
|
+
}
|
|
3723
4865
|
const existing_usedFor = existing.usedFor;
|
|
3724
4866
|
const incoming_usedFor = incoming.usedFor;
|
|
3725
4867
|
// if at least one of these optionals is defined
|
|
@@ -3796,6 +4938,7 @@ function createResourceRequest$5(config) {
|
|
|
3796
4938
|
|
|
3797
4939
|
const adapterName$5 = 'createCatalogItem';
|
|
3798
4940
|
const createCatalogItem_ConfigPropertyMetadata = [
|
|
4941
|
+
generateParamConfigMetadata('agentAction', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3799
4942
|
generateParamConfigMetadata('associatedArticles', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3800
4943
|
generateParamConfigMetadata('attributes', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3801
4944
|
generateParamConfigMetadata('contextDefinitionDevNameOrId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -3808,18 +4951,28 @@ const createCatalogItem_ConfigPropertyMetadata = [
|
|
|
3808
4951
|
generateParamConfigMetadata('isActive', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3809
4952
|
generateParamConfigMetadata('name', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3810
4953
|
generateParamConfigMetadata('preProcessors', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4954
|
+
generateParamConfigMetadata('productRequests', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4955
|
+
generateParamConfigMetadata('targetObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3811
4956
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3812
4957
|
];
|
|
3813
4958
|
const createCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createCatalogItem_ConfigPropertyMetadata);
|
|
3814
4959
|
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(createCatalogItem_ConfigPropertyMetadata);
|
|
3815
4960
|
function typeCheckConfig$5(untrustedConfig) {
|
|
3816
4961
|
const config = {};
|
|
4962
|
+
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
4963
|
+
const referenceAgentActionInputRepresentationValidationError = validate$r(untrustedConfig_agentAction);
|
|
4964
|
+
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
4965
|
+
config.agentAction = untrustedConfig_agentAction;
|
|
4966
|
+
}
|
|
4967
|
+
if (untrustedConfig_agentAction === null) {
|
|
4968
|
+
config.agentAction = untrustedConfig_agentAction;
|
|
4969
|
+
}
|
|
3817
4970
|
const untrustedConfig_associatedArticles = untrustedConfig.associatedArticles;
|
|
3818
4971
|
if (ArrayIsArray$1(untrustedConfig_associatedArticles)) {
|
|
3819
4972
|
const untrustedConfig_associatedArticles_array = [];
|
|
3820
4973
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
3821
4974
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
3822
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
4975
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$q(untrustedConfig_associatedArticles_item);
|
|
3823
4976
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
3824
4977
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
3825
4978
|
}
|
|
@@ -3834,7 +4987,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
3834
4987
|
const untrustedConfig_attributes_array = [];
|
|
3835
4988
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
3836
4989
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
3837
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
4990
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$p(untrustedConfig_attributes_item);
|
|
3838
4991
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
3839
4992
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
3840
4993
|
}
|
|
@@ -3870,7 +5023,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
3870
5023
|
const untrustedConfig_eligibilityRules_array = [];
|
|
3871
5024
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
3872
5025
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
3873
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
5026
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$o(untrustedConfig_eligibilityRules_item);
|
|
3874
5027
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
3875
5028
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
3876
5029
|
}
|
|
@@ -3881,7 +5034,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
3881
5034
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
3882
5035
|
}
|
|
3883
5036
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
3884
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
5037
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$n(untrustedConfig_fulfillmentFlow);
|
|
3885
5038
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
3886
5039
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
3887
5040
|
}
|
|
@@ -3889,7 +5042,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
3889
5042
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
3890
5043
|
}
|
|
3891
5044
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
3892
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
5045
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$m(untrustedConfig_intakeForm);
|
|
3893
5046
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
3894
5047
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
3895
5048
|
}
|
|
@@ -3901,7 +5054,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
3901
5054
|
const untrustedConfig_integrations_array = [];
|
|
3902
5055
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
3903
5056
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
3904
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
5057
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$l(untrustedConfig_integrations_item);
|
|
3905
5058
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
3906
5059
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
3907
5060
|
}
|
|
@@ -3930,7 +5083,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
3930
5083
|
const untrustedConfig_preProcessors_array = [];
|
|
3931
5084
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
3932
5085
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
3933
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
5086
|
+
const referencePreprocessorInputRepresentationValidationError = validate$k(untrustedConfig_preProcessors_item);
|
|
3934
5087
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
3935
5088
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
3936
5089
|
}
|
|
@@ -3940,6 +5093,28 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
3940
5093
|
}
|
|
3941
5094
|
config.preProcessors = untrustedConfig_preProcessors_array;
|
|
3942
5095
|
}
|
|
5096
|
+
const untrustedConfig_productRequests = untrustedConfig.productRequests;
|
|
5097
|
+
if (ArrayIsArray$1(untrustedConfig_productRequests)) {
|
|
5098
|
+
const untrustedConfig_productRequests_array = [];
|
|
5099
|
+
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
5100
|
+
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
5101
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$j(untrustedConfig_productRequests_item);
|
|
5102
|
+
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
5103
|
+
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
5104
|
+
}
|
|
5105
|
+
if (untrustedConfig_productRequests_item === null) {
|
|
5106
|
+
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
5107
|
+
}
|
|
5108
|
+
}
|
|
5109
|
+
config.productRequests = untrustedConfig_productRequests_array;
|
|
5110
|
+
}
|
|
5111
|
+
const untrustedConfig_targetObject = untrustedConfig.targetObject;
|
|
5112
|
+
if (typeof untrustedConfig_targetObject === 'string') {
|
|
5113
|
+
config.targetObject = untrustedConfig_targetObject;
|
|
5114
|
+
}
|
|
5115
|
+
if (untrustedConfig_targetObject === null) {
|
|
5116
|
+
config.targetObject = untrustedConfig_targetObject;
|
|
5117
|
+
}
|
|
3943
5118
|
const untrustedConfig_usedFor = untrustedConfig.usedFor;
|
|
3944
5119
|
if (typeof untrustedConfig_usedFor === 'string') {
|
|
3945
5120
|
config.usedFor = untrustedConfig_usedFor;
|
|
@@ -4171,6 +5346,7 @@ function createResourceRequest$3(config) {
|
|
|
4171
5346
|
const adapterName$3 = 'updateCatalogItem';
|
|
4172
5347
|
const updateCatalogItem_ConfigPropertyMetadata = [
|
|
4173
5348
|
generateParamConfigMetadata('catalogItemId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5349
|
+
generateParamConfigMetadata('agentAction', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4174
5350
|
generateParamConfigMetadata('productId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4175
5351
|
generateParamConfigMetadata('associatedArticles', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4176
5352
|
generateParamConfigMetadata('attributes', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
@@ -4184,6 +5360,8 @@ const updateCatalogItem_ConfigPropertyMetadata = [
|
|
|
4184
5360
|
generateParamConfigMetadata('isActive', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4185
5361
|
generateParamConfigMetadata('name', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4186
5362
|
generateParamConfigMetadata('preProcessors', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5363
|
+
generateParamConfigMetadata('productRequests', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5364
|
+
generateParamConfigMetadata('targetObject', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4187
5365
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4188
5366
|
];
|
|
4189
5367
|
const updateCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, updateCatalogItem_ConfigPropertyMetadata);
|
|
@@ -4191,6 +5369,14 @@ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$6(updateCatalo
|
|
|
4191
5369
|
function typeCheckConfig$3(untrustedConfig) {
|
|
4192
5370
|
const config = {};
|
|
4193
5371
|
typeCheckConfig$6(untrustedConfig, config, updateCatalogItem_ConfigPropertyMetadata);
|
|
5372
|
+
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
5373
|
+
const referenceAgentActionInputRepresentationValidationError = validate$r(untrustedConfig_agentAction);
|
|
5374
|
+
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
5375
|
+
config.agentAction = untrustedConfig_agentAction;
|
|
5376
|
+
}
|
|
5377
|
+
if (untrustedConfig_agentAction === null) {
|
|
5378
|
+
config.agentAction = untrustedConfig_agentAction;
|
|
5379
|
+
}
|
|
4194
5380
|
const untrustedConfig_productId = untrustedConfig.productId;
|
|
4195
5381
|
if (typeof untrustedConfig_productId === 'string') {
|
|
4196
5382
|
config.productId = untrustedConfig_productId;
|
|
@@ -4203,7 +5389,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
4203
5389
|
const untrustedConfig_associatedArticles_array = [];
|
|
4204
5390
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
4205
5391
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
4206
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
5392
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$q(untrustedConfig_associatedArticles_item);
|
|
4207
5393
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
4208
5394
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
4209
5395
|
}
|
|
@@ -4218,7 +5404,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
4218
5404
|
const untrustedConfig_attributes_array = [];
|
|
4219
5405
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
4220
5406
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
4221
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
5407
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$p(untrustedConfig_attributes_item);
|
|
4222
5408
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
4223
5409
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
4224
5410
|
}
|
|
@@ -4254,7 +5440,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
4254
5440
|
const untrustedConfig_eligibilityRules_array = [];
|
|
4255
5441
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
4256
5442
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
4257
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
5443
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$o(untrustedConfig_eligibilityRules_item);
|
|
4258
5444
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
4259
5445
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
4260
5446
|
}
|
|
@@ -4265,7 +5451,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
4265
5451
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
4266
5452
|
}
|
|
4267
5453
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
4268
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
5454
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$n(untrustedConfig_fulfillmentFlow);
|
|
4269
5455
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
4270
5456
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
4271
5457
|
}
|
|
@@ -4273,7 +5459,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
4273
5459
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
4274
5460
|
}
|
|
4275
5461
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
4276
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
5462
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$m(untrustedConfig_intakeForm);
|
|
4277
5463
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
4278
5464
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
4279
5465
|
}
|
|
@@ -4285,7 +5471,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
4285
5471
|
const untrustedConfig_integrations_array = [];
|
|
4286
5472
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
4287
5473
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
4288
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
5474
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$l(untrustedConfig_integrations_item);
|
|
4289
5475
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
4290
5476
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
4291
5477
|
}
|
|
@@ -4314,7 +5500,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
4314
5500
|
const untrustedConfig_preProcessors_array = [];
|
|
4315
5501
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
4316
5502
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
4317
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
5503
|
+
const referencePreprocessorInputRepresentationValidationError = validate$k(untrustedConfig_preProcessors_item);
|
|
4318
5504
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
4319
5505
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
4320
5506
|
}
|
|
@@ -4324,6 +5510,28 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
4324
5510
|
}
|
|
4325
5511
|
config.preProcessors = untrustedConfig_preProcessors_array;
|
|
4326
5512
|
}
|
|
5513
|
+
const untrustedConfig_productRequests = untrustedConfig.productRequests;
|
|
5514
|
+
if (ArrayIsArray$1(untrustedConfig_productRequests)) {
|
|
5515
|
+
const untrustedConfig_productRequests_array = [];
|
|
5516
|
+
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
5517
|
+
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
5518
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$j(untrustedConfig_productRequests_item);
|
|
5519
|
+
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
5520
|
+
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
5521
|
+
}
|
|
5522
|
+
if (untrustedConfig_productRequests_item === null) {
|
|
5523
|
+
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
5524
|
+
}
|
|
5525
|
+
}
|
|
5526
|
+
config.productRequests = untrustedConfig_productRequests_array;
|
|
5527
|
+
}
|
|
5528
|
+
const untrustedConfig_targetObject = untrustedConfig.targetObject;
|
|
5529
|
+
if (typeof untrustedConfig_targetObject === 'string') {
|
|
5530
|
+
config.targetObject = untrustedConfig_targetObject;
|
|
5531
|
+
}
|
|
5532
|
+
if (untrustedConfig_targetObject === null) {
|
|
5533
|
+
config.targetObject = untrustedConfig_targetObject;
|
|
5534
|
+
}
|
|
4327
5535
|
const untrustedConfig_usedFor = untrustedConfig.usedFor;
|
|
4328
5536
|
if (typeof untrustedConfig_usedFor === 'string') {
|
|
4329
5537
|
config.usedFor = untrustedConfig_usedFor;
|