@salesforce/lds-adapters-cdp-engmt-config 1.312.0 → 1.313.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.
@@ -84,75 +84,334 @@ function createLink(ref) {
84
84
  };
85
85
  }
86
86
 
87
- const VERSION$1 = "d7a7eda1fcf9765638e82c899066e8b1";
88
- function validate$1(obj, path = 'EngagementSignalErrorResponseRepresentation') {
87
+ const VERSION$4 = "fa8c8d4e8876d7425228cbf115d34ff8";
88
+ function validate$4(obj, path = 'EngagementSignalFilterRepresentation') {
89
89
  const v_error = (() => {
90
90
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
91
91
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
92
92
  }
93
- const obj_errorCode = obj.errorCode;
94
- const path_errorCode = path + '.errorCode';
95
- if (typeof obj_errorCode !== 'string') {
96
- return new TypeError('Expected "string" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
93
+ const obj_action = obj.action;
94
+ const path_action = path + '.action';
95
+ if (typeof obj_action !== 'string') {
96
+ return new TypeError('Expected "string" but received "' + typeof obj_action + '" (at "' + path_action + '")');
97
97
  }
98
- const obj_message = obj.message;
99
- const path_message = path + '.message';
100
- if (typeof obj_message !== 'string') {
101
- return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
98
+ const obj_field = obj.field;
99
+ const path_field = path + '.field';
100
+ if (typeof obj_field !== 'string') {
101
+ return new TypeError('Expected "string" but received "' + typeof obj_field + '" (at "' + path_field + '")');
102
+ }
103
+ const obj_operator = obj.operator;
104
+ const path_operator = path + '.operator';
105
+ if (typeof obj_operator !== 'string') {
106
+ return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
107
+ }
108
+ const obj_values = obj.values;
109
+ const path_values = path + '.values';
110
+ if (!ArrayIsArray(obj_values)) {
111
+ return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
112
+ }
113
+ for (let i = 0; i < obj_values.length; i++) {
114
+ const obj_values_item = obj_values[i];
115
+ const path_values_item = path_values + '[' + i + ']';
116
+ if (typeof obj_values_item !== 'string') {
117
+ return new TypeError('Expected "string" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
118
+ }
119
+ }
120
+ })();
121
+ return v_error === undefined ? null : v_error;
122
+ }
123
+ const select$5 = function EngagementSignalFilterRepresentationSelect() {
124
+ return {
125
+ kind: 'Fragment',
126
+ version: VERSION$4,
127
+ private: [],
128
+ selections: [
129
+ {
130
+ name: 'action',
131
+ kind: 'Scalar'
132
+ },
133
+ {
134
+ name: 'field',
135
+ kind: 'Scalar'
136
+ },
137
+ {
138
+ name: 'operator',
139
+ kind: 'Scalar'
140
+ },
141
+ {
142
+ name: 'values',
143
+ kind: 'Scalar',
144
+ plural: true
145
+ }
146
+ ]
147
+ };
148
+ };
149
+ function equals$4(existing, incoming) {
150
+ const existing_action = existing.action;
151
+ const incoming_action = incoming.action;
152
+ if (!(existing_action === incoming_action)) {
153
+ return false;
154
+ }
155
+ const existing_field = existing.field;
156
+ const incoming_field = incoming.field;
157
+ if (!(existing_field === incoming_field)) {
158
+ return false;
159
+ }
160
+ const existing_operator = existing.operator;
161
+ const incoming_operator = incoming.operator;
162
+ if (!(existing_operator === incoming_operator)) {
163
+ return false;
164
+ }
165
+ const existing_values = existing.values;
166
+ const incoming_values = incoming.values;
167
+ const equals_values_items = equalsArray(existing_values, incoming_values, (existing_values_item, incoming_values_item) => {
168
+ if (!(existing_values_item === incoming_values_item)) {
169
+ return false;
170
+ }
171
+ });
172
+ if (equals_values_items === false) {
173
+ return false;
174
+ }
175
+ return true;
176
+ }
177
+
178
+ const VERSION$3 = "7764b6c0ac7f8728bb7b5bb6275205c9";
179
+ function validate$3(obj, path = 'EngagementSignalFilterGroupRepresentation') {
180
+ const v_error = (() => {
181
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
182
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
183
+ }
184
+ const obj_condition = obj.condition;
185
+ const path_condition = path + '.condition';
186
+ if (typeof obj_condition !== 'string') {
187
+ return new TypeError('Expected "string" but received "' + typeof obj_condition + '" (at "' + path_condition + '")');
188
+ }
189
+ const obj_filters = obj.filters;
190
+ const path_filters = path + '.filters';
191
+ if (!ArrayIsArray(obj_filters)) {
192
+ return new TypeError('Expected "array" but received "' + typeof obj_filters + '" (at "' + path_filters + '")');
193
+ }
194
+ for (let i = 0; i < obj_filters.length; i++) {
195
+ const obj_filters_item = obj_filters[i];
196
+ const path_filters_item = path_filters + '[' + i + ']';
197
+ const referencepath_filters_itemValidationError = validate$4(obj_filters_item, path_filters_item);
198
+ if (referencepath_filters_itemValidationError !== null) {
199
+ let message = 'Object doesn\'t match EngagementSignalFilterRepresentation (at "' + path_filters_item + '")\n';
200
+ message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
201
+ return new TypeError(message);
202
+ }
203
+ }
204
+ })();
205
+ return v_error === undefined ? null : v_error;
206
+ }
207
+ const select$4 = function EngagementSignalFilterGroupRepresentationSelect() {
208
+ const { selections: EngagementSignalFilterRepresentation__selections, opaque: EngagementSignalFilterRepresentation__opaque, } = select$5();
209
+ return {
210
+ kind: 'Fragment',
211
+ version: VERSION$3,
212
+ private: [],
213
+ selections: [
214
+ {
215
+ name: 'condition',
216
+ kind: 'Scalar'
217
+ },
218
+ {
219
+ name: 'filters',
220
+ kind: 'Object',
221
+ plural: true,
222
+ selections: EngagementSignalFilterRepresentation__selections
223
+ }
224
+ ]
225
+ };
226
+ };
227
+ function equals$3(existing, incoming) {
228
+ const existing_condition = existing.condition;
229
+ const incoming_condition = incoming.condition;
230
+ if (!(existing_condition === incoming_condition)) {
231
+ return false;
232
+ }
233
+ const existing_filters = existing.filters;
234
+ const incoming_filters = incoming.filters;
235
+ const equals_filters_items = equalsArray(existing_filters, incoming_filters, (existing_filters_item, incoming_filters_item) => {
236
+ if (!(equals$4(existing_filters_item, incoming_filters_item))) {
237
+ return false;
238
+ }
239
+ });
240
+ if (equals_filters_items === false) {
241
+ return false;
242
+ }
243
+ return true;
244
+ }
245
+
246
+ const VERSION$2 = "4002358550767b5517bab1932461184c";
247
+ function validate$2(obj, path = 'EngagementSignalMetricRepresentation') {
248
+ const v_error = (() => {
249
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
250
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
251
+ }
252
+ const obj_aggregateFunction = obj.aggregateFunction;
253
+ const path_aggregateFunction = path + '.aggregateFunction';
254
+ if (typeof obj_aggregateFunction !== 'string') {
255
+ return new TypeError('Expected "string" but received "' + typeof obj_aggregateFunction + '" (at "' + path_aggregateFunction + '")');
256
+ }
257
+ const obj_field = obj.field;
258
+ const path_field = path + '.field';
259
+ if (typeof obj_field !== 'string') {
260
+ return new TypeError('Expected "string" but received "' + typeof obj_field + '" (at "' + path_field + '")');
261
+ }
262
+ const obj_name = obj.name;
263
+ const path_name = path + '.name';
264
+ if (typeof obj_name !== 'string') {
265
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
102
266
  }
103
267
  })();
104
268
  return v_error === undefined ? null : v_error;
105
269
  }
106
- const select$2 = function EngagementSignalErrorResponseRepresentationSelect() {
270
+ const select$3 = function EngagementSignalMetricRepresentationSelect() {
271
+ return {
272
+ kind: 'Fragment',
273
+ version: VERSION$2,
274
+ private: [],
275
+ selections: [
276
+ {
277
+ name: 'aggregateFunction',
278
+ kind: 'Scalar'
279
+ },
280
+ {
281
+ name: 'field',
282
+ kind: 'Scalar'
283
+ },
284
+ {
285
+ name: 'name',
286
+ kind: 'Scalar'
287
+ }
288
+ ]
289
+ };
290
+ };
291
+ function equals$2(existing, incoming) {
292
+ const existing_aggregateFunction = existing.aggregateFunction;
293
+ const incoming_aggregateFunction = incoming.aggregateFunction;
294
+ if (!(existing_aggregateFunction === incoming_aggregateFunction)) {
295
+ return false;
296
+ }
297
+ const existing_field = existing.field;
298
+ const incoming_field = incoming.field;
299
+ if (!(existing_field === incoming_field)) {
300
+ return false;
301
+ }
302
+ const existing_name = existing.name;
303
+ const incoming_name = incoming.name;
304
+ if (!(existing_name === incoming_name)) {
305
+ return false;
306
+ }
307
+ return true;
308
+ }
309
+
310
+ const VERSION$1 = "610f115936516819ec203253177a4ea1";
311
+ function validate$1(obj, path = 'EngagementSignalRateMetricRepresentation') {
312
+ const v_error = (() => {
313
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
314
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
315
+ }
316
+ const obj_denominatorMetric = obj.denominatorMetric;
317
+ const path_denominatorMetric = path + '.denominatorMetric';
318
+ if (typeof obj_denominatorMetric !== 'string') {
319
+ return new TypeError('Expected "string" but received "' + typeof obj_denominatorMetric + '" (at "' + path_denominatorMetric + '")');
320
+ }
321
+ const obj_name = obj.name;
322
+ const path_name = path + '.name';
323
+ if (typeof obj_name !== 'string') {
324
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
325
+ }
326
+ const obj_numeratorMetric = obj.numeratorMetric;
327
+ const path_numeratorMetric = path + '.numeratorMetric';
328
+ if (typeof obj_numeratorMetric !== 'string') {
329
+ return new TypeError('Expected "string" but received "' + typeof obj_numeratorMetric + '" (at "' + path_numeratorMetric + '")');
330
+ }
331
+ })();
332
+ return v_error === undefined ? null : v_error;
333
+ }
334
+ const select$2 = function EngagementSignalRateMetricRepresentationSelect() {
107
335
  return {
108
336
  kind: 'Fragment',
109
337
  version: VERSION$1,
110
338
  private: [],
111
339
  selections: [
112
340
  {
113
- name: 'errorCode',
341
+ name: 'denominatorMetric',
342
+ kind: 'Scalar'
343
+ },
344
+ {
345
+ name: 'name',
114
346
  kind: 'Scalar'
115
347
  },
116
348
  {
117
- name: 'message',
349
+ name: 'numeratorMetric',
118
350
  kind: 'Scalar'
119
351
  }
120
352
  ]
121
353
  };
122
354
  };
123
355
  function equals$1(existing, incoming) {
124
- const existing_errorCode = existing.errorCode;
125
- const incoming_errorCode = incoming.errorCode;
126
- if (!(existing_errorCode === incoming_errorCode)) {
356
+ const existing_denominatorMetric = existing.denominatorMetric;
357
+ const incoming_denominatorMetric = incoming.denominatorMetric;
358
+ if (!(existing_denominatorMetric === incoming_denominatorMetric)) {
127
359
  return false;
128
360
  }
129
- const existing_message = existing.message;
130
- const incoming_message = incoming.message;
131
- if (!(existing_message === incoming_message)) {
361
+ const existing_name = existing.name;
362
+ const incoming_name = incoming.name;
363
+ if (!(existing_name === incoming_name)) {
364
+ return false;
365
+ }
366
+ const existing_numeratorMetric = existing.numeratorMetric;
367
+ const incoming_numeratorMetric = incoming.numeratorMetric;
368
+ if (!(existing_numeratorMetric === incoming_numeratorMetric)) {
132
369
  return false;
133
370
  }
134
371
  return true;
135
372
  }
136
373
 
137
374
  const TTL = 6000;
138
- const VERSION = "e25f060239c45264ef9dd5f19d035df6";
375
+ const VERSION = "6e4a34ece2fd93b118b8036eddaaa9a9";
139
376
  function validate(obj, path = 'EngagementSignalRepresentation') {
140
377
  const v_error = (() => {
141
378
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
142
379
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
143
380
  }
144
- const obj_errors = obj.errors;
145
- const path_errors = path + '.errors';
146
- if (!ArrayIsArray(obj_errors)) {
147
- return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
148
- }
149
- for (let i = 0; i < obj_errors.length; i++) {
150
- const obj_errors_item = obj_errors[i];
151
- const path_errors_item = path_errors + '[' + i + ']';
152
- const referencepath_errors_itemValidationError = validate$1(obj_errors_item, path_errors_item);
153
- if (referencepath_errors_itemValidationError !== null) {
154
- let message = 'Object doesn\'t match EngagementSignalErrorResponseRepresentation (at "' + path_errors_item + '")\n';
155
- message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
381
+ const obj_catalogIdField = obj.catalogIdField;
382
+ const path_catalogIdField = path + '.catalogIdField';
383
+ if (typeof obj_catalogIdField !== 'string') {
384
+ return new TypeError('Expected "string" but received "' + typeof obj_catalogIdField + '" (at "' + path_catalogIdField + '")');
385
+ }
386
+ const obj_dataSpace = obj.dataSpace;
387
+ const path_dataSpace = path + '.dataSpace';
388
+ if (typeof obj_dataSpace !== 'string') {
389
+ return new TypeError('Expected "string" but received "' + typeof obj_dataSpace + '" (at "' + path_dataSpace + '")');
390
+ }
391
+ const obj_distinctFields = obj.distinctFields;
392
+ const path_distinctFields = path + '.distinctFields';
393
+ if (!ArrayIsArray(obj_distinctFields)) {
394
+ return new TypeError('Expected "array" but received "' + typeof obj_distinctFields + '" (at "' + path_distinctFields + '")');
395
+ }
396
+ for (let i = 0; i < obj_distinctFields.length; i++) {
397
+ const obj_distinctFields_item = obj_distinctFields[i];
398
+ const path_distinctFields_item = path_distinctFields + '[' + i + ']';
399
+ if (typeof obj_distinctFields_item !== 'string') {
400
+ return new TypeError('Expected "string" but received "' + typeof obj_distinctFields_item + '" (at "' + path_distinctFields_item + '")');
401
+ }
402
+ }
403
+ const obj_filterGroups = obj.filterGroups;
404
+ const path_filterGroups = path + '.filterGroups';
405
+ if (!ArrayIsArray(obj_filterGroups)) {
406
+ return new TypeError('Expected "array" but received "' + typeof obj_filterGroups + '" (at "' + path_filterGroups + '")');
407
+ }
408
+ for (let i = 0; i < obj_filterGroups.length; i++) {
409
+ const obj_filterGroups_item = obj_filterGroups[i];
410
+ const path_filterGroups_item = path_filterGroups + '[' + i + ']';
411
+ const referencepath_filterGroups_itemValidationError = validate$3(obj_filterGroups_item, path_filterGroups_item);
412
+ if (referencepath_filterGroups_itemValidationError !== null) {
413
+ let message = 'Object doesn\'t match EngagementSignalFilterGroupRepresentation (at "' + path_filterGroups_item + '")\n';
414
+ message += referencepath_filterGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
156
415
  return new TypeError(message);
157
416
  }
158
417
  }
@@ -161,10 +420,77 @@ function validate(obj, path = 'EngagementSignalRepresentation') {
161
420
  if (typeof obj_id !== 'string') {
162
421
  return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
163
422
  }
164
- const obj_success = obj.success;
165
- const path_success = path + '.success';
166
- if (typeof obj_success !== 'boolean') {
167
- return new TypeError('Expected "boolean" but received "' + typeof obj_success + '" (at "' + path_success + '")');
423
+ const obj_joinDimensions = obj.joinDimensions;
424
+ const path_joinDimensions = path + '.joinDimensions';
425
+ if (!ArrayIsArray(obj_joinDimensions)) {
426
+ return new TypeError('Expected "array" but received "' + typeof obj_joinDimensions + '" (at "' + path_joinDimensions + '")');
427
+ }
428
+ for (let i = 0; i < obj_joinDimensions.length; i++) {
429
+ const obj_joinDimensions_item = obj_joinDimensions[i];
430
+ const path_joinDimensions_item = path_joinDimensions + '[' + i + ']';
431
+ if (typeof obj_joinDimensions_item !== 'string') {
432
+ return new TypeError('Expected "string" but received "' + typeof obj_joinDimensions_item + '" (at "' + path_joinDimensions_item + '")');
433
+ }
434
+ }
435
+ const obj_label = obj.label;
436
+ const path_label = path + '.label';
437
+ if (typeof obj_label !== 'string') {
438
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
439
+ }
440
+ const obj_metrics = obj.metrics;
441
+ const path_metrics = path + '.metrics';
442
+ if (!ArrayIsArray(obj_metrics)) {
443
+ return new TypeError('Expected "array" but received "' + typeof obj_metrics + '" (at "' + path_metrics + '")');
444
+ }
445
+ for (let i = 0; i < obj_metrics.length; i++) {
446
+ const obj_metrics_item = obj_metrics[i];
447
+ const path_metrics_item = path_metrics + '[' + i + ']';
448
+ const referencepath_metrics_itemValidationError = validate$2(obj_metrics_item, path_metrics_item);
449
+ if (referencepath_metrics_itemValidationError !== null) {
450
+ let message = 'Object doesn\'t match EngagementSignalMetricRepresentation (at "' + path_metrics_item + '")\n';
451
+ message += referencepath_metrics_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
452
+ return new TypeError(message);
453
+ }
454
+ }
455
+ const obj_name = obj.name;
456
+ const path_name = path + '.name';
457
+ if (typeof obj_name !== 'string') {
458
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
459
+ }
460
+ const obj_object = obj.object;
461
+ const path_object = path + '.object';
462
+ if (typeof obj_object !== 'string') {
463
+ return new TypeError('Expected "string" but received "' + typeof obj_object + '" (at "' + path_object + '")');
464
+ }
465
+ const obj_rateMetrics = obj.rateMetrics;
466
+ const path_rateMetrics = path + '.rateMetrics';
467
+ if (!ArrayIsArray(obj_rateMetrics)) {
468
+ return new TypeError('Expected "array" but received "' + typeof obj_rateMetrics + '" (at "' + path_rateMetrics + '")');
469
+ }
470
+ for (let i = 0; i < obj_rateMetrics.length; i++) {
471
+ const obj_rateMetrics_item = obj_rateMetrics[i];
472
+ const path_rateMetrics_item = path_rateMetrics + '[' + i + ']';
473
+ const referencepath_rateMetrics_itemValidationError = validate$1(obj_rateMetrics_item, path_rateMetrics_item);
474
+ if (referencepath_rateMetrics_itemValidationError !== null) {
475
+ let message = 'Object doesn\'t match EngagementSignalRateMetricRepresentation (at "' + path_rateMetrics_item + '")\n';
476
+ message += referencepath_rateMetrics_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
477
+ return new TypeError(message);
478
+ }
479
+ }
480
+ const obj_timestampField = obj.timestampField;
481
+ const path_timestampField = path + '.timestampField';
482
+ if (typeof obj_timestampField !== 'string') {
483
+ return new TypeError('Expected "string" but received "' + typeof obj_timestampField + '" (at "' + path_timestampField + '")');
484
+ }
485
+ const obj_uniqueIdentifier = obj.uniqueIdentifier;
486
+ const path_uniqueIdentifier = path + '.uniqueIdentifier';
487
+ if (typeof obj_uniqueIdentifier !== 'string') {
488
+ return new TypeError('Expected "string" but received "' + typeof obj_uniqueIdentifier + '" (at "' + path_uniqueIdentifier + '")');
489
+ }
490
+ const obj_userIdField = obj.userIdField;
491
+ const path_userIdField = path + '.userIdField';
492
+ if (typeof obj_userIdField !== 'string') {
493
+ return new TypeError('Expected "string" but received "' + typeof obj_userIdField + '" (at "' + path_userIdField + '")');
168
494
  }
169
495
  })();
170
496
  return v_error === undefined ? null : v_error;
@@ -183,33 +509,90 @@ function normalize(input, existing, path, luvio, store, timestamp) {
183
509
  return input;
184
510
  }
185
511
  const select$1 = function EngagementSignalRepresentationSelect() {
186
- const { selections: EngagementSignalErrorResponseRepresentation__selections, opaque: EngagementSignalErrorResponseRepresentation__opaque, } = select$2();
512
+ const { selections: EngagementSignalFilterGroupRepresentation__selections, opaque: EngagementSignalFilterGroupRepresentation__opaque, } = select$4();
513
+ const { selections: EngagementSignalMetricRepresentation__selections, opaque: EngagementSignalMetricRepresentation__opaque, } = select$3();
514
+ const { selections: EngagementSignalRateMetricRepresentation__selections, opaque: EngagementSignalRateMetricRepresentation__opaque, } = select$2();
187
515
  return {
188
516
  kind: 'Fragment',
189
517
  version: VERSION,
190
518
  private: [],
191
519
  selections: [
192
520
  {
193
- name: 'errors',
521
+ name: 'catalogIdField',
522
+ kind: 'Scalar'
523
+ },
524
+ {
525
+ name: 'dataSpace',
526
+ kind: 'Scalar'
527
+ },
528
+ {
529
+ name: 'distinctFields',
530
+ kind: 'Scalar',
531
+ plural: true
532
+ },
533
+ {
534
+ name: 'filterGroups',
194
535
  kind: 'Object',
195
536
  plural: true,
196
- selections: EngagementSignalErrorResponseRepresentation__selections
537
+ selections: EngagementSignalFilterGroupRepresentation__selections
197
538
  },
198
539
  {
199
540
  name: 'id',
200
541
  kind: 'Scalar'
201
542
  },
202
543
  {
203
- name: 'success',
544
+ name: 'joinDimensions',
545
+ kind: 'Scalar',
546
+ plural: true
547
+ },
548
+ {
549
+ name: 'label',
550
+ kind: 'Scalar'
551
+ },
552
+ {
553
+ name: 'metrics',
554
+ kind: 'Object',
555
+ plural: true,
556
+ selections: EngagementSignalMetricRepresentation__selections
557
+ },
558
+ {
559
+ name: 'name',
560
+ kind: 'Scalar'
561
+ },
562
+ {
563
+ name: 'object',
564
+ kind: 'Scalar'
565
+ },
566
+ {
567
+ name: 'rateMetrics',
568
+ kind: 'Object',
569
+ plural: true,
570
+ selections: EngagementSignalRateMetricRepresentation__selections
571
+ },
572
+ {
573
+ name: 'timestampField',
574
+ kind: 'Scalar'
575
+ },
576
+ {
577
+ name: 'uniqueIdentifier',
578
+ kind: 'Scalar'
579
+ },
580
+ {
581
+ name: 'userIdField',
204
582
  kind: 'Scalar'
205
583
  }
206
584
  ]
207
585
  };
208
586
  };
209
587
  function equals(existing, incoming) {
210
- const existing_success = existing.success;
211
- const incoming_success = incoming.success;
212
- if (!(existing_success === incoming_success)) {
588
+ const existing_catalogIdField = existing.catalogIdField;
589
+ const incoming_catalogIdField = incoming.catalogIdField;
590
+ if (!(existing_catalogIdField === incoming_catalogIdField)) {
591
+ return false;
592
+ }
593
+ const existing_dataSpace = existing.dataSpace;
594
+ const incoming_dataSpace = incoming.dataSpace;
595
+ if (!(existing_dataSpace === incoming_dataSpace)) {
213
596
  return false;
214
597
  }
215
598
  const existing_id = existing.id;
@@ -217,14 +600,84 @@ function equals(existing, incoming) {
217
600
  if (!(existing_id === incoming_id)) {
218
601
  return false;
219
602
  }
220
- const existing_errors = existing.errors;
221
- const incoming_errors = incoming.errors;
222
- const equals_errors_items = equalsArray(existing_errors, incoming_errors, (existing_errors_item, incoming_errors_item) => {
223
- if (!(equals$1(existing_errors_item, incoming_errors_item))) {
603
+ const existing_label = existing.label;
604
+ const incoming_label = incoming.label;
605
+ if (!(existing_label === incoming_label)) {
606
+ return false;
607
+ }
608
+ const existing_name = existing.name;
609
+ const incoming_name = incoming.name;
610
+ if (!(existing_name === incoming_name)) {
611
+ return false;
612
+ }
613
+ const existing_object = existing.object;
614
+ const incoming_object = incoming.object;
615
+ if (!(existing_object === incoming_object)) {
616
+ return false;
617
+ }
618
+ const existing_timestampField = existing.timestampField;
619
+ const incoming_timestampField = incoming.timestampField;
620
+ if (!(existing_timestampField === incoming_timestampField)) {
621
+ return false;
622
+ }
623
+ const existing_uniqueIdentifier = existing.uniqueIdentifier;
624
+ const incoming_uniqueIdentifier = incoming.uniqueIdentifier;
625
+ if (!(existing_uniqueIdentifier === incoming_uniqueIdentifier)) {
626
+ return false;
627
+ }
628
+ const existing_userIdField = existing.userIdField;
629
+ const incoming_userIdField = incoming.userIdField;
630
+ if (!(existing_userIdField === incoming_userIdField)) {
631
+ return false;
632
+ }
633
+ const existing_distinctFields = existing.distinctFields;
634
+ const incoming_distinctFields = incoming.distinctFields;
635
+ const equals_distinctFields_items = equalsArray(existing_distinctFields, incoming_distinctFields, (existing_distinctFields_item, incoming_distinctFields_item) => {
636
+ if (!(existing_distinctFields_item === incoming_distinctFields_item)) {
637
+ return false;
638
+ }
639
+ });
640
+ if (equals_distinctFields_items === false) {
641
+ return false;
642
+ }
643
+ const existing_filterGroups = existing.filterGroups;
644
+ const incoming_filterGroups = incoming.filterGroups;
645
+ const equals_filterGroups_items = equalsArray(existing_filterGroups, incoming_filterGroups, (existing_filterGroups_item, incoming_filterGroups_item) => {
646
+ if (!(equals$3(existing_filterGroups_item, incoming_filterGroups_item))) {
647
+ return false;
648
+ }
649
+ });
650
+ if (equals_filterGroups_items === false) {
651
+ return false;
652
+ }
653
+ const existing_joinDimensions = existing.joinDimensions;
654
+ const incoming_joinDimensions = incoming.joinDimensions;
655
+ const equals_joinDimensions_items = equalsArray(existing_joinDimensions, incoming_joinDimensions, (existing_joinDimensions_item, incoming_joinDimensions_item) => {
656
+ if (!(existing_joinDimensions_item === incoming_joinDimensions_item)) {
657
+ return false;
658
+ }
659
+ });
660
+ if (equals_joinDimensions_items === false) {
661
+ return false;
662
+ }
663
+ const existing_metrics = existing.metrics;
664
+ const incoming_metrics = incoming.metrics;
665
+ const equals_metrics_items = equalsArray(existing_metrics, incoming_metrics, (existing_metrics_item, incoming_metrics_item) => {
666
+ if (!(equals$2(existing_metrics_item, incoming_metrics_item))) {
667
+ return false;
668
+ }
669
+ });
670
+ if (equals_metrics_items === false) {
671
+ return false;
672
+ }
673
+ const existing_rateMetrics = existing.rateMetrics;
674
+ const incoming_rateMetrics = incoming.rateMetrics;
675
+ const equals_rateMetrics_items = equalsArray(existing_rateMetrics, incoming_rateMetrics, (existing_rateMetrics_item, incoming_rateMetrics_item) => {
676
+ if (!(equals$1(existing_rateMetrics_item, incoming_rateMetrics_item))) {
224
677
  return false;
225
678
  }
226
679
  });
227
- if (equals_errors_items === false) {
680
+ if (equals_rateMetrics_items === false) {
228
681
  return false;
229
682
  }
230
683
  return true;
@@ -278,7 +731,7 @@ function createResourceRequest(config) {
278
731
  const headers = {};
279
732
  return {
280
733
  baseUri: '/services/data/v63.0',
281
- basePath: '/engagementsignal/engagement-signals',
734
+ basePath: '/personalization/engagement-signals',
282
735
  method: 'post',
283
736
  body: config.body,
284
737
  urlParams: {},
@@ -290,17 +743,17 @@ function createResourceRequest(config) {
290
743
 
291
744
  const adapterName = 'createEngagementSignal';
292
745
  const createEngagementSignal_ConfigPropertyMetadata = [
293
- generateParamConfigMetadata('catalogIdField', true, 2 /* Body */, 0 /* String */),
746
+ generateParamConfigMetadata('catalogIdField', false, 2 /* Body */, 0 /* String */),
294
747
  generateParamConfigMetadata('dataSpace', true, 2 /* Body */, 0 /* String */),
295
- generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
296
- generateParamConfigMetadata('distinctFields', true, 2 /* Body */, 0 /* String */, true),
297
- generateParamConfigMetadata('filterGroups', true, 2 /* Body */, 4 /* Unsupported */, true),
298
- generateParamConfigMetadata('joinDimensions', true, 2 /* Body */, 0 /* String */, true),
748
+ generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
749
+ generateParamConfigMetadata('distinctFields', false, 2 /* Body */, 0 /* String */, true),
750
+ generateParamConfigMetadata('filterGroups', false, 2 /* Body */, 4 /* Unsupported */, true),
751
+ generateParamConfigMetadata('joinDimensions', false, 2 /* Body */, 0 /* String */, true),
299
752
  generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
300
- generateParamConfigMetadata('metrics', true, 2 /* Body */, 4 /* Unsupported */, true),
753
+ generateParamConfigMetadata('metrics', false, 2 /* Body */, 4 /* Unsupported */, true),
301
754
  generateParamConfigMetadata('name', true, 2 /* Body */, 0 /* String */),
302
755
  generateParamConfigMetadata('object', true, 2 /* Body */, 0 /* String */),
303
- generateParamConfigMetadata('rateMetrics', true, 2 /* Body */, 4 /* Unsupported */, true),
756
+ generateParamConfigMetadata('rateMetrics', false, 2 /* Body */, 4 /* Unsupported */, true),
304
757
  generateParamConfigMetadata('timestampField', true, 2 /* Body */, 0 /* String */),
305
758
  generateParamConfigMetadata('uniqueIdentifier', true, 2 /* Body */, 0 /* String */),
306
759
  generateParamConfigMetadata('userIdField', true, 2 /* Body */, 0 /* String */),