@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
package/sfdc/index.js
CHANGED
|
@@ -103,7 +103,128 @@ function createLink(ref) {
|
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
function validate$
|
|
106
|
+
function validate$r(obj, path = 'AgentActionInputRepresentation') {
|
|
107
|
+
const v_error = (() => {
|
|
108
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
109
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
110
|
+
}
|
|
111
|
+
if (obj.agentActionId !== undefined) {
|
|
112
|
+
const obj_agentActionId = obj.agentActionId;
|
|
113
|
+
const path_agentActionId = path + '.agentActionId';
|
|
114
|
+
let obj_agentActionId_union0 = null;
|
|
115
|
+
const obj_agentActionId_union0_error = (() => {
|
|
116
|
+
if (typeof obj_agentActionId !== 'string') {
|
|
117
|
+
return new TypeError('Expected "string" but received "' + typeof obj_agentActionId + '" (at "' + path_agentActionId + '")');
|
|
118
|
+
}
|
|
119
|
+
})();
|
|
120
|
+
if (obj_agentActionId_union0_error != null) {
|
|
121
|
+
obj_agentActionId_union0 = obj_agentActionId_union0_error.message;
|
|
122
|
+
}
|
|
123
|
+
let obj_agentActionId_union1 = null;
|
|
124
|
+
const obj_agentActionId_union1_error = (() => {
|
|
125
|
+
if (obj_agentActionId !== null) {
|
|
126
|
+
return new TypeError('Expected "null" but received "' + typeof obj_agentActionId + '" (at "' + path_agentActionId + '")');
|
|
127
|
+
}
|
|
128
|
+
})();
|
|
129
|
+
if (obj_agentActionId_union1_error != null) {
|
|
130
|
+
obj_agentActionId_union1 = obj_agentActionId_union1_error.message;
|
|
131
|
+
}
|
|
132
|
+
if (obj_agentActionId_union0 && obj_agentActionId_union1) {
|
|
133
|
+
let message = 'Object doesn\'t match union (at "' + path_agentActionId + '")';
|
|
134
|
+
message += '\n' + obj_agentActionId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
135
|
+
message += '\n' + obj_agentActionId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
136
|
+
return new TypeError(message);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
if (obj.id !== undefined) {
|
|
140
|
+
const obj_id = obj.id;
|
|
141
|
+
const path_id = path + '.id';
|
|
142
|
+
let obj_id_union0 = null;
|
|
143
|
+
const obj_id_union0_error = (() => {
|
|
144
|
+
if (typeof obj_id !== 'string') {
|
|
145
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
146
|
+
}
|
|
147
|
+
})();
|
|
148
|
+
if (obj_id_union0_error != null) {
|
|
149
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
150
|
+
}
|
|
151
|
+
let obj_id_union1 = null;
|
|
152
|
+
const obj_id_union1_error = (() => {
|
|
153
|
+
if (obj_id !== null) {
|
|
154
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
155
|
+
}
|
|
156
|
+
})();
|
|
157
|
+
if (obj_id_union1_error != null) {
|
|
158
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
159
|
+
}
|
|
160
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
161
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
162
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
163
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
164
|
+
return new TypeError(message);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
if (obj.operationType !== undefined) {
|
|
168
|
+
const obj_operationType = obj.operationType;
|
|
169
|
+
const path_operationType = path + '.operationType';
|
|
170
|
+
let obj_operationType_union0 = null;
|
|
171
|
+
const obj_operationType_union0_error = (() => {
|
|
172
|
+
if (typeof obj_operationType !== 'string') {
|
|
173
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
|
|
174
|
+
}
|
|
175
|
+
})();
|
|
176
|
+
if (obj_operationType_union0_error != null) {
|
|
177
|
+
obj_operationType_union0 = obj_operationType_union0_error.message;
|
|
178
|
+
}
|
|
179
|
+
let obj_operationType_union1 = null;
|
|
180
|
+
const obj_operationType_union1_error = (() => {
|
|
181
|
+
if (obj_operationType !== null) {
|
|
182
|
+
return new TypeError('Expected "null" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
|
|
183
|
+
}
|
|
184
|
+
})();
|
|
185
|
+
if (obj_operationType_union1_error != null) {
|
|
186
|
+
obj_operationType_union1 = obj_operationType_union1_error.message;
|
|
187
|
+
}
|
|
188
|
+
if (obj_operationType_union0 && obj_operationType_union1) {
|
|
189
|
+
let message = 'Object doesn\'t match union (at "' + path_operationType + '")';
|
|
190
|
+
message += '\n' + obj_operationType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
191
|
+
message += '\n' + obj_operationType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
192
|
+
return new TypeError(message);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
if (obj.status !== undefined) {
|
|
196
|
+
const obj_status = obj.status;
|
|
197
|
+
const path_status = path + '.status';
|
|
198
|
+
let obj_status_union0 = null;
|
|
199
|
+
const obj_status_union0_error = (() => {
|
|
200
|
+
if (typeof obj_status !== 'string') {
|
|
201
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
202
|
+
}
|
|
203
|
+
})();
|
|
204
|
+
if (obj_status_union0_error != null) {
|
|
205
|
+
obj_status_union0 = obj_status_union0_error.message;
|
|
206
|
+
}
|
|
207
|
+
let obj_status_union1 = null;
|
|
208
|
+
const obj_status_union1_error = (() => {
|
|
209
|
+
if (obj_status !== null) {
|
|
210
|
+
return new TypeError('Expected "null" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
211
|
+
}
|
|
212
|
+
})();
|
|
213
|
+
if (obj_status_union1_error != null) {
|
|
214
|
+
obj_status_union1 = obj_status_union1_error.message;
|
|
215
|
+
}
|
|
216
|
+
if (obj_status_union0 && obj_status_union1) {
|
|
217
|
+
let message = 'Object doesn\'t match union (at "' + path_status + '")';
|
|
218
|
+
message += '\n' + obj_status_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
219
|
+
message += '\n' + obj_status_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
220
|
+
return new TypeError(message);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
})();
|
|
224
|
+
return v_error === undefined ? null : v_error;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
function validate$q(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
107
228
|
const v_error = (() => {
|
|
108
229
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
109
230
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -196,7 +317,7 @@ function validate$m(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
|
196
317
|
return v_error === undefined ? null : v_error;
|
|
197
318
|
}
|
|
198
319
|
|
|
199
|
-
function validate$
|
|
320
|
+
function validate$p(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
200
321
|
const v_error = (() => {
|
|
201
322
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
202
323
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -569,7 +690,7 @@ function validate$l(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
569
690
|
return v_error === undefined ? null : v_error;
|
|
570
691
|
}
|
|
571
692
|
|
|
572
|
-
function validate$
|
|
693
|
+
function validate$o(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
573
694
|
const v_error = (() => {
|
|
574
695
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
575
696
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -634,7 +755,7 @@ function validate$k(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
|
634
755
|
return v_error === undefined ? null : v_error;
|
|
635
756
|
}
|
|
636
757
|
|
|
637
|
-
function validate$
|
|
758
|
+
function validate$n(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
638
759
|
const v_error = (() => {
|
|
639
760
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
640
761
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -755,7 +876,7 @@ function validate$j(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
|
755
876
|
return v_error === undefined ? null : v_error;
|
|
756
877
|
}
|
|
757
878
|
|
|
758
|
-
function validate$
|
|
879
|
+
function validate$m(obj, path = 'IntakeFormInputRepresentation') {
|
|
759
880
|
const v_error = (() => {
|
|
760
881
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
761
882
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -876,7 +997,7 @@ function validate$i(obj, path = 'IntakeFormInputRepresentation') {
|
|
|
876
997
|
return v_error === undefined ? null : v_error;
|
|
877
998
|
}
|
|
878
999
|
|
|
879
|
-
function validate$
|
|
1000
|
+
function validate$l(obj, path = 'IntegrationDefInputRepresentation') {
|
|
880
1001
|
const v_error = (() => {
|
|
881
1002
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
882
1003
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -969,7 +1090,7 @@ function validate$h(obj, path = 'IntegrationDefInputRepresentation') {
|
|
|
969
1090
|
return v_error === undefined ? null : v_error;
|
|
970
1091
|
}
|
|
971
1092
|
|
|
972
|
-
function validate$
|
|
1093
|
+
function validate$k(obj, path = 'PreprocessorInputRepresentation') {
|
|
973
1094
|
const v_error = (() => {
|
|
974
1095
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
975
1096
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1062,12 +1183,231 @@ function validate$g(obj, path = 'PreprocessorInputRepresentation') {
|
|
|
1062
1183
|
return v_error === undefined ? null : v_error;
|
|
1063
1184
|
}
|
|
1064
1185
|
|
|
1065
|
-
|
|
1066
|
-
|
|
1186
|
+
function validate$j(obj, path = 'ProductRequestCreateInputRepresentation') {
|
|
1187
|
+
const v_error = (() => {
|
|
1188
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1189
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1190
|
+
}
|
|
1191
|
+
if (obj.operationType !== undefined) {
|
|
1192
|
+
const obj_operationType = obj.operationType;
|
|
1193
|
+
const path_operationType = path + '.operationType';
|
|
1194
|
+
let obj_operationType_union0 = null;
|
|
1195
|
+
const obj_operationType_union0_error = (() => {
|
|
1196
|
+
if (typeof obj_operationType !== 'string') {
|
|
1197
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
|
|
1198
|
+
}
|
|
1199
|
+
})();
|
|
1200
|
+
if (obj_operationType_union0_error != null) {
|
|
1201
|
+
obj_operationType_union0 = obj_operationType_union0_error.message;
|
|
1202
|
+
}
|
|
1203
|
+
let obj_operationType_union1 = null;
|
|
1204
|
+
const obj_operationType_union1_error = (() => {
|
|
1205
|
+
if (obj_operationType !== null) {
|
|
1206
|
+
return new TypeError('Expected "null" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
|
|
1207
|
+
}
|
|
1208
|
+
})();
|
|
1209
|
+
if (obj_operationType_union1_error != null) {
|
|
1210
|
+
obj_operationType_union1 = obj_operationType_union1_error.message;
|
|
1211
|
+
}
|
|
1212
|
+
if (obj_operationType_union0 && obj_operationType_union1) {
|
|
1213
|
+
let message = 'Object doesn\'t match union (at "' + path_operationType + '")';
|
|
1214
|
+
message += '\n' + obj_operationType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1215
|
+
message += '\n' + obj_operationType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1216
|
+
return new TypeError(message);
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
if (obj.productDetails !== undefined) {
|
|
1220
|
+
const obj_productDetails = obj.productDetails;
|
|
1221
|
+
const path_productDetails = path + '.productDetails';
|
|
1222
|
+
if (!ArrayIsArray(obj_productDetails)) {
|
|
1223
|
+
return new TypeError('Expected "array" but received "' + typeof obj_productDetails + '" (at "' + path_productDetails + '")');
|
|
1224
|
+
}
|
|
1225
|
+
for (let i = 0; i < obj_productDetails.length; i++) {
|
|
1226
|
+
const obj_productDetails_item = obj_productDetails[i];
|
|
1227
|
+
const path_productDetails_item = path_productDetails + '[' + i + ']';
|
|
1228
|
+
if (obj_productDetails_item === undefined) {
|
|
1229
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_productDetails_item + '" (at "' + path_productDetails_item + '")');
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
if (obj.sectionDescription !== undefined) {
|
|
1234
|
+
const obj_sectionDescription = obj.sectionDescription;
|
|
1235
|
+
const path_sectionDescription = path + '.sectionDescription';
|
|
1236
|
+
let obj_sectionDescription_union0 = null;
|
|
1237
|
+
const obj_sectionDescription_union0_error = (() => {
|
|
1238
|
+
if (typeof obj_sectionDescription !== 'string') {
|
|
1239
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sectionDescription + '" (at "' + path_sectionDescription + '")');
|
|
1240
|
+
}
|
|
1241
|
+
})();
|
|
1242
|
+
if (obj_sectionDescription_union0_error != null) {
|
|
1243
|
+
obj_sectionDescription_union0 = obj_sectionDescription_union0_error.message;
|
|
1244
|
+
}
|
|
1245
|
+
let obj_sectionDescription_union1 = null;
|
|
1246
|
+
const obj_sectionDescription_union1_error = (() => {
|
|
1247
|
+
if (obj_sectionDescription !== null) {
|
|
1248
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionDescription + '" (at "' + path_sectionDescription + '")');
|
|
1249
|
+
}
|
|
1250
|
+
})();
|
|
1251
|
+
if (obj_sectionDescription_union1_error != null) {
|
|
1252
|
+
obj_sectionDescription_union1 = obj_sectionDescription_union1_error.message;
|
|
1253
|
+
}
|
|
1254
|
+
if (obj_sectionDescription_union0 && obj_sectionDescription_union1) {
|
|
1255
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionDescription + '")';
|
|
1256
|
+
message += '\n' + obj_sectionDescription_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1257
|
+
message += '\n' + obj_sectionDescription_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1258
|
+
return new TypeError(message);
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
if (obj.sectionMaxCount !== undefined) {
|
|
1262
|
+
const obj_sectionMaxCount = obj.sectionMaxCount;
|
|
1263
|
+
const path_sectionMaxCount = path + '.sectionMaxCount';
|
|
1264
|
+
let obj_sectionMaxCount_union0 = null;
|
|
1265
|
+
const obj_sectionMaxCount_union0_error = (() => {
|
|
1266
|
+
if (typeof obj_sectionMaxCount !== 'number' || (typeof obj_sectionMaxCount === 'number' && Math.floor(obj_sectionMaxCount) !== obj_sectionMaxCount)) {
|
|
1267
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sectionMaxCount + '" (at "' + path_sectionMaxCount + '")');
|
|
1268
|
+
}
|
|
1269
|
+
})();
|
|
1270
|
+
if (obj_sectionMaxCount_union0_error != null) {
|
|
1271
|
+
obj_sectionMaxCount_union0 = obj_sectionMaxCount_union0_error.message;
|
|
1272
|
+
}
|
|
1273
|
+
let obj_sectionMaxCount_union1 = null;
|
|
1274
|
+
const obj_sectionMaxCount_union1_error = (() => {
|
|
1275
|
+
if (obj_sectionMaxCount !== null) {
|
|
1276
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionMaxCount + '" (at "' + path_sectionMaxCount + '")');
|
|
1277
|
+
}
|
|
1278
|
+
})();
|
|
1279
|
+
if (obj_sectionMaxCount_union1_error != null) {
|
|
1280
|
+
obj_sectionMaxCount_union1 = obj_sectionMaxCount_union1_error.message;
|
|
1281
|
+
}
|
|
1282
|
+
if (obj_sectionMaxCount_union0 && obj_sectionMaxCount_union1) {
|
|
1283
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionMaxCount + '")';
|
|
1284
|
+
message += '\n' + obj_sectionMaxCount_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1285
|
+
message += '\n' + obj_sectionMaxCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1286
|
+
return new TypeError(message);
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
if (obj.sectionMinCount !== undefined) {
|
|
1290
|
+
const obj_sectionMinCount = obj.sectionMinCount;
|
|
1291
|
+
const path_sectionMinCount = path + '.sectionMinCount';
|
|
1292
|
+
let obj_sectionMinCount_union0 = null;
|
|
1293
|
+
const obj_sectionMinCount_union0_error = (() => {
|
|
1294
|
+
if (typeof obj_sectionMinCount !== 'number' || (typeof obj_sectionMinCount === 'number' && Math.floor(obj_sectionMinCount) !== obj_sectionMinCount)) {
|
|
1295
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sectionMinCount + '" (at "' + path_sectionMinCount + '")');
|
|
1296
|
+
}
|
|
1297
|
+
})();
|
|
1298
|
+
if (obj_sectionMinCount_union0_error != null) {
|
|
1299
|
+
obj_sectionMinCount_union0 = obj_sectionMinCount_union0_error.message;
|
|
1300
|
+
}
|
|
1301
|
+
let obj_sectionMinCount_union1 = null;
|
|
1302
|
+
const obj_sectionMinCount_union1_error = (() => {
|
|
1303
|
+
if (obj_sectionMinCount !== null) {
|
|
1304
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionMinCount + '" (at "' + path_sectionMinCount + '")');
|
|
1305
|
+
}
|
|
1306
|
+
})();
|
|
1307
|
+
if (obj_sectionMinCount_union1_error != null) {
|
|
1308
|
+
obj_sectionMinCount_union1 = obj_sectionMinCount_union1_error.message;
|
|
1309
|
+
}
|
|
1310
|
+
if (obj_sectionMinCount_union0 && obj_sectionMinCount_union1) {
|
|
1311
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionMinCount + '")';
|
|
1312
|
+
message += '\n' + obj_sectionMinCount_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1313
|
+
message += '\n' + obj_sectionMinCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1314
|
+
return new TypeError(message);
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
if (obj.sectionName !== undefined) {
|
|
1318
|
+
const obj_sectionName = obj.sectionName;
|
|
1319
|
+
const path_sectionName = path + '.sectionName';
|
|
1320
|
+
let obj_sectionName_union0 = null;
|
|
1321
|
+
const obj_sectionName_union0_error = (() => {
|
|
1322
|
+
if (typeof obj_sectionName !== 'string') {
|
|
1323
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sectionName + '" (at "' + path_sectionName + '")');
|
|
1324
|
+
}
|
|
1325
|
+
})();
|
|
1326
|
+
if (obj_sectionName_union0_error != null) {
|
|
1327
|
+
obj_sectionName_union0 = obj_sectionName_union0_error.message;
|
|
1328
|
+
}
|
|
1329
|
+
let obj_sectionName_union1 = null;
|
|
1330
|
+
const obj_sectionName_union1_error = (() => {
|
|
1331
|
+
if (obj_sectionName !== null) {
|
|
1332
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionName + '" (at "' + path_sectionName + '")');
|
|
1333
|
+
}
|
|
1334
|
+
})();
|
|
1335
|
+
if (obj_sectionName_union1_error != null) {
|
|
1336
|
+
obj_sectionName_union1 = obj_sectionName_union1_error.message;
|
|
1337
|
+
}
|
|
1338
|
+
if (obj_sectionName_union0 && obj_sectionName_union1) {
|
|
1339
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionName + '")';
|
|
1340
|
+
message += '\n' + obj_sectionName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1341
|
+
message += '\n' + obj_sectionName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1342
|
+
return new TypeError(message);
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
if (obj.sequence !== undefined) {
|
|
1346
|
+
const obj_sequence = obj.sequence;
|
|
1347
|
+
const path_sequence = path + '.sequence';
|
|
1348
|
+
let obj_sequence_union0 = null;
|
|
1349
|
+
const obj_sequence_union0_error = (() => {
|
|
1350
|
+
if (typeof obj_sequence !== 'number' || (typeof obj_sequence === 'number' && Math.floor(obj_sequence) !== obj_sequence)) {
|
|
1351
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sequence + '" (at "' + path_sequence + '")');
|
|
1352
|
+
}
|
|
1353
|
+
})();
|
|
1354
|
+
if (obj_sequence_union0_error != null) {
|
|
1355
|
+
obj_sequence_union0 = obj_sequence_union0_error.message;
|
|
1356
|
+
}
|
|
1357
|
+
let obj_sequence_union1 = null;
|
|
1358
|
+
const obj_sequence_union1_error = (() => {
|
|
1359
|
+
if (obj_sequence !== null) {
|
|
1360
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sequence + '" (at "' + path_sequence + '")');
|
|
1361
|
+
}
|
|
1362
|
+
})();
|
|
1363
|
+
if (obj_sequence_union1_error != null) {
|
|
1364
|
+
obj_sequence_union1 = obj_sequence_union1_error.message;
|
|
1365
|
+
}
|
|
1366
|
+
if (obj_sequence_union0 && obj_sequence_union1) {
|
|
1367
|
+
let message = 'Object doesn\'t match union (at "' + path_sequence + '")';
|
|
1368
|
+
message += '\n' + obj_sequence_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1369
|
+
message += '\n' + obj_sequence_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1370
|
+
return new TypeError(message);
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
})();
|
|
1374
|
+
return v_error === undefined ? null : v_error;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
const VERSION$e = "ac94c0c52190d3f2f063659052e5b46e";
|
|
1378
|
+
function validate$i(obj, path = 'AgentActionOutputRepresentation') {
|
|
1067
1379
|
const v_error = (() => {
|
|
1068
1380
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1069
1381
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1070
1382
|
}
|
|
1383
|
+
if (obj.agentActionId !== undefined) {
|
|
1384
|
+
const obj_agentActionId = obj.agentActionId;
|
|
1385
|
+
const path_agentActionId = path + '.agentActionId';
|
|
1386
|
+
let obj_agentActionId_union0 = null;
|
|
1387
|
+
const obj_agentActionId_union0_error = (() => {
|
|
1388
|
+
if (typeof obj_agentActionId !== 'string') {
|
|
1389
|
+
return new TypeError('Expected "string" but received "' + typeof obj_agentActionId + '" (at "' + path_agentActionId + '")');
|
|
1390
|
+
}
|
|
1391
|
+
})();
|
|
1392
|
+
if (obj_agentActionId_union0_error != null) {
|
|
1393
|
+
obj_agentActionId_union0 = obj_agentActionId_union0_error.message;
|
|
1394
|
+
}
|
|
1395
|
+
let obj_agentActionId_union1 = null;
|
|
1396
|
+
const obj_agentActionId_union1_error = (() => {
|
|
1397
|
+
if (obj_agentActionId !== null) {
|
|
1398
|
+
return new TypeError('Expected "null" but received "' + typeof obj_agentActionId + '" (at "' + path_agentActionId + '")');
|
|
1399
|
+
}
|
|
1400
|
+
})();
|
|
1401
|
+
if (obj_agentActionId_union1_error != null) {
|
|
1402
|
+
obj_agentActionId_union1 = obj_agentActionId_union1_error.message;
|
|
1403
|
+
}
|
|
1404
|
+
if (obj_agentActionId_union0 && obj_agentActionId_union1) {
|
|
1405
|
+
let message = 'Object doesn\'t match union (at "' + path_agentActionId + '")';
|
|
1406
|
+
message += '\n' + obj_agentActionId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1407
|
+
message += '\n' + obj_agentActionId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1408
|
+
return new TypeError(message);
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1071
1411
|
if (obj.id !== undefined) {
|
|
1072
1412
|
const obj_id = obj.id;
|
|
1073
1413
|
const path_id = path + '.id';
|
|
@@ -1096,57 +1436,75 @@ function validate$f(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
|
1096
1436
|
return new TypeError(message);
|
|
1097
1437
|
}
|
|
1098
1438
|
}
|
|
1099
|
-
if (obj.
|
|
1100
|
-
const
|
|
1101
|
-
const
|
|
1102
|
-
let
|
|
1103
|
-
const
|
|
1104
|
-
if (typeof
|
|
1105
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
1439
|
+
if (obj.status !== undefined) {
|
|
1440
|
+
const obj_status = obj.status;
|
|
1441
|
+
const path_status = path + '.status';
|
|
1442
|
+
let obj_status_union0 = null;
|
|
1443
|
+
const obj_status_union0_error = (() => {
|
|
1444
|
+
if (typeof obj_status !== 'string') {
|
|
1445
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1106
1446
|
}
|
|
1107
1447
|
})();
|
|
1108
|
-
if (
|
|
1109
|
-
|
|
1448
|
+
if (obj_status_union0_error != null) {
|
|
1449
|
+
obj_status_union0 = obj_status_union0_error.message;
|
|
1110
1450
|
}
|
|
1111
|
-
let
|
|
1112
|
-
const
|
|
1113
|
-
if (
|
|
1114
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
1451
|
+
let obj_status_union1 = null;
|
|
1452
|
+
const obj_status_union1_error = (() => {
|
|
1453
|
+
if (obj_status !== null) {
|
|
1454
|
+
return new TypeError('Expected "null" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
1115
1455
|
}
|
|
1116
1456
|
})();
|
|
1117
|
-
if (
|
|
1118
|
-
|
|
1457
|
+
if (obj_status_union1_error != null) {
|
|
1458
|
+
obj_status_union1 = obj_status_union1_error.message;
|
|
1119
1459
|
}
|
|
1120
|
-
if (
|
|
1121
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
1122
|
-
message += '\n' +
|
|
1123
|
-
message += '\n' +
|
|
1460
|
+
if (obj_status_union0 && obj_status_union1) {
|
|
1461
|
+
let message = 'Object doesn\'t match union (at "' + path_status + '")';
|
|
1462
|
+
message += '\n' + obj_status_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1463
|
+
message += '\n' + obj_status_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1124
1464
|
return new TypeError(message);
|
|
1125
1465
|
}
|
|
1126
1466
|
}
|
|
1127
1467
|
})();
|
|
1128
1468
|
return v_error === undefined ? null : v_error;
|
|
1129
1469
|
}
|
|
1130
|
-
const select$
|
|
1470
|
+
const select$k = function AgentActionOutputRepresentationSelect() {
|
|
1131
1471
|
return {
|
|
1132
1472
|
kind: 'Fragment',
|
|
1133
|
-
version: VERSION$
|
|
1473
|
+
version: VERSION$e,
|
|
1134
1474
|
private: [],
|
|
1135
1475
|
selections: [
|
|
1476
|
+
{
|
|
1477
|
+
name: 'agentActionId',
|
|
1478
|
+
kind: 'Scalar',
|
|
1479
|
+
required: false
|
|
1480
|
+
},
|
|
1136
1481
|
{
|
|
1137
1482
|
name: 'id',
|
|
1138
1483
|
kind: 'Scalar',
|
|
1139
1484
|
required: false
|
|
1140
1485
|
},
|
|
1141
1486
|
{
|
|
1142
|
-
name: '
|
|
1487
|
+
name: 'status',
|
|
1143
1488
|
kind: 'Scalar',
|
|
1144
1489
|
required: false
|
|
1145
1490
|
}
|
|
1146
1491
|
]
|
|
1147
1492
|
};
|
|
1148
1493
|
};
|
|
1149
|
-
function equals$
|
|
1494
|
+
function equals$e(existing, incoming) {
|
|
1495
|
+
const existing_agentActionId = existing.agentActionId;
|
|
1496
|
+
const incoming_agentActionId = incoming.agentActionId;
|
|
1497
|
+
// if at least one of these optionals is defined
|
|
1498
|
+
if (existing_agentActionId !== undefined || incoming_agentActionId !== undefined) {
|
|
1499
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1500
|
+
// not equal
|
|
1501
|
+
if (existing_agentActionId === undefined || incoming_agentActionId === undefined) {
|
|
1502
|
+
return false;
|
|
1503
|
+
}
|
|
1504
|
+
if (!(existing_agentActionId === incoming_agentActionId)) {
|
|
1505
|
+
return false;
|
|
1506
|
+
}
|
|
1507
|
+
}
|
|
1150
1508
|
const existing_id = existing.id;
|
|
1151
1509
|
const incoming_id = incoming.id;
|
|
1152
1510
|
// if at least one of these optionals is defined
|
|
@@ -1160,44 +1518,158 @@ function equals$b(existing, incoming) {
|
|
|
1160
1518
|
return false;
|
|
1161
1519
|
}
|
|
1162
1520
|
}
|
|
1163
|
-
const
|
|
1164
|
-
const
|
|
1521
|
+
const existing_status = existing.status;
|
|
1522
|
+
const incoming_status = incoming.status;
|
|
1165
1523
|
// if at least one of these optionals is defined
|
|
1166
|
-
if (
|
|
1524
|
+
if (existing_status !== undefined || incoming_status !== undefined) {
|
|
1167
1525
|
// if one of these is not defined we know the other is defined and therefore
|
|
1168
1526
|
// not equal
|
|
1169
|
-
if (
|
|
1527
|
+
if (existing_status === undefined || incoming_status === undefined) {
|
|
1170
1528
|
return false;
|
|
1171
1529
|
}
|
|
1172
|
-
if (!(
|
|
1530
|
+
if (!(existing_status === incoming_status)) {
|
|
1173
1531
|
return false;
|
|
1174
1532
|
}
|
|
1175
1533
|
}
|
|
1176
1534
|
return true;
|
|
1177
1535
|
}
|
|
1178
1536
|
|
|
1179
|
-
const VERSION$
|
|
1180
|
-
function validate$
|
|
1537
|
+
const VERSION$d = "0b2080174fe6d4ee4f4a0de27011fc7d";
|
|
1538
|
+
function validate$h(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
1181
1539
|
const v_error = (() => {
|
|
1182
1540
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1183
1541
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1184
1542
|
}
|
|
1185
|
-
if (obj.
|
|
1186
|
-
const
|
|
1187
|
-
const
|
|
1188
|
-
let
|
|
1189
|
-
const
|
|
1190
|
-
if (typeof
|
|
1191
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
1543
|
+
if (obj.id !== undefined) {
|
|
1544
|
+
const obj_id = obj.id;
|
|
1545
|
+
const path_id = path + '.id';
|
|
1546
|
+
let obj_id_union0 = null;
|
|
1547
|
+
const obj_id_union0_error = (() => {
|
|
1548
|
+
if (typeof obj_id !== 'string') {
|
|
1549
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1192
1550
|
}
|
|
1193
1551
|
})();
|
|
1194
|
-
if (
|
|
1195
|
-
|
|
1552
|
+
if (obj_id_union0_error != null) {
|
|
1553
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
1196
1554
|
}
|
|
1197
|
-
let
|
|
1198
|
-
const
|
|
1199
|
-
if (
|
|
1200
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
1555
|
+
let obj_id_union1 = null;
|
|
1556
|
+
const obj_id_union1_error = (() => {
|
|
1557
|
+
if (obj_id !== null) {
|
|
1558
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1559
|
+
}
|
|
1560
|
+
})();
|
|
1561
|
+
if (obj_id_union1_error != null) {
|
|
1562
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
1563
|
+
}
|
|
1564
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
1565
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
1566
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1567
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1568
|
+
return new TypeError(message);
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
if (obj.knowledgeArticleId !== undefined) {
|
|
1572
|
+
const obj_knowledgeArticleId = obj.knowledgeArticleId;
|
|
1573
|
+
const path_knowledgeArticleId = path + '.knowledgeArticleId';
|
|
1574
|
+
let obj_knowledgeArticleId_union0 = null;
|
|
1575
|
+
const obj_knowledgeArticleId_union0_error = (() => {
|
|
1576
|
+
if (typeof obj_knowledgeArticleId !== 'string') {
|
|
1577
|
+
return new TypeError('Expected "string" but received "' + typeof obj_knowledgeArticleId + '" (at "' + path_knowledgeArticleId + '")');
|
|
1578
|
+
}
|
|
1579
|
+
})();
|
|
1580
|
+
if (obj_knowledgeArticleId_union0_error != null) {
|
|
1581
|
+
obj_knowledgeArticleId_union0 = obj_knowledgeArticleId_union0_error.message;
|
|
1582
|
+
}
|
|
1583
|
+
let obj_knowledgeArticleId_union1 = null;
|
|
1584
|
+
const obj_knowledgeArticleId_union1_error = (() => {
|
|
1585
|
+
if (obj_knowledgeArticleId !== null) {
|
|
1586
|
+
return new TypeError('Expected "null" but received "' + typeof obj_knowledgeArticleId + '" (at "' + path_knowledgeArticleId + '")');
|
|
1587
|
+
}
|
|
1588
|
+
})();
|
|
1589
|
+
if (obj_knowledgeArticleId_union1_error != null) {
|
|
1590
|
+
obj_knowledgeArticleId_union1 = obj_knowledgeArticleId_union1_error.message;
|
|
1591
|
+
}
|
|
1592
|
+
if (obj_knowledgeArticleId_union0 && obj_knowledgeArticleId_union1) {
|
|
1593
|
+
let message = 'Object doesn\'t match union (at "' + path_knowledgeArticleId + '")';
|
|
1594
|
+
message += '\n' + obj_knowledgeArticleId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1595
|
+
message += '\n' + obj_knowledgeArticleId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1596
|
+
return new TypeError(message);
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
})();
|
|
1600
|
+
return v_error === undefined ? null : v_error;
|
|
1601
|
+
}
|
|
1602
|
+
const select$j = function AssociatedArticleOutputRepresentationSelect() {
|
|
1603
|
+
return {
|
|
1604
|
+
kind: 'Fragment',
|
|
1605
|
+
version: VERSION$d,
|
|
1606
|
+
private: [],
|
|
1607
|
+
selections: [
|
|
1608
|
+
{
|
|
1609
|
+
name: 'id',
|
|
1610
|
+
kind: 'Scalar',
|
|
1611
|
+
required: false
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
name: 'knowledgeArticleId',
|
|
1615
|
+
kind: 'Scalar',
|
|
1616
|
+
required: false
|
|
1617
|
+
}
|
|
1618
|
+
]
|
|
1619
|
+
};
|
|
1620
|
+
};
|
|
1621
|
+
function equals$d(existing, incoming) {
|
|
1622
|
+
const existing_id = existing.id;
|
|
1623
|
+
const incoming_id = incoming.id;
|
|
1624
|
+
// if at least one of these optionals is defined
|
|
1625
|
+
if (existing_id !== undefined || incoming_id !== undefined) {
|
|
1626
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1627
|
+
// not equal
|
|
1628
|
+
if (existing_id === undefined || incoming_id === undefined) {
|
|
1629
|
+
return false;
|
|
1630
|
+
}
|
|
1631
|
+
if (!(existing_id === incoming_id)) {
|
|
1632
|
+
return false;
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
const existing_knowledgeArticleId = existing.knowledgeArticleId;
|
|
1636
|
+
const incoming_knowledgeArticleId = incoming.knowledgeArticleId;
|
|
1637
|
+
// if at least one of these optionals is defined
|
|
1638
|
+
if (existing_knowledgeArticleId !== undefined || incoming_knowledgeArticleId !== undefined) {
|
|
1639
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1640
|
+
// not equal
|
|
1641
|
+
if (existing_knowledgeArticleId === undefined || incoming_knowledgeArticleId === undefined) {
|
|
1642
|
+
return false;
|
|
1643
|
+
}
|
|
1644
|
+
if (!(existing_knowledgeArticleId === incoming_knowledgeArticleId)) {
|
|
1645
|
+
return false;
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
return true;
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
const VERSION$c = "6859d872ce6d03f8f07819eb40c43fe6";
|
|
1652
|
+
function validate$g(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
1653
|
+
const v_error = (() => {
|
|
1654
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1655
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1656
|
+
}
|
|
1657
|
+
if (obj.eligibilityRuleId !== undefined) {
|
|
1658
|
+
const obj_eligibilityRuleId = obj.eligibilityRuleId;
|
|
1659
|
+
const path_eligibilityRuleId = path + '.eligibilityRuleId';
|
|
1660
|
+
let obj_eligibilityRuleId_union0 = null;
|
|
1661
|
+
const obj_eligibilityRuleId_union0_error = (() => {
|
|
1662
|
+
if (typeof obj_eligibilityRuleId !== 'string') {
|
|
1663
|
+
return new TypeError('Expected "string" but received "' + typeof obj_eligibilityRuleId + '" (at "' + path_eligibilityRuleId + '")');
|
|
1664
|
+
}
|
|
1665
|
+
})();
|
|
1666
|
+
if (obj_eligibilityRuleId_union0_error != null) {
|
|
1667
|
+
obj_eligibilityRuleId_union0 = obj_eligibilityRuleId_union0_error.message;
|
|
1668
|
+
}
|
|
1669
|
+
let obj_eligibilityRuleId_union1 = null;
|
|
1670
|
+
const obj_eligibilityRuleId_union1_error = (() => {
|
|
1671
|
+
if (obj_eligibilityRuleId !== null) {
|
|
1672
|
+
return new TypeError('Expected "null" but received "' + typeof obj_eligibilityRuleId + '" (at "' + path_eligibilityRuleId + '")');
|
|
1201
1673
|
}
|
|
1202
1674
|
})();
|
|
1203
1675
|
if (obj_eligibilityRuleId_union1_error != null) {
|
|
@@ -1241,10 +1713,10 @@ function validate$e(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
|
1241
1713
|
})();
|
|
1242
1714
|
return v_error === undefined ? null : v_error;
|
|
1243
1715
|
}
|
|
1244
|
-
const select$
|
|
1716
|
+
const select$i = function EligibilityRuleOutputRepresentationSelect() {
|
|
1245
1717
|
return {
|
|
1246
1718
|
kind: 'Fragment',
|
|
1247
|
-
version: VERSION$
|
|
1719
|
+
version: VERSION$c,
|
|
1248
1720
|
private: [],
|
|
1249
1721
|
selections: [
|
|
1250
1722
|
{
|
|
@@ -1260,7 +1732,7 @@ const select$g = function EligibilityRuleOutputRepresentationSelect() {
|
|
|
1260
1732
|
]
|
|
1261
1733
|
};
|
|
1262
1734
|
};
|
|
1263
|
-
function equals$
|
|
1735
|
+
function equals$c(existing, incoming) {
|
|
1264
1736
|
const existing_eligibilityRuleId = existing.eligibilityRuleId;
|
|
1265
1737
|
const incoming_eligibilityRuleId = incoming.eligibilityRuleId;
|
|
1266
1738
|
// if at least one of these optionals is defined
|
|
@@ -1290,8 +1762,8 @@ function equals$a(existing, incoming) {
|
|
|
1290
1762
|
return true;
|
|
1291
1763
|
}
|
|
1292
1764
|
|
|
1293
|
-
const VERSION$
|
|
1294
|
-
function validate$
|
|
1765
|
+
const VERSION$b = "b5216beece7c04763cff6924e6953f93";
|
|
1766
|
+
function validate$f(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
1295
1767
|
const v_error = (() => {
|
|
1296
1768
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1297
1769
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1383,10 +1855,10 @@ function validate$d(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
|
1383
1855
|
})();
|
|
1384
1856
|
return v_error === undefined ? null : v_error;
|
|
1385
1857
|
}
|
|
1386
|
-
const select$
|
|
1858
|
+
const select$h = function FulfillmentFlowOutputRepresentationSelect() {
|
|
1387
1859
|
return {
|
|
1388
1860
|
kind: 'Fragment',
|
|
1389
|
-
version: VERSION$
|
|
1861
|
+
version: VERSION$b,
|
|
1390
1862
|
private: [],
|
|
1391
1863
|
selections: [
|
|
1392
1864
|
{
|
|
@@ -1407,7 +1879,7 @@ const select$f = function FulfillmentFlowOutputRepresentationSelect() {
|
|
|
1407
1879
|
]
|
|
1408
1880
|
};
|
|
1409
1881
|
};
|
|
1410
|
-
function equals$
|
|
1882
|
+
function equals$b(existing, incoming) {
|
|
1411
1883
|
const existing_fulFillmentFlowId = existing.fulFillmentFlowId;
|
|
1412
1884
|
const incoming_fulFillmentFlowId = incoming.fulFillmentFlowId;
|
|
1413
1885
|
// if at least one of these optionals is defined
|
|
@@ -1450,8 +1922,8 @@ function equals$9(existing, incoming) {
|
|
|
1450
1922
|
return true;
|
|
1451
1923
|
}
|
|
1452
1924
|
|
|
1453
|
-
const VERSION$
|
|
1454
|
-
function validate$
|
|
1925
|
+
const VERSION$a = "dc8ba723ca754951db42f9d0e6891a06";
|
|
1926
|
+
function validate$e(obj, path = 'IntakeFormOutputRepresentation') {
|
|
1455
1927
|
const v_error = (() => {
|
|
1456
1928
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1457
1929
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1683,10 +2155,10 @@ function validate$c(obj, path = 'IntakeFormOutputRepresentation') {
|
|
|
1683
2155
|
})();
|
|
1684
2156
|
return v_error === undefined ? null : v_error;
|
|
1685
2157
|
}
|
|
1686
|
-
const select$
|
|
2158
|
+
const select$g = function IntakeFormOutputRepresentationSelect() {
|
|
1687
2159
|
return {
|
|
1688
2160
|
kind: 'Fragment',
|
|
1689
|
-
version: VERSION$
|
|
2161
|
+
version: VERSION$a,
|
|
1690
2162
|
private: [],
|
|
1691
2163
|
selections: [
|
|
1692
2164
|
{
|
|
@@ -1732,7 +2204,7 @@ const select$e = function IntakeFormOutputRepresentationSelect() {
|
|
|
1732
2204
|
]
|
|
1733
2205
|
};
|
|
1734
2206
|
};
|
|
1735
|
-
function equals$
|
|
2207
|
+
function equals$a(existing, incoming) {
|
|
1736
2208
|
const existing_id = existing.id;
|
|
1737
2209
|
const incoming_id = incoming.id;
|
|
1738
2210
|
// if at least one of these optionals is defined
|
|
@@ -1840,8 +2312,8 @@ function equals$8(existing, incoming) {
|
|
|
1840
2312
|
return true;
|
|
1841
2313
|
}
|
|
1842
2314
|
|
|
1843
|
-
const VERSION$
|
|
1844
|
-
function validate$
|
|
2315
|
+
const VERSION$9 = "1006a153c933b8bc4b1d44663893e206";
|
|
2316
|
+
function validate$d(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
1845
2317
|
const v_error = (() => {
|
|
1846
2318
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1847
2319
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1905,10 +2377,10 @@ function validate$b(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
|
1905
2377
|
})();
|
|
1906
2378
|
return v_error === undefined ? null : v_error;
|
|
1907
2379
|
}
|
|
1908
|
-
const select$
|
|
2380
|
+
const select$f = function IntegrationDefinitionOutputPresentationSelect() {
|
|
1909
2381
|
return {
|
|
1910
2382
|
kind: 'Fragment',
|
|
1911
|
-
version: VERSION$
|
|
2383
|
+
version: VERSION$9,
|
|
1912
2384
|
private: [],
|
|
1913
2385
|
selections: [
|
|
1914
2386
|
{
|
|
@@ -1924,7 +2396,7 @@ const select$d = function IntegrationDefinitionOutputPresentationSelect() {
|
|
|
1924
2396
|
]
|
|
1925
2397
|
};
|
|
1926
2398
|
};
|
|
1927
|
-
function equals$
|
|
2399
|
+
function equals$9(existing, incoming) {
|
|
1928
2400
|
const existing_id = existing.id;
|
|
1929
2401
|
const incoming_id = incoming.id;
|
|
1930
2402
|
// if at least one of these optionals is defined
|
|
@@ -1954,8 +2426,122 @@ function equals$7(existing, incoming) {
|
|
|
1954
2426
|
return true;
|
|
1955
2427
|
}
|
|
1956
2428
|
|
|
1957
|
-
const VERSION$
|
|
1958
|
-
function validate$
|
|
2429
|
+
const VERSION$8 = "2d685b1e467eb8d61276e834ea3b74a3";
|
|
2430
|
+
function validate$c(obj, path = 'PreprocessorOutputRepresentation') {
|
|
2431
|
+
const v_error = (() => {
|
|
2432
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2433
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2434
|
+
}
|
|
2435
|
+
if (obj.id !== undefined) {
|
|
2436
|
+
const obj_id = obj.id;
|
|
2437
|
+
const path_id = path + '.id';
|
|
2438
|
+
let obj_id_union0 = null;
|
|
2439
|
+
const obj_id_union0_error = (() => {
|
|
2440
|
+
if (typeof obj_id !== 'string') {
|
|
2441
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2442
|
+
}
|
|
2443
|
+
})();
|
|
2444
|
+
if (obj_id_union0_error != null) {
|
|
2445
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
2446
|
+
}
|
|
2447
|
+
let obj_id_union1 = null;
|
|
2448
|
+
const obj_id_union1_error = (() => {
|
|
2449
|
+
if (obj_id !== null) {
|
|
2450
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
2451
|
+
}
|
|
2452
|
+
})();
|
|
2453
|
+
if (obj_id_union1_error != null) {
|
|
2454
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
2455
|
+
}
|
|
2456
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
2457
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
2458
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2459
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2460
|
+
return new TypeError(message);
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2463
|
+
if (obj.preProcessorsID !== undefined) {
|
|
2464
|
+
const obj_preProcessorsID = obj.preProcessorsID;
|
|
2465
|
+
const path_preProcessorsID = path + '.preProcessorsID';
|
|
2466
|
+
let obj_preProcessorsID_union0 = null;
|
|
2467
|
+
const obj_preProcessorsID_union0_error = (() => {
|
|
2468
|
+
if (typeof obj_preProcessorsID !== 'string') {
|
|
2469
|
+
return new TypeError('Expected "string" but received "' + typeof obj_preProcessorsID + '" (at "' + path_preProcessorsID + '")');
|
|
2470
|
+
}
|
|
2471
|
+
})();
|
|
2472
|
+
if (obj_preProcessorsID_union0_error != null) {
|
|
2473
|
+
obj_preProcessorsID_union0 = obj_preProcessorsID_union0_error.message;
|
|
2474
|
+
}
|
|
2475
|
+
let obj_preProcessorsID_union1 = null;
|
|
2476
|
+
const obj_preProcessorsID_union1_error = (() => {
|
|
2477
|
+
if (obj_preProcessorsID !== null) {
|
|
2478
|
+
return new TypeError('Expected "null" but received "' + typeof obj_preProcessorsID + '" (at "' + path_preProcessorsID + '")');
|
|
2479
|
+
}
|
|
2480
|
+
})();
|
|
2481
|
+
if (obj_preProcessorsID_union1_error != null) {
|
|
2482
|
+
obj_preProcessorsID_union1 = obj_preProcessorsID_union1_error.message;
|
|
2483
|
+
}
|
|
2484
|
+
if (obj_preProcessorsID_union0 && obj_preProcessorsID_union1) {
|
|
2485
|
+
let message = 'Object doesn\'t match union (at "' + path_preProcessorsID + '")';
|
|
2486
|
+
message += '\n' + obj_preProcessorsID_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2487
|
+
message += '\n' + obj_preProcessorsID_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2488
|
+
return new TypeError(message);
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
})();
|
|
2492
|
+
return v_error === undefined ? null : v_error;
|
|
2493
|
+
}
|
|
2494
|
+
const select$e = function PreprocessorOutputRepresentationSelect() {
|
|
2495
|
+
return {
|
|
2496
|
+
kind: 'Fragment',
|
|
2497
|
+
version: VERSION$8,
|
|
2498
|
+
private: [],
|
|
2499
|
+
selections: [
|
|
2500
|
+
{
|
|
2501
|
+
name: 'id',
|
|
2502
|
+
kind: 'Scalar',
|
|
2503
|
+
required: false
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
name: 'preProcessorsID',
|
|
2507
|
+
kind: 'Scalar',
|
|
2508
|
+
required: false
|
|
2509
|
+
}
|
|
2510
|
+
]
|
|
2511
|
+
};
|
|
2512
|
+
};
|
|
2513
|
+
function equals$8(existing, incoming) {
|
|
2514
|
+
const existing_id = existing.id;
|
|
2515
|
+
const incoming_id = incoming.id;
|
|
2516
|
+
// if at least one of these optionals is defined
|
|
2517
|
+
if (existing_id !== undefined || incoming_id !== undefined) {
|
|
2518
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2519
|
+
// not equal
|
|
2520
|
+
if (existing_id === undefined || incoming_id === undefined) {
|
|
2521
|
+
return false;
|
|
2522
|
+
}
|
|
2523
|
+
if (!(existing_id === incoming_id)) {
|
|
2524
|
+
return false;
|
|
2525
|
+
}
|
|
2526
|
+
}
|
|
2527
|
+
const existing_preProcessorsID = existing.preProcessorsID;
|
|
2528
|
+
const incoming_preProcessorsID = incoming.preProcessorsID;
|
|
2529
|
+
// if at least one of these optionals is defined
|
|
2530
|
+
if (existing_preProcessorsID !== undefined || incoming_preProcessorsID !== undefined) {
|
|
2531
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2532
|
+
// not equal
|
|
2533
|
+
if (existing_preProcessorsID === undefined || incoming_preProcessorsID === undefined) {
|
|
2534
|
+
return false;
|
|
2535
|
+
}
|
|
2536
|
+
if (!(existing_preProcessorsID === incoming_preProcessorsID)) {
|
|
2537
|
+
return false;
|
|
2538
|
+
}
|
|
2539
|
+
}
|
|
2540
|
+
return true;
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2543
|
+
const VERSION$7 = "237440975156389e5479f294d3d601de";
|
|
2544
|
+
function validate$b(obj, path = 'ProductDetailsOutputRepresentation') {
|
|
1959
2545
|
const v_error = (() => {
|
|
1960
2546
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1961
2547
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1988,50 +2574,321 @@ function validate$a(obj, path = 'PreprocessorOutputRepresentation') {
|
|
|
1988
2574
|
return new TypeError(message);
|
|
1989
2575
|
}
|
|
1990
2576
|
}
|
|
1991
|
-
if (obj.
|
|
1992
|
-
const
|
|
1993
|
-
const
|
|
1994
|
-
let
|
|
1995
|
-
const
|
|
1996
|
-
if (typeof
|
|
1997
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
2577
|
+
if (obj.productId !== undefined) {
|
|
2578
|
+
const obj_productId = obj.productId;
|
|
2579
|
+
const path_productId = path + '.productId';
|
|
2580
|
+
let obj_productId_union0 = null;
|
|
2581
|
+
const obj_productId_union0_error = (() => {
|
|
2582
|
+
if (typeof obj_productId !== 'string') {
|
|
2583
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productId + '" (at "' + path_productId + '")');
|
|
2584
|
+
}
|
|
2585
|
+
})();
|
|
2586
|
+
if (obj_productId_union0_error != null) {
|
|
2587
|
+
obj_productId_union0 = obj_productId_union0_error.message;
|
|
2588
|
+
}
|
|
2589
|
+
let obj_productId_union1 = null;
|
|
2590
|
+
const obj_productId_union1_error = (() => {
|
|
2591
|
+
if (obj_productId !== null) {
|
|
2592
|
+
return new TypeError('Expected "null" but received "' + typeof obj_productId + '" (at "' + path_productId + '")');
|
|
2593
|
+
}
|
|
2594
|
+
})();
|
|
2595
|
+
if (obj_productId_union1_error != null) {
|
|
2596
|
+
obj_productId_union1 = obj_productId_union1_error.message;
|
|
2597
|
+
}
|
|
2598
|
+
if (obj_productId_union0 && obj_productId_union1) {
|
|
2599
|
+
let message = 'Object doesn\'t match union (at "' + path_productId + '")';
|
|
2600
|
+
message += '\n' + obj_productId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2601
|
+
message += '\n' + obj_productId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2602
|
+
return new TypeError(message);
|
|
2603
|
+
}
|
|
2604
|
+
}
|
|
2605
|
+
})();
|
|
2606
|
+
return v_error === undefined ? null : v_error;
|
|
2607
|
+
}
|
|
2608
|
+
const select$d = function ProductDetailsOutputRepresentationSelect() {
|
|
2609
|
+
return {
|
|
2610
|
+
kind: 'Fragment',
|
|
2611
|
+
version: VERSION$7,
|
|
2612
|
+
private: [],
|
|
2613
|
+
selections: [
|
|
2614
|
+
{
|
|
2615
|
+
name: 'id',
|
|
2616
|
+
kind: 'Scalar',
|
|
2617
|
+
required: false
|
|
2618
|
+
},
|
|
2619
|
+
{
|
|
2620
|
+
name: 'productId',
|
|
2621
|
+
kind: 'Scalar',
|
|
2622
|
+
required: false
|
|
2623
|
+
}
|
|
2624
|
+
]
|
|
2625
|
+
};
|
|
2626
|
+
};
|
|
2627
|
+
function equals$7(existing, incoming) {
|
|
2628
|
+
const existing_id = existing.id;
|
|
2629
|
+
const incoming_id = incoming.id;
|
|
2630
|
+
// if at least one of these optionals is defined
|
|
2631
|
+
if (existing_id !== undefined || incoming_id !== undefined) {
|
|
2632
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2633
|
+
// not equal
|
|
2634
|
+
if (existing_id === undefined || incoming_id === undefined) {
|
|
2635
|
+
return false;
|
|
2636
|
+
}
|
|
2637
|
+
if (!(existing_id === incoming_id)) {
|
|
2638
|
+
return false;
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
const existing_productId = existing.productId;
|
|
2642
|
+
const incoming_productId = incoming.productId;
|
|
2643
|
+
// if at least one of these optionals is defined
|
|
2644
|
+
if (existing_productId !== undefined || incoming_productId !== undefined) {
|
|
2645
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2646
|
+
// not equal
|
|
2647
|
+
if (existing_productId === undefined || incoming_productId === undefined) {
|
|
2648
|
+
return false;
|
|
2649
|
+
}
|
|
2650
|
+
if (!(existing_productId === incoming_productId)) {
|
|
2651
|
+
return false;
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
return true;
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
const VERSION$6 = "dc18ee4b99b0510d2c89ddf9261ea1e7";
|
|
2658
|
+
function validate$a(obj, path = 'ProductRequestOutputRepresentation') {
|
|
2659
|
+
const v_error = (() => {
|
|
2660
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2661
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2662
|
+
}
|
|
2663
|
+
if (obj.productDetails !== undefined) {
|
|
2664
|
+
const obj_productDetails = obj.productDetails;
|
|
2665
|
+
const path_productDetails = path + '.productDetails';
|
|
2666
|
+
if (!ArrayIsArray(obj_productDetails)) {
|
|
2667
|
+
return new TypeError('Expected "array" but received "' + typeof obj_productDetails + '" (at "' + path_productDetails + '")');
|
|
2668
|
+
}
|
|
2669
|
+
for (let i = 0; i < obj_productDetails.length; i++) {
|
|
2670
|
+
const obj_productDetails_item = obj_productDetails[i];
|
|
2671
|
+
const path_productDetails_item = path_productDetails + '[' + i + ']';
|
|
2672
|
+
const referencepath_productDetails_itemValidationError = validate$b(obj_productDetails_item, path_productDetails_item);
|
|
2673
|
+
if (referencepath_productDetails_itemValidationError !== null) {
|
|
2674
|
+
let message = 'Object doesn\'t match ProductDetailsOutputRepresentation (at "' + path_productDetails_item + '")\n';
|
|
2675
|
+
message += referencepath_productDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2676
|
+
return new TypeError(message);
|
|
2677
|
+
}
|
|
2678
|
+
}
|
|
2679
|
+
}
|
|
2680
|
+
if (obj.sectionDescription !== undefined) {
|
|
2681
|
+
const obj_sectionDescription = obj.sectionDescription;
|
|
2682
|
+
const path_sectionDescription = path + '.sectionDescription';
|
|
2683
|
+
let obj_sectionDescription_union0 = null;
|
|
2684
|
+
const obj_sectionDescription_union0_error = (() => {
|
|
2685
|
+
if (typeof obj_sectionDescription !== 'string') {
|
|
2686
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sectionDescription + '" (at "' + path_sectionDescription + '")');
|
|
2687
|
+
}
|
|
2688
|
+
})();
|
|
2689
|
+
if (obj_sectionDescription_union0_error != null) {
|
|
2690
|
+
obj_sectionDescription_union0 = obj_sectionDescription_union0_error.message;
|
|
2691
|
+
}
|
|
2692
|
+
let obj_sectionDescription_union1 = null;
|
|
2693
|
+
const obj_sectionDescription_union1_error = (() => {
|
|
2694
|
+
if (obj_sectionDescription !== null) {
|
|
2695
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionDescription + '" (at "' + path_sectionDescription + '")');
|
|
2696
|
+
}
|
|
2697
|
+
})();
|
|
2698
|
+
if (obj_sectionDescription_union1_error != null) {
|
|
2699
|
+
obj_sectionDescription_union1 = obj_sectionDescription_union1_error.message;
|
|
2700
|
+
}
|
|
2701
|
+
if (obj_sectionDescription_union0 && obj_sectionDescription_union1) {
|
|
2702
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionDescription + '")';
|
|
2703
|
+
message += '\n' + obj_sectionDescription_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2704
|
+
message += '\n' + obj_sectionDescription_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2705
|
+
return new TypeError(message);
|
|
2706
|
+
}
|
|
2707
|
+
}
|
|
2708
|
+
if (obj.sectionId !== undefined) {
|
|
2709
|
+
const obj_sectionId = obj.sectionId;
|
|
2710
|
+
const path_sectionId = path + '.sectionId';
|
|
2711
|
+
let obj_sectionId_union0 = null;
|
|
2712
|
+
const obj_sectionId_union0_error = (() => {
|
|
2713
|
+
if (typeof obj_sectionId !== 'string') {
|
|
2714
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sectionId + '" (at "' + path_sectionId + '")');
|
|
2715
|
+
}
|
|
2716
|
+
})();
|
|
2717
|
+
if (obj_sectionId_union0_error != null) {
|
|
2718
|
+
obj_sectionId_union0 = obj_sectionId_union0_error.message;
|
|
2719
|
+
}
|
|
2720
|
+
let obj_sectionId_union1 = null;
|
|
2721
|
+
const obj_sectionId_union1_error = (() => {
|
|
2722
|
+
if (obj_sectionId !== null) {
|
|
2723
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionId + '" (at "' + path_sectionId + '")');
|
|
2724
|
+
}
|
|
2725
|
+
})();
|
|
2726
|
+
if (obj_sectionId_union1_error != null) {
|
|
2727
|
+
obj_sectionId_union1 = obj_sectionId_union1_error.message;
|
|
2728
|
+
}
|
|
2729
|
+
if (obj_sectionId_union0 && obj_sectionId_union1) {
|
|
2730
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionId + '")';
|
|
2731
|
+
message += '\n' + obj_sectionId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2732
|
+
message += '\n' + obj_sectionId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2733
|
+
return new TypeError(message);
|
|
2734
|
+
}
|
|
2735
|
+
}
|
|
2736
|
+
if (obj.sectionMaxCount !== undefined) {
|
|
2737
|
+
const obj_sectionMaxCount = obj.sectionMaxCount;
|
|
2738
|
+
const path_sectionMaxCount = path + '.sectionMaxCount';
|
|
2739
|
+
let obj_sectionMaxCount_union0 = null;
|
|
2740
|
+
const obj_sectionMaxCount_union0_error = (() => {
|
|
2741
|
+
if (typeof obj_sectionMaxCount !== 'number' || (typeof obj_sectionMaxCount === 'number' && Math.floor(obj_sectionMaxCount) !== obj_sectionMaxCount)) {
|
|
2742
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sectionMaxCount + '" (at "' + path_sectionMaxCount + '")');
|
|
2743
|
+
}
|
|
2744
|
+
})();
|
|
2745
|
+
if (obj_sectionMaxCount_union0_error != null) {
|
|
2746
|
+
obj_sectionMaxCount_union0 = obj_sectionMaxCount_union0_error.message;
|
|
2747
|
+
}
|
|
2748
|
+
let obj_sectionMaxCount_union1 = null;
|
|
2749
|
+
const obj_sectionMaxCount_union1_error = (() => {
|
|
2750
|
+
if (obj_sectionMaxCount !== null) {
|
|
2751
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionMaxCount + '" (at "' + path_sectionMaxCount + '")');
|
|
2752
|
+
}
|
|
2753
|
+
})();
|
|
2754
|
+
if (obj_sectionMaxCount_union1_error != null) {
|
|
2755
|
+
obj_sectionMaxCount_union1 = obj_sectionMaxCount_union1_error.message;
|
|
2756
|
+
}
|
|
2757
|
+
if (obj_sectionMaxCount_union0 && obj_sectionMaxCount_union1) {
|
|
2758
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionMaxCount + '")';
|
|
2759
|
+
message += '\n' + obj_sectionMaxCount_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2760
|
+
message += '\n' + obj_sectionMaxCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2761
|
+
return new TypeError(message);
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
if (obj.sectionMinCount !== undefined) {
|
|
2765
|
+
const obj_sectionMinCount = obj.sectionMinCount;
|
|
2766
|
+
const path_sectionMinCount = path + '.sectionMinCount';
|
|
2767
|
+
let obj_sectionMinCount_union0 = null;
|
|
2768
|
+
const obj_sectionMinCount_union0_error = (() => {
|
|
2769
|
+
if (typeof obj_sectionMinCount !== 'number' || (typeof obj_sectionMinCount === 'number' && Math.floor(obj_sectionMinCount) !== obj_sectionMinCount)) {
|
|
2770
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sectionMinCount + '" (at "' + path_sectionMinCount + '")');
|
|
2771
|
+
}
|
|
2772
|
+
})();
|
|
2773
|
+
if (obj_sectionMinCount_union0_error != null) {
|
|
2774
|
+
obj_sectionMinCount_union0 = obj_sectionMinCount_union0_error.message;
|
|
2775
|
+
}
|
|
2776
|
+
let obj_sectionMinCount_union1 = null;
|
|
2777
|
+
const obj_sectionMinCount_union1_error = (() => {
|
|
2778
|
+
if (obj_sectionMinCount !== null) {
|
|
2779
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionMinCount + '" (at "' + path_sectionMinCount + '")');
|
|
2780
|
+
}
|
|
2781
|
+
})();
|
|
2782
|
+
if (obj_sectionMinCount_union1_error != null) {
|
|
2783
|
+
obj_sectionMinCount_union1 = obj_sectionMinCount_union1_error.message;
|
|
2784
|
+
}
|
|
2785
|
+
if (obj_sectionMinCount_union0 && obj_sectionMinCount_union1) {
|
|
2786
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionMinCount + '")';
|
|
2787
|
+
message += '\n' + obj_sectionMinCount_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2788
|
+
message += '\n' + obj_sectionMinCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2789
|
+
return new TypeError(message);
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
if (obj.sectionName !== undefined) {
|
|
2793
|
+
const obj_sectionName = obj.sectionName;
|
|
2794
|
+
const path_sectionName = path + '.sectionName';
|
|
2795
|
+
let obj_sectionName_union0 = null;
|
|
2796
|
+
const obj_sectionName_union0_error = (() => {
|
|
2797
|
+
if (typeof obj_sectionName !== 'string') {
|
|
2798
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sectionName + '" (at "' + path_sectionName + '")');
|
|
2799
|
+
}
|
|
2800
|
+
})();
|
|
2801
|
+
if (obj_sectionName_union0_error != null) {
|
|
2802
|
+
obj_sectionName_union0 = obj_sectionName_union0_error.message;
|
|
2803
|
+
}
|
|
2804
|
+
let obj_sectionName_union1 = null;
|
|
2805
|
+
const obj_sectionName_union1_error = (() => {
|
|
2806
|
+
if (obj_sectionName !== null) {
|
|
2807
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sectionName + '" (at "' + path_sectionName + '")');
|
|
2808
|
+
}
|
|
2809
|
+
})();
|
|
2810
|
+
if (obj_sectionName_union1_error != null) {
|
|
2811
|
+
obj_sectionName_union1 = obj_sectionName_union1_error.message;
|
|
2812
|
+
}
|
|
2813
|
+
if (obj_sectionName_union0 && obj_sectionName_union1) {
|
|
2814
|
+
let message = 'Object doesn\'t match union (at "' + path_sectionName + '")';
|
|
2815
|
+
message += '\n' + obj_sectionName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2816
|
+
message += '\n' + obj_sectionName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2817
|
+
return new TypeError(message);
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2820
|
+
if (obj.sequence !== undefined) {
|
|
2821
|
+
const obj_sequence = obj.sequence;
|
|
2822
|
+
const path_sequence = path + '.sequence';
|
|
2823
|
+
let obj_sequence_union0 = null;
|
|
2824
|
+
const obj_sequence_union0_error = (() => {
|
|
2825
|
+
if (typeof obj_sequence !== 'number' || (typeof obj_sequence === 'number' && Math.floor(obj_sequence) !== obj_sequence)) {
|
|
2826
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sequence + '" (at "' + path_sequence + '")');
|
|
1998
2827
|
}
|
|
1999
2828
|
})();
|
|
2000
|
-
if (
|
|
2001
|
-
|
|
2829
|
+
if (obj_sequence_union0_error != null) {
|
|
2830
|
+
obj_sequence_union0 = obj_sequence_union0_error.message;
|
|
2002
2831
|
}
|
|
2003
|
-
let
|
|
2004
|
-
const
|
|
2005
|
-
if (
|
|
2006
|
-
return new TypeError('Expected "null" but received "' + typeof
|
|
2832
|
+
let obj_sequence_union1 = null;
|
|
2833
|
+
const obj_sequence_union1_error = (() => {
|
|
2834
|
+
if (obj_sequence !== null) {
|
|
2835
|
+
return new TypeError('Expected "null" but received "' + typeof obj_sequence + '" (at "' + path_sequence + '")');
|
|
2007
2836
|
}
|
|
2008
2837
|
})();
|
|
2009
|
-
if (
|
|
2010
|
-
|
|
2838
|
+
if (obj_sequence_union1_error != null) {
|
|
2839
|
+
obj_sequence_union1 = obj_sequence_union1_error.message;
|
|
2011
2840
|
}
|
|
2012
|
-
if (
|
|
2013
|
-
let message = 'Object doesn\'t match union (at "' +
|
|
2014
|
-
message += '\n' +
|
|
2015
|
-
message += '\n' +
|
|
2841
|
+
if (obj_sequence_union0 && obj_sequence_union1) {
|
|
2842
|
+
let message = 'Object doesn\'t match union (at "' + path_sequence + '")';
|
|
2843
|
+
message += '\n' + obj_sequence_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2844
|
+
message += '\n' + obj_sequence_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2016
2845
|
return new TypeError(message);
|
|
2017
2846
|
}
|
|
2018
2847
|
}
|
|
2019
2848
|
})();
|
|
2020
2849
|
return v_error === undefined ? null : v_error;
|
|
2021
2850
|
}
|
|
2022
|
-
const select$c = function
|
|
2851
|
+
const select$c = function ProductRequestOutputRepresentationSelect() {
|
|
2852
|
+
const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$d();
|
|
2023
2853
|
return {
|
|
2024
2854
|
kind: 'Fragment',
|
|
2025
2855
|
version: VERSION$6,
|
|
2026
2856
|
private: [],
|
|
2027
2857
|
selections: [
|
|
2028
2858
|
{
|
|
2029
|
-
name: '
|
|
2859
|
+
name: 'productDetails',
|
|
2860
|
+
kind: 'Object',
|
|
2861
|
+
plural: true,
|
|
2862
|
+
selections: ProductDetailsOutputRepresentation__selections,
|
|
2863
|
+
required: false
|
|
2864
|
+
},
|
|
2865
|
+
{
|
|
2866
|
+
name: 'sectionDescription',
|
|
2030
2867
|
kind: 'Scalar',
|
|
2031
2868
|
required: false
|
|
2032
2869
|
},
|
|
2033
2870
|
{
|
|
2034
|
-
name: '
|
|
2871
|
+
name: 'sectionId',
|
|
2872
|
+
kind: 'Scalar',
|
|
2873
|
+
required: false
|
|
2874
|
+
},
|
|
2875
|
+
{
|
|
2876
|
+
name: 'sectionMaxCount',
|
|
2877
|
+
kind: 'Scalar',
|
|
2878
|
+
required: false
|
|
2879
|
+
},
|
|
2880
|
+
{
|
|
2881
|
+
name: 'sectionMinCount',
|
|
2882
|
+
kind: 'Scalar',
|
|
2883
|
+
required: false
|
|
2884
|
+
},
|
|
2885
|
+
{
|
|
2886
|
+
name: 'sectionName',
|
|
2887
|
+
kind: 'Scalar',
|
|
2888
|
+
required: false
|
|
2889
|
+
},
|
|
2890
|
+
{
|
|
2891
|
+
name: 'sequence',
|
|
2035
2892
|
kind: 'Scalar',
|
|
2036
2893
|
required: false
|
|
2037
2894
|
}
|
|
@@ -2039,29 +2896,99 @@ const select$c = function PreprocessorOutputRepresentationSelect() {
|
|
|
2039
2896
|
};
|
|
2040
2897
|
};
|
|
2041
2898
|
function equals$6(existing, incoming) {
|
|
2042
|
-
const
|
|
2043
|
-
const
|
|
2899
|
+
const existing_productDetails = existing.productDetails;
|
|
2900
|
+
const incoming_productDetails = incoming.productDetails;
|
|
2044
2901
|
// if at least one of these optionals is defined
|
|
2045
|
-
if (
|
|
2902
|
+
if (existing_productDetails !== undefined || incoming_productDetails !== undefined) {
|
|
2046
2903
|
// if one of these is not defined we know the other is defined and therefore
|
|
2047
2904
|
// not equal
|
|
2048
|
-
if (
|
|
2905
|
+
if (existing_productDetails === undefined || incoming_productDetails === undefined) {
|
|
2049
2906
|
return false;
|
|
2050
2907
|
}
|
|
2051
|
-
|
|
2908
|
+
const equals_productDetails_items = equalsArray(existing_productDetails, incoming_productDetails, (existing_productDetails_item, incoming_productDetails_item) => {
|
|
2909
|
+
if (!(equals$7(existing_productDetails_item, incoming_productDetails_item))) {
|
|
2910
|
+
return false;
|
|
2911
|
+
}
|
|
2912
|
+
});
|
|
2913
|
+
if (equals_productDetails_items === false) {
|
|
2052
2914
|
return false;
|
|
2053
2915
|
}
|
|
2054
2916
|
}
|
|
2055
|
-
const
|
|
2056
|
-
const
|
|
2917
|
+
const existing_sectionDescription = existing.sectionDescription;
|
|
2918
|
+
const incoming_sectionDescription = incoming.sectionDescription;
|
|
2057
2919
|
// if at least one of these optionals is defined
|
|
2058
|
-
if (
|
|
2920
|
+
if (existing_sectionDescription !== undefined || incoming_sectionDescription !== undefined) {
|
|
2059
2921
|
// if one of these is not defined we know the other is defined and therefore
|
|
2060
2922
|
// not equal
|
|
2061
|
-
if (
|
|
2923
|
+
if (existing_sectionDescription === undefined || incoming_sectionDescription === undefined) {
|
|
2062
2924
|
return false;
|
|
2063
2925
|
}
|
|
2064
|
-
if (!(
|
|
2926
|
+
if (!(existing_sectionDescription === incoming_sectionDescription)) {
|
|
2927
|
+
return false;
|
|
2928
|
+
}
|
|
2929
|
+
}
|
|
2930
|
+
const existing_sectionId = existing.sectionId;
|
|
2931
|
+
const incoming_sectionId = incoming.sectionId;
|
|
2932
|
+
// if at least one of these optionals is defined
|
|
2933
|
+
if (existing_sectionId !== undefined || incoming_sectionId !== undefined) {
|
|
2934
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2935
|
+
// not equal
|
|
2936
|
+
if (existing_sectionId === undefined || incoming_sectionId === undefined) {
|
|
2937
|
+
return false;
|
|
2938
|
+
}
|
|
2939
|
+
if (!(existing_sectionId === incoming_sectionId)) {
|
|
2940
|
+
return false;
|
|
2941
|
+
}
|
|
2942
|
+
}
|
|
2943
|
+
const existing_sectionMaxCount = existing.sectionMaxCount;
|
|
2944
|
+
const incoming_sectionMaxCount = incoming.sectionMaxCount;
|
|
2945
|
+
// if at least one of these optionals is defined
|
|
2946
|
+
if (existing_sectionMaxCount !== undefined || incoming_sectionMaxCount !== undefined) {
|
|
2947
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2948
|
+
// not equal
|
|
2949
|
+
if (existing_sectionMaxCount === undefined || incoming_sectionMaxCount === undefined) {
|
|
2950
|
+
return false;
|
|
2951
|
+
}
|
|
2952
|
+
if (!(existing_sectionMaxCount === incoming_sectionMaxCount)) {
|
|
2953
|
+
return false;
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
const existing_sectionMinCount = existing.sectionMinCount;
|
|
2957
|
+
const incoming_sectionMinCount = incoming.sectionMinCount;
|
|
2958
|
+
// if at least one of these optionals is defined
|
|
2959
|
+
if (existing_sectionMinCount !== undefined || incoming_sectionMinCount !== undefined) {
|
|
2960
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2961
|
+
// not equal
|
|
2962
|
+
if (existing_sectionMinCount === undefined || incoming_sectionMinCount === undefined) {
|
|
2963
|
+
return false;
|
|
2964
|
+
}
|
|
2965
|
+
if (!(existing_sectionMinCount === incoming_sectionMinCount)) {
|
|
2966
|
+
return false;
|
|
2967
|
+
}
|
|
2968
|
+
}
|
|
2969
|
+
const existing_sectionName = existing.sectionName;
|
|
2970
|
+
const incoming_sectionName = incoming.sectionName;
|
|
2971
|
+
// if at least one of these optionals is defined
|
|
2972
|
+
if (existing_sectionName !== undefined || incoming_sectionName !== undefined) {
|
|
2973
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2974
|
+
// not equal
|
|
2975
|
+
if (existing_sectionName === undefined || incoming_sectionName === undefined) {
|
|
2976
|
+
return false;
|
|
2977
|
+
}
|
|
2978
|
+
if (!(existing_sectionName === incoming_sectionName)) {
|
|
2979
|
+
return false;
|
|
2980
|
+
}
|
|
2981
|
+
}
|
|
2982
|
+
const existing_sequence = existing.sequence;
|
|
2983
|
+
const incoming_sequence = incoming.sequence;
|
|
2984
|
+
// if at least one of these optionals is defined
|
|
2985
|
+
if (existing_sequence !== undefined || incoming_sequence !== undefined) {
|
|
2986
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2987
|
+
// not equal
|
|
2988
|
+
if (existing_sequence === undefined || incoming_sequence === undefined) {
|
|
2989
|
+
return false;
|
|
2990
|
+
}
|
|
2991
|
+
if (!(existing_sequence === incoming_sequence)) {
|
|
2065
2992
|
return false;
|
|
2066
2993
|
}
|
|
2067
2994
|
}
|
|
@@ -2734,7 +3661,7 @@ function equals$5(existing, incoming) {
|
|
|
2734
3661
|
return true;
|
|
2735
3662
|
}
|
|
2736
3663
|
|
|
2737
|
-
const VERSION$4 = "
|
|
3664
|
+
const VERSION$4 = "f3d73b2bf4e29668882933f95c798ea8";
|
|
2738
3665
|
function validate$8(obj, path = 'SectionOutputRepresentation') {
|
|
2739
3666
|
const v_error = (() => {
|
|
2740
3667
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2806,6 +3733,34 @@ function validate$8(obj, path = 'SectionOutputRepresentation') {
|
|
|
2806
3733
|
return new TypeError(message);
|
|
2807
3734
|
}
|
|
2808
3735
|
}
|
|
3736
|
+
if (obj.id !== undefined) {
|
|
3737
|
+
const obj_id = obj.id;
|
|
3738
|
+
const path_id = path + '.id';
|
|
3739
|
+
let obj_id_union0 = null;
|
|
3740
|
+
const obj_id_union0_error = (() => {
|
|
3741
|
+
if (typeof obj_id !== 'string') {
|
|
3742
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3743
|
+
}
|
|
3744
|
+
})();
|
|
3745
|
+
if (obj_id_union0_error != null) {
|
|
3746
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
3747
|
+
}
|
|
3748
|
+
let obj_id_union1 = null;
|
|
3749
|
+
const obj_id_union1_error = (() => {
|
|
3750
|
+
if (obj_id !== null) {
|
|
3751
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3752
|
+
}
|
|
3753
|
+
})();
|
|
3754
|
+
if (obj_id_union1_error != null) {
|
|
3755
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
3756
|
+
}
|
|
3757
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
3758
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
3759
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3760
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3761
|
+
return new TypeError(message);
|
|
3762
|
+
}
|
|
3763
|
+
}
|
|
2809
3764
|
if (obj.name !== undefined) {
|
|
2810
3765
|
const obj_name = obj.name;
|
|
2811
3766
|
const path_name = path + '.name';
|
|
@@ -2857,6 +3812,11 @@ const select$a = function SectionOutputRepresentationSelect() {
|
|
|
2857
3812
|
kind: 'Scalar',
|
|
2858
3813
|
required: false
|
|
2859
3814
|
},
|
|
3815
|
+
{
|
|
3816
|
+
name: 'id',
|
|
3817
|
+
kind: 'Scalar',
|
|
3818
|
+
required: false
|
|
3819
|
+
},
|
|
2860
3820
|
{
|
|
2861
3821
|
name: 'name',
|
|
2862
3822
|
kind: 'Scalar',
|
|
@@ -2900,6 +3860,19 @@ function equals$4(existing, incoming) {
|
|
|
2900
3860
|
return false;
|
|
2901
3861
|
}
|
|
2902
3862
|
}
|
|
3863
|
+
const existing_id = existing.id;
|
|
3864
|
+
const incoming_id = incoming.id;
|
|
3865
|
+
// if at least one of these optionals is defined
|
|
3866
|
+
if (existing_id !== undefined || incoming_id !== undefined) {
|
|
3867
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3868
|
+
// not equal
|
|
3869
|
+
if (existing_id === undefined || incoming_id === undefined) {
|
|
3870
|
+
return false;
|
|
3871
|
+
}
|
|
3872
|
+
if (!(existing_id === incoming_id)) {
|
|
3873
|
+
return false;
|
|
3874
|
+
}
|
|
3875
|
+
}
|
|
2903
3876
|
const existing_name = existing.name;
|
|
2904
3877
|
const incoming_name = incoming.name;
|
|
2905
3878
|
// if at least one of these optionals is defined
|
|
@@ -2917,12 +3890,43 @@ function equals$4(existing, incoming) {
|
|
|
2917
3890
|
}
|
|
2918
3891
|
|
|
2919
3892
|
const TTL$3 = 6000;
|
|
2920
|
-
const VERSION$3 = "
|
|
3893
|
+
const VERSION$3 = "efbda596097be82303366398479b8fa4";
|
|
2921
3894
|
function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
2922
3895
|
const v_error = (() => {
|
|
2923
3896
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2924
3897
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2925
3898
|
}
|
|
3899
|
+
if (obj.agentAction !== undefined) {
|
|
3900
|
+
const obj_agentAction = obj.agentAction;
|
|
3901
|
+
const path_agentAction = path + '.agentAction';
|
|
3902
|
+
let obj_agentAction_union0 = null;
|
|
3903
|
+
const obj_agentAction_union0_error = (() => {
|
|
3904
|
+
const referencepath_agentActionValidationError = validate$i(obj_agentAction, path_agentAction);
|
|
3905
|
+
if (referencepath_agentActionValidationError !== null) {
|
|
3906
|
+
let message = 'Object doesn\'t match AgentActionOutputRepresentation (at "' + path_agentAction + '")\n';
|
|
3907
|
+
message += referencepath_agentActionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3908
|
+
return new TypeError(message);
|
|
3909
|
+
}
|
|
3910
|
+
})();
|
|
3911
|
+
if (obj_agentAction_union0_error != null) {
|
|
3912
|
+
obj_agentAction_union0 = obj_agentAction_union0_error.message;
|
|
3913
|
+
}
|
|
3914
|
+
let obj_agentAction_union1 = null;
|
|
3915
|
+
const obj_agentAction_union1_error = (() => {
|
|
3916
|
+
if (obj_agentAction !== null) {
|
|
3917
|
+
return new TypeError('Expected "null" but received "' + typeof obj_agentAction + '" (at "' + path_agentAction + '")');
|
|
3918
|
+
}
|
|
3919
|
+
})();
|
|
3920
|
+
if (obj_agentAction_union1_error != null) {
|
|
3921
|
+
obj_agentAction_union1 = obj_agentAction_union1_error.message;
|
|
3922
|
+
}
|
|
3923
|
+
if (obj_agentAction_union0 && obj_agentAction_union1) {
|
|
3924
|
+
let message = 'Object doesn\'t match union (at "' + path_agentAction + '")';
|
|
3925
|
+
message += '\n' + obj_agentAction_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3926
|
+
message += '\n' + obj_agentAction_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3927
|
+
return new TypeError(message);
|
|
3928
|
+
}
|
|
3929
|
+
}
|
|
2926
3930
|
if (obj.associatedArticles !== undefined) {
|
|
2927
3931
|
const obj_associatedArticles = obj.associatedArticles;
|
|
2928
3932
|
const path_associatedArticles = path + '.associatedArticles';
|
|
@@ -2934,7 +3938,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
2934
3938
|
const path_associatedArticles_item = path_associatedArticles + '[' + i + ']';
|
|
2935
3939
|
let obj_associatedArticles_item_union0 = null;
|
|
2936
3940
|
const obj_associatedArticles_item_union0_error = (() => {
|
|
2937
|
-
const referencepath_associatedArticles_itemValidationError = validate$
|
|
3941
|
+
const referencepath_associatedArticles_itemValidationError = validate$h(obj_associatedArticles_item, path_associatedArticles_item);
|
|
2938
3942
|
if (referencepath_associatedArticles_itemValidationError !== null) {
|
|
2939
3943
|
let message = 'Object doesn\'t match AssociatedArticleOutputRepresentation (at "' + path_associatedArticles_item + '")\n';
|
|
2940
3944
|
message += referencepath_associatedArticles_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3082,7 +4086,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
3082
4086
|
const path_eligibilityRules_item = path_eligibilityRules + '[' + i + ']';
|
|
3083
4087
|
let obj_eligibilityRules_item_union0 = null;
|
|
3084
4088
|
const obj_eligibilityRules_item_union0_error = (() => {
|
|
3085
|
-
const referencepath_eligibilityRules_itemValidationError = validate$
|
|
4089
|
+
const referencepath_eligibilityRules_itemValidationError = validate$g(obj_eligibilityRules_item, path_eligibilityRules_item);
|
|
3086
4090
|
if (referencepath_eligibilityRules_itemValidationError !== null) {
|
|
3087
4091
|
let message = 'Object doesn\'t match EligibilityRuleOutputRepresentation (at "' + path_eligibilityRules_item + '")\n';
|
|
3088
4092
|
message += referencepath_eligibilityRules_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3114,7 +4118,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
3114
4118
|
const path_fulfillmentFlow = path + '.fulfillmentFlow';
|
|
3115
4119
|
let obj_fulfillmentFlow_union0 = null;
|
|
3116
4120
|
const obj_fulfillmentFlow_union0_error = (() => {
|
|
3117
|
-
const referencepath_fulfillmentFlowValidationError = validate$
|
|
4121
|
+
const referencepath_fulfillmentFlowValidationError = validate$f(obj_fulfillmentFlow, path_fulfillmentFlow);
|
|
3118
4122
|
if (referencepath_fulfillmentFlowValidationError !== null) {
|
|
3119
4123
|
let message = 'Object doesn\'t match FulfillmentFlowOutputRepresentation (at "' + path_fulfillmentFlow + '")\n';
|
|
3120
4124
|
message += referencepath_fulfillmentFlowValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3145,7 +4149,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
3145
4149
|
const path_intakeForm = path + '.intakeForm';
|
|
3146
4150
|
let obj_intakeForm_union0 = null;
|
|
3147
4151
|
const obj_intakeForm_union0_error = (() => {
|
|
3148
|
-
const referencepath_intakeFormValidationError = validate$
|
|
4152
|
+
const referencepath_intakeFormValidationError = validate$e(obj_intakeForm, path_intakeForm);
|
|
3149
4153
|
if (referencepath_intakeFormValidationError !== null) {
|
|
3150
4154
|
let message = 'Object doesn\'t match IntakeFormOutputRepresentation (at "' + path_intakeForm + '")\n';
|
|
3151
4155
|
message += referencepath_intakeFormValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3182,7 +4186,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
3182
4186
|
const path_integrations_item = path_integrations + '[' + i + ']';
|
|
3183
4187
|
let obj_integrations_item_union0 = null;
|
|
3184
4188
|
const obj_integrations_item_union0_error = (() => {
|
|
3185
|
-
const referencepath_integrations_itemValidationError = validate$
|
|
4189
|
+
const referencepath_integrations_itemValidationError = validate$d(obj_integrations_item, path_integrations_item);
|
|
3186
4190
|
if (referencepath_integrations_itemValidationError !== null) {
|
|
3187
4191
|
let message = 'Object doesn\'t match IntegrationDefinitionOutputPresentation (at "' + path_integrations_item + '")\n';
|
|
3188
4192
|
message += referencepath_integrations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3276,7 +4280,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
3276
4280
|
const path_preProcessors_item = path_preProcessors + '[' + i + ']';
|
|
3277
4281
|
let obj_preProcessors_item_union0 = null;
|
|
3278
4282
|
const obj_preProcessors_item_union0_error = (() => {
|
|
3279
|
-
const referencepath_preProcessors_itemValidationError = validate$
|
|
4283
|
+
const referencepath_preProcessors_itemValidationError = validate$c(obj_preProcessors_item, path_preProcessors_item);
|
|
3280
4284
|
if (referencepath_preProcessors_itemValidationError !== null) {
|
|
3281
4285
|
let message = 'Object doesn\'t match PreprocessorOutputRepresentation (at "' + path_preProcessors_item + '")\n';
|
|
3282
4286
|
message += referencepath_preProcessors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3331,6 +4335,44 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
3331
4335
|
return new TypeError(message);
|
|
3332
4336
|
}
|
|
3333
4337
|
}
|
|
4338
|
+
if (obj.productRequests !== undefined) {
|
|
4339
|
+
const obj_productRequests = obj.productRequests;
|
|
4340
|
+
const path_productRequests = path + '.productRequests';
|
|
4341
|
+
if (!ArrayIsArray(obj_productRequests)) {
|
|
4342
|
+
return new TypeError('Expected "array" but received "' + typeof obj_productRequests + '" (at "' + path_productRequests + '")');
|
|
4343
|
+
}
|
|
4344
|
+
for (let i = 0; i < obj_productRequests.length; i++) {
|
|
4345
|
+
const obj_productRequests_item = obj_productRequests[i];
|
|
4346
|
+
const path_productRequests_item = path_productRequests + '[' + i + ']';
|
|
4347
|
+
let obj_productRequests_item_union0 = null;
|
|
4348
|
+
const obj_productRequests_item_union0_error = (() => {
|
|
4349
|
+
const referencepath_productRequests_itemValidationError = validate$a(obj_productRequests_item, path_productRequests_item);
|
|
4350
|
+
if (referencepath_productRequests_itemValidationError !== null) {
|
|
4351
|
+
let message = 'Object doesn\'t match ProductRequestOutputRepresentation (at "' + path_productRequests_item + '")\n';
|
|
4352
|
+
message += referencepath_productRequests_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4353
|
+
return new TypeError(message);
|
|
4354
|
+
}
|
|
4355
|
+
})();
|
|
4356
|
+
if (obj_productRequests_item_union0_error != null) {
|
|
4357
|
+
obj_productRequests_item_union0 = obj_productRequests_item_union0_error.message;
|
|
4358
|
+
}
|
|
4359
|
+
let obj_productRequests_item_union1 = null;
|
|
4360
|
+
const obj_productRequests_item_union1_error = (() => {
|
|
4361
|
+
if (obj_productRequests_item !== null) {
|
|
4362
|
+
return new TypeError('Expected "null" but received "' + typeof obj_productRequests_item + '" (at "' + path_productRequests_item + '")');
|
|
4363
|
+
}
|
|
4364
|
+
})();
|
|
4365
|
+
if (obj_productRequests_item_union1_error != null) {
|
|
4366
|
+
obj_productRequests_item_union1 = obj_productRequests_item_union1_error.message;
|
|
4367
|
+
}
|
|
4368
|
+
if (obj_productRequests_item_union0 && obj_productRequests_item_union1) {
|
|
4369
|
+
let message = 'Object doesn\'t match union (at "' + path_productRequests_item + '")';
|
|
4370
|
+
message += '\n' + obj_productRequests_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4371
|
+
message += '\n' + obj_productRequests_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4372
|
+
return new TypeError(message);
|
|
4373
|
+
}
|
|
4374
|
+
}
|
|
4375
|
+
}
|
|
3334
4376
|
if (obj.section !== undefined) {
|
|
3335
4377
|
const obj_section = obj.section;
|
|
3336
4378
|
const path_section = path + '.section';
|
|
@@ -3362,6 +4404,34 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
3362
4404
|
return new TypeError(message);
|
|
3363
4405
|
}
|
|
3364
4406
|
}
|
|
4407
|
+
if (obj.targetObject !== undefined) {
|
|
4408
|
+
const obj_targetObject = obj.targetObject;
|
|
4409
|
+
const path_targetObject = path + '.targetObject';
|
|
4410
|
+
let obj_targetObject_union0 = null;
|
|
4411
|
+
const obj_targetObject_union0_error = (() => {
|
|
4412
|
+
if (typeof obj_targetObject !== 'string') {
|
|
4413
|
+
return new TypeError('Expected "string" but received "' + typeof obj_targetObject + '" (at "' + path_targetObject + '")');
|
|
4414
|
+
}
|
|
4415
|
+
})();
|
|
4416
|
+
if (obj_targetObject_union0_error != null) {
|
|
4417
|
+
obj_targetObject_union0 = obj_targetObject_union0_error.message;
|
|
4418
|
+
}
|
|
4419
|
+
let obj_targetObject_union1 = null;
|
|
4420
|
+
const obj_targetObject_union1_error = (() => {
|
|
4421
|
+
if (obj_targetObject !== null) {
|
|
4422
|
+
return new TypeError('Expected "null" but received "' + typeof obj_targetObject + '" (at "' + path_targetObject + '")');
|
|
4423
|
+
}
|
|
4424
|
+
})();
|
|
4425
|
+
if (obj_targetObject_union1_error != null) {
|
|
4426
|
+
obj_targetObject_union1 = obj_targetObject_union1_error.message;
|
|
4427
|
+
}
|
|
4428
|
+
if (obj_targetObject_union0 && obj_targetObject_union1) {
|
|
4429
|
+
let message = 'Object doesn\'t match union (at "' + path_targetObject + '")';
|
|
4430
|
+
message += '\n' + obj_targetObject_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4431
|
+
message += '\n' + obj_targetObject_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4432
|
+
return new TypeError(message);
|
|
4433
|
+
}
|
|
4434
|
+
}
|
|
3365
4435
|
if (obj.usedFor !== undefined) {
|
|
3366
4436
|
const obj_usedFor = obj.usedFor;
|
|
3367
4437
|
const path_usedFor = path + '.usedFor';
|
|
@@ -3407,18 +4477,27 @@ function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
|
3407
4477
|
return input;
|
|
3408
4478
|
}
|
|
3409
4479
|
const select$9 = function CatalogItemOutputRepresentationSelect() {
|
|
3410
|
-
const { selections:
|
|
3411
|
-
const { selections:
|
|
3412
|
-
const { selections:
|
|
3413
|
-
const { selections:
|
|
3414
|
-
const { selections:
|
|
3415
|
-
const { selections:
|
|
4480
|
+
const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$k();
|
|
4481
|
+
const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$j();
|
|
4482
|
+
const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$i();
|
|
4483
|
+
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$h();
|
|
4484
|
+
const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$g();
|
|
4485
|
+
const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$f();
|
|
4486
|
+
const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$e();
|
|
4487
|
+
const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$c();
|
|
3416
4488
|
const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$a();
|
|
3417
4489
|
return {
|
|
3418
4490
|
kind: 'Fragment',
|
|
3419
4491
|
version: VERSION$3,
|
|
3420
4492
|
private: [],
|
|
3421
4493
|
selections: [
|
|
4494
|
+
{
|
|
4495
|
+
name: 'agentAction',
|
|
4496
|
+
kind: 'Object',
|
|
4497
|
+
nullable: true,
|
|
4498
|
+
selections: AgentActionOutputRepresentation__selections,
|
|
4499
|
+
required: false
|
|
4500
|
+
},
|
|
3422
4501
|
{
|
|
3423
4502
|
name: 'associatedArticles',
|
|
3424
4503
|
kind: 'Object',
|
|
@@ -3499,6 +4578,14 @@ const select$9 = function CatalogItemOutputRepresentationSelect() {
|
|
|
3499
4578
|
kind: 'Scalar',
|
|
3500
4579
|
required: false
|
|
3501
4580
|
},
|
|
4581
|
+
{
|
|
4582
|
+
name: 'productRequests',
|
|
4583
|
+
kind: 'Object',
|
|
4584
|
+
nullable: true,
|
|
4585
|
+
plural: true,
|
|
4586
|
+
selections: ProductRequestOutputRepresentation__selections,
|
|
4587
|
+
required: false
|
|
4588
|
+
},
|
|
3502
4589
|
{
|
|
3503
4590
|
name: 'section',
|
|
3504
4591
|
kind: 'Object',
|
|
@@ -3506,6 +4593,11 @@ const select$9 = function CatalogItemOutputRepresentationSelect() {
|
|
|
3506
4593
|
selections: SectionOutputRepresentation__selections,
|
|
3507
4594
|
required: false
|
|
3508
4595
|
},
|
|
4596
|
+
{
|
|
4597
|
+
name: 'targetObject',
|
|
4598
|
+
kind: 'Scalar',
|
|
4599
|
+
required: false
|
|
4600
|
+
},
|
|
3509
4601
|
{
|
|
3510
4602
|
name: 'usedFor',
|
|
3511
4603
|
kind: 'Scalar',
|
|
@@ -3515,6 +4607,22 @@ const select$9 = function CatalogItemOutputRepresentationSelect() {
|
|
|
3515
4607
|
};
|
|
3516
4608
|
};
|
|
3517
4609
|
function equals$3(existing, incoming) {
|
|
4610
|
+
const existing_agentAction = existing.agentAction;
|
|
4611
|
+
const incoming_agentAction = incoming.agentAction;
|
|
4612
|
+
// if at least one of these optionals is defined
|
|
4613
|
+
if (existing_agentAction !== undefined || incoming_agentAction !== undefined) {
|
|
4614
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4615
|
+
// not equal
|
|
4616
|
+
if (existing_agentAction === undefined || incoming_agentAction === undefined) {
|
|
4617
|
+
return false;
|
|
4618
|
+
}
|
|
4619
|
+
if (!(existing_agentAction === incoming_agentAction
|
|
4620
|
+
|| (existing_agentAction != null &&
|
|
4621
|
+
incoming_agentAction != null &&
|
|
4622
|
+
equals$e(existing_agentAction, incoming_agentAction)))) {
|
|
4623
|
+
return false;
|
|
4624
|
+
}
|
|
4625
|
+
}
|
|
3518
4626
|
const existing_associatedArticles = existing.associatedArticles;
|
|
3519
4627
|
const incoming_associatedArticles = incoming.associatedArticles;
|
|
3520
4628
|
// if at least one of these optionals is defined
|
|
@@ -3528,7 +4636,7 @@ function equals$3(existing, incoming) {
|
|
|
3528
4636
|
if (!(existing_associatedArticles_item === incoming_associatedArticles_item
|
|
3529
4637
|
|| (existing_associatedArticles_item != null &&
|
|
3530
4638
|
incoming_associatedArticles_item != null &&
|
|
3531
|
-
equals$
|
|
4639
|
+
equals$d(existing_associatedArticles_item, incoming_associatedArticles_item)))) {
|
|
3532
4640
|
return false;
|
|
3533
4641
|
}
|
|
3534
4642
|
});
|
|
@@ -3593,7 +4701,7 @@ function equals$3(existing, incoming) {
|
|
|
3593
4701
|
if (!(existing_eligibilityRules_item === incoming_eligibilityRules_item
|
|
3594
4702
|
|| (existing_eligibilityRules_item != null &&
|
|
3595
4703
|
incoming_eligibilityRules_item != null &&
|
|
3596
|
-
equals$
|
|
4704
|
+
equals$c(existing_eligibilityRules_item, incoming_eligibilityRules_item)))) {
|
|
3597
4705
|
return false;
|
|
3598
4706
|
}
|
|
3599
4707
|
});
|
|
@@ -3613,7 +4721,7 @@ function equals$3(existing, incoming) {
|
|
|
3613
4721
|
if (!(existing_fulfillmentFlow === incoming_fulfillmentFlow
|
|
3614
4722
|
|| (existing_fulfillmentFlow != null &&
|
|
3615
4723
|
incoming_fulfillmentFlow != null &&
|
|
3616
|
-
equals$
|
|
4724
|
+
equals$b(existing_fulfillmentFlow, incoming_fulfillmentFlow)))) {
|
|
3617
4725
|
return false;
|
|
3618
4726
|
}
|
|
3619
4727
|
}
|
|
@@ -3629,7 +4737,7 @@ function equals$3(existing, incoming) {
|
|
|
3629
4737
|
if (!(existing_intakeForm === incoming_intakeForm
|
|
3630
4738
|
|| (existing_intakeForm != null &&
|
|
3631
4739
|
incoming_intakeForm != null &&
|
|
3632
|
-
equals$
|
|
4740
|
+
equals$a(existing_intakeForm, incoming_intakeForm)))) {
|
|
3633
4741
|
return false;
|
|
3634
4742
|
}
|
|
3635
4743
|
}
|
|
@@ -3646,7 +4754,7 @@ function equals$3(existing, incoming) {
|
|
|
3646
4754
|
if (!(existing_integrations_item === incoming_integrations_item
|
|
3647
4755
|
|| (existing_integrations_item != null &&
|
|
3648
4756
|
incoming_integrations_item != null &&
|
|
3649
|
-
equals$
|
|
4757
|
+
equals$9(existing_integrations_item, incoming_integrations_item)))) {
|
|
3650
4758
|
return false;
|
|
3651
4759
|
}
|
|
3652
4760
|
});
|
|
@@ -3693,7 +4801,7 @@ function equals$3(existing, incoming) {
|
|
|
3693
4801
|
if (!(existing_preProcessors_item === incoming_preProcessors_item
|
|
3694
4802
|
|| (existing_preProcessors_item != null &&
|
|
3695
4803
|
incoming_preProcessors_item != null &&
|
|
3696
|
-
equals$
|
|
4804
|
+
equals$8(existing_preProcessors_item, incoming_preProcessors_item)))) {
|
|
3697
4805
|
return false;
|
|
3698
4806
|
}
|
|
3699
4807
|
});
|
|
@@ -3714,6 +4822,27 @@ function equals$3(existing, incoming) {
|
|
|
3714
4822
|
return false;
|
|
3715
4823
|
}
|
|
3716
4824
|
}
|
|
4825
|
+
const existing_productRequests = existing.productRequests;
|
|
4826
|
+
const incoming_productRequests = incoming.productRequests;
|
|
4827
|
+
// if at least one of these optionals is defined
|
|
4828
|
+
if (existing_productRequests !== undefined || incoming_productRequests !== undefined) {
|
|
4829
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4830
|
+
// not equal
|
|
4831
|
+
if (existing_productRequests === undefined || incoming_productRequests === undefined) {
|
|
4832
|
+
return false;
|
|
4833
|
+
}
|
|
4834
|
+
const equals_productRequests_items = equalsArray(existing_productRequests, incoming_productRequests, (existing_productRequests_item, incoming_productRequests_item) => {
|
|
4835
|
+
if (!(existing_productRequests_item === incoming_productRequests_item
|
|
4836
|
+
|| (existing_productRequests_item != null &&
|
|
4837
|
+
incoming_productRequests_item != null &&
|
|
4838
|
+
equals$6(existing_productRequests_item, incoming_productRequests_item)))) {
|
|
4839
|
+
return false;
|
|
4840
|
+
}
|
|
4841
|
+
});
|
|
4842
|
+
if (equals_productRequests_items === false) {
|
|
4843
|
+
return false;
|
|
4844
|
+
}
|
|
4845
|
+
}
|
|
3717
4846
|
const existing_section = existing.section;
|
|
3718
4847
|
const incoming_section = incoming.section;
|
|
3719
4848
|
// if at least one of these optionals is defined
|
|
@@ -3730,6 +4859,19 @@ function equals$3(existing, incoming) {
|
|
|
3730
4859
|
return false;
|
|
3731
4860
|
}
|
|
3732
4861
|
}
|
|
4862
|
+
const existing_targetObject = existing.targetObject;
|
|
4863
|
+
const incoming_targetObject = incoming.targetObject;
|
|
4864
|
+
// if at least one of these optionals is defined
|
|
4865
|
+
if (existing_targetObject !== undefined || incoming_targetObject !== undefined) {
|
|
4866
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4867
|
+
// not equal
|
|
4868
|
+
if (existing_targetObject === undefined || incoming_targetObject === undefined) {
|
|
4869
|
+
return false;
|
|
4870
|
+
}
|
|
4871
|
+
if (!(existing_targetObject === incoming_targetObject)) {
|
|
4872
|
+
return false;
|
|
4873
|
+
}
|
|
4874
|
+
}
|
|
3733
4875
|
const existing_usedFor = existing.usedFor;
|
|
3734
4876
|
const incoming_usedFor = incoming.usedFor;
|
|
3735
4877
|
// if at least one of these optionals is defined
|
|
@@ -3806,6 +4948,7 @@ function createResourceRequest$5(config) {
|
|
|
3806
4948
|
|
|
3807
4949
|
const adapterName$5 = 'createCatalogItem';
|
|
3808
4950
|
const createCatalogItem_ConfigPropertyMetadata = [
|
|
4951
|
+
generateParamConfigMetadata('agentAction', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3809
4952
|
generateParamConfigMetadata('associatedArticles', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3810
4953
|
generateParamConfigMetadata('attributes', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3811
4954
|
generateParamConfigMetadata('contextDefinitionDevNameOrId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -3818,18 +4961,28 @@ const createCatalogItem_ConfigPropertyMetadata = [
|
|
|
3818
4961
|
generateParamConfigMetadata('isActive', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3819
4962
|
generateParamConfigMetadata('name', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3820
4963
|
generateParamConfigMetadata('preProcessors', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4964
|
+
generateParamConfigMetadata('productRequests', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4965
|
+
generateParamConfigMetadata('targetObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3821
4966
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3822
4967
|
];
|
|
3823
4968
|
const createCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createCatalogItem_ConfigPropertyMetadata);
|
|
3824
4969
|
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$6(createCatalogItem_ConfigPropertyMetadata);
|
|
3825
4970
|
function typeCheckConfig$5(untrustedConfig) {
|
|
3826
4971
|
const config = {};
|
|
4972
|
+
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
4973
|
+
const referenceAgentActionInputRepresentationValidationError = validate$r(untrustedConfig_agentAction);
|
|
4974
|
+
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
4975
|
+
config.agentAction = untrustedConfig_agentAction;
|
|
4976
|
+
}
|
|
4977
|
+
if (untrustedConfig_agentAction === null) {
|
|
4978
|
+
config.agentAction = untrustedConfig_agentAction;
|
|
4979
|
+
}
|
|
3827
4980
|
const untrustedConfig_associatedArticles = untrustedConfig.associatedArticles;
|
|
3828
4981
|
if (ArrayIsArray$1(untrustedConfig_associatedArticles)) {
|
|
3829
4982
|
const untrustedConfig_associatedArticles_array = [];
|
|
3830
4983
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
3831
4984
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
3832
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
4985
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$q(untrustedConfig_associatedArticles_item);
|
|
3833
4986
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
3834
4987
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
3835
4988
|
}
|
|
@@ -3844,7 +4997,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
3844
4997
|
const untrustedConfig_attributes_array = [];
|
|
3845
4998
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
3846
4999
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
3847
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
5000
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$p(untrustedConfig_attributes_item);
|
|
3848
5001
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
3849
5002
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
3850
5003
|
}
|
|
@@ -3880,7 +5033,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
3880
5033
|
const untrustedConfig_eligibilityRules_array = [];
|
|
3881
5034
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
3882
5035
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
3883
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
5036
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$o(untrustedConfig_eligibilityRules_item);
|
|
3884
5037
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
3885
5038
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
3886
5039
|
}
|
|
@@ -3891,7 +5044,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
3891
5044
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
3892
5045
|
}
|
|
3893
5046
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
3894
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
5047
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$n(untrustedConfig_fulfillmentFlow);
|
|
3895
5048
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
3896
5049
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
3897
5050
|
}
|
|
@@ -3899,7 +5052,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
3899
5052
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
3900
5053
|
}
|
|
3901
5054
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
3902
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
5055
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$m(untrustedConfig_intakeForm);
|
|
3903
5056
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
3904
5057
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
3905
5058
|
}
|
|
@@ -3911,7 +5064,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
3911
5064
|
const untrustedConfig_integrations_array = [];
|
|
3912
5065
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
3913
5066
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
3914
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
5067
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$l(untrustedConfig_integrations_item);
|
|
3915
5068
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
3916
5069
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
3917
5070
|
}
|
|
@@ -3940,7 +5093,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
3940
5093
|
const untrustedConfig_preProcessors_array = [];
|
|
3941
5094
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
3942
5095
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
3943
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
5096
|
+
const referencePreprocessorInputRepresentationValidationError = validate$k(untrustedConfig_preProcessors_item);
|
|
3944
5097
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
3945
5098
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
3946
5099
|
}
|
|
@@ -3950,6 +5103,28 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
3950
5103
|
}
|
|
3951
5104
|
config.preProcessors = untrustedConfig_preProcessors_array;
|
|
3952
5105
|
}
|
|
5106
|
+
const untrustedConfig_productRequests = untrustedConfig.productRequests;
|
|
5107
|
+
if (ArrayIsArray$1(untrustedConfig_productRequests)) {
|
|
5108
|
+
const untrustedConfig_productRequests_array = [];
|
|
5109
|
+
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
5110
|
+
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
5111
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$j(untrustedConfig_productRequests_item);
|
|
5112
|
+
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
5113
|
+
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
5114
|
+
}
|
|
5115
|
+
if (untrustedConfig_productRequests_item === null) {
|
|
5116
|
+
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
5117
|
+
}
|
|
5118
|
+
}
|
|
5119
|
+
config.productRequests = untrustedConfig_productRequests_array;
|
|
5120
|
+
}
|
|
5121
|
+
const untrustedConfig_targetObject = untrustedConfig.targetObject;
|
|
5122
|
+
if (typeof untrustedConfig_targetObject === 'string') {
|
|
5123
|
+
config.targetObject = untrustedConfig_targetObject;
|
|
5124
|
+
}
|
|
5125
|
+
if (untrustedConfig_targetObject === null) {
|
|
5126
|
+
config.targetObject = untrustedConfig_targetObject;
|
|
5127
|
+
}
|
|
3953
5128
|
const untrustedConfig_usedFor = untrustedConfig.usedFor;
|
|
3954
5129
|
if (typeof untrustedConfig_usedFor === 'string') {
|
|
3955
5130
|
config.usedFor = untrustedConfig_usedFor;
|
|
@@ -4719,6 +5894,7 @@ function createResourceRequest$1(config) {
|
|
|
4719
5894
|
const adapterName$1 = 'updateCatalogItem';
|
|
4720
5895
|
const updateCatalogItem_ConfigPropertyMetadata = [
|
|
4721
5896
|
generateParamConfigMetadata('catalogItemId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5897
|
+
generateParamConfigMetadata('agentAction', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4722
5898
|
generateParamConfigMetadata('productId', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4723
5899
|
generateParamConfigMetadata('associatedArticles', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4724
5900
|
generateParamConfigMetadata('attributes', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
@@ -4732,6 +5908,8 @@ const updateCatalogItem_ConfigPropertyMetadata = [
|
|
|
4732
5908
|
generateParamConfigMetadata('isActive', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4733
5909
|
generateParamConfigMetadata('name', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4734
5910
|
generateParamConfigMetadata('preProcessors', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5911
|
+
generateParamConfigMetadata('productRequests', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
5912
|
+
generateParamConfigMetadata('targetObject', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4735
5913
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4736
5914
|
];
|
|
4737
5915
|
const updateCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateCatalogItem_ConfigPropertyMetadata);
|
|
@@ -4739,6 +5917,14 @@ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$6(updateCatalo
|
|
|
4739
5917
|
function typeCheckConfig$1(untrustedConfig) {
|
|
4740
5918
|
const config = {};
|
|
4741
5919
|
typeCheckConfig$6(untrustedConfig, config, updateCatalogItem_ConfigPropertyMetadata);
|
|
5920
|
+
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
5921
|
+
const referenceAgentActionInputRepresentationValidationError = validate$r(untrustedConfig_agentAction);
|
|
5922
|
+
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
5923
|
+
config.agentAction = untrustedConfig_agentAction;
|
|
5924
|
+
}
|
|
5925
|
+
if (untrustedConfig_agentAction === null) {
|
|
5926
|
+
config.agentAction = untrustedConfig_agentAction;
|
|
5927
|
+
}
|
|
4742
5928
|
const untrustedConfig_productId = untrustedConfig.productId;
|
|
4743
5929
|
if (typeof untrustedConfig_productId === 'string') {
|
|
4744
5930
|
config.productId = untrustedConfig_productId;
|
|
@@ -4751,7 +5937,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
4751
5937
|
const untrustedConfig_associatedArticles_array = [];
|
|
4752
5938
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
4753
5939
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
4754
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
5940
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$q(untrustedConfig_associatedArticles_item);
|
|
4755
5941
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
4756
5942
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
4757
5943
|
}
|
|
@@ -4766,7 +5952,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
4766
5952
|
const untrustedConfig_attributes_array = [];
|
|
4767
5953
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
4768
5954
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
4769
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
5955
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$p(untrustedConfig_attributes_item);
|
|
4770
5956
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
4771
5957
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
4772
5958
|
}
|
|
@@ -4802,7 +5988,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
4802
5988
|
const untrustedConfig_eligibilityRules_array = [];
|
|
4803
5989
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
4804
5990
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
4805
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
5991
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$o(untrustedConfig_eligibilityRules_item);
|
|
4806
5992
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
4807
5993
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
4808
5994
|
}
|
|
@@ -4813,7 +5999,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
4813
5999
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
4814
6000
|
}
|
|
4815
6001
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
4816
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
6002
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$n(untrustedConfig_fulfillmentFlow);
|
|
4817
6003
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
4818
6004
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
4819
6005
|
}
|
|
@@ -4821,7 +6007,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
4821
6007
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
4822
6008
|
}
|
|
4823
6009
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
4824
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
6010
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$m(untrustedConfig_intakeForm);
|
|
4825
6011
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
4826
6012
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
4827
6013
|
}
|
|
@@ -4833,7 +6019,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
4833
6019
|
const untrustedConfig_integrations_array = [];
|
|
4834
6020
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
4835
6021
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
4836
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
6022
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$l(untrustedConfig_integrations_item);
|
|
4837
6023
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
4838
6024
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
4839
6025
|
}
|
|
@@ -4862,7 +6048,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
4862
6048
|
const untrustedConfig_preProcessors_array = [];
|
|
4863
6049
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
4864
6050
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
4865
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
6051
|
+
const referencePreprocessorInputRepresentationValidationError = validate$k(untrustedConfig_preProcessors_item);
|
|
4866
6052
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
4867
6053
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
4868
6054
|
}
|
|
@@ -4872,6 +6058,28 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
4872
6058
|
}
|
|
4873
6059
|
config.preProcessors = untrustedConfig_preProcessors_array;
|
|
4874
6060
|
}
|
|
6061
|
+
const untrustedConfig_productRequests = untrustedConfig.productRequests;
|
|
6062
|
+
if (ArrayIsArray$1(untrustedConfig_productRequests)) {
|
|
6063
|
+
const untrustedConfig_productRequests_array = [];
|
|
6064
|
+
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
6065
|
+
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
6066
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$j(untrustedConfig_productRequests_item);
|
|
6067
|
+
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
6068
|
+
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
6069
|
+
}
|
|
6070
|
+
if (untrustedConfig_productRequests_item === null) {
|
|
6071
|
+
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
6072
|
+
}
|
|
6073
|
+
}
|
|
6074
|
+
config.productRequests = untrustedConfig_productRequests_array;
|
|
6075
|
+
}
|
|
6076
|
+
const untrustedConfig_targetObject = untrustedConfig.targetObject;
|
|
6077
|
+
if (typeof untrustedConfig_targetObject === 'string') {
|
|
6078
|
+
config.targetObject = untrustedConfig_targetObject;
|
|
6079
|
+
}
|
|
6080
|
+
if (untrustedConfig_targetObject === null) {
|
|
6081
|
+
config.targetObject = untrustedConfig_targetObject;
|
|
6082
|
+
}
|
|
4875
6083
|
const untrustedConfig_usedFor = untrustedConfig.usedFor;
|
|
4876
6084
|
if (typeof untrustedConfig_usedFor === 'string') {
|
|
4877
6085
|
config.usedFor = untrustedConfig_usedFor;
|
|
@@ -5206,4 +6414,4 @@ withDefaultLuvio((luvio) => {
|
|
|
5206
6414
|
});
|
|
5207
6415
|
|
|
5208
6416
|
export { createCatalogItem, generateOmniScript, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getCatalogItem, getCatalogItem_imperative, updateCatalogItem, updateEpcCategories };
|
|
5209
|
-
// version: 1.
|
|
6417
|
+
// version: 1.344.0-455da7ef74
|