@salesforce/lds-adapters-analytics-unifiedanalytics 1.429.0 → 1.431.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/analytics-unifiedanalytics.js +1043 -731
- package/dist/es/es2018/types/src/generated/adapters/postDataAlertQuery.d.ts +33 -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/postTableauDataAlertsQuery.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertPropertyFilterInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertPropertyFilterOutputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertQueryCollectionRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertQueryInputRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertRepresentation.d.ts +5 -1
- package/package.json +3 -3
- package/sfdc/index.js +2797 -2474
- package/src/raml/api.raml +92 -0
- package/src/raml/luvio.raml +9 -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$$, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$r, typeCheckConfig as typeCheckConfig$$ } 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$u = 1000;
|
|
97
|
+
const VERSION$H = "3c943f1d2e5251ceef13b3e2fdb5f916";
|
|
98
|
+
function validate$1u(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$1q(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$J = 'TableauExternalMonitoringEventItemRepresentation';
|
|
122
|
+
function keyBuilder$1o(luvio, config) {
|
|
123
|
+
return keyPrefix + '::' + RepresentationType$J + ':' + 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$1o(luvio, keyParams);
|
|
130
130
|
}
|
|
131
|
-
function normalize$
|
|
131
|
+
function normalize$H(input, existing, path, luvio, store, timestamp) {
|
|
132
132
|
return input;
|
|
133
133
|
}
|
|
134
|
-
const select$
|
|
134
|
+
const select$1y = function TableauExternalMonitoringEventItemRepresentationSelect() {
|
|
135
135
|
return {
|
|
136
136
|
kind: 'Fragment',
|
|
137
|
-
version: VERSION$
|
|
137
|
+
version: VERSION$H,
|
|
138
138
|
private: [],
|
|
139
139
|
opaque: true
|
|
140
140
|
};
|
|
141
141
|
};
|
|
142
|
-
function equals$
|
|
142
|
+
function equals$H(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$H = function TableauExternalMonitoringEventItemRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
149
149
|
if (process.env.NODE_ENV !== 'production') {
|
|
150
|
-
const validateError = validate$
|
|
150
|
+
const validateError = validate$1u(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$u;
|
|
157
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$H, "UnifiedAnalytics", VERSION$H, RepresentationType$J, equals$H);
|
|
158
158
|
return createLink(key);
|
|
159
159
|
};
|
|
160
|
-
function getTypeCacheKeys$
|
|
160
|
+
function getTypeCacheKeys$H(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$J,
|
|
166
166
|
mergeable: false
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
function select$
|
|
171
|
-
return select$
|
|
170
|
+
function select$1x(luvio, params) {
|
|
171
|
+
return select$1y();
|
|
172
172
|
}
|
|
173
|
-
function getResponseCacheKeys$
|
|
174
|
-
getTypeCacheKeys$
|
|
173
|
+
function getResponseCacheKeys$_(storeKeyMap, luvio, resourceParams, response) {
|
|
174
|
+
getTypeCacheKeys$H(storeKeyMap, luvio, response);
|
|
175
175
|
}
|
|
176
|
-
function ingestSuccess$
|
|
176
|
+
function ingestSuccess$S(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$H, body);
|
|
180
180
|
const snapshot = luvio.storeLookup({
|
|
181
181
|
recordId: key,
|
|
182
|
-
node: select$
|
|
182
|
+
node: select$1x(),
|
|
183
183
|
variables: {},
|
|
184
184
|
});
|
|
185
185
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -190,7 +190,7 @@ function ingestSuccess$R(luvio, resourceParams, response) {
|
|
|
190
190
|
deepFreeze(snapshot.data);
|
|
191
191
|
return snapshot;
|
|
192
192
|
}
|
|
193
|
-
function createResourceRequest$
|
|
193
|
+
function createResourceRequest$_(config) {
|
|
194
194
|
const headers = {};
|
|
195
195
|
return {
|
|
196
196
|
baseUri: '/services/data/v67.0',
|
|
@@ -204,13 +204,13 @@ function createResourceRequest$Z(config) {
|
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
const adapterName$
|
|
207
|
+
const adapterName$_ = '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$_, publish_ConfigPropertyMetadata);
|
|
212
|
+
const createResourceParams$_ = /*#__PURE__*/ createResourceParams$$(publish_ConfigPropertyMetadata);
|
|
213
|
+
function typeCheckConfig$_(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$Z(untrustedConfig) {
|
|
|
223
223
|
}
|
|
224
224
|
return config;
|
|
225
225
|
}
|
|
226
|
-
function validateAdapterConfig$
|
|
226
|
+
function validateAdapterConfig$_(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$_(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$_(luvio, config, options) {
|
|
240
|
+
const resourceParams = createResourceParams$_(config);
|
|
241
|
+
const request = createResourceRequest$_(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$S(luvio, resourceParams, response);
|
|
246
246
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
247
247
|
}, () => {
|
|
248
248
|
const cache = new StoreKeyMap();
|
|
249
|
-
getResponseCacheKeys$
|
|
249
|
+
getResponseCacheKeys$_(cache, luvio, resourceParams, response.body);
|
|
250
250
|
return cache;
|
|
251
251
|
});
|
|
252
252
|
}, (response) => {
|
|
@@ -256,16 +256,16 @@ function buildNetworkSnapshot$Z(luvio, config, options) {
|
|
|
256
256
|
}
|
|
257
257
|
const publishAdapterFactory = (luvio) => {
|
|
258
258
|
return function publish(untrustedConfig) {
|
|
259
|
-
const config = validateAdapterConfig$
|
|
259
|
+
const config = validateAdapterConfig$_(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$_(luvio, config);
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
267
|
|
|
268
|
-
function validate$
|
|
268
|
+
function validate$1t(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$1p(obj, path = 'DashboardAnnotationAnchorRepresentation') {
|
|
|
279
279
|
return v_error === undefined ? null : v_error;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
function validate$
|
|
282
|
+
function validate$1s(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$1o(obj, path = 'AnnotationAssetRepresentation') {
|
|
|
298
298
|
return v_error === undefined ? null : v_error;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
function validate$
|
|
301
|
+
function validate$1r(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$1n(obj, path = 'FileTypeOutputRepresentation') {
|
|
|
317
317
|
return v_error === undefined ? null : v_error;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
function validate$
|
|
320
|
+
function validate$1q(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$1m(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$1r(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$1m(obj, path = 'ContentVersionOutputRepresentation') {
|
|
|
401
401
|
return v_error === undefined ? null : v_error;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
function validate$
|
|
404
|
+
function validate$1p(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$1r(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$1l(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$1q(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$1l(obj, path = 'ContentDocumentOutputRepresentation') {
|
|
|
441
441
|
return v_error === undefined ? null : v_error;
|
|
442
442
|
}
|
|
443
443
|
|
|
444
|
-
function validate$
|
|
444
|
+
function validate$1o(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$1k(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$1p(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$1k(obj, path = 'SlackFileOutputRepresentation') {
|
|
|
550
550
|
return v_error === undefined ? null : v_error;
|
|
551
551
|
}
|
|
552
552
|
|
|
553
|
-
function validate$
|
|
553
|
+
function validate$1n(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$1j(obj, path = 'SlackEmojiOutputRepresentation') {
|
|
|
674
674
|
return v_error === undefined ? null : v_error;
|
|
675
675
|
}
|
|
676
676
|
|
|
677
|
-
function validate$
|
|
677
|
+
function validate$1m(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$1i(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$1n(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$1i(obj, path = 'SlackUserInfoOutputRepresentation') {
|
|
|
1064
1064
|
return v_error === undefined ? null : v_error;
|
|
1065
1065
|
}
|
|
1066
1066
|
|
|
1067
|
-
function validate$
|
|
1067
|
+
function validate$1l(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$1h(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$1m(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$1h(obj, path = 'SlackReactionOutputRepresentation') {
|
|
|
1233
1233
|
return v_error === undefined ? null : v_error;
|
|
1234
1234
|
}
|
|
1235
1235
|
|
|
1236
|
-
function validate$
|
|
1236
|
+
function validate$1k(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$1g(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$1o(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$1g(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$1l(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$1g(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$1m(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$1g(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$1m(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$1g(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1627
1627
|
return v_error === undefined ? null : v_error;
|
|
1628
1628
|
}
|
|
1629
1629
|
|
|
1630
|
-
function validate$
|
|
1630
|
+
function validate$1j(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$1f(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$1k(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$1f(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$t = 1000;
|
|
1691
|
+
const VERSION$G = "bacc25da56cffff8126d9bdafc471a37";
|
|
1692
|
+
function validate$1i(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$1e(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$1t(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$1e(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$1s(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$1e(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$1j(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$1e(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$I = 'AnnotationRepresentation';
|
|
1742
|
+
function keyBuilder$1n(luvio, config) {
|
|
1743
|
+
return keyPrefix + '::' + RepresentationType$I + ':' + 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$1n(luvio, keyParams);
|
|
1750
1750
|
}
|
|
1751
|
-
function normalize$
|
|
1751
|
+
function normalize$G(input, existing, path, luvio, store, timestamp) {
|
|
1752
1752
|
return input;
|
|
1753
1753
|
}
|
|
1754
|
-
const select$
|
|
1754
|
+
const select$1w = function AnnotationRepresentationSelect() {
|
|
1755
1755
|
return {
|
|
1756
1756
|
kind: 'Fragment',
|
|
1757
|
-
version: VERSION$
|
|
1757
|
+
version: VERSION$G,
|
|
1758
1758
|
private: [],
|
|
1759
1759
|
opaque: true
|
|
1760
1760
|
};
|
|
1761
1761
|
};
|
|
1762
|
-
function equals$
|
|
1762
|
+
function equals$G(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$G = function AnnotationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1769
1769
|
if (process.env.NODE_ENV !== 'production') {
|
|
1770
|
-
const validateError = validate$
|
|
1770
|
+
const validateError = validate$1i(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$t;
|
|
1777
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$G, "UnifiedAnalytics", VERSION$G, RepresentationType$I, equals$G);
|
|
1778
1778
|
return createLink(key);
|
|
1779
1779
|
};
|
|
1780
|
-
function getTypeCacheKeys$
|
|
1780
|
+
function getTypeCacheKeys$G(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$I,
|
|
1786
1786
|
mergeable: false
|
|
1787
1787
|
});
|
|
1788
1788
|
}
|
|
1789
1789
|
|
|
1790
|
-
const TTL$
|
|
1791
|
-
const VERSION$
|
|
1792
|
-
function validate$
|
|
1790
|
+
const TTL$s = 1000;
|
|
1791
|
+
const VERSION$F = "a80c8e970184cc7789e13f69392d6203";
|
|
1792
|
+
function validate$1h(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$1d(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$H = 'AnnotationCollectionRepresentation';
|
|
1818
|
+
function normalize$F(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$G(input_annotations_item, {
|
|
1825
1825
|
fullPath: input_annotations_item_id,
|
|
1826
1826
|
propertyName: i,
|
|
1827
1827
|
parent: {
|
|
@@ -1834,17 +1834,17 @@ function normalize$E(input, existing, path, luvio, store, timestamp) {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
return input;
|
|
1836
1836
|
}
|
|
1837
|
-
const select$
|
|
1837
|
+
const select$1v = function AnnotationCollectionRepresentationSelect() {
|
|
1838
1838
|
return {
|
|
1839
1839
|
kind: 'Fragment',
|
|
1840
|
-
version: VERSION$
|
|
1840
|
+
version: VERSION$F,
|
|
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$1w()
|
|
1848
1848
|
},
|
|
1849
1849
|
{
|
|
1850
1850
|
name: 'total',
|
|
@@ -1853,7 +1853,7 @@ const select$1t = function AnnotationCollectionRepresentationSelect() {
|
|
|
1853
1853
|
]
|
|
1854
1854
|
};
|
|
1855
1855
|
};
|
|
1856
|
-
function equals$
|
|
1856
|
+
function equals$F(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$E(existing, incoming) {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
return true;
|
|
1873
1873
|
}
|
|
1874
|
-
const ingest$
|
|
1874
|
+
const ingest$F = function AnnotationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1875
1875
|
if (process.env.NODE_ENV !== 'production') {
|
|
1876
|
-
const validateError = validate$
|
|
1876
|
+
const validateError = validate$1h(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$s;
|
|
1883
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$F, "UnifiedAnalytics", VERSION$F, RepresentationType$H, equals$F);
|
|
1884
1884
|
return createLink(key);
|
|
1885
1885
|
};
|
|
1886
|
-
function getTypeCacheKeys$
|
|
1886
|
+
function getTypeCacheKeys$F(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$H,
|
|
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$G(rootKeySet, luvio, input.annotations[i]);
|
|
1897
1897
|
}
|
|
1898
1898
|
}
|
|
1899
1899
|
|
|
1900
|
-
function select$
|
|
1901
|
-
return select$
|
|
1900
|
+
function select$1u(luvio, params) {
|
|
1901
|
+
return select$1v();
|
|
1902
1902
|
}
|
|
1903
|
-
function keyBuilder$
|
|
1903
|
+
function keyBuilder$1m(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$Z(storeKeyMap, luvio, resourceParams, response) {
|
|
1907
|
+
getTypeCacheKeys$F(storeKeyMap, luvio, response, () => keyBuilder$1m(luvio, resourceParams));
|
|
1908
1908
|
}
|
|
1909
|
-
function ingestSuccess$
|
|
1909
|
+
function ingestSuccess$R(luvio, resourceParams, response, snapshotRefresh) {
|
|
1910
1910
|
const { body } = response;
|
|
1911
|
-
const key = keyBuilder$
|
|
1912
|
-
luvio.storeIngest(key, ingest$
|
|
1911
|
+
const key = keyBuilder$1m(luvio, resourceParams);
|
|
1912
|
+
luvio.storeIngest(key, ingest$F, body);
|
|
1913
1913
|
const snapshot = luvio.storeLookup({
|
|
1914
1914
|
recordId: key,
|
|
1915
|
-
node: select$
|
|
1915
|
+
node: select$1u(),
|
|
1916
1916
|
variables: {},
|
|
1917
1917
|
}, snapshotRefresh);
|
|
1918
1918
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1923,19 +1923,19 @@ function ingestSuccess$Q(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$q(luvio, params, error, snapshotRefresh) {
|
|
1927
|
+
const key = keyBuilder$1m(luvio, params);
|
|
1928
1928
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1929
1929
|
const storeMetadataParams = {
|
|
1930
|
-
ttl: TTL$
|
|
1930
|
+
ttl: TTL$s,
|
|
1931
1931
|
namespace: keyPrefix,
|
|
1932
|
-
version: VERSION$
|
|
1933
|
-
representationName: RepresentationType$
|
|
1932
|
+
version: VERSION$F,
|
|
1933
|
+
representationName: RepresentationType$H
|
|
1934
1934
|
};
|
|
1935
1935
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1936
1936
|
return errorSnapshot;
|
|
1937
1937
|
}
|
|
1938
|
-
function createResourceRequest$
|
|
1938
|
+
function createResourceRequest$Z(config) {
|
|
1939
1939
|
const headers = {};
|
|
1940
1940
|
return {
|
|
1941
1941
|
baseUri: '/services/data/v67.0',
|
|
@@ -1949,7 +1949,7 @@ function createResourceRequest$Y(config) {
|
|
|
1949
1949
|
};
|
|
1950
1950
|
}
|
|
1951
1951
|
|
|
1952
|
-
const adapterName$
|
|
1952
|
+
const adapterName$Z = '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$Z, getAnnotations_ConfigPropertyMetadata);
|
|
1961
|
+
const createResourceParams$Z = /*#__PURE__*/ createResourceParams$$(getAnnotations_ConfigPropertyMetadata);
|
|
1962
|
+
function keyBuilder$1l(luvio, config) {
|
|
1963
|
+
const resourceParams = createResourceParams$Z(config);
|
|
1964
|
+
return keyBuilder$1m(luvio, resourceParams);
|
|
1965
1965
|
}
|
|
1966
|
-
function typeCheckConfig$
|
|
1966
|
+
function typeCheckConfig$Z(untrustedConfig) {
|
|
1967
1967
|
const config = {};
|
|
1968
|
-
typeCheckConfig
|
|
1968
|
+
typeCheckConfig$$(untrustedConfig, config, getAnnotations_ConfigPropertyMetadata);
|
|
1969
1969
|
return config;
|
|
1970
1970
|
}
|
|
1971
|
-
function validateAdapterConfig$
|
|
1971
|
+
function validateAdapterConfig$Z(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$Z(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$q(luvio, config) {
|
|
1985
|
+
createResourceParams$Z(config);
|
|
1986
|
+
return select$1u();
|
|
1987
1987
|
}
|
|
1988
|
-
function onFetchResponseSuccess$
|
|
1989
|
-
const snapshot = ingestSuccess$
|
|
1988
|
+
function onFetchResponseSuccess$q(luvio, config, resourceParams, response) {
|
|
1989
|
+
const snapshot = ingestSuccess$R(luvio, resourceParams, response, {
|
|
1990
1990
|
config,
|
|
1991
|
-
resolve: () => buildNetworkSnapshot$
|
|
1991
|
+
resolve: () => buildNetworkSnapshot$Z(luvio, config, snapshotRefreshOptions)
|
|
1992
1992
|
});
|
|
1993
1993
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1994
1994
|
}
|
|
1995
|
-
function onFetchResponseError$
|
|
1996
|
-
const snapshot = ingestError$
|
|
1995
|
+
function onFetchResponseError$q(luvio, config, resourceParams, response) {
|
|
1996
|
+
const snapshot = ingestError$q(luvio, resourceParams, response, {
|
|
1997
1997
|
config,
|
|
1998
|
-
resolve: () => buildNetworkSnapshot$
|
|
1998
|
+
resolve: () => buildNetworkSnapshot$Z(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$Z(luvio, config, options) {
|
|
2003
|
+
const resourceParams = createResourceParams$Z(config);
|
|
2004
|
+
const request = createResourceRequest$Z(resourceParams);
|
|
2005
2005
|
return luvio.dispatchResourceRequest(request, options)
|
|
2006
2006
|
.then((response) => {
|
|
2007
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2007
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$q(luvio, config, resourceParams, response), () => {
|
|
2008
2008
|
const cache = new StoreKeyMap();
|
|
2009
|
-
getResponseCacheKeys$
|
|
2009
|
+
getResponseCacheKeys$Z(cache, luvio, resourceParams, response.body);
|
|
2010
2010
|
return cache;
|
|
2011
2011
|
});
|
|
2012
2012
|
}, (response) => {
|
|
2013
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2013
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$q(luvio, config, resourceParams, response));
|
|
2014
2014
|
});
|
|
2015
2015
|
}
|
|
2016
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2017
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2016
|
+
function buildNetworkSnapshotCachePolicy$q(context, coercedAdapterRequestContext) {
|
|
2017
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$Z, undefined, false);
|
|
2018
2018
|
}
|
|
2019
|
-
function buildCachedSnapshotCachePolicy$
|
|
2019
|
+
function buildCachedSnapshotCachePolicy$q(context, storeLookup) {
|
|
2020
2020
|
const { luvio, config } = context;
|
|
2021
2021
|
const selector = {
|
|
2022
|
-
recordId: keyBuilder$
|
|
2023
|
-
node: adapterFragment$
|
|
2022
|
+
recordId: keyBuilder$1l(luvio, config),
|
|
2023
|
+
node: adapterFragment$q(luvio, config),
|
|
2024
2024
|
variables: {},
|
|
2025
2025
|
};
|
|
2026
2026
|
const cacheSnapshot = storeLookup(selector, {
|
|
2027
2027
|
config,
|
|
2028
|
-
resolve: () => buildNetworkSnapshot$
|
|
2028
|
+
resolve: () => buildNetworkSnapshot$Z(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$Z(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$q, buildNetworkSnapshotCachePolicy$q);
|
|
2040
2040
|
};
|
|
2041
2041
|
|
|
2042
|
-
function select$
|
|
2043
|
-
return select$
|
|
2042
|
+
function select$1t(luvio, params) {
|
|
2043
|
+
return select$1w();
|
|
2044
2044
|
}
|
|
2045
|
-
function getResponseCacheKeys$
|
|
2046
|
-
getTypeCacheKeys$
|
|
2045
|
+
function getResponseCacheKeys$Y(storeKeyMap, luvio, resourceParams, response) {
|
|
2046
|
+
getTypeCacheKeys$G(storeKeyMap, luvio, response);
|
|
2047
2047
|
}
|
|
2048
|
-
function ingestSuccess$
|
|
2048
|
+
function ingestSuccess$Q(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$G, body);
|
|
2052
2052
|
const snapshot = luvio.storeLookup({
|
|
2053
2053
|
recordId: key,
|
|
2054
|
-
node: select$
|
|
2054
|
+
node: select$1t(),
|
|
2055
2055
|
variables: {},
|
|
2056
2056
|
});
|
|
2057
2057
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2062,7 +2062,7 @@ function ingestSuccess$P(luvio, resourceParams, response) {
|
|
|
2062
2062
|
deepFreeze(snapshot.data);
|
|
2063
2063
|
return snapshot;
|
|
2064
2064
|
}
|
|
2065
|
-
function createResourceRequest$
|
|
2065
|
+
function createResourceRequest$Y(config) {
|
|
2066
2066
|
const headers = {};
|
|
2067
2067
|
return {
|
|
2068
2068
|
baseUri: '/services/data/v67.0',
|
|
@@ -2076,7 +2076,7 @@ function createResourceRequest$X(config) {
|
|
|
2076
2076
|
};
|
|
2077
2077
|
}
|
|
2078
2078
|
|
|
2079
|
-
const adapterName$
|
|
2079
|
+
const adapterName$Y = '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$Y, createAnnotation_ConfigPropertyMetadata);
|
|
2089
|
+
const createResourceParams$Y = /*#__PURE__*/ createResourceParams$$(createAnnotation_ConfigPropertyMetadata);
|
|
2090
|
+
function typeCheckConfig$Y(untrustedConfig) {
|
|
2091
2091
|
const config = {};
|
|
2092
|
-
typeCheckConfig
|
|
2092
|
+
typeCheckConfig$$(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$Y(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$Y(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$Y(luvio, config, options) {
|
|
2113
|
+
const resourceParams = createResourceParams$Y(config);
|
|
2114
|
+
const request = createResourceRequest$Y(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$Q(luvio, resourceParams, response);
|
|
2119
2119
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2120
2120
|
}, () => {
|
|
2121
2121
|
const cache = new StoreKeyMap();
|
|
2122
|
-
getResponseCacheKeys$
|
|
2122
|
+
getResponseCacheKeys$Y(cache, luvio, resourceParams, response.body);
|
|
2123
2123
|
return cache;
|
|
2124
2124
|
});
|
|
2125
2125
|
}, (response) => {
|
|
@@ -2129,18 +2129,18 @@ function buildNetworkSnapshot$X(luvio, config, options) {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
const createAnnotationAdapterFactory = (luvio) => {
|
|
2131
2131
|
return function createAnnotation(untrustedConfig) {
|
|
2132
|
-
const config = validateAdapterConfig$
|
|
2132
|
+
const config = validateAdapterConfig$Y(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$Y(luvio, config);
|
|
2138
2138
|
};
|
|
2139
2139
|
};
|
|
2140
2140
|
|
|
2141
|
-
const TTL$
|
|
2142
|
-
const VERSION$
|
|
2143
|
-
function validate$
|
|
2141
|
+
const TTL$r = 5000;
|
|
2142
|
+
const VERSION$E = "505a83d97fefa7ce68ec6512264b0543";
|
|
2143
|
+
function validate$1g(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$1c(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$G = 'SlackAppInfoRepresentation';
|
|
2184
|
+
function normalize$E(input, existing, path, luvio, store, timestamp) {
|
|
2185
2185
|
return input;
|
|
2186
2186
|
}
|
|
2187
|
-
const select$
|
|
2187
|
+
const select$1s = function SlackAppInfoRepresentationSelect() {
|
|
2188
2188
|
return {
|
|
2189
2189
|
kind: 'Fragment',
|
|
2190
|
-
version: VERSION$
|
|
2190
|
+
version: VERSION$E,
|
|
2191
2191
|
private: [],
|
|
2192
2192
|
selections: [
|
|
2193
2193
|
{
|
|
@@ -2214,7 +2214,7 @@ const select$1q = function SlackAppInfoRepresentationSelect() {
|
|
|
2214
2214
|
]
|
|
2215
2215
|
};
|
|
2216
2216
|
};
|
|
2217
|
-
function equals$
|
|
2217
|
+
function equals$E(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$D(existing, incoming) {
|
|
|
2247
2247
|
}
|
|
2248
2248
|
return true;
|
|
2249
2249
|
}
|
|
2250
|
-
const ingest$
|
|
2250
|
+
const ingest$E = function SlackAppInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2251
2251
|
if (process.env.NODE_ENV !== 'production') {
|
|
2252
|
-
const validateError = validate$
|
|
2252
|
+
const validateError = validate$1g(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$r;
|
|
2259
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$E, "UnifiedAnalytics", VERSION$E, RepresentationType$G, equals$E);
|
|
2260
2260
|
return createLink(key);
|
|
2261
2261
|
};
|
|
2262
|
-
function getTypeCacheKeys$
|
|
2262
|
+
function getTypeCacheKeys$E(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$G,
|
|
2268
2268
|
mergeable: false
|
|
2269
2269
|
});
|
|
2270
2270
|
}
|
|
2271
2271
|
|
|
2272
|
-
function select$
|
|
2273
|
-
return select$
|
|
2272
|
+
function select$1r(luvio, params) {
|
|
2273
|
+
return select$1s();
|
|
2274
2274
|
}
|
|
2275
|
-
function keyBuilder$
|
|
2275
|
+
function keyBuilder$1k(luvio, params) {
|
|
2276
2276
|
return keyPrefix + '::SlackAppInfoRepresentation:(' + ')';
|
|
2277
2277
|
}
|
|
2278
|
-
function getResponseCacheKeys$
|
|
2279
|
-
getTypeCacheKeys$
|
|
2278
|
+
function getResponseCacheKeys$X(storeKeyMap, luvio, resourceParams, response) {
|
|
2279
|
+
getTypeCacheKeys$E(storeKeyMap, luvio, response, () => keyBuilder$1k());
|
|
2280
2280
|
}
|
|
2281
|
-
function ingestSuccess$
|
|
2281
|
+
function ingestSuccess$P(luvio, resourceParams, response, snapshotRefresh) {
|
|
2282
2282
|
const { body } = response;
|
|
2283
|
-
const key = keyBuilder$
|
|
2284
|
-
luvio.storeIngest(key, ingest$
|
|
2283
|
+
const key = keyBuilder$1k();
|
|
2284
|
+
luvio.storeIngest(key, ingest$E, body);
|
|
2285
2285
|
const snapshot = luvio.storeLookup({
|
|
2286
2286
|
recordId: key,
|
|
2287
|
-
node: select$
|
|
2287
|
+
node: select$1r(),
|
|
2288
2288
|
variables: {},
|
|
2289
2289
|
}, snapshotRefresh);
|
|
2290
2290
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2295,19 +2295,19 @@ function ingestSuccess$O(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$p(luvio, params, error, snapshotRefresh) {
|
|
2299
|
+
const key = keyBuilder$1k();
|
|
2300
2300
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2301
2301
|
const storeMetadataParams = {
|
|
2302
|
-
ttl: TTL$
|
|
2302
|
+
ttl: TTL$r,
|
|
2303
2303
|
namespace: keyPrefix,
|
|
2304
|
-
version: VERSION$
|
|
2305
|
-
representationName: RepresentationType$
|
|
2304
|
+
version: VERSION$E,
|
|
2305
|
+
representationName: RepresentationType$G
|
|
2306
2306
|
};
|
|
2307
2307
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2308
2308
|
return errorSnapshot;
|
|
2309
2309
|
}
|
|
2310
|
-
function createResourceRequest$
|
|
2310
|
+
function createResourceRequest$X(config) {
|
|
2311
2311
|
const headers = {};
|
|
2312
2312
|
return {
|
|
2313
2313
|
baseUri: '/services/data/v67.0',
|
|
@@ -2321,90 +2321,90 @@ function createResourceRequest$W(config) {
|
|
|
2321
2321
|
};
|
|
2322
2322
|
}
|
|
2323
2323
|
|
|
2324
|
-
const adapterName$
|
|
2324
|
+
const adapterName$X = '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$X, getSlackAppInfo_ConfigPropertyMetadata);
|
|
2327
|
+
const createResourceParams$X = /*#__PURE__*/ createResourceParams$$(getSlackAppInfo_ConfigPropertyMetadata);
|
|
2328
|
+
function keyBuilder$1j(luvio, config) {
|
|
2329
|
+
createResourceParams$X(config);
|
|
2330
|
+
return keyBuilder$1k();
|
|
2331
2331
|
}
|
|
2332
|
-
function typeCheckConfig$
|
|
2332
|
+
function typeCheckConfig$X(untrustedConfig) {
|
|
2333
2333
|
const config = {};
|
|
2334
2334
|
return config;
|
|
2335
2335
|
}
|
|
2336
|
-
function validateAdapterConfig$
|
|
2336
|
+
function validateAdapterConfig$X(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$X();
|
|
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$p(luvio, config) {
|
|
2350
|
+
createResourceParams$X(config);
|
|
2351
|
+
return select$1r();
|
|
2352
2352
|
}
|
|
2353
|
-
function onFetchResponseSuccess$
|
|
2354
|
-
const snapshot = ingestSuccess$
|
|
2353
|
+
function onFetchResponseSuccess$p(luvio, config, resourceParams, response) {
|
|
2354
|
+
const snapshot = ingestSuccess$P(luvio, resourceParams, response, {
|
|
2355
2355
|
config,
|
|
2356
|
-
resolve: () => buildNetworkSnapshot$
|
|
2356
|
+
resolve: () => buildNetworkSnapshot$X(luvio, config, snapshotRefreshOptions)
|
|
2357
2357
|
});
|
|
2358
2358
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2359
2359
|
}
|
|
2360
|
-
function onFetchResponseError$
|
|
2361
|
-
const snapshot = ingestError$
|
|
2360
|
+
function onFetchResponseError$p(luvio, config, resourceParams, response) {
|
|
2361
|
+
const snapshot = ingestError$p(luvio, resourceParams, response, {
|
|
2362
2362
|
config,
|
|
2363
|
-
resolve: () => buildNetworkSnapshot$
|
|
2363
|
+
resolve: () => buildNetworkSnapshot$X(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$X(luvio, config, options) {
|
|
2368
|
+
const resourceParams = createResourceParams$X(config);
|
|
2369
|
+
const request = createResourceRequest$X();
|
|
2370
2370
|
return luvio.dispatchResourceRequest(request, options)
|
|
2371
2371
|
.then((response) => {
|
|
2372
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2372
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$p(luvio, config, resourceParams, response), () => {
|
|
2373
2373
|
const cache = new StoreKeyMap();
|
|
2374
|
-
getResponseCacheKeys$
|
|
2374
|
+
getResponseCacheKeys$X(cache, luvio, resourceParams, response.body);
|
|
2375
2375
|
return cache;
|
|
2376
2376
|
});
|
|
2377
2377
|
}, (response) => {
|
|
2378
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2378
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$p(luvio, config, resourceParams, response));
|
|
2379
2379
|
});
|
|
2380
2380
|
}
|
|
2381
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2382
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2381
|
+
function buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext) {
|
|
2382
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$X, undefined, false);
|
|
2383
2383
|
}
|
|
2384
|
-
function buildCachedSnapshotCachePolicy$
|
|
2384
|
+
function buildCachedSnapshotCachePolicy$p(context, storeLookup) {
|
|
2385
2385
|
const { luvio, config } = context;
|
|
2386
2386
|
const selector = {
|
|
2387
|
-
recordId: keyBuilder$
|
|
2388
|
-
node: adapterFragment$
|
|
2387
|
+
recordId: keyBuilder$1j(luvio, config),
|
|
2388
|
+
node: adapterFragment$p(luvio, config),
|
|
2389
2389
|
variables: {},
|
|
2390
2390
|
};
|
|
2391
2391
|
const cacheSnapshot = storeLookup(selector, {
|
|
2392
2392
|
config,
|
|
2393
|
-
resolve: () => buildNetworkSnapshot$
|
|
2393
|
+
resolve: () => buildNetworkSnapshot$X(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$X(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$p, buildNetworkSnapshotCachePolicy$p);
|
|
2405
2405
|
};
|
|
2406
2406
|
|
|
2407
|
-
function validate$
|
|
2407
|
+
function validate$1f(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$1b(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$1e(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentation') {
|
|
2443
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$1f(obj, path);
|
|
2444
2444
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2445
2445
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2446
2446
|
}
|
|
@@ -2452,8 +2452,8 @@ function validate$1a(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$1d(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation') {
|
|
2456
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$1f(obj, path);
|
|
2457
2457
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2458
2458
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2459
2459
|
}
|
|
@@ -2522,7 +2522,7 @@ function validate$19(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$1e(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$19(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$q = 500;
|
|
2556
|
+
const VERSION$D = "ed60d9cca169a3e5ed897c67d11a23db";
|
|
2557
|
+
function validate$1c(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$18(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$1d(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$18(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$F = 'AnalyticsAssetsQueryResultsRepresentation';
|
|
2596
|
+
function keyBuilder$1i(luvio, config) {
|
|
2597
|
+
return keyPrefix + '::' + RepresentationType$F + ':' + 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$1i(luvio, keyParams);
|
|
2604
2604
|
}
|
|
2605
|
-
function normalize$
|
|
2605
|
+
function normalize$D(input, existing, path, luvio, store, timestamp) {
|
|
2606
2606
|
return input;
|
|
2607
2607
|
}
|
|
2608
|
-
const select$
|
|
2608
|
+
const select$1q = function AnalyticsAssetsQueryResultsRepresentationSelect() {
|
|
2609
2609
|
return {
|
|
2610
2610
|
kind: 'Fragment',
|
|
2611
|
-
version: VERSION$
|
|
2611
|
+
version: VERSION$D,
|
|
2612
2612
|
private: [],
|
|
2613
2613
|
opaque: true
|
|
2614
2614
|
};
|
|
2615
2615
|
};
|
|
2616
|
-
function equals$
|
|
2616
|
+
function equals$D(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$D = function AnalyticsAssetsQueryResultsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2623
2623
|
if (process.env.NODE_ENV !== 'production') {
|
|
2624
|
-
const validateError = validate$
|
|
2624
|
+
const validateError = validate$1c(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$q;
|
|
2631
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$D, "UnifiedAnalytics", VERSION$D, RepresentationType$F, equals$D);
|
|
2632
2632
|
return createLink(key);
|
|
2633
2633
|
};
|
|
2634
|
-
function getTypeCacheKeys$
|
|
2634
|
+
function getTypeCacheKeys$D(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$F,
|
|
2640
2640
|
mergeable: false
|
|
2641
2641
|
});
|
|
2642
2642
|
}
|
|
2643
2643
|
|
|
2644
|
-
function select$
|
|
2645
|
-
return select$
|
|
2644
|
+
function select$1p(luvio, params) {
|
|
2645
|
+
return select$1q();
|
|
2646
2646
|
}
|
|
2647
|
-
function getResponseCacheKeys$
|
|
2648
|
-
getTypeCacheKeys$
|
|
2647
|
+
function getResponseCacheKeys$W(storeKeyMap, luvio, resourceParams, response) {
|
|
2648
|
+
getTypeCacheKeys$D(storeKeyMap, luvio, response);
|
|
2649
2649
|
}
|
|
2650
|
-
function ingestSuccess$
|
|
2650
|
+
function ingestSuccess$O(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$D, body);
|
|
2654
2654
|
const snapshot = luvio.storeLookup({
|
|
2655
2655
|
recordId: key,
|
|
2656
|
-
node: select$
|
|
2656
|
+
node: select$1p(),
|
|
2657
2657
|
variables: {},
|
|
2658
2658
|
});
|
|
2659
2659
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2664,7 +2664,7 @@ function ingestSuccess$N(luvio, resourceParams, response) {
|
|
|
2664
2664
|
deepFreeze(snapshot.data);
|
|
2665
2665
|
return snapshot;
|
|
2666
2666
|
}
|
|
2667
|
-
function createResourceRequest$
|
|
2667
|
+
function createResourceRequest$W(config) {
|
|
2668
2668
|
const headers = {};
|
|
2669
2669
|
return {
|
|
2670
2670
|
baseUri: '/services/data/v67.0',
|
|
@@ -2678,7 +2678,7 @@ function createResourceRequest$V(config) {
|
|
|
2678
2678
|
};
|
|
2679
2679
|
}
|
|
2680
2680
|
|
|
2681
|
-
const adapterName$
|
|
2681
|
+
const adapterName$W = '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$W, queryAssets_ConfigPropertyMetadata);
|
|
2691
|
+
const createResourceParams$W = /*#__PURE__*/ createResourceParams$$(queryAssets_ConfigPropertyMetadata);
|
|
2692
|
+
function typeCheckConfig$W(untrustedConfig) {
|
|
2693
2693
|
const config = {};
|
|
2694
|
-
typeCheckConfig
|
|
2694
|
+
typeCheckConfig$$(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$V(untrustedConfig) {
|
|
|
2709
2709
|
}
|
|
2710
2710
|
return config;
|
|
2711
2711
|
}
|
|
2712
|
-
function validateAdapterConfig$
|
|
2712
|
+
function validateAdapterConfig$W(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$W(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$W(luvio, config, options) {
|
|
2726
|
+
const resourceParams = createResourceParams$W(config);
|
|
2727
|
+
const request = createResourceRequest$W(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$O(luvio, resourceParams, response);
|
|
2732
2732
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2733
2733
|
}, () => {
|
|
2734
2734
|
const cache = new StoreKeyMap();
|
|
2735
|
-
getResponseCacheKeys$
|
|
2735
|
+
getResponseCacheKeys$W(cache, luvio, resourceParams, response.body);
|
|
2736
2736
|
return cache;
|
|
2737
2737
|
});
|
|
2738
2738
|
}, (response) => {
|
|
@@ -2742,17 +2742,17 @@ function buildNetworkSnapshot$V(luvio, config, options) {
|
|
|
2742
2742
|
}
|
|
2743
2743
|
const queryAssetsAdapterFactory = (luvio) => {
|
|
2744
2744
|
return function queryAssets(untrustedConfig) {
|
|
2745
|
-
const config = validateAdapterConfig$
|
|
2745
|
+
const config = validateAdapterConfig$W(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$W(luvio, config);
|
|
2751
2751
|
};
|
|
2752
2752
|
};
|
|
2753
2753
|
|
|
2754
|
-
const VERSION$
|
|
2755
|
-
function validate$
|
|
2754
|
+
const VERSION$C = "48241522a2d9c05d07397ef0fdfbce4e";
|
|
2755
|
+
function validate$1b(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 + '")');
|
|
@@ -2876,57 +2876,57 @@ function validate$17(obj, path = 'DashboardRepresentation') {
|
|
|
2876
2876
|
})();
|
|
2877
2877
|
return v_error === undefined ? null : v_error;
|
|
2878
2878
|
}
|
|
2879
|
-
const RepresentationType$
|
|
2880
|
-
function keyBuilder$
|
|
2881
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2879
|
+
const RepresentationType$E = 'DashboardRepresentation';
|
|
2880
|
+
function keyBuilder$1h(luvio, config) {
|
|
2881
|
+
return keyPrefix + '::' + RepresentationType$E + ':' + config.name;
|
|
2882
2882
|
}
|
|
2883
2883
|
function keyBuilderFromType$l(luvio, object) {
|
|
2884
2884
|
const keyParams = {
|
|
2885
2885
|
name: object.name
|
|
2886
2886
|
};
|
|
2887
|
-
return keyBuilder$
|
|
2887
|
+
return keyBuilder$1h(luvio, keyParams);
|
|
2888
2888
|
}
|
|
2889
|
-
function normalize$
|
|
2889
|
+
function normalize$C(input, existing, path, luvio, store, timestamp) {
|
|
2890
2890
|
return input;
|
|
2891
2891
|
}
|
|
2892
|
-
const select$
|
|
2892
|
+
const select$1o = function DashboardRepresentationSelect() {
|
|
2893
2893
|
return {
|
|
2894
2894
|
kind: 'Fragment',
|
|
2895
|
-
version: VERSION$
|
|
2895
|
+
version: VERSION$C,
|
|
2896
2896
|
private: [],
|
|
2897
2897
|
opaque: true
|
|
2898
2898
|
};
|
|
2899
2899
|
};
|
|
2900
|
-
function equals$
|
|
2900
|
+
function equals$C(existing, incoming) {
|
|
2901
2901
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2902
2902
|
return false;
|
|
2903
2903
|
}
|
|
2904
2904
|
return true;
|
|
2905
2905
|
}
|
|
2906
|
-
const ingest$
|
|
2906
|
+
const ingest$C = function DashboardRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2907
2907
|
if (process.env.NODE_ENV !== 'production') {
|
|
2908
|
-
const validateError = validate$
|
|
2908
|
+
const validateError = validate$1b(input);
|
|
2909
2909
|
if (validateError !== null) {
|
|
2910
2910
|
throw validateError;
|
|
2911
2911
|
}
|
|
2912
2912
|
}
|
|
2913
2913
|
const key = keyBuilderFromType$l(luvio, input);
|
|
2914
2914
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2915
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2915
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$C, "UnifiedAnalytics", VERSION$C, RepresentationType$E, equals$C);
|
|
2916
2916
|
return createLink(key);
|
|
2917
2917
|
};
|
|
2918
|
-
function getTypeCacheKeys$
|
|
2918
|
+
function getTypeCacheKeys$C(rootKeySet, luvio, input, fullPathFactory) {
|
|
2919
2919
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2920
2920
|
const rootKey = keyBuilderFromType$l(luvio, input);
|
|
2921
2921
|
rootKeySet.set(rootKey, {
|
|
2922
2922
|
namespace: keyPrefix,
|
|
2923
|
-
representationName: RepresentationType$
|
|
2923
|
+
representationName: RepresentationType$E,
|
|
2924
2924
|
mergeable: false
|
|
2925
2925
|
});
|
|
2926
2926
|
}
|
|
2927
2927
|
|
|
2928
|
-
const VERSION$
|
|
2929
|
-
function validate$
|
|
2928
|
+
const VERSION$B = "962823130e6a9315240ef0e0f0c5f757";
|
|
2929
|
+
function validate$1a(obj, path = 'DashboardCollectionRepresentation') {
|
|
2930
2930
|
const v_error = (() => {
|
|
2931
2931
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2932
2932
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2946,14 +2946,14 @@ function validate$16(obj, path = 'DashboardCollectionRepresentation') {
|
|
|
2946
2946
|
})();
|
|
2947
2947
|
return v_error === undefined ? null : v_error;
|
|
2948
2948
|
}
|
|
2949
|
-
const RepresentationType$
|
|
2950
|
-
function normalize$
|
|
2949
|
+
const RepresentationType$D = 'DashboardCollectionRepresentation';
|
|
2950
|
+
function normalize$B(input, existing, path, luvio, store, timestamp) {
|
|
2951
2951
|
const input_dashboards = input.dashboards;
|
|
2952
2952
|
const input_dashboards_id = path.fullPath + '__dashboards';
|
|
2953
2953
|
for (let i = 0; i < input_dashboards.length; i++) {
|
|
2954
2954
|
const input_dashboards_item = input_dashboards[i];
|
|
2955
2955
|
let input_dashboards_item_id = input_dashboards_id + '__' + i;
|
|
2956
|
-
input_dashboards[i] = ingest$
|
|
2956
|
+
input_dashboards[i] = ingest$C(input_dashboards_item, {
|
|
2957
2957
|
fullPath: input_dashboards_item_id,
|
|
2958
2958
|
propertyName: i,
|
|
2959
2959
|
parent: {
|
|
@@ -2966,22 +2966,22 @@ function normalize$A(input, existing, path, luvio, store, timestamp) {
|
|
|
2966
2966
|
}
|
|
2967
2967
|
return input;
|
|
2968
2968
|
}
|
|
2969
|
-
const select$
|
|
2969
|
+
const select$1n = function DashboardCollectionRepresentationSelect() {
|
|
2970
2970
|
return {
|
|
2971
2971
|
kind: 'Fragment',
|
|
2972
|
-
version: VERSION$
|
|
2972
|
+
version: VERSION$B,
|
|
2973
2973
|
private: [],
|
|
2974
2974
|
selections: [
|
|
2975
2975
|
{
|
|
2976
2976
|
name: 'dashboards',
|
|
2977
2977
|
kind: 'Link',
|
|
2978
2978
|
plural: true,
|
|
2979
|
-
fragment: select$
|
|
2979
|
+
fragment: select$1o()
|
|
2980
2980
|
}
|
|
2981
2981
|
]
|
|
2982
2982
|
};
|
|
2983
2983
|
};
|
|
2984
|
-
function equals$
|
|
2984
|
+
function equals$B(existing, incoming) {
|
|
2985
2985
|
const existing_dashboards = existing.dashboards;
|
|
2986
2986
|
const incoming_dashboards = incoming.dashboards;
|
|
2987
2987
|
const equals_dashboards_items = equalsArray(existing_dashboards, incoming_dashboards, (existing_dashboards_item, incoming_dashboards_item) => {
|
|
@@ -2994,48 +2994,48 @@ function equals$A(existing, incoming) {
|
|
|
2994
2994
|
}
|
|
2995
2995
|
return true;
|
|
2996
2996
|
}
|
|
2997
|
-
const ingest$
|
|
2997
|
+
const ingest$B = function DashboardCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2998
2998
|
if (process.env.NODE_ENV !== 'production') {
|
|
2999
|
-
const validateError = validate$
|
|
2999
|
+
const validateError = validate$1a(input);
|
|
3000
3000
|
if (validateError !== null) {
|
|
3001
3001
|
throw validateError;
|
|
3002
3002
|
}
|
|
3003
3003
|
}
|
|
3004
3004
|
const key = path.fullPath;
|
|
3005
3005
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3006
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3006
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$B, "UnifiedAnalytics", VERSION$B, RepresentationType$D, equals$B);
|
|
3007
3007
|
return createLink(key);
|
|
3008
3008
|
};
|
|
3009
|
-
function getTypeCacheKeys$
|
|
3009
|
+
function getTypeCacheKeys$B(rootKeySet, luvio, input, fullPathFactory) {
|
|
3010
3010
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3011
3011
|
const rootKey = fullPathFactory();
|
|
3012
3012
|
rootKeySet.set(rootKey, {
|
|
3013
3013
|
namespace: keyPrefix,
|
|
3014
|
-
representationName: RepresentationType$
|
|
3014
|
+
representationName: RepresentationType$D,
|
|
3015
3015
|
mergeable: false
|
|
3016
3016
|
});
|
|
3017
3017
|
const input_dashboards_length = input.dashboards.length;
|
|
3018
3018
|
for (let i = 0; i < input_dashboards_length; i++) {
|
|
3019
|
-
getTypeCacheKeys$
|
|
3019
|
+
getTypeCacheKeys$C(rootKeySet, luvio, input.dashboards[i]);
|
|
3020
3020
|
}
|
|
3021
3021
|
}
|
|
3022
3022
|
|
|
3023
|
-
function select$
|
|
3024
|
-
return select$
|
|
3023
|
+
function select$1m(luvio, params) {
|
|
3024
|
+
return select$1n();
|
|
3025
3025
|
}
|
|
3026
|
-
function keyBuilder$
|
|
3026
|
+
function keyBuilder$1g(luvio, params) {
|
|
3027
3027
|
return keyPrefix + '::DashboardCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'minorVersion:' + params.queryParams.minorVersion + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
3028
3028
|
}
|
|
3029
|
-
function getResponseCacheKeys$
|
|
3030
|
-
getTypeCacheKeys$
|
|
3029
|
+
function getResponseCacheKeys$V(storeKeyMap, luvio, resourceParams, response) {
|
|
3030
|
+
getTypeCacheKeys$B(storeKeyMap, luvio, response, () => keyBuilder$1g(luvio, resourceParams));
|
|
3031
3031
|
}
|
|
3032
|
-
function ingestSuccess$
|
|
3032
|
+
function ingestSuccess$N(luvio, resourceParams, response, snapshotRefresh) {
|
|
3033
3033
|
const { body } = response;
|
|
3034
|
-
const key = keyBuilder$
|
|
3035
|
-
luvio.storeIngest(key, ingest$
|
|
3034
|
+
const key = keyBuilder$1g(luvio, resourceParams);
|
|
3035
|
+
luvio.storeIngest(key, ingest$B, body);
|
|
3036
3036
|
const snapshot = luvio.storeLookup({
|
|
3037
3037
|
recordId: key,
|
|
3038
|
-
node: select$
|
|
3038
|
+
node: select$1m(),
|
|
3039
3039
|
variables: {},
|
|
3040
3040
|
}, snapshotRefresh);
|
|
3041
3041
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3046,13 +3046,13 @@ function ingestSuccess$M(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3046
3046
|
deepFreeze(snapshot.data);
|
|
3047
3047
|
return snapshot;
|
|
3048
3048
|
}
|
|
3049
|
-
function ingestError$
|
|
3050
|
-
const key = keyBuilder$
|
|
3049
|
+
function ingestError$o(luvio, params, error, snapshotRefresh) {
|
|
3050
|
+
const key = keyBuilder$1g(luvio, params);
|
|
3051
3051
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3052
3052
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3053
3053
|
return errorSnapshot;
|
|
3054
3054
|
}
|
|
3055
|
-
function createResourceRequest$
|
|
3055
|
+
function createResourceRequest$V(config) {
|
|
3056
3056
|
const headers = {};
|
|
3057
3057
|
return {
|
|
3058
3058
|
baseUri: '/services/data/v67.0',
|
|
@@ -3066,107 +3066,107 @@ function createResourceRequest$U(config) {
|
|
|
3066
3066
|
};
|
|
3067
3067
|
}
|
|
3068
3068
|
|
|
3069
|
-
const adapterName$
|
|
3069
|
+
const adapterName$V = 'getDashboards';
|
|
3070
3070
|
const getDashboards_ConfigPropertyMetadata = [
|
|
3071
3071
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3072
3072
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3073
3073
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3074
3074
|
];
|
|
3075
|
-
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3076
|
-
const createResourceParams$
|
|
3077
|
-
function keyBuilder$
|
|
3078
|
-
const resourceParams = createResourceParams$
|
|
3079
|
-
return keyBuilder$
|
|
3075
|
+
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$V, getDashboards_ConfigPropertyMetadata);
|
|
3076
|
+
const createResourceParams$V = /*#__PURE__*/ createResourceParams$$(getDashboards_ConfigPropertyMetadata);
|
|
3077
|
+
function keyBuilder$1f(luvio, config) {
|
|
3078
|
+
const resourceParams = createResourceParams$V(config);
|
|
3079
|
+
return keyBuilder$1g(luvio, resourceParams);
|
|
3080
3080
|
}
|
|
3081
|
-
function typeCheckConfig$
|
|
3081
|
+
function typeCheckConfig$V(untrustedConfig) {
|
|
3082
3082
|
const config = {};
|
|
3083
|
-
typeCheckConfig
|
|
3083
|
+
typeCheckConfig$$(untrustedConfig, config, getDashboards_ConfigPropertyMetadata);
|
|
3084
3084
|
return config;
|
|
3085
3085
|
}
|
|
3086
|
-
function validateAdapterConfig$
|
|
3086
|
+
function validateAdapterConfig$V(untrustedConfig, configPropertyNames) {
|
|
3087
3087
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3088
3088
|
return null;
|
|
3089
3089
|
}
|
|
3090
3090
|
if (process.env.NODE_ENV !== 'production') {
|
|
3091
3091
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3092
3092
|
}
|
|
3093
|
-
const config = typeCheckConfig$
|
|
3093
|
+
const config = typeCheckConfig$V(untrustedConfig);
|
|
3094
3094
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3095
3095
|
return null;
|
|
3096
3096
|
}
|
|
3097
3097
|
return config;
|
|
3098
3098
|
}
|
|
3099
|
-
function adapterFragment$
|
|
3100
|
-
createResourceParams$
|
|
3101
|
-
return select$
|
|
3099
|
+
function adapterFragment$o(luvio, config) {
|
|
3100
|
+
createResourceParams$V(config);
|
|
3101
|
+
return select$1m();
|
|
3102
3102
|
}
|
|
3103
|
-
function onFetchResponseSuccess$
|
|
3104
|
-
const snapshot = ingestSuccess$
|
|
3103
|
+
function onFetchResponseSuccess$o(luvio, config, resourceParams, response) {
|
|
3104
|
+
const snapshot = ingestSuccess$N(luvio, resourceParams, response, {
|
|
3105
3105
|
config,
|
|
3106
|
-
resolve: () => buildNetworkSnapshot$
|
|
3106
|
+
resolve: () => buildNetworkSnapshot$V(luvio, config, snapshotRefreshOptions)
|
|
3107
3107
|
});
|
|
3108
3108
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3109
3109
|
}
|
|
3110
|
-
function onFetchResponseError$
|
|
3111
|
-
const snapshot = ingestError$
|
|
3110
|
+
function onFetchResponseError$o(luvio, config, resourceParams, response) {
|
|
3111
|
+
const snapshot = ingestError$o(luvio, resourceParams, response, {
|
|
3112
3112
|
config,
|
|
3113
|
-
resolve: () => buildNetworkSnapshot$
|
|
3113
|
+
resolve: () => buildNetworkSnapshot$V(luvio, config, snapshotRefreshOptions)
|
|
3114
3114
|
});
|
|
3115
3115
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3116
3116
|
}
|
|
3117
|
-
function buildNetworkSnapshot$
|
|
3118
|
-
const resourceParams = createResourceParams$
|
|
3119
|
-
const request = createResourceRequest$
|
|
3117
|
+
function buildNetworkSnapshot$V(luvio, config, options) {
|
|
3118
|
+
const resourceParams = createResourceParams$V(config);
|
|
3119
|
+
const request = createResourceRequest$V(resourceParams);
|
|
3120
3120
|
return luvio.dispatchResourceRequest(request, options)
|
|
3121
3121
|
.then((response) => {
|
|
3122
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3122
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$o(luvio, config, resourceParams, response), () => {
|
|
3123
3123
|
const cache = new StoreKeyMap();
|
|
3124
|
-
getResponseCacheKeys$
|
|
3124
|
+
getResponseCacheKeys$V(cache, luvio, resourceParams, response.body);
|
|
3125
3125
|
return cache;
|
|
3126
3126
|
});
|
|
3127
3127
|
}, (response) => {
|
|
3128
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3128
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$o(luvio, config, resourceParams, response));
|
|
3129
3129
|
});
|
|
3130
3130
|
}
|
|
3131
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3132
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3131
|
+
function buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext) {
|
|
3132
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$V, undefined, false);
|
|
3133
3133
|
}
|
|
3134
|
-
function buildCachedSnapshotCachePolicy$
|
|
3134
|
+
function buildCachedSnapshotCachePolicy$o(context, storeLookup) {
|
|
3135
3135
|
const { luvio, config } = context;
|
|
3136
3136
|
const selector = {
|
|
3137
|
-
recordId: keyBuilder$
|
|
3138
|
-
node: adapterFragment$
|
|
3137
|
+
recordId: keyBuilder$1f(luvio, config),
|
|
3138
|
+
node: adapterFragment$o(luvio, config),
|
|
3139
3139
|
variables: {},
|
|
3140
3140
|
};
|
|
3141
3141
|
const cacheSnapshot = storeLookup(selector, {
|
|
3142
3142
|
config,
|
|
3143
|
-
resolve: () => buildNetworkSnapshot$
|
|
3143
|
+
resolve: () => buildNetworkSnapshot$V(luvio, config, snapshotRefreshOptions)
|
|
3144
3144
|
});
|
|
3145
3145
|
return cacheSnapshot;
|
|
3146
3146
|
}
|
|
3147
3147
|
const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboards(untrustedConfig, requestContext) {
|
|
3148
|
-
const config = validateAdapterConfig$
|
|
3148
|
+
const config = validateAdapterConfig$V(untrustedConfig, getDashboards_ConfigPropertyNames);
|
|
3149
3149
|
// Invalid or incomplete config
|
|
3150
3150
|
if (config === null) {
|
|
3151
3151
|
return null;
|
|
3152
3152
|
}
|
|
3153
3153
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3154
|
-
buildCachedSnapshotCachePolicy$
|
|
3154
|
+
buildCachedSnapshotCachePolicy$o, buildNetworkSnapshotCachePolicy$o);
|
|
3155
3155
|
};
|
|
3156
3156
|
|
|
3157
|
-
function select$
|
|
3158
|
-
return select$
|
|
3157
|
+
function select$1l(luvio, params) {
|
|
3158
|
+
return select$1o();
|
|
3159
3159
|
}
|
|
3160
|
-
function getResponseCacheKeys$
|
|
3161
|
-
getTypeCacheKeys$
|
|
3160
|
+
function getResponseCacheKeys$U(storeKeyMap, luvio, resourceParams, response) {
|
|
3161
|
+
getTypeCacheKeys$C(storeKeyMap, luvio, response);
|
|
3162
3162
|
}
|
|
3163
|
-
function ingestSuccess$
|
|
3163
|
+
function ingestSuccess$M(luvio, resourceParams, response) {
|
|
3164
3164
|
const { body } = response;
|
|
3165
3165
|
const key = keyBuilderFromType$l(luvio, body);
|
|
3166
|
-
luvio.storeIngest(key, ingest$
|
|
3166
|
+
luvio.storeIngest(key, ingest$C, body);
|
|
3167
3167
|
const snapshot = luvio.storeLookup({
|
|
3168
3168
|
recordId: key,
|
|
3169
|
-
node: select$
|
|
3169
|
+
node: select$1l(),
|
|
3170
3170
|
variables: {},
|
|
3171
3171
|
});
|
|
3172
3172
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3177,7 +3177,7 @@ function ingestSuccess$L(luvio, resourceParams, response) {
|
|
|
3177
3177
|
deepFreeze(snapshot.data);
|
|
3178
3178
|
return snapshot;
|
|
3179
3179
|
}
|
|
3180
|
-
function createResourceRequest$
|
|
3180
|
+
function createResourceRequest$U(config) {
|
|
3181
3181
|
const headers = {};
|
|
3182
3182
|
return {
|
|
3183
3183
|
baseUri: '/services/data/v67.0',
|
|
@@ -3191,7 +3191,7 @@ function createResourceRequest$T(config) {
|
|
|
3191
3191
|
};
|
|
3192
3192
|
}
|
|
3193
3193
|
|
|
3194
|
-
const adapterName$
|
|
3194
|
+
const adapterName$U = 'createDashboard';
|
|
3195
3195
|
const createDashboard_ConfigPropertyMetadata = [
|
|
3196
3196
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3197
3197
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3204,11 +3204,11 @@ const createDashboard_ConfigPropertyMetadata = [
|
|
|
3204
3204
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3205
3205
|
generateParamConfigMetadata('backgroundSource', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3206
3206
|
];
|
|
3207
|
-
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3208
|
-
const createResourceParams$
|
|
3209
|
-
function typeCheckConfig$
|
|
3207
|
+
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$U, createDashboard_ConfigPropertyMetadata);
|
|
3208
|
+
const createResourceParams$U = /*#__PURE__*/ createResourceParams$$(createDashboard_ConfigPropertyMetadata);
|
|
3209
|
+
function typeCheckConfig$U(untrustedConfig) {
|
|
3210
3210
|
const config = {};
|
|
3211
|
-
typeCheckConfig
|
|
3211
|
+
typeCheckConfig$$(untrustedConfig, config, createDashboard_ConfigPropertyMetadata);
|
|
3212
3212
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3213
3213
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3214
3214
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3265,30 +3265,30 @@ function typeCheckConfig$T(untrustedConfig) {
|
|
|
3265
3265
|
}
|
|
3266
3266
|
return config;
|
|
3267
3267
|
}
|
|
3268
|
-
function validateAdapterConfig$
|
|
3268
|
+
function validateAdapterConfig$U(untrustedConfig, configPropertyNames) {
|
|
3269
3269
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3270
3270
|
return null;
|
|
3271
3271
|
}
|
|
3272
3272
|
if (process.env.NODE_ENV !== 'production') {
|
|
3273
3273
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3274
3274
|
}
|
|
3275
|
-
const config = typeCheckConfig$
|
|
3275
|
+
const config = typeCheckConfig$U(untrustedConfig);
|
|
3276
3276
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3277
3277
|
return null;
|
|
3278
3278
|
}
|
|
3279
3279
|
return config;
|
|
3280
3280
|
}
|
|
3281
|
-
function buildNetworkSnapshot$
|
|
3282
|
-
const resourceParams = createResourceParams$
|
|
3283
|
-
const request = createResourceRequest$
|
|
3281
|
+
function buildNetworkSnapshot$U(luvio, config, options) {
|
|
3282
|
+
const resourceParams = createResourceParams$U(config);
|
|
3283
|
+
const request = createResourceRequest$U(resourceParams);
|
|
3284
3284
|
return luvio.dispatchResourceRequest(request, options)
|
|
3285
3285
|
.then((response) => {
|
|
3286
3286
|
return luvio.handleSuccessResponse(() => {
|
|
3287
|
-
const snapshot = ingestSuccess$
|
|
3287
|
+
const snapshot = ingestSuccess$M(luvio, resourceParams, response);
|
|
3288
3288
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3289
3289
|
}, () => {
|
|
3290
3290
|
const cache = new StoreKeyMap();
|
|
3291
|
-
getResponseCacheKeys$
|
|
3291
|
+
getResponseCacheKeys$U(cache, luvio, resourceParams, response.body);
|
|
3292
3292
|
return cache;
|
|
3293
3293
|
});
|
|
3294
3294
|
}, (response) => {
|
|
@@ -3298,33 +3298,33 @@ function buildNetworkSnapshot$T(luvio, config, options) {
|
|
|
3298
3298
|
}
|
|
3299
3299
|
const createDashboardAdapterFactory = (luvio) => {
|
|
3300
3300
|
return function createDashboard(untrustedConfig) {
|
|
3301
|
-
const config = validateAdapterConfig$
|
|
3301
|
+
const config = validateAdapterConfig$U(untrustedConfig, createDashboard_ConfigPropertyNames);
|
|
3302
3302
|
// Invalid or incomplete config
|
|
3303
3303
|
if (config === null) {
|
|
3304
3304
|
throw new Error('Invalid config for "createDashboard"');
|
|
3305
3305
|
}
|
|
3306
|
-
return buildNetworkSnapshot$
|
|
3306
|
+
return buildNetworkSnapshot$U(luvio, config);
|
|
3307
3307
|
};
|
|
3308
3308
|
};
|
|
3309
3309
|
|
|
3310
|
-
function keyBuilder$
|
|
3311
|
-
return keyBuilder$
|
|
3310
|
+
function keyBuilder$1e(luvio, params) {
|
|
3311
|
+
return keyBuilder$1h(luvio, {
|
|
3312
3312
|
name: params.urlParams.dashboardIdOrApiName
|
|
3313
3313
|
});
|
|
3314
3314
|
}
|
|
3315
|
-
function getResponseCacheKeys$
|
|
3316
|
-
const key = keyBuilder$
|
|
3315
|
+
function getResponseCacheKeys$T(cacheKeyMap, luvio, resourceParams) {
|
|
3316
|
+
const key = keyBuilder$1e(luvio, resourceParams);
|
|
3317
3317
|
cacheKeyMap.set(key, {
|
|
3318
3318
|
namespace: keyPrefix,
|
|
3319
|
-
representationName: RepresentationType$
|
|
3319
|
+
representationName: RepresentationType$E,
|
|
3320
3320
|
mergeable: false
|
|
3321
3321
|
});
|
|
3322
3322
|
}
|
|
3323
3323
|
function evictSuccess$7(luvio, resourceParams) {
|
|
3324
|
-
const key = keyBuilder$
|
|
3324
|
+
const key = keyBuilder$1e(luvio, resourceParams);
|
|
3325
3325
|
luvio.storeEvict(key);
|
|
3326
3326
|
}
|
|
3327
|
-
function createResourceRequest$
|
|
3327
|
+
function createResourceRequest$T(config) {
|
|
3328
3328
|
const headers = {};
|
|
3329
3329
|
return {
|
|
3330
3330
|
baseUri: '/services/data/v67.0',
|
|
@@ -3338,33 +3338,33 @@ function createResourceRequest$S(config) {
|
|
|
3338
3338
|
};
|
|
3339
3339
|
}
|
|
3340
3340
|
|
|
3341
|
-
const adapterName$
|
|
3341
|
+
const adapterName$T = 'deleteDashboard';
|
|
3342
3342
|
const deleteDashboard_ConfigPropertyMetadata = [
|
|
3343
3343
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3344
3344
|
];
|
|
3345
|
-
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3346
|
-
const createResourceParams$
|
|
3347
|
-
function typeCheckConfig$
|
|
3345
|
+
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$T, deleteDashboard_ConfigPropertyMetadata);
|
|
3346
|
+
const createResourceParams$T = /*#__PURE__*/ createResourceParams$$(deleteDashboard_ConfigPropertyMetadata);
|
|
3347
|
+
function typeCheckConfig$T(untrustedConfig) {
|
|
3348
3348
|
const config = {};
|
|
3349
|
-
typeCheckConfig
|
|
3349
|
+
typeCheckConfig$$(untrustedConfig, config, deleteDashboard_ConfigPropertyMetadata);
|
|
3350
3350
|
return config;
|
|
3351
3351
|
}
|
|
3352
|
-
function validateAdapterConfig$
|
|
3352
|
+
function validateAdapterConfig$T(untrustedConfig, configPropertyNames) {
|
|
3353
3353
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3354
3354
|
return null;
|
|
3355
3355
|
}
|
|
3356
3356
|
if (process.env.NODE_ENV !== 'production') {
|
|
3357
3357
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3358
3358
|
}
|
|
3359
|
-
const config = typeCheckConfig$
|
|
3359
|
+
const config = typeCheckConfig$T(untrustedConfig);
|
|
3360
3360
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3361
3361
|
return null;
|
|
3362
3362
|
}
|
|
3363
3363
|
return config;
|
|
3364
3364
|
}
|
|
3365
|
-
function buildNetworkSnapshot$
|
|
3366
|
-
const resourceParams = createResourceParams$
|
|
3367
|
-
const request = createResourceRequest$
|
|
3365
|
+
function buildNetworkSnapshot$T(luvio, config, options) {
|
|
3366
|
+
const resourceParams = createResourceParams$T(config);
|
|
3367
|
+
const request = createResourceRequest$T(resourceParams);
|
|
3368
3368
|
return luvio.dispatchResourceRequest(request, options)
|
|
3369
3369
|
.then(() => {
|
|
3370
3370
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3372,7 +3372,7 @@ function buildNetworkSnapshot$S(luvio, config, options) {
|
|
|
3372
3372
|
return luvio.storeBroadcast();
|
|
3373
3373
|
}, () => {
|
|
3374
3374
|
const cache = new StoreKeyMap();
|
|
3375
|
-
getResponseCacheKeys$
|
|
3375
|
+
getResponseCacheKeys$T(cache, luvio, resourceParams);
|
|
3376
3376
|
return cache;
|
|
3377
3377
|
});
|
|
3378
3378
|
}, (response) => {
|
|
@@ -3382,33 +3382,33 @@ function buildNetworkSnapshot$S(luvio, config, options) {
|
|
|
3382
3382
|
}
|
|
3383
3383
|
const deleteDashboardAdapterFactory = (luvio) => {
|
|
3384
3384
|
return function UnifiedAnalyticsdeleteDashboard(untrustedConfig) {
|
|
3385
|
-
const config = validateAdapterConfig$
|
|
3385
|
+
const config = validateAdapterConfig$T(untrustedConfig, deleteDashboard_ConfigPropertyNames);
|
|
3386
3386
|
// Invalid or incomplete config
|
|
3387
3387
|
if (config === null) {
|
|
3388
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3388
|
+
throw new Error(`Invalid config for "${adapterName$T}"`);
|
|
3389
3389
|
}
|
|
3390
|
-
return buildNetworkSnapshot$
|
|
3390
|
+
return buildNetworkSnapshot$T(luvio, config);
|
|
3391
3391
|
};
|
|
3392
3392
|
};
|
|
3393
3393
|
|
|
3394
|
-
function select$
|
|
3395
|
-
return select$
|
|
3394
|
+
function select$1k(luvio, params) {
|
|
3395
|
+
return select$1o();
|
|
3396
3396
|
}
|
|
3397
|
-
function keyBuilder$
|
|
3398
|
-
return keyBuilder$
|
|
3397
|
+
function keyBuilder$1d(luvio, params) {
|
|
3398
|
+
return keyBuilder$1h(luvio, {
|
|
3399
3399
|
name: params.urlParams.dashboardIdOrApiName
|
|
3400
3400
|
});
|
|
3401
3401
|
}
|
|
3402
|
-
function getResponseCacheKeys$
|
|
3403
|
-
getTypeCacheKeys$
|
|
3402
|
+
function getResponseCacheKeys$S(storeKeyMap, luvio, resourceParams, response) {
|
|
3403
|
+
getTypeCacheKeys$C(storeKeyMap, luvio, response);
|
|
3404
3404
|
}
|
|
3405
|
-
function ingestSuccess$
|
|
3405
|
+
function ingestSuccess$L(luvio, resourceParams, response, snapshotRefresh) {
|
|
3406
3406
|
const { body } = response;
|
|
3407
|
-
const key = keyBuilder$
|
|
3408
|
-
luvio.storeIngest(key, ingest$
|
|
3407
|
+
const key = keyBuilder$1d(luvio, resourceParams);
|
|
3408
|
+
luvio.storeIngest(key, ingest$C, body);
|
|
3409
3409
|
const snapshot = luvio.storeLookup({
|
|
3410
3410
|
recordId: key,
|
|
3411
|
-
node: select$
|
|
3411
|
+
node: select$1k(),
|
|
3412
3412
|
variables: {},
|
|
3413
3413
|
}, snapshotRefresh);
|
|
3414
3414
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3419,13 +3419,13 @@ function ingestSuccess$K(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3419
3419
|
deepFreeze(snapshot.data);
|
|
3420
3420
|
return snapshot;
|
|
3421
3421
|
}
|
|
3422
|
-
function ingestError$
|
|
3423
|
-
const key = keyBuilder$
|
|
3422
|
+
function ingestError$n(luvio, params, error, snapshotRefresh) {
|
|
3423
|
+
const key = keyBuilder$1d(luvio, params);
|
|
3424
3424
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3425
3425
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3426
3426
|
return errorSnapshot;
|
|
3427
3427
|
}
|
|
3428
|
-
function createResourceRequest$
|
|
3428
|
+
function createResourceRequest$S(config) {
|
|
3429
3429
|
const headers = {};
|
|
3430
3430
|
return {
|
|
3431
3431
|
baseUri: '/services/data/v67.0',
|
|
@@ -3439,106 +3439,106 @@ function createResourceRequest$R(config) {
|
|
|
3439
3439
|
};
|
|
3440
3440
|
}
|
|
3441
3441
|
|
|
3442
|
-
const adapterName$
|
|
3442
|
+
const adapterName$S = 'getDashboardByName';
|
|
3443
3443
|
const getDashboardByName_ConfigPropertyMetadata = [
|
|
3444
3444
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3445
3445
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3446
3446
|
];
|
|
3447
|
-
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3448
|
-
const createResourceParams$
|
|
3449
|
-
function keyBuilder$
|
|
3450
|
-
const resourceParams = createResourceParams$
|
|
3451
|
-
return keyBuilder$
|
|
3447
|
+
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$S, getDashboardByName_ConfigPropertyMetadata);
|
|
3448
|
+
const createResourceParams$S = /*#__PURE__*/ createResourceParams$$(getDashboardByName_ConfigPropertyMetadata);
|
|
3449
|
+
function keyBuilder$1c(luvio, config) {
|
|
3450
|
+
const resourceParams = createResourceParams$S(config);
|
|
3451
|
+
return keyBuilder$1d(luvio, resourceParams);
|
|
3452
3452
|
}
|
|
3453
|
-
function typeCheckConfig$
|
|
3453
|
+
function typeCheckConfig$S(untrustedConfig) {
|
|
3454
3454
|
const config = {};
|
|
3455
|
-
typeCheckConfig
|
|
3455
|
+
typeCheckConfig$$(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
|
|
3456
3456
|
return config;
|
|
3457
3457
|
}
|
|
3458
|
-
function validateAdapterConfig$
|
|
3458
|
+
function validateAdapterConfig$S(untrustedConfig, configPropertyNames) {
|
|
3459
3459
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3460
3460
|
return null;
|
|
3461
3461
|
}
|
|
3462
3462
|
if (process.env.NODE_ENV !== 'production') {
|
|
3463
3463
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3464
3464
|
}
|
|
3465
|
-
const config = typeCheckConfig$
|
|
3465
|
+
const config = typeCheckConfig$S(untrustedConfig);
|
|
3466
3466
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3467
3467
|
return null;
|
|
3468
3468
|
}
|
|
3469
3469
|
return config;
|
|
3470
3470
|
}
|
|
3471
|
-
function adapterFragment$
|
|
3472
|
-
createResourceParams$
|
|
3473
|
-
return select$
|
|
3471
|
+
function adapterFragment$n(luvio, config) {
|
|
3472
|
+
createResourceParams$S(config);
|
|
3473
|
+
return select$1k();
|
|
3474
3474
|
}
|
|
3475
|
-
function onFetchResponseSuccess$
|
|
3476
|
-
const snapshot = ingestSuccess$
|
|
3475
|
+
function onFetchResponseSuccess$n(luvio, config, resourceParams, response) {
|
|
3476
|
+
const snapshot = ingestSuccess$L(luvio, resourceParams, response, {
|
|
3477
3477
|
config,
|
|
3478
|
-
resolve: () => buildNetworkSnapshot$
|
|
3478
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions)
|
|
3479
3479
|
});
|
|
3480
3480
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3481
3481
|
}
|
|
3482
|
-
function onFetchResponseError$
|
|
3483
|
-
const snapshot = ingestError$
|
|
3482
|
+
function onFetchResponseError$n(luvio, config, resourceParams, response) {
|
|
3483
|
+
const snapshot = ingestError$n(luvio, resourceParams, response, {
|
|
3484
3484
|
config,
|
|
3485
|
-
resolve: () => buildNetworkSnapshot$
|
|
3485
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions)
|
|
3486
3486
|
});
|
|
3487
3487
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3488
3488
|
}
|
|
3489
|
-
function buildNetworkSnapshot$
|
|
3490
|
-
const resourceParams = createResourceParams$
|
|
3491
|
-
const request = createResourceRequest$
|
|
3489
|
+
function buildNetworkSnapshot$S(luvio, config, options) {
|
|
3490
|
+
const resourceParams = createResourceParams$S(config);
|
|
3491
|
+
const request = createResourceRequest$S(resourceParams);
|
|
3492
3492
|
return luvio.dispatchResourceRequest(request, options)
|
|
3493
3493
|
.then((response) => {
|
|
3494
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3494
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$n(luvio, config, resourceParams, response), () => {
|
|
3495
3495
|
const cache = new StoreKeyMap();
|
|
3496
|
-
getResponseCacheKeys$
|
|
3496
|
+
getResponseCacheKeys$S(cache, luvio, resourceParams, response.body);
|
|
3497
3497
|
return cache;
|
|
3498
3498
|
});
|
|
3499
3499
|
}, (response) => {
|
|
3500
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3500
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$n(luvio, config, resourceParams, response));
|
|
3501
3501
|
});
|
|
3502
3502
|
}
|
|
3503
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3504
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3503
|
+
function buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext) {
|
|
3504
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$S, undefined, false);
|
|
3505
3505
|
}
|
|
3506
|
-
function buildCachedSnapshotCachePolicy$
|
|
3506
|
+
function buildCachedSnapshotCachePolicy$n(context, storeLookup) {
|
|
3507
3507
|
const { luvio, config } = context;
|
|
3508
3508
|
const selector = {
|
|
3509
|
-
recordId: keyBuilder$
|
|
3510
|
-
node: adapterFragment$
|
|
3509
|
+
recordId: keyBuilder$1c(luvio, config),
|
|
3510
|
+
node: adapterFragment$n(luvio, config),
|
|
3511
3511
|
variables: {},
|
|
3512
3512
|
};
|
|
3513
3513
|
const cacheSnapshot = storeLookup(selector, {
|
|
3514
3514
|
config,
|
|
3515
|
-
resolve: () => buildNetworkSnapshot$
|
|
3515
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions)
|
|
3516
3516
|
});
|
|
3517
3517
|
return cacheSnapshot;
|
|
3518
3518
|
}
|
|
3519
3519
|
const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboardByName(untrustedConfig, requestContext) {
|
|
3520
|
-
const config = validateAdapterConfig$
|
|
3520
|
+
const config = validateAdapterConfig$S(untrustedConfig, getDashboardByName_ConfigPropertyNames);
|
|
3521
3521
|
// Invalid or incomplete config
|
|
3522
3522
|
if (config === null) {
|
|
3523
3523
|
return null;
|
|
3524
3524
|
}
|
|
3525
3525
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3526
|
-
buildCachedSnapshotCachePolicy$
|
|
3526
|
+
buildCachedSnapshotCachePolicy$n, buildNetworkSnapshotCachePolicy$n);
|
|
3527
3527
|
};
|
|
3528
3528
|
|
|
3529
|
-
function select$
|
|
3530
|
-
return select$
|
|
3529
|
+
function select$1j(luvio, params) {
|
|
3530
|
+
return select$1o();
|
|
3531
3531
|
}
|
|
3532
|
-
function getResponseCacheKeys$
|
|
3533
|
-
getTypeCacheKeys$
|
|
3532
|
+
function getResponseCacheKeys$R(storeKeyMap, luvio, resourceParams, response) {
|
|
3533
|
+
getTypeCacheKeys$C(storeKeyMap, luvio, response);
|
|
3534
3534
|
}
|
|
3535
|
-
function ingestSuccess$
|
|
3535
|
+
function ingestSuccess$K(luvio, resourceParams, response) {
|
|
3536
3536
|
const { body } = response;
|
|
3537
3537
|
const key = keyBuilderFromType$l(luvio, body);
|
|
3538
|
-
luvio.storeIngest(key, ingest$
|
|
3538
|
+
luvio.storeIngest(key, ingest$C, body);
|
|
3539
3539
|
const snapshot = luvio.storeLookup({
|
|
3540
3540
|
recordId: key,
|
|
3541
|
-
node: select$
|
|
3541
|
+
node: select$1j(),
|
|
3542
3542
|
variables: {},
|
|
3543
3543
|
});
|
|
3544
3544
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3549,7 +3549,7 @@ function ingestSuccess$J(luvio, resourceParams, response) {
|
|
|
3549
3549
|
deepFreeze(snapshot.data);
|
|
3550
3550
|
return snapshot;
|
|
3551
3551
|
}
|
|
3552
|
-
function createResourceRequest$
|
|
3552
|
+
function createResourceRequest$R(config) {
|
|
3553
3553
|
const headers = {};
|
|
3554
3554
|
return {
|
|
3555
3555
|
baseUri: '/services/data/v67.0',
|
|
@@ -3563,7 +3563,7 @@ function createResourceRequest$Q(config) {
|
|
|
3563
3563
|
};
|
|
3564
3564
|
}
|
|
3565
3565
|
|
|
3566
|
-
const adapterName$
|
|
3566
|
+
const adapterName$R = 'updateDashboard';
|
|
3567
3567
|
const updateDashboard_ConfigPropertyMetadata = [
|
|
3568
3568
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3569
3569
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
@@ -3577,11 +3577,11 @@ const updateDashboard_ConfigPropertyMetadata = [
|
|
|
3577
3577
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3578
3578
|
generateParamConfigMetadata('backgroundSource', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3579
3579
|
];
|
|
3580
|
-
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3581
|
-
const createResourceParams$
|
|
3582
|
-
function typeCheckConfig$
|
|
3580
|
+
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$R, updateDashboard_ConfigPropertyMetadata);
|
|
3581
|
+
const createResourceParams$R = /*#__PURE__*/ createResourceParams$$(updateDashboard_ConfigPropertyMetadata);
|
|
3582
|
+
function typeCheckConfig$R(untrustedConfig) {
|
|
3583
3583
|
const config = {};
|
|
3584
|
-
typeCheckConfig
|
|
3584
|
+
typeCheckConfig$$(untrustedConfig, config, updateDashboard_ConfigPropertyMetadata);
|
|
3585
3585
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3586
3586
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3587
3587
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3638,30 +3638,30 @@ function typeCheckConfig$Q(untrustedConfig) {
|
|
|
3638
3638
|
}
|
|
3639
3639
|
return config;
|
|
3640
3640
|
}
|
|
3641
|
-
function validateAdapterConfig$
|
|
3641
|
+
function validateAdapterConfig$R(untrustedConfig, configPropertyNames) {
|
|
3642
3642
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3643
3643
|
return null;
|
|
3644
3644
|
}
|
|
3645
3645
|
if (process.env.NODE_ENV !== 'production') {
|
|
3646
3646
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3647
3647
|
}
|
|
3648
|
-
const config = typeCheckConfig$
|
|
3648
|
+
const config = typeCheckConfig$R(untrustedConfig);
|
|
3649
3649
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3650
3650
|
return null;
|
|
3651
3651
|
}
|
|
3652
3652
|
return config;
|
|
3653
3653
|
}
|
|
3654
|
-
function buildNetworkSnapshot$
|
|
3655
|
-
const resourceParams = createResourceParams$
|
|
3656
|
-
const request = createResourceRequest$
|
|
3654
|
+
function buildNetworkSnapshot$R(luvio, config, options) {
|
|
3655
|
+
const resourceParams = createResourceParams$R(config);
|
|
3656
|
+
const request = createResourceRequest$R(resourceParams);
|
|
3657
3657
|
return luvio.dispatchResourceRequest(request, options)
|
|
3658
3658
|
.then((response) => {
|
|
3659
3659
|
return luvio.handleSuccessResponse(() => {
|
|
3660
|
-
const snapshot = ingestSuccess$
|
|
3660
|
+
const snapshot = ingestSuccess$K(luvio, resourceParams, response);
|
|
3661
3661
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3662
3662
|
}, () => {
|
|
3663
3663
|
const cache = new StoreKeyMap();
|
|
3664
|
-
getResponseCacheKeys$
|
|
3664
|
+
getResponseCacheKeys$R(cache, luvio, resourceParams, response.body);
|
|
3665
3665
|
return cache;
|
|
3666
3666
|
});
|
|
3667
3667
|
}, (response) => {
|
|
@@ -3671,16 +3671,16 @@ function buildNetworkSnapshot$Q(luvio, config, options) {
|
|
|
3671
3671
|
}
|
|
3672
3672
|
const updateDashboardAdapterFactory = (luvio) => {
|
|
3673
3673
|
return function updateDashboard(untrustedConfig) {
|
|
3674
|
-
const config = validateAdapterConfig$
|
|
3674
|
+
const config = validateAdapterConfig$R(untrustedConfig, updateDashboard_ConfigPropertyNames);
|
|
3675
3675
|
// Invalid or incomplete config
|
|
3676
3676
|
if (config === null) {
|
|
3677
3677
|
throw new Error('Invalid config for "updateDashboard"');
|
|
3678
3678
|
}
|
|
3679
|
-
return buildNetworkSnapshot$
|
|
3679
|
+
return buildNetworkSnapshot$R(luvio, config);
|
|
3680
3680
|
};
|
|
3681
3681
|
};
|
|
3682
3682
|
|
|
3683
|
-
function validate$
|
|
3683
|
+
function validate$19(obj, path = 'DataAlertContentRepresentation') {
|
|
3684
3684
|
const v_error = (() => {
|
|
3685
3685
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3686
3686
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3694,7 +3694,7 @@ function validate$15(obj, path = 'DataAlertContentRepresentation') {
|
|
|
3694
3694
|
return v_error === undefined ? null : v_error;
|
|
3695
3695
|
}
|
|
3696
3696
|
|
|
3697
|
-
function validate$
|
|
3697
|
+
function validate$18(obj, path = 'DataAlertReceiversRepresentation') {
|
|
3698
3698
|
const v_error = (() => {
|
|
3699
3699
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3700
3700
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3708,7 +3708,7 @@ function validate$14(obj, path = 'DataAlertReceiversRepresentation') {
|
|
|
3708
3708
|
return v_error === undefined ? null : v_error;
|
|
3709
3709
|
}
|
|
3710
3710
|
|
|
3711
|
-
function validate$
|
|
3711
|
+
function validate$17(obj, path = 'DataAlertDeliveryConfigurationRepresentation') {
|
|
3712
3712
|
const v_error = (() => {
|
|
3713
3713
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3714
3714
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3721,7 +3721,7 @@ function validate$13(obj, path = 'DataAlertDeliveryConfigurationRepresentation')
|
|
|
3721
3721
|
for (let i = 0; i < obj_receivers.length; i++) {
|
|
3722
3722
|
const obj_receivers_item = obj_receivers[i];
|
|
3723
3723
|
const path_receivers_item = path_receivers + '[' + i + ']';
|
|
3724
|
-
const referencepath_receivers_itemValidationError = validate$
|
|
3724
|
+
const referencepath_receivers_itemValidationError = validate$18(obj_receivers_item, path_receivers_item);
|
|
3725
3725
|
if (referencepath_receivers_itemValidationError !== null) {
|
|
3726
3726
|
let message = 'Object doesn\'t match DataAlertReceiversRepresentation (at "' + path_receivers_item + '")\n';
|
|
3727
3727
|
message += referencepath_receivers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3732,7 +3732,21 @@ function validate$13(obj, path = 'DataAlertDeliveryConfigurationRepresentation')
|
|
|
3732
3732
|
return v_error === undefined ? null : v_error;
|
|
3733
3733
|
}
|
|
3734
3734
|
|
|
3735
|
-
function validate$
|
|
3735
|
+
function validate$16(obj, path = 'DataAlertPropertyFilterOutputRepresentation') {
|
|
3736
|
+
const v_error = (() => {
|
|
3737
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3738
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3739
|
+
}
|
|
3740
|
+
const obj_conditionCategory = obj.conditionCategory;
|
|
3741
|
+
const path_conditionCategory = path + '.conditionCategory';
|
|
3742
|
+
if (typeof obj_conditionCategory !== 'string') {
|
|
3743
|
+
return new TypeError('Expected "string" but received "' + typeof obj_conditionCategory + '" (at "' + path_conditionCategory + '")');
|
|
3744
|
+
}
|
|
3745
|
+
})();
|
|
3746
|
+
return v_error === undefined ? null : v_error;
|
|
3747
|
+
}
|
|
3748
|
+
|
|
3749
|
+
function validate$15(obj, path = 'DataAlertScheduleRepresentation') {
|
|
3736
3750
|
const v_error = (() => {
|
|
3737
3751
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3738
3752
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3760,7 +3774,7 @@ function validate$12(obj, path = 'DataAlertScheduleRepresentation') {
|
|
|
3760
3774
|
return v_error === undefined ? null : v_error;
|
|
3761
3775
|
}
|
|
3762
3776
|
|
|
3763
|
-
function validate$
|
|
3777
|
+
function validate$14(obj, path = 'DataAlertValueRepresentation') {
|
|
3764
3778
|
const v_error = (() => {
|
|
3765
3779
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3766
3780
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3774,14 +3788,14 @@ function validate$11(obj, path = 'DataAlertValueRepresentation') {
|
|
|
3774
3788
|
return v_error === undefined ? null : v_error;
|
|
3775
3789
|
}
|
|
3776
3790
|
|
|
3777
|
-
function validate$
|
|
3791
|
+
function validate$13(obj, path = 'DataAlertConditionRepresentation') {
|
|
3778
3792
|
const v_error = (() => {
|
|
3779
3793
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3780
3794
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3781
3795
|
}
|
|
3782
3796
|
const obj_leftOperand = obj.leftOperand;
|
|
3783
3797
|
const path_leftOperand = path + '.leftOperand';
|
|
3784
|
-
const referencepath_leftOperandValidationError = validate$
|
|
3798
|
+
const referencepath_leftOperandValidationError = validate$14(obj_leftOperand, path_leftOperand);
|
|
3785
3799
|
if (referencepath_leftOperandValidationError !== null) {
|
|
3786
3800
|
let message = 'Object doesn\'t match DataAlertValueRepresentation (at "' + path_leftOperand + '")\n';
|
|
3787
3801
|
message += referencepath_leftOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3794,7 +3808,7 @@ function validate$10(obj, path = 'DataAlertConditionRepresentation') {
|
|
|
3794
3808
|
}
|
|
3795
3809
|
const obj_rightOperand = obj.rightOperand;
|
|
3796
3810
|
const path_rightOperand = path + '.rightOperand';
|
|
3797
|
-
const referencepath_rightOperandValidationError = validate$
|
|
3811
|
+
const referencepath_rightOperandValidationError = validate$14(obj_rightOperand, path_rightOperand);
|
|
3798
3812
|
if (referencepath_rightOperandValidationError !== null) {
|
|
3799
3813
|
let message = 'Object doesn\'t match DataAlertValueRepresentation (at "' + path_rightOperand + '")\n';
|
|
3800
3814
|
message += referencepath_rightOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3804,7 +3818,7 @@ function validate$10(obj, path = 'DataAlertConditionRepresentation') {
|
|
|
3804
3818
|
return v_error === undefined ? null : v_error;
|
|
3805
3819
|
}
|
|
3806
3820
|
|
|
3807
|
-
function validate
|
|
3821
|
+
function validate$12(obj, path = 'DataAlertThresholdsRepresentation') {
|
|
3808
3822
|
const v_error = (() => {
|
|
3809
3823
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3810
3824
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3817,7 +3831,7 @@ function validate$$(obj, path = 'DataAlertThresholdsRepresentation') {
|
|
|
3817
3831
|
for (let i = 0; i < obj_conditions.length; i++) {
|
|
3818
3832
|
const obj_conditions_item = obj_conditions[i];
|
|
3819
3833
|
const path_conditions_item = path_conditions + '[' + i + ']';
|
|
3820
|
-
const referencepath_conditions_itemValidationError = validate$
|
|
3834
|
+
const referencepath_conditions_itemValidationError = validate$13(obj_conditions_item, path_conditions_item);
|
|
3821
3835
|
if (referencepath_conditions_itemValidationError !== null) {
|
|
3822
3836
|
let message = 'Object doesn\'t match DataAlertConditionRepresentation (at "' + path_conditions_item + '")\n';
|
|
3823
3837
|
message += referencepath_conditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3833,9 +3847,9 @@ function validate$$(obj, path = 'DataAlertThresholdsRepresentation') {
|
|
|
3833
3847
|
return v_error === undefined ? null : v_error;
|
|
3834
3848
|
}
|
|
3835
3849
|
|
|
3836
|
-
const TTL$
|
|
3837
|
-
const VERSION$
|
|
3838
|
-
function validate$
|
|
3850
|
+
const TTL$p = 500;
|
|
3851
|
+
const VERSION$A = "c2b3a7269126a29557fb07e4baa3abf9";
|
|
3852
|
+
function validate$11(obj, path = 'DataAlertRepresentation') {
|
|
3839
3853
|
const v_error = (() => {
|
|
3840
3854
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3841
3855
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3875,7 +3889,7 @@ function validate$_(obj, path = 'DataAlertRepresentation') {
|
|
|
3875
3889
|
}
|
|
3876
3890
|
const obj_content = obj.content;
|
|
3877
3891
|
const path_content = path + '.content';
|
|
3878
|
-
const referencepath_contentValidationError = validate$
|
|
3892
|
+
const referencepath_contentValidationError = validate$19(obj_content, path_content);
|
|
3879
3893
|
if (referencepath_contentValidationError !== null) {
|
|
3880
3894
|
let message = 'Object doesn\'t match DataAlertContentRepresentation (at "' + path_content + '")\n';
|
|
3881
3895
|
message += referencepath_contentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3893,7 +3907,7 @@ function validate$_(obj, path = 'DataAlertRepresentation') {
|
|
|
3893
3907
|
}
|
|
3894
3908
|
const obj_deliveryConfigurations = obj.deliveryConfigurations;
|
|
3895
3909
|
const path_deliveryConfigurations = path + '.deliveryConfigurations';
|
|
3896
|
-
const referencepath_deliveryConfigurationsValidationError = validate$
|
|
3910
|
+
const referencepath_deliveryConfigurationsValidationError = validate$17(obj_deliveryConfigurations, path_deliveryConfigurations);
|
|
3897
3911
|
if (referencepath_deliveryConfigurationsValidationError !== null) {
|
|
3898
3912
|
let message = 'Object doesn\'t match DataAlertDeliveryConfigurationRepresentation (at "' + path_deliveryConfigurations + '")\n';
|
|
3899
3913
|
message += referencepath_deliveryConfigurationsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3909,9 +3923,19 @@ function validate$_(obj, path = 'DataAlertRepresentation') {
|
|
|
3909
3923
|
if (typeof obj_lastModifiedDate !== 'string') {
|
|
3910
3924
|
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
3911
3925
|
}
|
|
3926
|
+
if (obj.properties !== undefined) {
|
|
3927
|
+
const obj_properties = obj.properties;
|
|
3928
|
+
const path_properties = path + '.properties';
|
|
3929
|
+
const referencepath_propertiesValidationError = validate$16(obj_properties, path_properties);
|
|
3930
|
+
if (referencepath_propertiesValidationError !== null) {
|
|
3931
|
+
let message = 'Object doesn\'t match DataAlertPropertyFilterOutputRepresentation (at "' + path_properties + '")\n';
|
|
3932
|
+
message += referencepath_propertiesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3933
|
+
return new TypeError(message);
|
|
3934
|
+
}
|
|
3935
|
+
}
|
|
3912
3936
|
const obj_schedule = obj.schedule;
|
|
3913
3937
|
const path_schedule = path + '.schedule';
|
|
3914
|
-
const referencepath_scheduleValidationError = validate$
|
|
3938
|
+
const referencepath_scheduleValidationError = validate$15(obj_schedule, path_schedule);
|
|
3915
3939
|
if (referencepath_scheduleValidationError !== null) {
|
|
3916
3940
|
let message = 'Object doesn\'t match DataAlertScheduleRepresentation (at "' + path_schedule + '")\n';
|
|
3917
3941
|
message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3919,7 +3943,7 @@ function validate$_(obj, path = 'DataAlertRepresentation') {
|
|
|
3919
3943
|
}
|
|
3920
3944
|
const obj_thresholds = obj.thresholds;
|
|
3921
3945
|
const path_thresholds = path + '.thresholds';
|
|
3922
|
-
const referencepath_thresholdsValidationError = validate
|
|
3946
|
+
const referencepath_thresholdsValidationError = validate$12(obj_thresholds, path_thresholds);
|
|
3923
3947
|
if (referencepath_thresholdsValidationError !== null) {
|
|
3924
3948
|
let message = 'Object doesn\'t match DataAlertThresholdsRepresentation (at "' + path_thresholds + '")\n';
|
|
3925
3949
|
message += referencepath_thresholdsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3928,58 +3952,58 @@ function validate$_(obj, path = 'DataAlertRepresentation') {
|
|
|
3928
3952
|
})();
|
|
3929
3953
|
return v_error === undefined ? null : v_error;
|
|
3930
3954
|
}
|
|
3931
|
-
const RepresentationType$
|
|
3932
|
-
function keyBuilder$
|
|
3933
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3955
|
+
const RepresentationType$C = 'DataAlertRepresentation';
|
|
3956
|
+
function keyBuilder$1b(luvio, config) {
|
|
3957
|
+
return keyPrefix + '::' + RepresentationType$C + ':' + config.dataAlertId;
|
|
3934
3958
|
}
|
|
3935
3959
|
function keyBuilderFromType$k(luvio, object) {
|
|
3936
3960
|
const keyParams = {
|
|
3937
3961
|
dataAlertId: object.id
|
|
3938
3962
|
};
|
|
3939
|
-
return keyBuilder$
|
|
3963
|
+
return keyBuilder$1b(luvio, keyParams);
|
|
3940
3964
|
}
|
|
3941
|
-
function normalize$
|
|
3965
|
+
function normalize$A(input, existing, path, luvio, store, timestamp) {
|
|
3942
3966
|
return input;
|
|
3943
3967
|
}
|
|
3944
|
-
const select$
|
|
3968
|
+
const select$1i = function DataAlertRepresentationSelect() {
|
|
3945
3969
|
return {
|
|
3946
3970
|
kind: 'Fragment',
|
|
3947
|
-
version: VERSION$
|
|
3971
|
+
version: VERSION$A,
|
|
3948
3972
|
private: [],
|
|
3949
3973
|
opaque: true
|
|
3950
3974
|
};
|
|
3951
3975
|
};
|
|
3952
|
-
function equals$
|
|
3976
|
+
function equals$A(existing, incoming) {
|
|
3953
3977
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3954
3978
|
return false;
|
|
3955
3979
|
}
|
|
3956
3980
|
return true;
|
|
3957
3981
|
}
|
|
3958
|
-
const ingest$
|
|
3982
|
+
const ingest$A = function DataAlertRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3959
3983
|
if (process.env.NODE_ENV !== 'production') {
|
|
3960
|
-
const validateError = validate$
|
|
3984
|
+
const validateError = validate$11(input);
|
|
3961
3985
|
if (validateError !== null) {
|
|
3962
3986
|
throw validateError;
|
|
3963
3987
|
}
|
|
3964
3988
|
}
|
|
3965
3989
|
const key = keyBuilderFromType$k(luvio, input);
|
|
3966
|
-
const ttlToUse = TTL$
|
|
3967
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3990
|
+
const ttlToUse = TTL$p;
|
|
3991
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$A, "UnifiedAnalytics", VERSION$A, RepresentationType$C, equals$A);
|
|
3968
3992
|
return createLink(key);
|
|
3969
3993
|
};
|
|
3970
|
-
function getTypeCacheKeys$
|
|
3994
|
+
function getTypeCacheKeys$A(rootKeySet, luvio, input, fullPathFactory) {
|
|
3971
3995
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3972
3996
|
const rootKey = keyBuilderFromType$k(luvio, input);
|
|
3973
3997
|
rootKeySet.set(rootKey, {
|
|
3974
3998
|
namespace: keyPrefix,
|
|
3975
|
-
representationName: RepresentationType$
|
|
3999
|
+
representationName: RepresentationType$C,
|
|
3976
4000
|
mergeable: false
|
|
3977
4001
|
});
|
|
3978
4002
|
}
|
|
3979
4003
|
|
|
3980
|
-
const TTL$
|
|
3981
|
-
const VERSION$
|
|
3982
|
-
function validate$
|
|
4004
|
+
const TTL$o = 500;
|
|
4005
|
+
const VERSION$z = "d3e9e0efe02f7fa88865b7e72fe25f25";
|
|
4006
|
+
function validate$10(obj, path = 'DataAlertCollectionRepresentation') {
|
|
3983
4007
|
const v_error = (() => {
|
|
3984
4008
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3985
4009
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3992,7 +4016,7 @@ function validate$Z(obj, path = 'DataAlertCollectionRepresentation') {
|
|
|
3992
4016
|
for (let i = 0; i < obj_dataAlerts.length; i++) {
|
|
3993
4017
|
const obj_dataAlerts_item = obj_dataAlerts[i];
|
|
3994
4018
|
const path_dataAlerts_item = path_dataAlerts + '[' + i + ']';
|
|
3995
|
-
const referencepath_dataAlerts_itemValidationError = validate$
|
|
4019
|
+
const referencepath_dataAlerts_itemValidationError = validate$11(obj_dataAlerts_item, path_dataAlerts_item);
|
|
3996
4020
|
if (referencepath_dataAlerts_itemValidationError !== null) {
|
|
3997
4021
|
let message = 'Object doesn\'t match DataAlertRepresentation (at "' + path_dataAlerts_item + '")\n';
|
|
3998
4022
|
message += referencepath_dataAlerts_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4033,62 +4057,62 @@ function validate$Z(obj, path = 'DataAlertCollectionRepresentation') {
|
|
|
4033
4057
|
})();
|
|
4034
4058
|
return v_error === undefined ? null : v_error;
|
|
4035
4059
|
}
|
|
4036
|
-
const RepresentationType$
|
|
4037
|
-
function normalize$
|
|
4060
|
+
const RepresentationType$B = 'DataAlertCollectionRepresentation';
|
|
4061
|
+
function normalize$z(input, existing, path, luvio, store, timestamp) {
|
|
4038
4062
|
return input;
|
|
4039
4063
|
}
|
|
4040
|
-
const select$
|
|
4064
|
+
const select$1h = function DataAlertCollectionRepresentationSelect() {
|
|
4041
4065
|
return {
|
|
4042
4066
|
kind: 'Fragment',
|
|
4043
|
-
version: VERSION$
|
|
4067
|
+
version: VERSION$z,
|
|
4044
4068
|
private: [],
|
|
4045
4069
|
opaque: true
|
|
4046
4070
|
};
|
|
4047
4071
|
};
|
|
4048
|
-
function equals$
|
|
4072
|
+
function equals$z(existing, incoming) {
|
|
4049
4073
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4050
4074
|
return false;
|
|
4051
4075
|
}
|
|
4052
4076
|
return true;
|
|
4053
4077
|
}
|
|
4054
|
-
const ingest$
|
|
4078
|
+
const ingest$z = function DataAlertCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4055
4079
|
if (process.env.NODE_ENV !== 'production') {
|
|
4056
|
-
const validateError = validate$
|
|
4080
|
+
const validateError = validate$10(input);
|
|
4057
4081
|
if (validateError !== null) {
|
|
4058
4082
|
throw validateError;
|
|
4059
4083
|
}
|
|
4060
4084
|
}
|
|
4061
4085
|
const key = path.fullPath;
|
|
4062
|
-
const ttlToUse = TTL$
|
|
4063
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4086
|
+
const ttlToUse = TTL$o;
|
|
4087
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$z, "UnifiedAnalytics", VERSION$z, RepresentationType$B, equals$z);
|
|
4064
4088
|
return createLink(key);
|
|
4065
4089
|
};
|
|
4066
|
-
function getTypeCacheKeys$
|
|
4090
|
+
function getTypeCacheKeys$z(rootKeySet, luvio, input, fullPathFactory) {
|
|
4067
4091
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4068
4092
|
const rootKey = fullPathFactory();
|
|
4069
4093
|
rootKeySet.set(rootKey, {
|
|
4070
4094
|
namespace: keyPrefix,
|
|
4071
|
-
representationName: RepresentationType$
|
|
4095
|
+
representationName: RepresentationType$B,
|
|
4072
4096
|
mergeable: false
|
|
4073
4097
|
});
|
|
4074
4098
|
}
|
|
4075
4099
|
|
|
4076
|
-
function select$
|
|
4077
|
-
return select$
|
|
4100
|
+
function select$1g(luvio, params) {
|
|
4101
|
+
return select$1h();
|
|
4078
4102
|
}
|
|
4079
|
-
function keyBuilder$
|
|
4103
|
+
function keyBuilder$1a(luvio, params) {
|
|
4080
4104
|
return keyPrefix + '::DataAlertCollectionRepresentation:(' + 'ownerId:' + params.queryParams.ownerId + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
4081
4105
|
}
|
|
4082
|
-
function getResponseCacheKeys$
|
|
4083
|
-
getTypeCacheKeys$
|
|
4106
|
+
function getResponseCacheKeys$Q(storeKeyMap, luvio, resourceParams, response) {
|
|
4107
|
+
getTypeCacheKeys$z(storeKeyMap, luvio, response, () => keyBuilder$1a(luvio, resourceParams));
|
|
4084
4108
|
}
|
|
4085
|
-
function ingestSuccess$
|
|
4109
|
+
function ingestSuccess$J(luvio, resourceParams, response, snapshotRefresh) {
|
|
4086
4110
|
const { body } = response;
|
|
4087
|
-
const key = keyBuilder$
|
|
4088
|
-
luvio.storeIngest(key, ingest$
|
|
4111
|
+
const key = keyBuilder$1a(luvio, resourceParams);
|
|
4112
|
+
luvio.storeIngest(key, ingest$z, body);
|
|
4089
4113
|
const snapshot = luvio.storeLookup({
|
|
4090
4114
|
recordId: key,
|
|
4091
|
-
node: select$
|
|
4115
|
+
node: select$1g(),
|
|
4092
4116
|
variables: {},
|
|
4093
4117
|
}, snapshotRefresh);
|
|
4094
4118
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4099,19 +4123,19 @@ function ingestSuccess$I(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4099
4123
|
deepFreeze(snapshot.data);
|
|
4100
4124
|
return snapshot;
|
|
4101
4125
|
}
|
|
4102
|
-
function ingestError$
|
|
4103
|
-
const key = keyBuilder$
|
|
4126
|
+
function ingestError$m(luvio, params, error, snapshotRefresh) {
|
|
4127
|
+
const key = keyBuilder$1a(luvio, params);
|
|
4104
4128
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4105
4129
|
const storeMetadataParams = {
|
|
4106
|
-
ttl: TTL$
|
|
4130
|
+
ttl: TTL$o,
|
|
4107
4131
|
namespace: keyPrefix,
|
|
4108
|
-
version: VERSION$
|
|
4109
|
-
representationName: RepresentationType$
|
|
4132
|
+
version: VERSION$z,
|
|
4133
|
+
representationName: RepresentationType$B
|
|
4110
4134
|
};
|
|
4111
4135
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4112
4136
|
return errorSnapshot;
|
|
4113
4137
|
}
|
|
4114
|
-
function createResourceRequest$
|
|
4138
|
+
function createResourceRequest$Q(config) {
|
|
4115
4139
|
const headers = {};
|
|
4116
4140
|
return {
|
|
4117
4141
|
baseUri: '/services/data/v67.0',
|
|
@@ -4125,99 +4149,99 @@ function createResourceRequest$P(config) {
|
|
|
4125
4149
|
};
|
|
4126
4150
|
}
|
|
4127
4151
|
|
|
4128
|
-
const adapterName$
|
|
4152
|
+
const adapterName$Q = 'getDataAlertCollection';
|
|
4129
4153
|
const getDataAlertCollection_ConfigPropertyMetadata = [
|
|
4130
4154
|
generateParamConfigMetadata('ownerId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
4131
4155
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4132
4156
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4133
4157
|
];
|
|
4134
|
-
const getDataAlertCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4135
|
-
const createResourceParams$
|
|
4136
|
-
function keyBuilder$
|
|
4137
|
-
const resourceParams = createResourceParams$
|
|
4138
|
-
return keyBuilder$
|
|
4158
|
+
const getDataAlertCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Q, getDataAlertCollection_ConfigPropertyMetadata);
|
|
4159
|
+
const createResourceParams$Q = /*#__PURE__*/ createResourceParams$$(getDataAlertCollection_ConfigPropertyMetadata);
|
|
4160
|
+
function keyBuilder$19(luvio, config) {
|
|
4161
|
+
const resourceParams = createResourceParams$Q(config);
|
|
4162
|
+
return keyBuilder$1a(luvio, resourceParams);
|
|
4139
4163
|
}
|
|
4140
|
-
function typeCheckConfig$
|
|
4164
|
+
function typeCheckConfig$Q(untrustedConfig) {
|
|
4141
4165
|
const config = {};
|
|
4142
|
-
typeCheckConfig
|
|
4166
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAlertCollection_ConfigPropertyMetadata);
|
|
4143
4167
|
return config;
|
|
4144
4168
|
}
|
|
4145
|
-
function validateAdapterConfig$
|
|
4169
|
+
function validateAdapterConfig$Q(untrustedConfig, configPropertyNames) {
|
|
4146
4170
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4147
4171
|
return null;
|
|
4148
4172
|
}
|
|
4149
4173
|
if (process.env.NODE_ENV !== 'production') {
|
|
4150
4174
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4151
4175
|
}
|
|
4152
|
-
const config = typeCheckConfig$
|
|
4176
|
+
const config = typeCheckConfig$Q(untrustedConfig);
|
|
4153
4177
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4154
4178
|
return null;
|
|
4155
4179
|
}
|
|
4156
4180
|
return config;
|
|
4157
4181
|
}
|
|
4158
|
-
function adapterFragment$
|
|
4159
|
-
createResourceParams$
|
|
4160
|
-
return select$
|
|
4182
|
+
function adapterFragment$m(luvio, config) {
|
|
4183
|
+
createResourceParams$Q(config);
|
|
4184
|
+
return select$1g();
|
|
4161
4185
|
}
|
|
4162
|
-
function onFetchResponseSuccess$
|
|
4163
|
-
const snapshot = ingestSuccess$
|
|
4186
|
+
function onFetchResponseSuccess$m(luvio, config, resourceParams, response) {
|
|
4187
|
+
const snapshot = ingestSuccess$J(luvio, resourceParams, response, {
|
|
4164
4188
|
config,
|
|
4165
|
-
resolve: () => buildNetworkSnapshot$
|
|
4189
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions)
|
|
4166
4190
|
});
|
|
4167
4191
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4168
4192
|
}
|
|
4169
|
-
function onFetchResponseError$
|
|
4170
|
-
const snapshot = ingestError$
|
|
4193
|
+
function onFetchResponseError$m(luvio, config, resourceParams, response) {
|
|
4194
|
+
const snapshot = ingestError$m(luvio, resourceParams, response, {
|
|
4171
4195
|
config,
|
|
4172
|
-
resolve: () => buildNetworkSnapshot$
|
|
4196
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions)
|
|
4173
4197
|
});
|
|
4174
4198
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4175
4199
|
}
|
|
4176
|
-
function buildNetworkSnapshot$
|
|
4177
|
-
const resourceParams = createResourceParams$
|
|
4178
|
-
const request = createResourceRequest$
|
|
4200
|
+
function buildNetworkSnapshot$Q(luvio, config, options) {
|
|
4201
|
+
const resourceParams = createResourceParams$Q(config);
|
|
4202
|
+
const request = createResourceRequest$Q(resourceParams);
|
|
4179
4203
|
return luvio.dispatchResourceRequest(request, options)
|
|
4180
4204
|
.then((response) => {
|
|
4181
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4205
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$m(luvio, config, resourceParams, response), () => {
|
|
4182
4206
|
const cache = new StoreKeyMap();
|
|
4183
|
-
getResponseCacheKeys$
|
|
4207
|
+
getResponseCacheKeys$Q(cache, luvio, resourceParams, response.body);
|
|
4184
4208
|
return cache;
|
|
4185
4209
|
});
|
|
4186
4210
|
}, (response) => {
|
|
4187
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4211
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$m(luvio, config, resourceParams, response));
|
|
4188
4212
|
});
|
|
4189
4213
|
}
|
|
4190
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4191
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4214
|
+
function buildNetworkSnapshotCachePolicy$m(context, coercedAdapterRequestContext) {
|
|
4215
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$Q, undefined, false);
|
|
4192
4216
|
}
|
|
4193
|
-
function buildCachedSnapshotCachePolicy$
|
|
4217
|
+
function buildCachedSnapshotCachePolicy$m(context, storeLookup) {
|
|
4194
4218
|
const { luvio, config } = context;
|
|
4195
4219
|
const selector = {
|
|
4196
|
-
recordId: keyBuilder$
|
|
4197
|
-
node: adapterFragment$
|
|
4220
|
+
recordId: keyBuilder$19(luvio, config),
|
|
4221
|
+
node: adapterFragment$m(luvio, config),
|
|
4198
4222
|
variables: {},
|
|
4199
4223
|
};
|
|
4200
4224
|
const cacheSnapshot = storeLookup(selector, {
|
|
4201
4225
|
config,
|
|
4202
|
-
resolve: () => buildNetworkSnapshot$
|
|
4226
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions)
|
|
4203
4227
|
});
|
|
4204
4228
|
return cacheSnapshot;
|
|
4205
4229
|
}
|
|
4206
4230
|
const getDataAlertCollectionAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAlertCollection(untrustedConfig, requestContext) {
|
|
4207
|
-
const config = validateAdapterConfig$
|
|
4231
|
+
const config = validateAdapterConfig$Q(untrustedConfig, getDataAlertCollection_ConfigPropertyNames);
|
|
4208
4232
|
// Invalid or incomplete config
|
|
4209
4233
|
if (config === null) {
|
|
4210
4234
|
return null;
|
|
4211
4235
|
}
|
|
4212
4236
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4213
|
-
buildCachedSnapshotCachePolicy$
|
|
4237
|
+
buildCachedSnapshotCachePolicy$m, buildNetworkSnapshotCachePolicy$m);
|
|
4214
4238
|
};
|
|
4215
4239
|
|
|
4216
4240
|
var DiscriminatorValues$3;
|
|
4217
4241
|
(function (DiscriminatorValues) {
|
|
4218
4242
|
DiscriminatorValues["Notification"] = "Notification";
|
|
4219
4243
|
})(DiscriminatorValues$3 || (DiscriminatorValues$3 = {}));
|
|
4220
|
-
function validate
|
|
4244
|
+
function validate$$(obj, path = 'DataAlertReceiversInputRepresentation') {
|
|
4221
4245
|
const v_error = (() => {
|
|
4222
4246
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4223
4247
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4231,7 +4255,7 @@ function validate$Y(obj, path = 'DataAlertReceiversInputRepresentation') {
|
|
|
4231
4255
|
return v_error === undefined ? null : v_error;
|
|
4232
4256
|
}
|
|
4233
4257
|
|
|
4234
|
-
function validate$
|
|
4258
|
+
function validate$_(obj, path = 'DataAlertDeliveryConfigurationInputRepresentation') {
|
|
4235
4259
|
const v_error = (() => {
|
|
4236
4260
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4237
4261
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4244,7 +4268,7 @@ function validate$X(obj, path = 'DataAlertDeliveryConfigurationInputRepresentati
|
|
|
4244
4268
|
for (let i = 0; i < obj_receivers.length; i++) {
|
|
4245
4269
|
const obj_receivers_item = obj_receivers[i];
|
|
4246
4270
|
const path_receivers_item = path_receivers + '[' + i + ']';
|
|
4247
|
-
const referencepath_receivers_itemValidationError = validate
|
|
4271
|
+
const referencepath_receivers_itemValidationError = validate$$(obj_receivers_item, path_receivers_item);
|
|
4248
4272
|
if (referencepath_receivers_itemValidationError !== null) {
|
|
4249
4273
|
let message = 'Object doesn\'t match DataAlertReceiversInputRepresentation (at "' + path_receivers_item + '")\n';
|
|
4250
4274
|
message += referencepath_receivers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4255,12 +4279,49 @@ function validate$X(obj, path = 'DataAlertDeliveryConfigurationInputRepresentati
|
|
|
4255
4279
|
return v_error === undefined ? null : v_error;
|
|
4256
4280
|
}
|
|
4257
4281
|
|
|
4282
|
+
function validate$Z(obj, path = 'UnifiedFilterInputRepresentation') {
|
|
4283
|
+
const v_error = (() => {
|
|
4284
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4285
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4286
|
+
}
|
|
4287
|
+
if (obj.fieldName !== undefined) {
|
|
4288
|
+
const obj_fieldName = obj.fieldName;
|
|
4289
|
+
const path_fieldName = path + '.fieldName';
|
|
4290
|
+
if (typeof obj_fieldName !== 'string') {
|
|
4291
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldName + '" (at "' + path_fieldName + '")');
|
|
4292
|
+
}
|
|
4293
|
+
}
|
|
4294
|
+
if (obj.operator !== undefined) {
|
|
4295
|
+
const obj_operator = obj.operator;
|
|
4296
|
+
const path_operator = path + '.operator';
|
|
4297
|
+
if (typeof obj_operator !== 'string') {
|
|
4298
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
4299
|
+
}
|
|
4300
|
+
}
|
|
4301
|
+
if (obj.values !== undefined) {
|
|
4302
|
+
const obj_values = obj.values;
|
|
4303
|
+
const path_values = path + '.values';
|
|
4304
|
+
if (!ArrayIsArray(obj_values)) {
|
|
4305
|
+
return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
|
|
4306
|
+
}
|
|
4307
|
+
for (let i = 0; i < obj_values.length; i++) {
|
|
4308
|
+
const obj_values_item = obj_values[i];
|
|
4309
|
+
const path_values_item = path_values + '[' + i + ']';
|
|
4310
|
+
if (obj_values_item === undefined) {
|
|
4311
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
|
|
4312
|
+
}
|
|
4313
|
+
}
|
|
4314
|
+
}
|
|
4315
|
+
})();
|
|
4316
|
+
return v_error === undefined ? null : v_error;
|
|
4317
|
+
}
|
|
4318
|
+
|
|
4258
4319
|
var DiscriminatorValues$2;
|
|
4259
4320
|
(function (DiscriminatorValues) {
|
|
4260
4321
|
DiscriminatorValues["RawValue"] = "RawValue";
|
|
4261
4322
|
DiscriminatorValues["Insights"] = "Insights";
|
|
4262
4323
|
})(DiscriminatorValues$2 || (DiscriminatorValues$2 = {}));
|
|
4263
|
-
function validate$
|
|
4324
|
+
function validate$Y(obj, path = 'DataAlertValueInputRepresentation') {
|
|
4264
4325
|
const v_error = (() => {
|
|
4265
4326
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4266
4327
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4274,7 +4335,7 @@ function validate$W(obj, path = 'DataAlertValueInputRepresentation') {
|
|
|
4274
4335
|
return v_error === undefined ? null : v_error;
|
|
4275
4336
|
}
|
|
4276
4337
|
|
|
4277
|
-
function validate$
|
|
4338
|
+
function validate$X(obj, path = 'DataAlertValueRightOperandInputRepresentation') {
|
|
4278
4339
|
const v_error = (() => {
|
|
4279
4340
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4280
4341
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4288,14 +4349,14 @@ function validate$V(obj, path = 'DataAlertValueRightOperandInputRepresentation')
|
|
|
4288
4349
|
return v_error === undefined ? null : v_error;
|
|
4289
4350
|
}
|
|
4290
4351
|
|
|
4291
|
-
function validate$
|
|
4352
|
+
function validate$W(obj, path = 'DataAlertConditionInputRepresentation') {
|
|
4292
4353
|
const v_error = (() => {
|
|
4293
4354
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4294
4355
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4295
4356
|
}
|
|
4296
4357
|
const obj_leftOperand = obj.leftOperand;
|
|
4297
4358
|
const path_leftOperand = path + '.leftOperand';
|
|
4298
|
-
const referencepath_leftOperandValidationError = validate$
|
|
4359
|
+
const referencepath_leftOperandValidationError = validate$Y(obj_leftOperand, path_leftOperand);
|
|
4299
4360
|
if (referencepath_leftOperandValidationError !== null) {
|
|
4300
4361
|
let message = 'Object doesn\'t match DataAlertValueInputRepresentation (at "' + path_leftOperand + '")\n';
|
|
4301
4362
|
message += referencepath_leftOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4308,7 +4369,7 @@ function validate$U(obj, path = 'DataAlertConditionInputRepresentation') {
|
|
|
4308
4369
|
}
|
|
4309
4370
|
const obj_rightOperand = obj.rightOperand;
|
|
4310
4371
|
const path_rightOperand = path + '.rightOperand';
|
|
4311
|
-
const referencepath_rightOperandValidationError = validate$
|
|
4372
|
+
const referencepath_rightOperandValidationError = validate$X(obj_rightOperand, path_rightOperand);
|
|
4312
4373
|
if (referencepath_rightOperandValidationError !== null) {
|
|
4313
4374
|
let message = 'Object doesn\'t match DataAlertValueRightOperandInputRepresentation (at "' + path_rightOperand + '")\n';
|
|
4314
4375
|
message += referencepath_rightOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4318,7 +4379,7 @@ function validate$U(obj, path = 'DataAlertConditionInputRepresentation') {
|
|
|
4318
4379
|
return v_error === undefined ? null : v_error;
|
|
4319
4380
|
}
|
|
4320
4381
|
|
|
4321
|
-
function validate$
|
|
4382
|
+
function validate$V(obj, path = 'DataAlertThresholdsInputRepresentation') {
|
|
4322
4383
|
const v_error = (() => {
|
|
4323
4384
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4324
4385
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4331,7 +4392,7 @@ function validate$T(obj, path = 'DataAlertThresholdsInputRepresentation') {
|
|
|
4331
4392
|
for (let i = 0; i < obj_conditions.length; i++) {
|
|
4332
4393
|
const obj_conditions_item = obj_conditions[i];
|
|
4333
4394
|
const path_conditions_item = path_conditions + '[' + i + ']';
|
|
4334
|
-
const referencepath_conditions_itemValidationError = validate$
|
|
4395
|
+
const referencepath_conditions_itemValidationError = validate$W(obj_conditions_item, path_conditions_item);
|
|
4335
4396
|
if (referencepath_conditions_itemValidationError !== null) {
|
|
4336
4397
|
let message = 'Object doesn\'t match DataAlertConditionInputRepresentation (at "' + path_conditions_item + '")\n';
|
|
4337
4398
|
message += referencepath_conditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4347,19 +4408,19 @@ function validate$T(obj, path = 'DataAlertThresholdsInputRepresentation') {
|
|
|
4347
4408
|
return v_error === undefined ? null : v_error;
|
|
4348
4409
|
}
|
|
4349
4410
|
|
|
4350
|
-
function select$
|
|
4351
|
-
return select$
|
|
4411
|
+
function select$1f(luvio, params) {
|
|
4412
|
+
return select$1i();
|
|
4352
4413
|
}
|
|
4353
|
-
function getResponseCacheKeys$
|
|
4354
|
-
getTypeCacheKeys$
|
|
4414
|
+
function getResponseCacheKeys$P(storeKeyMap, luvio, resourceParams, response) {
|
|
4415
|
+
getTypeCacheKeys$A(storeKeyMap, luvio, response);
|
|
4355
4416
|
}
|
|
4356
|
-
function ingestSuccess$
|
|
4417
|
+
function ingestSuccess$I(luvio, resourceParams, response) {
|
|
4357
4418
|
const { body } = response;
|
|
4358
4419
|
const key = keyBuilderFromType$k(luvio, body);
|
|
4359
|
-
luvio.storeIngest(key, ingest$
|
|
4420
|
+
luvio.storeIngest(key, ingest$A, body);
|
|
4360
4421
|
const snapshot = luvio.storeLookup({
|
|
4361
4422
|
recordId: key,
|
|
4362
|
-
node: select$
|
|
4423
|
+
node: select$1f(),
|
|
4363
4424
|
variables: {},
|
|
4364
4425
|
});
|
|
4365
4426
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4370,7 +4431,7 @@ function ingestSuccess$H(luvio, resourceParams, response) {
|
|
|
4370
4431
|
deepFreeze(snapshot.data);
|
|
4371
4432
|
return snapshot;
|
|
4372
4433
|
}
|
|
4373
|
-
function createResourceRequest$
|
|
4434
|
+
function createResourceRequest$P(config) {
|
|
4374
4435
|
const headers = {};
|
|
4375
4436
|
return {
|
|
4376
4437
|
baseUri: '/services/data/v67.0',
|
|
@@ -4388,7 +4449,7 @@ var DiscriminatorValues$1;
|
|
|
4388
4449
|
(function (DiscriminatorValues) {
|
|
4389
4450
|
DiscriminatorValues["Metric"] = "Metric";
|
|
4390
4451
|
})(DiscriminatorValues$1 || (DiscriminatorValues$1 = {}));
|
|
4391
|
-
function validate$
|
|
4452
|
+
function validate$U(obj, path = 'DataAlertContentInputRepresentation') {
|
|
4392
4453
|
const v_error = (() => {
|
|
4393
4454
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4394
4455
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4408,7 +4469,7 @@ var DiscriminatorValues;
|
|
|
4408
4469
|
DiscriminatorValues["Weekly"] = "Weekly";
|
|
4409
4470
|
DiscriminatorValues["EveryNMinutes"] = "EveryNMinutes";
|
|
4410
4471
|
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
4411
|
-
function validate$
|
|
4472
|
+
function validate$T(obj, path = 'DataAlertScheduleInputRepresentation') {
|
|
4412
4473
|
const v_error = (() => {
|
|
4413
4474
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4414
4475
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4436,7 +4497,7 @@ function validate$R(obj, path = 'DataAlertScheduleInputRepresentation') {
|
|
|
4436
4497
|
return v_error === undefined ? null : v_error;
|
|
4437
4498
|
}
|
|
4438
4499
|
|
|
4439
|
-
const adapterName$
|
|
4500
|
+
const adapterName$P = 'createDataAlert';
|
|
4440
4501
|
const createDataAlert_ConfigPropertyMetadata = [
|
|
4441
4502
|
generateParamConfigMetadata('runNow', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
4442
4503
|
generateParamConfigMetadata('content', true, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -4447,28 +4508,28 @@ const createDataAlert_ConfigPropertyMetadata = [
|
|
|
4447
4508
|
generateParamConfigMetadata('utterance', true, 2 /* Body */, 0 /* String */),
|
|
4448
4509
|
generateParamConfigMetadata('agent', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4449
4510
|
];
|
|
4450
|
-
const createDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4451
|
-
const createResourceParams$
|
|
4452
|
-
function typeCheckConfig$
|
|
4511
|
+
const createDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$P, createDataAlert_ConfigPropertyMetadata);
|
|
4512
|
+
const createResourceParams$P = /*#__PURE__*/ createResourceParams$$(createDataAlert_ConfigPropertyMetadata);
|
|
4513
|
+
function typeCheckConfig$P(untrustedConfig) {
|
|
4453
4514
|
const config = {};
|
|
4454
|
-
typeCheckConfig
|
|
4515
|
+
typeCheckConfig$$(untrustedConfig, config, createDataAlert_ConfigPropertyMetadata);
|
|
4455
4516
|
const untrustedConfig_content = untrustedConfig.content;
|
|
4456
|
-
const referenceDataAlertContentInputRepresentationValidationError = validate$
|
|
4517
|
+
const referenceDataAlertContentInputRepresentationValidationError = validate$U(untrustedConfig_content);
|
|
4457
4518
|
if (referenceDataAlertContentInputRepresentationValidationError === null) {
|
|
4458
4519
|
config.content = untrustedConfig_content;
|
|
4459
4520
|
}
|
|
4460
4521
|
const untrustedConfig_deliveryConfigurations = untrustedConfig.deliveryConfigurations;
|
|
4461
|
-
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$
|
|
4522
|
+
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$_(untrustedConfig_deliveryConfigurations);
|
|
4462
4523
|
if (referenceDataAlertDeliveryConfigurationInputRepresentationValidationError === null) {
|
|
4463
4524
|
config.deliveryConfigurations = untrustedConfig_deliveryConfigurations;
|
|
4464
4525
|
}
|
|
4465
4526
|
const untrustedConfig_schedule = untrustedConfig.schedule;
|
|
4466
|
-
const referenceDataAlertScheduleInputRepresentationValidationError = validate$
|
|
4527
|
+
const referenceDataAlertScheduleInputRepresentationValidationError = validate$T(untrustedConfig_schedule);
|
|
4467
4528
|
if (referenceDataAlertScheduleInputRepresentationValidationError === null) {
|
|
4468
4529
|
config.schedule = untrustedConfig_schedule;
|
|
4469
4530
|
}
|
|
4470
4531
|
const untrustedConfig_thresholds = untrustedConfig.thresholds;
|
|
4471
|
-
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$
|
|
4532
|
+
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$V(untrustedConfig_thresholds);
|
|
4472
4533
|
if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
|
|
4473
4534
|
config.thresholds = untrustedConfig_thresholds;
|
|
4474
4535
|
}
|
|
@@ -4481,30 +4542,30 @@ function typeCheckConfig$O(untrustedConfig) {
|
|
|
4481
4542
|
}
|
|
4482
4543
|
return config;
|
|
4483
4544
|
}
|
|
4484
|
-
function validateAdapterConfig$
|
|
4545
|
+
function validateAdapterConfig$P(untrustedConfig, configPropertyNames) {
|
|
4485
4546
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4486
4547
|
return null;
|
|
4487
4548
|
}
|
|
4488
4549
|
if (process.env.NODE_ENV !== 'production') {
|
|
4489
4550
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4490
4551
|
}
|
|
4491
|
-
const config = typeCheckConfig$
|
|
4552
|
+
const config = typeCheckConfig$P(untrustedConfig);
|
|
4492
4553
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4493
4554
|
return null;
|
|
4494
4555
|
}
|
|
4495
4556
|
return config;
|
|
4496
4557
|
}
|
|
4497
|
-
function buildNetworkSnapshot$
|
|
4498
|
-
const resourceParams = createResourceParams$
|
|
4499
|
-
const request = createResourceRequest$
|
|
4558
|
+
function buildNetworkSnapshot$P(luvio, config, options) {
|
|
4559
|
+
const resourceParams = createResourceParams$P(config);
|
|
4560
|
+
const request = createResourceRequest$P(resourceParams);
|
|
4500
4561
|
return luvio.dispatchResourceRequest(request, options)
|
|
4501
4562
|
.then((response) => {
|
|
4502
4563
|
return luvio.handleSuccessResponse(() => {
|
|
4503
|
-
const snapshot = ingestSuccess$
|
|
4564
|
+
const snapshot = ingestSuccess$I(luvio, resourceParams, response);
|
|
4504
4565
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4505
4566
|
}, () => {
|
|
4506
4567
|
const cache = new StoreKeyMap();
|
|
4507
|
-
getResponseCacheKeys$
|
|
4568
|
+
getResponseCacheKeys$P(cache, luvio, resourceParams, response.body);
|
|
4508
4569
|
return cache;
|
|
4509
4570
|
});
|
|
4510
4571
|
}, (response) => {
|
|
@@ -4514,30 +4575,281 @@ function buildNetworkSnapshot$O(luvio, config, options) {
|
|
|
4514
4575
|
}
|
|
4515
4576
|
const createDataAlertAdapterFactory = (luvio) => {
|
|
4516
4577
|
return function createDataAlert(untrustedConfig) {
|
|
4517
|
-
const config = validateAdapterConfig$
|
|
4578
|
+
const config = validateAdapterConfig$P(untrustedConfig, createDataAlert_ConfigPropertyNames);
|
|
4518
4579
|
// Invalid or incomplete config
|
|
4519
4580
|
if (config === null) {
|
|
4520
4581
|
throw new Error('Invalid config for "createDataAlert"');
|
|
4521
4582
|
}
|
|
4522
|
-
return buildNetworkSnapshot$
|
|
4583
|
+
return buildNetworkSnapshot$P(luvio, config);
|
|
4584
|
+
};
|
|
4585
|
+
};
|
|
4586
|
+
|
|
4587
|
+
function validate$S(obj, path = 'DataAlertPropertyFilterInputRepresentation') {
|
|
4588
|
+
const v_error = (() => {
|
|
4589
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4590
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4591
|
+
}
|
|
4592
|
+
const obj_property = obj.property;
|
|
4593
|
+
const path_property = path + '.property';
|
|
4594
|
+
if (typeof obj_property !== 'string') {
|
|
4595
|
+
return new TypeError('Expected "string" but received "' + typeof obj_property + '" (at "' + path_property + '")');
|
|
4596
|
+
}
|
|
4597
|
+
const obj_values = obj.values;
|
|
4598
|
+
const path_values = path + '.values';
|
|
4599
|
+
if (!ArrayIsArray(obj_values)) {
|
|
4600
|
+
return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
|
|
4601
|
+
}
|
|
4602
|
+
for (let i = 0; i < obj_values.length; i++) {
|
|
4603
|
+
const obj_values_item = obj_values[i];
|
|
4604
|
+
const path_values_item = path_values + '[' + i + ']';
|
|
4605
|
+
if (typeof obj_values_item !== 'string') {
|
|
4606
|
+
return new TypeError('Expected "string" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
|
|
4607
|
+
}
|
|
4608
|
+
}
|
|
4609
|
+
})();
|
|
4610
|
+
return v_error === undefined ? null : v_error;
|
|
4611
|
+
}
|
|
4612
|
+
|
|
4613
|
+
const TTL$n = 500;
|
|
4614
|
+
const VERSION$y = "8ee49a59b88eeef0e19aa1298280a0a7";
|
|
4615
|
+
function validate$R(obj, path = 'DataAlertQueryCollectionRepresentation') {
|
|
4616
|
+
const v_error = (() => {
|
|
4617
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4618
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4619
|
+
}
|
|
4620
|
+
const obj_dataAlerts = obj.dataAlerts;
|
|
4621
|
+
const path_dataAlerts = path + '.dataAlerts';
|
|
4622
|
+
if (!ArrayIsArray(obj_dataAlerts)) {
|
|
4623
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dataAlerts + '" (at "' + path_dataAlerts + '")');
|
|
4624
|
+
}
|
|
4625
|
+
for (let i = 0; i < obj_dataAlerts.length; i++) {
|
|
4626
|
+
const obj_dataAlerts_item = obj_dataAlerts[i];
|
|
4627
|
+
const path_dataAlerts_item = path_dataAlerts + '[' + i + ']';
|
|
4628
|
+
const referencepath_dataAlerts_itemValidationError = validate$11(obj_dataAlerts_item, path_dataAlerts_item);
|
|
4629
|
+
if (referencepath_dataAlerts_itemValidationError !== null) {
|
|
4630
|
+
let message = 'Object doesn\'t match DataAlertRepresentation (at "' + path_dataAlerts_item + '")\n';
|
|
4631
|
+
message += referencepath_dataAlerts_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4632
|
+
return new TypeError(message);
|
|
4633
|
+
}
|
|
4634
|
+
}
|
|
4635
|
+
})();
|
|
4636
|
+
return v_error === undefined ? null : v_error;
|
|
4637
|
+
}
|
|
4638
|
+
const RepresentationType$A = 'DataAlertQueryCollectionRepresentation';
|
|
4639
|
+
function normalize$y(input, existing, path, luvio, store, timestamp) {
|
|
4640
|
+
return input;
|
|
4641
|
+
}
|
|
4642
|
+
const select$1e = function DataAlertQueryCollectionRepresentationSelect() {
|
|
4643
|
+
return {
|
|
4644
|
+
kind: 'Fragment',
|
|
4645
|
+
version: VERSION$y,
|
|
4646
|
+
private: [],
|
|
4647
|
+
opaque: true
|
|
4648
|
+
};
|
|
4649
|
+
};
|
|
4650
|
+
function equals$y(existing, incoming) {
|
|
4651
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4652
|
+
return false;
|
|
4653
|
+
}
|
|
4654
|
+
return true;
|
|
4655
|
+
}
|
|
4656
|
+
const ingest$y = function DataAlertQueryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4657
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4658
|
+
const validateError = validate$R(input);
|
|
4659
|
+
if (validateError !== null) {
|
|
4660
|
+
throw validateError;
|
|
4661
|
+
}
|
|
4662
|
+
}
|
|
4663
|
+
const key = path.fullPath;
|
|
4664
|
+
const ttlToUse = TTL$n;
|
|
4665
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$y, "UnifiedAnalytics", VERSION$y, RepresentationType$A, equals$y);
|
|
4666
|
+
return createLink(key);
|
|
4667
|
+
};
|
|
4668
|
+
function getTypeCacheKeys$y(rootKeySet, luvio, input, fullPathFactory) {
|
|
4669
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4670
|
+
const rootKey = fullPathFactory();
|
|
4671
|
+
rootKeySet.set(rootKey, {
|
|
4672
|
+
namespace: keyPrefix,
|
|
4673
|
+
representationName: RepresentationType$A,
|
|
4674
|
+
mergeable: false
|
|
4675
|
+
});
|
|
4676
|
+
}
|
|
4677
|
+
|
|
4678
|
+
function select$1d(luvio, params) {
|
|
4679
|
+
return select$1e();
|
|
4680
|
+
}
|
|
4681
|
+
function keyBuilder$18(luvio, params) {
|
|
4682
|
+
var _a, _b, _c, _d, _e, _f;
|
|
4683
|
+
return keyPrefix + '::DataAlertQueryCollectionRepresentation:(' + 'ownerId:' + params.body.ownerId + '::' + (params.body.assetId === undefined ? 'assetId' : 'assetId:' + params.body.assetId) + '::' + (((_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(',') + ']')) + ')';
|
|
4684
|
+
}
|
|
4685
|
+
function getResponseCacheKeys$O(storeKeyMap, luvio, resourceParams, response) {
|
|
4686
|
+
getTypeCacheKeys$y(storeKeyMap, luvio, response, () => keyBuilder$18(luvio, resourceParams));
|
|
4687
|
+
}
|
|
4688
|
+
function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
|
|
4689
|
+
const { body } = response;
|
|
4690
|
+
const key = keyBuilder$18(luvio, resourceParams);
|
|
4691
|
+
luvio.storeIngest(key, ingest$y, body);
|
|
4692
|
+
const snapshot = luvio.storeLookup({
|
|
4693
|
+
recordId: key,
|
|
4694
|
+
node: select$1d(),
|
|
4695
|
+
variables: {},
|
|
4696
|
+
}, snapshotRefresh);
|
|
4697
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4698
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4699
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4700
|
+
}
|
|
4701
|
+
}
|
|
4702
|
+
deepFreeze(snapshot.data);
|
|
4703
|
+
return snapshot;
|
|
4704
|
+
}
|
|
4705
|
+
function ingestError$l(luvio, params, error, snapshotRefresh) {
|
|
4706
|
+
const key = keyBuilder$18(luvio, params);
|
|
4707
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4708
|
+
const storeMetadataParams = {
|
|
4709
|
+
ttl: TTL$n,
|
|
4710
|
+
namespace: keyPrefix,
|
|
4711
|
+
version: VERSION$y,
|
|
4712
|
+
representationName: RepresentationType$A
|
|
4713
|
+
};
|
|
4714
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4715
|
+
return errorSnapshot;
|
|
4716
|
+
}
|
|
4717
|
+
function createResourceRequest$O(config) {
|
|
4718
|
+
const headers = {};
|
|
4719
|
+
return {
|
|
4720
|
+
baseUri: '/services/data/v67.0',
|
|
4721
|
+
basePath: '/tableau/dataAlerts/query',
|
|
4722
|
+
method: 'post',
|
|
4723
|
+
body: config.body,
|
|
4724
|
+
urlParams: {},
|
|
4725
|
+
queryParams: {},
|
|
4726
|
+
headers,
|
|
4727
|
+
priority: 'normal',
|
|
4523
4728
|
};
|
|
4729
|
+
}
|
|
4730
|
+
|
|
4731
|
+
const adapterName$O = 'postDataAlertQuery';
|
|
4732
|
+
const postDataAlertQuery_ConfigPropertyMetadata = [
|
|
4733
|
+
generateParamConfigMetadata('ownerId', true, 2 /* Body */, 0 /* String */),
|
|
4734
|
+
generateParamConfigMetadata('assetId', false, 2 /* Body */, 0 /* String */),
|
|
4735
|
+
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4736
|
+
generateParamConfigMetadata('includeProperties', false, 2 /* Body */, 0 /* String */, true),
|
|
4737
|
+
generateParamConfigMetadata('propertyFilters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4738
|
+
];
|
|
4739
|
+
const postDataAlertQuery_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$O, postDataAlertQuery_ConfigPropertyMetadata);
|
|
4740
|
+
const createResourceParams$O = /*#__PURE__*/ createResourceParams$$(postDataAlertQuery_ConfigPropertyMetadata);
|
|
4741
|
+
function keyBuilder$17(luvio, config) {
|
|
4742
|
+
const resourceParams = createResourceParams$O(config);
|
|
4743
|
+
return keyBuilder$18(luvio, resourceParams);
|
|
4744
|
+
}
|
|
4745
|
+
function typeCheckConfig$O(untrustedConfig) {
|
|
4746
|
+
const config = {};
|
|
4747
|
+
typeCheckConfig$$(untrustedConfig, config, postDataAlertQuery_ConfigPropertyMetadata);
|
|
4748
|
+
const untrustedConfig_timeRange = untrustedConfig.timeRange;
|
|
4749
|
+
const referenceUnifiedFilterInputRepresentationValidationError = validate$Z(untrustedConfig_timeRange);
|
|
4750
|
+
if (referenceUnifiedFilterInputRepresentationValidationError === null) {
|
|
4751
|
+
config.timeRange = untrustedConfig_timeRange;
|
|
4752
|
+
}
|
|
4753
|
+
const untrustedConfig_propertyFilters = untrustedConfig.propertyFilters;
|
|
4754
|
+
if (ArrayIsArray$1(untrustedConfig_propertyFilters)) {
|
|
4755
|
+
const untrustedConfig_propertyFilters_array = [];
|
|
4756
|
+
for (let i = 0, arrayLength = untrustedConfig_propertyFilters.length; i < arrayLength; i++) {
|
|
4757
|
+
const untrustedConfig_propertyFilters_item = untrustedConfig_propertyFilters[i];
|
|
4758
|
+
const referenceDataAlertPropertyFilterInputRepresentationValidationError = validate$S(untrustedConfig_propertyFilters_item);
|
|
4759
|
+
if (referenceDataAlertPropertyFilterInputRepresentationValidationError === null) {
|
|
4760
|
+
untrustedConfig_propertyFilters_array.push(untrustedConfig_propertyFilters_item);
|
|
4761
|
+
}
|
|
4762
|
+
}
|
|
4763
|
+
config.propertyFilters = untrustedConfig_propertyFilters_array;
|
|
4764
|
+
}
|
|
4765
|
+
return config;
|
|
4766
|
+
}
|
|
4767
|
+
function validateAdapterConfig$O(untrustedConfig, configPropertyNames) {
|
|
4768
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4769
|
+
return null;
|
|
4770
|
+
}
|
|
4771
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4772
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4773
|
+
}
|
|
4774
|
+
const config = typeCheckConfig$O(untrustedConfig);
|
|
4775
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4776
|
+
return null;
|
|
4777
|
+
}
|
|
4778
|
+
return config;
|
|
4779
|
+
}
|
|
4780
|
+
function adapterFragment$l(luvio, config) {
|
|
4781
|
+
createResourceParams$O(config);
|
|
4782
|
+
return select$1d();
|
|
4783
|
+
}
|
|
4784
|
+
function onFetchResponseSuccess$l(luvio, config, resourceParams, response) {
|
|
4785
|
+
const snapshot = ingestSuccess$H(luvio, resourceParams, response, {
|
|
4786
|
+
config,
|
|
4787
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions)
|
|
4788
|
+
});
|
|
4789
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4790
|
+
}
|
|
4791
|
+
function onFetchResponseError$l(luvio, config, resourceParams, response) {
|
|
4792
|
+
const snapshot = ingestError$l(luvio, resourceParams, response, {
|
|
4793
|
+
config,
|
|
4794
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions)
|
|
4795
|
+
});
|
|
4796
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4797
|
+
}
|
|
4798
|
+
function buildNetworkSnapshot$O(luvio, config, options) {
|
|
4799
|
+
const resourceParams = createResourceParams$O(config);
|
|
4800
|
+
const request = createResourceRequest$O(resourceParams);
|
|
4801
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4802
|
+
.then((response) => {
|
|
4803
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$l(luvio, config, resourceParams, response), () => {
|
|
4804
|
+
const cache = new StoreKeyMap();
|
|
4805
|
+
getResponseCacheKeys$O(cache, luvio, resourceParams, response.body);
|
|
4806
|
+
return cache;
|
|
4807
|
+
});
|
|
4808
|
+
}, (response) => {
|
|
4809
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$l(luvio, config, resourceParams, response));
|
|
4810
|
+
});
|
|
4811
|
+
}
|
|
4812
|
+
function buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext) {
|
|
4813
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$O, 'get', false);
|
|
4814
|
+
}
|
|
4815
|
+
function buildCachedSnapshotCachePolicy$l(context, storeLookup) {
|
|
4816
|
+
const { luvio, config } = context;
|
|
4817
|
+
const selector = {
|
|
4818
|
+
recordId: keyBuilder$17(luvio, config),
|
|
4819
|
+
node: adapterFragment$l(luvio, config),
|
|
4820
|
+
variables: {},
|
|
4821
|
+
};
|
|
4822
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4823
|
+
config,
|
|
4824
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions)
|
|
4825
|
+
});
|
|
4826
|
+
return cacheSnapshot;
|
|
4827
|
+
}
|
|
4828
|
+
const postDataAlertQueryAdapterFactory = (luvio) => function UnifiedAnalytics__postDataAlertQuery(untrustedConfig, requestContext) {
|
|
4829
|
+
const config = validateAdapterConfig$O(untrustedConfig, postDataAlertQuery_ConfigPropertyNames);
|
|
4830
|
+
// Invalid or incomplete config
|
|
4831
|
+
if (config === null) {
|
|
4832
|
+
return null;
|
|
4833
|
+
}
|
|
4834
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4835
|
+
buildCachedSnapshotCachePolicy$l, buildNetworkSnapshotCachePolicy$l);
|
|
4524
4836
|
};
|
|
4525
4837
|
|
|
4526
4838
|
function select$1c(luvio, params) {
|
|
4527
|
-
return select$
|
|
4839
|
+
return select$1i();
|
|
4528
4840
|
}
|
|
4529
4841
|
function keyBuilder$16(luvio, params) {
|
|
4530
|
-
return keyBuilder$
|
|
4842
|
+
return keyBuilder$1b(luvio, {
|
|
4531
4843
|
dataAlertId: params.urlParams.dataAlertId
|
|
4532
4844
|
});
|
|
4533
4845
|
}
|
|
4534
4846
|
function getResponseCacheKeys$N(storeKeyMap, luvio, resourceParams, response) {
|
|
4535
|
-
getTypeCacheKeys$
|
|
4847
|
+
getTypeCacheKeys$A(storeKeyMap, luvio, response);
|
|
4536
4848
|
}
|
|
4537
4849
|
function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
|
|
4538
4850
|
const { body } = response;
|
|
4539
4851
|
const key = keyBuilder$16(luvio, resourceParams);
|
|
4540
|
-
luvio.storeIngest(key, ingest$
|
|
4852
|
+
luvio.storeIngest(key, ingest$A, body);
|
|
4541
4853
|
const snapshot = luvio.storeLookup({
|
|
4542
4854
|
recordId: key,
|
|
4543
4855
|
node: select$1c(),
|
|
@@ -4555,10 +4867,10 @@ function ingestError$k(luvio, params, error, snapshotRefresh) {
|
|
|
4555
4867
|
const key = keyBuilder$16(luvio, params);
|
|
4556
4868
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4557
4869
|
const storeMetadataParams = {
|
|
4558
|
-
ttl: TTL$
|
|
4870
|
+
ttl: TTL$p,
|
|
4559
4871
|
namespace: keyPrefix,
|
|
4560
|
-
version: VERSION$
|
|
4561
|
-
representationName: RepresentationType$
|
|
4872
|
+
version: VERSION$A,
|
|
4873
|
+
representationName: RepresentationType$C
|
|
4562
4874
|
};
|
|
4563
4875
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4564
4876
|
return errorSnapshot;
|
|
@@ -4582,14 +4894,14 @@ const getDataAlert_ConfigPropertyMetadata = [
|
|
|
4582
4894
|
generateParamConfigMetadata('dataAlertId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4583
4895
|
];
|
|
4584
4896
|
const getDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$N, getDataAlert_ConfigPropertyMetadata);
|
|
4585
|
-
const createResourceParams$N = /*#__PURE__*/ createResourceParams
|
|
4897
|
+
const createResourceParams$N = /*#__PURE__*/ createResourceParams$$(getDataAlert_ConfigPropertyMetadata);
|
|
4586
4898
|
function keyBuilder$15(luvio, config) {
|
|
4587
4899
|
const resourceParams = createResourceParams$N(config);
|
|
4588
4900
|
return keyBuilder$16(luvio, resourceParams);
|
|
4589
4901
|
}
|
|
4590
4902
|
function typeCheckConfig$N(untrustedConfig) {
|
|
4591
4903
|
const config = {};
|
|
4592
|
-
typeCheckConfig
|
|
4904
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAlert_ConfigPropertyMetadata);
|
|
4593
4905
|
return config;
|
|
4594
4906
|
}
|
|
4595
4907
|
function validateAdapterConfig$N(untrustedConfig, configPropertyNames) {
|
|
@@ -4638,7 +4950,7 @@ function buildNetworkSnapshot$N(luvio, config, options) {
|
|
|
4638
4950
|
});
|
|
4639
4951
|
}
|
|
4640
4952
|
function buildNetworkSnapshotCachePolicy$k(context, coercedAdapterRequestContext) {
|
|
4641
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4953
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$N, undefined, false);
|
|
4642
4954
|
}
|
|
4643
4955
|
function buildCachedSnapshotCachePolicy$k(context, storeLookup) {
|
|
4644
4956
|
const { luvio, config } = context;
|
|
@@ -4664,7 +4976,7 @@ const getDataAlertAdapterFactory = (luvio) => function UnifiedAnalytics__getData
|
|
|
4664
4976
|
};
|
|
4665
4977
|
|
|
4666
4978
|
function keyBuilder$14(luvio, params) {
|
|
4667
|
-
return keyBuilder$
|
|
4979
|
+
return keyBuilder$1b(luvio, {
|
|
4668
4980
|
dataAlertId: params.urlParams.dataAlertId
|
|
4669
4981
|
});
|
|
4670
4982
|
}
|
|
@@ -4672,7 +4984,7 @@ function getResponseCacheKeys$M(cacheKeyMap, luvio, resourceParams) {
|
|
|
4672
4984
|
const key = keyBuilder$14(luvio, resourceParams);
|
|
4673
4985
|
cacheKeyMap.set(key, {
|
|
4674
4986
|
namespace: keyPrefix,
|
|
4675
|
-
representationName: RepresentationType$
|
|
4987
|
+
representationName: RepresentationType$C,
|
|
4676
4988
|
mergeable: false
|
|
4677
4989
|
});
|
|
4678
4990
|
}
|
|
@@ -4699,10 +5011,10 @@ const deleteDataAlert_ConfigPropertyMetadata = [
|
|
|
4699
5011
|
generateParamConfigMetadata('dataAlertId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4700
5012
|
];
|
|
4701
5013
|
const deleteDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$M, deleteDataAlert_ConfigPropertyMetadata);
|
|
4702
|
-
const createResourceParams$M = /*#__PURE__*/ createResourceParams
|
|
5014
|
+
const createResourceParams$M = /*#__PURE__*/ createResourceParams$$(deleteDataAlert_ConfigPropertyMetadata);
|
|
4703
5015
|
function typeCheckConfig$M(untrustedConfig) {
|
|
4704
5016
|
const config = {};
|
|
4705
|
-
typeCheckConfig
|
|
5017
|
+
typeCheckConfig$$(untrustedConfig, config, deleteDataAlert_ConfigPropertyMetadata);
|
|
4706
5018
|
return config;
|
|
4707
5019
|
}
|
|
4708
5020
|
function validateAdapterConfig$M(untrustedConfig, configPropertyNames) {
|
|
@@ -4748,15 +5060,15 @@ const deleteDataAlertAdapterFactory = (luvio) => {
|
|
|
4748
5060
|
};
|
|
4749
5061
|
|
|
4750
5062
|
function select$1b(luvio, params) {
|
|
4751
|
-
return select$
|
|
5063
|
+
return select$1i();
|
|
4752
5064
|
}
|
|
4753
5065
|
function getResponseCacheKeys$L(storeKeyMap, luvio, resourceParams, response) {
|
|
4754
|
-
getTypeCacheKeys$
|
|
5066
|
+
getTypeCacheKeys$A(storeKeyMap, luvio, response);
|
|
4755
5067
|
}
|
|
4756
5068
|
function ingestSuccess$F(luvio, resourceParams, response) {
|
|
4757
5069
|
const { body } = response;
|
|
4758
5070
|
const key = keyBuilderFromType$k(luvio, body);
|
|
4759
|
-
luvio.storeIngest(key, ingest$
|
|
5071
|
+
luvio.storeIngest(key, ingest$A, body);
|
|
4760
5072
|
const snapshot = luvio.storeLookup({
|
|
4761
5073
|
recordId: key,
|
|
4762
5074
|
node: select$1b(),
|
|
@@ -4797,27 +5109,27 @@ const updateDataAlert_ConfigPropertyMetadata = [
|
|
|
4797
5109
|
generateParamConfigMetadata('agent', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4798
5110
|
];
|
|
4799
5111
|
const updateDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$L, updateDataAlert_ConfigPropertyMetadata);
|
|
4800
|
-
const createResourceParams$L = /*#__PURE__*/ createResourceParams
|
|
5112
|
+
const createResourceParams$L = /*#__PURE__*/ createResourceParams$$(updateDataAlert_ConfigPropertyMetadata);
|
|
4801
5113
|
function typeCheckConfig$L(untrustedConfig) {
|
|
4802
5114
|
const config = {};
|
|
4803
|
-
typeCheckConfig
|
|
5115
|
+
typeCheckConfig$$(untrustedConfig, config, updateDataAlert_ConfigPropertyMetadata);
|
|
4804
5116
|
const untrustedConfig_content = untrustedConfig.content;
|
|
4805
|
-
const referenceDataAlertContentInputRepresentationValidationError = validate$
|
|
5117
|
+
const referenceDataAlertContentInputRepresentationValidationError = validate$U(untrustedConfig_content);
|
|
4806
5118
|
if (referenceDataAlertContentInputRepresentationValidationError === null) {
|
|
4807
5119
|
config.content = untrustedConfig_content;
|
|
4808
5120
|
}
|
|
4809
5121
|
const untrustedConfig_deliveryConfigurations = untrustedConfig.deliveryConfigurations;
|
|
4810
|
-
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$
|
|
5122
|
+
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$_(untrustedConfig_deliveryConfigurations);
|
|
4811
5123
|
if (referenceDataAlertDeliveryConfigurationInputRepresentationValidationError === null) {
|
|
4812
5124
|
config.deliveryConfigurations = untrustedConfig_deliveryConfigurations;
|
|
4813
5125
|
}
|
|
4814
5126
|
const untrustedConfig_schedule = untrustedConfig.schedule;
|
|
4815
|
-
const referenceDataAlertScheduleInputRepresentationValidationError = validate$
|
|
5127
|
+
const referenceDataAlertScheduleInputRepresentationValidationError = validate$T(untrustedConfig_schedule);
|
|
4816
5128
|
if (referenceDataAlertScheduleInputRepresentationValidationError === null) {
|
|
4817
5129
|
config.schedule = untrustedConfig_schedule;
|
|
4818
5130
|
}
|
|
4819
5131
|
const untrustedConfig_thresholds = untrustedConfig.thresholds;
|
|
4820
|
-
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$
|
|
5132
|
+
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$V(untrustedConfig_thresholds);
|
|
4821
5133
|
if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
|
|
4822
5134
|
config.thresholds = untrustedConfig_thresholds;
|
|
4823
5135
|
}
|
|
@@ -5013,10 +5325,10 @@ const postDataAlertRun_ConfigPropertyMetadata = [
|
|
|
5013
5325
|
generateParamConfigMetadata('dataAlertId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5014
5326
|
];
|
|
5015
5327
|
const postDataAlertRun_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$K, postDataAlertRun_ConfigPropertyMetadata);
|
|
5016
|
-
const createResourceParams$K = /*#__PURE__*/ createResourceParams
|
|
5328
|
+
const createResourceParams$K = /*#__PURE__*/ createResourceParams$$(postDataAlertRun_ConfigPropertyMetadata);
|
|
5017
5329
|
function typeCheckConfig$K(untrustedConfig) {
|
|
5018
5330
|
const config = {};
|
|
5019
|
-
typeCheckConfig
|
|
5331
|
+
typeCheckConfig$$(untrustedConfig, config, postDataAlertRun_ConfigPropertyMetadata);
|
|
5020
5332
|
return config;
|
|
5021
5333
|
}
|
|
5022
5334
|
function validateAdapterConfig$K(untrustedConfig, configPropertyNames) {
|
|
@@ -5062,7 +5374,7 @@ const postDataAlertRunAdapterFactory = (luvio) => {
|
|
|
5062
5374
|
};
|
|
5063
5375
|
|
|
5064
5376
|
function validate$P(obj, path = 'AnalyticsUserRepresentation') {
|
|
5065
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
5377
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$1f(obj, path);
|
|
5066
5378
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
5067
5379
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
5068
5380
|
}
|
|
@@ -6268,14 +6580,14 @@ const getDataAssetRequests_ConfigPropertyMetadata = [
|
|
|
6268
6580
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6269
6581
|
];
|
|
6270
6582
|
const getDataAssetRequests_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$J, getDataAssetRequests_ConfigPropertyMetadata);
|
|
6271
|
-
const createResourceParams$J = /*#__PURE__*/ createResourceParams
|
|
6583
|
+
const createResourceParams$J = /*#__PURE__*/ createResourceParams$$(getDataAssetRequests_ConfigPropertyMetadata);
|
|
6272
6584
|
function keyBuilder$10(luvio, config) {
|
|
6273
6585
|
const resourceParams = createResourceParams$J(config);
|
|
6274
6586
|
return keyBuilder$11(luvio, resourceParams);
|
|
6275
6587
|
}
|
|
6276
6588
|
function typeCheckConfig$J(untrustedConfig) {
|
|
6277
6589
|
const config = {};
|
|
6278
|
-
typeCheckConfig
|
|
6590
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAssetRequests_ConfigPropertyMetadata);
|
|
6279
6591
|
return config;
|
|
6280
6592
|
}
|
|
6281
6593
|
function validateAdapterConfig$J(untrustedConfig, configPropertyNames) {
|
|
@@ -6324,7 +6636,7 @@ function buildNetworkSnapshot$J(luvio, config, options) {
|
|
|
6324
6636
|
});
|
|
6325
6637
|
}
|
|
6326
6638
|
function buildNetworkSnapshotCachePolicy$j(context, coercedAdapterRequestContext) {
|
|
6327
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6639
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$J, undefined, false);
|
|
6328
6640
|
}
|
|
6329
6641
|
function buildCachedSnapshotCachePolicy$j(context, storeLookup) {
|
|
6330
6642
|
const { luvio, config } = context;
|
|
@@ -6401,10 +6713,10 @@ const createDataAssetRequest_ConfigPropertyMetadata = [
|
|
|
6401
6713
|
generateParamConfigMetadata('packageExportStatus', false, 2 /* Body */, 0 /* String */),
|
|
6402
6714
|
];
|
|
6403
6715
|
const createDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$I, createDataAssetRequest_ConfigPropertyMetadata);
|
|
6404
|
-
const createResourceParams$I = /*#__PURE__*/ createResourceParams
|
|
6716
|
+
const createResourceParams$I = /*#__PURE__*/ createResourceParams$$(createDataAssetRequest_ConfigPropertyMetadata);
|
|
6405
6717
|
function typeCheckConfig$I(untrustedConfig) {
|
|
6406
6718
|
const config = {};
|
|
6407
|
-
typeCheckConfig
|
|
6719
|
+
typeCheckConfig$$(untrustedConfig, config, createDataAssetRequest_ConfigPropertyMetadata);
|
|
6408
6720
|
return config;
|
|
6409
6721
|
}
|
|
6410
6722
|
function validateAdapterConfig$I(untrustedConfig, configPropertyNames) {
|
|
@@ -6568,14 +6880,14 @@ const getDataAssetRequestsCount_ConfigPropertyMetadata = [
|
|
|
6568
6880
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6569
6881
|
];
|
|
6570
6882
|
const getDataAssetRequestsCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$H, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
6571
|
-
const createResourceParams$H = /*#__PURE__*/ createResourceParams
|
|
6883
|
+
const createResourceParams$H = /*#__PURE__*/ createResourceParams$$(getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
6572
6884
|
function keyBuilder$_(luvio, config) {
|
|
6573
6885
|
const resourceParams = createResourceParams$H(config);
|
|
6574
6886
|
return keyBuilder$$(luvio, resourceParams);
|
|
6575
6887
|
}
|
|
6576
6888
|
function typeCheckConfig$H(untrustedConfig) {
|
|
6577
6889
|
const config = {};
|
|
6578
|
-
typeCheckConfig
|
|
6890
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
6579
6891
|
return config;
|
|
6580
6892
|
}
|
|
6581
6893
|
function validateAdapterConfig$H(untrustedConfig, configPropertyNames) {
|
|
@@ -6624,7 +6936,7 @@ function buildNetworkSnapshot$H(luvio, config, options) {
|
|
|
6624
6936
|
});
|
|
6625
6937
|
}
|
|
6626
6938
|
function buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext) {
|
|
6627
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6939
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$H, undefined, false);
|
|
6628
6940
|
}
|
|
6629
6941
|
function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
|
|
6630
6942
|
const { luvio, config } = context;
|
|
@@ -6708,14 +7020,14 @@ const getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata = [
|
|
|
6708
7020
|
generateParamConfigMetadata('requestIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6709
7021
|
];
|
|
6710
7022
|
const getDataAssetRequestByIdOrApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$G, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
6711
|
-
const createResourceParams$G = /*#__PURE__*/ createResourceParams
|
|
7023
|
+
const createResourceParams$G = /*#__PURE__*/ createResourceParams$$(getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
6712
7024
|
function keyBuilder$Y(luvio, config) {
|
|
6713
7025
|
const resourceParams = createResourceParams$G(config);
|
|
6714
7026
|
return keyBuilder$Z(luvio, resourceParams);
|
|
6715
7027
|
}
|
|
6716
7028
|
function typeCheckConfig$G(untrustedConfig) {
|
|
6717
7029
|
const config = {};
|
|
6718
|
-
typeCheckConfig
|
|
7030
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
6719
7031
|
return config;
|
|
6720
7032
|
}
|
|
6721
7033
|
function validateAdapterConfig$G(untrustedConfig, configPropertyNames) {
|
|
@@ -6764,7 +7076,7 @@ function buildNetworkSnapshot$G(luvio, config, options) {
|
|
|
6764
7076
|
});
|
|
6765
7077
|
}
|
|
6766
7078
|
function buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext) {
|
|
6767
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7079
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$G, undefined, false);
|
|
6768
7080
|
}
|
|
6769
7081
|
function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
6770
7082
|
const { luvio, config } = context;
|
|
@@ -6842,10 +7154,10 @@ const updateDataAssetRequest_ConfigPropertyMetadata = [
|
|
|
6842
7154
|
generateParamConfigMetadata('packageExportStatus', false, 2 /* Body */, 0 /* String */),
|
|
6843
7155
|
];
|
|
6844
7156
|
const updateDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$F, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
6845
|
-
const createResourceParams$F = /*#__PURE__*/ createResourceParams
|
|
7157
|
+
const createResourceParams$F = /*#__PURE__*/ createResourceParams$$(updateDataAssetRequest_ConfigPropertyMetadata);
|
|
6846
7158
|
function typeCheckConfig$F(untrustedConfig) {
|
|
6847
7159
|
const config = {};
|
|
6848
|
-
typeCheckConfig
|
|
7160
|
+
typeCheckConfig$$(untrustedConfig, config, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
6849
7161
|
return config;
|
|
6850
7162
|
}
|
|
6851
7163
|
function validateAdapterConfig$F(untrustedConfig, configPropertyNames) {
|
|
@@ -7187,14 +7499,14 @@ const getDataAssetDependencies_ConfigPropertyMetadata = [
|
|
|
7187
7499
|
generateParamConfigMetadata('failOnSchemaMismatch', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
7188
7500
|
];
|
|
7189
7501
|
const getDataAssetDependencies_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$E, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
7190
|
-
const createResourceParams$E = /*#__PURE__*/ createResourceParams
|
|
7502
|
+
const createResourceParams$E = /*#__PURE__*/ createResourceParams$$(getDataAssetDependencies_ConfigPropertyMetadata);
|
|
7191
7503
|
function keyBuilder$W(luvio, config) {
|
|
7192
7504
|
const resourceParams = createResourceParams$E(config);
|
|
7193
7505
|
return keyBuilder$X(luvio, resourceParams);
|
|
7194
7506
|
}
|
|
7195
7507
|
function typeCheckConfig$E(untrustedConfig) {
|
|
7196
7508
|
const config = {};
|
|
7197
|
-
typeCheckConfig
|
|
7509
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
7198
7510
|
return config;
|
|
7199
7511
|
}
|
|
7200
7512
|
function validateAdapterConfig$E(untrustedConfig, configPropertyNames) {
|
|
@@ -7243,7 +7555,7 @@ function buildNetworkSnapshot$E(luvio, config, options) {
|
|
|
7243
7555
|
});
|
|
7244
7556
|
}
|
|
7245
7557
|
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
7246
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7558
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$E, undefined, false);
|
|
7247
7559
|
}
|
|
7248
7560
|
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
7249
7561
|
const { luvio, config } = context;
|
|
@@ -7489,10 +7801,10 @@ const follow_ConfigPropertyMetadata = [
|
|
|
7489
7801
|
generateParamConfigMetadata('followedTimeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
7490
7802
|
];
|
|
7491
7803
|
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$D, follow_ConfigPropertyMetadata);
|
|
7492
|
-
const createResourceParams$D = /*#__PURE__*/ createResourceParams
|
|
7804
|
+
const createResourceParams$D = /*#__PURE__*/ createResourceParams$$(follow_ConfigPropertyMetadata);
|
|
7493
7805
|
function typeCheckConfig$D(untrustedConfig) {
|
|
7494
7806
|
const config = {};
|
|
7495
|
-
typeCheckConfig
|
|
7807
|
+
typeCheckConfig$$(untrustedConfig, config, follow_ConfigPropertyMetadata);
|
|
7496
7808
|
const untrustedConfig_followedTimeRange = untrustedConfig.followedTimeRange;
|
|
7497
7809
|
const referenceFollowedTimeRangeRepresentationValidationError = validate$D(untrustedConfig_followedTimeRange);
|
|
7498
7810
|
if (referenceFollowedTimeRangeRepresentationValidationError === null) {
|
|
@@ -7666,10 +7978,10 @@ const updateFollowedAsset_ConfigPropertyMetadata = [
|
|
|
7666
7978
|
generateParamConfigMetadata('updateAllAssets', false, 2 /* Body */, 1 /* Boolean */),
|
|
7667
7979
|
];
|
|
7668
7980
|
const updateFollowedAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$C, updateFollowedAsset_ConfigPropertyMetadata);
|
|
7669
|
-
const createResourceParams$C = /*#__PURE__*/ createResourceParams
|
|
7981
|
+
const createResourceParams$C = /*#__PURE__*/ createResourceParams$$(updateFollowedAsset_ConfigPropertyMetadata);
|
|
7670
7982
|
function typeCheckConfig$C(untrustedConfig) {
|
|
7671
7983
|
const config = {};
|
|
7672
|
-
typeCheckConfig
|
|
7984
|
+
typeCheckConfig$$(untrustedConfig, config, updateFollowedAsset_ConfigPropertyMetadata);
|
|
7673
7985
|
const untrustedConfig_followedTimeRange = untrustedConfig.followedTimeRange;
|
|
7674
7986
|
const referenceFollowedTimeRangeRepresentationValidationError = validate$D(untrustedConfig_followedTimeRange);
|
|
7675
7987
|
if (referenceFollowedTimeRangeRepresentationValidationError === null) {
|
|
@@ -7854,10 +8166,10 @@ const unfollow_ConfigPropertyMetadata = [
|
|
|
7854
8166
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7855
8167
|
];
|
|
7856
8168
|
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, unfollow_ConfigPropertyMetadata);
|
|
7857
|
-
const createResourceParams$B = /*#__PURE__*/ createResourceParams
|
|
8169
|
+
const createResourceParams$B = /*#__PURE__*/ createResourceParams$$(unfollow_ConfigPropertyMetadata);
|
|
7858
8170
|
function typeCheckConfig$B(untrustedConfig) {
|
|
7859
8171
|
const config = {};
|
|
7860
|
-
typeCheckConfig
|
|
8172
|
+
typeCheckConfig$$(untrustedConfig, config, unfollow_ConfigPropertyMetadata);
|
|
7861
8173
|
return config;
|
|
7862
8174
|
}
|
|
7863
8175
|
function validateAdapterConfig$B(untrustedConfig, configPropertyNames) {
|
|
@@ -8028,14 +8340,14 @@ const getFollowers_ConfigPropertyMetadata = [
|
|
|
8028
8340
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
8029
8341
|
];
|
|
8030
8342
|
const getFollowers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, getFollowers_ConfigPropertyMetadata);
|
|
8031
|
-
const createResourceParams$A = /*#__PURE__*/ createResourceParams
|
|
8343
|
+
const createResourceParams$A = /*#__PURE__*/ createResourceParams$$(getFollowers_ConfigPropertyMetadata);
|
|
8032
8344
|
function keyBuilder$Q(luvio, config) {
|
|
8033
8345
|
const resourceParams = createResourceParams$A(config);
|
|
8034
8346
|
return keyBuilder$R(luvio, resourceParams);
|
|
8035
8347
|
}
|
|
8036
8348
|
function typeCheckConfig$A(untrustedConfig) {
|
|
8037
8349
|
const config = {};
|
|
8038
|
-
typeCheckConfig
|
|
8350
|
+
typeCheckConfig$$(untrustedConfig, config, getFollowers_ConfigPropertyMetadata);
|
|
8039
8351
|
return config;
|
|
8040
8352
|
}
|
|
8041
8353
|
function validateAdapterConfig$A(untrustedConfig, configPropertyNames) {
|
|
@@ -8084,7 +8396,7 @@ function buildNetworkSnapshot$A(luvio, config, options) {
|
|
|
8084
8396
|
});
|
|
8085
8397
|
}
|
|
8086
8398
|
function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
|
|
8087
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8399
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$A, undefined, false);
|
|
8088
8400
|
}
|
|
8089
8401
|
function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
8090
8402
|
const { luvio, config } = context;
|
|
@@ -8234,14 +8546,14 @@ const getFollowedAssets_ConfigPropertyMetadata = [
|
|
|
8234
8546
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
8235
8547
|
];
|
|
8236
8548
|
const getFollowedAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, getFollowedAssets_ConfigPropertyMetadata);
|
|
8237
|
-
const createResourceParams$z = /*#__PURE__*/ createResourceParams
|
|
8549
|
+
const createResourceParams$z = /*#__PURE__*/ createResourceParams$$(getFollowedAssets_ConfigPropertyMetadata);
|
|
8238
8550
|
function keyBuilder$O(luvio, config) {
|
|
8239
8551
|
const resourceParams = createResourceParams$z(config);
|
|
8240
8552
|
return keyBuilder$P(luvio, resourceParams);
|
|
8241
8553
|
}
|
|
8242
8554
|
function typeCheckConfig$z(untrustedConfig) {
|
|
8243
8555
|
const config = {};
|
|
8244
|
-
typeCheckConfig
|
|
8556
|
+
typeCheckConfig$$(untrustedConfig, config, getFollowedAssets_ConfigPropertyMetadata);
|
|
8245
8557
|
return config;
|
|
8246
8558
|
}
|
|
8247
8559
|
function validateAdapterConfig$z(untrustedConfig, configPropertyNames) {
|
|
@@ -8290,7 +8602,7 @@ function buildNetworkSnapshot$z(luvio, config, options) {
|
|
|
8290
8602
|
});
|
|
8291
8603
|
}
|
|
8292
8604
|
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
8293
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8605
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$z, undefined, false);
|
|
8294
8606
|
}
|
|
8295
8607
|
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
8296
8608
|
const { luvio, config } = context;
|
|
@@ -8428,14 +8740,14 @@ const getUniqueFollowerCount_ConfigPropertyMetadata = [
|
|
|
8428
8740
|
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
8429
8741
|
];
|
|
8430
8742
|
const getUniqueFollowerCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
8431
|
-
const createResourceParams$y = /*#__PURE__*/ createResourceParams
|
|
8743
|
+
const createResourceParams$y = /*#__PURE__*/ createResourceParams$$(getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
8432
8744
|
function keyBuilder$M(luvio, config) {
|
|
8433
8745
|
const resourceParams = createResourceParams$y(config);
|
|
8434
8746
|
return keyBuilder$N(luvio, resourceParams);
|
|
8435
8747
|
}
|
|
8436
8748
|
function typeCheckConfig$y(untrustedConfig) {
|
|
8437
8749
|
const config = {};
|
|
8438
|
-
typeCheckConfig
|
|
8750
|
+
typeCheckConfig$$(untrustedConfig, config, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
8439
8751
|
return config;
|
|
8440
8752
|
}
|
|
8441
8753
|
function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
|
|
@@ -8484,7 +8796,7 @@ function buildNetworkSnapshot$y(luvio, config, options) {
|
|
|
8484
8796
|
});
|
|
8485
8797
|
}
|
|
8486
8798
|
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
8487
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8799
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$y, undefined, false);
|
|
8488
8800
|
}
|
|
8489
8801
|
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
8490
8802
|
const { luvio, config } = context;
|
|
@@ -8625,7 +8937,7 @@ const createLoglines_ConfigPropertyMetadata = [
|
|
|
8625
8937
|
generateParamConfigMetadata('loglines', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
8626
8938
|
];
|
|
8627
8939
|
const createLoglines_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, createLoglines_ConfigPropertyMetadata);
|
|
8628
|
-
const createResourceParams$x = /*#__PURE__*/ createResourceParams
|
|
8940
|
+
const createResourceParams$x = /*#__PURE__*/ createResourceParams$$(createLoglines_ConfigPropertyMetadata);
|
|
8629
8941
|
function typeCheckConfig$x(untrustedConfig) {
|
|
8630
8942
|
const config = {};
|
|
8631
8943
|
const untrustedConfig_loglines = untrustedConfig.loglines;
|
|
@@ -8838,7 +9150,7 @@ function createResourceRequest$w(config) {
|
|
|
8838
9150
|
const adapterName$w = 'getOrg';
|
|
8839
9151
|
const getOrg_ConfigPropertyMetadata = [];
|
|
8840
9152
|
const getOrg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, getOrg_ConfigPropertyMetadata);
|
|
8841
|
-
const createResourceParams$w = /*#__PURE__*/ createResourceParams
|
|
9153
|
+
const createResourceParams$w = /*#__PURE__*/ createResourceParams$$(getOrg_ConfigPropertyMetadata);
|
|
8842
9154
|
function keyBuilder$J(luvio, config) {
|
|
8843
9155
|
createResourceParams$w(config);
|
|
8844
9156
|
return keyBuilder$K();
|
|
@@ -8893,7 +9205,7 @@ function buildNetworkSnapshot$w(luvio, config, options) {
|
|
|
8893
9205
|
});
|
|
8894
9206
|
}
|
|
8895
9207
|
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
8896
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9208
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$w, undefined, false);
|
|
8897
9209
|
}
|
|
8898
9210
|
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
8899
9211
|
const { luvio, config } = context;
|
|
@@ -9210,10 +9522,10 @@ const deleteAllShares_ConfigPropertyMetadata = [
|
|
|
9210
9522
|
generateParamConfigMetadata('filterByRecipientType', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
9211
9523
|
];
|
|
9212
9524
|
const deleteAllShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, deleteAllShares_ConfigPropertyMetadata);
|
|
9213
|
-
const createResourceParams$v = /*#__PURE__*/ createResourceParams
|
|
9525
|
+
const createResourceParams$v = /*#__PURE__*/ createResourceParams$$(deleteAllShares_ConfigPropertyMetadata);
|
|
9214
9526
|
function typeCheckConfig$v(untrustedConfig) {
|
|
9215
9527
|
const config = {};
|
|
9216
|
-
typeCheckConfig
|
|
9528
|
+
typeCheckConfig$$(untrustedConfig, config, deleteAllShares_ConfigPropertyMetadata);
|
|
9217
9529
|
const untrustedConfig_userOrGroupId = untrustedConfig.userOrGroupId;
|
|
9218
9530
|
if (typeof untrustedConfig_userOrGroupId === 'string') {
|
|
9219
9531
|
config.userOrGroupId = untrustedConfig_userOrGroupId;
|
|
@@ -9336,14 +9648,14 @@ const getShares_ConfigPropertyMetadata = [
|
|
|
9336
9648
|
generateParamConfigMetadata('recipientSearchTerm', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9337
9649
|
];
|
|
9338
9650
|
const getShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, getShares_ConfigPropertyMetadata);
|
|
9339
|
-
const createResourceParams$u = /*#__PURE__*/ createResourceParams
|
|
9651
|
+
const createResourceParams$u = /*#__PURE__*/ createResourceParams$$(getShares_ConfigPropertyMetadata);
|
|
9340
9652
|
function keyBuilder$E(luvio, config) {
|
|
9341
9653
|
const resourceParams = createResourceParams$u(config);
|
|
9342
9654
|
return keyBuilder$F(luvio, resourceParams);
|
|
9343
9655
|
}
|
|
9344
9656
|
function typeCheckConfig$u(untrustedConfig) {
|
|
9345
9657
|
const config = {};
|
|
9346
|
-
typeCheckConfig
|
|
9658
|
+
typeCheckConfig$$(untrustedConfig, config, getShares_ConfigPropertyMetadata);
|
|
9347
9659
|
return config;
|
|
9348
9660
|
}
|
|
9349
9661
|
function validateAdapterConfig$u(untrustedConfig, configPropertyNames) {
|
|
@@ -9392,7 +9704,7 @@ function buildNetworkSnapshot$u(luvio, config, options) {
|
|
|
9392
9704
|
});
|
|
9393
9705
|
}
|
|
9394
9706
|
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
9395
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9707
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$u, undefined, false);
|
|
9396
9708
|
}
|
|
9397
9709
|
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
9398
9710
|
const { luvio, config } = context;
|
|
@@ -9633,10 +9945,10 @@ const updateRecordShares_ConfigPropertyMetadata = [
|
|
|
9633
9945
|
generateParamConfigMetadata('updateSetupRecordAccessItems', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9634
9946
|
];
|
|
9635
9947
|
const updateRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, updateRecordShares_ConfigPropertyMetadata);
|
|
9636
|
-
const createResourceParams$t = /*#__PURE__*/ createResourceParams
|
|
9948
|
+
const createResourceParams$t = /*#__PURE__*/ createResourceParams$$(updateRecordShares_ConfigPropertyMetadata);
|
|
9637
9949
|
function typeCheckConfig$t(untrustedConfig) {
|
|
9638
9950
|
const config = {};
|
|
9639
|
-
typeCheckConfig
|
|
9951
|
+
typeCheckConfig$$(untrustedConfig, config, updateRecordShares_ConfigPropertyMetadata);
|
|
9640
9952
|
const untrustedConfig_updateSetupRecordAccessItems = untrustedConfig.updateSetupRecordAccessItems;
|
|
9641
9953
|
if (ArrayIsArray$1(untrustedConfig_updateSetupRecordAccessItems)) {
|
|
9642
9954
|
const untrustedConfig_updateSetupRecordAccessItems_array = [];
|
|
@@ -9734,10 +10046,10 @@ const createRecordShares_ConfigPropertyMetadata = [
|
|
|
9734
10046
|
generateParamConfigMetadata('sendNotificationToRecipients', false, 2 /* Body */, 1 /* Boolean */),
|
|
9735
10047
|
];
|
|
9736
10048
|
const createRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, createRecordShares_ConfigPropertyMetadata);
|
|
9737
|
-
const createResourceParams$s = /*#__PURE__*/ createResourceParams
|
|
10049
|
+
const createResourceParams$s = /*#__PURE__*/ createResourceParams$$(createRecordShares_ConfigPropertyMetadata);
|
|
9738
10050
|
function typeCheckConfig$s(untrustedConfig) {
|
|
9739
10051
|
const config = {};
|
|
9740
|
-
typeCheckConfig
|
|
10052
|
+
typeCheckConfig$$(untrustedConfig, config, createRecordShares_ConfigPropertyMetadata);
|
|
9741
10053
|
const untrustedConfig_accessRequestItems = untrustedConfig.accessRequestItems;
|
|
9742
10054
|
if (ArrayIsArray$1(untrustedConfig_accessRequestItems)) {
|
|
9743
10055
|
const untrustedConfig_accessRequestItems_array = [];
|
|
@@ -9829,10 +10141,10 @@ const deleteRecordShare_ConfigPropertyMetadata = [
|
|
|
9829
10141
|
generateParamConfigMetadata('userOrGroupId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9830
10142
|
];
|
|
9831
10143
|
const deleteRecordShare_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, deleteRecordShare_ConfigPropertyMetadata);
|
|
9832
|
-
const createResourceParams$r = /*#__PURE__*/ createResourceParams
|
|
10144
|
+
const createResourceParams$r = /*#__PURE__*/ createResourceParams$$(deleteRecordShare_ConfigPropertyMetadata);
|
|
9833
10145
|
function typeCheckConfig$r(untrustedConfig) {
|
|
9834
10146
|
const config = {};
|
|
9835
|
-
typeCheckConfig
|
|
10147
|
+
typeCheckConfig$$(untrustedConfig, config, deleteRecordShare_ConfigPropertyMetadata);
|
|
9836
10148
|
return config;
|
|
9837
10149
|
}
|
|
9838
10150
|
function validateAdapterConfig$r(untrustedConfig, configPropertyNames) {
|
|
@@ -10157,14 +10469,14 @@ const getAssetSlackChannels_ConfigPropertyMetadata = [
|
|
|
10157
10469
|
generateParamConfigMetadata('assetId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
10158
10470
|
];
|
|
10159
10471
|
const getAssetSlackChannels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
10160
|
-
const createResourceParams$q = /*#__PURE__*/ createResourceParams
|
|
10472
|
+
const createResourceParams$q = /*#__PURE__*/ createResourceParams$$(getAssetSlackChannels_ConfigPropertyMetadata);
|
|
10161
10473
|
function keyBuilder$z(luvio, config) {
|
|
10162
10474
|
const resourceParams = createResourceParams$q(config);
|
|
10163
10475
|
return keyBuilder$A(luvio, resourceParams);
|
|
10164
10476
|
}
|
|
10165
10477
|
function typeCheckConfig$q(untrustedConfig) {
|
|
10166
10478
|
const config = {};
|
|
10167
|
-
typeCheckConfig
|
|
10479
|
+
typeCheckConfig$$(untrustedConfig, config, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
10168
10480
|
return config;
|
|
10169
10481
|
}
|
|
10170
10482
|
function validateAdapterConfig$q(untrustedConfig, configPropertyNames) {
|
|
@@ -10213,7 +10525,7 @@ function buildNetworkSnapshot$q(luvio, config, options) {
|
|
|
10213
10525
|
});
|
|
10214
10526
|
}
|
|
10215
10527
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
10216
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10528
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$q, undefined, false);
|
|
10217
10529
|
}
|
|
10218
10530
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
10219
10531
|
const { luvio, config } = context;
|
|
@@ -10282,10 +10594,10 @@ const createAssetSlackChannel_ConfigPropertyMetadata = [
|
|
|
10282
10594
|
generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
|
|
10283
10595
|
];
|
|
10284
10596
|
const createAssetSlackChannel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
10285
|
-
const createResourceParams$p = /*#__PURE__*/ createResourceParams
|
|
10597
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$$(createAssetSlackChannel_ConfigPropertyMetadata);
|
|
10286
10598
|
function typeCheckConfig$p(untrustedConfig) {
|
|
10287
10599
|
const config = {};
|
|
10288
|
-
typeCheckConfig
|
|
10600
|
+
typeCheckConfig$$(untrustedConfig, config, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
10289
10601
|
return config;
|
|
10290
10602
|
}
|
|
10291
10603
|
function validateAdapterConfig$p(untrustedConfig, configPropertyNames) {
|
|
@@ -10465,10 +10777,10 @@ const queryUsers_ConfigPropertyMetadata = [
|
|
|
10465
10777
|
generateParamConfigMetadata('offset', false, 2 /* Body */, 3 /* Integer */),
|
|
10466
10778
|
];
|
|
10467
10779
|
const queryUsers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, queryUsers_ConfigPropertyMetadata);
|
|
10468
|
-
const createResourceParams$o = /*#__PURE__*/ createResourceParams
|
|
10780
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$$(queryUsers_ConfigPropertyMetadata);
|
|
10469
10781
|
function typeCheckConfig$o(untrustedConfig) {
|
|
10470
10782
|
const config = {};
|
|
10471
|
-
typeCheckConfig
|
|
10783
|
+
typeCheckConfig$$(untrustedConfig, config, queryUsers_ConfigPropertyMetadata);
|
|
10472
10784
|
return config;
|
|
10473
10785
|
}
|
|
10474
10786
|
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
@@ -10826,14 +11138,14 @@ const getVisualizations_ConfigPropertyMetadata = [
|
|
|
10826
11138
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
10827
11139
|
];
|
|
10828
11140
|
const getVisualizations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, getVisualizations_ConfigPropertyMetadata);
|
|
10829
|
-
const createResourceParams$n = /*#__PURE__*/ createResourceParams
|
|
11141
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$$(getVisualizations_ConfigPropertyMetadata);
|
|
10830
11142
|
function keyBuilder$v(luvio, config) {
|
|
10831
11143
|
const resourceParams = createResourceParams$n(config);
|
|
10832
11144
|
return keyBuilder$w(luvio, resourceParams);
|
|
10833
11145
|
}
|
|
10834
11146
|
function typeCheckConfig$n(untrustedConfig) {
|
|
10835
11147
|
const config = {};
|
|
10836
|
-
typeCheckConfig
|
|
11148
|
+
typeCheckConfig$$(untrustedConfig, config, getVisualizations_ConfigPropertyMetadata);
|
|
10837
11149
|
return config;
|
|
10838
11150
|
}
|
|
10839
11151
|
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
@@ -10882,7 +11194,7 @@ function buildNetworkSnapshot$n(luvio, config, options) {
|
|
|
10882
11194
|
});
|
|
10883
11195
|
}
|
|
10884
11196
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
10885
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11197
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$n, undefined, false);
|
|
10886
11198
|
}
|
|
10887
11199
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
10888
11200
|
const { luvio, config } = context;
|
|
@@ -11165,10 +11477,10 @@ const createVisualization_ConfigPropertyMetadata = [
|
|
|
11165
11477
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11166
11478
|
];
|
|
11167
11479
|
const createVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, createVisualization_ConfigPropertyMetadata);
|
|
11168
|
-
const createResourceParams$m = /*#__PURE__*/ createResourceParams
|
|
11480
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$$(createVisualization_ConfigPropertyMetadata);
|
|
11169
11481
|
function typeCheckConfig$m(untrustedConfig) {
|
|
11170
11482
|
const config = {};
|
|
11171
|
-
typeCheckConfig
|
|
11483
|
+
typeCheckConfig$$(untrustedConfig, config, createVisualization_ConfigPropertyMetadata);
|
|
11172
11484
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
11173
11485
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
11174
11486
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -11333,10 +11645,10 @@ const deleteVisualization_ConfigPropertyMetadata = [
|
|
|
11333
11645
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11334
11646
|
];
|
|
11335
11647
|
const deleteVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, deleteVisualization_ConfigPropertyMetadata);
|
|
11336
|
-
const createResourceParams$l = /*#__PURE__*/ createResourceParams
|
|
11648
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$$(deleteVisualization_ConfigPropertyMetadata);
|
|
11337
11649
|
function typeCheckConfig$l(untrustedConfig) {
|
|
11338
11650
|
const config = {};
|
|
11339
|
-
typeCheckConfig
|
|
11651
|
+
typeCheckConfig$$(untrustedConfig, config, deleteVisualization_ConfigPropertyMetadata);
|
|
11340
11652
|
return config;
|
|
11341
11653
|
}
|
|
11342
11654
|
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
@@ -11435,14 +11747,14 @@ const getVisualization_ConfigPropertyMetadata = [
|
|
|
11435
11747
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
11436
11748
|
];
|
|
11437
11749
|
const getVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getVisualization_ConfigPropertyMetadata);
|
|
11438
|
-
const createResourceParams$k = /*#__PURE__*/ createResourceParams
|
|
11750
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$$(getVisualization_ConfigPropertyMetadata);
|
|
11439
11751
|
function keyBuilder$r(luvio, config) {
|
|
11440
11752
|
const resourceParams = createResourceParams$k(config);
|
|
11441
11753
|
return keyBuilder$s(luvio, resourceParams);
|
|
11442
11754
|
}
|
|
11443
11755
|
function typeCheckConfig$k(untrustedConfig) {
|
|
11444
11756
|
const config = {};
|
|
11445
|
-
typeCheckConfig
|
|
11757
|
+
typeCheckConfig$$(untrustedConfig, config, getVisualization_ConfigPropertyMetadata);
|
|
11446
11758
|
return config;
|
|
11447
11759
|
}
|
|
11448
11760
|
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
@@ -11491,7 +11803,7 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
11491
11803
|
});
|
|
11492
11804
|
}
|
|
11493
11805
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
11494
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11806
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
11495
11807
|
}
|
|
11496
11808
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
11497
11809
|
const { luvio, config } = context;
|
|
@@ -11569,10 +11881,10 @@ const updateVisualization_ConfigPropertyMetadata = [
|
|
|
11569
11881
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11570
11882
|
];
|
|
11571
11883
|
const updateVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, updateVisualization_ConfigPropertyMetadata);
|
|
11572
|
-
const createResourceParams$j = /*#__PURE__*/ createResourceParams
|
|
11884
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$$(updateVisualization_ConfigPropertyMetadata);
|
|
11573
11885
|
function typeCheckConfig$j(untrustedConfig) {
|
|
11574
11886
|
const config = {};
|
|
11575
|
-
typeCheckConfig
|
|
11887
|
+
typeCheckConfig$$(untrustedConfig, config, updateVisualization_ConfigPropertyMetadata);
|
|
11576
11888
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
11577
11889
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
11578
11890
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -11837,14 +12149,14 @@ const getVisualizationBundle_ConfigPropertyMetadata = [
|
|
|
11837
12149
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
11838
12150
|
];
|
|
11839
12151
|
const getVisualizationBundle_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getVisualizationBundle_ConfigPropertyMetadata);
|
|
11840
|
-
const createResourceParams$i = /*#__PURE__*/ createResourceParams
|
|
12152
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$$(getVisualizationBundle_ConfigPropertyMetadata);
|
|
11841
12153
|
function keyBuilder$o(luvio, config) {
|
|
11842
12154
|
const resourceParams = createResourceParams$i(config);
|
|
11843
12155
|
return keyBuilder$p(luvio, resourceParams);
|
|
11844
12156
|
}
|
|
11845
12157
|
function typeCheckConfig$i(untrustedConfig) {
|
|
11846
12158
|
const config = {};
|
|
11847
|
-
typeCheckConfig
|
|
12159
|
+
typeCheckConfig$$(untrustedConfig, config, getVisualizationBundle_ConfigPropertyMetadata);
|
|
11848
12160
|
return config;
|
|
11849
12161
|
}
|
|
11850
12162
|
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
@@ -11893,7 +12205,7 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
11893
12205
|
});
|
|
11894
12206
|
}
|
|
11895
12207
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
11896
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12208
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
11897
12209
|
}
|
|
11898
12210
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
11899
12211
|
const { luvio, config } = context;
|
|
@@ -12182,14 +12494,14 @@ const getWorkspaces_ConfigPropertyMetadata = [
|
|
|
12182
12494
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
12183
12495
|
];
|
|
12184
12496
|
const getWorkspaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getWorkspaces_ConfigPropertyMetadata);
|
|
12185
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams
|
|
12497
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$$(getWorkspaces_ConfigPropertyMetadata);
|
|
12186
12498
|
function keyBuilder$l(luvio, config) {
|
|
12187
12499
|
const resourceParams = createResourceParams$h(config);
|
|
12188
12500
|
return keyBuilder$m(luvio, resourceParams);
|
|
12189
12501
|
}
|
|
12190
12502
|
function typeCheckConfig$h(untrustedConfig) {
|
|
12191
12503
|
const config = {};
|
|
12192
|
-
typeCheckConfig
|
|
12504
|
+
typeCheckConfig$$(untrustedConfig, config, getWorkspaces_ConfigPropertyMetadata);
|
|
12193
12505
|
return config;
|
|
12194
12506
|
}
|
|
12195
12507
|
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
@@ -12238,7 +12550,7 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
12238
12550
|
});
|
|
12239
12551
|
}
|
|
12240
12552
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
12241
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12553
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
12242
12554
|
}
|
|
12243
12555
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
12244
12556
|
const { luvio, config } = context;
|
|
@@ -12308,10 +12620,10 @@ const createWorkspace_ConfigPropertyMetadata = [
|
|
|
12308
12620
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
12309
12621
|
];
|
|
12310
12622
|
const createWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, createWorkspace_ConfigPropertyMetadata);
|
|
12311
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams
|
|
12623
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$$(createWorkspace_ConfigPropertyMetadata);
|
|
12312
12624
|
function typeCheckConfig$g(untrustedConfig) {
|
|
12313
12625
|
const config = {};
|
|
12314
|
-
typeCheckConfig
|
|
12626
|
+
typeCheckConfig$$(untrustedConfig, config, createWorkspace_ConfigPropertyMetadata);
|
|
12315
12627
|
return config;
|
|
12316
12628
|
}
|
|
12317
12629
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -12392,10 +12704,10 @@ const deleteWorkspace_ConfigPropertyMetadata = [
|
|
|
12392
12704
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12393
12705
|
];
|
|
12394
12706
|
const deleteWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, deleteWorkspace_ConfigPropertyMetadata);
|
|
12395
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams
|
|
12707
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$$(deleteWorkspace_ConfigPropertyMetadata);
|
|
12396
12708
|
function typeCheckConfig$f(untrustedConfig) {
|
|
12397
12709
|
const config = {};
|
|
12398
|
-
typeCheckConfig
|
|
12710
|
+
typeCheckConfig$$(untrustedConfig, config, deleteWorkspace_ConfigPropertyMetadata);
|
|
12399
12711
|
return config;
|
|
12400
12712
|
}
|
|
12401
12713
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -12493,14 +12805,14 @@ const getWorkspaceByIdOrName_ConfigPropertyMetadata = [
|
|
|
12493
12805
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12494
12806
|
];
|
|
12495
12807
|
const getWorkspaceByIdOrName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
12496
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams
|
|
12808
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$$(getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
12497
12809
|
function keyBuilder$i(luvio, config) {
|
|
12498
12810
|
const resourceParams = createResourceParams$e(config);
|
|
12499
12811
|
return keyBuilder$j(luvio, resourceParams);
|
|
12500
12812
|
}
|
|
12501
12813
|
function typeCheckConfig$e(untrustedConfig) {
|
|
12502
12814
|
const config = {};
|
|
12503
|
-
typeCheckConfig
|
|
12815
|
+
typeCheckConfig$$(untrustedConfig, config, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
12504
12816
|
return config;
|
|
12505
12817
|
}
|
|
12506
12818
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -12549,7 +12861,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
12549
12861
|
});
|
|
12550
12862
|
}
|
|
12551
12863
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
12552
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12864
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
12553
12865
|
}
|
|
12554
12866
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
12555
12867
|
const { luvio, config } = context;
|
|
@@ -12620,10 +12932,10 @@ const updateWorkspace_ConfigPropertyMetadata = [
|
|
|
12620
12932
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
12621
12933
|
];
|
|
12622
12934
|
const updateWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, updateWorkspace_ConfigPropertyMetadata);
|
|
12623
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams
|
|
12935
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$$(updateWorkspace_ConfigPropertyMetadata);
|
|
12624
12936
|
function typeCheckConfig$d(untrustedConfig) {
|
|
12625
12937
|
const config = {};
|
|
12626
|
-
typeCheckConfig
|
|
12938
|
+
typeCheckConfig$$(untrustedConfig, config, updateWorkspace_ConfigPropertyMetadata);
|
|
12627
12939
|
return config;
|
|
12628
12940
|
}
|
|
12629
12941
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -12804,10 +13116,10 @@ const createWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
12804
13116
|
generateParamConfigMetadata('assetUsageType', true, 2 /* Body */, 0 /* String */),
|
|
12805
13117
|
];
|
|
12806
13118
|
const createWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
12807
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams
|
|
13119
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$$(createWorkspaceAsset_ConfigPropertyMetadata);
|
|
12808
13120
|
function typeCheckConfig$c(untrustedConfig) {
|
|
12809
13121
|
const config = {};
|
|
12810
|
-
typeCheckConfig
|
|
13122
|
+
typeCheckConfig$$(untrustedConfig, config, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
12811
13123
|
return config;
|
|
12812
13124
|
}
|
|
12813
13125
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -12889,10 +13201,10 @@ const deleteWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
12889
13201
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12890
13202
|
];
|
|
12891
13203
|
const deleteWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
12892
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams
|
|
13204
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$$(deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
12893
13205
|
function typeCheckConfig$b(untrustedConfig) {
|
|
12894
13206
|
const config = {};
|
|
12895
|
-
typeCheckConfig
|
|
13207
|
+
typeCheckConfig$$(untrustedConfig, config, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
12896
13208
|
return config;
|
|
12897
13209
|
}
|
|
12898
13210
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -13277,14 +13589,14 @@ const getFlows_ConfigPropertyMetadata = [
|
|
|
13277
13589
|
generateParamConfigMetadata('searchTerm', false, 1 /* QueryParameter */, 0 /* String */),
|
|
13278
13590
|
];
|
|
13279
13591
|
const getFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getFlows_ConfigPropertyMetadata);
|
|
13280
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams
|
|
13592
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$$(getFlows_ConfigPropertyMetadata);
|
|
13281
13593
|
function keyBuilder$e(luvio, config) {
|
|
13282
13594
|
const resourceParams = createResourceParams$a(config);
|
|
13283
13595
|
return keyBuilder$f(luvio, resourceParams);
|
|
13284
13596
|
}
|
|
13285
13597
|
function typeCheckConfig$a(untrustedConfig) {
|
|
13286
13598
|
const config = {};
|
|
13287
|
-
typeCheckConfig
|
|
13599
|
+
typeCheckConfig$$(untrustedConfig, config, getFlows_ConfigPropertyMetadata);
|
|
13288
13600
|
return config;
|
|
13289
13601
|
}
|
|
13290
13602
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -13333,7 +13645,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
13333
13645
|
});
|
|
13334
13646
|
}
|
|
13335
13647
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
13336
|
-
return buildNetworkSnapshotCachePolicy$
|
|
13648
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
13337
13649
|
}
|
|
13338
13650
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
13339
13651
|
const { luvio, config } = context;
|
|
@@ -13409,14 +13721,14 @@ const getFlowByName_ConfigPropertyMetadata = [
|
|
|
13409
13721
|
generateParamConfigMetadata('flowApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13410
13722
|
];
|
|
13411
13723
|
const getFlowByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getFlowByName_ConfigPropertyMetadata);
|
|
13412
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams
|
|
13724
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$$(getFlowByName_ConfigPropertyMetadata);
|
|
13413
13725
|
function keyBuilder$c(luvio, config) {
|
|
13414
13726
|
const resourceParams = createResourceParams$9(config);
|
|
13415
13727
|
return keyBuilder$d(luvio, resourceParams);
|
|
13416
13728
|
}
|
|
13417
13729
|
function typeCheckConfig$9(untrustedConfig) {
|
|
13418
13730
|
const config = {};
|
|
13419
|
-
typeCheckConfig
|
|
13731
|
+
typeCheckConfig$$(untrustedConfig, config, getFlowByName_ConfigPropertyMetadata);
|
|
13420
13732
|
return config;
|
|
13421
13733
|
}
|
|
13422
13734
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -13465,7 +13777,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
13465
13777
|
});
|
|
13466
13778
|
}
|
|
13467
13779
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
13468
|
-
return buildNetworkSnapshotCachePolicy$
|
|
13780
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
13469
13781
|
}
|
|
13470
13782
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
13471
13783
|
const { luvio, config } = context;
|
|
@@ -13623,14 +13935,14 @@ const getSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
13623
13935
|
generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13624
13936
|
];
|
|
13625
13937
|
const getSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13626
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams
|
|
13938
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$$(getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13627
13939
|
function keyBuilder$9(luvio, config) {
|
|
13628
13940
|
const resourceParams = createResourceParams$8(config);
|
|
13629
13941
|
return keyBuilder$a(luvio, resourceParams);
|
|
13630
13942
|
}
|
|
13631
13943
|
function typeCheckConfig$8(untrustedConfig) {
|
|
13632
13944
|
const config = {};
|
|
13633
|
-
typeCheckConfig
|
|
13945
|
+
typeCheckConfig$$(untrustedConfig, config, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13634
13946
|
return config;
|
|
13635
13947
|
}
|
|
13636
13948
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -13679,7 +13991,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
13679
13991
|
});
|
|
13680
13992
|
}
|
|
13681
13993
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
13682
|
-
return buildNetworkSnapshotCachePolicy$
|
|
13994
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
13683
13995
|
}
|
|
13684
13996
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
13685
13997
|
const { luvio, config } = context;
|
|
@@ -13748,10 +14060,10 @@ const updateSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
13748
14060
|
generateParamConfigMetadata('scheduleType', true, 2 /* Body */, 0 /* String */),
|
|
13749
14061
|
];
|
|
13750
14062
|
const updateSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13751
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams
|
|
14063
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$$(updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13752
14064
|
function typeCheckConfig$7(untrustedConfig) {
|
|
13753
14065
|
const config = {};
|
|
13754
|
-
typeCheckConfig
|
|
14066
|
+
typeCheckConfig$$(untrustedConfig, config, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13755
14067
|
return config;
|
|
13756
14068
|
}
|
|
13757
14069
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -13983,10 +14295,10 @@ const getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata = [
|
|
|
13983
14295
|
generateParamConfigMetadata('sortDirection', false, 2 /* Body */, 0 /* String */),
|
|
13984
14296
|
];
|
|
13985
14297
|
const getUnifiedAnalyticsLibraryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
13986
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams
|
|
14298
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$$(getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
13987
14299
|
function typeCheckConfig$6(untrustedConfig) {
|
|
13988
14300
|
const config = {};
|
|
13989
|
-
typeCheckConfig
|
|
14301
|
+
typeCheckConfig$$(untrustedConfig, config, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
13990
14302
|
const untrustedConfig_assetTypes = untrustedConfig.assetTypes;
|
|
13991
14303
|
if (ArrayIsArray$1(untrustedConfig_assetTypes)) {
|
|
13992
14304
|
const untrustedConfig_assetTypes_array = [];
|
|
@@ -14218,10 +14530,10 @@ const generateSFDriveCredentials_ConfigPropertyMetadata = [
|
|
|
14218
14530
|
generateParamConfigMetadata('path', true, 2 /* Body */, 0 /* String */),
|
|
14219
14531
|
];
|
|
14220
14532
|
const generateSFDriveCredentials_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
14221
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams
|
|
14533
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$$(generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
14222
14534
|
function typeCheckConfig$5(untrustedConfig) {
|
|
14223
14535
|
const config = {};
|
|
14224
|
-
typeCheckConfig
|
|
14536
|
+
typeCheckConfig$$(untrustedConfig, config, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
14225
14537
|
return config;
|
|
14226
14538
|
}
|
|
14227
14539
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -14392,10 +14704,10 @@ const generateSFDrivePresignedCredentials_ConfigPropertyMetadata = [
|
|
|
14392
14704
|
generateParamConfigMetadata('fileName', true, 2 /* Body */, 0 /* String */),
|
|
14393
14705
|
];
|
|
14394
14706
|
const generateSFDrivePresignedCredentials_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, generateSFDrivePresignedCredentials_ConfigPropertyMetadata);
|
|
14395
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams
|
|
14707
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$$(generateSFDrivePresignedCredentials_ConfigPropertyMetadata);
|
|
14396
14708
|
function typeCheckConfig$4(untrustedConfig) {
|
|
14397
14709
|
const config = {};
|
|
14398
|
-
typeCheckConfig
|
|
14710
|
+
typeCheckConfig$$(untrustedConfig, config, generateSFDrivePresignedCredentials_ConfigPropertyMetadata);
|
|
14399
14711
|
return config;
|
|
14400
14712
|
}
|
|
14401
14713
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -14566,14 +14878,14 @@ const initiateMarketplaceListingInstallation_ConfigPropertyMetadata = [
|
|
|
14566
14878
|
generateParamConfigMetadata('listingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
14567
14879
|
];
|
|
14568
14880
|
const initiateMarketplaceListingInstallation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
14569
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams
|
|
14881
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$$(initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
14570
14882
|
function keyBuilder$4(luvio, config) {
|
|
14571
14883
|
const resourceParams = createResourceParams$3(config);
|
|
14572
14884
|
return keyBuilder$5(luvio, resourceParams);
|
|
14573
14885
|
}
|
|
14574
14886
|
function typeCheckConfig$3(untrustedConfig) {
|
|
14575
14887
|
const config = {};
|
|
14576
|
-
typeCheckConfig
|
|
14888
|
+
typeCheckConfig$$(untrustedConfig, config, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
14577
14889
|
return config;
|
|
14578
14890
|
}
|
|
14579
14891
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -14622,7 +14934,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
14622
14934
|
});
|
|
14623
14935
|
}
|
|
14624
14936
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
14625
|
-
return buildNetworkSnapshotCachePolicy$
|
|
14937
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
14626
14938
|
}
|
|
14627
14939
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
14628
14940
|
const { luvio, config } = context;
|
|
@@ -14800,14 +15112,14 @@ const getMarketplaceListingInstallationProgress_ConfigPropertyMetadata = [
|
|
|
14800
15112
|
generateParamConfigMetadata('installationId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
14801
15113
|
];
|
|
14802
15114
|
const getMarketplaceListingInstallationProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
14803
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams
|
|
15115
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$$(getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
14804
15116
|
function keyBuilder$2(luvio, config) {
|
|
14805
15117
|
const resourceParams = createResourceParams$2(config);
|
|
14806
15118
|
return keyBuilder$3(luvio, resourceParams);
|
|
14807
15119
|
}
|
|
14808
15120
|
function typeCheckConfig$2(untrustedConfig) {
|
|
14809
15121
|
const config = {};
|
|
14810
|
-
typeCheckConfig
|
|
15122
|
+
typeCheckConfig$$(untrustedConfig, config, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
14811
15123
|
return config;
|
|
14812
15124
|
}
|
|
14813
15125
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -14856,7 +15168,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
14856
15168
|
});
|
|
14857
15169
|
}
|
|
14858
15170
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
14859
|
-
return buildNetworkSnapshotCachePolicy$
|
|
15171
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
14860
15172
|
}
|
|
14861
15173
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
14862
15174
|
const { luvio, config } = context;
|
|
@@ -14992,10 +15304,10 @@ const createTemplate_ConfigPropertyMetadata = [
|
|
|
14992
15304
|
generateParamConfigMetadata('tags', true, 2 /* Body */, 4 /* Unsupported */),
|
|
14993
15305
|
];
|
|
14994
15306
|
const createTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createTemplate_ConfigPropertyMetadata);
|
|
14995
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams
|
|
15307
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$$(createTemplate_ConfigPropertyMetadata);
|
|
14996
15308
|
function typeCheckConfig$1(untrustedConfig) {
|
|
14997
15309
|
const config = {};
|
|
14998
|
-
typeCheckConfig
|
|
15310
|
+
typeCheckConfig$$(untrustedConfig, config, createTemplate_ConfigPropertyMetadata);
|
|
14999
15311
|
const untrustedConfig_tags = untrustedConfig.tags;
|
|
15000
15312
|
if (untrustedIsObject(untrustedConfig_tags)) {
|
|
15001
15313
|
const untrustedConfig_tags_object = {};
|
|
@@ -15172,10 +15484,10 @@ const publishToMarketplace_ConfigPropertyMetadata = [
|
|
|
15172
15484
|
generateParamConfigMetadata('assetVersion', false, 2 /* Body */, 2 /* Number */),
|
|
15173
15485
|
];
|
|
15174
15486
|
const publishToMarketplace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, publishToMarketplace_ConfigPropertyMetadata);
|
|
15175
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams
|
|
15487
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$$(publishToMarketplace_ConfigPropertyMetadata);
|
|
15176
15488
|
function typeCheckConfig(untrustedConfig) {
|
|
15177
15489
|
const config = {};
|
|
15178
|
-
typeCheckConfig
|
|
15490
|
+
typeCheckConfig$$(untrustedConfig, config, publishToMarketplace_ConfigPropertyMetadata);
|
|
15179
15491
|
return config;
|
|
15180
15492
|
}
|
|
15181
15493
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -15220,4 +15532,4 @@ const publishToMarketplaceAdapterFactory = (luvio) => {
|
|
|
15220
15532
|
};
|
|
15221
15533
|
};
|
|
15222
15534
|
|
|
15223
|
-
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, getDataAssetRequestByIdOrApiNameAdapterFactory, getDataAssetRequestsAdapterFactory, getDataAssetRequestsCountAdapterFactory, getFlowByNameAdapterFactory, getFlowsAdapterFactory, getFollowedAssetsAdapterFactory, getFollowersAdapterFactory, getMarketplaceListingInstallationProgressAdapterFactory, getOrgAdapterFactory, getSharesAdapterFactory, getSlackAppInfoAdapterFactory, getSubscriptionDigestConfigAdapterFactory, getUnifiedAnalyticsLibraryAssetsAdapterFactory, getUniqueFollowerCountAdapterFactory, getVisualizationAdapterFactory, getVisualizationBundleAdapterFactory, getVisualizationsAdapterFactory, getWorkspaceByIdOrNameAdapterFactory, getWorkspacesAdapterFactory, initiateMarketplaceListingInstallationAdapterFactory, notifyUpdateAvailableFactory as notifySharesUpdateAvailableFactory, postDataAlertRunAdapterFactory, publishAdapterFactory, publishToMarketplaceAdapterFactory, queryAssetsAdapterFactory, queryUsersAdapterFactory, unfollowAdapterFactory, updateDashboardAdapterFactory, updateDataAlertAdapterFactory, updateDataAssetRequestAdapterFactory, updateFollowedAssetAdapterFactory, updateRecordSharesAdapterFactory, updateSubscriptionDigestConfigAdapterFactory, updateVisualizationAdapterFactory, updateWorkspaceAdapterFactory };
|
|
15535
|
+
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, 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 };
|