@salesforce/lds-adapters-industries-omnianalytics 0.1.0-dev1

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.
Files changed (27) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-omnianalytics.js +1870 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/fetchOmniAnalyticsLogs.d.ts +34 -0
  5. package/dist/es/es2018/types/src/generated/adapters/fetchOmniAnalyticsMetadata.d.ts +30 -0
  6. package/dist/es/es2018/types/src/generated/adapters/storeOmniAnalyticsLogs.d.ts +19 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +6 -0
  9. package/dist/es/es2018/types/src/generated/resources/getConnectOmniAnalyticsAnalyticsMetadata.d.ts +18 -0
  10. package/dist/es/es2018/types/src/generated/resources/getConnectOmniAnalyticsGetAnalyticsLogs.d.ts +22 -0
  11. package/dist/es/es2018/types/src/generated/resources/postConnectOmniAnalyticsAnalyticsLogs.d.ts +16 -0
  12. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsLogCreateRepresentation.d.ts +47 -0
  13. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsLogDetailRepresentation.d.ts +46 -0
  14. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsLogInputRepresentation.d.ts +40 -0
  15. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsLogsRepresentation.d.ts +33 -0
  16. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsMetadataRepresentation.d.ts +46 -0
  17. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsSettingRepresentation.d.ts +31 -0
  18. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsTrackingComponentRepresentation.d.ts +46 -0
  19. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsTrackingExternalDefRepresentation.d.ts +46 -0
  20. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsTrackingExternalEventDefRepresentation.d.ts +49 -0
  21. package/dist/es/es2018/types/src/generated/types/OmniAnalyticsTrackingGroupRepresentation.d.ts +55 -0
  22. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  23. package/package.json +69 -0
  24. package/sfdc/index.d.ts +1 -0
  25. package/sfdc/index.js +1927 -0
  26. package/src/raml/api.raml +377 -0
  27. package/src/raml/luvio.raml +35 -0
package/sfdc/index.js ADDED
@@ -0,0 +1,1927 @@
1
+ /**
2
+ * Copyright (c) 2022, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+
7
+ /*
8
+ * ATTENTION!
9
+ * THIS IS A GENERATED FILE FROM https://github.com/salesforce-experience-platform-emu/lds-lightning-platform
10
+ * If you would like to contribute to LDS, please follow the steps outlined in the git repo.
11
+ * Any changes made to this file in p4 will be automatically overwritten.
12
+ * *******************************************************************************************
13
+ */
14
+ /* proxy-compat-disable */
15
+ import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
16
+ import { withDefaultLuvio } from 'force/ldsEngine';
17
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2, typeCheckConfig as typeCheckConfig$3, StoreKeyMap, createResourceParams as createResourceParams$3 } from 'force/luvioEngine';
18
+
19
+ const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
20
+ const { keys: ObjectKeys, create: ObjectCreate } = Object;
21
+ const { isArray: ArrayIsArray$1 } = Array;
22
+ /**
23
+ * Validates an adapter config is well-formed.
24
+ * @param config The config to validate.
25
+ * @param adapter The adapter validation configuration.
26
+ * @param oneOf The keys the config must contain at least one of.
27
+ * @throws A TypeError if config doesn't satisfy the adapter's config validation.
28
+ */
29
+ function validateConfig(config, adapter, oneOf) {
30
+ const { displayName } = adapter;
31
+ const { required, optional, unsupported } = adapter.parameters;
32
+ if (config === undefined ||
33
+ required.every(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
34
+ throw new TypeError(`adapter ${displayName} configuration must specify ${required.sort().join(', ')}`);
35
+ }
36
+ if (oneOf && oneOf.some(req => ObjectPrototypeHasOwnProperty.call(config, req)) === false) {
37
+ throw new TypeError(`adapter ${displayName} configuration must specify one of ${oneOf.sort().join(', ')}`);
38
+ }
39
+ if (unsupported !== undefined &&
40
+ unsupported.some(req => ObjectPrototypeHasOwnProperty.call(config, req))) {
41
+ throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
42
+ }
43
+ const supported = required.concat(optional);
44
+ if (ObjectKeys(config).some(key => !supported.includes(key))) {
45
+ throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
46
+ }
47
+ }
48
+ function untrustedIsObject(untrusted) {
49
+ return typeof untrusted === 'object' && untrusted !== null && ArrayIsArray$1(untrusted) === false;
50
+ }
51
+ function areRequiredParametersPresent(config, configPropertyNames) {
52
+ return configPropertyNames.parameters.required.every(req => req in config);
53
+ }
54
+ const snapshotRefreshOptions = {
55
+ overrides: {
56
+ headers: {
57
+ 'Cache-Control': 'no-cache',
58
+ },
59
+ }
60
+ };
61
+ function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
62
+ return {
63
+ name,
64
+ required,
65
+ resourceType,
66
+ typeCheckShape,
67
+ isArrayShape,
68
+ coerceFn,
69
+ };
70
+ }
71
+ function buildAdapterValidationConfig(displayName, paramsMeta) {
72
+ const required = paramsMeta.filter(p => p.required).map(p => p.name);
73
+ const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
74
+ return {
75
+ displayName,
76
+ parameters: {
77
+ required,
78
+ optional,
79
+ }
80
+ };
81
+ }
82
+ const keyPrefix = 'omnianalytics';
83
+
84
+ const { isArray: ArrayIsArray } = Array;
85
+ function equalsArray(a, b, equalsItem) {
86
+ const aLength = a.length;
87
+ const bLength = b.length;
88
+ if (aLength !== bLength) {
89
+ return false;
90
+ }
91
+ for (let i = 0; i < aLength; i++) {
92
+ if (equalsItem(a[i], b[i]) === false) {
93
+ return false;
94
+ }
95
+ }
96
+ return true;
97
+ }
98
+ function createLink(ref) {
99
+ return {
100
+ __ref: serializeStructuredKey(ref),
101
+ };
102
+ }
103
+
104
+ const VERSION$8 = "71b26da062a33b1206d5b4a578dba540";
105
+ function validate$8(obj, path = 'OmniAnalyticsLogDetailRepresentation') {
106
+ const v_error = (() => {
107
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
108
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
109
+ }
110
+ const obj_applicationLogDate = obj.applicationLogDate;
111
+ const path_applicationLogDate = path + '.applicationLogDate';
112
+ if (typeof obj_applicationLogDate !== 'string') {
113
+ return new TypeError('Expected "string" but received "' + typeof obj_applicationLogDate + '" (at "' + path_applicationLogDate + '")');
114
+ }
115
+ const obj_applicationName = obj.applicationName;
116
+ const path_applicationName = path + '.applicationName';
117
+ if (typeof obj_applicationName !== 'string') {
118
+ return new TypeError('Expected "string" but received "' + typeof obj_applicationName + '" (at "' + path_applicationName + '")');
119
+ }
120
+ const obj_componentId = obj.componentId;
121
+ const path_componentId = path + '.componentId';
122
+ if (typeof obj_componentId !== 'string') {
123
+ return new TypeError('Expected "string" but received "' + typeof obj_componentId + '" (at "' + path_componentId + '")');
124
+ }
125
+ const obj_componentType = obj.componentType;
126
+ const path_componentType = path + '.componentType';
127
+ if (typeof obj_componentType !== 'string') {
128
+ return new TypeError('Expected "string" but received "' + typeof obj_componentType + '" (at "' + path_componentType + '")');
129
+ }
130
+ const obj_eventType = obj.eventType;
131
+ const path_eventType = path + '.eventType';
132
+ if (typeof obj_eventType !== 'string') {
133
+ return new TypeError('Expected "string" but received "' + typeof obj_eventType + '" (at "' + path_eventType + '")');
134
+ }
135
+ const obj_name = obj.name;
136
+ const path_name = path + '.name';
137
+ if (typeof obj_name !== 'string') {
138
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
139
+ }
140
+ const obj_omniAnalyticsLog = obj.omniAnalyticsLog;
141
+ const path_omniAnalyticsLog = path + '.omniAnalyticsLog';
142
+ if (typeof obj_omniAnalyticsLog !== 'string') {
143
+ return new TypeError('Expected "string" but received "' + typeof obj_omniAnalyticsLog + '" (at "' + path_omniAnalyticsLog + '")');
144
+ }
145
+ })();
146
+ return v_error === undefined ? null : v_error;
147
+ }
148
+ const select$b = function OmniAnalyticsLogDetailRepresentationSelect() {
149
+ return {
150
+ kind: 'Fragment',
151
+ version: VERSION$8,
152
+ private: [],
153
+ selections: [
154
+ {
155
+ name: 'applicationLogDate',
156
+ kind: 'Scalar'
157
+ },
158
+ {
159
+ name: 'applicationName',
160
+ kind: 'Scalar'
161
+ },
162
+ {
163
+ name: 'componentId',
164
+ kind: 'Scalar'
165
+ },
166
+ {
167
+ name: 'componentType',
168
+ kind: 'Scalar'
169
+ },
170
+ {
171
+ name: 'eventType',
172
+ kind: 'Scalar'
173
+ },
174
+ {
175
+ name: 'name',
176
+ kind: 'Scalar'
177
+ },
178
+ {
179
+ name: 'omniAnalyticsLog',
180
+ kind: 'Scalar'
181
+ }
182
+ ]
183
+ };
184
+ };
185
+ function equals$8(existing, incoming) {
186
+ const existing_applicationLogDate = existing.applicationLogDate;
187
+ const incoming_applicationLogDate = incoming.applicationLogDate;
188
+ if (!(existing_applicationLogDate === incoming_applicationLogDate)) {
189
+ return false;
190
+ }
191
+ const existing_applicationName = existing.applicationName;
192
+ const incoming_applicationName = incoming.applicationName;
193
+ if (!(existing_applicationName === incoming_applicationName)) {
194
+ return false;
195
+ }
196
+ const existing_componentId = existing.componentId;
197
+ const incoming_componentId = incoming.componentId;
198
+ if (!(existing_componentId === incoming_componentId)) {
199
+ return false;
200
+ }
201
+ const existing_componentType = existing.componentType;
202
+ const incoming_componentType = incoming.componentType;
203
+ if (!(existing_componentType === incoming_componentType)) {
204
+ return false;
205
+ }
206
+ const existing_eventType = existing.eventType;
207
+ const incoming_eventType = incoming.eventType;
208
+ if (!(existing_eventType === incoming_eventType)) {
209
+ return false;
210
+ }
211
+ const existing_name = existing.name;
212
+ const incoming_name = incoming.name;
213
+ if (!(existing_name === incoming_name)) {
214
+ return false;
215
+ }
216
+ const existing_omniAnalyticsLog = existing.omniAnalyticsLog;
217
+ const incoming_omniAnalyticsLog = incoming.omniAnalyticsLog;
218
+ if (!(existing_omniAnalyticsLog === incoming_omniAnalyticsLog)) {
219
+ return false;
220
+ }
221
+ return true;
222
+ }
223
+
224
+ const TTL$2 = 10000;
225
+ const VERSION$7 = "4c7a5f813fcd05ae649158a68a2194f4";
226
+ function validate$7(obj, path = 'OmniAnalyticsLogsRepresentation') {
227
+ const v_error = (() => {
228
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
229
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
230
+ }
231
+ const obj_actionLogs = obj.actionLogs;
232
+ const path_actionLogs = path + '.actionLogs';
233
+ if (!ArrayIsArray(obj_actionLogs)) {
234
+ return new TypeError('Expected "array" but received "' + typeof obj_actionLogs + '" (at "' + path_actionLogs + '")');
235
+ }
236
+ for (let i = 0; i < obj_actionLogs.length; i++) {
237
+ const obj_actionLogs_item = obj_actionLogs[i];
238
+ const path_actionLogs_item = path_actionLogs + '[' + i + ']';
239
+ const referencepath_actionLogs_itemValidationError = validate$8(obj_actionLogs_item, path_actionLogs_item);
240
+ if (referencepath_actionLogs_itemValidationError !== null) {
241
+ let message = 'Object doesn\'t match OmniAnalyticsLogDetailRepresentation (at "' + path_actionLogs_item + '")\n';
242
+ message += referencepath_actionLogs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
243
+ return new TypeError(message);
244
+ }
245
+ }
246
+ if (obj.queryMore !== undefined) {
247
+ const obj_queryMore = obj.queryMore;
248
+ const path_queryMore = path + '.queryMore';
249
+ if (typeof obj_queryMore !== 'string') {
250
+ return new TypeError('Expected "string" but received "' + typeof obj_queryMore + '" (at "' + path_queryMore + '")');
251
+ }
252
+ }
253
+ })();
254
+ return v_error === undefined ? null : v_error;
255
+ }
256
+ const RepresentationType$2 = 'OmniAnalyticsLogsRepresentation';
257
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
258
+ return input;
259
+ }
260
+ const select$a = function OmniAnalyticsLogsRepresentationSelect() {
261
+ const { selections: OmniAnalyticsLogDetailRepresentation__selections, opaque: OmniAnalyticsLogDetailRepresentation__opaque, } = select$b();
262
+ return {
263
+ kind: 'Fragment',
264
+ version: VERSION$7,
265
+ private: [],
266
+ selections: [
267
+ {
268
+ name: 'actionLogs',
269
+ kind: 'Object',
270
+ plural: true,
271
+ selections: OmniAnalyticsLogDetailRepresentation__selections
272
+ },
273
+ {
274
+ name: 'queryMore',
275
+ kind: 'Scalar',
276
+ required: false
277
+ }
278
+ ]
279
+ };
280
+ };
281
+ function equals$7(existing, incoming) {
282
+ const existing_queryMore = existing.queryMore;
283
+ const incoming_queryMore = incoming.queryMore;
284
+ // if at least one of these optionals is defined
285
+ if (existing_queryMore !== undefined || incoming_queryMore !== undefined) {
286
+ // if one of these is not defined we know the other is defined and therefore
287
+ // not equal
288
+ if (existing_queryMore === undefined || incoming_queryMore === undefined) {
289
+ return false;
290
+ }
291
+ if (!(existing_queryMore === incoming_queryMore)) {
292
+ return false;
293
+ }
294
+ }
295
+ const existing_actionLogs = existing.actionLogs;
296
+ const incoming_actionLogs = incoming.actionLogs;
297
+ const equals_actionLogs_items = equalsArray(existing_actionLogs, incoming_actionLogs, (existing_actionLogs_item, incoming_actionLogs_item) => {
298
+ if (!(equals$8(existing_actionLogs_item, incoming_actionLogs_item))) {
299
+ return false;
300
+ }
301
+ });
302
+ if (equals_actionLogs_items === false) {
303
+ return false;
304
+ }
305
+ return true;
306
+ }
307
+ const ingest$2 = function OmniAnalyticsLogsRepresentationIngest(input, path, luvio, store, timestamp) {
308
+ if (process.env.NODE_ENV !== 'production') {
309
+ const validateError = validate$7(input);
310
+ if (validateError !== null) {
311
+ throw validateError;
312
+ }
313
+ }
314
+ const key = path.fullPath;
315
+ const ttlToUse = TTL$2;
316
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "omnianalytics", VERSION$7, RepresentationType$2, equals$7);
317
+ return createLink(key);
318
+ };
319
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
320
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
321
+ const rootKey = fullPathFactory();
322
+ rootKeySet.set(rootKey, {
323
+ namespace: keyPrefix,
324
+ representationName: RepresentationType$2,
325
+ mergeable: false
326
+ });
327
+ }
328
+
329
+ function select$9(luvio, params) {
330
+ return select$a();
331
+ }
332
+ function keyBuilder$4(luvio, params) {
333
+ return keyPrefix + '::OmniAnalyticsLogsRepresentation:(' + 'applicationName:' + params.queryParams.applicationName + ',' + 'componentId:' + params.queryParams.componentId + ',' + 'componentType:' + params.queryParams.componentType + ',' + 'createdAfter:' + params.queryParams.createdAfter + ',' + 'createdBefore:' + params.queryParams.createdBefore + ',' + 'eventType:' + params.queryParams.eventType + ',' + 'pagesize:' + params.queryParams.pagesize + ',' + 'queryMore:' + params.queryParams.queryMore + ')';
334
+ }
335
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
336
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
337
+ }
338
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
339
+ const { body } = response;
340
+ const key = keyBuilder$4(luvio, resourceParams);
341
+ luvio.storeIngest(key, ingest$2, body);
342
+ const snapshot = luvio.storeLookup({
343
+ recordId: key,
344
+ node: select$9(),
345
+ variables: {},
346
+ }, snapshotRefresh);
347
+ if (process.env.NODE_ENV !== 'production') {
348
+ if (snapshot.state !== 'Fulfilled') {
349
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
350
+ }
351
+ }
352
+ deepFreeze(snapshot.data);
353
+ return snapshot;
354
+ }
355
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
356
+ const key = keyBuilder$4(luvio, params);
357
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
358
+ const storeMetadataParams = {
359
+ ttl: TTL$2,
360
+ namespace: keyPrefix,
361
+ version: VERSION$7,
362
+ representationName: RepresentationType$2
363
+ };
364
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
365
+ return errorSnapshot;
366
+ }
367
+ function createResourceRequest$2(config) {
368
+ const headers = {};
369
+ return {
370
+ baseUri: '/services/data/v66.0',
371
+ basePath: '/connect/omni-analytics/get-analytics-logs',
372
+ method: 'get',
373
+ body: null,
374
+ urlParams: {},
375
+ queryParams: config.queryParams,
376
+ headers,
377
+ priority: 'normal',
378
+ };
379
+ }
380
+
381
+ const adapterName$2 = 'fetchOmniAnalyticsLogs';
382
+ const fetchOmniAnalyticsLogs_ConfigPropertyMetadata = [
383
+ generateParamConfigMetadata('applicationName', false, 1 /* QueryParameter */, 0 /* String */),
384
+ generateParamConfigMetadata('componentId', false, 1 /* QueryParameter */, 0 /* String */),
385
+ generateParamConfigMetadata('componentType', false, 1 /* QueryParameter */, 0 /* String */),
386
+ generateParamConfigMetadata('createdAfter', false, 1 /* QueryParameter */, 0 /* String */),
387
+ generateParamConfigMetadata('createdBefore', false, 1 /* QueryParameter */, 0 /* String */),
388
+ generateParamConfigMetadata('eventType', false, 1 /* QueryParameter */, 0 /* String */),
389
+ generateParamConfigMetadata('pagesize', false, 1 /* QueryParameter */, 3 /* Integer */),
390
+ generateParamConfigMetadata('queryMore', false, 1 /* QueryParameter */, 0 /* String */),
391
+ ];
392
+ const fetchOmniAnalyticsLogs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, fetchOmniAnalyticsLogs_ConfigPropertyMetadata);
393
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$3(fetchOmniAnalyticsLogs_ConfigPropertyMetadata);
394
+ function keyBuilder$3(luvio, config) {
395
+ const resourceParams = createResourceParams$2(config);
396
+ return keyBuilder$4(luvio, resourceParams);
397
+ }
398
+ function typeCheckConfig$2(untrustedConfig) {
399
+ const config = {};
400
+ typeCheckConfig$3(untrustedConfig, config, fetchOmniAnalyticsLogs_ConfigPropertyMetadata);
401
+ return config;
402
+ }
403
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
404
+ if (!untrustedIsObject(untrustedConfig)) {
405
+ return null;
406
+ }
407
+ if (process.env.NODE_ENV !== 'production') {
408
+ validateConfig(untrustedConfig, configPropertyNames);
409
+ }
410
+ const config = typeCheckConfig$2(untrustedConfig);
411
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
412
+ return null;
413
+ }
414
+ return config;
415
+ }
416
+ function adapterFragment$1(luvio, config) {
417
+ createResourceParams$2(config);
418
+ return select$9();
419
+ }
420
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
421
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
422
+ config,
423
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
424
+ });
425
+ return luvio.storeBroadcast().then(() => snapshot);
426
+ }
427
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
428
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
429
+ config,
430
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
431
+ });
432
+ return luvio.storeBroadcast().then(() => snapshot);
433
+ }
434
+ function buildNetworkSnapshot$2(luvio, config, options) {
435
+ const resourceParams = createResourceParams$2(config);
436
+ const request = createResourceRequest$2(resourceParams);
437
+ return luvio.dispatchResourceRequest(request, options)
438
+ .then((response) => {
439
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
440
+ const cache = new StoreKeyMap();
441
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
442
+ return cache;
443
+ });
444
+ }, (response) => {
445
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
446
+ });
447
+ }
448
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
449
+ return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
450
+ }
451
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
452
+ const { luvio, config } = context;
453
+ const selector = {
454
+ recordId: keyBuilder$3(luvio, config),
455
+ node: adapterFragment$1(luvio, config),
456
+ variables: {},
457
+ };
458
+ const cacheSnapshot = storeLookup(selector, {
459
+ config,
460
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
461
+ });
462
+ return cacheSnapshot;
463
+ }
464
+ const fetchOmniAnalyticsLogsAdapterFactory = (luvio) => function omnianalytics__fetchOmniAnalyticsLogs(untrustedConfig, requestContext) {
465
+ const config = validateAdapterConfig$2(untrustedConfig, fetchOmniAnalyticsLogs_ConfigPropertyNames);
466
+ // Invalid or incomplete config
467
+ if (config === null) {
468
+ return null;
469
+ }
470
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
471
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
472
+ };
473
+
474
+ const VERSION$6 = "0a621a407c2ed4e5cfb104db53f4a29c";
475
+ function validate$6(obj, path = 'OmniAnalyticsSettingRepresentation') {
476
+ const v_error = (() => {
477
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
478
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
479
+ }
480
+ const obj_name = obj.name;
481
+ const path_name = path + '.name';
482
+ if (typeof obj_name !== 'string') {
483
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
484
+ }
485
+ if (obj.value !== undefined) {
486
+ const obj_value = obj.value;
487
+ const path_value = path + '.value';
488
+ if (typeof obj_value !== 'string') {
489
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
490
+ }
491
+ }
492
+ })();
493
+ return v_error === undefined ? null : v_error;
494
+ }
495
+ const select$8 = function OmniAnalyticsSettingRepresentationSelect() {
496
+ return {
497
+ kind: 'Fragment',
498
+ version: VERSION$6,
499
+ private: [],
500
+ selections: [
501
+ {
502
+ name: 'name',
503
+ kind: 'Scalar'
504
+ },
505
+ {
506
+ name: 'value',
507
+ kind: 'Scalar',
508
+ required: false
509
+ }
510
+ ]
511
+ };
512
+ };
513
+ function equals$6(existing, incoming) {
514
+ const existing_name = existing.name;
515
+ const incoming_name = incoming.name;
516
+ if (!(existing_name === incoming_name)) {
517
+ return false;
518
+ }
519
+ const existing_value = existing.value;
520
+ const incoming_value = incoming.value;
521
+ // if at least one of these optionals is defined
522
+ if (existing_value !== undefined || incoming_value !== undefined) {
523
+ // if one of these is not defined we know the other is defined and therefore
524
+ // not equal
525
+ if (existing_value === undefined || incoming_value === undefined) {
526
+ return false;
527
+ }
528
+ if (!(existing_value === incoming_value)) {
529
+ return false;
530
+ }
531
+ }
532
+ return true;
533
+ }
534
+
535
+ const VERSION$5 = "123d2efc846c30a861e29585f92e2b69";
536
+ function validate$5(obj, path = 'OmniAnalyticsTrackingComponentRepresentation') {
537
+ const v_error = (() => {
538
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
539
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
540
+ }
541
+ const obj_componentIdentifier = obj.componentIdentifier;
542
+ const path_componentIdentifier = path + '.componentIdentifier';
543
+ if (typeof obj_componentIdentifier !== 'string') {
544
+ return new TypeError('Expected "string" but received "' + typeof obj_componentIdentifier + '" (at "' + path_componentIdentifier + '")');
545
+ }
546
+ if (obj.componentType !== undefined) {
547
+ const obj_componentType = obj.componentType;
548
+ const path_componentType = path + '.componentType';
549
+ if (typeof obj_componentType !== 'string') {
550
+ return new TypeError('Expected "string" but received "' + typeof obj_componentType + '" (at "' + path_componentType + '")');
551
+ }
552
+ }
553
+ const obj_componentVersion = obj.componentVersion;
554
+ const path_componentVersion = path + '.componentVersion';
555
+ if (typeof obj_componentVersion !== 'string') {
556
+ return new TypeError('Expected "string" but received "' + typeof obj_componentVersion + '" (at "' + path_componentVersion + '")');
557
+ }
558
+ const obj_identifier = obj.identifier;
559
+ const path_identifier = path + '.identifier';
560
+ if (typeof obj_identifier !== 'string') {
561
+ return new TypeError('Expected "string" but received "' + typeof obj_identifier + '" (at "' + path_identifier + '")');
562
+ }
563
+ const obj_name = obj.name;
564
+ const path_name = path + '.name';
565
+ if (typeof obj_name !== 'string') {
566
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
567
+ }
568
+ if (obj.omniTrackingCompGroupId !== undefined) {
569
+ const obj_omniTrackingCompGroupId = obj.omniTrackingCompGroupId;
570
+ const path_omniTrackingCompGroupId = path + '.omniTrackingCompGroupId';
571
+ if (typeof obj_omniTrackingCompGroupId !== 'string') {
572
+ return new TypeError('Expected "string" but received "' + typeof obj_omniTrackingCompGroupId + '" (at "' + path_omniTrackingCompGroupId + '")');
573
+ }
574
+ }
575
+ if (obj.omniTrackingComponentDefKey !== undefined) {
576
+ const obj_omniTrackingComponentDefKey = obj.omniTrackingComponentDefKey;
577
+ const path_omniTrackingComponentDefKey = path + '.omniTrackingComponentDefKey';
578
+ if (typeof obj_omniTrackingComponentDefKey !== 'string') {
579
+ return new TypeError('Expected "string" but received "' + typeof obj_omniTrackingComponentDefKey + '" (at "' + path_omniTrackingComponentDefKey + '")');
580
+ }
581
+ }
582
+ })();
583
+ return v_error === undefined ? null : v_error;
584
+ }
585
+ const select$7 = function OmniAnalyticsTrackingComponentRepresentationSelect() {
586
+ return {
587
+ kind: 'Fragment',
588
+ version: VERSION$5,
589
+ private: [],
590
+ selections: [
591
+ {
592
+ name: 'componentIdentifier',
593
+ kind: 'Scalar'
594
+ },
595
+ {
596
+ name: 'componentType',
597
+ kind: 'Scalar',
598
+ required: false
599
+ },
600
+ {
601
+ name: 'componentVersion',
602
+ kind: 'Scalar'
603
+ },
604
+ {
605
+ name: 'identifier',
606
+ kind: 'Scalar'
607
+ },
608
+ {
609
+ name: 'name',
610
+ kind: 'Scalar'
611
+ },
612
+ {
613
+ name: 'omniTrackingCompGroupId',
614
+ kind: 'Scalar',
615
+ required: false
616
+ },
617
+ {
618
+ name: 'omniTrackingComponentDefKey',
619
+ kind: 'Scalar',
620
+ required: false
621
+ }
622
+ ]
623
+ };
624
+ };
625
+ function equals$5(existing, incoming) {
626
+ const existing_componentIdentifier = existing.componentIdentifier;
627
+ const incoming_componentIdentifier = incoming.componentIdentifier;
628
+ if (!(existing_componentIdentifier === incoming_componentIdentifier)) {
629
+ return false;
630
+ }
631
+ const existing_componentType = existing.componentType;
632
+ const incoming_componentType = incoming.componentType;
633
+ // if at least one of these optionals is defined
634
+ if (existing_componentType !== undefined || incoming_componentType !== undefined) {
635
+ // if one of these is not defined we know the other is defined and therefore
636
+ // not equal
637
+ if (existing_componentType === undefined || incoming_componentType === undefined) {
638
+ return false;
639
+ }
640
+ if (!(existing_componentType === incoming_componentType)) {
641
+ return false;
642
+ }
643
+ }
644
+ const existing_componentVersion = existing.componentVersion;
645
+ const incoming_componentVersion = incoming.componentVersion;
646
+ if (!(existing_componentVersion === incoming_componentVersion)) {
647
+ return false;
648
+ }
649
+ const existing_identifier = existing.identifier;
650
+ const incoming_identifier = incoming.identifier;
651
+ if (!(existing_identifier === incoming_identifier)) {
652
+ return false;
653
+ }
654
+ const existing_name = existing.name;
655
+ const incoming_name = incoming.name;
656
+ if (!(existing_name === incoming_name)) {
657
+ return false;
658
+ }
659
+ const existing_omniTrackingCompGroupId = existing.omniTrackingCompGroupId;
660
+ const incoming_omniTrackingCompGroupId = incoming.omniTrackingCompGroupId;
661
+ // if at least one of these optionals is defined
662
+ if (existing_omniTrackingCompGroupId !== undefined || incoming_omniTrackingCompGroupId !== undefined) {
663
+ // if one of these is not defined we know the other is defined and therefore
664
+ // not equal
665
+ if (existing_omniTrackingCompGroupId === undefined || incoming_omniTrackingCompGroupId === undefined) {
666
+ return false;
667
+ }
668
+ if (!(existing_omniTrackingCompGroupId === incoming_omniTrackingCompGroupId)) {
669
+ return false;
670
+ }
671
+ }
672
+ const existing_omniTrackingComponentDefKey = existing.omniTrackingComponentDefKey;
673
+ const incoming_omniTrackingComponentDefKey = incoming.omniTrackingComponentDefKey;
674
+ // if at least one of these optionals is defined
675
+ if (existing_omniTrackingComponentDefKey !== undefined || incoming_omniTrackingComponentDefKey !== undefined) {
676
+ // if one of these is not defined we know the other is defined and therefore
677
+ // not equal
678
+ if (existing_omniTrackingComponentDefKey === undefined || incoming_omniTrackingComponentDefKey === undefined) {
679
+ return false;
680
+ }
681
+ if (!(existing_omniTrackingComponentDefKey === incoming_omniTrackingComponentDefKey)) {
682
+ return false;
683
+ }
684
+ }
685
+ return true;
686
+ }
687
+
688
+ const VERSION$4 = "c51c45397ac9228be417844ecc8f870f";
689
+ function validate$4(obj, path = 'OmniAnalyticsTrackingExternalDefRepresentation') {
690
+ const v_error = (() => {
691
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
692
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
693
+ }
694
+ const obj_description = obj.description;
695
+ const path_description = path + '.description';
696
+ if (typeof obj_description !== 'string') {
697
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
698
+ }
699
+ const obj_identifier = obj.identifier;
700
+ const path_identifier = path + '.identifier';
701
+ if (typeof obj_identifier !== 'string') {
702
+ return new TypeError('Expected "string" but received "' + typeof obj_identifier + '" (at "' + path_identifier + '")');
703
+ }
704
+ if (obj.isActive !== undefined) {
705
+ const obj_isActive = obj.isActive;
706
+ const path_isActive = path + '.isActive';
707
+ if (typeof obj_isActive !== 'string') {
708
+ return new TypeError('Expected "string" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
709
+ }
710
+ }
711
+ const obj_name = obj.name;
712
+ const path_name = path + '.name';
713
+ if (typeof obj_name !== 'string') {
714
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
715
+ }
716
+ const obj_omniExtTrackingDefKey = obj.omniExtTrackingDefKey;
717
+ const path_omniExtTrackingDefKey = path + '.omniExtTrackingDefKey';
718
+ if (typeof obj_omniExtTrackingDefKey !== 'string') {
719
+ return new TypeError('Expected "string" but received "' + typeof obj_omniExtTrackingDefKey + '" (at "' + path_omniExtTrackingDefKey + '")');
720
+ }
721
+ if (obj.trackingFrameworkInformation !== undefined) {
722
+ const obj_trackingFrameworkInformation = obj.trackingFrameworkInformation;
723
+ const path_trackingFrameworkInformation = path + '.trackingFrameworkInformation';
724
+ if (typeof obj_trackingFrameworkInformation !== 'string') {
725
+ return new TypeError('Expected "string" but received "' + typeof obj_trackingFrameworkInformation + '" (at "' + path_trackingFrameworkInformation + '")');
726
+ }
727
+ }
728
+ if (obj.trackingServiceProvider !== undefined) {
729
+ const obj_trackingServiceProvider = obj.trackingServiceProvider;
730
+ const path_trackingServiceProvider = path + '.trackingServiceProvider';
731
+ if (typeof obj_trackingServiceProvider !== 'string') {
732
+ return new TypeError('Expected "string" but received "' + typeof obj_trackingServiceProvider + '" (at "' + path_trackingServiceProvider + '")');
733
+ }
734
+ }
735
+ })();
736
+ return v_error === undefined ? null : v_error;
737
+ }
738
+ const select$6 = function OmniAnalyticsTrackingExternalDefRepresentationSelect() {
739
+ return {
740
+ kind: 'Fragment',
741
+ version: VERSION$4,
742
+ private: [],
743
+ selections: [
744
+ {
745
+ name: 'description',
746
+ kind: 'Scalar'
747
+ },
748
+ {
749
+ name: 'identifier',
750
+ kind: 'Scalar'
751
+ },
752
+ {
753
+ name: 'isActive',
754
+ kind: 'Scalar',
755
+ required: false
756
+ },
757
+ {
758
+ name: 'name',
759
+ kind: 'Scalar'
760
+ },
761
+ {
762
+ name: 'omniExtTrackingDefKey',
763
+ kind: 'Scalar'
764
+ },
765
+ {
766
+ name: 'trackingFrameworkInformation',
767
+ kind: 'Scalar',
768
+ required: false
769
+ },
770
+ {
771
+ name: 'trackingServiceProvider',
772
+ kind: 'Scalar',
773
+ required: false
774
+ }
775
+ ]
776
+ };
777
+ };
778
+ function equals$4(existing, incoming) {
779
+ const existing_description = existing.description;
780
+ const incoming_description = incoming.description;
781
+ if (!(existing_description === incoming_description)) {
782
+ return false;
783
+ }
784
+ const existing_identifier = existing.identifier;
785
+ const incoming_identifier = incoming.identifier;
786
+ if (!(existing_identifier === incoming_identifier)) {
787
+ return false;
788
+ }
789
+ const existing_isActive = existing.isActive;
790
+ const incoming_isActive = incoming.isActive;
791
+ // if at least one of these optionals is defined
792
+ if (existing_isActive !== undefined || incoming_isActive !== undefined) {
793
+ // if one of these is not defined we know the other is defined and therefore
794
+ // not equal
795
+ if (existing_isActive === undefined || incoming_isActive === undefined) {
796
+ return false;
797
+ }
798
+ if (!(existing_isActive === incoming_isActive)) {
799
+ return false;
800
+ }
801
+ }
802
+ const existing_name = existing.name;
803
+ const incoming_name = incoming.name;
804
+ if (!(existing_name === incoming_name)) {
805
+ return false;
806
+ }
807
+ const existing_omniExtTrackingDefKey = existing.omniExtTrackingDefKey;
808
+ const incoming_omniExtTrackingDefKey = incoming.omniExtTrackingDefKey;
809
+ if (!(existing_omniExtTrackingDefKey === incoming_omniExtTrackingDefKey)) {
810
+ return false;
811
+ }
812
+ const existing_trackingFrameworkInformation = existing.trackingFrameworkInformation;
813
+ const incoming_trackingFrameworkInformation = incoming.trackingFrameworkInformation;
814
+ // if at least one of these optionals is defined
815
+ if (existing_trackingFrameworkInformation !== undefined || incoming_trackingFrameworkInformation !== undefined) {
816
+ // if one of these is not defined we know the other is defined and therefore
817
+ // not equal
818
+ if (existing_trackingFrameworkInformation === undefined || incoming_trackingFrameworkInformation === undefined) {
819
+ return false;
820
+ }
821
+ if (!(existing_trackingFrameworkInformation === incoming_trackingFrameworkInformation)) {
822
+ return false;
823
+ }
824
+ }
825
+ const existing_trackingServiceProvider = existing.trackingServiceProvider;
826
+ const incoming_trackingServiceProvider = incoming.trackingServiceProvider;
827
+ // if at least one of these optionals is defined
828
+ if (existing_trackingServiceProvider !== undefined || incoming_trackingServiceProvider !== undefined) {
829
+ // if one of these is not defined we know the other is defined and therefore
830
+ // not equal
831
+ if (existing_trackingServiceProvider === undefined || incoming_trackingServiceProvider === undefined) {
832
+ return false;
833
+ }
834
+ if (!(existing_trackingServiceProvider === incoming_trackingServiceProvider)) {
835
+ return false;
836
+ }
837
+ }
838
+ return true;
839
+ }
840
+
841
+ const VERSION$3 = "1c4d8ed71bfcb107dd8015a6c5a862fb";
842
+ function validate$3(obj, path = 'OmniAnalyticsTrackingExternalEventDefRepresentation') {
843
+ const v_error = (() => {
844
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
845
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
846
+ }
847
+ if (obj.componentType !== undefined) {
848
+ const obj_componentType = obj.componentType;
849
+ const path_componentType = path + '.componentType';
850
+ if (typeof obj_componentType !== 'string') {
851
+ return new TypeError('Expected "string" but received "' + typeof obj_componentType + '" (at "' + path_componentType + '")');
852
+ }
853
+ }
854
+ const obj_description = obj.description;
855
+ const path_description = path + '.description';
856
+ if (typeof obj_description !== 'string') {
857
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
858
+ }
859
+ const obj_identifier = obj.identifier;
860
+ const path_identifier = path + '.identifier';
861
+ if (typeof obj_identifier !== 'string') {
862
+ return new TypeError('Expected "string" but received "' + typeof obj_identifier + '" (at "' + path_identifier + '")');
863
+ }
864
+ const obj_inclusionRule = obj.inclusionRule;
865
+ const path_inclusionRule = path + '.inclusionRule';
866
+ if (typeof obj_inclusionRule !== 'string') {
867
+ return new TypeError('Expected "string" but received "' + typeof obj_inclusionRule + '" (at "' + path_inclusionRule + '")');
868
+ }
869
+ const obj_name = obj.name;
870
+ const path_name = path + '.name';
871
+ if (typeof obj_name !== 'string') {
872
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
873
+ }
874
+ if (obj.omniExtTrackingDefId !== undefined) {
875
+ const obj_omniExtTrackingDefId = obj.omniExtTrackingDefId;
876
+ const path_omniExtTrackingDefId = path + '.omniExtTrackingDefId';
877
+ if (typeof obj_omniExtTrackingDefId !== 'string') {
878
+ return new TypeError('Expected "string" but received "' + typeof obj_omniExtTrackingDefId + '" (at "' + path_omniExtTrackingDefId + '")');
879
+ }
880
+ }
881
+ if (obj.omniExtTrackingEventDefKey !== undefined) {
882
+ const obj_omniExtTrackingEventDefKey = obj.omniExtTrackingEventDefKey;
883
+ const path_omniExtTrackingEventDefKey = path + '.omniExtTrackingEventDefKey';
884
+ if (typeof obj_omniExtTrackingEventDefKey !== 'string') {
885
+ return new TypeError('Expected "string" but received "' + typeof obj_omniExtTrackingEventDefKey + '" (at "' + path_omniExtTrackingEventDefKey + '")');
886
+ }
887
+ }
888
+ if (obj.payloadTemplate !== undefined) {
889
+ const obj_payloadTemplate = obj.payloadTemplate;
890
+ const path_payloadTemplate = path + '.payloadTemplate';
891
+ if (typeof obj_payloadTemplate !== 'string') {
892
+ return new TypeError('Expected "string" but received "' + typeof obj_payloadTemplate + '" (at "' + path_payloadTemplate + '")');
893
+ }
894
+ }
895
+ })();
896
+ return v_error === undefined ? null : v_error;
897
+ }
898
+ const select$5 = function OmniAnalyticsTrackingExternalEventDefRepresentationSelect() {
899
+ return {
900
+ kind: 'Fragment',
901
+ version: VERSION$3,
902
+ private: [],
903
+ selections: [
904
+ {
905
+ name: 'componentType',
906
+ kind: 'Scalar',
907
+ required: false
908
+ },
909
+ {
910
+ name: 'description',
911
+ kind: 'Scalar'
912
+ },
913
+ {
914
+ name: 'identifier',
915
+ kind: 'Scalar'
916
+ },
917
+ {
918
+ name: 'inclusionRule',
919
+ kind: 'Scalar'
920
+ },
921
+ {
922
+ name: 'name',
923
+ kind: 'Scalar'
924
+ },
925
+ {
926
+ name: 'omniExtTrackingDefId',
927
+ kind: 'Scalar',
928
+ required: false
929
+ },
930
+ {
931
+ name: 'omniExtTrackingEventDefKey',
932
+ kind: 'Scalar',
933
+ required: false
934
+ },
935
+ {
936
+ name: 'payloadTemplate',
937
+ kind: 'Scalar',
938
+ required: false
939
+ }
940
+ ]
941
+ };
942
+ };
943
+ function equals$3(existing, incoming) {
944
+ const existing_componentType = existing.componentType;
945
+ const incoming_componentType = incoming.componentType;
946
+ // if at least one of these optionals is defined
947
+ if (existing_componentType !== undefined || incoming_componentType !== undefined) {
948
+ // if one of these is not defined we know the other is defined and therefore
949
+ // not equal
950
+ if (existing_componentType === undefined || incoming_componentType === undefined) {
951
+ return false;
952
+ }
953
+ if (!(existing_componentType === incoming_componentType)) {
954
+ return false;
955
+ }
956
+ }
957
+ const existing_description = existing.description;
958
+ const incoming_description = incoming.description;
959
+ if (!(existing_description === incoming_description)) {
960
+ return false;
961
+ }
962
+ const existing_identifier = existing.identifier;
963
+ const incoming_identifier = incoming.identifier;
964
+ if (!(existing_identifier === incoming_identifier)) {
965
+ return false;
966
+ }
967
+ const existing_inclusionRule = existing.inclusionRule;
968
+ const incoming_inclusionRule = incoming.inclusionRule;
969
+ if (!(existing_inclusionRule === incoming_inclusionRule)) {
970
+ return false;
971
+ }
972
+ const existing_name = existing.name;
973
+ const incoming_name = incoming.name;
974
+ if (!(existing_name === incoming_name)) {
975
+ return false;
976
+ }
977
+ const existing_omniExtTrackingDefId = existing.omniExtTrackingDefId;
978
+ const incoming_omniExtTrackingDefId = incoming.omniExtTrackingDefId;
979
+ // if at least one of these optionals is defined
980
+ if (existing_omniExtTrackingDefId !== undefined || incoming_omniExtTrackingDefId !== undefined) {
981
+ // if one of these is not defined we know the other is defined and therefore
982
+ // not equal
983
+ if (existing_omniExtTrackingDefId === undefined || incoming_omniExtTrackingDefId === undefined) {
984
+ return false;
985
+ }
986
+ if (!(existing_omniExtTrackingDefId === incoming_omniExtTrackingDefId)) {
987
+ return false;
988
+ }
989
+ }
990
+ const existing_omniExtTrackingEventDefKey = existing.omniExtTrackingEventDefKey;
991
+ const incoming_omniExtTrackingEventDefKey = incoming.omniExtTrackingEventDefKey;
992
+ // if at least one of these optionals is defined
993
+ if (existing_omniExtTrackingEventDefKey !== undefined || incoming_omniExtTrackingEventDefKey !== undefined) {
994
+ // if one of these is not defined we know the other is defined and therefore
995
+ // not equal
996
+ if (existing_omniExtTrackingEventDefKey === undefined || incoming_omniExtTrackingEventDefKey === undefined) {
997
+ return false;
998
+ }
999
+ if (!(existing_omniExtTrackingEventDefKey === incoming_omniExtTrackingEventDefKey)) {
1000
+ return false;
1001
+ }
1002
+ }
1003
+ const existing_payloadTemplate = existing.payloadTemplate;
1004
+ const incoming_payloadTemplate = incoming.payloadTemplate;
1005
+ // if at least one of these optionals is defined
1006
+ if (existing_payloadTemplate !== undefined || incoming_payloadTemplate !== undefined) {
1007
+ // if one of these is not defined we know the other is defined and therefore
1008
+ // not equal
1009
+ if (existing_payloadTemplate === undefined || incoming_payloadTemplate === undefined) {
1010
+ return false;
1011
+ }
1012
+ if (!(existing_payloadTemplate === incoming_payloadTemplate)) {
1013
+ return false;
1014
+ }
1015
+ }
1016
+ return true;
1017
+ }
1018
+
1019
+ const VERSION$2 = "0ea01ba368d55ea9d81e0fcd069dbdeb";
1020
+ function validate$2(obj, path = 'OmniAnalyticsTrackingGroupRepresentation') {
1021
+ const v_error = (() => {
1022
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1023
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1024
+ }
1025
+ if (obj.description !== undefined) {
1026
+ const obj_description = obj.description;
1027
+ const path_description = path + '.description';
1028
+ if (typeof obj_description !== 'string') {
1029
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1030
+ }
1031
+ }
1032
+ if (obj.endDate !== undefined) {
1033
+ const obj_endDate = obj.endDate;
1034
+ const path_endDate = path + '.endDate';
1035
+ if (typeof obj_endDate !== 'string') {
1036
+ return new TypeError('Expected "string" but received "' + typeof obj_endDate + '" (at "' + path_endDate + '")');
1037
+ }
1038
+ }
1039
+ const obj_groupType = obj.groupType;
1040
+ const path_groupType = path + '.groupType';
1041
+ if (typeof obj_groupType !== 'string') {
1042
+ return new TypeError('Expected "string" but received "' + typeof obj_groupType + '" (at "' + path_groupType + '")');
1043
+ }
1044
+ const obj_identifier = obj.identifier;
1045
+ const path_identifier = path + '.identifier';
1046
+ if (typeof obj_identifier !== 'string') {
1047
+ return new TypeError('Expected "string" but received "' + typeof obj_identifier + '" (at "' + path_identifier + '")');
1048
+ }
1049
+ const obj_isActive = obj.isActive;
1050
+ const path_isActive = path + '.isActive';
1051
+ if (typeof obj_isActive !== 'string') {
1052
+ return new TypeError('Expected "string" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
1053
+ }
1054
+ if (obj.maxAgeInDays !== undefined) {
1055
+ const obj_maxAgeInDays = obj.maxAgeInDays;
1056
+ const path_maxAgeInDays = path + '.maxAgeInDays';
1057
+ if (typeof obj_maxAgeInDays !== 'string') {
1058
+ return new TypeError('Expected "string" but received "' + typeof obj_maxAgeInDays + '" (at "' + path_maxAgeInDays + '")');
1059
+ }
1060
+ }
1061
+ const obj_name = obj.name;
1062
+ const path_name = path + '.name';
1063
+ if (typeof obj_name !== 'string') {
1064
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1065
+ }
1066
+ if (obj.omniExtTrackingDefId !== undefined) {
1067
+ const obj_omniExtTrackingDefId = obj.omniExtTrackingDefId;
1068
+ const path_omniExtTrackingDefId = path + '.omniExtTrackingDefId';
1069
+ if (typeof obj_omniExtTrackingDefId !== 'string') {
1070
+ return new TypeError('Expected "string" but received "' + typeof obj_omniExtTrackingDefId + '" (at "' + path_omniExtTrackingDefId + '")');
1071
+ }
1072
+ }
1073
+ const obj_omniTrackingGroupKey = obj.omniTrackingGroupKey;
1074
+ const path_omniTrackingGroupKey = path + '.omniTrackingGroupKey';
1075
+ if (typeof obj_omniTrackingGroupKey !== 'string') {
1076
+ return new TypeError('Expected "string" but received "' + typeof obj_omniTrackingGroupKey + '" (at "' + path_omniTrackingGroupKey + '")');
1077
+ }
1078
+ if (obj.startDate !== undefined) {
1079
+ const obj_startDate = obj.startDate;
1080
+ const path_startDate = path + '.startDate';
1081
+ if (typeof obj_startDate !== 'string') {
1082
+ return new TypeError('Expected "string" but received "' + typeof obj_startDate + '" (at "' + path_startDate + '")');
1083
+ }
1084
+ }
1085
+ })();
1086
+ return v_error === undefined ? null : v_error;
1087
+ }
1088
+ const select$4 = function OmniAnalyticsTrackingGroupRepresentationSelect() {
1089
+ return {
1090
+ kind: 'Fragment',
1091
+ version: VERSION$2,
1092
+ private: [],
1093
+ selections: [
1094
+ {
1095
+ name: 'description',
1096
+ kind: 'Scalar',
1097
+ required: false
1098
+ },
1099
+ {
1100
+ name: 'endDate',
1101
+ kind: 'Scalar',
1102
+ required: false
1103
+ },
1104
+ {
1105
+ name: 'groupType',
1106
+ kind: 'Scalar'
1107
+ },
1108
+ {
1109
+ name: 'identifier',
1110
+ kind: 'Scalar'
1111
+ },
1112
+ {
1113
+ name: 'isActive',
1114
+ kind: 'Scalar'
1115
+ },
1116
+ {
1117
+ name: 'maxAgeInDays',
1118
+ kind: 'Scalar',
1119
+ required: false
1120
+ },
1121
+ {
1122
+ name: 'name',
1123
+ kind: 'Scalar'
1124
+ },
1125
+ {
1126
+ name: 'omniExtTrackingDefId',
1127
+ kind: 'Scalar',
1128
+ required: false
1129
+ },
1130
+ {
1131
+ name: 'omniTrackingGroupKey',
1132
+ kind: 'Scalar'
1133
+ },
1134
+ {
1135
+ name: 'startDate',
1136
+ kind: 'Scalar',
1137
+ required: false
1138
+ }
1139
+ ]
1140
+ };
1141
+ };
1142
+ function equals$2(existing, incoming) {
1143
+ const existing_description = existing.description;
1144
+ const incoming_description = incoming.description;
1145
+ // if at least one of these optionals is defined
1146
+ if (existing_description !== undefined || incoming_description !== undefined) {
1147
+ // if one of these is not defined we know the other is defined and therefore
1148
+ // not equal
1149
+ if (existing_description === undefined || incoming_description === undefined) {
1150
+ return false;
1151
+ }
1152
+ if (!(existing_description === incoming_description)) {
1153
+ return false;
1154
+ }
1155
+ }
1156
+ const existing_endDate = existing.endDate;
1157
+ const incoming_endDate = incoming.endDate;
1158
+ // if at least one of these optionals is defined
1159
+ if (existing_endDate !== undefined || incoming_endDate !== undefined) {
1160
+ // if one of these is not defined we know the other is defined and therefore
1161
+ // not equal
1162
+ if (existing_endDate === undefined || incoming_endDate === undefined) {
1163
+ return false;
1164
+ }
1165
+ if (!(existing_endDate === incoming_endDate)) {
1166
+ return false;
1167
+ }
1168
+ }
1169
+ const existing_groupType = existing.groupType;
1170
+ const incoming_groupType = incoming.groupType;
1171
+ if (!(existing_groupType === incoming_groupType)) {
1172
+ return false;
1173
+ }
1174
+ const existing_identifier = existing.identifier;
1175
+ const incoming_identifier = incoming.identifier;
1176
+ if (!(existing_identifier === incoming_identifier)) {
1177
+ return false;
1178
+ }
1179
+ const existing_isActive = existing.isActive;
1180
+ const incoming_isActive = incoming.isActive;
1181
+ if (!(existing_isActive === incoming_isActive)) {
1182
+ return false;
1183
+ }
1184
+ const existing_maxAgeInDays = existing.maxAgeInDays;
1185
+ const incoming_maxAgeInDays = incoming.maxAgeInDays;
1186
+ // if at least one of these optionals is defined
1187
+ if (existing_maxAgeInDays !== undefined || incoming_maxAgeInDays !== undefined) {
1188
+ // if one of these is not defined we know the other is defined and therefore
1189
+ // not equal
1190
+ if (existing_maxAgeInDays === undefined || incoming_maxAgeInDays === undefined) {
1191
+ return false;
1192
+ }
1193
+ if (!(existing_maxAgeInDays === incoming_maxAgeInDays)) {
1194
+ return false;
1195
+ }
1196
+ }
1197
+ const existing_name = existing.name;
1198
+ const incoming_name = incoming.name;
1199
+ if (!(existing_name === incoming_name)) {
1200
+ return false;
1201
+ }
1202
+ const existing_omniExtTrackingDefId = existing.omniExtTrackingDefId;
1203
+ const incoming_omniExtTrackingDefId = incoming.omniExtTrackingDefId;
1204
+ // if at least one of these optionals is defined
1205
+ if (existing_omniExtTrackingDefId !== undefined || incoming_omniExtTrackingDefId !== undefined) {
1206
+ // if one of these is not defined we know the other is defined and therefore
1207
+ // not equal
1208
+ if (existing_omniExtTrackingDefId === undefined || incoming_omniExtTrackingDefId === undefined) {
1209
+ return false;
1210
+ }
1211
+ if (!(existing_omniExtTrackingDefId === incoming_omniExtTrackingDefId)) {
1212
+ return false;
1213
+ }
1214
+ }
1215
+ const existing_omniTrackingGroupKey = existing.omniTrackingGroupKey;
1216
+ const incoming_omniTrackingGroupKey = incoming.omniTrackingGroupKey;
1217
+ if (!(existing_omniTrackingGroupKey === incoming_omniTrackingGroupKey)) {
1218
+ return false;
1219
+ }
1220
+ const existing_startDate = existing.startDate;
1221
+ const incoming_startDate = incoming.startDate;
1222
+ // if at least one of these optionals is defined
1223
+ if (existing_startDate !== undefined || incoming_startDate !== undefined) {
1224
+ // if one of these is not defined we know the other is defined and therefore
1225
+ // not equal
1226
+ if (existing_startDate === undefined || incoming_startDate === undefined) {
1227
+ return false;
1228
+ }
1229
+ if (!(existing_startDate === incoming_startDate)) {
1230
+ return false;
1231
+ }
1232
+ }
1233
+ return true;
1234
+ }
1235
+
1236
+ const TTL$1 = 60000;
1237
+ const VERSION$1 = "36cccddb5d7c08dae651feb75fa8c461";
1238
+ function validate$1(obj, path = 'OmniAnalyticsMetadataRepresentation') {
1239
+ const v_error = (() => {
1240
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1241
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1242
+ }
1243
+ if (obj.omniAnalyticsSettings !== undefined) {
1244
+ const obj_omniAnalyticsSettings = obj.omniAnalyticsSettings;
1245
+ const path_omniAnalyticsSettings = path + '.omniAnalyticsSettings';
1246
+ if (!ArrayIsArray(obj_omniAnalyticsSettings)) {
1247
+ return new TypeError('Expected "array" but received "' + typeof obj_omniAnalyticsSettings + '" (at "' + path_omniAnalyticsSettings + '")');
1248
+ }
1249
+ for (let i = 0; i < obj_omniAnalyticsSettings.length; i++) {
1250
+ const obj_omniAnalyticsSettings_item = obj_omniAnalyticsSettings[i];
1251
+ const path_omniAnalyticsSettings_item = path_omniAnalyticsSettings + '[' + i + ']';
1252
+ const referencepath_omniAnalyticsSettings_itemValidationError = validate$6(obj_omniAnalyticsSettings_item, path_omniAnalyticsSettings_item);
1253
+ if (referencepath_omniAnalyticsSettings_itemValidationError !== null) {
1254
+ let message = 'Object doesn\'t match OmniAnalyticsSettingRepresentation (at "' + path_omniAnalyticsSettings_item + '")\n';
1255
+ message += referencepath_omniAnalyticsSettings_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1256
+ return new TypeError(message);
1257
+ }
1258
+ }
1259
+ }
1260
+ if (obj.trackingComponents !== undefined) {
1261
+ const obj_trackingComponents = obj.trackingComponents;
1262
+ const path_trackingComponents = path + '.trackingComponents';
1263
+ if (!ArrayIsArray(obj_trackingComponents)) {
1264
+ return new TypeError('Expected "array" but received "' + typeof obj_trackingComponents + '" (at "' + path_trackingComponents + '")');
1265
+ }
1266
+ for (let i = 0; i < obj_trackingComponents.length; i++) {
1267
+ const obj_trackingComponents_item = obj_trackingComponents[i];
1268
+ const path_trackingComponents_item = path_trackingComponents + '[' + i + ']';
1269
+ const referencepath_trackingComponents_itemValidationError = validate$5(obj_trackingComponents_item, path_trackingComponents_item);
1270
+ if (referencepath_trackingComponents_itemValidationError !== null) {
1271
+ let message = 'Object doesn\'t match OmniAnalyticsTrackingComponentRepresentation (at "' + path_trackingComponents_item + '")\n';
1272
+ message += referencepath_trackingComponents_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1273
+ return new TypeError(message);
1274
+ }
1275
+ }
1276
+ }
1277
+ if (obj.trackingExternalDefintions !== undefined) {
1278
+ const obj_trackingExternalDefintions = obj.trackingExternalDefintions;
1279
+ const path_trackingExternalDefintions = path + '.trackingExternalDefintions';
1280
+ if (!ArrayIsArray(obj_trackingExternalDefintions)) {
1281
+ return new TypeError('Expected "array" but received "' + typeof obj_trackingExternalDefintions + '" (at "' + path_trackingExternalDefintions + '")');
1282
+ }
1283
+ for (let i = 0; i < obj_trackingExternalDefintions.length; i++) {
1284
+ const obj_trackingExternalDefintions_item = obj_trackingExternalDefintions[i];
1285
+ const path_trackingExternalDefintions_item = path_trackingExternalDefintions + '[' + i + ']';
1286
+ const referencepath_trackingExternalDefintions_itemValidationError = validate$4(obj_trackingExternalDefintions_item, path_trackingExternalDefintions_item);
1287
+ if (referencepath_trackingExternalDefintions_itemValidationError !== null) {
1288
+ let message = 'Object doesn\'t match OmniAnalyticsTrackingExternalDefRepresentation (at "' + path_trackingExternalDefintions_item + '")\n';
1289
+ message += referencepath_trackingExternalDefintions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1290
+ return new TypeError(message);
1291
+ }
1292
+ }
1293
+ }
1294
+ if (obj.trackingExternalEventDefintions !== undefined) {
1295
+ const obj_trackingExternalEventDefintions = obj.trackingExternalEventDefintions;
1296
+ const path_trackingExternalEventDefintions = path + '.trackingExternalEventDefintions';
1297
+ if (!ArrayIsArray(obj_trackingExternalEventDefintions)) {
1298
+ return new TypeError('Expected "array" but received "' + typeof obj_trackingExternalEventDefintions + '" (at "' + path_trackingExternalEventDefintions + '")');
1299
+ }
1300
+ for (let i = 0; i < obj_trackingExternalEventDefintions.length; i++) {
1301
+ const obj_trackingExternalEventDefintions_item = obj_trackingExternalEventDefintions[i];
1302
+ const path_trackingExternalEventDefintions_item = path_trackingExternalEventDefintions + '[' + i + ']';
1303
+ const referencepath_trackingExternalEventDefintions_itemValidationError = validate$3(obj_trackingExternalEventDefintions_item, path_trackingExternalEventDefintions_item);
1304
+ if (referencepath_trackingExternalEventDefintions_itemValidationError !== null) {
1305
+ let message = 'Object doesn\'t match OmniAnalyticsTrackingExternalEventDefRepresentation (at "' + path_trackingExternalEventDefintions_item + '")\n';
1306
+ message += referencepath_trackingExternalEventDefintions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1307
+ return new TypeError(message);
1308
+ }
1309
+ }
1310
+ }
1311
+ if (obj.trackingGroups !== undefined) {
1312
+ const obj_trackingGroups = obj.trackingGroups;
1313
+ const path_trackingGroups = path + '.trackingGroups';
1314
+ if (!ArrayIsArray(obj_trackingGroups)) {
1315
+ return new TypeError('Expected "array" but received "' + typeof obj_trackingGroups + '" (at "' + path_trackingGroups + '")');
1316
+ }
1317
+ for (let i = 0; i < obj_trackingGroups.length; i++) {
1318
+ const obj_trackingGroups_item = obj_trackingGroups[i];
1319
+ const path_trackingGroups_item = path_trackingGroups + '[' + i + ']';
1320
+ const referencepath_trackingGroups_itemValidationError = validate$2(obj_trackingGroups_item, path_trackingGroups_item);
1321
+ if (referencepath_trackingGroups_itemValidationError !== null) {
1322
+ let message = 'Object doesn\'t match OmniAnalyticsTrackingGroupRepresentation (at "' + path_trackingGroups_item + '")\n';
1323
+ message += referencepath_trackingGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1324
+ return new TypeError(message);
1325
+ }
1326
+ }
1327
+ }
1328
+ })();
1329
+ return v_error === undefined ? null : v_error;
1330
+ }
1331
+ const RepresentationType$1 = 'OmniAnalyticsMetadataRepresentation';
1332
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
1333
+ return input;
1334
+ }
1335
+ const select$3 = function OmniAnalyticsMetadataRepresentationSelect() {
1336
+ const { selections: OmniAnalyticsSettingRepresentation__selections, opaque: OmniAnalyticsSettingRepresentation__opaque, } = select$8();
1337
+ const { selections: OmniAnalyticsTrackingComponentRepresentation__selections, opaque: OmniAnalyticsTrackingComponentRepresentation__opaque, } = select$7();
1338
+ const { selections: OmniAnalyticsTrackingExternalDefRepresentation__selections, opaque: OmniAnalyticsTrackingExternalDefRepresentation__opaque, } = select$6();
1339
+ const { selections: OmniAnalyticsTrackingExternalEventDefRepresentation__selections, opaque: OmniAnalyticsTrackingExternalEventDefRepresentation__opaque, } = select$5();
1340
+ const { selections: OmniAnalyticsTrackingGroupRepresentation__selections, opaque: OmniAnalyticsTrackingGroupRepresentation__opaque, } = select$4();
1341
+ return {
1342
+ kind: 'Fragment',
1343
+ version: VERSION$1,
1344
+ private: [],
1345
+ selections: [
1346
+ {
1347
+ name: 'omniAnalyticsSettings',
1348
+ kind: 'Object',
1349
+ plural: true,
1350
+ selections: OmniAnalyticsSettingRepresentation__selections,
1351
+ required: false
1352
+ },
1353
+ {
1354
+ name: 'trackingComponents',
1355
+ kind: 'Object',
1356
+ plural: true,
1357
+ selections: OmniAnalyticsTrackingComponentRepresentation__selections,
1358
+ required: false
1359
+ },
1360
+ {
1361
+ name: 'trackingExternalDefintions',
1362
+ kind: 'Object',
1363
+ plural: true,
1364
+ selections: OmniAnalyticsTrackingExternalDefRepresentation__selections,
1365
+ required: false
1366
+ },
1367
+ {
1368
+ name: 'trackingExternalEventDefintions',
1369
+ kind: 'Object',
1370
+ plural: true,
1371
+ selections: OmniAnalyticsTrackingExternalEventDefRepresentation__selections,
1372
+ required: false
1373
+ },
1374
+ {
1375
+ name: 'trackingGroups',
1376
+ kind: 'Object',
1377
+ plural: true,
1378
+ selections: OmniAnalyticsTrackingGroupRepresentation__selections,
1379
+ required: false
1380
+ }
1381
+ ]
1382
+ };
1383
+ };
1384
+ function equals$1(existing, incoming) {
1385
+ const existing_omniAnalyticsSettings = existing.omniAnalyticsSettings;
1386
+ const incoming_omniAnalyticsSettings = incoming.omniAnalyticsSettings;
1387
+ // if at least one of these optionals is defined
1388
+ if (existing_omniAnalyticsSettings !== undefined || incoming_omniAnalyticsSettings !== undefined) {
1389
+ // if one of these is not defined we know the other is defined and therefore
1390
+ // not equal
1391
+ if (existing_omniAnalyticsSettings === undefined || incoming_omniAnalyticsSettings === undefined) {
1392
+ return false;
1393
+ }
1394
+ const equals_omniAnalyticsSettings_items = equalsArray(existing_omniAnalyticsSettings, incoming_omniAnalyticsSettings, (existing_omniAnalyticsSettings_item, incoming_omniAnalyticsSettings_item) => {
1395
+ if (!(equals$6(existing_omniAnalyticsSettings_item, incoming_omniAnalyticsSettings_item))) {
1396
+ return false;
1397
+ }
1398
+ });
1399
+ if (equals_omniAnalyticsSettings_items === false) {
1400
+ return false;
1401
+ }
1402
+ }
1403
+ const existing_trackingComponents = existing.trackingComponents;
1404
+ const incoming_trackingComponents = incoming.trackingComponents;
1405
+ // if at least one of these optionals is defined
1406
+ if (existing_trackingComponents !== undefined || incoming_trackingComponents !== undefined) {
1407
+ // if one of these is not defined we know the other is defined and therefore
1408
+ // not equal
1409
+ if (existing_trackingComponents === undefined || incoming_trackingComponents === undefined) {
1410
+ return false;
1411
+ }
1412
+ const equals_trackingComponents_items = equalsArray(existing_trackingComponents, incoming_trackingComponents, (existing_trackingComponents_item, incoming_trackingComponents_item) => {
1413
+ if (!(equals$5(existing_trackingComponents_item, incoming_trackingComponents_item))) {
1414
+ return false;
1415
+ }
1416
+ });
1417
+ if (equals_trackingComponents_items === false) {
1418
+ return false;
1419
+ }
1420
+ }
1421
+ const existing_trackingExternalDefintions = existing.trackingExternalDefintions;
1422
+ const incoming_trackingExternalDefintions = incoming.trackingExternalDefintions;
1423
+ // if at least one of these optionals is defined
1424
+ if (existing_trackingExternalDefintions !== undefined || incoming_trackingExternalDefintions !== undefined) {
1425
+ // if one of these is not defined we know the other is defined and therefore
1426
+ // not equal
1427
+ if (existing_trackingExternalDefintions === undefined || incoming_trackingExternalDefintions === undefined) {
1428
+ return false;
1429
+ }
1430
+ const equals_trackingExternalDefintions_items = equalsArray(existing_trackingExternalDefintions, incoming_trackingExternalDefintions, (existing_trackingExternalDefintions_item, incoming_trackingExternalDefintions_item) => {
1431
+ if (!(equals$4(existing_trackingExternalDefintions_item, incoming_trackingExternalDefintions_item))) {
1432
+ return false;
1433
+ }
1434
+ });
1435
+ if (equals_trackingExternalDefintions_items === false) {
1436
+ return false;
1437
+ }
1438
+ }
1439
+ const existing_trackingExternalEventDefintions = existing.trackingExternalEventDefintions;
1440
+ const incoming_trackingExternalEventDefintions = incoming.trackingExternalEventDefintions;
1441
+ // if at least one of these optionals is defined
1442
+ if (existing_trackingExternalEventDefintions !== undefined || incoming_trackingExternalEventDefintions !== undefined) {
1443
+ // if one of these is not defined we know the other is defined and therefore
1444
+ // not equal
1445
+ if (existing_trackingExternalEventDefintions === undefined || incoming_trackingExternalEventDefintions === undefined) {
1446
+ return false;
1447
+ }
1448
+ const equals_trackingExternalEventDefintions_items = equalsArray(existing_trackingExternalEventDefintions, incoming_trackingExternalEventDefintions, (existing_trackingExternalEventDefintions_item, incoming_trackingExternalEventDefintions_item) => {
1449
+ if (!(equals$3(existing_trackingExternalEventDefintions_item, incoming_trackingExternalEventDefintions_item))) {
1450
+ return false;
1451
+ }
1452
+ });
1453
+ if (equals_trackingExternalEventDefintions_items === false) {
1454
+ return false;
1455
+ }
1456
+ }
1457
+ const existing_trackingGroups = existing.trackingGroups;
1458
+ const incoming_trackingGroups = incoming.trackingGroups;
1459
+ // if at least one of these optionals is defined
1460
+ if (existing_trackingGroups !== undefined || incoming_trackingGroups !== undefined) {
1461
+ // if one of these is not defined we know the other is defined and therefore
1462
+ // not equal
1463
+ if (existing_trackingGroups === undefined || incoming_trackingGroups === undefined) {
1464
+ return false;
1465
+ }
1466
+ const equals_trackingGroups_items = equalsArray(existing_trackingGroups, incoming_trackingGroups, (existing_trackingGroups_item, incoming_trackingGroups_item) => {
1467
+ if (!(equals$2(existing_trackingGroups_item, incoming_trackingGroups_item))) {
1468
+ return false;
1469
+ }
1470
+ });
1471
+ if (equals_trackingGroups_items === false) {
1472
+ return false;
1473
+ }
1474
+ }
1475
+ return true;
1476
+ }
1477
+ const ingest$1 = function OmniAnalyticsMetadataRepresentationIngest(input, path, luvio, store, timestamp) {
1478
+ if (process.env.NODE_ENV !== 'production') {
1479
+ const validateError = validate$1(input);
1480
+ if (validateError !== null) {
1481
+ throw validateError;
1482
+ }
1483
+ }
1484
+ const key = path.fullPath;
1485
+ const ttlToUse = TTL$1;
1486
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "omnianalytics", VERSION$1, RepresentationType$1, equals$1);
1487
+ return createLink(key);
1488
+ };
1489
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1490
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1491
+ const rootKey = fullPathFactory();
1492
+ rootKeySet.set(rootKey, {
1493
+ namespace: keyPrefix,
1494
+ representationName: RepresentationType$1,
1495
+ mergeable: false
1496
+ });
1497
+ }
1498
+
1499
+ function select$2(luvio, params) {
1500
+ return select$3();
1501
+ }
1502
+ function keyBuilder$2(luvio, params) {
1503
+ return keyPrefix + '::OmniAnalyticsMetadataRepresentation:(' + 'externalTrackingDefName:' + params.queryParams.externalTrackingDefName + ',' + 'fetchSettings:' + params.queryParams.fetchSettings + ',' + 'groupName:' + params.queryParams.groupName + ',' + 'isActive:' + params.queryParams.isActive + ')';
1504
+ }
1505
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1506
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
1507
+ }
1508
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1509
+ const { body } = response;
1510
+ const key = keyBuilder$2(luvio, resourceParams);
1511
+ luvio.storeIngest(key, ingest$1, body);
1512
+ const snapshot = luvio.storeLookup({
1513
+ recordId: key,
1514
+ node: select$2(),
1515
+ variables: {},
1516
+ }, snapshotRefresh);
1517
+ if (process.env.NODE_ENV !== 'production') {
1518
+ if (snapshot.state !== 'Fulfilled') {
1519
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1520
+ }
1521
+ }
1522
+ deepFreeze(snapshot.data);
1523
+ return snapshot;
1524
+ }
1525
+ function ingestError(luvio, params, error, snapshotRefresh) {
1526
+ const key = keyBuilder$2(luvio, params);
1527
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1528
+ const storeMetadataParams = {
1529
+ ttl: TTL$1,
1530
+ namespace: keyPrefix,
1531
+ version: VERSION$1,
1532
+ representationName: RepresentationType$1
1533
+ };
1534
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1535
+ return errorSnapshot;
1536
+ }
1537
+ function createResourceRequest$1(config) {
1538
+ const headers = {};
1539
+ return {
1540
+ baseUri: '/services/data/v66.0',
1541
+ basePath: '/connect/omni-analytics/analytics-metadata',
1542
+ method: 'get',
1543
+ body: null,
1544
+ urlParams: {},
1545
+ queryParams: config.queryParams,
1546
+ headers,
1547
+ priority: 'normal',
1548
+ };
1549
+ }
1550
+
1551
+ const adapterName$1 = 'fetchOmniAnalyticsMetadata';
1552
+ const fetchOmniAnalyticsMetadata_ConfigPropertyMetadata = [
1553
+ generateParamConfigMetadata('externalTrackingDefName', false, 1 /* QueryParameter */, 0 /* String */),
1554
+ generateParamConfigMetadata('fetchSettings', false, 1 /* QueryParameter */, 1 /* Boolean */),
1555
+ generateParamConfigMetadata('groupName', false, 1 /* QueryParameter */, 0 /* String */),
1556
+ generateParamConfigMetadata('isActive', false, 1 /* QueryParameter */, 1 /* Boolean */),
1557
+ ];
1558
+ const fetchOmniAnalyticsMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, fetchOmniAnalyticsMetadata_ConfigPropertyMetadata);
1559
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(fetchOmniAnalyticsMetadata_ConfigPropertyMetadata);
1560
+ function keyBuilder$1(luvio, config) {
1561
+ const resourceParams = createResourceParams$1(config);
1562
+ return keyBuilder$2(luvio, resourceParams);
1563
+ }
1564
+ function typeCheckConfig$1(untrustedConfig) {
1565
+ const config = {};
1566
+ typeCheckConfig$3(untrustedConfig, config, fetchOmniAnalyticsMetadata_ConfigPropertyMetadata);
1567
+ return config;
1568
+ }
1569
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1570
+ if (!untrustedIsObject(untrustedConfig)) {
1571
+ return null;
1572
+ }
1573
+ if (process.env.NODE_ENV !== 'production') {
1574
+ validateConfig(untrustedConfig, configPropertyNames);
1575
+ }
1576
+ const config = typeCheckConfig$1(untrustedConfig);
1577
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1578
+ return null;
1579
+ }
1580
+ return config;
1581
+ }
1582
+ function adapterFragment(luvio, config) {
1583
+ createResourceParams$1(config);
1584
+ return select$2();
1585
+ }
1586
+ function onFetchResponseSuccess(luvio, config, resourceParams, response) {
1587
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
1588
+ config,
1589
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1590
+ });
1591
+ return luvio.storeBroadcast().then(() => snapshot);
1592
+ }
1593
+ function onFetchResponseError(luvio, config, resourceParams, response) {
1594
+ const snapshot = ingestError(luvio, resourceParams, response, {
1595
+ config,
1596
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1597
+ });
1598
+ return luvio.storeBroadcast().then(() => snapshot);
1599
+ }
1600
+ function buildNetworkSnapshot$1(luvio, config, options) {
1601
+ const resourceParams = createResourceParams$1(config);
1602
+ const request = createResourceRequest$1(resourceParams);
1603
+ return luvio.dispatchResourceRequest(request, options)
1604
+ .then((response) => {
1605
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
1606
+ const cache = new StoreKeyMap();
1607
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1608
+ return cache;
1609
+ });
1610
+ }, (response) => {
1611
+ return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
1612
+ });
1613
+ }
1614
+ function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1615
+ return buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
1616
+ }
1617
+ function buildCachedSnapshotCachePolicy(context, storeLookup) {
1618
+ const { luvio, config } = context;
1619
+ const selector = {
1620
+ recordId: keyBuilder$1(luvio, config),
1621
+ node: adapterFragment(luvio, config),
1622
+ variables: {},
1623
+ };
1624
+ const cacheSnapshot = storeLookup(selector, {
1625
+ config,
1626
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1627
+ });
1628
+ return cacheSnapshot;
1629
+ }
1630
+ const fetchOmniAnalyticsMetadataAdapterFactory = (luvio) => function omnianalytics__fetchOmniAnalyticsMetadata(untrustedConfig, requestContext) {
1631
+ const config = validateAdapterConfig$1(untrustedConfig, fetchOmniAnalyticsMetadata_ConfigPropertyNames);
1632
+ // Invalid or incomplete config
1633
+ if (config === null) {
1634
+ return null;
1635
+ }
1636
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1637
+ buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
1638
+ };
1639
+
1640
+ const TTL = 10000;
1641
+ const VERSION = "3d2e52fd8e2f4a4244b68292d0af7634";
1642
+ function validate(obj, path = 'OmniAnalyticsLogCreateRepresentation') {
1643
+ const v_error = (() => {
1644
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1645
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1646
+ }
1647
+ if (obj.eventPublishStatus !== undefined) {
1648
+ const obj_eventPublishStatus = obj.eventPublishStatus;
1649
+ const path_eventPublishStatus = path + '.eventPublishStatus';
1650
+ if (typeof obj_eventPublishStatus !== 'string') {
1651
+ return new TypeError('Expected "string" but received "' + typeof obj_eventPublishStatus + '" (at "' + path_eventPublishStatus + '")');
1652
+ }
1653
+ }
1654
+ if (obj.externalStatusMesg !== undefined) {
1655
+ const obj_externalStatusMesg = obj.externalStatusMesg;
1656
+ const path_externalStatusMesg = path + '.externalStatusMesg';
1657
+ if (typeof obj_externalStatusMesg !== 'string') {
1658
+ return new TypeError('Expected "string" but received "' + typeof obj_externalStatusMesg + '" (at "' + path_externalStatusMesg + '")');
1659
+ }
1660
+ }
1661
+ if (obj.internalEventId !== undefined) {
1662
+ const obj_internalEventId = obj.internalEventId;
1663
+ const path_internalEventId = path + '.internalEventId';
1664
+ if (typeof obj_internalEventId !== 'string') {
1665
+ return new TypeError('Expected "string" but received "' + typeof obj_internalEventId + '" (at "' + path_internalEventId + '")');
1666
+ }
1667
+ }
1668
+ const obj_responseId = obj.responseId;
1669
+ const path_responseId = path + '.responseId';
1670
+ if (typeof obj_responseId !== 'string') {
1671
+ return new TypeError('Expected "string" but received "' + typeof obj_responseId + '" (at "' + path_responseId + '")');
1672
+ }
1673
+ })();
1674
+ return v_error === undefined ? null : v_error;
1675
+ }
1676
+ const RepresentationType = 'OmniAnalyticsLogCreateRepresentation';
1677
+ function keyBuilder(luvio, config) {
1678
+ return keyPrefix + '::' + RepresentationType + ':' + config.responseId;
1679
+ }
1680
+ function keyBuilderFromType(luvio, object) {
1681
+ const keyParams = {
1682
+ responseId: object.responseId
1683
+ };
1684
+ return keyBuilder(luvio, keyParams);
1685
+ }
1686
+ function normalize(input, existing, path, luvio, store, timestamp) {
1687
+ return input;
1688
+ }
1689
+ const select$1 = function OmniAnalyticsLogCreateRepresentationSelect() {
1690
+ return {
1691
+ kind: 'Fragment',
1692
+ version: VERSION,
1693
+ private: [],
1694
+ selections: [
1695
+ {
1696
+ name: 'eventPublishStatus',
1697
+ kind: 'Scalar',
1698
+ required: false
1699
+ },
1700
+ {
1701
+ name: 'externalStatusMesg',
1702
+ kind: 'Scalar',
1703
+ required: false
1704
+ },
1705
+ {
1706
+ name: 'internalEventId',
1707
+ kind: 'Scalar',
1708
+ required: false
1709
+ },
1710
+ {
1711
+ name: 'responseId',
1712
+ kind: 'Scalar'
1713
+ }
1714
+ ]
1715
+ };
1716
+ };
1717
+ function equals(existing, incoming) {
1718
+ const existing_eventPublishStatus = existing.eventPublishStatus;
1719
+ const incoming_eventPublishStatus = incoming.eventPublishStatus;
1720
+ // if at least one of these optionals is defined
1721
+ if (existing_eventPublishStatus !== undefined || incoming_eventPublishStatus !== undefined) {
1722
+ // if one of these is not defined we know the other is defined and therefore
1723
+ // not equal
1724
+ if (existing_eventPublishStatus === undefined || incoming_eventPublishStatus === undefined) {
1725
+ return false;
1726
+ }
1727
+ if (!(existing_eventPublishStatus === incoming_eventPublishStatus)) {
1728
+ return false;
1729
+ }
1730
+ }
1731
+ const existing_externalStatusMesg = existing.externalStatusMesg;
1732
+ const incoming_externalStatusMesg = incoming.externalStatusMesg;
1733
+ // if at least one of these optionals is defined
1734
+ if (existing_externalStatusMesg !== undefined || incoming_externalStatusMesg !== undefined) {
1735
+ // if one of these is not defined we know the other is defined and therefore
1736
+ // not equal
1737
+ if (existing_externalStatusMesg === undefined || incoming_externalStatusMesg === undefined) {
1738
+ return false;
1739
+ }
1740
+ if (!(existing_externalStatusMesg === incoming_externalStatusMesg)) {
1741
+ return false;
1742
+ }
1743
+ }
1744
+ const existing_internalEventId = existing.internalEventId;
1745
+ const incoming_internalEventId = incoming.internalEventId;
1746
+ // if at least one of these optionals is defined
1747
+ if (existing_internalEventId !== undefined || incoming_internalEventId !== undefined) {
1748
+ // if one of these is not defined we know the other is defined and therefore
1749
+ // not equal
1750
+ if (existing_internalEventId === undefined || incoming_internalEventId === undefined) {
1751
+ return false;
1752
+ }
1753
+ if (!(existing_internalEventId === incoming_internalEventId)) {
1754
+ return false;
1755
+ }
1756
+ }
1757
+ const existing_responseId = existing.responseId;
1758
+ const incoming_responseId = incoming.responseId;
1759
+ if (!(existing_responseId === incoming_responseId)) {
1760
+ return false;
1761
+ }
1762
+ return true;
1763
+ }
1764
+ const ingest = function OmniAnalyticsLogCreateRepresentationIngest(input, path, luvio, store, timestamp) {
1765
+ if (process.env.NODE_ENV !== 'production') {
1766
+ const validateError = validate(input);
1767
+ if (validateError !== null) {
1768
+ throw validateError;
1769
+ }
1770
+ }
1771
+ const key = keyBuilderFromType(luvio, input);
1772
+ const ttlToUse = TTL;
1773
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "omnianalytics", VERSION, RepresentationType, equals);
1774
+ return createLink(key);
1775
+ };
1776
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
1777
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1778
+ const rootKey = keyBuilderFromType(luvio, input);
1779
+ rootKeySet.set(rootKey, {
1780
+ namespace: keyPrefix,
1781
+ representationName: RepresentationType,
1782
+ mergeable: false
1783
+ });
1784
+ }
1785
+
1786
+ function select(luvio, params) {
1787
+ return select$1();
1788
+ }
1789
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1790
+ getTypeCacheKeys(storeKeyMap, luvio, response);
1791
+ }
1792
+ function ingestSuccess(luvio, resourceParams, response) {
1793
+ const { body } = response;
1794
+ const key = keyBuilderFromType(luvio, body);
1795
+ luvio.storeIngest(key, ingest, body);
1796
+ const snapshot = luvio.storeLookup({
1797
+ recordId: key,
1798
+ node: select(),
1799
+ variables: {},
1800
+ });
1801
+ if (process.env.NODE_ENV !== 'production') {
1802
+ if (snapshot.state !== 'Fulfilled') {
1803
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1804
+ }
1805
+ }
1806
+ deepFreeze(snapshot.data);
1807
+ return snapshot;
1808
+ }
1809
+ function createResourceRequest(config) {
1810
+ const headers = {};
1811
+ return {
1812
+ baseUri: '/services/data/v66.0',
1813
+ basePath: '/connect/omni-analytics/analytics-logs',
1814
+ method: 'post',
1815
+ body: config.body,
1816
+ urlParams: {},
1817
+ queryParams: {},
1818
+ headers,
1819
+ priority: 'normal',
1820
+ };
1821
+ }
1822
+
1823
+ const adapterName = 'storeOmniAnalyticsLogs';
1824
+ const storeOmniAnalyticsLogs_ConfigPropertyMetadata = [
1825
+ generateParamConfigMetadata('analyticsLog', true, 2 /* Body */, 0 /* String */),
1826
+ generateParamConfigMetadata('analyticsLogDate', true, 2 /* Body */, 0 /* String */),
1827
+ generateParamConfigMetadata('analyticsLogOwnerId', true, 2 /* Body */, 0 /* String */),
1828
+ generateParamConfigMetadata('componentId', true, 2 /* Body */, 0 /* String */),
1829
+ generateParamConfigMetadata('eventType', true, 2 /* Body */, 0 /* String */),
1830
+ ];
1831
+ const storeOmniAnalyticsLogs_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, storeOmniAnalyticsLogs_ConfigPropertyMetadata);
1832
+ const createResourceParams = /*#__PURE__*/ createResourceParams$3(storeOmniAnalyticsLogs_ConfigPropertyMetadata);
1833
+ function typeCheckConfig(untrustedConfig) {
1834
+ const config = {};
1835
+ typeCheckConfig$3(untrustedConfig, config, storeOmniAnalyticsLogs_ConfigPropertyMetadata);
1836
+ return config;
1837
+ }
1838
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
1839
+ if (!untrustedIsObject(untrustedConfig)) {
1840
+ return null;
1841
+ }
1842
+ if (process.env.NODE_ENV !== 'production') {
1843
+ validateConfig(untrustedConfig, configPropertyNames);
1844
+ }
1845
+ const config = typeCheckConfig(untrustedConfig);
1846
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1847
+ return null;
1848
+ }
1849
+ return config;
1850
+ }
1851
+ function buildNetworkSnapshot(luvio, config, options) {
1852
+ const resourceParams = createResourceParams(config);
1853
+ const request = createResourceRequest(resourceParams);
1854
+ return luvio.dispatchResourceRequest(request, options)
1855
+ .then((response) => {
1856
+ return luvio.handleSuccessResponse(() => {
1857
+ const snapshot = ingestSuccess(luvio, resourceParams, response);
1858
+ return luvio.storeBroadcast().then(() => snapshot);
1859
+ }, () => {
1860
+ const cache = new StoreKeyMap();
1861
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
1862
+ return cache;
1863
+ });
1864
+ }, (response) => {
1865
+ deepFreeze(response);
1866
+ throw response;
1867
+ });
1868
+ }
1869
+ const storeOmniAnalyticsLogsAdapterFactory = (luvio) => {
1870
+ return function storeOmniAnalyticsLogs(untrustedConfig) {
1871
+ const config = validateAdapterConfig(untrustedConfig, storeOmniAnalyticsLogs_ConfigPropertyNames);
1872
+ // Invalid or incomplete config
1873
+ if (config === null) {
1874
+ throw new Error('Invalid config for "storeOmniAnalyticsLogs"');
1875
+ }
1876
+ return buildNetworkSnapshot(luvio, config);
1877
+ };
1878
+ };
1879
+
1880
+ let fetchOmniAnalyticsLogs;
1881
+ let fetchOmniAnalyticsMetadata;
1882
+ let storeOmniAnalyticsLogs;
1883
+ // Imperative GET Adapters
1884
+ let fetchOmniAnalyticsLogs_imperative;
1885
+ let fetchOmniAnalyticsMetadata_imperative;
1886
+ // Adapter Metadata
1887
+ const fetchOmniAnalyticsLogsMetadata = {
1888
+ apiFamily: 'omnianalytics',
1889
+ name: 'fetchOmniAnalyticsLogs',
1890
+ ttl: 10000,
1891
+ };
1892
+ const fetchOmniAnalyticsMetadataMetadata = {
1893
+ apiFamily: 'omnianalytics',
1894
+ name: 'fetchOmniAnalyticsMetadata',
1895
+ ttl: 60000,
1896
+ };
1897
+ // Notify Update Available
1898
+ function bindExportsTo(luvio) {
1899
+ // LDS Adapters
1900
+ const fetchOmniAnalyticsLogs_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'fetchOmniAnalyticsLogs', fetchOmniAnalyticsLogsAdapterFactory), fetchOmniAnalyticsLogsMetadata);
1901
+ const fetchOmniAnalyticsMetadata_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'fetchOmniAnalyticsMetadata', fetchOmniAnalyticsMetadataAdapterFactory), fetchOmniAnalyticsMetadataMetadata);
1902
+ function unwrapSnapshotData(factory) {
1903
+ const adapter = factory(luvio);
1904
+ return (config) => adapter(config).then((snapshot) => snapshot.data);
1905
+ }
1906
+ return {
1907
+ fetchOmniAnalyticsLogs: createWireAdapterConstructor(luvio, fetchOmniAnalyticsLogs_ldsAdapter, fetchOmniAnalyticsLogsMetadata),
1908
+ fetchOmniAnalyticsMetadata: createWireAdapterConstructor(luvio, fetchOmniAnalyticsMetadata_ldsAdapter, fetchOmniAnalyticsMetadataMetadata),
1909
+ storeOmniAnalyticsLogs: unwrapSnapshotData(storeOmniAnalyticsLogsAdapterFactory),
1910
+ // Imperative GET Adapters
1911
+ fetchOmniAnalyticsLogs_imperative: createImperativeAdapter(luvio, fetchOmniAnalyticsLogs_ldsAdapter, fetchOmniAnalyticsLogsMetadata),
1912
+ fetchOmniAnalyticsMetadata_imperative: createImperativeAdapter(luvio, fetchOmniAnalyticsMetadata_ldsAdapter, fetchOmniAnalyticsMetadataMetadata),
1913
+ // Notify Update Availables
1914
+ };
1915
+ }
1916
+ withDefaultLuvio((luvio) => {
1917
+ ({
1918
+ fetchOmniAnalyticsLogs,
1919
+ fetchOmniAnalyticsMetadata,
1920
+ storeOmniAnalyticsLogs,
1921
+ fetchOmniAnalyticsLogs_imperative,
1922
+ fetchOmniAnalyticsMetadata_imperative,
1923
+ } = bindExportsTo(luvio));
1924
+ });
1925
+
1926
+ export { fetchOmniAnalyticsLogs, fetchOmniAnalyticsLogs_imperative, fetchOmniAnalyticsMetadata, fetchOmniAnalyticsMetadata_imperative, storeOmniAnalyticsLogs };
1927
+ // version: 0.1.0-dev1-c978a7b010