@salesforce/lds-adapters-cdp-personalization-service 1.304.0 → 1.306.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.
@@ -97,57 +97,61 @@ function validate$b(obj, path = 'PersonalizationAttributeValueInputRepresentatio
97
97
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
98
98
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
99
99
  }
100
- const obj_attributeEnum = obj.attributeEnum;
101
- const path_attributeEnum = path + '.attributeEnum';
102
- let obj_attributeEnum_union0 = null;
103
- const obj_attributeEnum_union0_error = (() => {
104
- if (typeof obj_attributeEnum !== 'string') {
105
- return new TypeError('Expected "string" but received "' + typeof obj_attributeEnum + '" (at "' + path_attributeEnum + '")');
100
+ if (obj.attributeEnum !== undefined) {
101
+ const obj_attributeEnum = obj.attributeEnum;
102
+ const path_attributeEnum = path + '.attributeEnum';
103
+ let obj_attributeEnum_union0 = null;
104
+ const obj_attributeEnum_union0_error = (() => {
105
+ if (typeof obj_attributeEnum !== 'string') {
106
+ return new TypeError('Expected "string" but received "' + typeof obj_attributeEnum + '" (at "' + path_attributeEnum + '")');
107
+ }
108
+ })();
109
+ if (obj_attributeEnum_union0_error != null) {
110
+ obj_attributeEnum_union0 = obj_attributeEnum_union0_error.message;
106
111
  }
107
- })();
108
- if (obj_attributeEnum_union0_error != null) {
109
- obj_attributeEnum_union0 = obj_attributeEnum_union0_error.message;
110
- }
111
- let obj_attributeEnum_union1 = null;
112
- const obj_attributeEnum_union1_error = (() => {
113
- if (obj_attributeEnum !== null) {
114
- return new TypeError('Expected "null" but received "' + typeof obj_attributeEnum + '" (at "' + path_attributeEnum + '")');
112
+ let obj_attributeEnum_union1 = null;
113
+ const obj_attributeEnum_union1_error = (() => {
114
+ if (obj_attributeEnum !== null) {
115
+ return new TypeError('Expected "null" but received "' + typeof obj_attributeEnum + '" (at "' + path_attributeEnum + '")');
116
+ }
117
+ })();
118
+ if (obj_attributeEnum_union1_error != null) {
119
+ obj_attributeEnum_union1 = obj_attributeEnum_union1_error.message;
115
120
  }
116
- })();
117
- if (obj_attributeEnum_union1_error != null) {
118
- obj_attributeEnum_union1 = obj_attributeEnum_union1_error.message;
119
- }
120
- if (obj_attributeEnum_union0 && obj_attributeEnum_union1) {
121
- let message = 'Object doesn\'t match union (at "' + path_attributeEnum + '")';
122
- message += '\n' + obj_attributeEnum_union0.split('\n').map((line) => '\t' + line).join('\n');
123
- message += '\n' + obj_attributeEnum_union1.split('\n').map((line) => '\t' + line).join('\n');
124
- return new TypeError(message);
125
- }
126
- const obj_attributeName = obj.attributeName;
127
- const path_attributeName = path + '.attributeName';
128
- let obj_attributeName_union0 = null;
129
- const obj_attributeName_union0_error = (() => {
130
- if (typeof obj_attributeName !== 'string') {
131
- return new TypeError('Expected "string" but received "' + typeof obj_attributeName + '" (at "' + path_attributeName + '")');
121
+ if (obj_attributeEnum_union0 && obj_attributeEnum_union1) {
122
+ let message = 'Object doesn\'t match union (at "' + path_attributeEnum + '")';
123
+ message += '\n' + obj_attributeEnum_union0.split('\n').map((line) => '\t' + line).join('\n');
124
+ message += '\n' + obj_attributeEnum_union1.split('\n').map((line) => '\t' + line).join('\n');
125
+ return new TypeError(message);
132
126
  }
133
- })();
134
- if (obj_attributeName_union0_error != null) {
135
- obj_attributeName_union0 = obj_attributeName_union0_error.message;
136
127
  }
137
- let obj_attributeName_union1 = null;
138
- const obj_attributeName_union1_error = (() => {
139
- if (obj_attributeName !== null) {
140
- return new TypeError('Expected "null" but received "' + typeof obj_attributeName + '" (at "' + path_attributeName + '")');
128
+ if (obj.attributeName !== undefined) {
129
+ const obj_attributeName = obj.attributeName;
130
+ const path_attributeName = path + '.attributeName';
131
+ let obj_attributeName_union0 = null;
132
+ const obj_attributeName_union0_error = (() => {
133
+ if (typeof obj_attributeName !== 'string') {
134
+ return new TypeError('Expected "string" but received "' + typeof obj_attributeName + '" (at "' + path_attributeName + '")');
135
+ }
136
+ })();
137
+ if (obj_attributeName_union0_error != null) {
138
+ obj_attributeName_union0 = obj_attributeName_union0_error.message;
139
+ }
140
+ let obj_attributeName_union1 = null;
141
+ const obj_attributeName_union1_error = (() => {
142
+ if (obj_attributeName !== null) {
143
+ return new TypeError('Expected "null" but received "' + typeof obj_attributeName + '" (at "' + path_attributeName + '")');
144
+ }
145
+ })();
146
+ if (obj_attributeName_union1_error != null) {
147
+ obj_attributeName_union1 = obj_attributeName_union1_error.message;
148
+ }
149
+ if (obj_attributeName_union0 && obj_attributeName_union1) {
150
+ let message = 'Object doesn\'t match union (at "' + path_attributeName + '")';
151
+ message += '\n' + obj_attributeName_union0.split('\n').map((line) => '\t' + line).join('\n');
152
+ message += '\n' + obj_attributeName_union1.split('\n').map((line) => '\t' + line).join('\n');
153
+ return new TypeError(message);
141
154
  }
142
- })();
143
- if (obj_attributeName_union1_error != null) {
144
- obj_attributeName_union1 = obj_attributeName_union1_error.message;
145
- }
146
- if (obj_attributeName_union0 && obj_attributeName_union1) {
147
- let message = 'Object doesn\'t match union (at "' + path_attributeName + '")';
148
- message += '\n' + obj_attributeName_union0.split('\n').map((line) => '\t' + line).join('\n');
149
- message += '\n' + obj_attributeName_union1.split('\n').map((line) => '\t' + line).join('\n');
150
- return new TypeError(message);
151
155
  }
152
156
  const obj_value = obj.value;
153
157
  const path_value = path + '.value';
@@ -184,19 +188,21 @@ function validate$a(obj, path = 'PersonalizationDecisionInputRepresentation') {
184
188
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
185
189
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
186
190
  }
187
- const obj_attributeValues = obj.attributeValues;
188
- const path_attributeValues = path + '.attributeValues';
189
- if (!ArrayIsArray(obj_attributeValues)) {
190
- return new TypeError('Expected "array" but received "' + typeof obj_attributeValues + '" (at "' + path_attributeValues + '")');
191
- }
192
- for (let i = 0; i < obj_attributeValues.length; i++) {
193
- const obj_attributeValues_item = obj_attributeValues[i];
194
- const path_attributeValues_item = path_attributeValues + '[' + i + ']';
195
- const referencepath_attributeValues_itemValidationError = validate$b(obj_attributeValues_item, path_attributeValues_item);
196
- if (referencepath_attributeValues_itemValidationError !== null) {
197
- let message = 'Object doesn\'t match PersonalizationAttributeValueInputRepresentation (at "' + path_attributeValues_item + '")\n';
198
- message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
199
- return new TypeError(message);
191
+ if (obj.attributeValues !== undefined) {
192
+ const obj_attributeValues = obj.attributeValues;
193
+ const path_attributeValues = path + '.attributeValues';
194
+ if (!ArrayIsArray(obj_attributeValues)) {
195
+ return new TypeError('Expected "array" but received "' + typeof obj_attributeValues + '" (at "' + path_attributeValues + '")');
196
+ }
197
+ for (let i = 0; i < obj_attributeValues.length; i++) {
198
+ const obj_attributeValues_item = obj_attributeValues[i];
199
+ const path_attributeValues_item = path_attributeValues + '[' + i + ']';
200
+ const referencepath_attributeValues_itemValidationError = validate$b(obj_attributeValues_item, path_attributeValues_item);
201
+ if (referencepath_attributeValues_itemValidationError !== null) {
202
+ let message = 'Object doesn\'t match PersonalizationAttributeValueInputRepresentation (at "' + path_attributeValues_item + '")\n';
203
+ message += referencepath_attributeValues_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
204
+ return new TypeError(message);
205
+ }
200
206
  }
201
207
  }
202
208
  const obj_criteria = obj.criteria;
@@ -225,31 +231,33 @@ function validate$a(obj, path = 'PersonalizationDecisionInputRepresentation') {
225
231
  message += '\n' + obj_criteria_union1.split('\n').map((line) => '\t' + line).join('\n');
226
232
  return new TypeError(message);
227
233
  }
228
- const obj_description = obj.description;
229
- const path_description = path + '.description';
230
- let obj_description_union0 = null;
231
- const obj_description_union0_error = (() => {
232
- if (typeof obj_description !== 'string') {
233
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
234
+ if (obj.description !== undefined) {
235
+ const obj_description = obj.description;
236
+ const path_description = path + '.description';
237
+ let obj_description_union0 = null;
238
+ const obj_description_union0_error = (() => {
239
+ if (typeof obj_description !== 'string') {
240
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
241
+ }
242
+ })();
243
+ if (obj_description_union0_error != null) {
244
+ obj_description_union0 = obj_description_union0_error.message;
234
245
  }
235
- })();
236
- if (obj_description_union0_error != null) {
237
- obj_description_union0 = obj_description_union0_error.message;
238
- }
239
- let obj_description_union1 = null;
240
- const obj_description_union1_error = (() => {
241
- if (obj_description !== null) {
242
- return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
246
+ let obj_description_union1 = null;
247
+ const obj_description_union1_error = (() => {
248
+ if (obj_description !== null) {
249
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
250
+ }
251
+ })();
252
+ if (obj_description_union1_error != null) {
253
+ obj_description_union1 = obj_description_union1_error.message;
254
+ }
255
+ if (obj_description_union0 && obj_description_union1) {
256
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
257
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
258
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
259
+ return new TypeError(message);
243
260
  }
244
- })();
245
- if (obj_description_union1_error != null) {
246
- obj_description_union1 = obj_description_union1_error.message;
247
- }
248
- if (obj_description_union0 && obj_description_union1) {
249
- let message = 'Object doesn\'t match union (at "' + path_description + '")';
250
- message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
251
- message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
252
- return new TypeError(message);
253
261
  }
254
262
  const obj_label = obj.label;
255
263
  const path_label = path + '.label';
@@ -303,31 +311,33 @@ function validate$a(obj, path = 'PersonalizationDecisionInputRepresentation') {
303
311
  message += '\n' + obj_name_union1.split('\n').map((line) => '\t' + line).join('\n');
304
312
  return new TypeError(message);
305
313
  }
306
- const obj_personalizerName = obj.personalizerName;
307
- const path_personalizerName = path + '.personalizerName';
308
- let obj_personalizerName_union0 = null;
309
- const obj_personalizerName_union0_error = (() => {
310
- if (typeof obj_personalizerName !== 'string') {
311
- return new TypeError('Expected "string" but received "' + typeof obj_personalizerName + '" (at "' + path_personalizerName + '")');
314
+ if (obj.personalizerName !== undefined) {
315
+ const obj_personalizerName = obj.personalizerName;
316
+ const path_personalizerName = path + '.personalizerName';
317
+ let obj_personalizerName_union0 = null;
318
+ const obj_personalizerName_union0_error = (() => {
319
+ if (typeof obj_personalizerName !== 'string') {
320
+ return new TypeError('Expected "string" but received "' + typeof obj_personalizerName + '" (at "' + path_personalizerName + '")');
321
+ }
322
+ })();
323
+ if (obj_personalizerName_union0_error != null) {
324
+ obj_personalizerName_union0 = obj_personalizerName_union0_error.message;
312
325
  }
313
- })();
314
- if (obj_personalizerName_union0_error != null) {
315
- obj_personalizerName_union0 = obj_personalizerName_union0_error.message;
316
- }
317
- let obj_personalizerName_union1 = null;
318
- const obj_personalizerName_union1_error = (() => {
319
- if (obj_personalizerName !== null) {
320
- return new TypeError('Expected "null" but received "' + typeof obj_personalizerName + '" (at "' + path_personalizerName + '")');
326
+ let obj_personalizerName_union1 = null;
327
+ const obj_personalizerName_union1_error = (() => {
328
+ if (obj_personalizerName !== null) {
329
+ return new TypeError('Expected "null" but received "' + typeof obj_personalizerName + '" (at "' + path_personalizerName + '")');
330
+ }
331
+ })();
332
+ if (obj_personalizerName_union1_error != null) {
333
+ obj_personalizerName_union1 = obj_personalizerName_union1_error.message;
334
+ }
335
+ if (obj_personalizerName_union0 && obj_personalizerName_union1) {
336
+ let message = 'Object doesn\'t match union (at "' + path_personalizerName + '")';
337
+ message += '\n' + obj_personalizerName_union0.split('\n').map((line) => '\t' + line).join('\n');
338
+ message += '\n' + obj_personalizerName_union1.split('\n').map((line) => '\t' + line).join('\n');
339
+ return new TypeError(message);
321
340
  }
322
- })();
323
- if (obj_personalizerName_union1_error != null) {
324
- obj_personalizerName_union1 = obj_personalizerName_union1_error.message;
325
- }
326
- if (obj_personalizerName_union0 && obj_personalizerName_union1) {
327
- let message = 'Object doesn\'t match union (at "' + path_personalizerName + '")';
328
- message += '\n' + obj_personalizerName_union0.split('\n').map((line) => '\t' + line).join('\n');
329
- message += '\n' + obj_personalizerName_union1.split('\n').map((line) => '\t' + line).join('\n');
330
- return new TypeError(message);
331
341
  }
332
342
  })();
333
343
  return v_error === undefined ? null : v_error;
@@ -546,26 +556,110 @@ function validate$7(obj, path = 'SubjectRepresentation') {
546
556
  }
547
557
  const obj_fieldApiName = obj.fieldApiName;
548
558
  const path_fieldApiName = path + '.fieldApiName';
549
- if (typeof obj_fieldApiName !== 'string') {
550
- return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
559
+ let obj_fieldApiName_union0 = null;
560
+ const obj_fieldApiName_union0_error = (() => {
561
+ if (typeof obj_fieldApiName !== 'string') {
562
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
563
+ }
564
+ })();
565
+ if (obj_fieldApiName_union0_error != null) {
566
+ obj_fieldApiName_union0 = obj_fieldApiName_union0_error.message;
567
+ }
568
+ let obj_fieldApiName_union1 = null;
569
+ const obj_fieldApiName_union1_error = (() => {
570
+ if (obj_fieldApiName !== null) {
571
+ return new TypeError('Expected "null" but received "' + typeof obj_fieldApiName + '" (at "' + path_fieldApiName + '")');
572
+ }
573
+ })();
574
+ if (obj_fieldApiName_union1_error != null) {
575
+ obj_fieldApiName_union1 = obj_fieldApiName_union1_error.message;
576
+ }
577
+ if (obj_fieldApiName_union0 && obj_fieldApiName_union1) {
578
+ let message = 'Object doesn\'t match union (at "' + path_fieldApiName + '")';
579
+ message += '\n' + obj_fieldApiName_union0.split('\n').map((line) => '\t' + line).join('\n');
580
+ message += '\n' + obj_fieldApiName_union1.split('\n').map((line) => '\t' + line).join('\n');
581
+ return new TypeError(message);
551
582
  }
552
583
  if (obj.fieldLabel !== undefined) {
553
584
  const obj_fieldLabel = obj.fieldLabel;
554
585
  const path_fieldLabel = path + '.fieldLabel';
555
- if (typeof obj_fieldLabel !== 'string') {
556
- return new TypeError('Expected "string" but received "' + typeof obj_fieldLabel + '" (at "' + path_fieldLabel + '")');
586
+ let obj_fieldLabel_union0 = null;
587
+ const obj_fieldLabel_union0_error = (() => {
588
+ if (typeof obj_fieldLabel !== 'string') {
589
+ return new TypeError('Expected "string" but received "' + typeof obj_fieldLabel + '" (at "' + path_fieldLabel + '")');
590
+ }
591
+ })();
592
+ if (obj_fieldLabel_union0_error != null) {
593
+ obj_fieldLabel_union0 = obj_fieldLabel_union0_error.message;
594
+ }
595
+ let obj_fieldLabel_union1 = null;
596
+ const obj_fieldLabel_union1_error = (() => {
597
+ if (obj_fieldLabel !== null) {
598
+ return new TypeError('Expected "null" but received "' + typeof obj_fieldLabel + '" (at "' + path_fieldLabel + '")');
599
+ }
600
+ })();
601
+ if (obj_fieldLabel_union1_error != null) {
602
+ obj_fieldLabel_union1 = obj_fieldLabel_union1_error.message;
603
+ }
604
+ if (obj_fieldLabel_union0 && obj_fieldLabel_union1) {
605
+ let message = 'Object doesn\'t match union (at "' + path_fieldLabel + '")';
606
+ message += '\n' + obj_fieldLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
607
+ message += '\n' + obj_fieldLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
608
+ return new TypeError(message);
557
609
  }
558
610
  }
559
611
  const obj_objectApiName = obj.objectApiName;
560
612
  const path_objectApiName = path + '.objectApiName';
561
- if (typeof obj_objectApiName !== 'string') {
562
- return new TypeError('Expected "string" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
613
+ let obj_objectApiName_union0 = null;
614
+ const obj_objectApiName_union0_error = (() => {
615
+ if (typeof obj_objectApiName !== 'string') {
616
+ return new TypeError('Expected "string" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
617
+ }
618
+ })();
619
+ if (obj_objectApiName_union0_error != null) {
620
+ obj_objectApiName_union0 = obj_objectApiName_union0_error.message;
621
+ }
622
+ let obj_objectApiName_union1 = null;
623
+ const obj_objectApiName_union1_error = (() => {
624
+ if (obj_objectApiName !== null) {
625
+ return new TypeError('Expected "null" but received "' + typeof obj_objectApiName + '" (at "' + path_objectApiName + '")');
626
+ }
627
+ })();
628
+ if (obj_objectApiName_union1_error != null) {
629
+ obj_objectApiName_union1 = obj_objectApiName_union1_error.message;
630
+ }
631
+ if (obj_objectApiName_union0 && obj_objectApiName_union1) {
632
+ let message = 'Object doesn\'t match union (at "' + path_objectApiName + '")';
633
+ message += '\n' + obj_objectApiName_union0.split('\n').map((line) => '\t' + line).join('\n');
634
+ message += '\n' + obj_objectApiName_union1.split('\n').map((line) => '\t' + line).join('\n');
635
+ return new TypeError(message);
563
636
  }
564
637
  if (obj.objectLabel !== undefined) {
565
638
  const obj_objectLabel = obj.objectLabel;
566
639
  const path_objectLabel = path + '.objectLabel';
567
- if (typeof obj_objectLabel !== 'string') {
568
- return new TypeError('Expected "string" but received "' + typeof obj_objectLabel + '" (at "' + path_objectLabel + '")');
640
+ let obj_objectLabel_union0 = null;
641
+ const obj_objectLabel_union0_error = (() => {
642
+ if (typeof obj_objectLabel !== 'string') {
643
+ return new TypeError('Expected "string" but received "' + typeof obj_objectLabel + '" (at "' + path_objectLabel + '")');
644
+ }
645
+ })();
646
+ if (obj_objectLabel_union0_error != null) {
647
+ obj_objectLabel_union0 = obj_objectLabel_union0_error.message;
648
+ }
649
+ let obj_objectLabel_union1 = null;
650
+ const obj_objectLabel_union1_error = (() => {
651
+ if (obj_objectLabel !== null) {
652
+ return new TypeError('Expected "null" but received "' + typeof obj_objectLabel + '" (at "' + path_objectLabel + '")');
653
+ }
654
+ })();
655
+ if (obj_objectLabel_union1_error != null) {
656
+ obj_objectLabel_union1 = obj_objectLabel_union1_error.message;
657
+ }
658
+ if (obj_objectLabel_union0 && obj_objectLabel_union1) {
659
+ let message = 'Object doesn\'t match union (at "' + path_objectLabel + '")';
660
+ message += '\n' + obj_objectLabel_union0.split('\n').map((line) => '\t' + line).join('\n');
661
+ message += '\n' + obj_objectLabel_union1.split('\n').map((line) => '\t' + line).join('\n');
662
+ return new TypeError(message);
569
663
  }
570
664
  }
571
665
  })();
@@ -2259,15 +2353,15 @@ function createResourceRequest$6(config) {
2259
2353
 
2260
2354
  const adapterName$6 = 'createPersonalizationPoint';
2261
2355
  const createPersonalizationPoint_ConfigPropertyMetadata = [
2262
- generateParamConfigMetadata('description', true, 2 /* Body */, 4 /* Unsupported */),
2356
+ generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
2263
2357
  generateParamConfigMetadata('label', true, 2 /* Body */, 4 /* Unsupported */),
2264
2358
  generateParamConfigMetadata('name', true, 2 /* Body */, 4 /* Unsupported */),
2265
- generateParamConfigMetadata('abnExperimentName', true, 2 /* Body */, 4 /* Unsupported */),
2359
+ generateParamConfigMetadata('abnExperimentName', false, 2 /* Body */, 4 /* Unsupported */),
2266
2360
  generateParamConfigMetadata('dataSpaceName', true, 2 /* Body */, 4 /* Unsupported */),
2267
2361
  generateParamConfigMetadata('decisions', true, 2 /* Body */, 4 /* Unsupported */, true),
2268
2362
  generateParamConfigMetadata('profileDataGraphName', true, 2 /* Body */, 4 /* Unsupported */),
2269
- generateParamConfigMetadata('schemaEnum', true, 2 /* Body */, 4 /* Unsupported */),
2270
- generateParamConfigMetadata('schemaName', true, 2 /* Body */, 4 /* Unsupported */),
2363
+ generateParamConfigMetadata('schemaEnum', false, 2 /* Body */, 4 /* Unsupported */),
2364
+ generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
2271
2365
  generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
2272
2366
  ];
2273
2367
  const createPersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createPersonalizationPoint_ConfigPropertyMetadata);
@@ -2651,15 +2745,15 @@ function createResourceRequest$3(config) {
2651
2745
  const adapterName$3 = 'updatePersonalizationPoint';
2652
2746
  const updatePersonalizationPoint_ConfigPropertyMetadata = [
2653
2747
  generateParamConfigMetadata('idOrName', true, 0 /* UrlParameter */, 0 /* String */),
2654
- generateParamConfigMetadata('description', true, 2 /* Body */, 4 /* Unsupported */),
2748
+ generateParamConfigMetadata('description', false, 2 /* Body */, 4 /* Unsupported */),
2655
2749
  generateParamConfigMetadata('label', true, 2 /* Body */, 4 /* Unsupported */),
2656
2750
  generateParamConfigMetadata('name', true, 2 /* Body */, 4 /* Unsupported */),
2657
- generateParamConfigMetadata('abnExperimentName', true, 2 /* Body */, 4 /* Unsupported */),
2751
+ generateParamConfigMetadata('abnExperimentName', false, 2 /* Body */, 4 /* Unsupported */),
2658
2752
  generateParamConfigMetadata('dataSpaceName', true, 2 /* Body */, 4 /* Unsupported */),
2659
2753
  generateParamConfigMetadata('decisions', true, 2 /* Body */, 4 /* Unsupported */, true),
2660
2754
  generateParamConfigMetadata('profileDataGraphName', true, 2 /* Body */, 4 /* Unsupported */),
2661
- generateParamConfigMetadata('schemaEnum', true, 2 /* Body */, 4 /* Unsupported */),
2662
- generateParamConfigMetadata('schemaName', true, 2 /* Body */, 4 /* Unsupported */),
2755
+ generateParamConfigMetadata('schemaEnum', false, 2 /* Body */, 4 /* Unsupported */),
2756
+ generateParamConfigMetadata('schemaName', false, 2 /* Body */, 4 /* Unsupported */),
2663
2757
  generateParamConfigMetadata('source', true, 2 /* Body */, 0 /* String */),
2664
2758
  ];
2665
2759
  const updatePersonalizationPoint_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, updatePersonalizationPoint_ConfigPropertyMetadata);
@@ -2784,31 +2878,33 @@ function validate$2(obj, path = 'PersonalizationAttributeInputRepresentation') {
2784
2878
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2785
2879
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2786
2880
  }
2787
- const obj_defaultValue = obj.defaultValue;
2788
- const path_defaultValue = path + '.defaultValue';
2789
- let obj_defaultValue_union0 = null;
2790
- const obj_defaultValue_union0_error = (() => {
2791
- if (typeof obj_defaultValue !== 'string') {
2792
- return new TypeError('Expected "string" but received "' + typeof obj_defaultValue + '" (at "' + path_defaultValue + '")');
2881
+ if (obj.defaultValue !== undefined) {
2882
+ const obj_defaultValue = obj.defaultValue;
2883
+ const path_defaultValue = path + '.defaultValue';
2884
+ let obj_defaultValue_union0 = null;
2885
+ const obj_defaultValue_union0_error = (() => {
2886
+ if (typeof obj_defaultValue !== 'string') {
2887
+ return new TypeError('Expected "string" but received "' + typeof obj_defaultValue + '" (at "' + path_defaultValue + '")');
2888
+ }
2889
+ })();
2890
+ if (obj_defaultValue_union0_error != null) {
2891
+ obj_defaultValue_union0 = obj_defaultValue_union0_error.message;
2793
2892
  }
2794
- })();
2795
- if (obj_defaultValue_union0_error != null) {
2796
- obj_defaultValue_union0 = obj_defaultValue_union0_error.message;
2797
- }
2798
- let obj_defaultValue_union1 = null;
2799
- const obj_defaultValue_union1_error = (() => {
2800
- if (obj_defaultValue !== null) {
2801
- return new TypeError('Expected "null" but received "' + typeof obj_defaultValue + '" (at "' + path_defaultValue + '")');
2893
+ let obj_defaultValue_union1 = null;
2894
+ const obj_defaultValue_union1_error = (() => {
2895
+ if (obj_defaultValue !== null) {
2896
+ return new TypeError('Expected "null" but received "' + typeof obj_defaultValue + '" (at "' + path_defaultValue + '")');
2897
+ }
2898
+ })();
2899
+ if (obj_defaultValue_union1_error != null) {
2900
+ obj_defaultValue_union1 = obj_defaultValue_union1_error.message;
2901
+ }
2902
+ if (obj_defaultValue_union0 && obj_defaultValue_union1) {
2903
+ let message = 'Object doesn\'t match union (at "' + path_defaultValue + '")';
2904
+ message += '\n' + obj_defaultValue_union0.split('\n').map((line) => '\t' + line).join('\n');
2905
+ message += '\n' + obj_defaultValue_union1.split('\n').map((line) => '\t' + line).join('\n');
2906
+ return new TypeError(message);
2802
2907
  }
2803
- })();
2804
- if (obj_defaultValue_union1_error != null) {
2805
- obj_defaultValue_union1 = obj_defaultValue_union1_error.message;
2806
- }
2807
- if (obj_defaultValue_union0 && obj_defaultValue_union1) {
2808
- let message = 'Object doesn\'t match union (at "' + path_defaultValue + '")';
2809
- message += '\n' + obj_defaultValue_union0.split('\n').map((line) => '\t' + line).join('\n');
2810
- message += '\n' + obj_defaultValue_union1.split('\n').map((line) => '\t' + line).join('\n');
2811
- return new TypeError(message);
2812
2908
  }
2813
2909
  const obj_label = obj.label;
2814
2910
  const path_label = path + '.label';
@@ -7,15 +7,15 @@ export declare const adapterName = "createPersonalizationPoint";
7
7
  export declare const createPersonalizationPoint_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
8
8
  export declare const createPersonalizationPoint_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
9
9
  export interface CreatePersonalizationPointConfig {
10
- description: string | null;
10
+ description?: string | null;
11
11
  label: string | null;
12
12
  name: string | null;
13
- abnExperimentName: string | null;
13
+ abnExperimentName?: string | null;
14
14
  dataSpaceName: string | null;
15
15
  decisions: Array<types_PersonalizationDecisionInputRepresentation_PersonalizationDecisionInputRepresentation>;
16
16
  profileDataGraphName: string | null;
17
- schemaEnum: string | null;
18
- schemaName: string | null;
17
+ schemaEnum?: string | null;
18
+ schemaName?: string | null;
19
19
  source: string;
20
20
  }
21
21
  export declare const createResourceParams: (config: CreatePersonalizationPointConfig) => resources_postPersonalizationPersonalizationPoints_ResourceRequestConfig;
@@ -8,15 +8,15 @@ export declare const updatePersonalizationPoint_ConfigPropertyMetadata: $64$luvi
8
8
  export declare const updatePersonalizationPoint_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
9
9
  export interface UpdatePersonalizationPointConfig {
10
10
  idOrName: string;
11
- description: string | null;
11
+ description?: string | null;
12
12
  label: string | null;
13
13
  name: string | null;
14
- abnExperimentName: string | null;
14
+ abnExperimentName?: string | null;
15
15
  dataSpaceName: string | null;
16
16
  decisions: Array<types_PersonalizationDecisionInputRepresentation_PersonalizationDecisionInputRepresentation>;
17
17
  profileDataGraphName: string | null;
18
- schemaEnum: string | null;
19
- schemaName: string | null;
18
+ schemaEnum?: string | null;
19
+ schemaName?: string | null;
20
20
  source: string;
21
21
  }
22
22
  export declare const createResourceParams: (config: UpdatePersonalizationPointConfig) => resources_putPersonalizationPersonalizationPointsByIdOrName_ResourceRequestConfig;
@@ -3,15 +3,15 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
3
3
  import { PersonalizationPointRepresentation as types_PersonalizationPointRepresentation_PersonalizationPointRepresentation } from '../types/PersonalizationPointRepresentation';
4
4
  export interface ResourceRequestConfig {
5
5
  body: {
6
- description: string | null;
6
+ description?: string | null;
7
7
  label: string | null;
8
8
  name: string | null;
9
- abnExperimentName: string | null;
9
+ abnExperimentName?: string | null;
10
10
  dataSpaceName: string | null;
11
11
  decisions: Array<types_PersonalizationDecisionInputRepresentation_PersonalizationDecisionInputRepresentation>;
12
12
  profileDataGraphName: string | null;
13
- schemaEnum: string | null;
14
- schemaName: string | null;
13
+ schemaEnum?: string | null;
14
+ schemaName?: string | null;
15
15
  source: string;
16
16
  };
17
17
  }
@@ -6,15 +6,15 @@ export interface ResourceRequestConfig {
6
6
  idOrName: string;
7
7
  };
8
8
  body: {
9
- description: string | null;
9
+ description?: string | null;
10
10
  label: string | null;
11
11
  name: string | null;
12
- abnExperimentName: string | null;
12
+ abnExperimentName?: string | null;
13
13
  dataSpaceName: string | null;
14
14
  decisions: Array<types_PersonalizationDecisionInputRepresentation_PersonalizationDecisionInputRepresentation>;
15
15
  profileDataGraphName: string | null;
16
- schemaEnum: string | null;
17
- schemaName: string | null;
16
+ schemaEnum?: string | null;
17
+ schemaName?: string | null;
18
18
  source: string;
19
19
  };
20
20
  }
@@ -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 = "bc1e5529d29a1aad9b318db638528c9c";
2
+ export declare const VERSION = "6dbb34c44a1aa6e048305fc90b699193";
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: PersonalizationAttributeInputRepresentation, existing: PersonalizationAttributeInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PersonalizationAttributeInputRepresentationNormalized;
@@ -15,7 +15,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
15
15
  */
16
16
  export interface PersonalizationAttributeInputRepresentationNormalized {
17
17
  /** Optional Personalization Attribute default value */
18
- defaultValue: string | null;
18
+ defaultValue?: string | null;
19
19
  /** Personalization Attribute label */
20
20
  label: string;
21
21
  /** Personalization Attribute API name */
@@ -28,7 +28,7 @@ export interface PersonalizationAttributeInputRepresentationNormalized {
28
28
  * (none)
29
29
  */
30
30
  export interface PersonalizationAttributeInputRepresentation {
31
- defaultValue: string | null;
31
+ defaultValue?: string | null;
32
32
  label: string;
33
33
  name: string;
34
34
  }
@@ -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 = "d278c738283fd7197467970141c5a262";
2
+ export declare const VERSION = "31e8eb2cfe2db3ce6c62cb9dd1afbae0";
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: PersonalizationAttributeValueInputRepresentation, existing: PersonalizationAttributeValueInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PersonalizationAttributeValueInputRepresentationNormalized;
@@ -15,9 +15,9 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
15
15
  */
16
16
  export interface PersonalizationAttributeValueInputRepresentationNormalized {
17
17
  /** Attribute enum if it is assigning a custom attribute */
18
- attributeEnum: string | null;
18
+ attributeEnum?: string | null;
19
19
  /** Attribute API name of the Personalization Attribute if it is assigning a custom attribute */
20
- attributeName: string | null;
20
+ attributeName?: string | null;
21
21
  /** Personalization Attribute Value */
22
22
  value: string | null;
23
23
  }
@@ -28,7 +28,7 @@ export interface PersonalizationAttributeValueInputRepresentationNormalized {
28
28
  * (none)
29
29
  */
30
30
  export interface PersonalizationAttributeValueInputRepresentation {
31
- attributeEnum: string | null;
32
- attributeName: string | null;
31
+ attributeEnum?: string | null;
32
+ attributeName?: string | null;
33
33
  value: string | null;
34
34
  }