@salesforce/lds-adapters-service-ecm 1.323.0 → 1.324.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 +101 -209
- package/dist/es/es2018/types/src/generated/types/CatalogItemAttributeInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/CatalogItemCreateInputRepresentation.d.ts +1 -37
- package/dist/es/es2018/types/src/generated/types/CatalogItemInputRepresentation.d.ts +61 -0
- package/dist/es/es2018/types/src/generated/types/CatalogItemOutputRepresentation.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/types/CatalogItemUpdateInputRepresentation.d.ts +1 -37
- package/dist/es/es2018/types/src/generated/types/FulfillmentFlowOutputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/FulfillmentFowInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/PreprocessorInputRepresentation.d.ts +31 -0
- package/package.json +3 -3
- package/sfdc/index.js +102 -210
- package/src/raml/api.raml +63 -60
|
@@ -149,105 +149,17 @@ function createLink(ref) {
|
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
function validate$
|
|
152
|
+
function validate$7(obj, path = 'CatalogItemCreateInputRepresentation') {
|
|
153
153
|
const v_error = (() => {
|
|
154
154
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
155
155
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
156
156
|
}
|
|
157
|
-
const obj_associatedArticles = obj.associatedArticles;
|
|
158
|
-
const path_associatedArticles = path + '.associatedArticles';
|
|
159
|
-
if (!ArrayIsArray(obj_associatedArticles)) {
|
|
160
|
-
return new TypeError('Expected "array" but received "' + typeof obj_associatedArticles + '" (at "' + path_associatedArticles + '")');
|
|
161
|
-
}
|
|
162
|
-
for (let i = 0; i < obj_associatedArticles.length; i++) {
|
|
163
|
-
const obj_associatedArticles_item = obj_associatedArticles[i];
|
|
164
|
-
const path_associatedArticles_item = path_associatedArticles + '[' + i + ']';
|
|
165
|
-
if (typeof obj_associatedArticles_item !== 'object' || ArrayIsArray(obj_associatedArticles_item) || obj_associatedArticles_item === null) {
|
|
166
|
-
return new TypeError('Expected "object" but received "' + typeof obj_associatedArticles_item + '" (at "' + path_associatedArticles_item + '")');
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
const obj_attributes = obj.attributes;
|
|
170
|
-
const path_attributes = path + '.attributes';
|
|
171
|
-
if (!ArrayIsArray(obj_attributes)) {
|
|
172
|
-
return new TypeError('Expected "array" but received "' + typeof obj_attributes + '" (at "' + path_attributes + '")');
|
|
173
|
-
}
|
|
174
|
-
for (let i = 0; i < obj_attributes.length; i++) {
|
|
175
|
-
const obj_attributes_item = obj_attributes[i];
|
|
176
|
-
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
177
|
-
if (typeof obj_attributes_item !== 'object' || ArrayIsArray(obj_attributes_item) || obj_attributes_item === null) {
|
|
178
|
-
return new TypeError('Expected "object" but received "' + typeof obj_attributes_item + '" (at "' + path_attributes_item + '")');
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
const obj_contextDefinitionId = obj.contextDefinitionId;
|
|
182
|
-
const path_contextDefinitionId = path + '.contextDefinitionId';
|
|
183
|
-
if (typeof obj_contextDefinitionId !== 'string') {
|
|
184
|
-
return new TypeError('Expected "string" but received "' + typeof obj_contextDefinitionId + '" (at "' + path_contextDefinitionId + '")');
|
|
185
|
-
}
|
|
186
|
-
const obj_description = obj.description;
|
|
187
|
-
const path_description = path + '.description';
|
|
188
|
-
if (typeof obj_description !== 'string') {
|
|
189
|
-
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
190
|
-
}
|
|
191
|
-
const obj_eligibilityRules = obj.eligibilityRules;
|
|
192
|
-
const path_eligibilityRules = path + '.eligibilityRules';
|
|
193
|
-
if (!ArrayIsArray(obj_eligibilityRules)) {
|
|
194
|
-
return new TypeError('Expected "array" but received "' + typeof obj_eligibilityRules + '" (at "' + path_eligibilityRules + '")');
|
|
195
|
-
}
|
|
196
|
-
for (let i = 0; i < obj_eligibilityRules.length; i++) {
|
|
197
|
-
const obj_eligibilityRules_item = obj_eligibilityRules[i];
|
|
198
|
-
const path_eligibilityRules_item = path_eligibilityRules + '[' + i + ']';
|
|
199
|
-
if (typeof obj_eligibilityRules_item !== 'object' || ArrayIsArray(obj_eligibilityRules_item) || obj_eligibilityRules_item === null) {
|
|
200
|
-
return new TypeError('Expected "object" but received "' + typeof obj_eligibilityRules_item + '" (at "' + path_eligibilityRules_item + '")');
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
const obj_fulfillmentFlowId = obj.fulfillmentFlowId;
|
|
204
|
-
const path_fulfillmentFlowId = path + '.fulfillmentFlowId';
|
|
205
|
-
if (typeof obj_fulfillmentFlowId !== 'string') {
|
|
206
|
-
return new TypeError('Expected "string" but received "' + typeof obj_fulfillmentFlowId + '" (at "' + path_fulfillmentFlowId + '")');
|
|
207
|
-
}
|
|
208
|
-
const obj_intakeForm = obj.intakeForm;
|
|
209
|
-
const path_intakeForm = path + '.intakeForm';
|
|
210
|
-
if (typeof obj_intakeForm !== 'object' || ArrayIsArray(obj_intakeForm) || obj_intakeForm === null) {
|
|
211
|
-
return new TypeError('Expected "object" but received "' + typeof obj_intakeForm + '" (at "' + path_intakeForm + '")');
|
|
212
|
-
}
|
|
213
|
-
const obj_integrations = obj.integrations;
|
|
214
|
-
const path_integrations = path + '.integrations';
|
|
215
|
-
if (!ArrayIsArray(obj_integrations)) {
|
|
216
|
-
return new TypeError('Expected "array" but received "' + typeof obj_integrations + '" (at "' + path_integrations + '")');
|
|
217
|
-
}
|
|
218
|
-
for (let i = 0; i < obj_integrations.length; i++) {
|
|
219
|
-
const obj_integrations_item = obj_integrations[i];
|
|
220
|
-
const path_integrations_item = path_integrations + '[' + i + ']';
|
|
221
|
-
if (typeof obj_integrations_item !== 'object' || ArrayIsArray(obj_integrations_item) || obj_integrations_item === null) {
|
|
222
|
-
return new TypeError('Expected "object" but received "' + typeof obj_integrations_item + '" (at "' + path_integrations_item + '")');
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
const obj_isActive = obj.isActive;
|
|
226
|
-
const path_isActive = path + '.isActive';
|
|
227
|
-
if (typeof obj_isActive !== 'boolean') {
|
|
228
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
|
|
229
|
-
}
|
|
230
|
-
const obj_name = obj.name;
|
|
231
|
-
const path_name = path + '.name';
|
|
232
|
-
if (typeof obj_name !== 'string') {
|
|
233
|
-
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
234
|
-
}
|
|
235
|
-
const obj_preProcessorId = obj.preProcessorId;
|
|
236
|
-
const path_preProcessorId = path + '.preProcessorId';
|
|
237
|
-
if (typeof obj_preProcessorId !== 'string') {
|
|
238
|
-
return new TypeError('Expected "string" but received "' + typeof obj_preProcessorId + '" (at "' + path_preProcessorId + '")');
|
|
239
|
-
}
|
|
240
|
-
const obj_type = obj.type;
|
|
241
|
-
const path_type = path + '.type';
|
|
242
|
-
if (typeof obj_type !== 'string') {
|
|
243
|
-
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
244
|
-
}
|
|
245
157
|
})();
|
|
246
158
|
return v_error === undefined ? null : v_error;
|
|
247
159
|
}
|
|
248
160
|
|
|
249
|
-
const VERSION$
|
|
250
|
-
function validate$
|
|
161
|
+
const VERSION$4 = "984f5657f237c67c169022cb991d17de";
|
|
162
|
+
function validate$6(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
251
163
|
const v_error = (() => {
|
|
252
164
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
253
165
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -300,10 +212,10 @@ function validate$5(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
300
212
|
})();
|
|
301
213
|
return v_error === undefined ? null : v_error;
|
|
302
214
|
}
|
|
303
|
-
const select$
|
|
215
|
+
const select$8 = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
304
216
|
return {
|
|
305
217
|
kind: 'Fragment',
|
|
306
|
-
version: VERSION$
|
|
218
|
+
version: VERSION$4,
|
|
307
219
|
private: [],
|
|
308
220
|
selections: [
|
|
309
221
|
{
|
|
@@ -345,7 +257,7 @@ const select$7 = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
345
257
|
]
|
|
346
258
|
};
|
|
347
259
|
};
|
|
348
|
-
function equals$
|
|
260
|
+
function equals$4(existing, incoming) {
|
|
349
261
|
const existing_isHidden = existing.isHidden;
|
|
350
262
|
const incoming_isHidden = incoming.isHidden;
|
|
351
263
|
if (!(existing_isHidden === incoming_isHidden)) {
|
|
@@ -394,6 +306,56 @@ function equals$3(existing, incoming) {
|
|
|
394
306
|
return true;
|
|
395
307
|
}
|
|
396
308
|
|
|
309
|
+
const VERSION$3 = "a629c7f39e6f7bfcb57e38849c46ba98";
|
|
310
|
+
function validate$5(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
311
|
+
const v_error = (() => {
|
|
312
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
313
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
314
|
+
}
|
|
315
|
+
const obj_id = obj.id;
|
|
316
|
+
const path_id = path + '.id';
|
|
317
|
+
if (typeof obj_id !== 'string') {
|
|
318
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
319
|
+
}
|
|
320
|
+
const obj_type = obj.type;
|
|
321
|
+
const path_type = path + '.type';
|
|
322
|
+
if (typeof obj_type !== 'string') {
|
|
323
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
324
|
+
}
|
|
325
|
+
})();
|
|
326
|
+
return v_error === undefined ? null : v_error;
|
|
327
|
+
}
|
|
328
|
+
const select$7 = function FulfillmentFlowOutputRepresentationSelect() {
|
|
329
|
+
return {
|
|
330
|
+
kind: 'Fragment',
|
|
331
|
+
version: VERSION$3,
|
|
332
|
+
private: [],
|
|
333
|
+
selections: [
|
|
334
|
+
{
|
|
335
|
+
name: 'id',
|
|
336
|
+
kind: 'Scalar'
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
name: 'type',
|
|
340
|
+
kind: 'Scalar'
|
|
341
|
+
}
|
|
342
|
+
]
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
function equals$3(existing, incoming) {
|
|
346
|
+
const existing_id = existing.id;
|
|
347
|
+
const incoming_id = incoming.id;
|
|
348
|
+
if (!(existing_id === incoming_id)) {
|
|
349
|
+
return false;
|
|
350
|
+
}
|
|
351
|
+
const existing_type = existing.type;
|
|
352
|
+
const incoming_type = incoming.type;
|
|
353
|
+
if (!(existing_type === incoming_type)) {
|
|
354
|
+
return false;
|
|
355
|
+
}
|
|
356
|
+
return true;
|
|
357
|
+
}
|
|
358
|
+
|
|
397
359
|
const VERSION$2 = "d0fe6f2d5b8246f10afe4067d3721d5b";
|
|
398
360
|
function validate$4(obj, path = 'IntakeFormOutputRepresentation') {
|
|
399
361
|
const v_error = (() => {
|
|
@@ -445,7 +407,7 @@ function equals$2(existing, incoming) {
|
|
|
445
407
|
}
|
|
446
408
|
|
|
447
409
|
const TTL$1 = 6000;
|
|
448
|
-
const VERSION$1 = "
|
|
410
|
+
const VERSION$1 = "d0103a1b0725c5c2006308b12e54542c";
|
|
449
411
|
function validate$3(obj, path = 'CatalogItemOutputRepresentation') {
|
|
450
412
|
const v_error = (() => {
|
|
451
413
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -471,7 +433,7 @@ function validate$3(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
471
433
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
472
434
|
const obj_attributes_item = obj_attributes[i];
|
|
473
435
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
474
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
436
|
+
const referencepath_attributes_itemValidationError = validate$6(obj_attributes_item, path_attributes_item);
|
|
475
437
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
476
438
|
let message = 'Object doesn\'t match CatalogItemAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
477
439
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -505,10 +467,13 @@ function validate$3(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
505
467
|
return new TypeError('Expected "string" but received "' + typeof obj_eligibilityRules_item + '" (at "' + path_eligibilityRules_item + '")');
|
|
506
468
|
}
|
|
507
469
|
}
|
|
508
|
-
const
|
|
509
|
-
const
|
|
510
|
-
|
|
511
|
-
|
|
470
|
+
const obj_fulfillmentFlow = obj.fulfillmentFlow;
|
|
471
|
+
const path_fulfillmentFlow = path + '.fulfillmentFlow';
|
|
472
|
+
const referencepath_fulfillmentFlowValidationError = validate$5(obj_fulfillmentFlow, path_fulfillmentFlow);
|
|
473
|
+
if (referencepath_fulfillmentFlowValidationError !== null) {
|
|
474
|
+
let message = 'Object doesn\'t match FulfillmentFlowOutputRepresentation (at "' + path_fulfillmentFlow + '")\n';
|
|
475
|
+
message += referencepath_fulfillmentFlowValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
476
|
+
return new TypeError(message);
|
|
512
477
|
}
|
|
513
478
|
const obj_intakeForm = obj.intakeForm;
|
|
514
479
|
const path_intakeForm = path + '.intakeForm';
|
|
@@ -540,10 +505,17 @@ function validate$3(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
540
505
|
if (typeof obj_name !== 'string') {
|
|
541
506
|
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
542
507
|
}
|
|
543
|
-
const
|
|
544
|
-
const
|
|
545
|
-
if (
|
|
546
|
-
return new TypeError('Expected "
|
|
508
|
+
const obj_preProcessors = obj.preProcessors;
|
|
509
|
+
const path_preProcessors = path + '.preProcessors';
|
|
510
|
+
if (!ArrayIsArray(obj_preProcessors)) {
|
|
511
|
+
return new TypeError('Expected "array" but received "' + typeof obj_preProcessors + '" (at "' + path_preProcessors + '")');
|
|
512
|
+
}
|
|
513
|
+
for (let i = 0; i < obj_preProcessors.length; i++) {
|
|
514
|
+
const obj_preProcessors_item = obj_preProcessors[i];
|
|
515
|
+
const path_preProcessors_item = path_preProcessors + '[' + i + ']';
|
|
516
|
+
if (typeof obj_preProcessors_item !== 'string') {
|
|
517
|
+
return new TypeError('Expected "string" but received "' + typeof obj_preProcessors_item + '" (at "' + path_preProcessors_item + '")');
|
|
518
|
+
}
|
|
547
519
|
}
|
|
548
520
|
const obj_type = obj.type;
|
|
549
521
|
const path_type = path + '.type';
|
|
@@ -567,7 +539,8 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
567
539
|
return input;
|
|
568
540
|
}
|
|
569
541
|
const select$5 = function CatalogItemOutputRepresentationSelect() {
|
|
570
|
-
const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$
|
|
542
|
+
const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$8();
|
|
543
|
+
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$7();
|
|
571
544
|
const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$6();
|
|
572
545
|
return {
|
|
573
546
|
kind: 'Fragment',
|
|
@@ -603,8 +576,9 @@ const select$5 = function CatalogItemOutputRepresentationSelect() {
|
|
|
603
576
|
plural: true
|
|
604
577
|
},
|
|
605
578
|
{
|
|
606
|
-
name: '
|
|
607
|
-
kind: '
|
|
579
|
+
name: 'fulfillmentFlow',
|
|
580
|
+
kind: 'Object',
|
|
581
|
+
selections: FulfillmentFlowOutputRepresentation__selections
|
|
608
582
|
},
|
|
609
583
|
{
|
|
610
584
|
name: 'intakeForm',
|
|
@@ -625,8 +599,9 @@ const select$5 = function CatalogItemOutputRepresentationSelect() {
|
|
|
625
599
|
kind: 'Scalar'
|
|
626
600
|
},
|
|
627
601
|
{
|
|
628
|
-
name: '
|
|
629
|
-
kind: 'Scalar'
|
|
602
|
+
name: 'preProcessors',
|
|
603
|
+
kind: 'Scalar',
|
|
604
|
+
plural: true
|
|
630
605
|
},
|
|
631
606
|
{
|
|
632
607
|
name: 'type',
|
|
@@ -656,21 +631,11 @@ function equals$1(existing, incoming) {
|
|
|
656
631
|
if (!(existing_description === incoming_description)) {
|
|
657
632
|
return false;
|
|
658
633
|
}
|
|
659
|
-
const existing_fulfillmentFlowId = existing.fulfillmentFlowId;
|
|
660
|
-
const incoming_fulfillmentFlowId = incoming.fulfillmentFlowId;
|
|
661
|
-
if (!(existing_fulfillmentFlowId === incoming_fulfillmentFlowId)) {
|
|
662
|
-
return false;
|
|
663
|
-
}
|
|
664
634
|
const existing_name = existing.name;
|
|
665
635
|
const incoming_name = incoming.name;
|
|
666
636
|
if (!(existing_name === incoming_name)) {
|
|
667
637
|
return false;
|
|
668
638
|
}
|
|
669
|
-
const existing_preProcessorId = existing.preProcessorId;
|
|
670
|
-
const incoming_preProcessorId = incoming.preProcessorId;
|
|
671
|
-
if (!(existing_preProcessorId === incoming_preProcessorId)) {
|
|
672
|
-
return false;
|
|
673
|
-
}
|
|
674
639
|
const existing_type = existing.type;
|
|
675
640
|
const incoming_type = incoming.type;
|
|
676
641
|
if (!(existing_type === incoming_type)) {
|
|
@@ -689,7 +654,7 @@ function equals$1(existing, incoming) {
|
|
|
689
654
|
const existing_attributes = existing.attributes;
|
|
690
655
|
const incoming_attributes = incoming.attributes;
|
|
691
656
|
const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
|
|
692
|
-
if (!(equals$
|
|
657
|
+
if (!(equals$4(existing_attributes_item, incoming_attributes_item))) {
|
|
693
658
|
return false;
|
|
694
659
|
}
|
|
695
660
|
});
|
|
@@ -706,6 +671,11 @@ function equals$1(existing, incoming) {
|
|
|
706
671
|
if (equals_eligibilityRules_items === false) {
|
|
707
672
|
return false;
|
|
708
673
|
}
|
|
674
|
+
const existing_fulfillmentFlow = existing.fulfillmentFlow;
|
|
675
|
+
const incoming_fulfillmentFlow = incoming.fulfillmentFlow;
|
|
676
|
+
if (!(equals$3(existing_fulfillmentFlow, incoming_fulfillmentFlow))) {
|
|
677
|
+
return false;
|
|
678
|
+
}
|
|
709
679
|
const existing_intakeForm = existing.intakeForm;
|
|
710
680
|
const incoming_intakeForm = incoming.intakeForm;
|
|
711
681
|
if (!(equals$2(existing_intakeForm, incoming_intakeForm))) {
|
|
@@ -721,6 +691,16 @@ function equals$1(existing, incoming) {
|
|
|
721
691
|
if (equals_integrations_items === false) {
|
|
722
692
|
return false;
|
|
723
693
|
}
|
|
694
|
+
const existing_preProcessors = existing.preProcessors;
|
|
695
|
+
const incoming_preProcessors = incoming.preProcessors;
|
|
696
|
+
const equals_preProcessors_items = equalsArray(existing_preProcessors, incoming_preProcessors, (existing_preProcessors_item, incoming_preProcessors_item) => {
|
|
697
|
+
if (!(existing_preProcessors_item === incoming_preProcessors_item)) {
|
|
698
|
+
return false;
|
|
699
|
+
}
|
|
700
|
+
});
|
|
701
|
+
if (equals_preProcessors_items === false) {
|
|
702
|
+
return false;
|
|
703
|
+
}
|
|
724
704
|
return true;
|
|
725
705
|
}
|
|
726
706
|
const ingest$1 = function CatalogItemOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
@@ -791,7 +771,7 @@ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(createCatalo
|
|
|
791
771
|
function typeCheckConfig$3(untrustedConfig) {
|
|
792
772
|
const config = {};
|
|
793
773
|
const untrustedConfig_catalogItemCreateInput = untrustedConfig.catalogItemCreateInput;
|
|
794
|
-
const referenceCatalogItemCreateInputRepresentationValidationError = validate$
|
|
774
|
+
const referenceCatalogItemCreateInputRepresentationValidationError = validate$7(untrustedConfig_catalogItemCreateInput);
|
|
795
775
|
if (referenceCatalogItemCreateInputRepresentationValidationError === null) {
|
|
796
776
|
config.catalogItemCreateInput = untrustedConfig_catalogItemCreateInput;
|
|
797
777
|
}
|
|
@@ -984,99 +964,11 @@ function validate$2(obj, path = 'CatalogItemUpdateInputRepresentation') {
|
|
|
984
964
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
985
965
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
986
966
|
}
|
|
987
|
-
const obj_associatedArticles = obj.associatedArticles;
|
|
988
|
-
const path_associatedArticles = path + '.associatedArticles';
|
|
989
|
-
if (!ArrayIsArray(obj_associatedArticles)) {
|
|
990
|
-
return new TypeError('Expected "array" but received "' + typeof obj_associatedArticles + '" (at "' + path_associatedArticles + '")');
|
|
991
|
-
}
|
|
992
|
-
for (let i = 0; i < obj_associatedArticles.length; i++) {
|
|
993
|
-
const obj_associatedArticles_item = obj_associatedArticles[i];
|
|
994
|
-
const path_associatedArticles_item = path_associatedArticles + '[' + i + ']';
|
|
995
|
-
if (typeof obj_associatedArticles_item !== 'object' || ArrayIsArray(obj_associatedArticles_item) || obj_associatedArticles_item === null) {
|
|
996
|
-
return new TypeError('Expected "object" but received "' + typeof obj_associatedArticles_item + '" (at "' + path_associatedArticles_item + '")');
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
const obj_attributes = obj.attributes;
|
|
1000
|
-
const path_attributes = path + '.attributes';
|
|
1001
|
-
if (!ArrayIsArray(obj_attributes)) {
|
|
1002
|
-
return new TypeError('Expected "array" but received "' + typeof obj_attributes + '" (at "' + path_attributes + '")');
|
|
1003
|
-
}
|
|
1004
|
-
for (let i = 0; i < obj_attributes.length; i++) {
|
|
1005
|
-
const obj_attributes_item = obj_attributes[i];
|
|
1006
|
-
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
1007
|
-
if (typeof obj_attributes_item !== 'object' || ArrayIsArray(obj_attributes_item) || obj_attributes_item === null) {
|
|
1008
|
-
return new TypeError('Expected "object" but received "' + typeof obj_attributes_item + '" (at "' + path_attributes_item + '")');
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
const obj_contextDefinitionId = obj.contextDefinitionId;
|
|
1012
|
-
const path_contextDefinitionId = path + '.contextDefinitionId';
|
|
1013
|
-
if (typeof obj_contextDefinitionId !== 'string') {
|
|
1014
|
-
return new TypeError('Expected "string" but received "' + typeof obj_contextDefinitionId + '" (at "' + path_contextDefinitionId + '")');
|
|
1015
|
-
}
|
|
1016
|
-
const obj_description = obj.description;
|
|
1017
|
-
const path_description = path + '.description';
|
|
1018
|
-
if (typeof obj_description !== 'string') {
|
|
1019
|
-
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
1020
|
-
}
|
|
1021
|
-
const obj_eligibilityRules = obj.eligibilityRules;
|
|
1022
|
-
const path_eligibilityRules = path + '.eligibilityRules';
|
|
1023
|
-
if (!ArrayIsArray(obj_eligibilityRules)) {
|
|
1024
|
-
return new TypeError('Expected "array" but received "' + typeof obj_eligibilityRules + '" (at "' + path_eligibilityRules + '")');
|
|
1025
|
-
}
|
|
1026
|
-
for (let i = 0; i < obj_eligibilityRules.length; i++) {
|
|
1027
|
-
const obj_eligibilityRules_item = obj_eligibilityRules[i];
|
|
1028
|
-
const path_eligibilityRules_item = path_eligibilityRules + '[' + i + ']';
|
|
1029
|
-
if (typeof obj_eligibilityRules_item !== 'object' || ArrayIsArray(obj_eligibilityRules_item) || obj_eligibilityRules_item === null) {
|
|
1030
|
-
return new TypeError('Expected "object" but received "' + typeof obj_eligibilityRules_item + '" (at "' + path_eligibilityRules_item + '")');
|
|
1031
|
-
}
|
|
1032
|
-
}
|
|
1033
|
-
const obj_fulfillmentFlowId = obj.fulfillmentFlowId;
|
|
1034
|
-
const path_fulfillmentFlowId = path + '.fulfillmentFlowId';
|
|
1035
|
-
if (typeof obj_fulfillmentFlowId !== 'string') {
|
|
1036
|
-
return new TypeError('Expected "string" but received "' + typeof obj_fulfillmentFlowId + '" (at "' + path_fulfillmentFlowId + '")');
|
|
1037
|
-
}
|
|
1038
967
|
const obj_id = obj.id;
|
|
1039
968
|
const path_id = path + '.id';
|
|
1040
969
|
if (typeof obj_id !== 'string') {
|
|
1041
970
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
1042
971
|
}
|
|
1043
|
-
const obj_intakeForm = obj.intakeForm;
|
|
1044
|
-
const path_intakeForm = path + '.intakeForm';
|
|
1045
|
-
if (typeof obj_intakeForm !== 'object' || ArrayIsArray(obj_intakeForm) || obj_intakeForm === null) {
|
|
1046
|
-
return new TypeError('Expected "object" but received "' + typeof obj_intakeForm + '" (at "' + path_intakeForm + '")');
|
|
1047
|
-
}
|
|
1048
|
-
const obj_integrations = obj.integrations;
|
|
1049
|
-
const path_integrations = path + '.integrations';
|
|
1050
|
-
if (!ArrayIsArray(obj_integrations)) {
|
|
1051
|
-
return new TypeError('Expected "array" but received "' + typeof obj_integrations + '" (at "' + path_integrations + '")');
|
|
1052
|
-
}
|
|
1053
|
-
for (let i = 0; i < obj_integrations.length; i++) {
|
|
1054
|
-
const obj_integrations_item = obj_integrations[i];
|
|
1055
|
-
const path_integrations_item = path_integrations + '[' + i + ']';
|
|
1056
|
-
if (typeof obj_integrations_item !== 'object' || ArrayIsArray(obj_integrations_item) || obj_integrations_item === null) {
|
|
1057
|
-
return new TypeError('Expected "object" but received "' + typeof obj_integrations_item + '" (at "' + path_integrations_item + '")');
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
const obj_isActive = obj.isActive;
|
|
1061
|
-
const path_isActive = path + '.isActive';
|
|
1062
|
-
if (typeof obj_isActive !== 'boolean') {
|
|
1063
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
|
|
1064
|
-
}
|
|
1065
|
-
const obj_name = obj.name;
|
|
1066
|
-
const path_name = path + '.name';
|
|
1067
|
-
if (typeof obj_name !== 'string') {
|
|
1068
|
-
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
1069
|
-
}
|
|
1070
|
-
const obj_preProcessorId = obj.preProcessorId;
|
|
1071
|
-
const path_preProcessorId = path + '.preProcessorId';
|
|
1072
|
-
if (typeof obj_preProcessorId !== 'string') {
|
|
1073
|
-
return new TypeError('Expected "string" but received "' + typeof obj_preProcessorId + '" (at "' + path_preProcessorId + '")');
|
|
1074
|
-
}
|
|
1075
|
-
const obj_type = obj.type;
|
|
1076
|
-
const path_type = path + '.type';
|
|
1077
|
-
if (typeof obj_type !== 'string') {
|
|
1078
|
-
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
1079
|
-
}
|
|
1080
972
|
})();
|
|
1081
973
|
return v_error === undefined ? null : v_error;
|
|
1082
974
|
}
|
package/dist/es/es2018/types/src/generated/types/CatalogItemAttributeInputRepresentation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "4b15b8a4015df4471938bd3fc2b94da7";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: CatalogItemAttributeInputRepresentation, existing: CatalogItemAttributeInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CatalogItemAttributeInputRepresentationNormalized;
|
|
@@ -24,6 +24,8 @@ export interface CatalogItemAttributeInputRepresentationNormalized {
|
|
|
24
24
|
defaultValue: string;
|
|
25
25
|
/** Attribute Description */
|
|
26
26
|
description: string;
|
|
27
|
+
/** Attribute Name */
|
|
28
|
+
id: string;
|
|
27
29
|
/** is Hidden */
|
|
28
30
|
isHidden: boolean;
|
|
29
31
|
/** Attribute Name */
|
|
@@ -47,6 +49,7 @@ export interface CatalogItemAttributeInputRepresentation {
|
|
|
47
49
|
dataType: string;
|
|
48
50
|
defaultValue: string;
|
|
49
51
|
description: string;
|
|
52
|
+
id: string;
|
|
50
53
|
isHidden: boolean;
|
|
51
54
|
name: string;
|
|
52
55
|
operationType: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "273ea946b89d4e0248a096b1f383d4da";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: CatalogItemCreateInputRepresentation, existing: CatalogItemCreateInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CatalogItemCreateInputRepresentationNormalized;
|
|
@@ -14,30 +14,6 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
14
|
* (none)
|
|
15
15
|
*/
|
|
16
16
|
export interface CatalogItemCreateInputRepresentationNormalized {
|
|
17
|
-
/** Knowledge Articles */
|
|
18
|
-
associatedArticles: Array<{}>;
|
|
19
|
-
/** Attribute List */
|
|
20
|
-
attributes: Array<{}>;
|
|
21
|
-
/** Context Definition Id */
|
|
22
|
-
contextDefinitionId: string;
|
|
23
|
-
/** Description */
|
|
24
|
-
description: string;
|
|
25
|
-
/** Eligibility Rules */
|
|
26
|
-
eligibilityRules: Array<{}>;
|
|
27
|
-
/** Fulfillment Flow Id */
|
|
28
|
-
fulfillmentFlowId: string;
|
|
29
|
-
/** Intake Form */
|
|
30
|
-
intakeForm: {};
|
|
31
|
-
/** Integrations */
|
|
32
|
-
integrations: Array<{}>;
|
|
33
|
-
/** is Active */
|
|
34
|
-
isActive: boolean;
|
|
35
|
-
/** Name */
|
|
36
|
-
name: string;
|
|
37
|
-
/** Pre-Processor Id */
|
|
38
|
-
preProcessorId: string;
|
|
39
|
-
/** Type */
|
|
40
|
-
type: string;
|
|
41
17
|
}
|
|
42
18
|
/**
|
|
43
19
|
* Configuration of the Catalog Item.
|
|
@@ -46,16 +22,4 @@ export interface CatalogItemCreateInputRepresentationNormalized {
|
|
|
46
22
|
* (none)
|
|
47
23
|
*/
|
|
48
24
|
export interface CatalogItemCreateInputRepresentation {
|
|
49
|
-
associatedArticles: Array<{}>;
|
|
50
|
-
attributes: Array<{}>;
|
|
51
|
-
contextDefinitionId: string;
|
|
52
|
-
description: string;
|
|
53
|
-
eligibilityRules: Array<{}>;
|
|
54
|
-
fulfillmentFlowId: string;
|
|
55
|
-
intakeForm: {};
|
|
56
|
-
integrations: Array<{}>;
|
|
57
|
-
isActive: boolean;
|
|
58
|
-
name: string;
|
|
59
|
-
preProcessorId: string;
|
|
60
|
-
type: string;
|
|
61
25
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "4f081df8680e915421e172dd152fe18b";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: CatalogItemInputRepresentation, existing: CatalogItemInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CatalogItemInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: CatalogItemInputRepresentationNormalized, incoming: CatalogItemInputRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CatalogItemInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Input Representation for Catalog Item.
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface CatalogItemInputRepresentationNormalized {
|
|
17
|
+
/** Knowledge Articles */
|
|
18
|
+
associatedArticles: Array<{}>;
|
|
19
|
+
/** Attribute List */
|
|
20
|
+
attributes: Array<{}>;
|
|
21
|
+
/** Context Definition Id */
|
|
22
|
+
contextDefinitionId: string;
|
|
23
|
+
/** Description */
|
|
24
|
+
description: string;
|
|
25
|
+
/** Eligibility Rules */
|
|
26
|
+
eligibilityRules: Array<{}>;
|
|
27
|
+
/** Fulfillment Flow */
|
|
28
|
+
fulfillmentFlow: {};
|
|
29
|
+
/** Intake Form */
|
|
30
|
+
intakeForm: {};
|
|
31
|
+
/** Integrations */
|
|
32
|
+
integrations: Array<{}>;
|
|
33
|
+
/** is Active */
|
|
34
|
+
isActive: boolean;
|
|
35
|
+
/** Name */
|
|
36
|
+
name: string;
|
|
37
|
+
/** Pre-Processor */
|
|
38
|
+
preProcessors: Array<{}>;
|
|
39
|
+
/** Type */
|
|
40
|
+
type: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Input Representation for Catalog Item.
|
|
44
|
+
*
|
|
45
|
+
* Keys:
|
|
46
|
+
* (none)
|
|
47
|
+
*/
|
|
48
|
+
export interface CatalogItemInputRepresentation {
|
|
49
|
+
associatedArticles: Array<{}>;
|
|
50
|
+
attributes: Array<{}>;
|
|
51
|
+
contextDefinitionId: string;
|
|
52
|
+
description: string;
|
|
53
|
+
eligibilityRules: Array<{}>;
|
|
54
|
+
fulfillmentFlow: {};
|
|
55
|
+
intakeForm: {};
|
|
56
|
+
integrations: Array<{}>;
|
|
57
|
+
isActive: boolean;
|
|
58
|
+
name: string;
|
|
59
|
+
preProcessors: Array<{}>;
|
|
60
|
+
type: string;
|
|
61
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { CatalogItemAttributeOutputRepresentation as CatalogItemAttributeOutputRepresentation_CatalogItemAttributeOutputRepresentation } from './CatalogItemAttributeOutputRepresentation';
|
|
2
|
+
import { FulfillmentFlowOutputRepresentation as FulfillmentFlowOutputRepresentation_FulfillmentFlowOutputRepresentation } from './FulfillmentFlowOutputRepresentation';
|
|
2
3
|
import { IntakeFormOutputRepresentation as IntakeFormOutputRepresentation_IntakeFormOutputRepresentation } from './IntakeFormOutputRepresentation';
|
|
3
4
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
4
5
|
export declare const TTL = 6000;
|
|
5
|
-
export declare const VERSION = "
|
|
6
|
+
export declare const VERSION = "d0103a1b0725c5c2006308b12e54542c";
|
|
6
7
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
8
|
export declare const RepresentationType: string;
|
|
8
9
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -38,8 +39,7 @@ export interface CatalogItemOutputRepresentationNormalized {
|
|
|
38
39
|
description: string;
|
|
39
40
|
/** Eligibility Rules */
|
|
40
41
|
eligibilityRules: Array<string>;
|
|
41
|
-
|
|
42
|
-
fulfillmentFlowId: string;
|
|
42
|
+
fulfillmentFlow: FulfillmentFlowOutputRepresentation_FulfillmentFlowOutputRepresentation;
|
|
43
43
|
intakeForm: IntakeFormOutputRepresentation_IntakeFormOutputRepresentation;
|
|
44
44
|
/** Integrations */
|
|
45
45
|
integrations: Array<string>;
|
|
@@ -47,8 +47,8 @@ export interface CatalogItemOutputRepresentationNormalized {
|
|
|
47
47
|
isActive: boolean;
|
|
48
48
|
/** Name of the Catalog Item */
|
|
49
49
|
name: string;
|
|
50
|
-
/** Pre Processor
|
|
51
|
-
|
|
50
|
+
/** Pre Processor Ids */
|
|
51
|
+
preProcessors: Array<string>;
|
|
52
52
|
/** Type of the Catalog Item */
|
|
53
53
|
type: string;
|
|
54
54
|
}
|
|
@@ -65,11 +65,11 @@ export interface CatalogItemOutputRepresentation {
|
|
|
65
65
|
contextDefinitionId: string;
|
|
66
66
|
description: string;
|
|
67
67
|
eligibilityRules: Array<string>;
|
|
68
|
-
|
|
68
|
+
fulfillmentFlow: FulfillmentFlowOutputRepresentation_FulfillmentFlowOutputRepresentation;
|
|
69
69
|
intakeForm: IntakeFormOutputRepresentation_IntakeFormOutputRepresentation;
|
|
70
70
|
integrations: Array<string>;
|
|
71
71
|
isActive: boolean;
|
|
72
72
|
name: string;
|
|
73
|
-
|
|
73
|
+
preProcessors: Array<string>;
|
|
74
74
|
type: string;
|
|
75
75
|
}
|