@salesforce/lds-adapters-analytics-unifiedanalytics 1.451.0-dev1 → 1.451.0-dev3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/analytics-unifiedanalytics.js +1042 -778
- package/dist/es/es2018/types/src/generated/adapters/getDataAlertCollection.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/postDataAlertTransientRun.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getTableauDataAlerts.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postTableauDataAlertsRun.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertDeliveryConfigurationInputRepresentation.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/types/DataAlertNoOpReceiversInputRepresentation.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertNoOpReceiversRepresentation.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertReceiversInputRepresentation.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertSlackRecipientInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertSlackRecipientRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertSlackRecipientsInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertSlackRecipientsRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertTransientRunOutputRepresentation.d.ts +35 -0
- package/package.json +3 -3
- package/sfdc/index.js +2996 -2721
- package/src/raml/api.raml +92 -0
- package/src/raml/luvio.raml +8 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$11, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$t, typeCheckConfig as typeCheckConfig$11 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -93,9 +93,9 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
const TTL$
|
|
97
|
-
const VERSION$
|
|
98
|
-
function validate$
|
|
96
|
+
const TTL$v = 1000;
|
|
97
|
+
const VERSION$J = "3c943f1d2e5251ceef13b3e2fdb5f916";
|
|
98
|
+
function validate$1y(obj, path = 'TableauExternalMonitoringEventItemRepresentation') {
|
|
99
99
|
const v_error = (() => {
|
|
100
100
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
101
101
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -118,68 +118,68 @@ function validate$1x(obj, path = 'TableauExternalMonitoringEventItemRepresentati
|
|
|
118
118
|
})();
|
|
119
119
|
return v_error === undefined ? null : v_error;
|
|
120
120
|
}
|
|
121
|
-
const RepresentationType$
|
|
122
|
-
function keyBuilder$
|
|
123
|
-
return keyPrefix + '::' + RepresentationType$
|
|
121
|
+
const RepresentationType$L = 'TableauExternalMonitoringEventItemRepresentation';
|
|
122
|
+
function keyBuilder$1s(luvio, config) {
|
|
123
|
+
return keyPrefix + '::' + RepresentationType$L + ':' + config.id;
|
|
124
124
|
}
|
|
125
125
|
function keyBuilderFromType$o(luvio, object) {
|
|
126
126
|
const keyParams = {
|
|
127
127
|
id: object.id
|
|
128
128
|
};
|
|
129
|
-
return keyBuilder$
|
|
129
|
+
return keyBuilder$1s(luvio, keyParams);
|
|
130
130
|
}
|
|
131
|
-
function normalize$
|
|
131
|
+
function normalize$J(input, existing, path, luvio, store, timestamp) {
|
|
132
132
|
return input;
|
|
133
133
|
}
|
|
134
|
-
const select$
|
|
134
|
+
const select$1C = function TableauExternalMonitoringEventItemRepresentationSelect() {
|
|
135
135
|
return {
|
|
136
136
|
kind: 'Fragment',
|
|
137
|
-
version: VERSION$
|
|
137
|
+
version: VERSION$J,
|
|
138
138
|
private: [],
|
|
139
139
|
opaque: true
|
|
140
140
|
};
|
|
141
141
|
};
|
|
142
|
-
function equals$
|
|
142
|
+
function equals$J(existing, incoming) {
|
|
143
143
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
144
144
|
return false;
|
|
145
145
|
}
|
|
146
146
|
return true;
|
|
147
147
|
}
|
|
148
|
-
const ingest$
|
|
148
|
+
const ingest$J = function TableauExternalMonitoringEventItemRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
149
149
|
if (process.env.NODE_ENV !== 'production') {
|
|
150
|
-
const validateError = validate$
|
|
150
|
+
const validateError = validate$1y(input);
|
|
151
151
|
if (validateError !== null) {
|
|
152
152
|
throw validateError;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
const key = keyBuilderFromType$o(luvio, input);
|
|
156
|
-
const ttlToUse = TTL$
|
|
157
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
156
|
+
const ttlToUse = TTL$v;
|
|
157
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$J, "UnifiedAnalytics", VERSION$J, RepresentationType$L, equals$J);
|
|
158
158
|
return createLink(key);
|
|
159
159
|
};
|
|
160
|
-
function getTypeCacheKeys$
|
|
160
|
+
function getTypeCacheKeys$J(rootKeySet, luvio, input, fullPathFactory) {
|
|
161
161
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
162
162
|
const rootKey = keyBuilderFromType$o(luvio, input);
|
|
163
163
|
rootKeySet.set(rootKey, {
|
|
164
164
|
namespace: keyPrefix,
|
|
165
|
-
representationName: RepresentationType$
|
|
165
|
+
representationName: RepresentationType$L,
|
|
166
166
|
mergeable: false
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
function select$
|
|
171
|
-
return select$
|
|
170
|
+
function select$1B(luvio, params) {
|
|
171
|
+
return select$1C();
|
|
172
172
|
}
|
|
173
|
-
function getResponseCacheKeys
|
|
174
|
-
getTypeCacheKeys$
|
|
173
|
+
function getResponseCacheKeys$10(storeKeyMap, luvio, resourceParams, response) {
|
|
174
|
+
getTypeCacheKeys$J(storeKeyMap, luvio, response);
|
|
175
175
|
}
|
|
176
|
-
function ingestSuccess$
|
|
176
|
+
function ingestSuccess$U(luvio, resourceParams, response) {
|
|
177
177
|
const { body } = response;
|
|
178
178
|
const key = keyBuilderFromType$o(luvio, body);
|
|
179
|
-
luvio.storeIngest(key, ingest$
|
|
179
|
+
luvio.storeIngest(key, ingest$J, body);
|
|
180
180
|
const snapshot = luvio.storeLookup({
|
|
181
181
|
recordId: key,
|
|
182
|
-
node: select$
|
|
182
|
+
node: select$1B(),
|
|
183
183
|
variables: {},
|
|
184
184
|
});
|
|
185
185
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -190,7 +190,7 @@ function ingestSuccess$T(luvio, resourceParams, response) {
|
|
|
190
190
|
deepFreeze(snapshot.data);
|
|
191
191
|
return snapshot;
|
|
192
192
|
}
|
|
193
|
-
function createResourceRequest
|
|
193
|
+
function createResourceRequest$10(config) {
|
|
194
194
|
const headers = {};
|
|
195
195
|
return {
|
|
196
196
|
baseUri: '/services/data/v68.0',
|
|
@@ -204,13 +204,13 @@ function createResourceRequest$$(config) {
|
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
const adapterName
|
|
207
|
+
const adapterName$10 = 'publish';
|
|
208
208
|
const publish_ConfigPropertyMetadata = [
|
|
209
209
|
generateParamConfigMetadata('events', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
210
210
|
];
|
|
211
|
-
const publish_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName
|
|
212
|
-
const createResourceParams
|
|
213
|
-
function typeCheckConfig
|
|
211
|
+
const publish_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$10, publish_ConfigPropertyMetadata);
|
|
212
|
+
const createResourceParams$10 = /*#__PURE__*/ createResourceParams$11(publish_ConfigPropertyMetadata);
|
|
213
|
+
function typeCheckConfig$10(untrustedConfig) {
|
|
214
214
|
const config = {};
|
|
215
215
|
const untrustedConfig_events = untrustedConfig.events;
|
|
216
216
|
if (ArrayIsArray$1(untrustedConfig_events)) {
|
|
@@ -223,30 +223,30 @@ function typeCheckConfig$$(untrustedConfig) {
|
|
|
223
223
|
}
|
|
224
224
|
return config;
|
|
225
225
|
}
|
|
226
|
-
function validateAdapterConfig
|
|
226
|
+
function validateAdapterConfig$10(untrustedConfig, configPropertyNames) {
|
|
227
227
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
228
228
|
return null;
|
|
229
229
|
}
|
|
230
230
|
if (process.env.NODE_ENV !== 'production') {
|
|
231
231
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
232
232
|
}
|
|
233
|
-
const config = typeCheckConfig
|
|
233
|
+
const config = typeCheckConfig$10(untrustedConfig);
|
|
234
234
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
235
235
|
return null;
|
|
236
236
|
}
|
|
237
237
|
return config;
|
|
238
238
|
}
|
|
239
|
-
function buildNetworkSnapshot
|
|
240
|
-
const resourceParams = createResourceParams
|
|
241
|
-
const request = createResourceRequest
|
|
239
|
+
function buildNetworkSnapshot$10(luvio, config, options) {
|
|
240
|
+
const resourceParams = createResourceParams$10(config);
|
|
241
|
+
const request = createResourceRequest$10(resourceParams);
|
|
242
242
|
return luvio.dispatchResourceRequest(request, options)
|
|
243
243
|
.then((response) => {
|
|
244
244
|
return luvio.handleSuccessResponse(() => {
|
|
245
|
-
const snapshot = ingestSuccess$
|
|
245
|
+
const snapshot = ingestSuccess$U(luvio, resourceParams, response);
|
|
246
246
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
247
247
|
}, () => {
|
|
248
248
|
const cache = new StoreKeyMap();
|
|
249
|
-
getResponseCacheKeys
|
|
249
|
+
getResponseCacheKeys$10(cache, luvio, resourceParams, response.body);
|
|
250
250
|
return cache;
|
|
251
251
|
});
|
|
252
252
|
}, (response) => {
|
|
@@ -256,16 +256,16 @@ function buildNetworkSnapshot$$(luvio, config, options) {
|
|
|
256
256
|
}
|
|
257
257
|
const publishAdapterFactory = (luvio) => {
|
|
258
258
|
return function publish(untrustedConfig) {
|
|
259
|
-
const config = validateAdapterConfig
|
|
259
|
+
const config = validateAdapterConfig$10(untrustedConfig, publish_ConfigPropertyNames);
|
|
260
260
|
// Invalid or incomplete config
|
|
261
261
|
if (config === null) {
|
|
262
262
|
throw new Error('Invalid config for "publish"');
|
|
263
263
|
}
|
|
264
|
-
return buildNetworkSnapshot
|
|
264
|
+
return buildNetworkSnapshot$10(luvio, config);
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
267
|
|
|
268
|
-
function validate$
|
|
268
|
+
function validate$1x(obj, path = 'DashboardAnnotationAnchorRepresentation') {
|
|
269
269
|
const v_error = (() => {
|
|
270
270
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
271
271
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -279,7 +279,7 @@ function validate$1w(obj, path = 'DashboardAnnotationAnchorRepresentation') {
|
|
|
279
279
|
return v_error === undefined ? null : v_error;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
function validate$
|
|
282
|
+
function validate$1w(obj, path = 'AnnotationAssetRepresentation') {
|
|
283
283
|
const v_error = (() => {
|
|
284
284
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
285
285
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -298,7 +298,7 @@ function validate$1v(obj, path = 'AnnotationAssetRepresentation') {
|
|
|
298
298
|
return v_error === undefined ? null : v_error;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
function validate$
|
|
301
|
+
function validate$1v(obj, path = 'FileTypeOutputRepresentation') {
|
|
302
302
|
const v_error = (() => {
|
|
303
303
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
304
304
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -317,7 +317,7 @@ function validate$1u(obj, path = 'FileTypeOutputRepresentation') {
|
|
|
317
317
|
return v_error === undefined ? null : v_error;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
function validate$
|
|
320
|
+
function validate$1u(obj, path = 'ContentVersionOutputRepresentation') {
|
|
321
321
|
const v_error = (() => {
|
|
322
322
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
323
323
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -331,7 +331,7 @@ function validate$1t(obj, path = 'ContentVersionOutputRepresentation') {
|
|
|
331
331
|
const path_filetype = path + '.filetype';
|
|
332
332
|
let obj_filetype_union0 = null;
|
|
333
333
|
const obj_filetype_union0_error = (() => {
|
|
334
|
-
const referencepath_filetypeValidationError = validate$
|
|
334
|
+
const referencepath_filetypeValidationError = validate$1v(obj_filetype, path_filetype);
|
|
335
335
|
if (referencepath_filetypeValidationError !== null) {
|
|
336
336
|
let message = 'Object doesn\'t match FileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
337
337
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -401,14 +401,14 @@ function validate$1t(obj, path = 'ContentVersionOutputRepresentation') {
|
|
|
401
401
|
return v_error === undefined ? null : v_error;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
function validate$
|
|
404
|
+
function validate$1t(obj, path = 'ContentDocumentOutputRepresentation') {
|
|
405
405
|
const v_error = (() => {
|
|
406
406
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
407
407
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
408
408
|
}
|
|
409
409
|
const obj_filetype = obj.filetype;
|
|
410
410
|
const path_filetype = path + '.filetype';
|
|
411
|
-
const referencepath_filetypeValidationError = validate$
|
|
411
|
+
const referencepath_filetypeValidationError = validate$1v(obj_filetype, path_filetype);
|
|
412
412
|
if (referencepath_filetypeValidationError !== null) {
|
|
413
413
|
let message = 'Object doesn\'t match FileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
414
414
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -421,7 +421,7 @@ function validate$1s(obj, path = 'ContentDocumentOutputRepresentation') {
|
|
|
421
421
|
}
|
|
422
422
|
const obj_latestPublishedVersion = obj.latestPublishedVersion;
|
|
423
423
|
const path_latestPublishedVersion = path + '.latestPublishedVersion';
|
|
424
|
-
const referencepath_latestPublishedVersionValidationError = validate$
|
|
424
|
+
const referencepath_latestPublishedVersionValidationError = validate$1u(obj_latestPublishedVersion, path_latestPublishedVersion);
|
|
425
425
|
if (referencepath_latestPublishedVersionValidationError !== null) {
|
|
426
426
|
let message = 'Object doesn\'t match ContentVersionOutputRepresentation (at "' + path_latestPublishedVersion + '")\n';
|
|
427
427
|
message += referencepath_latestPublishedVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -441,7 +441,7 @@ function validate$1s(obj, path = 'ContentDocumentOutputRepresentation') {
|
|
|
441
441
|
return v_error === undefined ? null : v_error;
|
|
442
442
|
}
|
|
443
443
|
|
|
444
|
-
function validate$
|
|
444
|
+
function validate$1s(obj, path = 'SlackFileOutputRepresentation') {
|
|
445
445
|
const v_error = (() => {
|
|
446
446
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
447
447
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -450,7 +450,7 @@ function validate$1r(obj, path = 'SlackFileOutputRepresentation') {
|
|
|
450
450
|
const path_contentDocument = path + '.contentDocument';
|
|
451
451
|
let obj_contentDocument_union0 = null;
|
|
452
452
|
const obj_contentDocument_union0_error = (() => {
|
|
453
|
-
const referencepath_contentDocumentValidationError = validate$
|
|
453
|
+
const referencepath_contentDocumentValidationError = validate$1t(obj_contentDocument, path_contentDocument);
|
|
454
454
|
if (referencepath_contentDocumentValidationError !== null) {
|
|
455
455
|
let message = 'Object doesn\'t match ContentDocumentOutputRepresentation (at "' + path_contentDocument + '")\n';
|
|
456
456
|
message += referencepath_contentDocumentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -550,7 +550,7 @@ function validate$1r(obj, path = 'SlackFileOutputRepresentation') {
|
|
|
550
550
|
return v_error === undefined ? null : v_error;
|
|
551
551
|
}
|
|
552
552
|
|
|
553
|
-
function validate$
|
|
553
|
+
function validate$1r(obj, path = 'SlackEmojiOutputRepresentation') {
|
|
554
554
|
const v_error = (() => {
|
|
555
555
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
556
556
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -674,7 +674,7 @@ function validate$1q(obj, path = 'SlackEmojiOutputRepresentation') {
|
|
|
674
674
|
return v_error === undefined ? null : v_error;
|
|
675
675
|
}
|
|
676
676
|
|
|
677
|
-
function validate$
|
|
677
|
+
function validate$1q(obj, path = 'SlackUserInfoOutputRepresentation') {
|
|
678
678
|
const v_error = (() => {
|
|
679
679
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
680
680
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1001,7 +1001,7 @@ function validate$1p(obj, path = 'SlackUserInfoOutputRepresentation') {
|
|
|
1001
1001
|
const path_statusEmoji = path + '.statusEmoji';
|
|
1002
1002
|
let obj_statusEmoji_union0 = null;
|
|
1003
1003
|
const obj_statusEmoji_union0_error = (() => {
|
|
1004
|
-
const referencepath_statusEmojiValidationError = validate$
|
|
1004
|
+
const referencepath_statusEmojiValidationError = validate$1r(obj_statusEmoji, path_statusEmoji);
|
|
1005
1005
|
if (referencepath_statusEmojiValidationError !== null) {
|
|
1006
1006
|
let message = 'Object doesn\'t match SlackEmojiOutputRepresentation (at "' + path_statusEmoji + '")\n';
|
|
1007
1007
|
message += referencepath_statusEmojiValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1064,7 +1064,7 @@ function validate$1p(obj, path = 'SlackUserInfoOutputRepresentation') {
|
|
|
1064
1064
|
return v_error === undefined ? null : v_error;
|
|
1065
1065
|
}
|
|
1066
1066
|
|
|
1067
|
-
function validate$
|
|
1067
|
+
function validate$1p(obj, path = 'SlackReactionOutputRepresentation') {
|
|
1068
1068
|
const v_error = (() => {
|
|
1069
1069
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1070
1070
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1144,7 +1144,7 @@ function validate$1o(obj, path = 'SlackReactionOutputRepresentation') {
|
|
|
1144
1144
|
for (let i = 0; i < obj_reactedUsers.length; i++) {
|
|
1145
1145
|
const obj_reactedUsers_item = obj_reactedUsers[i];
|
|
1146
1146
|
const path_reactedUsers_item = path_reactedUsers + '[' + i + ']';
|
|
1147
|
-
const referencepath_reactedUsers_itemValidationError = validate$
|
|
1147
|
+
const referencepath_reactedUsers_itemValidationError = validate$1q(obj_reactedUsers_item, path_reactedUsers_item);
|
|
1148
1148
|
if (referencepath_reactedUsers_itemValidationError !== null) {
|
|
1149
1149
|
let message = 'Object doesn\'t match SlackUserInfoOutputRepresentation (at "' + path_reactedUsers_item + '")\n';
|
|
1150
1150
|
message += referencepath_reactedUsers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1233,7 +1233,7 @@ function validate$1o(obj, path = 'SlackReactionOutputRepresentation') {
|
|
|
1233
1233
|
return v_error === undefined ? null : v_error;
|
|
1234
1234
|
}
|
|
1235
1235
|
|
|
1236
|
-
function validate$
|
|
1236
|
+
function validate$1o(obj, path = 'SlackMessageOutputRepresentation') {
|
|
1237
1237
|
const v_error = (() => {
|
|
1238
1238
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1239
1239
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1282,7 +1282,7 @@ function validate$1n(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1282
1282
|
for (let i = 0; i < obj_files.length; i++) {
|
|
1283
1283
|
const obj_files_item = obj_files[i];
|
|
1284
1284
|
const path_files_item = path_files + '[' + i + ']';
|
|
1285
|
-
const referencepath_files_itemValidationError = validate$
|
|
1285
|
+
const referencepath_files_itemValidationError = validate$1s(obj_files_item, path_files_item);
|
|
1286
1286
|
if (referencepath_files_itemValidationError !== null) {
|
|
1287
1287
|
let message = 'Object doesn\'t match SlackFileOutputRepresentation (at "' + path_files_item + '")\n';
|
|
1288
1288
|
message += referencepath_files_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1443,7 +1443,7 @@ function validate$1n(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1443
1443
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
1444
1444
|
const obj_reactions_item = obj_reactions[i];
|
|
1445
1445
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
1446
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
1446
|
+
const referencepath_reactions_itemValidationError = validate$1p(obj_reactions_item, path_reactions_item);
|
|
1447
1447
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
1448
1448
|
let message = 'Object doesn\'t match SlackReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
1449
1449
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1484,7 +1484,7 @@ function validate$1n(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1484
1484
|
for (let i = 0; i < obj_replyUsers.length; i++) {
|
|
1485
1485
|
const obj_replyUsers_item = obj_replyUsers[i];
|
|
1486
1486
|
const path_replyUsers_item = path_replyUsers + '[' + i + ']';
|
|
1487
|
-
const referencepath_replyUsers_itemValidationError = validate$
|
|
1487
|
+
const referencepath_replyUsers_itemValidationError = validate$1q(obj_replyUsers_item, path_replyUsers_item);
|
|
1488
1488
|
if (referencepath_replyUsers_itemValidationError !== null) {
|
|
1489
1489
|
let message = 'Object doesn\'t match SlackUserInfoOutputRepresentation (at "' + path_replyUsers_item + '")\n';
|
|
1490
1490
|
message += referencepath_replyUsers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1617,7 +1617,7 @@ function validate$1n(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1617
1617
|
}
|
|
1618
1618
|
const obj_userInfo = obj.userInfo;
|
|
1619
1619
|
const path_userInfo = path + '.userInfo';
|
|
1620
|
-
const referencepath_userInfoValidationError = validate$
|
|
1620
|
+
const referencepath_userInfoValidationError = validate$1q(obj_userInfo, path_userInfo);
|
|
1621
1621
|
if (referencepath_userInfoValidationError !== null) {
|
|
1622
1622
|
let message = 'Object doesn\'t match SlackUserInfoOutputRepresentation (at "' + path_userInfo + '")\n';
|
|
1623
1623
|
message += referencepath_userInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1627,7 +1627,7 @@ function validate$1n(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1627
1627
|
return v_error === undefined ? null : v_error;
|
|
1628
1628
|
}
|
|
1629
1629
|
|
|
1630
|
-
function validate$
|
|
1630
|
+
function validate$1n(obj, path = 'AnnotationConversationRepresentation') {
|
|
1631
1631
|
const v_error = (() => {
|
|
1632
1632
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1633
1633
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1652,7 +1652,7 @@ function validate$1m(obj, path = 'AnnotationConversationRepresentation') {
|
|
|
1652
1652
|
const path_message = path + '.message';
|
|
1653
1653
|
let obj_message_union0 = null;
|
|
1654
1654
|
const obj_message_union0_error = (() => {
|
|
1655
|
-
const referencepath_messageValidationError = validate$
|
|
1655
|
+
const referencepath_messageValidationError = validate$1o(obj_message, path_message);
|
|
1656
1656
|
if (referencepath_messageValidationError !== null) {
|
|
1657
1657
|
let message = 'Object doesn\'t match SlackMessageOutputRepresentation (at "' + path_message + '")\n';
|
|
1658
1658
|
message += referencepath_messageValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1687,9 +1687,9 @@ function validate$1m(obj, path = 'AnnotationConversationRepresentation') {
|
|
|
1687
1687
|
return v_error === undefined ? null : v_error;
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
|
-
const TTL$
|
|
1691
|
-
const VERSION$
|
|
1692
|
-
function validate$
|
|
1690
|
+
const TTL$u = 1000;
|
|
1691
|
+
const VERSION$I = "bacc25da56cffff8126d9bdafc471a37";
|
|
1692
|
+
function validate$1m(obj, path = 'AnnotationRepresentation') {
|
|
1693
1693
|
const v_error = (() => {
|
|
1694
1694
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1695
1695
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1697,7 +1697,7 @@ function validate$1l(obj, path = 'AnnotationRepresentation') {
|
|
|
1697
1697
|
if (obj.anchor !== undefined) {
|
|
1698
1698
|
const obj_anchor = obj.anchor;
|
|
1699
1699
|
const path_anchor = path + '.anchor';
|
|
1700
|
-
const referencepath_anchorValidationError = validate$
|
|
1700
|
+
const referencepath_anchorValidationError = validate$1x(obj_anchor, path_anchor);
|
|
1701
1701
|
if (referencepath_anchorValidationError !== null) {
|
|
1702
1702
|
let message = 'Object doesn\'t match DashboardAnnotationAnchorRepresentation (at "' + path_anchor + '")\n';
|
|
1703
1703
|
message += referencepath_anchorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1711,7 +1711,7 @@ function validate$1l(obj, path = 'AnnotationRepresentation') {
|
|
|
1711
1711
|
}
|
|
1712
1712
|
const obj_asset = obj.asset;
|
|
1713
1713
|
const path_asset = path + '.asset';
|
|
1714
|
-
const referencepath_assetValidationError = validate$
|
|
1714
|
+
const referencepath_assetValidationError = validate$1w(obj_asset, path_asset);
|
|
1715
1715
|
if (referencepath_assetValidationError !== null) {
|
|
1716
1716
|
let message = 'Object doesn\'t match AnnotationAssetRepresentation (at "' + path_asset + '")\n';
|
|
1717
1717
|
message += referencepath_assetValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1719,7 +1719,7 @@ function validate$1l(obj, path = 'AnnotationRepresentation') {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
const obj_collaborationObject = obj.collaborationObject;
|
|
1721
1721
|
const path_collaborationObject = path + '.collaborationObject';
|
|
1722
|
-
const referencepath_collaborationObjectValidationError = validate$
|
|
1722
|
+
const referencepath_collaborationObjectValidationError = validate$1n(obj_collaborationObject, path_collaborationObject);
|
|
1723
1723
|
if (referencepath_collaborationObjectValidationError !== null) {
|
|
1724
1724
|
let message = 'Object doesn\'t match AnnotationConversationRepresentation (at "' + path_collaborationObject + '")\n';
|
|
1725
1725
|
message += referencepath_collaborationObjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1738,58 +1738,58 @@ function validate$1l(obj, path = 'AnnotationRepresentation') {
|
|
|
1738
1738
|
})();
|
|
1739
1739
|
return v_error === undefined ? null : v_error;
|
|
1740
1740
|
}
|
|
1741
|
-
const RepresentationType$
|
|
1742
|
-
function keyBuilder$
|
|
1743
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1741
|
+
const RepresentationType$K = 'AnnotationRepresentation';
|
|
1742
|
+
function keyBuilder$1r(luvio, config) {
|
|
1743
|
+
return keyPrefix + '::' + RepresentationType$K + ':' + config.id;
|
|
1744
1744
|
}
|
|
1745
1745
|
function keyBuilderFromType$n(luvio, object) {
|
|
1746
1746
|
const keyParams = {
|
|
1747
1747
|
id: object.id
|
|
1748
1748
|
};
|
|
1749
|
-
return keyBuilder$
|
|
1749
|
+
return keyBuilder$1r(luvio, keyParams);
|
|
1750
1750
|
}
|
|
1751
|
-
function normalize$
|
|
1751
|
+
function normalize$I(input, existing, path, luvio, store, timestamp) {
|
|
1752
1752
|
return input;
|
|
1753
1753
|
}
|
|
1754
|
-
const select$
|
|
1754
|
+
const select$1A = function AnnotationRepresentationSelect() {
|
|
1755
1755
|
return {
|
|
1756
1756
|
kind: 'Fragment',
|
|
1757
|
-
version: VERSION$
|
|
1757
|
+
version: VERSION$I,
|
|
1758
1758
|
private: [],
|
|
1759
1759
|
opaque: true
|
|
1760
1760
|
};
|
|
1761
1761
|
};
|
|
1762
|
-
function equals$
|
|
1762
|
+
function equals$I(existing, incoming) {
|
|
1763
1763
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1764
1764
|
return false;
|
|
1765
1765
|
}
|
|
1766
1766
|
return true;
|
|
1767
1767
|
}
|
|
1768
|
-
const ingest$
|
|
1768
|
+
const ingest$I = function AnnotationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1769
1769
|
if (process.env.NODE_ENV !== 'production') {
|
|
1770
|
-
const validateError = validate$
|
|
1770
|
+
const validateError = validate$1m(input);
|
|
1771
1771
|
if (validateError !== null) {
|
|
1772
1772
|
throw validateError;
|
|
1773
1773
|
}
|
|
1774
1774
|
}
|
|
1775
1775
|
const key = keyBuilderFromType$n(luvio, input);
|
|
1776
|
-
const ttlToUse = TTL$
|
|
1777
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1776
|
+
const ttlToUse = TTL$u;
|
|
1777
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$I, "UnifiedAnalytics", VERSION$I, RepresentationType$K, equals$I);
|
|
1778
1778
|
return createLink(key);
|
|
1779
1779
|
};
|
|
1780
|
-
function getTypeCacheKeys$
|
|
1780
|
+
function getTypeCacheKeys$I(rootKeySet, luvio, input, fullPathFactory) {
|
|
1781
1781
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1782
1782
|
const rootKey = keyBuilderFromType$n(luvio, input);
|
|
1783
1783
|
rootKeySet.set(rootKey, {
|
|
1784
1784
|
namespace: keyPrefix,
|
|
1785
|
-
representationName: RepresentationType$
|
|
1785
|
+
representationName: RepresentationType$K,
|
|
1786
1786
|
mergeable: false
|
|
1787
1787
|
});
|
|
1788
1788
|
}
|
|
1789
1789
|
|
|
1790
|
-
const TTL$
|
|
1791
|
-
const VERSION$
|
|
1792
|
-
function validate$
|
|
1790
|
+
const TTL$t = 1000;
|
|
1791
|
+
const VERSION$H = "a80c8e970184cc7789e13f69392d6203";
|
|
1792
|
+
function validate$1l(obj, path = 'AnnotationCollectionRepresentation') {
|
|
1793
1793
|
const v_error = (() => {
|
|
1794
1794
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1795
1795
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1814,14 +1814,14 @@ function validate$1k(obj, path = 'AnnotationCollectionRepresentation') {
|
|
|
1814
1814
|
})();
|
|
1815
1815
|
return v_error === undefined ? null : v_error;
|
|
1816
1816
|
}
|
|
1817
|
-
const RepresentationType$
|
|
1818
|
-
function normalize$
|
|
1817
|
+
const RepresentationType$J = 'AnnotationCollectionRepresentation';
|
|
1818
|
+
function normalize$H(input, existing, path, luvio, store, timestamp) {
|
|
1819
1819
|
const input_annotations = input.annotations;
|
|
1820
1820
|
const input_annotations_id = path.fullPath + '__annotations';
|
|
1821
1821
|
for (let i = 0; i < input_annotations.length; i++) {
|
|
1822
1822
|
const input_annotations_item = input_annotations[i];
|
|
1823
1823
|
let input_annotations_item_id = input_annotations_id + '__' + i;
|
|
1824
|
-
input_annotations[i] = ingest$
|
|
1824
|
+
input_annotations[i] = ingest$I(input_annotations_item, {
|
|
1825
1825
|
fullPath: input_annotations_item_id,
|
|
1826
1826
|
propertyName: i,
|
|
1827
1827
|
parent: {
|
|
@@ -1834,17 +1834,17 @@ function normalize$G(input, existing, path, luvio, store, timestamp) {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
return input;
|
|
1836
1836
|
}
|
|
1837
|
-
const select$
|
|
1837
|
+
const select$1z = function AnnotationCollectionRepresentationSelect() {
|
|
1838
1838
|
return {
|
|
1839
1839
|
kind: 'Fragment',
|
|
1840
|
-
version: VERSION$
|
|
1840
|
+
version: VERSION$H,
|
|
1841
1841
|
private: [],
|
|
1842
1842
|
selections: [
|
|
1843
1843
|
{
|
|
1844
1844
|
name: 'annotations',
|
|
1845
1845
|
kind: 'Link',
|
|
1846
1846
|
plural: true,
|
|
1847
|
-
fragment: select$
|
|
1847
|
+
fragment: select$1A()
|
|
1848
1848
|
},
|
|
1849
1849
|
{
|
|
1850
1850
|
name: 'total',
|
|
@@ -1853,7 +1853,7 @@ const select$1x = function AnnotationCollectionRepresentationSelect() {
|
|
|
1853
1853
|
]
|
|
1854
1854
|
};
|
|
1855
1855
|
};
|
|
1856
|
-
function equals$
|
|
1856
|
+
function equals$H(existing, incoming) {
|
|
1857
1857
|
const existing_total = existing.total;
|
|
1858
1858
|
const incoming_total = incoming.total;
|
|
1859
1859
|
if (!(existing_total === incoming_total)) {
|
|
@@ -1871,48 +1871,48 @@ function equals$G(existing, incoming) {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
return true;
|
|
1873
1873
|
}
|
|
1874
|
-
const ingest$
|
|
1874
|
+
const ingest$H = function AnnotationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1875
1875
|
if (process.env.NODE_ENV !== 'production') {
|
|
1876
|
-
const validateError = validate$
|
|
1876
|
+
const validateError = validate$1l(input);
|
|
1877
1877
|
if (validateError !== null) {
|
|
1878
1878
|
throw validateError;
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
1881
|
const key = path.fullPath;
|
|
1882
|
-
const ttlToUse = TTL$
|
|
1883
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1882
|
+
const ttlToUse = TTL$t;
|
|
1883
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$H, "UnifiedAnalytics", VERSION$H, RepresentationType$J, equals$H);
|
|
1884
1884
|
return createLink(key);
|
|
1885
1885
|
};
|
|
1886
|
-
function getTypeCacheKeys$
|
|
1886
|
+
function getTypeCacheKeys$H(rootKeySet, luvio, input, fullPathFactory) {
|
|
1887
1887
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1888
1888
|
const rootKey = fullPathFactory();
|
|
1889
1889
|
rootKeySet.set(rootKey, {
|
|
1890
1890
|
namespace: keyPrefix,
|
|
1891
|
-
representationName: RepresentationType$
|
|
1891
|
+
representationName: RepresentationType$J,
|
|
1892
1892
|
mergeable: false
|
|
1893
1893
|
});
|
|
1894
1894
|
const input_annotations_length = input.annotations.length;
|
|
1895
1895
|
for (let i = 0; i < input_annotations_length; i++) {
|
|
1896
|
-
getTypeCacheKeys$
|
|
1896
|
+
getTypeCacheKeys$I(rootKeySet, luvio, input.annotations[i]);
|
|
1897
1897
|
}
|
|
1898
1898
|
}
|
|
1899
1899
|
|
|
1900
|
-
function select$
|
|
1901
|
-
return select$
|
|
1900
|
+
function select$1y(luvio, params) {
|
|
1901
|
+
return select$1z();
|
|
1902
1902
|
}
|
|
1903
|
-
function keyBuilder$
|
|
1903
|
+
function keyBuilder$1q(luvio, params) {
|
|
1904
1904
|
return keyPrefix + '::AnnotationCollectionRepresentation:(' + 'assetIds:' + params.queryParams.assetIds + ',' + 'includeTopMessage:' + params.queryParams.includeTopMessage + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'slackAppId:' + params.queryParams.slackAppId + ')';
|
|
1905
1905
|
}
|
|
1906
|
-
function getResponseCacheKeys
|
|
1907
|
-
getTypeCacheKeys$
|
|
1906
|
+
function getResponseCacheKeys$$(storeKeyMap, luvio, resourceParams, response) {
|
|
1907
|
+
getTypeCacheKeys$H(storeKeyMap, luvio, response, () => keyBuilder$1q(luvio, resourceParams));
|
|
1908
1908
|
}
|
|
1909
|
-
function ingestSuccess$
|
|
1909
|
+
function ingestSuccess$T(luvio, resourceParams, response, snapshotRefresh) {
|
|
1910
1910
|
const { body } = response;
|
|
1911
|
-
const key = keyBuilder$
|
|
1912
|
-
luvio.storeIngest(key, ingest$
|
|
1911
|
+
const key = keyBuilder$1q(luvio, resourceParams);
|
|
1912
|
+
luvio.storeIngest(key, ingest$H, body);
|
|
1913
1913
|
const snapshot = luvio.storeLookup({
|
|
1914
1914
|
recordId: key,
|
|
1915
|
-
node: select$
|
|
1915
|
+
node: select$1y(),
|
|
1916
1916
|
variables: {},
|
|
1917
1917
|
}, snapshotRefresh);
|
|
1918
1918
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1923,19 +1923,19 @@ function ingestSuccess$S(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1923
1923
|
deepFreeze(snapshot.data);
|
|
1924
1924
|
return snapshot;
|
|
1925
1925
|
}
|
|
1926
|
-
function ingestError$
|
|
1927
|
-
const key = keyBuilder$
|
|
1926
|
+
function ingestError$s(luvio, params, error, snapshotRefresh) {
|
|
1927
|
+
const key = keyBuilder$1q(luvio, params);
|
|
1928
1928
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1929
1929
|
const storeMetadataParams = {
|
|
1930
|
-
ttl: TTL$
|
|
1930
|
+
ttl: TTL$t,
|
|
1931
1931
|
namespace: keyPrefix,
|
|
1932
|
-
version: VERSION$
|
|
1933
|
-
representationName: RepresentationType$
|
|
1932
|
+
version: VERSION$H,
|
|
1933
|
+
representationName: RepresentationType$J
|
|
1934
1934
|
};
|
|
1935
1935
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1936
1936
|
return errorSnapshot;
|
|
1937
1937
|
}
|
|
1938
|
-
function createResourceRequest
|
|
1938
|
+
function createResourceRequest$$(config) {
|
|
1939
1939
|
const headers = {};
|
|
1940
1940
|
return {
|
|
1941
1941
|
baseUri: '/services/data/v68.0',
|
|
@@ -1949,7 +1949,7 @@ function createResourceRequest$_(config) {
|
|
|
1949
1949
|
};
|
|
1950
1950
|
}
|
|
1951
1951
|
|
|
1952
|
-
const adapterName
|
|
1952
|
+
const adapterName$$ = 'getAnnotations';
|
|
1953
1953
|
const getAnnotations_ConfigPropertyMetadata = [
|
|
1954
1954
|
generateParamConfigMetadata('assetIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
1955
1955
|
generateParamConfigMetadata('includeTopMessage', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -1957,101 +1957,101 @@ const getAnnotations_ConfigPropertyMetadata = [
|
|
|
1957
1957
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1958
1958
|
generateParamConfigMetadata('slackAppId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1959
1959
|
];
|
|
1960
|
-
const getAnnotations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName
|
|
1961
|
-
const createResourceParams
|
|
1962
|
-
function keyBuilder$
|
|
1963
|
-
const resourceParams = createResourceParams
|
|
1964
|
-
return keyBuilder$
|
|
1960
|
+
const getAnnotations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$$, getAnnotations_ConfigPropertyMetadata);
|
|
1961
|
+
const createResourceParams$$ = /*#__PURE__*/ createResourceParams$11(getAnnotations_ConfigPropertyMetadata);
|
|
1962
|
+
function keyBuilder$1p(luvio, config) {
|
|
1963
|
+
const resourceParams = createResourceParams$$(config);
|
|
1964
|
+
return keyBuilder$1q(luvio, resourceParams);
|
|
1965
1965
|
}
|
|
1966
|
-
function typeCheckConfig
|
|
1966
|
+
function typeCheckConfig$$(untrustedConfig) {
|
|
1967
1967
|
const config = {};
|
|
1968
|
-
typeCheckConfig$
|
|
1968
|
+
typeCheckConfig$11(untrustedConfig, config, getAnnotations_ConfigPropertyMetadata);
|
|
1969
1969
|
return config;
|
|
1970
1970
|
}
|
|
1971
|
-
function validateAdapterConfig
|
|
1971
|
+
function validateAdapterConfig$$(untrustedConfig, configPropertyNames) {
|
|
1972
1972
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1973
1973
|
return null;
|
|
1974
1974
|
}
|
|
1975
1975
|
if (process.env.NODE_ENV !== 'production') {
|
|
1976
1976
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1977
1977
|
}
|
|
1978
|
-
const config = typeCheckConfig
|
|
1978
|
+
const config = typeCheckConfig$$(untrustedConfig);
|
|
1979
1979
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1980
1980
|
return null;
|
|
1981
1981
|
}
|
|
1982
1982
|
return config;
|
|
1983
1983
|
}
|
|
1984
|
-
function adapterFragment$
|
|
1985
|
-
createResourceParams
|
|
1986
|
-
return select$
|
|
1984
|
+
function adapterFragment$s(luvio, config) {
|
|
1985
|
+
createResourceParams$$(config);
|
|
1986
|
+
return select$1y();
|
|
1987
1987
|
}
|
|
1988
|
-
function onFetchResponseSuccess$
|
|
1989
|
-
const snapshot = ingestSuccess$
|
|
1988
|
+
function onFetchResponseSuccess$s(luvio, config, resourceParams, response) {
|
|
1989
|
+
const snapshot = ingestSuccess$T(luvio, resourceParams, response, {
|
|
1990
1990
|
config,
|
|
1991
|
-
resolve: () => buildNetworkSnapshot
|
|
1991
|
+
resolve: () => buildNetworkSnapshot$$(luvio, config, snapshotRefreshOptions)
|
|
1992
1992
|
});
|
|
1993
1993
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1994
1994
|
}
|
|
1995
|
-
function onFetchResponseError$
|
|
1996
|
-
const snapshot = ingestError$
|
|
1995
|
+
function onFetchResponseError$s(luvio, config, resourceParams, response) {
|
|
1996
|
+
const snapshot = ingestError$s(luvio, resourceParams, response, {
|
|
1997
1997
|
config,
|
|
1998
|
-
resolve: () => buildNetworkSnapshot
|
|
1998
|
+
resolve: () => buildNetworkSnapshot$$(luvio, config, snapshotRefreshOptions)
|
|
1999
1999
|
});
|
|
2000
2000
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2001
2001
|
}
|
|
2002
|
-
function buildNetworkSnapshot
|
|
2003
|
-
const resourceParams = createResourceParams
|
|
2004
|
-
const request = createResourceRequest
|
|
2002
|
+
function buildNetworkSnapshot$$(luvio, config, options) {
|
|
2003
|
+
const resourceParams = createResourceParams$$(config);
|
|
2004
|
+
const request = createResourceRequest$$(resourceParams);
|
|
2005
2005
|
return luvio.dispatchResourceRequest(request, options)
|
|
2006
2006
|
.then((response) => {
|
|
2007
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2007
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$s(luvio, config, resourceParams, response), () => {
|
|
2008
2008
|
const cache = new StoreKeyMap();
|
|
2009
|
-
getResponseCacheKeys
|
|
2009
|
+
getResponseCacheKeys$$(cache, luvio, resourceParams, response.body);
|
|
2010
2010
|
return cache;
|
|
2011
2011
|
});
|
|
2012
2012
|
}, (response) => {
|
|
2013
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2013
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$s(luvio, config, resourceParams, response));
|
|
2014
2014
|
});
|
|
2015
2015
|
}
|
|
2016
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2017
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2016
|
+
function buildNetworkSnapshotCachePolicy$s(context, coercedAdapterRequestContext) {
|
|
2017
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$$, undefined, false);
|
|
2018
2018
|
}
|
|
2019
|
-
function buildCachedSnapshotCachePolicy$
|
|
2019
|
+
function buildCachedSnapshotCachePolicy$s(context, storeLookup) {
|
|
2020
2020
|
const { luvio, config } = context;
|
|
2021
2021
|
const selector = {
|
|
2022
|
-
recordId: keyBuilder$
|
|
2023
|
-
node: adapterFragment$
|
|
2022
|
+
recordId: keyBuilder$1p(luvio, config),
|
|
2023
|
+
node: adapterFragment$s(luvio, config),
|
|
2024
2024
|
variables: {},
|
|
2025
2025
|
};
|
|
2026
2026
|
const cacheSnapshot = storeLookup(selector, {
|
|
2027
2027
|
config,
|
|
2028
|
-
resolve: () => buildNetworkSnapshot
|
|
2028
|
+
resolve: () => buildNetworkSnapshot$$(luvio, config, snapshotRefreshOptions)
|
|
2029
2029
|
});
|
|
2030
2030
|
return cacheSnapshot;
|
|
2031
2031
|
}
|
|
2032
2032
|
const getAnnotationsAdapterFactory = (luvio) => function UnifiedAnalytics__getAnnotations(untrustedConfig, requestContext) {
|
|
2033
|
-
const config = validateAdapterConfig
|
|
2033
|
+
const config = validateAdapterConfig$$(untrustedConfig, getAnnotations_ConfigPropertyNames);
|
|
2034
2034
|
// Invalid or incomplete config
|
|
2035
2035
|
if (config === null) {
|
|
2036
2036
|
return null;
|
|
2037
2037
|
}
|
|
2038
2038
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2039
|
-
buildCachedSnapshotCachePolicy$
|
|
2039
|
+
buildCachedSnapshotCachePolicy$s, buildNetworkSnapshotCachePolicy$s);
|
|
2040
2040
|
};
|
|
2041
2041
|
|
|
2042
|
-
function select$
|
|
2043
|
-
return select$
|
|
2042
|
+
function select$1x(luvio, params) {
|
|
2043
|
+
return select$1A();
|
|
2044
2044
|
}
|
|
2045
|
-
function getResponseCacheKeys$
|
|
2046
|
-
getTypeCacheKeys$
|
|
2045
|
+
function getResponseCacheKeys$_(storeKeyMap, luvio, resourceParams, response) {
|
|
2046
|
+
getTypeCacheKeys$I(storeKeyMap, luvio, response);
|
|
2047
2047
|
}
|
|
2048
|
-
function ingestSuccess$
|
|
2048
|
+
function ingestSuccess$S(luvio, resourceParams, response) {
|
|
2049
2049
|
const { body } = response;
|
|
2050
2050
|
const key = keyBuilderFromType$n(luvio, body);
|
|
2051
|
-
luvio.storeIngest(key, ingest$
|
|
2051
|
+
luvio.storeIngest(key, ingest$I, body);
|
|
2052
2052
|
const snapshot = luvio.storeLookup({
|
|
2053
2053
|
recordId: key,
|
|
2054
|
-
node: select$
|
|
2054
|
+
node: select$1x(),
|
|
2055
2055
|
variables: {},
|
|
2056
2056
|
});
|
|
2057
2057
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2062,7 +2062,7 @@ function ingestSuccess$R(luvio, resourceParams, response) {
|
|
|
2062
2062
|
deepFreeze(snapshot.data);
|
|
2063
2063
|
return snapshot;
|
|
2064
2064
|
}
|
|
2065
|
-
function createResourceRequest$
|
|
2065
|
+
function createResourceRequest$_(config) {
|
|
2066
2066
|
const headers = {};
|
|
2067
2067
|
return {
|
|
2068
2068
|
baseUri: '/services/data/v68.0',
|
|
@@ -2076,7 +2076,7 @@ function createResourceRequest$Z(config) {
|
|
|
2076
2076
|
};
|
|
2077
2077
|
}
|
|
2078
2078
|
|
|
2079
|
-
const adapterName$
|
|
2079
|
+
const adapterName$_ = 'createAnnotation';
|
|
2080
2080
|
const createAnnotation_ConfigPropertyMetadata = [
|
|
2081
2081
|
generateParamConfigMetadata('anchor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2082
2082
|
generateParamConfigMetadata('annotationTool', true, 2 /* Body */, 0 /* String */),
|
|
@@ -2085,41 +2085,41 @@ const createAnnotation_ConfigPropertyMetadata = [
|
|
|
2085
2085
|
generateParamConfigMetadata('collaborationObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2086
2086
|
generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
|
|
2087
2087
|
];
|
|
2088
|
-
const createAnnotation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2089
|
-
const createResourceParams$
|
|
2090
|
-
function typeCheckConfig$
|
|
2088
|
+
const createAnnotation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$_, createAnnotation_ConfigPropertyMetadata);
|
|
2089
|
+
const createResourceParams$_ = /*#__PURE__*/ createResourceParams$11(createAnnotation_ConfigPropertyMetadata);
|
|
2090
|
+
function typeCheckConfig$_(untrustedConfig) {
|
|
2091
2091
|
const config = {};
|
|
2092
|
-
typeCheckConfig$
|
|
2092
|
+
typeCheckConfig$11(untrustedConfig, config, createAnnotation_ConfigPropertyMetadata);
|
|
2093
2093
|
const untrustedConfig_anchor = untrustedConfig.anchor;
|
|
2094
2094
|
config.anchor = untrustedConfig_anchor;
|
|
2095
2095
|
const untrustedConfig_collaborationObject = untrustedConfig.collaborationObject;
|
|
2096
2096
|
config.collaborationObject = untrustedConfig_collaborationObject;
|
|
2097
2097
|
return config;
|
|
2098
2098
|
}
|
|
2099
|
-
function validateAdapterConfig$
|
|
2099
|
+
function validateAdapterConfig$_(untrustedConfig, configPropertyNames) {
|
|
2100
2100
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2101
2101
|
return null;
|
|
2102
2102
|
}
|
|
2103
2103
|
if (process.env.NODE_ENV !== 'production') {
|
|
2104
2104
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2105
2105
|
}
|
|
2106
|
-
const config = typeCheckConfig$
|
|
2106
|
+
const config = typeCheckConfig$_(untrustedConfig);
|
|
2107
2107
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2108
2108
|
return null;
|
|
2109
2109
|
}
|
|
2110
2110
|
return config;
|
|
2111
2111
|
}
|
|
2112
|
-
function buildNetworkSnapshot$
|
|
2113
|
-
const resourceParams = createResourceParams$
|
|
2114
|
-
const request = createResourceRequest$
|
|
2112
|
+
function buildNetworkSnapshot$_(luvio, config, options) {
|
|
2113
|
+
const resourceParams = createResourceParams$_(config);
|
|
2114
|
+
const request = createResourceRequest$_(resourceParams);
|
|
2115
2115
|
return luvio.dispatchResourceRequest(request, options)
|
|
2116
2116
|
.then((response) => {
|
|
2117
2117
|
return luvio.handleSuccessResponse(() => {
|
|
2118
|
-
const snapshot = ingestSuccess$
|
|
2118
|
+
const snapshot = ingestSuccess$S(luvio, resourceParams, response);
|
|
2119
2119
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2120
2120
|
}, () => {
|
|
2121
2121
|
const cache = new StoreKeyMap();
|
|
2122
|
-
getResponseCacheKeys$
|
|
2122
|
+
getResponseCacheKeys$_(cache, luvio, resourceParams, response.body);
|
|
2123
2123
|
return cache;
|
|
2124
2124
|
});
|
|
2125
2125
|
}, (response) => {
|
|
@@ -2129,18 +2129,18 @@ function buildNetworkSnapshot$Z(luvio, config, options) {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
const createAnnotationAdapterFactory = (luvio) => {
|
|
2131
2131
|
return function createAnnotation(untrustedConfig) {
|
|
2132
|
-
const config = validateAdapterConfig$
|
|
2132
|
+
const config = validateAdapterConfig$_(untrustedConfig, createAnnotation_ConfigPropertyNames);
|
|
2133
2133
|
// Invalid or incomplete config
|
|
2134
2134
|
if (config === null) {
|
|
2135
2135
|
throw new Error('Invalid config for "createAnnotation"');
|
|
2136
2136
|
}
|
|
2137
|
-
return buildNetworkSnapshot$
|
|
2137
|
+
return buildNetworkSnapshot$_(luvio, config);
|
|
2138
2138
|
};
|
|
2139
2139
|
};
|
|
2140
2140
|
|
|
2141
|
-
const TTL$
|
|
2142
|
-
const VERSION$
|
|
2143
|
-
function validate$
|
|
2141
|
+
const TTL$s = 5000;
|
|
2142
|
+
const VERSION$G = "505a83d97fefa7ce68ec6512264b0543";
|
|
2143
|
+
function validate$1k(obj, path = 'SlackAppInfoRepresentation') {
|
|
2144
2144
|
const v_error = (() => {
|
|
2145
2145
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2146
2146
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2180,14 +2180,14 @@ function validate$1j(obj, path = 'SlackAppInfoRepresentation') {
|
|
|
2180
2180
|
})();
|
|
2181
2181
|
return v_error === undefined ? null : v_error;
|
|
2182
2182
|
}
|
|
2183
|
-
const RepresentationType$
|
|
2184
|
-
function normalize$
|
|
2183
|
+
const RepresentationType$I = 'SlackAppInfoRepresentation';
|
|
2184
|
+
function normalize$G(input, existing, path, luvio, store, timestamp) {
|
|
2185
2185
|
return input;
|
|
2186
2186
|
}
|
|
2187
|
-
const select$
|
|
2187
|
+
const select$1w = function SlackAppInfoRepresentationSelect() {
|
|
2188
2188
|
return {
|
|
2189
2189
|
kind: 'Fragment',
|
|
2190
|
-
version: VERSION$
|
|
2190
|
+
version: VERSION$G,
|
|
2191
2191
|
private: [],
|
|
2192
2192
|
selections: [
|
|
2193
2193
|
{
|
|
@@ -2214,7 +2214,7 @@ const select$1u = function SlackAppInfoRepresentationSelect() {
|
|
|
2214
2214
|
]
|
|
2215
2215
|
};
|
|
2216
2216
|
};
|
|
2217
|
-
function equals$
|
|
2217
|
+
function equals$G(existing, incoming) {
|
|
2218
2218
|
const existing_isSlackAppAuthorized = existing.isSlackAppAuthorized;
|
|
2219
2219
|
const incoming_isSlackAppAuthorized = incoming.isSlackAppAuthorized;
|
|
2220
2220
|
if (!(existing_isSlackAppAuthorized === incoming_isSlackAppAuthorized)) {
|
|
@@ -2247,44 +2247,44 @@ function equals$F(existing, incoming) {
|
|
|
2247
2247
|
}
|
|
2248
2248
|
return true;
|
|
2249
2249
|
}
|
|
2250
|
-
const ingest$
|
|
2250
|
+
const ingest$G = function SlackAppInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2251
2251
|
if (process.env.NODE_ENV !== 'production') {
|
|
2252
|
-
const validateError = validate$
|
|
2252
|
+
const validateError = validate$1k(input);
|
|
2253
2253
|
if (validateError !== null) {
|
|
2254
2254
|
throw validateError;
|
|
2255
2255
|
}
|
|
2256
2256
|
}
|
|
2257
2257
|
const key = path.fullPath;
|
|
2258
|
-
const ttlToUse = TTL$
|
|
2259
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2258
|
+
const ttlToUse = TTL$s;
|
|
2259
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$G, "UnifiedAnalytics", VERSION$G, RepresentationType$I, equals$G);
|
|
2260
2260
|
return createLink(key);
|
|
2261
2261
|
};
|
|
2262
|
-
function getTypeCacheKeys$
|
|
2262
|
+
function getTypeCacheKeys$G(rootKeySet, luvio, input, fullPathFactory) {
|
|
2263
2263
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2264
2264
|
const rootKey = fullPathFactory();
|
|
2265
2265
|
rootKeySet.set(rootKey, {
|
|
2266
2266
|
namespace: keyPrefix,
|
|
2267
|
-
representationName: RepresentationType$
|
|
2267
|
+
representationName: RepresentationType$I,
|
|
2268
2268
|
mergeable: false
|
|
2269
2269
|
});
|
|
2270
2270
|
}
|
|
2271
2271
|
|
|
2272
|
-
function select$
|
|
2273
|
-
return select$
|
|
2272
|
+
function select$1v(luvio, params) {
|
|
2273
|
+
return select$1w();
|
|
2274
2274
|
}
|
|
2275
|
-
function keyBuilder$
|
|
2275
|
+
function keyBuilder$1o(luvio, params) {
|
|
2276
2276
|
return keyPrefix + '::SlackAppInfoRepresentation:(' + ')';
|
|
2277
2277
|
}
|
|
2278
|
-
function getResponseCacheKeys$
|
|
2279
|
-
getTypeCacheKeys$
|
|
2278
|
+
function getResponseCacheKeys$Z(storeKeyMap, luvio, resourceParams, response) {
|
|
2279
|
+
getTypeCacheKeys$G(storeKeyMap, luvio, response, () => keyBuilder$1o());
|
|
2280
2280
|
}
|
|
2281
|
-
function ingestSuccess$
|
|
2281
|
+
function ingestSuccess$R(luvio, resourceParams, response, snapshotRefresh) {
|
|
2282
2282
|
const { body } = response;
|
|
2283
|
-
const key = keyBuilder$
|
|
2284
|
-
luvio.storeIngest(key, ingest$
|
|
2283
|
+
const key = keyBuilder$1o();
|
|
2284
|
+
luvio.storeIngest(key, ingest$G, body);
|
|
2285
2285
|
const snapshot = luvio.storeLookup({
|
|
2286
2286
|
recordId: key,
|
|
2287
|
-
node: select$
|
|
2287
|
+
node: select$1v(),
|
|
2288
2288
|
variables: {},
|
|
2289
2289
|
}, snapshotRefresh);
|
|
2290
2290
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2295,19 +2295,19 @@ function ingestSuccess$Q(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2295
2295
|
deepFreeze(snapshot.data);
|
|
2296
2296
|
return snapshot;
|
|
2297
2297
|
}
|
|
2298
|
-
function ingestError$
|
|
2299
|
-
const key = keyBuilder$
|
|
2298
|
+
function ingestError$r(luvio, params, error, snapshotRefresh) {
|
|
2299
|
+
const key = keyBuilder$1o();
|
|
2300
2300
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2301
2301
|
const storeMetadataParams = {
|
|
2302
|
-
ttl: TTL$
|
|
2302
|
+
ttl: TTL$s,
|
|
2303
2303
|
namespace: keyPrefix,
|
|
2304
|
-
version: VERSION$
|
|
2305
|
-
representationName: RepresentationType$
|
|
2304
|
+
version: VERSION$G,
|
|
2305
|
+
representationName: RepresentationType$I
|
|
2306
2306
|
};
|
|
2307
2307
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2308
2308
|
return errorSnapshot;
|
|
2309
2309
|
}
|
|
2310
|
-
function createResourceRequest$
|
|
2310
|
+
function createResourceRequest$Z(config) {
|
|
2311
2311
|
const headers = {};
|
|
2312
2312
|
return {
|
|
2313
2313
|
baseUri: '/services/data/v68.0',
|
|
@@ -2321,90 +2321,90 @@ function createResourceRequest$Y(config) {
|
|
|
2321
2321
|
};
|
|
2322
2322
|
}
|
|
2323
2323
|
|
|
2324
|
-
const adapterName$
|
|
2324
|
+
const adapterName$Z = 'getSlackAppInfo';
|
|
2325
2325
|
const getSlackAppInfo_ConfigPropertyMetadata = [];
|
|
2326
|
-
const getSlackAppInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2327
|
-
const createResourceParams$
|
|
2328
|
-
function keyBuilder$
|
|
2329
|
-
createResourceParams$
|
|
2330
|
-
return keyBuilder$
|
|
2326
|
+
const getSlackAppInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Z, getSlackAppInfo_ConfigPropertyMetadata);
|
|
2327
|
+
const createResourceParams$Z = /*#__PURE__*/ createResourceParams$11(getSlackAppInfo_ConfigPropertyMetadata);
|
|
2328
|
+
function keyBuilder$1n(luvio, config) {
|
|
2329
|
+
createResourceParams$Z(config);
|
|
2330
|
+
return keyBuilder$1o();
|
|
2331
2331
|
}
|
|
2332
|
-
function typeCheckConfig$
|
|
2332
|
+
function typeCheckConfig$Z(untrustedConfig) {
|
|
2333
2333
|
const config = {};
|
|
2334
2334
|
return config;
|
|
2335
2335
|
}
|
|
2336
|
-
function validateAdapterConfig$
|
|
2336
|
+
function validateAdapterConfig$Z(untrustedConfig, configPropertyNames) {
|
|
2337
2337
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2338
2338
|
return null;
|
|
2339
2339
|
}
|
|
2340
2340
|
if (process.env.NODE_ENV !== 'production') {
|
|
2341
2341
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2342
2342
|
}
|
|
2343
|
-
const config = typeCheckConfig$
|
|
2343
|
+
const config = typeCheckConfig$Z();
|
|
2344
2344
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2345
2345
|
return null;
|
|
2346
2346
|
}
|
|
2347
2347
|
return config;
|
|
2348
2348
|
}
|
|
2349
|
-
function adapterFragment$
|
|
2350
|
-
createResourceParams$
|
|
2351
|
-
return select$
|
|
2349
|
+
function adapterFragment$r(luvio, config) {
|
|
2350
|
+
createResourceParams$Z(config);
|
|
2351
|
+
return select$1v();
|
|
2352
2352
|
}
|
|
2353
|
-
function onFetchResponseSuccess$
|
|
2354
|
-
const snapshot = ingestSuccess$
|
|
2353
|
+
function onFetchResponseSuccess$r(luvio, config, resourceParams, response) {
|
|
2354
|
+
const snapshot = ingestSuccess$R(luvio, resourceParams, response, {
|
|
2355
2355
|
config,
|
|
2356
|
-
resolve: () => buildNetworkSnapshot$
|
|
2356
|
+
resolve: () => buildNetworkSnapshot$Z(luvio, config, snapshotRefreshOptions)
|
|
2357
2357
|
});
|
|
2358
2358
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2359
2359
|
}
|
|
2360
|
-
function onFetchResponseError$
|
|
2361
|
-
const snapshot = ingestError$
|
|
2360
|
+
function onFetchResponseError$r(luvio, config, resourceParams, response) {
|
|
2361
|
+
const snapshot = ingestError$r(luvio, resourceParams, response, {
|
|
2362
2362
|
config,
|
|
2363
|
-
resolve: () => buildNetworkSnapshot$
|
|
2363
|
+
resolve: () => buildNetworkSnapshot$Z(luvio, config, snapshotRefreshOptions)
|
|
2364
2364
|
});
|
|
2365
2365
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2366
2366
|
}
|
|
2367
|
-
function buildNetworkSnapshot$
|
|
2368
|
-
const resourceParams = createResourceParams$
|
|
2369
|
-
const request = createResourceRequest$
|
|
2367
|
+
function buildNetworkSnapshot$Z(luvio, config, options) {
|
|
2368
|
+
const resourceParams = createResourceParams$Z(config);
|
|
2369
|
+
const request = createResourceRequest$Z();
|
|
2370
2370
|
return luvio.dispatchResourceRequest(request, options)
|
|
2371
2371
|
.then((response) => {
|
|
2372
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2372
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$r(luvio, config, resourceParams, response), () => {
|
|
2373
2373
|
const cache = new StoreKeyMap();
|
|
2374
|
-
getResponseCacheKeys$
|
|
2374
|
+
getResponseCacheKeys$Z(cache, luvio, resourceParams, response.body);
|
|
2375
2375
|
return cache;
|
|
2376
2376
|
});
|
|
2377
2377
|
}, (response) => {
|
|
2378
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2378
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$r(luvio, config, resourceParams, response));
|
|
2379
2379
|
});
|
|
2380
2380
|
}
|
|
2381
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2382
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2381
|
+
function buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext) {
|
|
2382
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$Z, undefined, false);
|
|
2383
2383
|
}
|
|
2384
|
-
function buildCachedSnapshotCachePolicy$
|
|
2384
|
+
function buildCachedSnapshotCachePolicy$r(context, storeLookup) {
|
|
2385
2385
|
const { luvio, config } = context;
|
|
2386
2386
|
const selector = {
|
|
2387
|
-
recordId: keyBuilder$
|
|
2388
|
-
node: adapterFragment$
|
|
2387
|
+
recordId: keyBuilder$1n(luvio, config),
|
|
2388
|
+
node: adapterFragment$r(luvio, config),
|
|
2389
2389
|
variables: {},
|
|
2390
2390
|
};
|
|
2391
2391
|
const cacheSnapshot = storeLookup(selector, {
|
|
2392
2392
|
config,
|
|
2393
|
-
resolve: () => buildNetworkSnapshot$
|
|
2393
|
+
resolve: () => buildNetworkSnapshot$Z(luvio, config, snapshotRefreshOptions)
|
|
2394
2394
|
});
|
|
2395
2395
|
return cacheSnapshot;
|
|
2396
2396
|
}
|
|
2397
2397
|
const getSlackAppInfoAdapterFactory = (luvio) => function UnifiedAnalytics__getSlackAppInfo(untrustedConfig, requestContext) {
|
|
2398
|
-
const config = validateAdapterConfig$
|
|
2398
|
+
const config = validateAdapterConfig$Z(untrustedConfig, getSlackAppInfo_ConfigPropertyNames);
|
|
2399
2399
|
// Invalid or incomplete config
|
|
2400
2400
|
if (config === null) {
|
|
2401
2401
|
return null;
|
|
2402
2402
|
}
|
|
2403
2403
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2404
|
-
buildCachedSnapshotCachePolicy$
|
|
2404
|
+
buildCachedSnapshotCachePolicy$r, buildNetworkSnapshotCachePolicy$r);
|
|
2405
2405
|
};
|
|
2406
2406
|
|
|
2407
|
-
function validate$
|
|
2407
|
+
function validate$1j(obj, path = 'BaseAnalyticsRepresentation') {
|
|
2408
2408
|
const v_error = (() => {
|
|
2409
2409
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2410
2410
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2439,8 +2439,8 @@ function validate$1i(obj, path = 'BaseAnalyticsRepresentation') {
|
|
|
2439
2439
|
return v_error === undefined ? null : v_error;
|
|
2440
2440
|
}
|
|
2441
2441
|
|
|
2442
|
-
function validate$
|
|
2443
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
2442
|
+
function validate$1i(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentation') {
|
|
2443
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$1j(obj, path);
|
|
2444
2444
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2445
2445
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2446
2446
|
}
|
|
@@ -2452,8 +2452,8 @@ function validate$1h(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresenta
|
|
|
2452
2452
|
return v_error === undefined ? null : v_error;
|
|
2453
2453
|
}
|
|
2454
2454
|
|
|
2455
|
-
function validate$
|
|
2456
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
2455
|
+
function validate$1h(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation') {
|
|
2456
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$1j(obj, path);
|
|
2457
2457
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2458
2458
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2459
2459
|
}
|
|
@@ -2522,7 +2522,7 @@ function validate$1g(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation'
|
|
|
2522
2522
|
const path_workspace = path + '.workspace';
|
|
2523
2523
|
let obj_workspace_union0 = null;
|
|
2524
2524
|
const obj_workspace_union0_error = (() => {
|
|
2525
|
-
const referencepath_workspaceValidationError = validate$
|
|
2525
|
+
const referencepath_workspaceValidationError = validate$1i(obj_workspace, path_workspace);
|
|
2526
2526
|
if (referencepath_workspaceValidationError !== null) {
|
|
2527
2527
|
let message = 'Object doesn\'t match AnalyticsAssetsQueryResultsWorkspaceRepresentation (at "' + path_workspace + '")\n';
|
|
2528
2528
|
message += referencepath_workspaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2552,9 +2552,9 @@ function validate$1g(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation'
|
|
|
2552
2552
|
return v_error === undefined ? null : v_error;
|
|
2553
2553
|
}
|
|
2554
2554
|
|
|
2555
|
-
const TTL$
|
|
2556
|
-
const VERSION$
|
|
2557
|
-
function validate$
|
|
2555
|
+
const TTL$r = 500;
|
|
2556
|
+
const VERSION$F = "ed60d9cca169a3e5ed897c67d11a23db";
|
|
2557
|
+
function validate$1g(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
2558
2558
|
const v_error = (() => {
|
|
2559
2559
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2560
2560
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2567,7 +2567,7 @@ function validate$1f(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
|
2567
2567
|
for (let i = 0; i < obj_items.length; i++) {
|
|
2568
2568
|
const obj_items_item = obj_items[i];
|
|
2569
2569
|
const path_items_item = path_items + '[' + i + ']';
|
|
2570
|
-
const referencepath_items_itemValidationError = validate$
|
|
2570
|
+
const referencepath_items_itemValidationError = validate$1h(obj_items_item, path_items_item);
|
|
2571
2571
|
if (referencepath_items_itemValidationError !== null) {
|
|
2572
2572
|
let message = 'Object doesn\'t match AnalyticsAssetsQueryResultsItemRepresentation (at "' + path_items_item + '")\n';
|
|
2573
2573
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2592,68 +2592,68 @@ function validate$1f(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
|
2592
2592
|
})();
|
|
2593
2593
|
return v_error === undefined ? null : v_error;
|
|
2594
2594
|
}
|
|
2595
|
-
const RepresentationType$
|
|
2596
|
-
function keyBuilder$
|
|
2597
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2595
|
+
const RepresentationType$H = 'AnalyticsAssetsQueryResultsRepresentation';
|
|
2596
|
+
function keyBuilder$1m(luvio, config) {
|
|
2597
|
+
return keyPrefix + '::' + RepresentationType$H + ':' + config.searchId;
|
|
2598
2598
|
}
|
|
2599
2599
|
function keyBuilderFromType$m(luvio, object) {
|
|
2600
2600
|
const keyParams = {
|
|
2601
2601
|
searchId: object.queryKey
|
|
2602
2602
|
};
|
|
2603
|
-
return keyBuilder$
|
|
2603
|
+
return keyBuilder$1m(luvio, keyParams);
|
|
2604
2604
|
}
|
|
2605
|
-
function normalize$
|
|
2605
|
+
function normalize$F(input, existing, path, luvio, store, timestamp) {
|
|
2606
2606
|
return input;
|
|
2607
2607
|
}
|
|
2608
|
-
const select$
|
|
2608
|
+
const select$1u = function AnalyticsAssetsQueryResultsRepresentationSelect() {
|
|
2609
2609
|
return {
|
|
2610
2610
|
kind: 'Fragment',
|
|
2611
|
-
version: VERSION$
|
|
2611
|
+
version: VERSION$F,
|
|
2612
2612
|
private: [],
|
|
2613
2613
|
opaque: true
|
|
2614
2614
|
};
|
|
2615
2615
|
};
|
|
2616
|
-
function equals$
|
|
2616
|
+
function equals$F(existing, incoming) {
|
|
2617
2617
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2618
2618
|
return false;
|
|
2619
2619
|
}
|
|
2620
2620
|
return true;
|
|
2621
2621
|
}
|
|
2622
|
-
const ingest$
|
|
2622
|
+
const ingest$F = function AnalyticsAssetsQueryResultsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2623
2623
|
if (process.env.NODE_ENV !== 'production') {
|
|
2624
|
-
const validateError = validate$
|
|
2624
|
+
const validateError = validate$1g(input);
|
|
2625
2625
|
if (validateError !== null) {
|
|
2626
2626
|
throw validateError;
|
|
2627
2627
|
}
|
|
2628
2628
|
}
|
|
2629
2629
|
const key = keyBuilderFromType$m(luvio, input);
|
|
2630
|
-
const ttlToUse = TTL$
|
|
2631
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2630
|
+
const ttlToUse = TTL$r;
|
|
2631
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$F, "UnifiedAnalytics", VERSION$F, RepresentationType$H, equals$F);
|
|
2632
2632
|
return createLink(key);
|
|
2633
2633
|
};
|
|
2634
|
-
function getTypeCacheKeys$
|
|
2634
|
+
function getTypeCacheKeys$F(rootKeySet, luvio, input, fullPathFactory) {
|
|
2635
2635
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2636
2636
|
const rootKey = keyBuilderFromType$m(luvio, input);
|
|
2637
2637
|
rootKeySet.set(rootKey, {
|
|
2638
2638
|
namespace: keyPrefix,
|
|
2639
|
-
representationName: RepresentationType$
|
|
2639
|
+
representationName: RepresentationType$H,
|
|
2640
2640
|
mergeable: false
|
|
2641
2641
|
});
|
|
2642
2642
|
}
|
|
2643
2643
|
|
|
2644
|
-
function select$
|
|
2645
|
-
return select$
|
|
2644
|
+
function select$1t(luvio, params) {
|
|
2645
|
+
return select$1u();
|
|
2646
2646
|
}
|
|
2647
|
-
function getResponseCacheKeys$
|
|
2648
|
-
getTypeCacheKeys$
|
|
2647
|
+
function getResponseCacheKeys$Y(storeKeyMap, luvio, resourceParams, response) {
|
|
2648
|
+
getTypeCacheKeys$F(storeKeyMap, luvio, response);
|
|
2649
2649
|
}
|
|
2650
|
-
function ingestSuccess$
|
|
2650
|
+
function ingestSuccess$Q(luvio, resourceParams, response) {
|
|
2651
2651
|
const { body } = response;
|
|
2652
2652
|
const key = keyBuilderFromType$m(luvio, body);
|
|
2653
|
-
luvio.storeIngest(key, ingest$
|
|
2653
|
+
luvio.storeIngest(key, ingest$F, body);
|
|
2654
2654
|
const snapshot = luvio.storeLookup({
|
|
2655
2655
|
recordId: key,
|
|
2656
|
-
node: select$
|
|
2656
|
+
node: select$1t(),
|
|
2657
2657
|
variables: {},
|
|
2658
2658
|
});
|
|
2659
2659
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2664,7 +2664,7 @@ function ingestSuccess$P(luvio, resourceParams, response) {
|
|
|
2664
2664
|
deepFreeze(snapshot.data);
|
|
2665
2665
|
return snapshot;
|
|
2666
2666
|
}
|
|
2667
|
-
function createResourceRequest$
|
|
2667
|
+
function createResourceRequest$Y(config) {
|
|
2668
2668
|
const headers = {};
|
|
2669
2669
|
return {
|
|
2670
2670
|
baseUri: '/services/data/v68.0',
|
|
@@ -2678,7 +2678,7 @@ function createResourceRequest$X(config) {
|
|
|
2678
2678
|
};
|
|
2679
2679
|
}
|
|
2680
2680
|
|
|
2681
|
-
const adapterName$
|
|
2681
|
+
const adapterName$Y = 'queryAssets';
|
|
2682
2682
|
const queryAssets_ConfigPropertyMetadata = [
|
|
2683
2683
|
generateParamConfigMetadata('filters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2684
2684
|
generateParamConfigMetadata('limit', false, 2 /* Body */, 3 /* Integer */),
|
|
@@ -2687,11 +2687,11 @@ const queryAssets_ConfigPropertyMetadata = [
|
|
|
2687
2687
|
generateParamConfigMetadata('searchTerm', true, 2 /* Body */, 0 /* String */),
|
|
2688
2688
|
generateParamConfigMetadata('sortDirection', false, 2 /* Body */, 0 /* String */),
|
|
2689
2689
|
];
|
|
2690
|
-
const queryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2691
|
-
const createResourceParams$
|
|
2692
|
-
function typeCheckConfig$
|
|
2690
|
+
const queryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Y, queryAssets_ConfigPropertyMetadata);
|
|
2691
|
+
const createResourceParams$Y = /*#__PURE__*/ createResourceParams$11(queryAssets_ConfigPropertyMetadata);
|
|
2692
|
+
function typeCheckConfig$Y(untrustedConfig) {
|
|
2693
2693
|
const config = {};
|
|
2694
|
-
typeCheckConfig$
|
|
2694
|
+
typeCheckConfig$11(untrustedConfig, config, queryAssets_ConfigPropertyMetadata);
|
|
2695
2695
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
2696
2696
|
if (untrustedIsObject(untrustedConfig_filters)) {
|
|
2697
2697
|
const untrustedConfig_filters_object = {};
|
|
@@ -2709,30 +2709,30 @@ function typeCheckConfig$X(untrustedConfig) {
|
|
|
2709
2709
|
}
|
|
2710
2710
|
return config;
|
|
2711
2711
|
}
|
|
2712
|
-
function validateAdapterConfig$
|
|
2712
|
+
function validateAdapterConfig$Y(untrustedConfig, configPropertyNames) {
|
|
2713
2713
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2714
2714
|
return null;
|
|
2715
2715
|
}
|
|
2716
2716
|
if (process.env.NODE_ENV !== 'production') {
|
|
2717
2717
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2718
2718
|
}
|
|
2719
|
-
const config = typeCheckConfig$
|
|
2719
|
+
const config = typeCheckConfig$Y(untrustedConfig);
|
|
2720
2720
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2721
2721
|
return null;
|
|
2722
2722
|
}
|
|
2723
2723
|
return config;
|
|
2724
2724
|
}
|
|
2725
|
-
function buildNetworkSnapshot$
|
|
2726
|
-
const resourceParams = createResourceParams$
|
|
2727
|
-
const request = createResourceRequest$
|
|
2725
|
+
function buildNetworkSnapshot$Y(luvio, config, options) {
|
|
2726
|
+
const resourceParams = createResourceParams$Y(config);
|
|
2727
|
+
const request = createResourceRequest$Y(resourceParams);
|
|
2728
2728
|
return luvio.dispatchResourceRequest(request, options)
|
|
2729
2729
|
.then((response) => {
|
|
2730
2730
|
return luvio.handleSuccessResponse(() => {
|
|
2731
|
-
const snapshot = ingestSuccess$
|
|
2731
|
+
const snapshot = ingestSuccess$Q(luvio, resourceParams, response);
|
|
2732
2732
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2733
2733
|
}, () => {
|
|
2734
2734
|
const cache = new StoreKeyMap();
|
|
2735
|
-
getResponseCacheKeys$
|
|
2735
|
+
getResponseCacheKeys$Y(cache, luvio, resourceParams, response.body);
|
|
2736
2736
|
return cache;
|
|
2737
2737
|
});
|
|
2738
2738
|
}, (response) => {
|
|
@@ -2742,17 +2742,17 @@ function buildNetworkSnapshot$X(luvio, config, options) {
|
|
|
2742
2742
|
}
|
|
2743
2743
|
const queryAssetsAdapterFactory = (luvio) => {
|
|
2744
2744
|
return function queryAssets(untrustedConfig) {
|
|
2745
|
-
const config = validateAdapterConfig$
|
|
2745
|
+
const config = validateAdapterConfig$Y(untrustedConfig, queryAssets_ConfigPropertyNames);
|
|
2746
2746
|
// Invalid or incomplete config
|
|
2747
2747
|
if (config === null) {
|
|
2748
2748
|
throw new Error('Invalid config for "queryAssets"');
|
|
2749
2749
|
}
|
|
2750
|
-
return buildNetworkSnapshot$
|
|
2750
|
+
return buildNetworkSnapshot$Y(luvio, config);
|
|
2751
2751
|
};
|
|
2752
2752
|
};
|
|
2753
2753
|
|
|
2754
|
-
const VERSION$
|
|
2755
|
-
function validate$
|
|
2754
|
+
const VERSION$E = "581903d233184a85957cb2aa527b0d33";
|
|
2755
|
+
function validate$1f(obj, path = 'DashboardRepresentation') {
|
|
2756
2756
|
const v_error = (() => {
|
|
2757
2757
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2758
2758
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2892,57 +2892,57 @@ function validate$1e(obj, path = 'DashboardRepresentation') {
|
|
|
2892
2892
|
})();
|
|
2893
2893
|
return v_error === undefined ? null : v_error;
|
|
2894
2894
|
}
|
|
2895
|
-
const RepresentationType$
|
|
2896
|
-
function keyBuilder$
|
|
2897
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2895
|
+
const RepresentationType$G = 'DashboardRepresentation';
|
|
2896
|
+
function keyBuilder$1l(luvio, config) {
|
|
2897
|
+
return keyPrefix + '::' + RepresentationType$G + ':' + config.name;
|
|
2898
2898
|
}
|
|
2899
2899
|
function keyBuilderFromType$l(luvio, object) {
|
|
2900
2900
|
const keyParams = {
|
|
2901
2901
|
name: object.name
|
|
2902
2902
|
};
|
|
2903
|
-
return keyBuilder$
|
|
2903
|
+
return keyBuilder$1l(luvio, keyParams);
|
|
2904
2904
|
}
|
|
2905
|
-
function normalize$
|
|
2905
|
+
function normalize$E(input, existing, path, luvio, store, timestamp) {
|
|
2906
2906
|
return input;
|
|
2907
2907
|
}
|
|
2908
|
-
const select$
|
|
2908
|
+
const select$1s = function DashboardRepresentationSelect() {
|
|
2909
2909
|
return {
|
|
2910
2910
|
kind: 'Fragment',
|
|
2911
|
-
version: VERSION$
|
|
2911
|
+
version: VERSION$E,
|
|
2912
2912
|
private: [],
|
|
2913
2913
|
opaque: true
|
|
2914
2914
|
};
|
|
2915
2915
|
};
|
|
2916
|
-
function equals$
|
|
2916
|
+
function equals$E(existing, incoming) {
|
|
2917
2917
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2918
2918
|
return false;
|
|
2919
2919
|
}
|
|
2920
2920
|
return true;
|
|
2921
2921
|
}
|
|
2922
|
-
const ingest$
|
|
2922
|
+
const ingest$E = function DashboardRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2923
2923
|
if (process.env.NODE_ENV !== 'production') {
|
|
2924
|
-
const validateError = validate$
|
|
2924
|
+
const validateError = validate$1f(input);
|
|
2925
2925
|
if (validateError !== null) {
|
|
2926
2926
|
throw validateError;
|
|
2927
2927
|
}
|
|
2928
2928
|
}
|
|
2929
2929
|
const key = keyBuilderFromType$l(luvio, input);
|
|
2930
2930
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2931
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2931
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$E, "UnifiedAnalytics", VERSION$E, RepresentationType$G, equals$E);
|
|
2932
2932
|
return createLink(key);
|
|
2933
2933
|
};
|
|
2934
|
-
function getTypeCacheKeys$
|
|
2934
|
+
function getTypeCacheKeys$E(rootKeySet, luvio, input, fullPathFactory) {
|
|
2935
2935
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2936
2936
|
const rootKey = keyBuilderFromType$l(luvio, input);
|
|
2937
2937
|
rootKeySet.set(rootKey, {
|
|
2938
2938
|
namespace: keyPrefix,
|
|
2939
|
-
representationName: RepresentationType$
|
|
2939
|
+
representationName: RepresentationType$G,
|
|
2940
2940
|
mergeable: false
|
|
2941
2941
|
});
|
|
2942
2942
|
}
|
|
2943
2943
|
|
|
2944
|
-
const VERSION$
|
|
2945
|
-
function validate$
|
|
2944
|
+
const VERSION$D = "962823130e6a9315240ef0e0f0c5f757";
|
|
2945
|
+
function validate$1e(obj, path = 'DashboardCollectionRepresentation') {
|
|
2946
2946
|
const v_error = (() => {
|
|
2947
2947
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2948
2948
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2962,14 +2962,14 @@ function validate$1d(obj, path = 'DashboardCollectionRepresentation') {
|
|
|
2962
2962
|
})();
|
|
2963
2963
|
return v_error === undefined ? null : v_error;
|
|
2964
2964
|
}
|
|
2965
|
-
const RepresentationType$
|
|
2966
|
-
function normalize$
|
|
2965
|
+
const RepresentationType$F = 'DashboardCollectionRepresentation';
|
|
2966
|
+
function normalize$D(input, existing, path, luvio, store, timestamp) {
|
|
2967
2967
|
const input_dashboards = input.dashboards;
|
|
2968
2968
|
const input_dashboards_id = path.fullPath + '__dashboards';
|
|
2969
2969
|
for (let i = 0; i < input_dashboards.length; i++) {
|
|
2970
2970
|
const input_dashboards_item = input_dashboards[i];
|
|
2971
2971
|
let input_dashboards_item_id = input_dashboards_id + '__' + i;
|
|
2972
|
-
input_dashboards[i] = ingest$
|
|
2972
|
+
input_dashboards[i] = ingest$E(input_dashboards_item, {
|
|
2973
2973
|
fullPath: input_dashboards_item_id,
|
|
2974
2974
|
propertyName: i,
|
|
2975
2975
|
parent: {
|
|
@@ -2982,22 +2982,22 @@ function normalize$C(input, existing, path, luvio, store, timestamp) {
|
|
|
2982
2982
|
}
|
|
2983
2983
|
return input;
|
|
2984
2984
|
}
|
|
2985
|
-
const select$
|
|
2985
|
+
const select$1r = function DashboardCollectionRepresentationSelect() {
|
|
2986
2986
|
return {
|
|
2987
2987
|
kind: 'Fragment',
|
|
2988
|
-
version: VERSION$
|
|
2988
|
+
version: VERSION$D,
|
|
2989
2989
|
private: [],
|
|
2990
2990
|
selections: [
|
|
2991
2991
|
{
|
|
2992
2992
|
name: 'dashboards',
|
|
2993
2993
|
kind: 'Link',
|
|
2994
2994
|
plural: true,
|
|
2995
|
-
fragment: select$
|
|
2995
|
+
fragment: select$1s()
|
|
2996
2996
|
}
|
|
2997
2997
|
]
|
|
2998
2998
|
};
|
|
2999
2999
|
};
|
|
3000
|
-
function equals$
|
|
3000
|
+
function equals$D(existing, incoming) {
|
|
3001
3001
|
const existing_dashboards = existing.dashboards;
|
|
3002
3002
|
const incoming_dashboards = incoming.dashboards;
|
|
3003
3003
|
const equals_dashboards_items = equalsArray(existing_dashboards, incoming_dashboards, (existing_dashboards_item, incoming_dashboards_item) => {
|
|
@@ -3010,48 +3010,48 @@ function equals$C(existing, incoming) {
|
|
|
3010
3010
|
}
|
|
3011
3011
|
return true;
|
|
3012
3012
|
}
|
|
3013
|
-
const ingest$
|
|
3013
|
+
const ingest$D = function DashboardCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3014
3014
|
if (process.env.NODE_ENV !== 'production') {
|
|
3015
|
-
const validateError = validate$
|
|
3015
|
+
const validateError = validate$1e(input);
|
|
3016
3016
|
if (validateError !== null) {
|
|
3017
3017
|
throw validateError;
|
|
3018
3018
|
}
|
|
3019
3019
|
}
|
|
3020
3020
|
const key = path.fullPath;
|
|
3021
3021
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3022
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3022
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$D, "UnifiedAnalytics", VERSION$D, RepresentationType$F, equals$D);
|
|
3023
3023
|
return createLink(key);
|
|
3024
3024
|
};
|
|
3025
|
-
function getTypeCacheKeys$
|
|
3025
|
+
function getTypeCacheKeys$D(rootKeySet, luvio, input, fullPathFactory) {
|
|
3026
3026
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3027
3027
|
const rootKey = fullPathFactory();
|
|
3028
3028
|
rootKeySet.set(rootKey, {
|
|
3029
3029
|
namespace: keyPrefix,
|
|
3030
|
-
representationName: RepresentationType$
|
|
3030
|
+
representationName: RepresentationType$F,
|
|
3031
3031
|
mergeable: false
|
|
3032
3032
|
});
|
|
3033
3033
|
const input_dashboards_length = input.dashboards.length;
|
|
3034
3034
|
for (let i = 0; i < input_dashboards_length; i++) {
|
|
3035
|
-
getTypeCacheKeys$
|
|
3035
|
+
getTypeCacheKeys$E(rootKeySet, luvio, input.dashboards[i]);
|
|
3036
3036
|
}
|
|
3037
3037
|
}
|
|
3038
3038
|
|
|
3039
|
-
function select$
|
|
3040
|
-
return select$
|
|
3039
|
+
function select$1q(luvio, params) {
|
|
3040
|
+
return select$1r();
|
|
3041
3041
|
}
|
|
3042
|
-
function keyBuilder$
|
|
3042
|
+
function keyBuilder$1k(luvio, params) {
|
|
3043
3043
|
return keyPrefix + '::DashboardCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'minorVersion:' + params.queryParams.minorVersion + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
3044
3044
|
}
|
|
3045
|
-
function getResponseCacheKeys$
|
|
3046
|
-
getTypeCacheKeys$
|
|
3045
|
+
function getResponseCacheKeys$X(storeKeyMap, luvio, resourceParams, response) {
|
|
3046
|
+
getTypeCacheKeys$D(storeKeyMap, luvio, response, () => keyBuilder$1k(luvio, resourceParams));
|
|
3047
3047
|
}
|
|
3048
|
-
function ingestSuccess$
|
|
3048
|
+
function ingestSuccess$P(luvio, resourceParams, response, snapshotRefresh) {
|
|
3049
3049
|
const { body } = response;
|
|
3050
|
-
const key = keyBuilder$
|
|
3051
|
-
luvio.storeIngest(key, ingest$
|
|
3050
|
+
const key = keyBuilder$1k(luvio, resourceParams);
|
|
3051
|
+
luvio.storeIngest(key, ingest$D, body);
|
|
3052
3052
|
const snapshot = luvio.storeLookup({
|
|
3053
3053
|
recordId: key,
|
|
3054
|
-
node: select$
|
|
3054
|
+
node: select$1q(),
|
|
3055
3055
|
variables: {},
|
|
3056
3056
|
}, snapshotRefresh);
|
|
3057
3057
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3062,13 +3062,13 @@ function ingestSuccess$O(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3062
3062
|
deepFreeze(snapshot.data);
|
|
3063
3063
|
return snapshot;
|
|
3064
3064
|
}
|
|
3065
|
-
function ingestError$
|
|
3066
|
-
const key = keyBuilder$
|
|
3065
|
+
function ingestError$q(luvio, params, error, snapshotRefresh) {
|
|
3066
|
+
const key = keyBuilder$1k(luvio, params);
|
|
3067
3067
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3068
3068
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3069
3069
|
return errorSnapshot;
|
|
3070
3070
|
}
|
|
3071
|
-
function createResourceRequest$
|
|
3071
|
+
function createResourceRequest$X(config) {
|
|
3072
3072
|
const headers = {};
|
|
3073
3073
|
return {
|
|
3074
3074
|
baseUri: '/services/data/v68.0',
|
|
@@ -3082,107 +3082,107 @@ function createResourceRequest$W(config) {
|
|
|
3082
3082
|
};
|
|
3083
3083
|
}
|
|
3084
3084
|
|
|
3085
|
-
const adapterName$
|
|
3085
|
+
const adapterName$X = 'getDashboards';
|
|
3086
3086
|
const getDashboards_ConfigPropertyMetadata = [
|
|
3087
3087
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3088
3088
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3089
3089
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3090
3090
|
];
|
|
3091
|
-
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3092
|
-
const createResourceParams$
|
|
3093
|
-
function keyBuilder$
|
|
3094
|
-
const resourceParams = createResourceParams$
|
|
3095
|
-
return keyBuilder$
|
|
3091
|
+
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$X, getDashboards_ConfigPropertyMetadata);
|
|
3092
|
+
const createResourceParams$X = /*#__PURE__*/ createResourceParams$11(getDashboards_ConfigPropertyMetadata);
|
|
3093
|
+
function keyBuilder$1j(luvio, config) {
|
|
3094
|
+
const resourceParams = createResourceParams$X(config);
|
|
3095
|
+
return keyBuilder$1k(luvio, resourceParams);
|
|
3096
3096
|
}
|
|
3097
|
-
function typeCheckConfig$
|
|
3097
|
+
function typeCheckConfig$X(untrustedConfig) {
|
|
3098
3098
|
const config = {};
|
|
3099
|
-
typeCheckConfig$
|
|
3099
|
+
typeCheckConfig$11(untrustedConfig, config, getDashboards_ConfigPropertyMetadata);
|
|
3100
3100
|
return config;
|
|
3101
3101
|
}
|
|
3102
|
-
function validateAdapterConfig$
|
|
3102
|
+
function validateAdapterConfig$X(untrustedConfig, configPropertyNames) {
|
|
3103
3103
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3104
3104
|
return null;
|
|
3105
3105
|
}
|
|
3106
3106
|
if (process.env.NODE_ENV !== 'production') {
|
|
3107
3107
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3108
3108
|
}
|
|
3109
|
-
const config = typeCheckConfig$
|
|
3109
|
+
const config = typeCheckConfig$X(untrustedConfig);
|
|
3110
3110
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3111
3111
|
return null;
|
|
3112
3112
|
}
|
|
3113
3113
|
return config;
|
|
3114
3114
|
}
|
|
3115
|
-
function adapterFragment$
|
|
3116
|
-
createResourceParams$
|
|
3117
|
-
return select$
|
|
3115
|
+
function adapterFragment$q(luvio, config) {
|
|
3116
|
+
createResourceParams$X(config);
|
|
3117
|
+
return select$1q();
|
|
3118
3118
|
}
|
|
3119
|
-
function onFetchResponseSuccess$
|
|
3120
|
-
const snapshot = ingestSuccess$
|
|
3119
|
+
function onFetchResponseSuccess$q(luvio, config, resourceParams, response) {
|
|
3120
|
+
const snapshot = ingestSuccess$P(luvio, resourceParams, response, {
|
|
3121
3121
|
config,
|
|
3122
|
-
resolve: () => buildNetworkSnapshot$
|
|
3122
|
+
resolve: () => buildNetworkSnapshot$X(luvio, config, snapshotRefreshOptions)
|
|
3123
3123
|
});
|
|
3124
3124
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3125
3125
|
}
|
|
3126
|
-
function onFetchResponseError$
|
|
3127
|
-
const snapshot = ingestError$
|
|
3126
|
+
function onFetchResponseError$q(luvio, config, resourceParams, response) {
|
|
3127
|
+
const snapshot = ingestError$q(luvio, resourceParams, response, {
|
|
3128
3128
|
config,
|
|
3129
|
-
resolve: () => buildNetworkSnapshot$
|
|
3129
|
+
resolve: () => buildNetworkSnapshot$X(luvio, config, snapshotRefreshOptions)
|
|
3130
3130
|
});
|
|
3131
3131
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3132
3132
|
}
|
|
3133
|
-
function buildNetworkSnapshot$
|
|
3134
|
-
const resourceParams = createResourceParams$
|
|
3135
|
-
const request = createResourceRequest$
|
|
3133
|
+
function buildNetworkSnapshot$X(luvio, config, options) {
|
|
3134
|
+
const resourceParams = createResourceParams$X(config);
|
|
3135
|
+
const request = createResourceRequest$X(resourceParams);
|
|
3136
3136
|
return luvio.dispatchResourceRequest(request, options)
|
|
3137
3137
|
.then((response) => {
|
|
3138
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3138
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$q(luvio, config, resourceParams, response), () => {
|
|
3139
3139
|
const cache = new StoreKeyMap();
|
|
3140
|
-
getResponseCacheKeys$
|
|
3140
|
+
getResponseCacheKeys$X(cache, luvio, resourceParams, response.body);
|
|
3141
3141
|
return cache;
|
|
3142
3142
|
});
|
|
3143
3143
|
}, (response) => {
|
|
3144
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3144
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$q(luvio, config, resourceParams, response));
|
|
3145
3145
|
});
|
|
3146
3146
|
}
|
|
3147
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3148
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3147
|
+
function buildNetworkSnapshotCachePolicy$q(context, coercedAdapterRequestContext) {
|
|
3148
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$X, undefined, false);
|
|
3149
3149
|
}
|
|
3150
|
-
function buildCachedSnapshotCachePolicy$
|
|
3150
|
+
function buildCachedSnapshotCachePolicy$q(context, storeLookup) {
|
|
3151
3151
|
const { luvio, config } = context;
|
|
3152
3152
|
const selector = {
|
|
3153
|
-
recordId: keyBuilder$
|
|
3154
|
-
node: adapterFragment$
|
|
3153
|
+
recordId: keyBuilder$1j(luvio, config),
|
|
3154
|
+
node: adapterFragment$q(luvio, config),
|
|
3155
3155
|
variables: {},
|
|
3156
3156
|
};
|
|
3157
3157
|
const cacheSnapshot = storeLookup(selector, {
|
|
3158
3158
|
config,
|
|
3159
|
-
resolve: () => buildNetworkSnapshot$
|
|
3159
|
+
resolve: () => buildNetworkSnapshot$X(luvio, config, snapshotRefreshOptions)
|
|
3160
3160
|
});
|
|
3161
3161
|
return cacheSnapshot;
|
|
3162
3162
|
}
|
|
3163
3163
|
const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboards(untrustedConfig, requestContext) {
|
|
3164
|
-
const config = validateAdapterConfig$
|
|
3164
|
+
const config = validateAdapterConfig$X(untrustedConfig, getDashboards_ConfigPropertyNames);
|
|
3165
3165
|
// Invalid or incomplete config
|
|
3166
3166
|
if (config === null) {
|
|
3167
3167
|
return null;
|
|
3168
3168
|
}
|
|
3169
3169
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3170
|
-
buildCachedSnapshotCachePolicy$
|
|
3170
|
+
buildCachedSnapshotCachePolicy$q, buildNetworkSnapshotCachePolicy$q);
|
|
3171
3171
|
};
|
|
3172
3172
|
|
|
3173
|
-
function select$
|
|
3174
|
-
return select$
|
|
3173
|
+
function select$1p(luvio, params) {
|
|
3174
|
+
return select$1s();
|
|
3175
3175
|
}
|
|
3176
|
-
function getResponseCacheKeys$
|
|
3177
|
-
getTypeCacheKeys$
|
|
3176
|
+
function getResponseCacheKeys$W(storeKeyMap, luvio, resourceParams, response) {
|
|
3177
|
+
getTypeCacheKeys$E(storeKeyMap, luvio, response);
|
|
3178
3178
|
}
|
|
3179
|
-
function ingestSuccess$
|
|
3179
|
+
function ingestSuccess$O(luvio, resourceParams, response) {
|
|
3180
3180
|
const { body } = response;
|
|
3181
3181
|
const key = keyBuilderFromType$l(luvio, body);
|
|
3182
|
-
luvio.storeIngest(key, ingest$
|
|
3182
|
+
luvio.storeIngest(key, ingest$E, body);
|
|
3183
3183
|
const snapshot = luvio.storeLookup({
|
|
3184
3184
|
recordId: key,
|
|
3185
|
-
node: select$
|
|
3185
|
+
node: select$1p(),
|
|
3186
3186
|
variables: {},
|
|
3187
3187
|
});
|
|
3188
3188
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3193,7 +3193,7 @@ function ingestSuccess$N(luvio, resourceParams, response) {
|
|
|
3193
3193
|
deepFreeze(snapshot.data);
|
|
3194
3194
|
return snapshot;
|
|
3195
3195
|
}
|
|
3196
|
-
function createResourceRequest$
|
|
3196
|
+
function createResourceRequest$W(config) {
|
|
3197
3197
|
const headers = {};
|
|
3198
3198
|
return {
|
|
3199
3199
|
baseUri: '/services/data/v68.0',
|
|
@@ -3207,7 +3207,7 @@ function createResourceRequest$V(config) {
|
|
|
3207
3207
|
};
|
|
3208
3208
|
}
|
|
3209
3209
|
|
|
3210
|
-
const adapterName$
|
|
3210
|
+
const adapterName$W = 'createDashboard';
|
|
3211
3211
|
const createDashboard_ConfigPropertyMetadata = [
|
|
3212
3212
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3213
3213
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3223,11 +3223,11 @@ const createDashboard_ConfigPropertyMetadata = [
|
|
|
3223
3223
|
generateParamConfigMetadata('backgroundSource', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3224
3224
|
generateParamConfigMetadata('customConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3225
3225
|
];
|
|
3226
|
-
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3227
|
-
const createResourceParams$
|
|
3228
|
-
function typeCheckConfig$
|
|
3226
|
+
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$W, createDashboard_ConfigPropertyMetadata);
|
|
3227
|
+
const createResourceParams$W = /*#__PURE__*/ createResourceParams$11(createDashboard_ConfigPropertyMetadata);
|
|
3228
|
+
function typeCheckConfig$W(untrustedConfig) {
|
|
3229
3229
|
const config = {};
|
|
3230
|
-
typeCheckConfig$
|
|
3230
|
+
typeCheckConfig$11(untrustedConfig, config, createDashboard_ConfigPropertyMetadata);
|
|
3231
3231
|
const untrustedConfig_lastModifiedBy = untrustedConfig.lastModifiedBy;
|
|
3232
3232
|
config.lastModifiedBy = untrustedConfig_lastModifiedBy;
|
|
3233
3233
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
@@ -3301,30 +3301,30 @@ function typeCheckConfig$V(untrustedConfig) {
|
|
|
3301
3301
|
}
|
|
3302
3302
|
return config;
|
|
3303
3303
|
}
|
|
3304
|
-
function validateAdapterConfig$
|
|
3304
|
+
function validateAdapterConfig$W(untrustedConfig, configPropertyNames) {
|
|
3305
3305
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3306
3306
|
return null;
|
|
3307
3307
|
}
|
|
3308
3308
|
if (process.env.NODE_ENV !== 'production') {
|
|
3309
3309
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3310
3310
|
}
|
|
3311
|
-
const config = typeCheckConfig$
|
|
3311
|
+
const config = typeCheckConfig$W(untrustedConfig);
|
|
3312
3312
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3313
3313
|
return null;
|
|
3314
3314
|
}
|
|
3315
3315
|
return config;
|
|
3316
3316
|
}
|
|
3317
|
-
function buildNetworkSnapshot$
|
|
3318
|
-
const resourceParams = createResourceParams$
|
|
3319
|
-
const request = createResourceRequest$
|
|
3317
|
+
function buildNetworkSnapshot$W(luvio, config, options) {
|
|
3318
|
+
const resourceParams = createResourceParams$W(config);
|
|
3319
|
+
const request = createResourceRequest$W(resourceParams);
|
|
3320
3320
|
return luvio.dispatchResourceRequest(request, options)
|
|
3321
3321
|
.then((response) => {
|
|
3322
3322
|
return luvio.handleSuccessResponse(() => {
|
|
3323
|
-
const snapshot = ingestSuccess$
|
|
3323
|
+
const snapshot = ingestSuccess$O(luvio, resourceParams, response);
|
|
3324
3324
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3325
3325
|
}, () => {
|
|
3326
3326
|
const cache = new StoreKeyMap();
|
|
3327
|
-
getResponseCacheKeys$
|
|
3327
|
+
getResponseCacheKeys$W(cache, luvio, resourceParams, response.body);
|
|
3328
3328
|
return cache;
|
|
3329
3329
|
});
|
|
3330
3330
|
}, (response) => {
|
|
@@ -3334,33 +3334,33 @@ function buildNetworkSnapshot$V(luvio, config, options) {
|
|
|
3334
3334
|
}
|
|
3335
3335
|
const createDashboardAdapterFactory = (luvio) => {
|
|
3336
3336
|
return function createDashboard(untrustedConfig) {
|
|
3337
|
-
const config = validateAdapterConfig$
|
|
3337
|
+
const config = validateAdapterConfig$W(untrustedConfig, createDashboard_ConfigPropertyNames);
|
|
3338
3338
|
// Invalid or incomplete config
|
|
3339
3339
|
if (config === null) {
|
|
3340
3340
|
throw new Error('Invalid config for "createDashboard"');
|
|
3341
3341
|
}
|
|
3342
|
-
return buildNetworkSnapshot$
|
|
3342
|
+
return buildNetworkSnapshot$W(luvio, config);
|
|
3343
3343
|
};
|
|
3344
3344
|
};
|
|
3345
3345
|
|
|
3346
|
-
function keyBuilder$
|
|
3347
|
-
return keyBuilder$
|
|
3346
|
+
function keyBuilder$1i(luvio, params) {
|
|
3347
|
+
return keyBuilder$1l(luvio, {
|
|
3348
3348
|
name: params.urlParams.dashboardIdOrApiName
|
|
3349
3349
|
});
|
|
3350
3350
|
}
|
|
3351
|
-
function getResponseCacheKeys$
|
|
3352
|
-
const key = keyBuilder$
|
|
3351
|
+
function getResponseCacheKeys$V(cacheKeyMap, luvio, resourceParams) {
|
|
3352
|
+
const key = keyBuilder$1i(luvio, resourceParams);
|
|
3353
3353
|
cacheKeyMap.set(key, {
|
|
3354
3354
|
namespace: keyPrefix,
|
|
3355
|
-
representationName: RepresentationType$
|
|
3355
|
+
representationName: RepresentationType$G,
|
|
3356
3356
|
mergeable: false
|
|
3357
3357
|
});
|
|
3358
3358
|
}
|
|
3359
3359
|
function evictSuccess$7(luvio, resourceParams) {
|
|
3360
|
-
const key = keyBuilder$
|
|
3360
|
+
const key = keyBuilder$1i(luvio, resourceParams);
|
|
3361
3361
|
luvio.storeEvict(key);
|
|
3362
3362
|
}
|
|
3363
|
-
function createResourceRequest$
|
|
3363
|
+
function createResourceRequest$V(config) {
|
|
3364
3364
|
const headers = {};
|
|
3365
3365
|
return {
|
|
3366
3366
|
baseUri: '/services/data/v68.0',
|
|
@@ -3374,33 +3374,33 @@ function createResourceRequest$U(config) {
|
|
|
3374
3374
|
};
|
|
3375
3375
|
}
|
|
3376
3376
|
|
|
3377
|
-
const adapterName$
|
|
3377
|
+
const adapterName$V = 'deleteDashboard';
|
|
3378
3378
|
const deleteDashboard_ConfigPropertyMetadata = [
|
|
3379
3379
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3380
3380
|
];
|
|
3381
|
-
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3382
|
-
const createResourceParams$
|
|
3383
|
-
function typeCheckConfig$
|
|
3381
|
+
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$V, deleteDashboard_ConfigPropertyMetadata);
|
|
3382
|
+
const createResourceParams$V = /*#__PURE__*/ createResourceParams$11(deleteDashboard_ConfigPropertyMetadata);
|
|
3383
|
+
function typeCheckConfig$V(untrustedConfig) {
|
|
3384
3384
|
const config = {};
|
|
3385
|
-
typeCheckConfig$
|
|
3385
|
+
typeCheckConfig$11(untrustedConfig, config, deleteDashboard_ConfigPropertyMetadata);
|
|
3386
3386
|
return config;
|
|
3387
3387
|
}
|
|
3388
|
-
function validateAdapterConfig$
|
|
3388
|
+
function validateAdapterConfig$V(untrustedConfig, configPropertyNames) {
|
|
3389
3389
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3390
3390
|
return null;
|
|
3391
3391
|
}
|
|
3392
3392
|
if (process.env.NODE_ENV !== 'production') {
|
|
3393
3393
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3394
3394
|
}
|
|
3395
|
-
const config = typeCheckConfig$
|
|
3395
|
+
const config = typeCheckConfig$V(untrustedConfig);
|
|
3396
3396
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3397
3397
|
return null;
|
|
3398
3398
|
}
|
|
3399
3399
|
return config;
|
|
3400
3400
|
}
|
|
3401
|
-
function buildNetworkSnapshot$
|
|
3402
|
-
const resourceParams = createResourceParams$
|
|
3403
|
-
const request = createResourceRequest$
|
|
3401
|
+
function buildNetworkSnapshot$V(luvio, config, options) {
|
|
3402
|
+
const resourceParams = createResourceParams$V(config);
|
|
3403
|
+
const request = createResourceRequest$V(resourceParams);
|
|
3404
3404
|
return luvio.dispatchResourceRequest(request, options)
|
|
3405
3405
|
.then(() => {
|
|
3406
3406
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3408,7 +3408,7 @@ function buildNetworkSnapshot$U(luvio, config, options) {
|
|
|
3408
3408
|
return luvio.storeBroadcast();
|
|
3409
3409
|
}, () => {
|
|
3410
3410
|
const cache = new StoreKeyMap();
|
|
3411
|
-
getResponseCacheKeys$
|
|
3411
|
+
getResponseCacheKeys$V(cache, luvio, resourceParams);
|
|
3412
3412
|
return cache;
|
|
3413
3413
|
});
|
|
3414
3414
|
}, (response) => {
|
|
@@ -3418,33 +3418,33 @@ function buildNetworkSnapshot$U(luvio, config, options) {
|
|
|
3418
3418
|
}
|
|
3419
3419
|
const deleteDashboardAdapterFactory = (luvio) => {
|
|
3420
3420
|
return function UnifiedAnalyticsdeleteDashboard(untrustedConfig) {
|
|
3421
|
-
const config = validateAdapterConfig$
|
|
3421
|
+
const config = validateAdapterConfig$V(untrustedConfig, deleteDashboard_ConfigPropertyNames);
|
|
3422
3422
|
// Invalid or incomplete config
|
|
3423
3423
|
if (config === null) {
|
|
3424
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3424
|
+
throw new Error(`Invalid config for "${adapterName$V}"`);
|
|
3425
3425
|
}
|
|
3426
|
-
return buildNetworkSnapshot$
|
|
3426
|
+
return buildNetworkSnapshot$V(luvio, config);
|
|
3427
3427
|
};
|
|
3428
3428
|
};
|
|
3429
3429
|
|
|
3430
|
-
function select$
|
|
3431
|
-
return select$
|
|
3430
|
+
function select$1o(luvio, params) {
|
|
3431
|
+
return select$1s();
|
|
3432
3432
|
}
|
|
3433
|
-
function keyBuilder$
|
|
3434
|
-
return keyBuilder$
|
|
3433
|
+
function keyBuilder$1h(luvio, params) {
|
|
3434
|
+
return keyBuilder$1l(luvio, {
|
|
3435
3435
|
name: params.urlParams.dashboardIdOrApiName
|
|
3436
3436
|
});
|
|
3437
3437
|
}
|
|
3438
|
-
function getResponseCacheKeys$
|
|
3439
|
-
getTypeCacheKeys$
|
|
3438
|
+
function getResponseCacheKeys$U(storeKeyMap, luvio, resourceParams, response) {
|
|
3439
|
+
getTypeCacheKeys$E(storeKeyMap, luvio, response);
|
|
3440
3440
|
}
|
|
3441
|
-
function ingestSuccess$
|
|
3441
|
+
function ingestSuccess$N(luvio, resourceParams, response, snapshotRefresh) {
|
|
3442
3442
|
const { body } = response;
|
|
3443
|
-
const key = keyBuilder$
|
|
3444
|
-
luvio.storeIngest(key, ingest$
|
|
3443
|
+
const key = keyBuilder$1h(luvio, resourceParams);
|
|
3444
|
+
luvio.storeIngest(key, ingest$E, body);
|
|
3445
3445
|
const snapshot = luvio.storeLookup({
|
|
3446
3446
|
recordId: key,
|
|
3447
|
-
node: select$
|
|
3447
|
+
node: select$1o(),
|
|
3448
3448
|
variables: {},
|
|
3449
3449
|
}, snapshotRefresh);
|
|
3450
3450
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3455,13 +3455,13 @@ function ingestSuccess$M(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3455
3455
|
deepFreeze(snapshot.data);
|
|
3456
3456
|
return snapshot;
|
|
3457
3457
|
}
|
|
3458
|
-
function ingestError$
|
|
3459
|
-
const key = keyBuilder$
|
|
3458
|
+
function ingestError$p(luvio, params, error, snapshotRefresh) {
|
|
3459
|
+
const key = keyBuilder$1h(luvio, params);
|
|
3460
3460
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3461
3461
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3462
3462
|
return errorSnapshot;
|
|
3463
3463
|
}
|
|
3464
|
-
function createResourceRequest$
|
|
3464
|
+
function createResourceRequest$U(config) {
|
|
3465
3465
|
const headers = {};
|
|
3466
3466
|
return {
|
|
3467
3467
|
baseUri: '/services/data/v68.0',
|
|
@@ -3475,106 +3475,106 @@ function createResourceRequest$T(config) {
|
|
|
3475
3475
|
};
|
|
3476
3476
|
}
|
|
3477
3477
|
|
|
3478
|
-
const adapterName$
|
|
3478
|
+
const adapterName$U = 'getDashboardByName';
|
|
3479
3479
|
const getDashboardByName_ConfigPropertyMetadata = [
|
|
3480
3480
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3481
3481
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3482
3482
|
];
|
|
3483
|
-
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3484
|
-
const createResourceParams$
|
|
3485
|
-
function keyBuilder$
|
|
3486
|
-
const resourceParams = createResourceParams$
|
|
3487
|
-
return keyBuilder$
|
|
3483
|
+
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$U, getDashboardByName_ConfigPropertyMetadata);
|
|
3484
|
+
const createResourceParams$U = /*#__PURE__*/ createResourceParams$11(getDashboardByName_ConfigPropertyMetadata);
|
|
3485
|
+
function keyBuilder$1g(luvio, config) {
|
|
3486
|
+
const resourceParams = createResourceParams$U(config);
|
|
3487
|
+
return keyBuilder$1h(luvio, resourceParams);
|
|
3488
3488
|
}
|
|
3489
|
-
function typeCheckConfig$
|
|
3489
|
+
function typeCheckConfig$U(untrustedConfig) {
|
|
3490
3490
|
const config = {};
|
|
3491
|
-
typeCheckConfig$
|
|
3491
|
+
typeCheckConfig$11(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
|
|
3492
3492
|
return config;
|
|
3493
3493
|
}
|
|
3494
|
-
function validateAdapterConfig$
|
|
3494
|
+
function validateAdapterConfig$U(untrustedConfig, configPropertyNames) {
|
|
3495
3495
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3496
3496
|
return null;
|
|
3497
3497
|
}
|
|
3498
3498
|
if (process.env.NODE_ENV !== 'production') {
|
|
3499
3499
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3500
3500
|
}
|
|
3501
|
-
const config = typeCheckConfig$
|
|
3501
|
+
const config = typeCheckConfig$U(untrustedConfig);
|
|
3502
3502
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3503
3503
|
return null;
|
|
3504
3504
|
}
|
|
3505
3505
|
return config;
|
|
3506
3506
|
}
|
|
3507
|
-
function adapterFragment$
|
|
3508
|
-
createResourceParams$
|
|
3509
|
-
return select$
|
|
3507
|
+
function adapterFragment$p(luvio, config) {
|
|
3508
|
+
createResourceParams$U(config);
|
|
3509
|
+
return select$1o();
|
|
3510
3510
|
}
|
|
3511
|
-
function onFetchResponseSuccess$
|
|
3512
|
-
const snapshot = ingestSuccess$
|
|
3511
|
+
function onFetchResponseSuccess$p(luvio, config, resourceParams, response) {
|
|
3512
|
+
const snapshot = ingestSuccess$N(luvio, resourceParams, response, {
|
|
3513
3513
|
config,
|
|
3514
|
-
resolve: () => buildNetworkSnapshot$
|
|
3514
|
+
resolve: () => buildNetworkSnapshot$U(luvio, config, snapshotRefreshOptions)
|
|
3515
3515
|
});
|
|
3516
3516
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3517
3517
|
}
|
|
3518
|
-
function onFetchResponseError$
|
|
3519
|
-
const snapshot = ingestError$
|
|
3518
|
+
function onFetchResponseError$p(luvio, config, resourceParams, response) {
|
|
3519
|
+
const snapshot = ingestError$p(luvio, resourceParams, response, {
|
|
3520
3520
|
config,
|
|
3521
|
-
resolve: () => buildNetworkSnapshot$
|
|
3521
|
+
resolve: () => buildNetworkSnapshot$U(luvio, config, snapshotRefreshOptions)
|
|
3522
3522
|
});
|
|
3523
3523
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3524
3524
|
}
|
|
3525
|
-
function buildNetworkSnapshot$
|
|
3526
|
-
const resourceParams = createResourceParams$
|
|
3527
|
-
const request = createResourceRequest$
|
|
3525
|
+
function buildNetworkSnapshot$U(luvio, config, options) {
|
|
3526
|
+
const resourceParams = createResourceParams$U(config);
|
|
3527
|
+
const request = createResourceRequest$U(resourceParams);
|
|
3528
3528
|
return luvio.dispatchResourceRequest(request, options)
|
|
3529
3529
|
.then((response) => {
|
|
3530
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3530
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$p(luvio, config, resourceParams, response), () => {
|
|
3531
3531
|
const cache = new StoreKeyMap();
|
|
3532
|
-
getResponseCacheKeys$
|
|
3532
|
+
getResponseCacheKeys$U(cache, luvio, resourceParams, response.body);
|
|
3533
3533
|
return cache;
|
|
3534
3534
|
});
|
|
3535
3535
|
}, (response) => {
|
|
3536
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3536
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$p(luvio, config, resourceParams, response));
|
|
3537
3537
|
});
|
|
3538
3538
|
}
|
|
3539
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3540
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3539
|
+
function buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext) {
|
|
3540
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$U, undefined, false);
|
|
3541
3541
|
}
|
|
3542
|
-
function buildCachedSnapshotCachePolicy$
|
|
3542
|
+
function buildCachedSnapshotCachePolicy$p(context, storeLookup) {
|
|
3543
3543
|
const { luvio, config } = context;
|
|
3544
3544
|
const selector = {
|
|
3545
|
-
recordId: keyBuilder$
|
|
3546
|
-
node: adapterFragment$
|
|
3545
|
+
recordId: keyBuilder$1g(luvio, config),
|
|
3546
|
+
node: adapterFragment$p(luvio, config),
|
|
3547
3547
|
variables: {},
|
|
3548
3548
|
};
|
|
3549
3549
|
const cacheSnapshot = storeLookup(selector, {
|
|
3550
3550
|
config,
|
|
3551
|
-
resolve: () => buildNetworkSnapshot$
|
|
3551
|
+
resolve: () => buildNetworkSnapshot$U(luvio, config, snapshotRefreshOptions)
|
|
3552
3552
|
});
|
|
3553
3553
|
return cacheSnapshot;
|
|
3554
3554
|
}
|
|
3555
3555
|
const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboardByName(untrustedConfig, requestContext) {
|
|
3556
|
-
const config = validateAdapterConfig$
|
|
3556
|
+
const config = validateAdapterConfig$U(untrustedConfig, getDashboardByName_ConfigPropertyNames);
|
|
3557
3557
|
// Invalid or incomplete config
|
|
3558
3558
|
if (config === null) {
|
|
3559
3559
|
return null;
|
|
3560
3560
|
}
|
|
3561
3561
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3562
|
-
buildCachedSnapshotCachePolicy$
|
|
3562
|
+
buildCachedSnapshotCachePolicy$p, buildNetworkSnapshotCachePolicy$p);
|
|
3563
3563
|
};
|
|
3564
3564
|
|
|
3565
|
-
function select$
|
|
3566
|
-
return select$
|
|
3565
|
+
function select$1n(luvio, params) {
|
|
3566
|
+
return select$1s();
|
|
3567
3567
|
}
|
|
3568
|
-
function getResponseCacheKeys$
|
|
3569
|
-
getTypeCacheKeys$
|
|
3568
|
+
function getResponseCacheKeys$T(storeKeyMap, luvio, resourceParams, response) {
|
|
3569
|
+
getTypeCacheKeys$E(storeKeyMap, luvio, response);
|
|
3570
3570
|
}
|
|
3571
|
-
function ingestSuccess$
|
|
3571
|
+
function ingestSuccess$M(luvio, resourceParams, response) {
|
|
3572
3572
|
const { body } = response;
|
|
3573
3573
|
const key = keyBuilderFromType$l(luvio, body);
|
|
3574
|
-
luvio.storeIngest(key, ingest$
|
|
3574
|
+
luvio.storeIngest(key, ingest$E, body);
|
|
3575
3575
|
const snapshot = luvio.storeLookup({
|
|
3576
3576
|
recordId: key,
|
|
3577
|
-
node: select$
|
|
3577
|
+
node: select$1n(),
|
|
3578
3578
|
variables: {},
|
|
3579
3579
|
});
|
|
3580
3580
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3585,7 +3585,7 @@ function ingestSuccess$L(luvio, resourceParams, response) {
|
|
|
3585
3585
|
deepFreeze(snapshot.data);
|
|
3586
3586
|
return snapshot;
|
|
3587
3587
|
}
|
|
3588
|
-
function createResourceRequest$
|
|
3588
|
+
function createResourceRequest$T(config) {
|
|
3589
3589
|
const headers = {};
|
|
3590
3590
|
return {
|
|
3591
3591
|
baseUri: '/services/data/v68.0',
|
|
@@ -3599,7 +3599,7 @@ function createResourceRequest$S(config) {
|
|
|
3599
3599
|
};
|
|
3600
3600
|
}
|
|
3601
3601
|
|
|
3602
|
-
const adapterName$
|
|
3602
|
+
const adapterName$T = 'updateDashboard';
|
|
3603
3603
|
const updateDashboard_ConfigPropertyMetadata = [
|
|
3604
3604
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3605
3605
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
@@ -3616,11 +3616,11 @@ const updateDashboard_ConfigPropertyMetadata = [
|
|
|
3616
3616
|
generateParamConfigMetadata('backgroundSource', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3617
3617
|
generateParamConfigMetadata('customConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3618
3618
|
];
|
|
3619
|
-
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3620
|
-
const createResourceParams$
|
|
3621
|
-
function typeCheckConfig$
|
|
3619
|
+
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$T, updateDashboard_ConfigPropertyMetadata);
|
|
3620
|
+
const createResourceParams$T = /*#__PURE__*/ createResourceParams$11(updateDashboard_ConfigPropertyMetadata);
|
|
3621
|
+
function typeCheckConfig$T(untrustedConfig) {
|
|
3622
3622
|
const config = {};
|
|
3623
|
-
typeCheckConfig$
|
|
3623
|
+
typeCheckConfig$11(untrustedConfig, config, updateDashboard_ConfigPropertyMetadata);
|
|
3624
3624
|
const untrustedConfig_lastModifiedBy = untrustedConfig.lastModifiedBy;
|
|
3625
3625
|
config.lastModifiedBy = untrustedConfig_lastModifiedBy;
|
|
3626
3626
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
@@ -3694,30 +3694,30 @@ function typeCheckConfig$S(untrustedConfig) {
|
|
|
3694
3694
|
}
|
|
3695
3695
|
return config;
|
|
3696
3696
|
}
|
|
3697
|
-
function validateAdapterConfig$
|
|
3697
|
+
function validateAdapterConfig$T(untrustedConfig, configPropertyNames) {
|
|
3698
3698
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3699
3699
|
return null;
|
|
3700
3700
|
}
|
|
3701
3701
|
if (process.env.NODE_ENV !== 'production') {
|
|
3702
3702
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3703
3703
|
}
|
|
3704
|
-
const config = typeCheckConfig$
|
|
3704
|
+
const config = typeCheckConfig$T(untrustedConfig);
|
|
3705
3705
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3706
3706
|
return null;
|
|
3707
3707
|
}
|
|
3708
3708
|
return config;
|
|
3709
3709
|
}
|
|
3710
|
-
function buildNetworkSnapshot$
|
|
3711
|
-
const resourceParams = createResourceParams$
|
|
3712
|
-
const request = createResourceRequest$
|
|
3710
|
+
function buildNetworkSnapshot$T(luvio, config, options) {
|
|
3711
|
+
const resourceParams = createResourceParams$T(config);
|
|
3712
|
+
const request = createResourceRequest$T(resourceParams);
|
|
3713
3713
|
return luvio.dispatchResourceRequest(request, options)
|
|
3714
3714
|
.then((response) => {
|
|
3715
3715
|
return luvio.handleSuccessResponse(() => {
|
|
3716
|
-
const snapshot = ingestSuccess$
|
|
3716
|
+
const snapshot = ingestSuccess$M(luvio, resourceParams, response);
|
|
3717
3717
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3718
3718
|
}, () => {
|
|
3719
3719
|
const cache = new StoreKeyMap();
|
|
3720
|
-
getResponseCacheKeys$
|
|
3720
|
+
getResponseCacheKeys$T(cache, luvio, resourceParams, response.body);
|
|
3721
3721
|
return cache;
|
|
3722
3722
|
});
|
|
3723
3723
|
}, (response) => {
|
|
@@ -3727,16 +3727,16 @@ function buildNetworkSnapshot$S(luvio, config, options) {
|
|
|
3727
3727
|
}
|
|
3728
3728
|
const updateDashboardAdapterFactory = (luvio) => {
|
|
3729
3729
|
return function updateDashboard(untrustedConfig) {
|
|
3730
|
-
const config = validateAdapterConfig$
|
|
3730
|
+
const config = validateAdapterConfig$T(untrustedConfig, updateDashboard_ConfigPropertyNames);
|
|
3731
3731
|
// Invalid or incomplete config
|
|
3732
3732
|
if (config === null) {
|
|
3733
3733
|
throw new Error('Invalid config for "updateDashboard"');
|
|
3734
3734
|
}
|
|
3735
|
-
return buildNetworkSnapshot$
|
|
3735
|
+
return buildNetworkSnapshot$T(luvio, config);
|
|
3736
3736
|
};
|
|
3737
3737
|
};
|
|
3738
3738
|
|
|
3739
|
-
function validate$
|
|
3739
|
+
function validate$1d(obj, path = 'DataAlertContentRepresentation') {
|
|
3740
3740
|
const v_error = (() => {
|
|
3741
3741
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3742
3742
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3750,7 +3750,7 @@ function validate$1c(obj, path = 'DataAlertContentRepresentation') {
|
|
|
3750
3750
|
return v_error === undefined ? null : v_error;
|
|
3751
3751
|
}
|
|
3752
3752
|
|
|
3753
|
-
function validate$
|
|
3753
|
+
function validate$1c(obj, path = 'DataAlertReceiversRepresentation') {
|
|
3754
3754
|
const v_error = (() => {
|
|
3755
3755
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3756
3756
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3764,7 +3764,7 @@ function validate$1b(obj, path = 'DataAlertReceiversRepresentation') {
|
|
|
3764
3764
|
return v_error === undefined ? null : v_error;
|
|
3765
3765
|
}
|
|
3766
3766
|
|
|
3767
|
-
function validate$
|
|
3767
|
+
function validate$1b(obj, path = 'DataAlertDeliveryConfigurationRepresentation') {
|
|
3768
3768
|
const v_error = (() => {
|
|
3769
3769
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3770
3770
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3777,7 +3777,7 @@ function validate$1a(obj, path = 'DataAlertDeliveryConfigurationRepresentation')
|
|
|
3777
3777
|
for (let i = 0; i < obj_receivers.length; i++) {
|
|
3778
3778
|
const obj_receivers_item = obj_receivers[i];
|
|
3779
3779
|
const path_receivers_item = path_receivers + '[' + i + ']';
|
|
3780
|
-
const referencepath_receivers_itemValidationError = validate$
|
|
3780
|
+
const referencepath_receivers_itemValidationError = validate$1c(obj_receivers_item, path_receivers_item);
|
|
3781
3781
|
if (referencepath_receivers_itemValidationError !== null) {
|
|
3782
3782
|
let message = 'Object doesn\'t match DataAlertReceiversRepresentation (at "' + path_receivers_item + '")\n';
|
|
3783
3783
|
message += referencepath_receivers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3788,7 +3788,7 @@ function validate$1a(obj, path = 'DataAlertDeliveryConfigurationRepresentation')
|
|
|
3788
3788
|
return v_error === undefined ? null : v_error;
|
|
3789
3789
|
}
|
|
3790
3790
|
|
|
3791
|
-
function validate$
|
|
3791
|
+
function validate$1a(obj, path = 'DataAlertPropertyFilterOutputRepresentation') {
|
|
3792
3792
|
const v_error = (() => {
|
|
3793
3793
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3794
3794
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3802,7 +3802,7 @@ function validate$19(obj, path = 'DataAlertPropertyFilterOutputRepresentation')
|
|
|
3802
3802
|
return v_error === undefined ? null : v_error;
|
|
3803
3803
|
}
|
|
3804
3804
|
|
|
3805
|
-
function validate$
|
|
3805
|
+
function validate$19(obj, path = 'DataAlertScheduleRepresentation') {
|
|
3806
3806
|
const v_error = (() => {
|
|
3807
3807
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3808
3808
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3830,7 +3830,7 @@ function validate$18(obj, path = 'DataAlertScheduleRepresentation') {
|
|
|
3830
3830
|
return v_error === undefined ? null : v_error;
|
|
3831
3831
|
}
|
|
3832
3832
|
|
|
3833
|
-
function validate$
|
|
3833
|
+
function validate$18(obj, path = 'DataAlertValueRepresentation') {
|
|
3834
3834
|
const v_error = (() => {
|
|
3835
3835
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3836
3836
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3844,14 +3844,14 @@ function validate$17(obj, path = 'DataAlertValueRepresentation') {
|
|
|
3844
3844
|
return v_error === undefined ? null : v_error;
|
|
3845
3845
|
}
|
|
3846
3846
|
|
|
3847
|
-
function validate$
|
|
3847
|
+
function validate$17(obj, path = 'DataAlertConditionRepresentation') {
|
|
3848
3848
|
const v_error = (() => {
|
|
3849
3849
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3850
3850
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3851
3851
|
}
|
|
3852
3852
|
const obj_leftOperand = obj.leftOperand;
|
|
3853
3853
|
const path_leftOperand = path + '.leftOperand';
|
|
3854
|
-
const referencepath_leftOperandValidationError = validate$
|
|
3854
|
+
const referencepath_leftOperandValidationError = validate$18(obj_leftOperand, path_leftOperand);
|
|
3855
3855
|
if (referencepath_leftOperandValidationError !== null) {
|
|
3856
3856
|
let message = 'Object doesn\'t match DataAlertValueRepresentation (at "' + path_leftOperand + '")\n';
|
|
3857
3857
|
message += referencepath_leftOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3864,7 +3864,7 @@ function validate$16(obj, path = 'DataAlertConditionRepresentation') {
|
|
|
3864
3864
|
}
|
|
3865
3865
|
const obj_rightOperand = obj.rightOperand;
|
|
3866
3866
|
const path_rightOperand = path + '.rightOperand';
|
|
3867
|
-
const referencepath_rightOperandValidationError = validate$
|
|
3867
|
+
const referencepath_rightOperandValidationError = validate$18(obj_rightOperand, path_rightOperand);
|
|
3868
3868
|
if (referencepath_rightOperandValidationError !== null) {
|
|
3869
3869
|
let message = 'Object doesn\'t match DataAlertValueRepresentation (at "' + path_rightOperand + '")\n';
|
|
3870
3870
|
message += referencepath_rightOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3874,7 +3874,7 @@ function validate$16(obj, path = 'DataAlertConditionRepresentation') {
|
|
|
3874
3874
|
return v_error === undefined ? null : v_error;
|
|
3875
3875
|
}
|
|
3876
3876
|
|
|
3877
|
-
function validate$
|
|
3877
|
+
function validate$16(obj, path = 'DataAlertThresholdsRepresentation') {
|
|
3878
3878
|
const v_error = (() => {
|
|
3879
3879
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3880
3880
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3887,7 +3887,7 @@ function validate$15(obj, path = 'DataAlertThresholdsRepresentation') {
|
|
|
3887
3887
|
for (let i = 0; i < obj_conditions.length; i++) {
|
|
3888
3888
|
const obj_conditions_item = obj_conditions[i];
|
|
3889
3889
|
const path_conditions_item = path_conditions + '[' + i + ']';
|
|
3890
|
-
const referencepath_conditions_itemValidationError = validate$
|
|
3890
|
+
const referencepath_conditions_itemValidationError = validate$17(obj_conditions_item, path_conditions_item);
|
|
3891
3891
|
if (referencepath_conditions_itemValidationError !== null) {
|
|
3892
3892
|
let message = 'Object doesn\'t match DataAlertConditionRepresentation (at "' + path_conditions_item + '")\n';
|
|
3893
3893
|
message += referencepath_conditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3903,9 +3903,9 @@ function validate$15(obj, path = 'DataAlertThresholdsRepresentation') {
|
|
|
3903
3903
|
return v_error === undefined ? null : v_error;
|
|
3904
3904
|
}
|
|
3905
3905
|
|
|
3906
|
-
const TTL$
|
|
3907
|
-
const VERSION$
|
|
3908
|
-
function validate$
|
|
3906
|
+
const TTL$q = 500;
|
|
3907
|
+
const VERSION$C = "eca891667fbed2132d5c2a32709976c2";
|
|
3908
|
+
function validate$15(obj, path = 'DataAlertRepresentation') {
|
|
3909
3909
|
const v_error = (() => {
|
|
3910
3910
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3911
3911
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3945,7 +3945,7 @@ function validate$14(obj, path = 'DataAlertRepresentation') {
|
|
|
3945
3945
|
}
|
|
3946
3946
|
const obj_content = obj.content;
|
|
3947
3947
|
const path_content = path + '.content';
|
|
3948
|
-
const referencepath_contentValidationError = validate$
|
|
3948
|
+
const referencepath_contentValidationError = validate$1d(obj_content, path_content);
|
|
3949
3949
|
if (referencepath_contentValidationError !== null) {
|
|
3950
3950
|
let message = 'Object doesn\'t match DataAlertContentRepresentation (at "' + path_content + '")\n';
|
|
3951
3951
|
message += referencepath_contentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3963,7 +3963,7 @@ function validate$14(obj, path = 'DataAlertRepresentation') {
|
|
|
3963
3963
|
}
|
|
3964
3964
|
const obj_deliveryConfigurations = obj.deliveryConfigurations;
|
|
3965
3965
|
const path_deliveryConfigurations = path + '.deliveryConfigurations';
|
|
3966
|
-
const referencepath_deliveryConfigurationsValidationError = validate$
|
|
3966
|
+
const referencepath_deliveryConfigurationsValidationError = validate$1b(obj_deliveryConfigurations, path_deliveryConfigurations);
|
|
3967
3967
|
if (referencepath_deliveryConfigurationsValidationError !== null) {
|
|
3968
3968
|
let message = 'Object doesn\'t match DataAlertDeliveryConfigurationRepresentation (at "' + path_deliveryConfigurations + '")\n';
|
|
3969
3969
|
message += referencepath_deliveryConfigurationsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3989,7 +3989,7 @@ function validate$14(obj, path = 'DataAlertRepresentation') {
|
|
|
3989
3989
|
if (obj.properties !== undefined) {
|
|
3990
3990
|
const obj_properties = obj.properties;
|
|
3991
3991
|
const path_properties = path + '.properties';
|
|
3992
|
-
const referencepath_propertiesValidationError = validate$
|
|
3992
|
+
const referencepath_propertiesValidationError = validate$1a(obj_properties, path_properties);
|
|
3993
3993
|
if (referencepath_propertiesValidationError !== null) {
|
|
3994
3994
|
let message = 'Object doesn\'t match DataAlertPropertyFilterOutputRepresentation (at "' + path_properties + '")\n';
|
|
3995
3995
|
message += referencepath_propertiesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3998,7 +3998,7 @@ function validate$14(obj, path = 'DataAlertRepresentation') {
|
|
|
3998
3998
|
}
|
|
3999
3999
|
const obj_schedule = obj.schedule;
|
|
4000
4000
|
const path_schedule = path + '.schedule';
|
|
4001
|
-
const referencepath_scheduleValidationError = validate$
|
|
4001
|
+
const referencepath_scheduleValidationError = validate$19(obj_schedule, path_schedule);
|
|
4002
4002
|
if (referencepath_scheduleValidationError !== null) {
|
|
4003
4003
|
let message = 'Object doesn\'t match DataAlertScheduleRepresentation (at "' + path_schedule + '")\n';
|
|
4004
4004
|
message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4007,7 +4007,7 @@ function validate$14(obj, path = 'DataAlertRepresentation') {
|
|
|
4007
4007
|
if (obj.thresholds !== undefined) {
|
|
4008
4008
|
const obj_thresholds = obj.thresholds;
|
|
4009
4009
|
const path_thresholds = path + '.thresholds';
|
|
4010
|
-
const referencepath_thresholdsValidationError = validate$
|
|
4010
|
+
const referencepath_thresholdsValidationError = validate$16(obj_thresholds, path_thresholds);
|
|
4011
4011
|
if (referencepath_thresholdsValidationError !== null) {
|
|
4012
4012
|
let message = 'Object doesn\'t match DataAlertThresholdsRepresentation (at "' + path_thresholds + '")\n';
|
|
4013
4013
|
message += referencepath_thresholdsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4017,58 +4017,58 @@ function validate$14(obj, path = 'DataAlertRepresentation') {
|
|
|
4017
4017
|
})();
|
|
4018
4018
|
return v_error === undefined ? null : v_error;
|
|
4019
4019
|
}
|
|
4020
|
-
const RepresentationType$
|
|
4021
|
-
function keyBuilder$
|
|
4022
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4020
|
+
const RepresentationType$E = 'DataAlertRepresentation';
|
|
4021
|
+
function keyBuilder$1f(luvio, config) {
|
|
4022
|
+
return keyPrefix + '::' + RepresentationType$E + ':' + config.dataAlertId;
|
|
4023
4023
|
}
|
|
4024
4024
|
function keyBuilderFromType$k(luvio, object) {
|
|
4025
4025
|
const keyParams = {
|
|
4026
4026
|
dataAlertId: object.id
|
|
4027
4027
|
};
|
|
4028
|
-
return keyBuilder$
|
|
4028
|
+
return keyBuilder$1f(luvio, keyParams);
|
|
4029
4029
|
}
|
|
4030
|
-
function normalize$
|
|
4030
|
+
function normalize$C(input, existing, path, luvio, store, timestamp) {
|
|
4031
4031
|
return input;
|
|
4032
4032
|
}
|
|
4033
|
-
const select$
|
|
4033
|
+
const select$1m = function DataAlertRepresentationSelect() {
|
|
4034
4034
|
return {
|
|
4035
4035
|
kind: 'Fragment',
|
|
4036
|
-
version: VERSION$
|
|
4036
|
+
version: VERSION$C,
|
|
4037
4037
|
private: [],
|
|
4038
4038
|
opaque: true
|
|
4039
4039
|
};
|
|
4040
4040
|
};
|
|
4041
|
-
function equals$
|
|
4041
|
+
function equals$C(existing, incoming) {
|
|
4042
4042
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4043
4043
|
return false;
|
|
4044
4044
|
}
|
|
4045
4045
|
return true;
|
|
4046
4046
|
}
|
|
4047
|
-
const ingest$
|
|
4047
|
+
const ingest$C = function DataAlertRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4048
4048
|
if (process.env.NODE_ENV !== 'production') {
|
|
4049
|
-
const validateError = validate$
|
|
4049
|
+
const validateError = validate$15(input);
|
|
4050
4050
|
if (validateError !== null) {
|
|
4051
4051
|
throw validateError;
|
|
4052
4052
|
}
|
|
4053
4053
|
}
|
|
4054
4054
|
const key = keyBuilderFromType$k(luvio, input);
|
|
4055
|
-
const ttlToUse = TTL$
|
|
4056
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4055
|
+
const ttlToUse = TTL$q;
|
|
4056
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$C, "UnifiedAnalytics", VERSION$C, RepresentationType$E, equals$C);
|
|
4057
4057
|
return createLink(key);
|
|
4058
4058
|
};
|
|
4059
|
-
function getTypeCacheKeys$
|
|
4059
|
+
function getTypeCacheKeys$C(rootKeySet, luvio, input, fullPathFactory) {
|
|
4060
4060
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4061
4061
|
const rootKey = keyBuilderFromType$k(luvio, input);
|
|
4062
4062
|
rootKeySet.set(rootKey, {
|
|
4063
4063
|
namespace: keyPrefix,
|
|
4064
|
-
representationName: RepresentationType$
|
|
4064
|
+
representationName: RepresentationType$E,
|
|
4065
4065
|
mergeable: false
|
|
4066
4066
|
});
|
|
4067
4067
|
}
|
|
4068
4068
|
|
|
4069
|
-
const TTL$
|
|
4070
|
-
const VERSION$
|
|
4071
|
-
function validate$
|
|
4069
|
+
const TTL$p = 500;
|
|
4070
|
+
const VERSION$B = "d3e9e0efe02f7fa88865b7e72fe25f25";
|
|
4071
|
+
function validate$14(obj, path = 'DataAlertCollectionRepresentation') {
|
|
4072
4072
|
const v_error = (() => {
|
|
4073
4073
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4074
4074
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4081,7 +4081,7 @@ function validate$13(obj, path = 'DataAlertCollectionRepresentation') {
|
|
|
4081
4081
|
for (let i = 0; i < obj_dataAlerts.length; i++) {
|
|
4082
4082
|
const obj_dataAlerts_item = obj_dataAlerts[i];
|
|
4083
4083
|
const path_dataAlerts_item = path_dataAlerts + '[' + i + ']';
|
|
4084
|
-
const referencepath_dataAlerts_itemValidationError = validate$
|
|
4084
|
+
const referencepath_dataAlerts_itemValidationError = validate$15(obj_dataAlerts_item, path_dataAlerts_item);
|
|
4085
4085
|
if (referencepath_dataAlerts_itemValidationError !== null) {
|
|
4086
4086
|
let message = 'Object doesn\'t match DataAlertRepresentation (at "' + path_dataAlerts_item + '")\n';
|
|
4087
4087
|
message += referencepath_dataAlerts_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4122,62 +4122,62 @@ function validate$13(obj, path = 'DataAlertCollectionRepresentation') {
|
|
|
4122
4122
|
})();
|
|
4123
4123
|
return v_error === undefined ? null : v_error;
|
|
4124
4124
|
}
|
|
4125
|
-
const RepresentationType$
|
|
4126
|
-
function normalize$
|
|
4125
|
+
const RepresentationType$D = 'DataAlertCollectionRepresentation';
|
|
4126
|
+
function normalize$B(input, existing, path, luvio, store, timestamp) {
|
|
4127
4127
|
return input;
|
|
4128
4128
|
}
|
|
4129
|
-
const select$
|
|
4129
|
+
const select$1l = function DataAlertCollectionRepresentationSelect() {
|
|
4130
4130
|
return {
|
|
4131
4131
|
kind: 'Fragment',
|
|
4132
|
-
version: VERSION$
|
|
4132
|
+
version: VERSION$B,
|
|
4133
4133
|
private: [],
|
|
4134
4134
|
opaque: true
|
|
4135
4135
|
};
|
|
4136
4136
|
};
|
|
4137
|
-
function equals$
|
|
4137
|
+
function equals$B(existing, incoming) {
|
|
4138
4138
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4139
4139
|
return false;
|
|
4140
4140
|
}
|
|
4141
4141
|
return true;
|
|
4142
4142
|
}
|
|
4143
|
-
const ingest$
|
|
4143
|
+
const ingest$B = function DataAlertCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4144
4144
|
if (process.env.NODE_ENV !== 'production') {
|
|
4145
|
-
const validateError = validate$
|
|
4145
|
+
const validateError = validate$14(input);
|
|
4146
4146
|
if (validateError !== null) {
|
|
4147
4147
|
throw validateError;
|
|
4148
4148
|
}
|
|
4149
4149
|
}
|
|
4150
4150
|
const key = path.fullPath;
|
|
4151
|
-
const ttlToUse = TTL$
|
|
4152
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4151
|
+
const ttlToUse = TTL$p;
|
|
4152
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$B, "UnifiedAnalytics", VERSION$B, RepresentationType$D, equals$B);
|
|
4153
4153
|
return createLink(key);
|
|
4154
4154
|
};
|
|
4155
|
-
function getTypeCacheKeys$
|
|
4155
|
+
function getTypeCacheKeys$B(rootKeySet, luvio, input, fullPathFactory) {
|
|
4156
4156
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4157
4157
|
const rootKey = fullPathFactory();
|
|
4158
4158
|
rootKeySet.set(rootKey, {
|
|
4159
4159
|
namespace: keyPrefix,
|
|
4160
|
-
representationName: RepresentationType$
|
|
4160
|
+
representationName: RepresentationType$D,
|
|
4161
4161
|
mergeable: false
|
|
4162
4162
|
});
|
|
4163
4163
|
}
|
|
4164
4164
|
|
|
4165
|
-
function select$
|
|
4166
|
-
return select$
|
|
4165
|
+
function select$1k(luvio, params) {
|
|
4166
|
+
return select$1l();
|
|
4167
4167
|
}
|
|
4168
|
-
function keyBuilder$
|
|
4169
|
-
return keyPrefix + '::DataAlertCollectionRepresentation:(' + 'ownerId:' + params.queryParams.ownerId + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
4168
|
+
function keyBuilder$1e(luvio, params) {
|
|
4169
|
+
return keyPrefix + '::DataAlertCollectionRepresentation:(' + 'ownerId:' + params.queryParams.ownerId + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'contentType:' + params.queryParams.contentType + ')';
|
|
4170
4170
|
}
|
|
4171
|
-
function getResponseCacheKeys$
|
|
4172
|
-
getTypeCacheKeys$
|
|
4171
|
+
function getResponseCacheKeys$S(storeKeyMap, luvio, resourceParams, response) {
|
|
4172
|
+
getTypeCacheKeys$B(storeKeyMap, luvio, response, () => keyBuilder$1e(luvio, resourceParams));
|
|
4173
4173
|
}
|
|
4174
|
-
function ingestSuccess$
|
|
4174
|
+
function ingestSuccess$L(luvio, resourceParams, response, snapshotRefresh) {
|
|
4175
4175
|
const { body } = response;
|
|
4176
|
-
const key = keyBuilder$
|
|
4177
|
-
luvio.storeIngest(key, ingest$
|
|
4176
|
+
const key = keyBuilder$1e(luvio, resourceParams);
|
|
4177
|
+
luvio.storeIngest(key, ingest$B, body);
|
|
4178
4178
|
const snapshot = luvio.storeLookup({
|
|
4179
4179
|
recordId: key,
|
|
4180
|
-
node: select$
|
|
4180
|
+
node: select$1k(),
|
|
4181
4181
|
variables: {},
|
|
4182
4182
|
}, snapshotRefresh);
|
|
4183
4183
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4188,19 +4188,19 @@ function ingestSuccess$K(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4188
4188
|
deepFreeze(snapshot.data);
|
|
4189
4189
|
return snapshot;
|
|
4190
4190
|
}
|
|
4191
|
-
function ingestError$
|
|
4192
|
-
const key = keyBuilder$
|
|
4191
|
+
function ingestError$o(luvio, params, error, snapshotRefresh) {
|
|
4192
|
+
const key = keyBuilder$1e(luvio, params);
|
|
4193
4193
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4194
4194
|
const storeMetadataParams = {
|
|
4195
|
-
ttl: TTL$
|
|
4195
|
+
ttl: TTL$p,
|
|
4196
4196
|
namespace: keyPrefix,
|
|
4197
|
-
version: VERSION$
|
|
4198
|
-
representationName: RepresentationType$
|
|
4197
|
+
version: VERSION$B,
|
|
4198
|
+
representationName: RepresentationType$D
|
|
4199
4199
|
};
|
|
4200
4200
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4201
4201
|
return errorSnapshot;
|
|
4202
4202
|
}
|
|
4203
|
-
function createResourceRequest$
|
|
4203
|
+
function createResourceRequest$S(config) {
|
|
4204
4204
|
const headers = {};
|
|
4205
4205
|
return {
|
|
4206
4206
|
baseUri: '/services/data/v68.0',
|
|
@@ -4214,100 +4214,103 @@ function createResourceRequest$R(config) {
|
|
|
4214
4214
|
};
|
|
4215
4215
|
}
|
|
4216
4216
|
|
|
4217
|
-
const adapterName$
|
|
4217
|
+
const adapterName$S = 'getDataAlertCollection';
|
|
4218
4218
|
const getDataAlertCollection_ConfigPropertyMetadata = [
|
|
4219
4219
|
generateParamConfigMetadata('ownerId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
4220
4220
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4221
4221
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4222
|
+
generateParamConfigMetadata('contentType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4222
4223
|
];
|
|
4223
|
-
const getDataAlertCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4224
|
-
const createResourceParams$
|
|
4225
|
-
function keyBuilder$
|
|
4226
|
-
const resourceParams = createResourceParams$
|
|
4227
|
-
return keyBuilder$
|
|
4224
|
+
const getDataAlertCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$S, getDataAlertCollection_ConfigPropertyMetadata);
|
|
4225
|
+
const createResourceParams$S = /*#__PURE__*/ createResourceParams$11(getDataAlertCollection_ConfigPropertyMetadata);
|
|
4226
|
+
function keyBuilder$1d(luvio, config) {
|
|
4227
|
+
const resourceParams = createResourceParams$S(config);
|
|
4228
|
+
return keyBuilder$1e(luvio, resourceParams);
|
|
4228
4229
|
}
|
|
4229
|
-
function typeCheckConfig$
|
|
4230
|
+
function typeCheckConfig$S(untrustedConfig) {
|
|
4230
4231
|
const config = {};
|
|
4231
|
-
typeCheckConfig$
|
|
4232
|
+
typeCheckConfig$11(untrustedConfig, config, getDataAlertCollection_ConfigPropertyMetadata);
|
|
4232
4233
|
return config;
|
|
4233
4234
|
}
|
|
4234
|
-
function validateAdapterConfig$
|
|
4235
|
+
function validateAdapterConfig$S(untrustedConfig, configPropertyNames) {
|
|
4235
4236
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4236
4237
|
return null;
|
|
4237
4238
|
}
|
|
4238
4239
|
if (process.env.NODE_ENV !== 'production') {
|
|
4239
4240
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4240
4241
|
}
|
|
4241
|
-
const config = typeCheckConfig$
|
|
4242
|
+
const config = typeCheckConfig$S(untrustedConfig);
|
|
4242
4243
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4243
4244
|
return null;
|
|
4244
4245
|
}
|
|
4245
4246
|
return config;
|
|
4246
4247
|
}
|
|
4247
|
-
function adapterFragment$
|
|
4248
|
-
createResourceParams$
|
|
4249
|
-
return select$
|
|
4248
|
+
function adapterFragment$o(luvio, config) {
|
|
4249
|
+
createResourceParams$S(config);
|
|
4250
|
+
return select$1k();
|
|
4250
4251
|
}
|
|
4251
|
-
function onFetchResponseSuccess$
|
|
4252
|
-
const snapshot = ingestSuccess$
|
|
4252
|
+
function onFetchResponseSuccess$o(luvio, config, resourceParams, response) {
|
|
4253
|
+
const snapshot = ingestSuccess$L(luvio, resourceParams, response, {
|
|
4253
4254
|
config,
|
|
4254
|
-
resolve: () => buildNetworkSnapshot$
|
|
4255
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions)
|
|
4255
4256
|
});
|
|
4256
4257
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4257
4258
|
}
|
|
4258
|
-
function onFetchResponseError$
|
|
4259
|
-
const snapshot = ingestError$
|
|
4259
|
+
function onFetchResponseError$o(luvio, config, resourceParams, response) {
|
|
4260
|
+
const snapshot = ingestError$o(luvio, resourceParams, response, {
|
|
4260
4261
|
config,
|
|
4261
|
-
resolve: () => buildNetworkSnapshot$
|
|
4262
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions)
|
|
4262
4263
|
});
|
|
4263
4264
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4264
4265
|
}
|
|
4265
|
-
function buildNetworkSnapshot$
|
|
4266
|
-
const resourceParams = createResourceParams$
|
|
4267
|
-
const request = createResourceRequest$
|
|
4266
|
+
function buildNetworkSnapshot$S(luvio, config, options) {
|
|
4267
|
+
const resourceParams = createResourceParams$S(config);
|
|
4268
|
+
const request = createResourceRequest$S(resourceParams);
|
|
4268
4269
|
return luvio.dispatchResourceRequest(request, options)
|
|
4269
4270
|
.then((response) => {
|
|
4270
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4271
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$o(luvio, config, resourceParams, response), () => {
|
|
4271
4272
|
const cache = new StoreKeyMap();
|
|
4272
|
-
getResponseCacheKeys$
|
|
4273
|
+
getResponseCacheKeys$S(cache, luvio, resourceParams, response.body);
|
|
4273
4274
|
return cache;
|
|
4274
4275
|
});
|
|
4275
4276
|
}, (response) => {
|
|
4276
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4277
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$o(luvio, config, resourceParams, response));
|
|
4277
4278
|
});
|
|
4278
4279
|
}
|
|
4279
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4280
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4280
|
+
function buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext) {
|
|
4281
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$S, undefined, false);
|
|
4281
4282
|
}
|
|
4282
|
-
function buildCachedSnapshotCachePolicy$
|
|
4283
|
+
function buildCachedSnapshotCachePolicy$o(context, storeLookup) {
|
|
4283
4284
|
const { luvio, config } = context;
|
|
4284
4285
|
const selector = {
|
|
4285
|
-
recordId: keyBuilder$
|
|
4286
|
-
node: adapterFragment$
|
|
4286
|
+
recordId: keyBuilder$1d(luvio, config),
|
|
4287
|
+
node: adapterFragment$o(luvio, config),
|
|
4287
4288
|
variables: {},
|
|
4288
4289
|
};
|
|
4289
4290
|
const cacheSnapshot = storeLookup(selector, {
|
|
4290
4291
|
config,
|
|
4291
|
-
resolve: () => buildNetworkSnapshot$
|
|
4292
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions)
|
|
4292
4293
|
});
|
|
4293
4294
|
return cacheSnapshot;
|
|
4294
4295
|
}
|
|
4295
4296
|
const getDataAlertCollectionAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAlertCollection(untrustedConfig, requestContext) {
|
|
4296
|
-
const config = validateAdapterConfig$
|
|
4297
|
+
const config = validateAdapterConfig$S(untrustedConfig, getDataAlertCollection_ConfigPropertyNames);
|
|
4297
4298
|
// Invalid or incomplete config
|
|
4298
4299
|
if (config === null) {
|
|
4299
4300
|
return null;
|
|
4300
4301
|
}
|
|
4301
4302
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4302
|
-
buildCachedSnapshotCachePolicy$
|
|
4303
|
+
buildCachedSnapshotCachePolicy$o, buildNetworkSnapshotCachePolicy$o);
|
|
4303
4304
|
};
|
|
4304
4305
|
|
|
4305
4306
|
var DiscriminatorValues$3;
|
|
4306
4307
|
(function (DiscriminatorValues) {
|
|
4308
|
+
DiscriminatorValues["Slack"] = "Slack";
|
|
4307
4309
|
DiscriminatorValues["MsTeams"] = "MsTeams";
|
|
4310
|
+
DiscriminatorValues["NoOp"] = "NoOp";
|
|
4308
4311
|
DiscriminatorValues["Notification"] = "Notification";
|
|
4309
4312
|
})(DiscriminatorValues$3 || (DiscriminatorValues$3 = {}));
|
|
4310
|
-
function validate$
|
|
4313
|
+
function validate$13(obj, path = 'DataAlertReceiversInputRepresentation') {
|
|
4311
4314
|
const v_error = (() => {
|
|
4312
4315
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4313
4316
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4321,7 +4324,7 @@ function validate$12(obj, path = 'DataAlertReceiversInputRepresentation') {
|
|
|
4321
4324
|
return v_error === undefined ? null : v_error;
|
|
4322
4325
|
}
|
|
4323
4326
|
|
|
4324
|
-
function validate$
|
|
4327
|
+
function validate$12(obj, path = 'DataAlertDeliveryConfigurationInputRepresentation') {
|
|
4325
4328
|
const v_error = (() => {
|
|
4326
4329
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4327
4330
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4334,7 +4337,7 @@ function validate$11(obj, path = 'DataAlertDeliveryConfigurationInputRepresentat
|
|
|
4334
4337
|
for (let i = 0; i < obj_receivers.length; i++) {
|
|
4335
4338
|
const obj_receivers_item = obj_receivers[i];
|
|
4336
4339
|
const path_receivers_item = path_receivers + '[' + i + ']';
|
|
4337
|
-
const referencepath_receivers_itemValidationError = validate$
|
|
4340
|
+
const referencepath_receivers_itemValidationError = validate$13(obj_receivers_item, path_receivers_item);
|
|
4338
4341
|
if (referencepath_receivers_itemValidationError !== null) {
|
|
4339
4342
|
let message = 'Object doesn\'t match DataAlertReceiversInputRepresentation (at "' + path_receivers_item + '")\n';
|
|
4340
4343
|
message += referencepath_receivers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4345,7 +4348,7 @@ function validate$11(obj, path = 'DataAlertDeliveryConfigurationInputRepresentat
|
|
|
4345
4348
|
return v_error === undefined ? null : v_error;
|
|
4346
4349
|
}
|
|
4347
4350
|
|
|
4348
|
-
function validate$
|
|
4351
|
+
function validate$11(obj, path = 'UnifiedFilterInputRepresentation') {
|
|
4349
4352
|
const v_error = (() => {
|
|
4350
4353
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4351
4354
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4387,7 +4390,7 @@ var DiscriminatorValues$2;
|
|
|
4387
4390
|
DiscriminatorValues["RawValue"] = "RawValue";
|
|
4388
4391
|
DiscriminatorValues["Insights"] = "Insights";
|
|
4389
4392
|
})(DiscriminatorValues$2 || (DiscriminatorValues$2 = {}));
|
|
4390
|
-
function validate
|
|
4393
|
+
function validate$10(obj, path = 'DataAlertValueInputRepresentation') {
|
|
4391
4394
|
const v_error = (() => {
|
|
4392
4395
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4393
4396
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4401,7 +4404,7 @@ function validate$$(obj, path = 'DataAlertValueInputRepresentation') {
|
|
|
4401
4404
|
return v_error === undefined ? null : v_error;
|
|
4402
4405
|
}
|
|
4403
4406
|
|
|
4404
|
-
function validate
|
|
4407
|
+
function validate$$(obj, path = 'DataAlertValueRightOperandInputRepresentation') {
|
|
4405
4408
|
const v_error = (() => {
|
|
4406
4409
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4407
4410
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4415,14 +4418,14 @@ function validate$_(obj, path = 'DataAlertValueRightOperandInputRepresentation')
|
|
|
4415
4418
|
return v_error === undefined ? null : v_error;
|
|
4416
4419
|
}
|
|
4417
4420
|
|
|
4418
|
-
function validate$
|
|
4421
|
+
function validate$_(obj, path = 'DataAlertConditionInputRepresentation') {
|
|
4419
4422
|
const v_error = (() => {
|
|
4420
4423
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4421
4424
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4422
4425
|
}
|
|
4423
4426
|
const obj_leftOperand = obj.leftOperand;
|
|
4424
4427
|
const path_leftOperand = path + '.leftOperand';
|
|
4425
|
-
const referencepath_leftOperandValidationError = validate
|
|
4428
|
+
const referencepath_leftOperandValidationError = validate$10(obj_leftOperand, path_leftOperand);
|
|
4426
4429
|
if (referencepath_leftOperandValidationError !== null) {
|
|
4427
4430
|
let message = 'Object doesn\'t match DataAlertValueInputRepresentation (at "' + path_leftOperand + '")\n';
|
|
4428
4431
|
message += referencepath_leftOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4435,7 +4438,7 @@ function validate$Z(obj, path = 'DataAlertConditionInputRepresentation') {
|
|
|
4435
4438
|
}
|
|
4436
4439
|
const obj_rightOperand = obj.rightOperand;
|
|
4437
4440
|
const path_rightOperand = path + '.rightOperand';
|
|
4438
|
-
const referencepath_rightOperandValidationError = validate
|
|
4441
|
+
const referencepath_rightOperandValidationError = validate$$(obj_rightOperand, path_rightOperand);
|
|
4439
4442
|
if (referencepath_rightOperandValidationError !== null) {
|
|
4440
4443
|
let message = 'Object doesn\'t match DataAlertValueRightOperandInputRepresentation (at "' + path_rightOperand + '")\n';
|
|
4441
4444
|
message += referencepath_rightOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4445,7 +4448,7 @@ function validate$Z(obj, path = 'DataAlertConditionInputRepresentation') {
|
|
|
4445
4448
|
return v_error === undefined ? null : v_error;
|
|
4446
4449
|
}
|
|
4447
4450
|
|
|
4448
|
-
function validate$
|
|
4451
|
+
function validate$Z(obj, path = 'DataAlertThresholdsInputRepresentation') {
|
|
4449
4452
|
const v_error = (() => {
|
|
4450
4453
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4451
4454
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4458,7 +4461,7 @@ function validate$Y(obj, path = 'DataAlertThresholdsInputRepresentation') {
|
|
|
4458
4461
|
for (let i = 0; i < obj_conditions.length; i++) {
|
|
4459
4462
|
const obj_conditions_item = obj_conditions[i];
|
|
4460
4463
|
const path_conditions_item = path_conditions + '[' + i + ']';
|
|
4461
|
-
const referencepath_conditions_itemValidationError = validate$
|
|
4464
|
+
const referencepath_conditions_itemValidationError = validate$_(obj_conditions_item, path_conditions_item);
|
|
4462
4465
|
if (referencepath_conditions_itemValidationError !== null) {
|
|
4463
4466
|
let message = 'Object doesn\'t match DataAlertConditionInputRepresentation (at "' + path_conditions_item + '")\n';
|
|
4464
4467
|
message += referencepath_conditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4474,19 +4477,19 @@ function validate$Y(obj, path = 'DataAlertThresholdsInputRepresentation') {
|
|
|
4474
4477
|
return v_error === undefined ? null : v_error;
|
|
4475
4478
|
}
|
|
4476
4479
|
|
|
4477
|
-
function select$
|
|
4478
|
-
return select$
|
|
4480
|
+
function select$1j(luvio, params) {
|
|
4481
|
+
return select$1m();
|
|
4479
4482
|
}
|
|
4480
|
-
function getResponseCacheKeys$
|
|
4481
|
-
getTypeCacheKeys$
|
|
4483
|
+
function getResponseCacheKeys$R(storeKeyMap, luvio, resourceParams, response) {
|
|
4484
|
+
getTypeCacheKeys$C(storeKeyMap, luvio, response);
|
|
4482
4485
|
}
|
|
4483
|
-
function ingestSuccess$
|
|
4486
|
+
function ingestSuccess$K(luvio, resourceParams, response) {
|
|
4484
4487
|
const { body } = response;
|
|
4485
4488
|
const key = keyBuilderFromType$k(luvio, body);
|
|
4486
|
-
luvio.storeIngest(key, ingest$
|
|
4489
|
+
luvio.storeIngest(key, ingest$C, body);
|
|
4487
4490
|
const snapshot = luvio.storeLookup({
|
|
4488
4491
|
recordId: key,
|
|
4489
|
-
node: select$
|
|
4492
|
+
node: select$1j(),
|
|
4490
4493
|
variables: {},
|
|
4491
4494
|
});
|
|
4492
4495
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4497,7 +4500,7 @@ function ingestSuccess$J(luvio, resourceParams, response) {
|
|
|
4497
4500
|
deepFreeze(snapshot.data);
|
|
4498
4501
|
return snapshot;
|
|
4499
4502
|
}
|
|
4500
|
-
function createResourceRequest$
|
|
4503
|
+
function createResourceRequest$R(config) {
|
|
4501
4504
|
const headers = {};
|
|
4502
4505
|
return {
|
|
4503
4506
|
baseUri: '/services/data/v68.0',
|
|
@@ -4516,7 +4519,7 @@ var DiscriminatorValues$1;
|
|
|
4516
4519
|
DiscriminatorValues["Brief"] = "Brief";
|
|
4517
4520
|
DiscriminatorValues["Metric"] = "Metric";
|
|
4518
4521
|
})(DiscriminatorValues$1 || (DiscriminatorValues$1 = {}));
|
|
4519
|
-
function validate$
|
|
4522
|
+
function validate$Y(obj, path = 'DataAlertContentInputRepresentation') {
|
|
4520
4523
|
const v_error = (() => {
|
|
4521
4524
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4522
4525
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4536,7 +4539,7 @@ var DiscriminatorValues;
|
|
|
4536
4539
|
DiscriminatorValues["Weekly"] = "Weekly";
|
|
4537
4540
|
DiscriminatorValues["EveryNMinutes"] = "EveryNMinutes";
|
|
4538
4541
|
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
4539
|
-
function validate$
|
|
4542
|
+
function validate$X(obj, path = 'DataAlertScheduleInputRepresentation') {
|
|
4540
4543
|
const v_error = (() => {
|
|
4541
4544
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4542
4545
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4564,7 +4567,7 @@ function validate$W(obj, path = 'DataAlertScheduleInputRepresentation') {
|
|
|
4564
4567
|
return v_error === undefined ? null : v_error;
|
|
4565
4568
|
}
|
|
4566
4569
|
|
|
4567
|
-
const adapterName$
|
|
4570
|
+
const adapterName$R = 'createDataAlert';
|
|
4568
4571
|
const createDataAlert_ConfigPropertyMetadata = [
|
|
4569
4572
|
generateParamConfigMetadata('runNow', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
4570
4573
|
generateParamConfigMetadata('content', true, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -4576,28 +4579,28 @@ const createDataAlert_ConfigPropertyMetadata = [
|
|
|
4576
4579
|
generateParamConfigMetadata('agent', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4577
4580
|
generateParamConfigMetadata('isEnabled', false, 2 /* Body */, 1 /* Boolean */),
|
|
4578
4581
|
];
|
|
4579
|
-
const createDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4580
|
-
const createResourceParams$
|
|
4581
|
-
function typeCheckConfig$
|
|
4582
|
+
const createDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$R, createDataAlert_ConfigPropertyMetadata);
|
|
4583
|
+
const createResourceParams$R = /*#__PURE__*/ createResourceParams$11(createDataAlert_ConfigPropertyMetadata);
|
|
4584
|
+
function typeCheckConfig$R(untrustedConfig) {
|
|
4582
4585
|
const config = {};
|
|
4583
|
-
typeCheckConfig$
|
|
4586
|
+
typeCheckConfig$11(untrustedConfig, config, createDataAlert_ConfigPropertyMetadata);
|
|
4584
4587
|
const untrustedConfig_content = untrustedConfig.content;
|
|
4585
|
-
const referenceDataAlertContentInputRepresentationValidationError = validate$
|
|
4588
|
+
const referenceDataAlertContentInputRepresentationValidationError = validate$Y(untrustedConfig_content);
|
|
4586
4589
|
if (referenceDataAlertContentInputRepresentationValidationError === null) {
|
|
4587
4590
|
config.content = untrustedConfig_content;
|
|
4588
4591
|
}
|
|
4589
4592
|
const untrustedConfig_deliveryConfigurations = untrustedConfig.deliveryConfigurations;
|
|
4590
|
-
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$
|
|
4593
|
+
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$12(untrustedConfig_deliveryConfigurations);
|
|
4591
4594
|
if (referenceDataAlertDeliveryConfigurationInputRepresentationValidationError === null) {
|
|
4592
4595
|
config.deliveryConfigurations = untrustedConfig_deliveryConfigurations;
|
|
4593
4596
|
}
|
|
4594
4597
|
const untrustedConfig_schedule = untrustedConfig.schedule;
|
|
4595
|
-
const referenceDataAlertScheduleInputRepresentationValidationError = validate$
|
|
4598
|
+
const referenceDataAlertScheduleInputRepresentationValidationError = validate$X(untrustedConfig_schedule);
|
|
4596
4599
|
if (referenceDataAlertScheduleInputRepresentationValidationError === null) {
|
|
4597
4600
|
config.schedule = untrustedConfig_schedule;
|
|
4598
4601
|
}
|
|
4599
4602
|
const untrustedConfig_thresholds = untrustedConfig.thresholds;
|
|
4600
|
-
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$
|
|
4603
|
+
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$Z(untrustedConfig_thresholds);
|
|
4601
4604
|
if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
|
|
4602
4605
|
config.thresholds = untrustedConfig_thresholds;
|
|
4603
4606
|
}
|
|
@@ -4610,30 +4613,30 @@ function typeCheckConfig$Q(untrustedConfig) {
|
|
|
4610
4613
|
}
|
|
4611
4614
|
return config;
|
|
4612
4615
|
}
|
|
4613
|
-
function validateAdapterConfig$
|
|
4616
|
+
function validateAdapterConfig$R(untrustedConfig, configPropertyNames) {
|
|
4614
4617
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4615
4618
|
return null;
|
|
4616
4619
|
}
|
|
4617
4620
|
if (process.env.NODE_ENV !== 'production') {
|
|
4618
4621
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4619
4622
|
}
|
|
4620
|
-
const config = typeCheckConfig$
|
|
4623
|
+
const config = typeCheckConfig$R(untrustedConfig);
|
|
4621
4624
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4622
4625
|
return null;
|
|
4623
4626
|
}
|
|
4624
4627
|
return config;
|
|
4625
4628
|
}
|
|
4626
|
-
function buildNetworkSnapshot$
|
|
4627
|
-
const resourceParams = createResourceParams$
|
|
4628
|
-
const request = createResourceRequest$
|
|
4629
|
+
function buildNetworkSnapshot$R(luvio, config, options) {
|
|
4630
|
+
const resourceParams = createResourceParams$R(config);
|
|
4631
|
+
const request = createResourceRequest$R(resourceParams);
|
|
4629
4632
|
return luvio.dispatchResourceRequest(request, options)
|
|
4630
4633
|
.then((response) => {
|
|
4631
4634
|
return luvio.handleSuccessResponse(() => {
|
|
4632
|
-
const snapshot = ingestSuccess$
|
|
4635
|
+
const snapshot = ingestSuccess$K(luvio, resourceParams, response);
|
|
4633
4636
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4634
4637
|
}, () => {
|
|
4635
4638
|
const cache = new StoreKeyMap();
|
|
4636
|
-
getResponseCacheKeys$
|
|
4639
|
+
getResponseCacheKeys$R(cache, luvio, resourceParams, response.body);
|
|
4637
4640
|
return cache;
|
|
4638
4641
|
});
|
|
4639
4642
|
}, (response) => {
|
|
@@ -4643,16 +4646,16 @@ function buildNetworkSnapshot$Q(luvio, config, options) {
|
|
|
4643
4646
|
}
|
|
4644
4647
|
const createDataAlertAdapterFactory = (luvio) => {
|
|
4645
4648
|
return function createDataAlert(untrustedConfig) {
|
|
4646
|
-
const config = validateAdapterConfig$
|
|
4649
|
+
const config = validateAdapterConfig$R(untrustedConfig, createDataAlert_ConfigPropertyNames);
|
|
4647
4650
|
// Invalid or incomplete config
|
|
4648
4651
|
if (config === null) {
|
|
4649
4652
|
throw new Error('Invalid config for "createDataAlert"');
|
|
4650
4653
|
}
|
|
4651
|
-
return buildNetworkSnapshot$
|
|
4654
|
+
return buildNetworkSnapshot$R(luvio, config);
|
|
4652
4655
|
};
|
|
4653
4656
|
};
|
|
4654
4657
|
|
|
4655
|
-
function validate$
|
|
4658
|
+
function validate$W(obj, path = 'DataAlertPropertyFilterInputRepresentation') {
|
|
4656
4659
|
const v_error = (() => {
|
|
4657
4660
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4658
4661
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4678,9 +4681,9 @@ function validate$V(obj, path = 'DataAlertPropertyFilterInputRepresentation') {
|
|
|
4678
4681
|
return v_error === undefined ? null : v_error;
|
|
4679
4682
|
}
|
|
4680
4683
|
|
|
4681
|
-
const TTL$
|
|
4682
|
-
const VERSION$
|
|
4683
|
-
function validate$
|
|
4684
|
+
const TTL$o = 500;
|
|
4685
|
+
const VERSION$A = "8ee49a59b88eeef0e19aa1298280a0a7";
|
|
4686
|
+
function validate$V(obj, path = 'DataAlertQueryCollectionRepresentation') {
|
|
4684
4687
|
const v_error = (() => {
|
|
4685
4688
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4686
4689
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4693,7 +4696,7 @@ function validate$U(obj, path = 'DataAlertQueryCollectionRepresentation') {
|
|
|
4693
4696
|
for (let i = 0; i < obj_dataAlerts.length; i++) {
|
|
4694
4697
|
const obj_dataAlerts_item = obj_dataAlerts[i];
|
|
4695
4698
|
const path_dataAlerts_item = path_dataAlerts + '[' + i + ']';
|
|
4696
|
-
const referencepath_dataAlerts_itemValidationError = validate$
|
|
4699
|
+
const referencepath_dataAlerts_itemValidationError = validate$15(obj_dataAlerts_item, path_dataAlerts_item);
|
|
4697
4700
|
if (referencepath_dataAlerts_itemValidationError !== null) {
|
|
4698
4701
|
let message = 'Object doesn\'t match DataAlertRepresentation (at "' + path_dataAlerts_item + '")\n';
|
|
4699
4702
|
message += referencepath_dataAlerts_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4703,11 +4706,260 @@ function validate$U(obj, path = 'DataAlertQueryCollectionRepresentation') {
|
|
|
4703
4706
|
})();
|
|
4704
4707
|
return v_error === undefined ? null : v_error;
|
|
4705
4708
|
}
|
|
4706
|
-
const RepresentationType$
|
|
4709
|
+
const RepresentationType$C = 'DataAlertQueryCollectionRepresentation';
|
|
4710
|
+
function normalize$A(input, existing, path, luvio, store, timestamp) {
|
|
4711
|
+
return input;
|
|
4712
|
+
}
|
|
4713
|
+
const select$1i = function DataAlertQueryCollectionRepresentationSelect() {
|
|
4714
|
+
return {
|
|
4715
|
+
kind: 'Fragment',
|
|
4716
|
+
version: VERSION$A,
|
|
4717
|
+
private: [],
|
|
4718
|
+
opaque: true
|
|
4719
|
+
};
|
|
4720
|
+
};
|
|
4721
|
+
function equals$A(existing, incoming) {
|
|
4722
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4723
|
+
return false;
|
|
4724
|
+
}
|
|
4725
|
+
return true;
|
|
4726
|
+
}
|
|
4727
|
+
const ingest$A = function DataAlertQueryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4728
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4729
|
+
const validateError = validate$V(input);
|
|
4730
|
+
if (validateError !== null) {
|
|
4731
|
+
throw validateError;
|
|
4732
|
+
}
|
|
4733
|
+
}
|
|
4734
|
+
const key = path.fullPath;
|
|
4735
|
+
const ttlToUse = TTL$o;
|
|
4736
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$A, "UnifiedAnalytics", VERSION$A, RepresentationType$C, equals$A);
|
|
4737
|
+
return createLink(key);
|
|
4738
|
+
};
|
|
4739
|
+
function getTypeCacheKeys$A(rootKeySet, luvio, input, fullPathFactory) {
|
|
4740
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4741
|
+
const rootKey = fullPathFactory();
|
|
4742
|
+
rootKeySet.set(rootKey, {
|
|
4743
|
+
namespace: keyPrefix,
|
|
4744
|
+
representationName: RepresentationType$C,
|
|
4745
|
+
mergeable: false
|
|
4746
|
+
});
|
|
4747
|
+
}
|
|
4748
|
+
|
|
4749
|
+
function select$1h(luvio, params) {
|
|
4750
|
+
return select$1i();
|
|
4751
|
+
}
|
|
4752
|
+
function keyBuilder$1c(luvio, params) {
|
|
4753
|
+
var _a, _b, _c, _d, _e, _f;
|
|
4754
|
+
return keyPrefix + '::DataAlertQueryCollectionRepresentation:(' + 'ownerId:' + params.body.ownerId + '::' + (params.body.assetId === undefined ? 'assetId' : 'assetId:' + params.body.assetId) + '::' + (params.body.dataAlertTypes === undefined ? 'dataAlertTypes' : 'dataAlertTypes:' + params.body.dataAlertTypes) + '::' + (((_a = params.body.timeRange) === null || _a === void 0 ? void 0 : _a.fieldName) === undefined ? 'timeRange.fieldName' : 'timeRange.fieldName:' + ((_b = params.body.timeRange) === null || _b === void 0 ? void 0 : _b.fieldName)) + '::' + (((_c = params.body.timeRange) === null || _c === void 0 ? void 0 : _c.operator) === undefined ? 'timeRange.operator' : 'timeRange.operator:' + ((_d = params.body.timeRange) === null || _d === void 0 ? void 0 : _d.operator)) + '::' + (((_e = params.body.timeRange) === null || _e === void 0 ? void 0 : _e.values) === undefined ? 'timeRange.values' : 'timeRange.values:' + ((_f = params.body.timeRange) === null || _f === void 0 ? void 0 : _f.values)) + '::' + (params.body.includeProperties === undefined ? 'includeProperties' : 'includeProperties:' + params.body.includeProperties) + '::' + (params.body.propertyFilters === undefined ? undefined : ('[' + params.body.propertyFilters.map(element => 'propertyFilters.property:' + element.property + '::' + 'propertyFilters.values:' + element.values).join(',') + ']')) + ')';
|
|
4755
|
+
}
|
|
4756
|
+
function getResponseCacheKeys$Q(storeKeyMap, luvio, resourceParams, response) {
|
|
4757
|
+
getTypeCacheKeys$A(storeKeyMap, luvio, response, () => keyBuilder$1c(luvio, resourceParams));
|
|
4758
|
+
}
|
|
4759
|
+
function ingestSuccess$J(luvio, resourceParams, response, snapshotRefresh) {
|
|
4760
|
+
const { body } = response;
|
|
4761
|
+
const key = keyBuilder$1c(luvio, resourceParams);
|
|
4762
|
+
luvio.storeIngest(key, ingest$A, body);
|
|
4763
|
+
const snapshot = luvio.storeLookup({
|
|
4764
|
+
recordId: key,
|
|
4765
|
+
node: select$1h(),
|
|
4766
|
+
variables: {},
|
|
4767
|
+
}, snapshotRefresh);
|
|
4768
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4769
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4770
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4771
|
+
}
|
|
4772
|
+
}
|
|
4773
|
+
deepFreeze(snapshot.data);
|
|
4774
|
+
return snapshot;
|
|
4775
|
+
}
|
|
4776
|
+
function ingestError$n(luvio, params, error, snapshotRefresh) {
|
|
4777
|
+
const key = keyBuilder$1c(luvio, params);
|
|
4778
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4779
|
+
const storeMetadataParams = {
|
|
4780
|
+
ttl: TTL$o,
|
|
4781
|
+
namespace: keyPrefix,
|
|
4782
|
+
version: VERSION$A,
|
|
4783
|
+
representationName: RepresentationType$C
|
|
4784
|
+
};
|
|
4785
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4786
|
+
return errorSnapshot;
|
|
4787
|
+
}
|
|
4788
|
+
function createResourceRequest$Q(config) {
|
|
4789
|
+
const headers = {};
|
|
4790
|
+
return {
|
|
4791
|
+
baseUri: '/services/data/v68.0',
|
|
4792
|
+
basePath: '/tableau/dataAlerts/query',
|
|
4793
|
+
method: 'post',
|
|
4794
|
+
body: config.body,
|
|
4795
|
+
urlParams: {},
|
|
4796
|
+
queryParams: {},
|
|
4797
|
+
headers,
|
|
4798
|
+
priority: 'normal',
|
|
4799
|
+
};
|
|
4800
|
+
}
|
|
4801
|
+
|
|
4802
|
+
const adapterName$Q = 'postDataAlertQuery';
|
|
4803
|
+
const postDataAlertQuery_ConfigPropertyMetadata = [
|
|
4804
|
+
generateParamConfigMetadata('ownerId', true, 2 /* Body */, 0 /* String */),
|
|
4805
|
+
generateParamConfigMetadata('assetId', false, 2 /* Body */, 0 /* String */),
|
|
4806
|
+
generateParamConfigMetadata('dataAlertTypes', false, 2 /* Body */, 0 /* String */, true),
|
|
4807
|
+
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4808
|
+
generateParamConfigMetadata('includeProperties', false, 2 /* Body */, 0 /* String */, true),
|
|
4809
|
+
generateParamConfigMetadata('propertyFilters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4810
|
+
];
|
|
4811
|
+
const postDataAlertQuery_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Q, postDataAlertQuery_ConfigPropertyMetadata);
|
|
4812
|
+
const createResourceParams$Q = /*#__PURE__*/ createResourceParams$11(postDataAlertQuery_ConfigPropertyMetadata);
|
|
4813
|
+
function keyBuilder$1b(luvio, config) {
|
|
4814
|
+
const resourceParams = createResourceParams$Q(config);
|
|
4815
|
+
return keyBuilder$1c(luvio, resourceParams);
|
|
4816
|
+
}
|
|
4817
|
+
function typeCheckConfig$Q(untrustedConfig) {
|
|
4818
|
+
const config = {};
|
|
4819
|
+
typeCheckConfig$11(untrustedConfig, config, postDataAlertQuery_ConfigPropertyMetadata);
|
|
4820
|
+
const untrustedConfig_timeRange = untrustedConfig.timeRange;
|
|
4821
|
+
const referenceUnifiedFilterInputRepresentationValidationError = validate$11(untrustedConfig_timeRange);
|
|
4822
|
+
if (referenceUnifiedFilterInputRepresentationValidationError === null) {
|
|
4823
|
+
config.timeRange = untrustedConfig_timeRange;
|
|
4824
|
+
}
|
|
4825
|
+
const untrustedConfig_propertyFilters = untrustedConfig.propertyFilters;
|
|
4826
|
+
if (ArrayIsArray$1(untrustedConfig_propertyFilters)) {
|
|
4827
|
+
const untrustedConfig_propertyFilters_array = [];
|
|
4828
|
+
for (let i = 0, arrayLength = untrustedConfig_propertyFilters.length; i < arrayLength; i++) {
|
|
4829
|
+
const untrustedConfig_propertyFilters_item = untrustedConfig_propertyFilters[i];
|
|
4830
|
+
const referenceDataAlertPropertyFilterInputRepresentationValidationError = validate$W(untrustedConfig_propertyFilters_item);
|
|
4831
|
+
if (referenceDataAlertPropertyFilterInputRepresentationValidationError === null) {
|
|
4832
|
+
untrustedConfig_propertyFilters_array.push(untrustedConfig_propertyFilters_item);
|
|
4833
|
+
}
|
|
4834
|
+
}
|
|
4835
|
+
config.propertyFilters = untrustedConfig_propertyFilters_array;
|
|
4836
|
+
}
|
|
4837
|
+
return config;
|
|
4838
|
+
}
|
|
4839
|
+
function validateAdapterConfig$Q(untrustedConfig, configPropertyNames) {
|
|
4840
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4841
|
+
return null;
|
|
4842
|
+
}
|
|
4843
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4844
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4845
|
+
}
|
|
4846
|
+
const config = typeCheckConfig$Q(untrustedConfig);
|
|
4847
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4848
|
+
return null;
|
|
4849
|
+
}
|
|
4850
|
+
return config;
|
|
4851
|
+
}
|
|
4852
|
+
function adapterFragment$n(luvio, config) {
|
|
4853
|
+
createResourceParams$Q(config);
|
|
4854
|
+
return select$1h();
|
|
4855
|
+
}
|
|
4856
|
+
function onFetchResponseSuccess$n(luvio, config, resourceParams, response) {
|
|
4857
|
+
const snapshot = ingestSuccess$J(luvio, resourceParams, response, {
|
|
4858
|
+
config,
|
|
4859
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions)
|
|
4860
|
+
});
|
|
4861
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4862
|
+
}
|
|
4863
|
+
function onFetchResponseError$n(luvio, config, resourceParams, response) {
|
|
4864
|
+
const snapshot = ingestError$n(luvio, resourceParams, response, {
|
|
4865
|
+
config,
|
|
4866
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions)
|
|
4867
|
+
});
|
|
4868
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4869
|
+
}
|
|
4870
|
+
function buildNetworkSnapshot$Q(luvio, config, options) {
|
|
4871
|
+
const resourceParams = createResourceParams$Q(config);
|
|
4872
|
+
const request = createResourceRequest$Q(resourceParams);
|
|
4873
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4874
|
+
.then((response) => {
|
|
4875
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$n(luvio, config, resourceParams, response), () => {
|
|
4876
|
+
const cache = new StoreKeyMap();
|
|
4877
|
+
getResponseCacheKeys$Q(cache, luvio, resourceParams, response.body);
|
|
4878
|
+
return cache;
|
|
4879
|
+
});
|
|
4880
|
+
}, (response) => {
|
|
4881
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$n(luvio, config, resourceParams, response));
|
|
4882
|
+
});
|
|
4883
|
+
}
|
|
4884
|
+
function buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext) {
|
|
4885
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$Q, 'get', false);
|
|
4886
|
+
}
|
|
4887
|
+
function buildCachedSnapshotCachePolicy$n(context, storeLookup) {
|
|
4888
|
+
const { luvio, config } = context;
|
|
4889
|
+
const selector = {
|
|
4890
|
+
recordId: keyBuilder$1b(luvio, config),
|
|
4891
|
+
node: adapterFragment$n(luvio, config),
|
|
4892
|
+
variables: {},
|
|
4893
|
+
};
|
|
4894
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4895
|
+
config,
|
|
4896
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions)
|
|
4897
|
+
});
|
|
4898
|
+
return cacheSnapshot;
|
|
4899
|
+
}
|
|
4900
|
+
const postDataAlertQueryAdapterFactory = (luvio) => function UnifiedAnalytics__postDataAlertQuery(untrustedConfig, requestContext) {
|
|
4901
|
+
const config = validateAdapterConfig$Q(untrustedConfig, postDataAlertQuery_ConfigPropertyNames);
|
|
4902
|
+
// Invalid or incomplete config
|
|
4903
|
+
if (config === null) {
|
|
4904
|
+
return null;
|
|
4905
|
+
}
|
|
4906
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4907
|
+
buildCachedSnapshotCachePolicy$n, buildNetworkSnapshotCachePolicy$n);
|
|
4908
|
+
};
|
|
4909
|
+
|
|
4910
|
+
const TTL$n = 100;
|
|
4911
|
+
const VERSION$z = "f7ee05323d8cb6213e400b674bb5c0a1";
|
|
4912
|
+
function validate$U(obj, path = 'DataAlertTransientRunOutputRepresentation') {
|
|
4913
|
+
const v_error = (() => {
|
|
4914
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4915
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4916
|
+
}
|
|
4917
|
+
const obj_executedAt = obj.executedAt;
|
|
4918
|
+
const path_executedAt = path + '.executedAt';
|
|
4919
|
+
if (typeof obj_executedAt !== 'string') {
|
|
4920
|
+
return new TypeError('Expected "string" but received "' + typeof obj_executedAt + '" (at "' + path_executedAt + '")');
|
|
4921
|
+
}
|
|
4922
|
+
if (obj.id !== undefined) {
|
|
4923
|
+
const obj_id = obj.id;
|
|
4924
|
+
const path_id = path + '.id';
|
|
4925
|
+
let obj_id_union0 = null;
|
|
4926
|
+
const obj_id_union0_error = (() => {
|
|
4927
|
+
if (typeof obj_id !== 'string') {
|
|
4928
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
4929
|
+
}
|
|
4930
|
+
})();
|
|
4931
|
+
if (obj_id_union0_error != null) {
|
|
4932
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
4933
|
+
}
|
|
4934
|
+
let obj_id_union1 = null;
|
|
4935
|
+
const obj_id_union1_error = (() => {
|
|
4936
|
+
if (obj_id !== null) {
|
|
4937
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
4938
|
+
}
|
|
4939
|
+
})();
|
|
4940
|
+
if (obj_id_union1_error != null) {
|
|
4941
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
4942
|
+
}
|
|
4943
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
4944
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
4945
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4946
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4947
|
+
return new TypeError(message);
|
|
4948
|
+
}
|
|
4949
|
+
}
|
|
4950
|
+
const obj_triggered = obj.triggered;
|
|
4951
|
+
const path_triggered = path + '.triggered';
|
|
4952
|
+
if (typeof obj_triggered !== 'boolean') {
|
|
4953
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_triggered + '" (at "' + path_triggered + '")');
|
|
4954
|
+
}
|
|
4955
|
+
})();
|
|
4956
|
+
return v_error === undefined ? null : v_error;
|
|
4957
|
+
}
|
|
4958
|
+
const RepresentationType$B = 'DataAlertTransientRunOutputRepresentation';
|
|
4707
4959
|
function normalize$z(input, existing, path, luvio, store, timestamp) {
|
|
4708
4960
|
return input;
|
|
4709
4961
|
}
|
|
4710
|
-
const select$1g = function
|
|
4962
|
+
const select$1g = function DataAlertTransientRunOutputRepresentationSelect() {
|
|
4711
4963
|
return {
|
|
4712
4964
|
kind: 'Fragment',
|
|
4713
4965
|
version: VERSION$z,
|
|
@@ -4721,7 +4973,7 @@ function equals$z(existing, incoming) {
|
|
|
4721
4973
|
}
|
|
4722
4974
|
return true;
|
|
4723
4975
|
}
|
|
4724
|
-
const ingest$z = function
|
|
4976
|
+
const ingest$z = function DataAlertTransientRunOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4725
4977
|
if (process.env.NODE_ENV !== 'production') {
|
|
4726
4978
|
const validateError = validate$U(input);
|
|
4727
4979
|
if (validateError !== null) {
|
|
@@ -4747,8 +4999,8 @@ function select$1f(luvio, params) {
|
|
|
4747
4999
|
return select$1g();
|
|
4748
5000
|
}
|
|
4749
5001
|
function keyBuilder$1a(luvio, params) {
|
|
4750
|
-
var _a, _b, _c
|
|
4751
|
-
return keyPrefix + '::
|
|
5002
|
+
var _a, _b, _c;
|
|
5003
|
+
return keyPrefix + '::DataAlertTransientRunOutputRepresentation:(' + 'content.type:' + params.body.content.type + '::' + 'dataAlertType:' + params.body.dataAlertType + '::' + '[' + params.body.deliveryConfigurations.receivers.map(element => 'deliveryConfigurations.receivers.type:' + element.type).join(',') + ']' + '::' + (params.body.schedule.hoursOfDay === undefined ? 'schedule.hoursOfDay' : 'schedule.hoursOfDay:' + params.body.schedule.hoursOfDay) + '::' + 'schedule.type:' + params.body.schedule.type + '::' + '[' + ((_a = params.body.thresholds) === null || _a === void 0 ? void 0 : _a.conditions.map(element => 'thresholds.conditions.leftOperand.type:' + element.leftOperand.type + '::' + 'thresholds.conditions.rightOperand.type:' + element.rightOperand.type + '::' + 'thresholds.conditions.operator:' + element.operator).join(',')) + ']' + '::' + (((_b = params.body.thresholds) === null || _b === void 0 ? void 0 : _b.customLogicalOperation) === undefined ? 'thresholds.customLogicalOperation' : 'thresholds.customLogicalOperation:' + ((_c = params.body.thresholds) === null || _c === void 0 ? void 0 : _c.customLogicalOperation)) + '::' + 'utterance:' + params.body.utterance + '::' + (params.body.agent === undefined ? 'agent' : 'agent:' + params.body.agent) + '::' + (params.body.isEnabled === undefined ? 'isEnabled' : 'isEnabled:' + params.body.isEnabled) + ')';
|
|
4752
5004
|
}
|
|
4753
5005
|
function getResponseCacheKeys$P(storeKeyMap, luvio, resourceParams, response) {
|
|
4754
5006
|
getTypeCacheKeys$z(storeKeyMap, luvio, response, () => keyBuilder$1a(luvio, resourceParams));
|
|
@@ -4786,7 +5038,7 @@ function createResourceRequest$P(config) {
|
|
|
4786
5038
|
const headers = {};
|
|
4787
5039
|
return {
|
|
4788
5040
|
baseUri: '/services/data/v68.0',
|
|
4789
|
-
basePath: '/tableau/dataAlerts/
|
|
5041
|
+
basePath: '/tableau/dataAlerts/run',
|
|
4790
5042
|
method: 'post',
|
|
4791
5043
|
body: config.body,
|
|
4792
5044
|
urlParams: {},
|
|
@@ -4796,40 +5048,52 @@ function createResourceRequest$P(config) {
|
|
|
4796
5048
|
};
|
|
4797
5049
|
}
|
|
4798
5050
|
|
|
4799
|
-
const adapterName$P = '
|
|
4800
|
-
const
|
|
4801
|
-
generateParamConfigMetadata('
|
|
4802
|
-
generateParamConfigMetadata('
|
|
4803
|
-
generateParamConfigMetadata('
|
|
4804
|
-
generateParamConfigMetadata('
|
|
4805
|
-
generateParamConfigMetadata('
|
|
4806
|
-
generateParamConfigMetadata('
|
|
5051
|
+
const adapterName$P = 'postDataAlertTransientRun';
|
|
5052
|
+
const postDataAlertTransientRun_ConfigPropertyMetadata = [
|
|
5053
|
+
generateParamConfigMetadata('content', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5054
|
+
generateParamConfigMetadata('dataAlertType', true, 2 /* Body */, 0 /* String */),
|
|
5055
|
+
generateParamConfigMetadata('deliveryConfigurations', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5056
|
+
generateParamConfigMetadata('schedule', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5057
|
+
generateParamConfigMetadata('thresholds', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5058
|
+
generateParamConfigMetadata('utterance', true, 2 /* Body */, 0 /* String */),
|
|
5059
|
+
generateParamConfigMetadata('agent', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5060
|
+
generateParamConfigMetadata('isEnabled', false, 2 /* Body */, 1 /* Boolean */),
|
|
4807
5061
|
];
|
|
4808
|
-
const
|
|
4809
|
-
const createResourceParams$P = /*#__PURE__*/ createResourceParams$
|
|
5062
|
+
const postDataAlertTransientRun_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$P, postDataAlertTransientRun_ConfigPropertyMetadata);
|
|
5063
|
+
const createResourceParams$P = /*#__PURE__*/ createResourceParams$11(postDataAlertTransientRun_ConfigPropertyMetadata);
|
|
4810
5064
|
function keyBuilder$19(luvio, config) {
|
|
4811
5065
|
const resourceParams = createResourceParams$P(config);
|
|
4812
5066
|
return keyBuilder$1a(luvio, resourceParams);
|
|
4813
5067
|
}
|
|
4814
5068
|
function typeCheckConfig$P(untrustedConfig) {
|
|
4815
5069
|
const config = {};
|
|
4816
|
-
typeCheckConfig$
|
|
4817
|
-
const
|
|
4818
|
-
const
|
|
4819
|
-
if (
|
|
4820
|
-
config.
|
|
5070
|
+
typeCheckConfig$11(untrustedConfig, config, postDataAlertTransientRun_ConfigPropertyMetadata);
|
|
5071
|
+
const untrustedConfig_content = untrustedConfig.content;
|
|
5072
|
+
const referenceDataAlertContentInputRepresentationValidationError = validate$Y(untrustedConfig_content);
|
|
5073
|
+
if (referenceDataAlertContentInputRepresentationValidationError === null) {
|
|
5074
|
+
config.content = untrustedConfig_content;
|
|
4821
5075
|
}
|
|
4822
|
-
const
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
5076
|
+
const untrustedConfig_deliveryConfigurations = untrustedConfig.deliveryConfigurations;
|
|
5077
|
+
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$12(untrustedConfig_deliveryConfigurations);
|
|
5078
|
+
if (referenceDataAlertDeliveryConfigurationInputRepresentationValidationError === null) {
|
|
5079
|
+
config.deliveryConfigurations = untrustedConfig_deliveryConfigurations;
|
|
5080
|
+
}
|
|
5081
|
+
const untrustedConfig_schedule = untrustedConfig.schedule;
|
|
5082
|
+
const referenceDataAlertScheduleInputRepresentationValidationError = validate$X(untrustedConfig_schedule);
|
|
5083
|
+
if (referenceDataAlertScheduleInputRepresentationValidationError === null) {
|
|
5084
|
+
config.schedule = untrustedConfig_schedule;
|
|
5085
|
+
}
|
|
5086
|
+
const untrustedConfig_thresholds = untrustedConfig.thresholds;
|
|
5087
|
+
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$Z(untrustedConfig_thresholds);
|
|
5088
|
+
if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
|
|
5089
|
+
config.thresholds = untrustedConfig_thresholds;
|
|
5090
|
+
}
|
|
5091
|
+
const untrustedConfig_agent = untrustedConfig.agent;
|
|
5092
|
+
if (typeof untrustedConfig_agent === 'string') {
|
|
5093
|
+
config.agent = untrustedConfig_agent;
|
|
5094
|
+
}
|
|
5095
|
+
if (untrustedConfig_agent === null) {
|
|
5096
|
+
config.agent = untrustedConfig_agent;
|
|
4833
5097
|
}
|
|
4834
5098
|
return config;
|
|
4835
5099
|
}
|
|
@@ -4879,7 +5143,7 @@ function buildNetworkSnapshot$P(luvio, config, options) {
|
|
|
4879
5143
|
});
|
|
4880
5144
|
}
|
|
4881
5145
|
function buildNetworkSnapshotCachePolicy$m(context, coercedAdapterRequestContext) {
|
|
4882
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5146
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$P, 'get', false);
|
|
4883
5147
|
}
|
|
4884
5148
|
function buildCachedSnapshotCachePolicy$m(context, storeLookup) {
|
|
4885
5149
|
const { luvio, config } = context;
|
|
@@ -4894,8 +5158,8 @@ function buildCachedSnapshotCachePolicy$m(context, storeLookup) {
|
|
|
4894
5158
|
});
|
|
4895
5159
|
return cacheSnapshot;
|
|
4896
5160
|
}
|
|
4897
|
-
const
|
|
4898
|
-
const config = validateAdapterConfig$P(untrustedConfig,
|
|
5161
|
+
const postDataAlertTransientRunAdapterFactory = (luvio) => function UnifiedAnalytics__postDataAlertTransientRun(untrustedConfig, requestContext) {
|
|
5162
|
+
const config = validateAdapterConfig$P(untrustedConfig, postDataAlertTransientRun_ConfigPropertyNames);
|
|
4899
5163
|
// Invalid or incomplete config
|
|
4900
5164
|
if (config === null) {
|
|
4901
5165
|
return null;
|
|
@@ -4905,20 +5169,20 @@ const postDataAlertQueryAdapterFactory = (luvio) => function UnifiedAnalytics__p
|
|
|
4905
5169
|
};
|
|
4906
5170
|
|
|
4907
5171
|
function select$1e(luvio, params) {
|
|
4908
|
-
return select$
|
|
5172
|
+
return select$1m();
|
|
4909
5173
|
}
|
|
4910
5174
|
function keyBuilder$18(luvio, params) {
|
|
4911
|
-
return keyBuilder$
|
|
5175
|
+
return keyBuilder$1f(luvio, {
|
|
4912
5176
|
dataAlertId: params.urlParams.dataAlertId
|
|
4913
5177
|
});
|
|
4914
5178
|
}
|
|
4915
5179
|
function getResponseCacheKeys$O(storeKeyMap, luvio, resourceParams, response) {
|
|
4916
|
-
getTypeCacheKeys$
|
|
5180
|
+
getTypeCacheKeys$C(storeKeyMap, luvio, response);
|
|
4917
5181
|
}
|
|
4918
5182
|
function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
|
|
4919
5183
|
const { body } = response;
|
|
4920
5184
|
const key = keyBuilder$18(luvio, resourceParams);
|
|
4921
|
-
luvio.storeIngest(key, ingest$
|
|
5185
|
+
luvio.storeIngest(key, ingest$C, body);
|
|
4922
5186
|
const snapshot = luvio.storeLookup({
|
|
4923
5187
|
recordId: key,
|
|
4924
5188
|
node: select$1e(),
|
|
@@ -4936,10 +5200,10 @@ function ingestError$l(luvio, params, error, snapshotRefresh) {
|
|
|
4936
5200
|
const key = keyBuilder$18(luvio, params);
|
|
4937
5201
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4938
5202
|
const storeMetadataParams = {
|
|
4939
|
-
ttl: TTL$
|
|
5203
|
+
ttl: TTL$q,
|
|
4940
5204
|
namespace: keyPrefix,
|
|
4941
|
-
version: VERSION$
|
|
4942
|
-
representationName: RepresentationType$
|
|
5205
|
+
version: VERSION$C,
|
|
5206
|
+
representationName: RepresentationType$E
|
|
4943
5207
|
};
|
|
4944
5208
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4945
5209
|
return errorSnapshot;
|
|
@@ -4963,14 +5227,14 @@ const getDataAlert_ConfigPropertyMetadata = [
|
|
|
4963
5227
|
generateParamConfigMetadata('dataAlertId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4964
5228
|
];
|
|
4965
5229
|
const getDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$O, getDataAlert_ConfigPropertyMetadata);
|
|
4966
|
-
const createResourceParams$O = /*#__PURE__*/ createResourceParams$
|
|
5230
|
+
const createResourceParams$O = /*#__PURE__*/ createResourceParams$11(getDataAlert_ConfigPropertyMetadata);
|
|
4967
5231
|
function keyBuilder$17(luvio, config) {
|
|
4968
5232
|
const resourceParams = createResourceParams$O(config);
|
|
4969
5233
|
return keyBuilder$18(luvio, resourceParams);
|
|
4970
5234
|
}
|
|
4971
5235
|
function typeCheckConfig$O(untrustedConfig) {
|
|
4972
5236
|
const config = {};
|
|
4973
|
-
typeCheckConfig$
|
|
5237
|
+
typeCheckConfig$11(untrustedConfig, config, getDataAlert_ConfigPropertyMetadata);
|
|
4974
5238
|
return config;
|
|
4975
5239
|
}
|
|
4976
5240
|
function validateAdapterConfig$O(untrustedConfig, configPropertyNames) {
|
|
@@ -5019,7 +5283,7 @@ function buildNetworkSnapshot$O(luvio, config, options) {
|
|
|
5019
5283
|
});
|
|
5020
5284
|
}
|
|
5021
5285
|
function buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext) {
|
|
5022
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5286
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$O, undefined, false);
|
|
5023
5287
|
}
|
|
5024
5288
|
function buildCachedSnapshotCachePolicy$l(context, storeLookup) {
|
|
5025
5289
|
const { luvio, config } = context;
|
|
@@ -5045,7 +5309,7 @@ const getDataAlertAdapterFactory = (luvio) => function UnifiedAnalytics__getData
|
|
|
5045
5309
|
};
|
|
5046
5310
|
|
|
5047
5311
|
function keyBuilder$16(luvio, params) {
|
|
5048
|
-
return keyBuilder$
|
|
5312
|
+
return keyBuilder$1f(luvio, {
|
|
5049
5313
|
dataAlertId: params.urlParams.dataAlertId
|
|
5050
5314
|
});
|
|
5051
5315
|
}
|
|
@@ -5053,7 +5317,7 @@ function getResponseCacheKeys$N(cacheKeyMap, luvio, resourceParams) {
|
|
|
5053
5317
|
const key = keyBuilder$16(luvio, resourceParams);
|
|
5054
5318
|
cacheKeyMap.set(key, {
|
|
5055
5319
|
namespace: keyPrefix,
|
|
5056
|
-
representationName: RepresentationType$
|
|
5320
|
+
representationName: RepresentationType$E,
|
|
5057
5321
|
mergeable: false
|
|
5058
5322
|
});
|
|
5059
5323
|
}
|
|
@@ -5080,10 +5344,10 @@ const deleteDataAlert_ConfigPropertyMetadata = [
|
|
|
5080
5344
|
generateParamConfigMetadata('dataAlertId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5081
5345
|
];
|
|
5082
5346
|
const deleteDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$N, deleteDataAlert_ConfigPropertyMetadata);
|
|
5083
|
-
const createResourceParams$N = /*#__PURE__*/ createResourceParams$
|
|
5347
|
+
const createResourceParams$N = /*#__PURE__*/ createResourceParams$11(deleteDataAlert_ConfigPropertyMetadata);
|
|
5084
5348
|
function typeCheckConfig$N(untrustedConfig) {
|
|
5085
5349
|
const config = {};
|
|
5086
|
-
typeCheckConfig$
|
|
5350
|
+
typeCheckConfig$11(untrustedConfig, config, deleteDataAlert_ConfigPropertyMetadata);
|
|
5087
5351
|
return config;
|
|
5088
5352
|
}
|
|
5089
5353
|
function validateAdapterConfig$N(untrustedConfig, configPropertyNames) {
|
|
@@ -5129,15 +5393,15 @@ const deleteDataAlertAdapterFactory = (luvio) => {
|
|
|
5129
5393
|
};
|
|
5130
5394
|
|
|
5131
5395
|
function select$1d(luvio, params) {
|
|
5132
|
-
return select$
|
|
5396
|
+
return select$1m();
|
|
5133
5397
|
}
|
|
5134
5398
|
function getResponseCacheKeys$M(storeKeyMap, luvio, resourceParams, response) {
|
|
5135
|
-
getTypeCacheKeys$
|
|
5399
|
+
getTypeCacheKeys$C(storeKeyMap, luvio, response);
|
|
5136
5400
|
}
|
|
5137
5401
|
function ingestSuccess$G(luvio, resourceParams, response) {
|
|
5138
5402
|
const { body } = response;
|
|
5139
5403
|
const key = keyBuilderFromType$k(luvio, body);
|
|
5140
|
-
luvio.storeIngest(key, ingest$
|
|
5404
|
+
luvio.storeIngest(key, ingest$C, body);
|
|
5141
5405
|
const snapshot = luvio.storeLookup({
|
|
5142
5406
|
recordId: key,
|
|
5143
5407
|
node: select$1d(),
|
|
@@ -5179,27 +5443,27 @@ const updateDataAlert_ConfigPropertyMetadata = [
|
|
|
5179
5443
|
generateParamConfigMetadata('isEnabled', false, 2 /* Body */, 1 /* Boolean */),
|
|
5180
5444
|
];
|
|
5181
5445
|
const updateDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$M, updateDataAlert_ConfigPropertyMetadata);
|
|
5182
|
-
const createResourceParams$M = /*#__PURE__*/ createResourceParams$
|
|
5446
|
+
const createResourceParams$M = /*#__PURE__*/ createResourceParams$11(updateDataAlert_ConfigPropertyMetadata);
|
|
5183
5447
|
function typeCheckConfig$M(untrustedConfig) {
|
|
5184
5448
|
const config = {};
|
|
5185
|
-
typeCheckConfig$
|
|
5449
|
+
typeCheckConfig$11(untrustedConfig, config, updateDataAlert_ConfigPropertyMetadata);
|
|
5186
5450
|
const untrustedConfig_content = untrustedConfig.content;
|
|
5187
|
-
const referenceDataAlertContentInputRepresentationValidationError = validate$
|
|
5451
|
+
const referenceDataAlertContentInputRepresentationValidationError = validate$Y(untrustedConfig_content);
|
|
5188
5452
|
if (referenceDataAlertContentInputRepresentationValidationError === null) {
|
|
5189
5453
|
config.content = untrustedConfig_content;
|
|
5190
5454
|
}
|
|
5191
5455
|
const untrustedConfig_deliveryConfigurations = untrustedConfig.deliveryConfigurations;
|
|
5192
|
-
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$
|
|
5456
|
+
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$12(untrustedConfig_deliveryConfigurations);
|
|
5193
5457
|
if (referenceDataAlertDeliveryConfigurationInputRepresentationValidationError === null) {
|
|
5194
5458
|
config.deliveryConfigurations = untrustedConfig_deliveryConfigurations;
|
|
5195
5459
|
}
|
|
5196
5460
|
const untrustedConfig_schedule = untrustedConfig.schedule;
|
|
5197
|
-
const referenceDataAlertScheduleInputRepresentationValidationError = validate$
|
|
5461
|
+
const referenceDataAlertScheduleInputRepresentationValidationError = validate$X(untrustedConfig_schedule);
|
|
5198
5462
|
if (referenceDataAlertScheduleInputRepresentationValidationError === null) {
|
|
5199
5463
|
config.schedule = untrustedConfig_schedule;
|
|
5200
5464
|
}
|
|
5201
5465
|
const untrustedConfig_thresholds = untrustedConfig.thresholds;
|
|
5202
|
-
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$
|
|
5466
|
+
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$Z(untrustedConfig_thresholds);
|
|
5203
5467
|
if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
|
|
5204
5468
|
config.thresholds = untrustedConfig_thresholds;
|
|
5205
5469
|
}
|
|
@@ -5395,10 +5659,10 @@ const postDataAlertRun_ConfigPropertyMetadata = [
|
|
|
5395
5659
|
generateParamConfigMetadata('dataAlertId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5396
5660
|
];
|
|
5397
5661
|
const postDataAlertRun_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$L, postDataAlertRun_ConfigPropertyMetadata);
|
|
5398
|
-
const createResourceParams$L = /*#__PURE__*/ createResourceParams$
|
|
5662
|
+
const createResourceParams$L = /*#__PURE__*/ createResourceParams$11(postDataAlertRun_ConfigPropertyMetadata);
|
|
5399
5663
|
function typeCheckConfig$L(untrustedConfig) {
|
|
5400
5664
|
const config = {};
|
|
5401
|
-
typeCheckConfig$
|
|
5665
|
+
typeCheckConfig$11(untrustedConfig, config, postDataAlertRun_ConfigPropertyMetadata);
|
|
5402
5666
|
return config;
|
|
5403
5667
|
}
|
|
5404
5668
|
function validateAdapterConfig$L(untrustedConfig, configPropertyNames) {
|
|
@@ -5444,7 +5708,7 @@ const postDataAlertRunAdapterFactory = (luvio) => {
|
|
|
5444
5708
|
};
|
|
5445
5709
|
|
|
5446
5710
|
function validate$S(obj, path = 'AnalyticsUserRepresentation') {
|
|
5447
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
5711
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$1j(obj, path);
|
|
5448
5712
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
5449
5713
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
5450
5714
|
}
|
|
@@ -6839,14 +7103,14 @@ const getDataAssetRequests_ConfigPropertyMetadata = [
|
|
|
6839
7103
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6840
7104
|
];
|
|
6841
7105
|
const getDataAssetRequests_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$K, getDataAssetRequests_ConfigPropertyMetadata);
|
|
6842
|
-
const createResourceParams$K = /*#__PURE__*/ createResourceParams$
|
|
7106
|
+
const createResourceParams$K = /*#__PURE__*/ createResourceParams$11(getDataAssetRequests_ConfigPropertyMetadata);
|
|
6843
7107
|
function keyBuilder$12(luvio, config) {
|
|
6844
7108
|
const resourceParams = createResourceParams$K(config);
|
|
6845
7109
|
return keyBuilder$13(luvio, resourceParams);
|
|
6846
7110
|
}
|
|
6847
7111
|
function typeCheckConfig$K(untrustedConfig) {
|
|
6848
7112
|
const config = {};
|
|
6849
|
-
typeCheckConfig$
|
|
7113
|
+
typeCheckConfig$11(untrustedConfig, config, getDataAssetRequests_ConfigPropertyMetadata);
|
|
6850
7114
|
return config;
|
|
6851
7115
|
}
|
|
6852
7116
|
function validateAdapterConfig$K(untrustedConfig, configPropertyNames) {
|
|
@@ -6895,7 +7159,7 @@ function buildNetworkSnapshot$K(luvio, config, options) {
|
|
|
6895
7159
|
});
|
|
6896
7160
|
}
|
|
6897
7161
|
function buildNetworkSnapshotCachePolicy$k(context, coercedAdapterRequestContext) {
|
|
6898
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7162
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$K, undefined, false);
|
|
6899
7163
|
}
|
|
6900
7164
|
function buildCachedSnapshotCachePolicy$k(context, storeLookup) {
|
|
6901
7165
|
const { luvio, config } = context;
|
|
@@ -6972,10 +7236,10 @@ const createDataAssetRequest_ConfigPropertyMetadata = [
|
|
|
6972
7236
|
generateParamConfigMetadata('packageExportStatus', false, 2 /* Body */, 0 /* String */),
|
|
6973
7237
|
];
|
|
6974
7238
|
const createDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$J, createDataAssetRequest_ConfigPropertyMetadata);
|
|
6975
|
-
const createResourceParams$J = /*#__PURE__*/ createResourceParams$
|
|
7239
|
+
const createResourceParams$J = /*#__PURE__*/ createResourceParams$11(createDataAssetRequest_ConfigPropertyMetadata);
|
|
6976
7240
|
function typeCheckConfig$J(untrustedConfig) {
|
|
6977
7241
|
const config = {};
|
|
6978
|
-
typeCheckConfig$
|
|
7242
|
+
typeCheckConfig$11(untrustedConfig, config, createDataAssetRequest_ConfigPropertyMetadata);
|
|
6979
7243
|
return config;
|
|
6980
7244
|
}
|
|
6981
7245
|
function validateAdapterConfig$J(untrustedConfig, configPropertyNames) {
|
|
@@ -7139,14 +7403,14 @@ const getDataAssetRequestsCount_ConfigPropertyMetadata = [
|
|
|
7139
7403
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7140
7404
|
];
|
|
7141
7405
|
const getDataAssetRequestsCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$I, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
7142
|
-
const createResourceParams$I = /*#__PURE__*/ createResourceParams$
|
|
7406
|
+
const createResourceParams$I = /*#__PURE__*/ createResourceParams$11(getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
7143
7407
|
function keyBuilder$10(luvio, config) {
|
|
7144
7408
|
const resourceParams = createResourceParams$I(config);
|
|
7145
7409
|
return keyBuilder$11(luvio, resourceParams);
|
|
7146
7410
|
}
|
|
7147
7411
|
function typeCheckConfig$I(untrustedConfig) {
|
|
7148
7412
|
const config = {};
|
|
7149
|
-
typeCheckConfig$
|
|
7413
|
+
typeCheckConfig$11(untrustedConfig, config, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
7150
7414
|
return config;
|
|
7151
7415
|
}
|
|
7152
7416
|
function validateAdapterConfig$I(untrustedConfig, configPropertyNames) {
|
|
@@ -7195,7 +7459,7 @@ function buildNetworkSnapshot$I(luvio, config, options) {
|
|
|
7195
7459
|
});
|
|
7196
7460
|
}
|
|
7197
7461
|
function buildNetworkSnapshotCachePolicy$j(context, coercedAdapterRequestContext) {
|
|
7198
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7462
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$I, undefined, false);
|
|
7199
7463
|
}
|
|
7200
7464
|
function buildCachedSnapshotCachePolicy$j(context, storeLookup) {
|
|
7201
7465
|
const { luvio, config } = context;
|
|
@@ -7279,14 +7543,14 @@ const getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata = [
|
|
|
7279
7543
|
generateParamConfigMetadata('requestIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7280
7544
|
];
|
|
7281
7545
|
const getDataAssetRequestByIdOrApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$H, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
7282
|
-
const createResourceParams$H = /*#__PURE__*/ createResourceParams$
|
|
7546
|
+
const createResourceParams$H = /*#__PURE__*/ createResourceParams$11(getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
7283
7547
|
function keyBuilder$_(luvio, config) {
|
|
7284
7548
|
const resourceParams = createResourceParams$H(config);
|
|
7285
7549
|
return keyBuilder$$(luvio, resourceParams);
|
|
7286
7550
|
}
|
|
7287
7551
|
function typeCheckConfig$H(untrustedConfig) {
|
|
7288
7552
|
const config = {};
|
|
7289
|
-
typeCheckConfig$
|
|
7553
|
+
typeCheckConfig$11(untrustedConfig, config, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
7290
7554
|
return config;
|
|
7291
7555
|
}
|
|
7292
7556
|
function validateAdapterConfig$H(untrustedConfig, configPropertyNames) {
|
|
@@ -7335,7 +7599,7 @@ function buildNetworkSnapshot$H(luvio, config, options) {
|
|
|
7335
7599
|
});
|
|
7336
7600
|
}
|
|
7337
7601
|
function buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext) {
|
|
7338
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7602
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$H, undefined, false);
|
|
7339
7603
|
}
|
|
7340
7604
|
function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
|
|
7341
7605
|
const { luvio, config } = context;
|
|
@@ -7413,10 +7677,10 @@ const updateDataAssetRequest_ConfigPropertyMetadata = [
|
|
|
7413
7677
|
generateParamConfigMetadata('packageExportStatus', false, 2 /* Body */, 0 /* String */),
|
|
7414
7678
|
];
|
|
7415
7679
|
const updateDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$G, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
7416
|
-
const createResourceParams$G = /*#__PURE__*/ createResourceParams$
|
|
7680
|
+
const createResourceParams$G = /*#__PURE__*/ createResourceParams$11(updateDataAssetRequest_ConfigPropertyMetadata);
|
|
7417
7681
|
function typeCheckConfig$G(untrustedConfig) {
|
|
7418
7682
|
const config = {};
|
|
7419
|
-
typeCheckConfig$
|
|
7683
|
+
typeCheckConfig$11(untrustedConfig, config, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
7420
7684
|
return config;
|
|
7421
7685
|
}
|
|
7422
7686
|
function validateAdapterConfig$G(untrustedConfig, configPropertyNames) {
|
|
@@ -7786,14 +8050,14 @@ const getDataAssetDependencies_ConfigPropertyMetadata = [
|
|
|
7786
8050
|
generateParamConfigMetadata('failOnSchemaMismatch', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
7787
8051
|
];
|
|
7788
8052
|
const getDataAssetDependencies_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$F, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
7789
|
-
const createResourceParams$F = /*#__PURE__*/ createResourceParams$
|
|
8053
|
+
const createResourceParams$F = /*#__PURE__*/ createResourceParams$11(getDataAssetDependencies_ConfigPropertyMetadata);
|
|
7790
8054
|
function keyBuilder$Y(luvio, config) {
|
|
7791
8055
|
const resourceParams = createResourceParams$F(config);
|
|
7792
8056
|
return keyBuilder$Z(luvio, resourceParams);
|
|
7793
8057
|
}
|
|
7794
8058
|
function typeCheckConfig$F(untrustedConfig) {
|
|
7795
8059
|
const config = {};
|
|
7796
|
-
typeCheckConfig$
|
|
8060
|
+
typeCheckConfig$11(untrustedConfig, config, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
7797
8061
|
return config;
|
|
7798
8062
|
}
|
|
7799
8063
|
function validateAdapterConfig$F(untrustedConfig, configPropertyNames) {
|
|
@@ -7842,7 +8106,7 @@ function buildNetworkSnapshot$F(luvio, config, options) {
|
|
|
7842
8106
|
});
|
|
7843
8107
|
}
|
|
7844
8108
|
function buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext) {
|
|
7845
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8109
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$F, undefined, false);
|
|
7846
8110
|
}
|
|
7847
8111
|
function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
7848
8112
|
const { luvio, config } = context;
|
|
@@ -8021,14 +8285,14 @@ const getDataAssetLineageByIdOrApiName_ConfigPropertyMetadata = [
|
|
|
8021
8285
|
generateParamConfigMetadata('assetIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8022
8286
|
];
|
|
8023
8287
|
const getDataAssetLineageByIdOrApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$E, getDataAssetLineageByIdOrApiName_ConfigPropertyMetadata);
|
|
8024
|
-
const createResourceParams$E = /*#__PURE__*/ createResourceParams$
|
|
8288
|
+
const createResourceParams$E = /*#__PURE__*/ createResourceParams$11(getDataAssetLineageByIdOrApiName_ConfigPropertyMetadata);
|
|
8025
8289
|
function keyBuilder$W(luvio, config) {
|
|
8026
8290
|
const resourceParams = createResourceParams$E(config);
|
|
8027
8291
|
return keyBuilder$X(luvio, resourceParams);
|
|
8028
8292
|
}
|
|
8029
8293
|
function typeCheckConfig$E(untrustedConfig) {
|
|
8030
8294
|
const config = {};
|
|
8031
|
-
typeCheckConfig$
|
|
8295
|
+
typeCheckConfig$11(untrustedConfig, config, getDataAssetLineageByIdOrApiName_ConfigPropertyMetadata);
|
|
8032
8296
|
return config;
|
|
8033
8297
|
}
|
|
8034
8298
|
function validateAdapterConfig$E(untrustedConfig, configPropertyNames) {
|
|
@@ -8077,7 +8341,7 @@ function buildNetworkSnapshot$E(luvio, config, options) {
|
|
|
8077
8341
|
});
|
|
8078
8342
|
}
|
|
8079
8343
|
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
8080
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8344
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$E, undefined, false);
|
|
8081
8345
|
}
|
|
8082
8346
|
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
8083
8347
|
const { luvio, config } = context;
|
|
@@ -8323,10 +8587,10 @@ const follow_ConfigPropertyMetadata = [
|
|
|
8323
8587
|
generateParamConfigMetadata('followedTimeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
8324
8588
|
];
|
|
8325
8589
|
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$D, follow_ConfigPropertyMetadata);
|
|
8326
|
-
const createResourceParams$D = /*#__PURE__*/ createResourceParams$
|
|
8590
|
+
const createResourceParams$D = /*#__PURE__*/ createResourceParams$11(follow_ConfigPropertyMetadata);
|
|
8327
8591
|
function typeCheckConfig$D(untrustedConfig) {
|
|
8328
8592
|
const config = {};
|
|
8329
|
-
typeCheckConfig$
|
|
8593
|
+
typeCheckConfig$11(untrustedConfig, config, follow_ConfigPropertyMetadata);
|
|
8330
8594
|
const untrustedConfig_followedTimeRange = untrustedConfig.followedTimeRange;
|
|
8331
8595
|
const referenceFollowedTimeRangeRepresentationValidationError = validate$D(untrustedConfig_followedTimeRange);
|
|
8332
8596
|
if (referenceFollowedTimeRangeRepresentationValidationError === null) {
|
|
@@ -8500,10 +8764,10 @@ const updateFollowedAsset_ConfigPropertyMetadata = [
|
|
|
8500
8764
|
generateParamConfigMetadata('updateAllAssets', false, 2 /* Body */, 1 /* Boolean */),
|
|
8501
8765
|
];
|
|
8502
8766
|
const updateFollowedAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$C, updateFollowedAsset_ConfigPropertyMetadata);
|
|
8503
|
-
const createResourceParams$C = /*#__PURE__*/ createResourceParams$
|
|
8767
|
+
const createResourceParams$C = /*#__PURE__*/ createResourceParams$11(updateFollowedAsset_ConfigPropertyMetadata);
|
|
8504
8768
|
function typeCheckConfig$C(untrustedConfig) {
|
|
8505
8769
|
const config = {};
|
|
8506
|
-
typeCheckConfig$
|
|
8770
|
+
typeCheckConfig$11(untrustedConfig, config, updateFollowedAsset_ConfigPropertyMetadata);
|
|
8507
8771
|
const untrustedConfig_followedTimeRange = untrustedConfig.followedTimeRange;
|
|
8508
8772
|
const referenceFollowedTimeRangeRepresentationValidationError = validate$D(untrustedConfig_followedTimeRange);
|
|
8509
8773
|
if (referenceFollowedTimeRangeRepresentationValidationError === null) {
|
|
@@ -8688,10 +8952,10 @@ const unfollow_ConfigPropertyMetadata = [
|
|
|
8688
8952
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8689
8953
|
];
|
|
8690
8954
|
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, unfollow_ConfigPropertyMetadata);
|
|
8691
|
-
const createResourceParams$B = /*#__PURE__*/ createResourceParams$
|
|
8955
|
+
const createResourceParams$B = /*#__PURE__*/ createResourceParams$11(unfollow_ConfigPropertyMetadata);
|
|
8692
8956
|
function typeCheckConfig$B(untrustedConfig) {
|
|
8693
8957
|
const config = {};
|
|
8694
|
-
typeCheckConfig$
|
|
8958
|
+
typeCheckConfig$11(untrustedConfig, config, unfollow_ConfigPropertyMetadata);
|
|
8695
8959
|
return config;
|
|
8696
8960
|
}
|
|
8697
8961
|
function validateAdapterConfig$B(untrustedConfig, configPropertyNames) {
|
|
@@ -8862,14 +9126,14 @@ const getFollowers_ConfigPropertyMetadata = [
|
|
|
8862
9126
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
8863
9127
|
];
|
|
8864
9128
|
const getFollowers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, getFollowers_ConfigPropertyMetadata);
|
|
8865
|
-
const createResourceParams$A = /*#__PURE__*/ createResourceParams$
|
|
9129
|
+
const createResourceParams$A = /*#__PURE__*/ createResourceParams$11(getFollowers_ConfigPropertyMetadata);
|
|
8866
9130
|
function keyBuilder$Q(luvio, config) {
|
|
8867
9131
|
const resourceParams = createResourceParams$A(config);
|
|
8868
9132
|
return keyBuilder$R(luvio, resourceParams);
|
|
8869
9133
|
}
|
|
8870
9134
|
function typeCheckConfig$A(untrustedConfig) {
|
|
8871
9135
|
const config = {};
|
|
8872
|
-
typeCheckConfig$
|
|
9136
|
+
typeCheckConfig$11(untrustedConfig, config, getFollowers_ConfigPropertyMetadata);
|
|
8873
9137
|
return config;
|
|
8874
9138
|
}
|
|
8875
9139
|
function validateAdapterConfig$A(untrustedConfig, configPropertyNames) {
|
|
@@ -8918,7 +9182,7 @@ function buildNetworkSnapshot$A(luvio, config, options) {
|
|
|
8918
9182
|
});
|
|
8919
9183
|
}
|
|
8920
9184
|
function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
|
|
8921
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9185
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$A, undefined, false);
|
|
8922
9186
|
}
|
|
8923
9187
|
function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
8924
9188
|
const { luvio, config } = context;
|
|
@@ -9068,14 +9332,14 @@ const getFollowedAssets_ConfigPropertyMetadata = [
|
|
|
9068
9332
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
9069
9333
|
];
|
|
9070
9334
|
const getFollowedAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, getFollowedAssets_ConfigPropertyMetadata);
|
|
9071
|
-
const createResourceParams$z = /*#__PURE__*/ createResourceParams$
|
|
9335
|
+
const createResourceParams$z = /*#__PURE__*/ createResourceParams$11(getFollowedAssets_ConfigPropertyMetadata);
|
|
9072
9336
|
function keyBuilder$O(luvio, config) {
|
|
9073
9337
|
const resourceParams = createResourceParams$z(config);
|
|
9074
9338
|
return keyBuilder$P(luvio, resourceParams);
|
|
9075
9339
|
}
|
|
9076
9340
|
function typeCheckConfig$z(untrustedConfig) {
|
|
9077
9341
|
const config = {};
|
|
9078
|
-
typeCheckConfig$
|
|
9342
|
+
typeCheckConfig$11(untrustedConfig, config, getFollowedAssets_ConfigPropertyMetadata);
|
|
9079
9343
|
return config;
|
|
9080
9344
|
}
|
|
9081
9345
|
function validateAdapterConfig$z(untrustedConfig, configPropertyNames) {
|
|
@@ -9124,7 +9388,7 @@ function buildNetworkSnapshot$z(luvio, config, options) {
|
|
|
9124
9388
|
});
|
|
9125
9389
|
}
|
|
9126
9390
|
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
9127
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9391
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$z, undefined, false);
|
|
9128
9392
|
}
|
|
9129
9393
|
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
9130
9394
|
const { luvio, config } = context;
|
|
@@ -9262,14 +9526,14 @@ const getUniqueFollowerCount_ConfigPropertyMetadata = [
|
|
|
9262
9526
|
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9263
9527
|
];
|
|
9264
9528
|
const getUniqueFollowerCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
9265
|
-
const createResourceParams$y = /*#__PURE__*/ createResourceParams$
|
|
9529
|
+
const createResourceParams$y = /*#__PURE__*/ createResourceParams$11(getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
9266
9530
|
function keyBuilder$M(luvio, config) {
|
|
9267
9531
|
const resourceParams = createResourceParams$y(config);
|
|
9268
9532
|
return keyBuilder$N(luvio, resourceParams);
|
|
9269
9533
|
}
|
|
9270
9534
|
function typeCheckConfig$y(untrustedConfig) {
|
|
9271
9535
|
const config = {};
|
|
9272
|
-
typeCheckConfig$
|
|
9536
|
+
typeCheckConfig$11(untrustedConfig, config, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
9273
9537
|
return config;
|
|
9274
9538
|
}
|
|
9275
9539
|
function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
|
|
@@ -9318,7 +9582,7 @@ function buildNetworkSnapshot$y(luvio, config, options) {
|
|
|
9318
9582
|
});
|
|
9319
9583
|
}
|
|
9320
9584
|
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
9321
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9585
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$y, undefined, false);
|
|
9322
9586
|
}
|
|
9323
9587
|
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
9324
9588
|
const { luvio, config } = context;
|
|
@@ -9459,7 +9723,7 @@ const createLoglines_ConfigPropertyMetadata = [
|
|
|
9459
9723
|
generateParamConfigMetadata('loglines', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9460
9724
|
];
|
|
9461
9725
|
const createLoglines_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, createLoglines_ConfigPropertyMetadata);
|
|
9462
|
-
const createResourceParams$x = /*#__PURE__*/ createResourceParams$
|
|
9726
|
+
const createResourceParams$x = /*#__PURE__*/ createResourceParams$11(createLoglines_ConfigPropertyMetadata);
|
|
9463
9727
|
function typeCheckConfig$x(untrustedConfig) {
|
|
9464
9728
|
const config = {};
|
|
9465
9729
|
const untrustedConfig_loglines = untrustedConfig.loglines;
|
|
@@ -9672,7 +9936,7 @@ function createResourceRequest$w(config) {
|
|
|
9672
9936
|
const adapterName$w = 'getOrg';
|
|
9673
9937
|
const getOrg_ConfigPropertyMetadata = [];
|
|
9674
9938
|
const getOrg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, getOrg_ConfigPropertyMetadata);
|
|
9675
|
-
const createResourceParams$w = /*#__PURE__*/ createResourceParams$
|
|
9939
|
+
const createResourceParams$w = /*#__PURE__*/ createResourceParams$11(getOrg_ConfigPropertyMetadata);
|
|
9676
9940
|
function keyBuilder$J(luvio, config) {
|
|
9677
9941
|
createResourceParams$w(config);
|
|
9678
9942
|
return keyBuilder$K();
|
|
@@ -9727,7 +9991,7 @@ function buildNetworkSnapshot$w(luvio, config, options) {
|
|
|
9727
9991
|
});
|
|
9728
9992
|
}
|
|
9729
9993
|
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
9730
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9994
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$w, undefined, false);
|
|
9731
9995
|
}
|
|
9732
9996
|
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
9733
9997
|
const { luvio, config } = context;
|
|
@@ -10044,10 +10308,10 @@ const deleteAllShares_ConfigPropertyMetadata = [
|
|
|
10044
10308
|
generateParamConfigMetadata('filterByRecipientType', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
10045
10309
|
];
|
|
10046
10310
|
const deleteAllShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, deleteAllShares_ConfigPropertyMetadata);
|
|
10047
|
-
const createResourceParams$v = /*#__PURE__*/ createResourceParams$
|
|
10311
|
+
const createResourceParams$v = /*#__PURE__*/ createResourceParams$11(deleteAllShares_ConfigPropertyMetadata);
|
|
10048
10312
|
function typeCheckConfig$v(untrustedConfig) {
|
|
10049
10313
|
const config = {};
|
|
10050
|
-
typeCheckConfig$
|
|
10314
|
+
typeCheckConfig$11(untrustedConfig, config, deleteAllShares_ConfigPropertyMetadata);
|
|
10051
10315
|
const untrustedConfig_userOrGroupId = untrustedConfig.userOrGroupId;
|
|
10052
10316
|
if (typeof untrustedConfig_userOrGroupId === 'string') {
|
|
10053
10317
|
config.userOrGroupId = untrustedConfig_userOrGroupId;
|
|
@@ -10170,14 +10434,14 @@ const getShares_ConfigPropertyMetadata = [
|
|
|
10170
10434
|
generateParamConfigMetadata('recipientSearchTerm', false, 1 /* QueryParameter */, 0 /* String */),
|
|
10171
10435
|
];
|
|
10172
10436
|
const getShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, getShares_ConfigPropertyMetadata);
|
|
10173
|
-
const createResourceParams$u = /*#__PURE__*/ createResourceParams$
|
|
10437
|
+
const createResourceParams$u = /*#__PURE__*/ createResourceParams$11(getShares_ConfigPropertyMetadata);
|
|
10174
10438
|
function keyBuilder$E(luvio, config) {
|
|
10175
10439
|
const resourceParams = createResourceParams$u(config);
|
|
10176
10440
|
return keyBuilder$F(luvio, resourceParams);
|
|
10177
10441
|
}
|
|
10178
10442
|
function typeCheckConfig$u(untrustedConfig) {
|
|
10179
10443
|
const config = {};
|
|
10180
|
-
typeCheckConfig$
|
|
10444
|
+
typeCheckConfig$11(untrustedConfig, config, getShares_ConfigPropertyMetadata);
|
|
10181
10445
|
return config;
|
|
10182
10446
|
}
|
|
10183
10447
|
function validateAdapterConfig$u(untrustedConfig, configPropertyNames) {
|
|
@@ -10226,7 +10490,7 @@ function buildNetworkSnapshot$u(luvio, config, options) {
|
|
|
10226
10490
|
});
|
|
10227
10491
|
}
|
|
10228
10492
|
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
10229
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10493
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$u, undefined, false);
|
|
10230
10494
|
}
|
|
10231
10495
|
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
10232
10496
|
const { luvio, config } = context;
|
|
@@ -10467,10 +10731,10 @@ const updateRecordShares_ConfigPropertyMetadata = [
|
|
|
10467
10731
|
generateParamConfigMetadata('updateSetupRecordAccessItems', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
10468
10732
|
];
|
|
10469
10733
|
const updateRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, updateRecordShares_ConfigPropertyMetadata);
|
|
10470
|
-
const createResourceParams$t = /*#__PURE__*/ createResourceParams$
|
|
10734
|
+
const createResourceParams$t = /*#__PURE__*/ createResourceParams$11(updateRecordShares_ConfigPropertyMetadata);
|
|
10471
10735
|
function typeCheckConfig$t(untrustedConfig) {
|
|
10472
10736
|
const config = {};
|
|
10473
|
-
typeCheckConfig$
|
|
10737
|
+
typeCheckConfig$11(untrustedConfig, config, updateRecordShares_ConfigPropertyMetadata);
|
|
10474
10738
|
const untrustedConfig_updateSetupRecordAccessItems = untrustedConfig.updateSetupRecordAccessItems;
|
|
10475
10739
|
if (ArrayIsArray$1(untrustedConfig_updateSetupRecordAccessItems)) {
|
|
10476
10740
|
const untrustedConfig_updateSetupRecordAccessItems_array = [];
|
|
@@ -10568,10 +10832,10 @@ const createRecordShares_ConfigPropertyMetadata = [
|
|
|
10568
10832
|
generateParamConfigMetadata('sendNotificationToRecipients', false, 2 /* Body */, 1 /* Boolean */),
|
|
10569
10833
|
];
|
|
10570
10834
|
const createRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, createRecordShares_ConfigPropertyMetadata);
|
|
10571
|
-
const createResourceParams$s = /*#__PURE__*/ createResourceParams$
|
|
10835
|
+
const createResourceParams$s = /*#__PURE__*/ createResourceParams$11(createRecordShares_ConfigPropertyMetadata);
|
|
10572
10836
|
function typeCheckConfig$s(untrustedConfig) {
|
|
10573
10837
|
const config = {};
|
|
10574
|
-
typeCheckConfig$
|
|
10838
|
+
typeCheckConfig$11(untrustedConfig, config, createRecordShares_ConfigPropertyMetadata);
|
|
10575
10839
|
const untrustedConfig_accessRequestItems = untrustedConfig.accessRequestItems;
|
|
10576
10840
|
if (ArrayIsArray$1(untrustedConfig_accessRequestItems)) {
|
|
10577
10841
|
const untrustedConfig_accessRequestItems_array = [];
|
|
@@ -10663,10 +10927,10 @@ const deleteRecordShare_ConfigPropertyMetadata = [
|
|
|
10663
10927
|
generateParamConfigMetadata('userOrGroupId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
10664
10928
|
];
|
|
10665
10929
|
const deleteRecordShare_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, deleteRecordShare_ConfigPropertyMetadata);
|
|
10666
|
-
const createResourceParams$r = /*#__PURE__*/ createResourceParams$
|
|
10930
|
+
const createResourceParams$r = /*#__PURE__*/ createResourceParams$11(deleteRecordShare_ConfigPropertyMetadata);
|
|
10667
10931
|
function typeCheckConfig$r(untrustedConfig) {
|
|
10668
10932
|
const config = {};
|
|
10669
|
-
typeCheckConfig$
|
|
10933
|
+
typeCheckConfig$11(untrustedConfig, config, deleteRecordShare_ConfigPropertyMetadata);
|
|
10670
10934
|
return config;
|
|
10671
10935
|
}
|
|
10672
10936
|
function validateAdapterConfig$r(untrustedConfig, configPropertyNames) {
|
|
@@ -10991,14 +11255,14 @@ const getAssetSlackChannels_ConfigPropertyMetadata = [
|
|
|
10991
11255
|
generateParamConfigMetadata('assetId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
10992
11256
|
];
|
|
10993
11257
|
const getAssetSlackChannels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
10994
|
-
const createResourceParams$q = /*#__PURE__*/ createResourceParams$
|
|
11258
|
+
const createResourceParams$q = /*#__PURE__*/ createResourceParams$11(getAssetSlackChannels_ConfigPropertyMetadata);
|
|
10995
11259
|
function keyBuilder$z(luvio, config) {
|
|
10996
11260
|
const resourceParams = createResourceParams$q(config);
|
|
10997
11261
|
return keyBuilder$A(luvio, resourceParams);
|
|
10998
11262
|
}
|
|
10999
11263
|
function typeCheckConfig$q(untrustedConfig) {
|
|
11000
11264
|
const config = {};
|
|
11001
|
-
typeCheckConfig$
|
|
11265
|
+
typeCheckConfig$11(untrustedConfig, config, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
11002
11266
|
return config;
|
|
11003
11267
|
}
|
|
11004
11268
|
function validateAdapterConfig$q(untrustedConfig, configPropertyNames) {
|
|
@@ -11047,7 +11311,7 @@ function buildNetworkSnapshot$q(luvio, config, options) {
|
|
|
11047
11311
|
});
|
|
11048
11312
|
}
|
|
11049
11313
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
11050
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11314
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$q, undefined, false);
|
|
11051
11315
|
}
|
|
11052
11316
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
11053
11317
|
const { luvio, config } = context;
|
|
@@ -11116,10 +11380,10 @@ const createAssetSlackChannel_ConfigPropertyMetadata = [
|
|
|
11116
11380
|
generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
|
|
11117
11381
|
];
|
|
11118
11382
|
const createAssetSlackChannel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
11119
|
-
const createResourceParams$p = /*#__PURE__*/ createResourceParams$
|
|
11383
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$11(createAssetSlackChannel_ConfigPropertyMetadata);
|
|
11120
11384
|
function typeCheckConfig$p(untrustedConfig) {
|
|
11121
11385
|
const config = {};
|
|
11122
|
-
typeCheckConfig$
|
|
11386
|
+
typeCheckConfig$11(untrustedConfig, config, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
11123
11387
|
return config;
|
|
11124
11388
|
}
|
|
11125
11389
|
function validateAdapterConfig$p(untrustedConfig, configPropertyNames) {
|
|
@@ -11299,10 +11563,10 @@ const queryUsers_ConfigPropertyMetadata = [
|
|
|
11299
11563
|
generateParamConfigMetadata('offset', false, 2 /* Body */, 3 /* Integer */),
|
|
11300
11564
|
];
|
|
11301
11565
|
const queryUsers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, queryUsers_ConfigPropertyMetadata);
|
|
11302
|
-
const createResourceParams$o = /*#__PURE__*/ createResourceParams$
|
|
11566
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$11(queryUsers_ConfigPropertyMetadata);
|
|
11303
11567
|
function typeCheckConfig$o(untrustedConfig) {
|
|
11304
11568
|
const config = {};
|
|
11305
|
-
typeCheckConfig$
|
|
11569
|
+
typeCheckConfig$11(untrustedConfig, config, queryUsers_ConfigPropertyMetadata);
|
|
11306
11570
|
return config;
|
|
11307
11571
|
}
|
|
11308
11572
|
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
@@ -11660,14 +11924,14 @@ const getVisualizations_ConfigPropertyMetadata = [
|
|
|
11660
11924
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
11661
11925
|
];
|
|
11662
11926
|
const getVisualizations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, getVisualizations_ConfigPropertyMetadata);
|
|
11663
|
-
const createResourceParams$n = /*#__PURE__*/ createResourceParams$
|
|
11927
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$11(getVisualizations_ConfigPropertyMetadata);
|
|
11664
11928
|
function keyBuilder$v(luvio, config) {
|
|
11665
11929
|
const resourceParams = createResourceParams$n(config);
|
|
11666
11930
|
return keyBuilder$w(luvio, resourceParams);
|
|
11667
11931
|
}
|
|
11668
11932
|
function typeCheckConfig$n(untrustedConfig) {
|
|
11669
11933
|
const config = {};
|
|
11670
|
-
typeCheckConfig$
|
|
11934
|
+
typeCheckConfig$11(untrustedConfig, config, getVisualizations_ConfigPropertyMetadata);
|
|
11671
11935
|
return config;
|
|
11672
11936
|
}
|
|
11673
11937
|
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
@@ -11716,7 +11980,7 @@ function buildNetworkSnapshot$n(luvio, config, options) {
|
|
|
11716
11980
|
});
|
|
11717
11981
|
}
|
|
11718
11982
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
11719
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11983
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$n, undefined, false);
|
|
11720
11984
|
}
|
|
11721
11985
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
11722
11986
|
const { luvio, config } = context;
|
|
@@ -11999,10 +12263,10 @@ const createVisualization_ConfigPropertyMetadata = [
|
|
|
11999
12263
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
12000
12264
|
];
|
|
12001
12265
|
const createVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, createVisualization_ConfigPropertyMetadata);
|
|
12002
|
-
const createResourceParams$m = /*#__PURE__*/ createResourceParams$
|
|
12266
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$11(createVisualization_ConfigPropertyMetadata);
|
|
12003
12267
|
function typeCheckConfig$m(untrustedConfig) {
|
|
12004
12268
|
const config = {};
|
|
12005
|
-
typeCheckConfig$
|
|
12269
|
+
typeCheckConfig$11(untrustedConfig, config, createVisualization_ConfigPropertyMetadata);
|
|
12006
12270
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
12007
12271
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
12008
12272
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -12167,10 +12431,10 @@ const deleteVisualization_ConfigPropertyMetadata = [
|
|
|
12167
12431
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12168
12432
|
];
|
|
12169
12433
|
const deleteVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, deleteVisualization_ConfigPropertyMetadata);
|
|
12170
|
-
const createResourceParams$l = /*#__PURE__*/ createResourceParams$
|
|
12434
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$11(deleteVisualization_ConfigPropertyMetadata);
|
|
12171
12435
|
function typeCheckConfig$l(untrustedConfig) {
|
|
12172
12436
|
const config = {};
|
|
12173
|
-
typeCheckConfig$
|
|
12437
|
+
typeCheckConfig$11(untrustedConfig, config, deleteVisualization_ConfigPropertyMetadata);
|
|
12174
12438
|
return config;
|
|
12175
12439
|
}
|
|
12176
12440
|
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
@@ -12269,14 +12533,14 @@ const getVisualization_ConfigPropertyMetadata = [
|
|
|
12269
12533
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
12270
12534
|
];
|
|
12271
12535
|
const getVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getVisualization_ConfigPropertyMetadata);
|
|
12272
|
-
const createResourceParams$k = /*#__PURE__*/ createResourceParams$
|
|
12536
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$11(getVisualization_ConfigPropertyMetadata);
|
|
12273
12537
|
function keyBuilder$r(luvio, config) {
|
|
12274
12538
|
const resourceParams = createResourceParams$k(config);
|
|
12275
12539
|
return keyBuilder$s(luvio, resourceParams);
|
|
12276
12540
|
}
|
|
12277
12541
|
function typeCheckConfig$k(untrustedConfig) {
|
|
12278
12542
|
const config = {};
|
|
12279
|
-
typeCheckConfig$
|
|
12543
|
+
typeCheckConfig$11(untrustedConfig, config, getVisualization_ConfigPropertyMetadata);
|
|
12280
12544
|
return config;
|
|
12281
12545
|
}
|
|
12282
12546
|
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
@@ -12325,7 +12589,7 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
12325
12589
|
});
|
|
12326
12590
|
}
|
|
12327
12591
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
12328
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12592
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
12329
12593
|
}
|
|
12330
12594
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
12331
12595
|
const { luvio, config } = context;
|
|
@@ -12403,10 +12667,10 @@ const updateVisualization_ConfigPropertyMetadata = [
|
|
|
12403
12667
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
12404
12668
|
];
|
|
12405
12669
|
const updateVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, updateVisualization_ConfigPropertyMetadata);
|
|
12406
|
-
const createResourceParams$j = /*#__PURE__*/ createResourceParams$
|
|
12670
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$11(updateVisualization_ConfigPropertyMetadata);
|
|
12407
12671
|
function typeCheckConfig$j(untrustedConfig) {
|
|
12408
12672
|
const config = {};
|
|
12409
|
-
typeCheckConfig$
|
|
12673
|
+
typeCheckConfig$11(untrustedConfig, config, updateVisualization_ConfigPropertyMetadata);
|
|
12410
12674
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
12411
12675
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
12412
12676
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -12671,14 +12935,14 @@ const getVisualizationBundle_ConfigPropertyMetadata = [
|
|
|
12671
12935
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
12672
12936
|
];
|
|
12673
12937
|
const getVisualizationBundle_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getVisualizationBundle_ConfigPropertyMetadata);
|
|
12674
|
-
const createResourceParams$i = /*#__PURE__*/ createResourceParams$
|
|
12938
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$11(getVisualizationBundle_ConfigPropertyMetadata);
|
|
12675
12939
|
function keyBuilder$o(luvio, config) {
|
|
12676
12940
|
const resourceParams = createResourceParams$i(config);
|
|
12677
12941
|
return keyBuilder$p(luvio, resourceParams);
|
|
12678
12942
|
}
|
|
12679
12943
|
function typeCheckConfig$i(untrustedConfig) {
|
|
12680
12944
|
const config = {};
|
|
12681
|
-
typeCheckConfig$
|
|
12945
|
+
typeCheckConfig$11(untrustedConfig, config, getVisualizationBundle_ConfigPropertyMetadata);
|
|
12682
12946
|
return config;
|
|
12683
12947
|
}
|
|
12684
12948
|
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
@@ -12727,7 +12991,7 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
12727
12991
|
});
|
|
12728
12992
|
}
|
|
12729
12993
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
12730
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12994
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
12731
12995
|
}
|
|
12732
12996
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
12733
12997
|
const { luvio, config } = context;
|
|
@@ -13016,14 +13280,14 @@ const getWorkspaces_ConfigPropertyMetadata = [
|
|
|
13016
13280
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
13017
13281
|
];
|
|
13018
13282
|
const getWorkspaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getWorkspaces_ConfigPropertyMetadata);
|
|
13019
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams$
|
|
13283
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$11(getWorkspaces_ConfigPropertyMetadata);
|
|
13020
13284
|
function keyBuilder$l(luvio, config) {
|
|
13021
13285
|
const resourceParams = createResourceParams$h(config);
|
|
13022
13286
|
return keyBuilder$m(luvio, resourceParams);
|
|
13023
13287
|
}
|
|
13024
13288
|
function typeCheckConfig$h(untrustedConfig) {
|
|
13025
13289
|
const config = {};
|
|
13026
|
-
typeCheckConfig$
|
|
13290
|
+
typeCheckConfig$11(untrustedConfig, config, getWorkspaces_ConfigPropertyMetadata);
|
|
13027
13291
|
return config;
|
|
13028
13292
|
}
|
|
13029
13293
|
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
@@ -13072,7 +13336,7 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
13072
13336
|
});
|
|
13073
13337
|
}
|
|
13074
13338
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
13075
|
-
return buildNetworkSnapshotCachePolicy$
|
|
13339
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
13076
13340
|
}
|
|
13077
13341
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
13078
13342
|
const { luvio, config } = context;
|
|
@@ -13142,10 +13406,10 @@ const createWorkspace_ConfigPropertyMetadata = [
|
|
|
13142
13406
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
13143
13407
|
];
|
|
13144
13408
|
const createWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, createWorkspace_ConfigPropertyMetadata);
|
|
13145
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams$
|
|
13409
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$11(createWorkspace_ConfigPropertyMetadata);
|
|
13146
13410
|
function typeCheckConfig$g(untrustedConfig) {
|
|
13147
13411
|
const config = {};
|
|
13148
|
-
typeCheckConfig$
|
|
13412
|
+
typeCheckConfig$11(untrustedConfig, config, createWorkspace_ConfigPropertyMetadata);
|
|
13149
13413
|
return config;
|
|
13150
13414
|
}
|
|
13151
13415
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -13226,10 +13490,10 @@ const deleteWorkspace_ConfigPropertyMetadata = [
|
|
|
13226
13490
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13227
13491
|
];
|
|
13228
13492
|
const deleteWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, deleteWorkspace_ConfigPropertyMetadata);
|
|
13229
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams$
|
|
13493
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$11(deleteWorkspace_ConfigPropertyMetadata);
|
|
13230
13494
|
function typeCheckConfig$f(untrustedConfig) {
|
|
13231
13495
|
const config = {};
|
|
13232
|
-
typeCheckConfig$
|
|
13496
|
+
typeCheckConfig$11(untrustedConfig, config, deleteWorkspace_ConfigPropertyMetadata);
|
|
13233
13497
|
return config;
|
|
13234
13498
|
}
|
|
13235
13499
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -13327,14 +13591,14 @@ const getWorkspaceByIdOrName_ConfigPropertyMetadata = [
|
|
|
13327
13591
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13328
13592
|
];
|
|
13329
13593
|
const getWorkspaceByIdOrName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
13330
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams$
|
|
13594
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$11(getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
13331
13595
|
function keyBuilder$i(luvio, config) {
|
|
13332
13596
|
const resourceParams = createResourceParams$e(config);
|
|
13333
13597
|
return keyBuilder$j(luvio, resourceParams);
|
|
13334
13598
|
}
|
|
13335
13599
|
function typeCheckConfig$e(untrustedConfig) {
|
|
13336
13600
|
const config = {};
|
|
13337
|
-
typeCheckConfig$
|
|
13601
|
+
typeCheckConfig$11(untrustedConfig, config, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
13338
13602
|
return config;
|
|
13339
13603
|
}
|
|
13340
13604
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -13383,7 +13647,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
13383
13647
|
});
|
|
13384
13648
|
}
|
|
13385
13649
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
13386
|
-
return buildNetworkSnapshotCachePolicy$
|
|
13650
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
13387
13651
|
}
|
|
13388
13652
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
13389
13653
|
const { luvio, config } = context;
|
|
@@ -13454,10 +13718,10 @@ const updateWorkspace_ConfigPropertyMetadata = [
|
|
|
13454
13718
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
13455
13719
|
];
|
|
13456
13720
|
const updateWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, updateWorkspace_ConfigPropertyMetadata);
|
|
13457
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams$
|
|
13721
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$11(updateWorkspace_ConfigPropertyMetadata);
|
|
13458
13722
|
function typeCheckConfig$d(untrustedConfig) {
|
|
13459
13723
|
const config = {};
|
|
13460
|
-
typeCheckConfig$
|
|
13724
|
+
typeCheckConfig$11(untrustedConfig, config, updateWorkspace_ConfigPropertyMetadata);
|
|
13461
13725
|
return config;
|
|
13462
13726
|
}
|
|
13463
13727
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -13638,10 +13902,10 @@ const createWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
13638
13902
|
generateParamConfigMetadata('assetUsageType', true, 2 /* Body */, 0 /* String */),
|
|
13639
13903
|
];
|
|
13640
13904
|
const createWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
13641
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams$
|
|
13905
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$11(createWorkspaceAsset_ConfigPropertyMetadata);
|
|
13642
13906
|
function typeCheckConfig$c(untrustedConfig) {
|
|
13643
13907
|
const config = {};
|
|
13644
|
-
typeCheckConfig$
|
|
13908
|
+
typeCheckConfig$11(untrustedConfig, config, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
13645
13909
|
return config;
|
|
13646
13910
|
}
|
|
13647
13911
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -13723,10 +13987,10 @@ const deleteWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
13723
13987
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13724
13988
|
];
|
|
13725
13989
|
const deleteWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
13726
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams$
|
|
13990
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$11(deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
13727
13991
|
function typeCheckConfig$b(untrustedConfig) {
|
|
13728
13992
|
const config = {};
|
|
13729
|
-
typeCheckConfig$
|
|
13993
|
+
typeCheckConfig$11(untrustedConfig, config, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
13730
13994
|
return config;
|
|
13731
13995
|
}
|
|
13732
13996
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -14111,14 +14375,14 @@ const getFlows_ConfigPropertyMetadata = [
|
|
|
14111
14375
|
generateParamConfigMetadata('searchTerm', false, 1 /* QueryParameter */, 0 /* String */),
|
|
14112
14376
|
];
|
|
14113
14377
|
const getFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getFlows_ConfigPropertyMetadata);
|
|
14114
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams$
|
|
14378
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$11(getFlows_ConfigPropertyMetadata);
|
|
14115
14379
|
function keyBuilder$e(luvio, config) {
|
|
14116
14380
|
const resourceParams = createResourceParams$a(config);
|
|
14117
14381
|
return keyBuilder$f(luvio, resourceParams);
|
|
14118
14382
|
}
|
|
14119
14383
|
function typeCheckConfig$a(untrustedConfig) {
|
|
14120
14384
|
const config = {};
|
|
14121
|
-
typeCheckConfig$
|
|
14385
|
+
typeCheckConfig$11(untrustedConfig, config, getFlows_ConfigPropertyMetadata);
|
|
14122
14386
|
return config;
|
|
14123
14387
|
}
|
|
14124
14388
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -14167,7 +14431,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
14167
14431
|
});
|
|
14168
14432
|
}
|
|
14169
14433
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
14170
|
-
return buildNetworkSnapshotCachePolicy$
|
|
14434
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
14171
14435
|
}
|
|
14172
14436
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
14173
14437
|
const { luvio, config } = context;
|
|
@@ -14243,14 +14507,14 @@ const getFlowByName_ConfigPropertyMetadata = [
|
|
|
14243
14507
|
generateParamConfigMetadata('flowApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
14244
14508
|
];
|
|
14245
14509
|
const getFlowByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getFlowByName_ConfigPropertyMetadata);
|
|
14246
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$
|
|
14510
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$11(getFlowByName_ConfigPropertyMetadata);
|
|
14247
14511
|
function keyBuilder$c(luvio, config) {
|
|
14248
14512
|
const resourceParams = createResourceParams$9(config);
|
|
14249
14513
|
return keyBuilder$d(luvio, resourceParams);
|
|
14250
14514
|
}
|
|
14251
14515
|
function typeCheckConfig$9(untrustedConfig) {
|
|
14252
14516
|
const config = {};
|
|
14253
|
-
typeCheckConfig$
|
|
14517
|
+
typeCheckConfig$11(untrustedConfig, config, getFlowByName_ConfigPropertyMetadata);
|
|
14254
14518
|
return config;
|
|
14255
14519
|
}
|
|
14256
14520
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -14299,7 +14563,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
14299
14563
|
});
|
|
14300
14564
|
}
|
|
14301
14565
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
14302
|
-
return buildNetworkSnapshotCachePolicy$
|
|
14566
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
14303
14567
|
}
|
|
14304
14568
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
14305
14569
|
const { luvio, config } = context;
|
|
@@ -14457,14 +14721,14 @@ const getSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
14457
14721
|
generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
|
|
14458
14722
|
];
|
|
14459
14723
|
const getSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
14460
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$
|
|
14724
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$11(getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
14461
14725
|
function keyBuilder$9(luvio, config) {
|
|
14462
14726
|
const resourceParams = createResourceParams$8(config);
|
|
14463
14727
|
return keyBuilder$a(luvio, resourceParams);
|
|
14464
14728
|
}
|
|
14465
14729
|
function typeCheckConfig$8(untrustedConfig) {
|
|
14466
14730
|
const config = {};
|
|
14467
|
-
typeCheckConfig$
|
|
14731
|
+
typeCheckConfig$11(untrustedConfig, config, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
14468
14732
|
return config;
|
|
14469
14733
|
}
|
|
14470
14734
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -14513,7 +14777,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
14513
14777
|
});
|
|
14514
14778
|
}
|
|
14515
14779
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
14516
|
-
return buildNetworkSnapshotCachePolicy$
|
|
14780
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
14517
14781
|
}
|
|
14518
14782
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
14519
14783
|
const { luvio, config } = context;
|
|
@@ -14582,10 +14846,10 @@ const updateSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
14582
14846
|
generateParamConfigMetadata('scheduleType', true, 2 /* Body */, 0 /* String */),
|
|
14583
14847
|
];
|
|
14584
14848
|
const updateSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
14585
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
14849
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$11(updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
14586
14850
|
function typeCheckConfig$7(untrustedConfig) {
|
|
14587
14851
|
const config = {};
|
|
14588
|
-
typeCheckConfig$
|
|
14852
|
+
typeCheckConfig$11(untrustedConfig, config, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
14589
14853
|
return config;
|
|
14590
14854
|
}
|
|
14591
14855
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -14817,10 +15081,10 @@ const getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata = [
|
|
|
14817
15081
|
generateParamConfigMetadata('sortDirection', false, 2 /* Body */, 0 /* String */),
|
|
14818
15082
|
];
|
|
14819
15083
|
const getUnifiedAnalyticsLibraryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
14820
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
15084
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$11(getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
14821
15085
|
function typeCheckConfig$6(untrustedConfig) {
|
|
14822
15086
|
const config = {};
|
|
14823
|
-
typeCheckConfig$
|
|
15087
|
+
typeCheckConfig$11(untrustedConfig, config, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
14824
15088
|
const untrustedConfig_assetTypes = untrustedConfig.assetTypes;
|
|
14825
15089
|
if (ArrayIsArray$1(untrustedConfig_assetTypes)) {
|
|
14826
15090
|
const untrustedConfig_assetTypes_array = [];
|
|
@@ -15052,10 +15316,10 @@ const generateSFDriveCredentials_ConfigPropertyMetadata = [
|
|
|
15052
15316
|
generateParamConfigMetadata('path', true, 2 /* Body */, 0 /* String */),
|
|
15053
15317
|
];
|
|
15054
15318
|
const generateSFDriveCredentials_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
15055
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
15319
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$11(generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
15056
15320
|
function typeCheckConfig$5(untrustedConfig) {
|
|
15057
15321
|
const config = {};
|
|
15058
|
-
typeCheckConfig$
|
|
15322
|
+
typeCheckConfig$11(untrustedConfig, config, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
15059
15323
|
return config;
|
|
15060
15324
|
}
|
|
15061
15325
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -15226,10 +15490,10 @@ const generateSFDrivePresignedCredentials_ConfigPropertyMetadata = [
|
|
|
15226
15490
|
generateParamConfigMetadata('fileName', true, 2 /* Body */, 0 /* String */),
|
|
15227
15491
|
];
|
|
15228
15492
|
const generateSFDrivePresignedCredentials_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, generateSFDrivePresignedCredentials_ConfigPropertyMetadata);
|
|
15229
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
15493
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$11(generateSFDrivePresignedCredentials_ConfigPropertyMetadata);
|
|
15230
15494
|
function typeCheckConfig$4(untrustedConfig) {
|
|
15231
15495
|
const config = {};
|
|
15232
|
-
typeCheckConfig$
|
|
15496
|
+
typeCheckConfig$11(untrustedConfig, config, generateSFDrivePresignedCredentials_ConfigPropertyMetadata);
|
|
15233
15497
|
return config;
|
|
15234
15498
|
}
|
|
15235
15499
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -15400,14 +15664,14 @@ const initiateMarketplaceListingInstallation_ConfigPropertyMetadata = [
|
|
|
15400
15664
|
generateParamConfigMetadata('listingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
15401
15665
|
];
|
|
15402
15666
|
const initiateMarketplaceListingInstallation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
15403
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
15667
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$11(initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
15404
15668
|
function keyBuilder$4(luvio, config) {
|
|
15405
15669
|
const resourceParams = createResourceParams$3(config);
|
|
15406
15670
|
return keyBuilder$5(luvio, resourceParams);
|
|
15407
15671
|
}
|
|
15408
15672
|
function typeCheckConfig$3(untrustedConfig) {
|
|
15409
15673
|
const config = {};
|
|
15410
|
-
typeCheckConfig$
|
|
15674
|
+
typeCheckConfig$11(untrustedConfig, config, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
15411
15675
|
return config;
|
|
15412
15676
|
}
|
|
15413
15677
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -15456,7 +15720,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
15456
15720
|
});
|
|
15457
15721
|
}
|
|
15458
15722
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
15459
|
-
return buildNetworkSnapshotCachePolicy$
|
|
15723
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
15460
15724
|
}
|
|
15461
15725
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
15462
15726
|
const { luvio, config } = context;
|
|
@@ -15634,14 +15898,14 @@ const getMarketplaceListingInstallationProgress_ConfigPropertyMetadata = [
|
|
|
15634
15898
|
generateParamConfigMetadata('installationId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
15635
15899
|
];
|
|
15636
15900
|
const getMarketplaceListingInstallationProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
15637
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
15901
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$11(getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
15638
15902
|
function keyBuilder$2(luvio, config) {
|
|
15639
15903
|
const resourceParams = createResourceParams$2(config);
|
|
15640
15904
|
return keyBuilder$3(luvio, resourceParams);
|
|
15641
15905
|
}
|
|
15642
15906
|
function typeCheckConfig$2(untrustedConfig) {
|
|
15643
15907
|
const config = {};
|
|
15644
|
-
typeCheckConfig$
|
|
15908
|
+
typeCheckConfig$11(untrustedConfig, config, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
15645
15909
|
return config;
|
|
15646
15910
|
}
|
|
15647
15911
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -15690,7 +15954,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
15690
15954
|
});
|
|
15691
15955
|
}
|
|
15692
15956
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
15693
|
-
return buildNetworkSnapshotCachePolicy$
|
|
15957
|
+
return buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
15694
15958
|
}
|
|
15695
15959
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
15696
15960
|
const { luvio, config } = context;
|
|
@@ -15826,10 +16090,10 @@ const createTemplate_ConfigPropertyMetadata = [
|
|
|
15826
16090
|
generateParamConfigMetadata('tags', true, 2 /* Body */, 4 /* Unsupported */),
|
|
15827
16091
|
];
|
|
15828
16092
|
const createTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createTemplate_ConfigPropertyMetadata);
|
|
15829
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
16093
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$11(createTemplate_ConfigPropertyMetadata);
|
|
15830
16094
|
function typeCheckConfig$1(untrustedConfig) {
|
|
15831
16095
|
const config = {};
|
|
15832
|
-
typeCheckConfig$
|
|
16096
|
+
typeCheckConfig$11(untrustedConfig, config, createTemplate_ConfigPropertyMetadata);
|
|
15833
16097
|
const untrustedConfig_tags = untrustedConfig.tags;
|
|
15834
16098
|
if (untrustedIsObject(untrustedConfig_tags)) {
|
|
15835
16099
|
const untrustedConfig_tags_object = {};
|
|
@@ -16006,10 +16270,10 @@ const publishToMarketplace_ConfigPropertyMetadata = [
|
|
|
16006
16270
|
generateParamConfigMetadata('assetVersion', false, 2 /* Body */, 2 /* Number */),
|
|
16007
16271
|
];
|
|
16008
16272
|
const publishToMarketplace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, publishToMarketplace_ConfigPropertyMetadata);
|
|
16009
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
16273
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$11(publishToMarketplace_ConfigPropertyMetadata);
|
|
16010
16274
|
function typeCheckConfig(untrustedConfig) {
|
|
16011
16275
|
const config = {};
|
|
16012
|
-
typeCheckConfig$
|
|
16276
|
+
typeCheckConfig$11(untrustedConfig, config, publishToMarketplace_ConfigPropertyMetadata);
|
|
16013
16277
|
return config;
|
|
16014
16278
|
}
|
|
16015
16279
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -16054,4 +16318,4 @@ const publishToMarketplaceAdapterFactory = (luvio) => {
|
|
|
16054
16318
|
};
|
|
16055
16319
|
};
|
|
16056
16320
|
|
|
16057
|
-
export { createAnnotationAdapterFactory, createAssetSlackChannelAdapterFactory, createDashboardAdapterFactory, createDataAlertAdapterFactory, createDataAssetRequestAdapterFactory, createLoglinesAdapterFactory, createRecordSharesAdapterFactory, createTemplateAdapterFactory, createVisualizationAdapterFactory, createWorkspaceAdapterFactory, createWorkspaceAssetAdapterFactory, deleteAllSharesAdapterFactory, deleteDashboardAdapterFactory, deleteDataAlertAdapterFactory, deleteRecordShareAdapterFactory, deleteVisualizationAdapterFactory, deleteWorkspaceAdapterFactory, deleteWorkspaceAssetAdapterFactory, followAdapterFactory, generateSFDriveCredentialsAdapterFactory, generateSFDrivePresignedCredentialsAdapterFactory, getAnnotationsAdapterFactory, getAssetSlackChannelsAdapterFactory, getDashboardByNameAdapterFactory, getDashboardsAdapterFactory, getDataAlertAdapterFactory, getDataAlertCollectionAdapterFactory, getDataAssetDependenciesAdapterFactory, getDataAssetLineageByIdOrApiNameAdapterFactory, getDataAssetRequestByIdOrApiNameAdapterFactory, getDataAssetRequestsAdapterFactory, getDataAssetRequestsCountAdapterFactory, getFlowByNameAdapterFactory, getFlowsAdapterFactory, getFollowedAssetsAdapterFactory, getFollowersAdapterFactory, getMarketplaceListingInstallationProgressAdapterFactory, getOrgAdapterFactory, getSharesAdapterFactory, getSlackAppInfoAdapterFactory, getSubscriptionDigestConfigAdapterFactory, getUnifiedAnalyticsLibraryAssetsAdapterFactory, getUniqueFollowerCountAdapterFactory, getVisualizationAdapterFactory, getVisualizationBundleAdapterFactory, getVisualizationsAdapterFactory, getWorkspaceByIdOrNameAdapterFactory, getWorkspacesAdapterFactory, initiateMarketplaceListingInstallationAdapterFactory, notifyUpdateAvailableFactory as notifySharesUpdateAvailableFactory, postDataAlertQueryAdapterFactory, postDataAlertRunAdapterFactory, publishAdapterFactory, publishToMarketplaceAdapterFactory, queryAssetsAdapterFactory, queryUsersAdapterFactory, unfollowAdapterFactory, updateDashboardAdapterFactory, updateDataAlertAdapterFactory, updateDataAssetRequestAdapterFactory, updateFollowedAssetAdapterFactory, updateRecordSharesAdapterFactory, updateSubscriptionDigestConfigAdapterFactory, updateVisualizationAdapterFactory, updateWorkspaceAdapterFactory };
|
|
16321
|
+
export { createAnnotationAdapterFactory, createAssetSlackChannelAdapterFactory, createDashboardAdapterFactory, createDataAlertAdapterFactory, createDataAssetRequestAdapterFactory, createLoglinesAdapterFactory, createRecordSharesAdapterFactory, createTemplateAdapterFactory, createVisualizationAdapterFactory, createWorkspaceAdapterFactory, createWorkspaceAssetAdapterFactory, deleteAllSharesAdapterFactory, deleteDashboardAdapterFactory, deleteDataAlertAdapterFactory, deleteRecordShareAdapterFactory, deleteVisualizationAdapterFactory, deleteWorkspaceAdapterFactory, deleteWorkspaceAssetAdapterFactory, followAdapterFactory, generateSFDriveCredentialsAdapterFactory, generateSFDrivePresignedCredentialsAdapterFactory, getAnnotationsAdapterFactory, getAssetSlackChannelsAdapterFactory, getDashboardByNameAdapterFactory, getDashboardsAdapterFactory, getDataAlertAdapterFactory, getDataAlertCollectionAdapterFactory, getDataAssetDependenciesAdapterFactory, getDataAssetLineageByIdOrApiNameAdapterFactory, getDataAssetRequestByIdOrApiNameAdapterFactory, getDataAssetRequestsAdapterFactory, getDataAssetRequestsCountAdapterFactory, getFlowByNameAdapterFactory, getFlowsAdapterFactory, getFollowedAssetsAdapterFactory, getFollowersAdapterFactory, getMarketplaceListingInstallationProgressAdapterFactory, getOrgAdapterFactory, getSharesAdapterFactory, getSlackAppInfoAdapterFactory, getSubscriptionDigestConfigAdapterFactory, getUnifiedAnalyticsLibraryAssetsAdapterFactory, getUniqueFollowerCountAdapterFactory, getVisualizationAdapterFactory, getVisualizationBundleAdapterFactory, getVisualizationsAdapterFactory, getWorkspaceByIdOrNameAdapterFactory, getWorkspacesAdapterFactory, initiateMarketplaceListingInstallationAdapterFactory, notifyUpdateAvailableFactory as notifySharesUpdateAvailableFactory, postDataAlertQueryAdapterFactory, postDataAlertRunAdapterFactory, postDataAlertTransientRunAdapterFactory, publishAdapterFactory, publishToMarketplaceAdapterFactory, queryAssetsAdapterFactory, queryUsersAdapterFactory, unfollowAdapterFactory, updateDashboardAdapterFactory, updateDataAlertAdapterFactory, updateDataAssetRequestAdapterFactory, updateFollowedAssetAdapterFactory, updateRecordSharesAdapterFactory, updateSubscriptionDigestConfigAdapterFactory, updateVisualizationAdapterFactory, updateWorkspaceAdapterFactory };
|