@salesforce/lds-adapters-analytics-unifiedanalytics 1.404.0-dev20 → 1.404.0-dev22
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/v66.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/v66.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/v66.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/v66.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/v66.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/v66.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/v66.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 */),
|
|
@@ -3206,11 +3206,11 @@ const createDashboard_ConfigPropertyMetadata = [
|
|
|
3206
3206
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3207
3207
|
generateParamConfigMetadata('backgroundSource', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3208
3208
|
];
|
|
3209
|
-
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3210
|
-
const createResourceParams$
|
|
3211
|
-
function typeCheckConfig$
|
|
3209
|
+
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$U, createDashboard_ConfigPropertyMetadata);
|
|
3210
|
+
const createResourceParams$U = /*#__PURE__*/ createResourceParams$$(createDashboard_ConfigPropertyMetadata);
|
|
3211
|
+
function typeCheckConfig$U(untrustedConfig) {
|
|
3212
3212
|
const config = {};
|
|
3213
|
-
typeCheckConfig
|
|
3213
|
+
typeCheckConfig$$(untrustedConfig, config, createDashboard_ConfigPropertyMetadata);
|
|
3214
3214
|
const untrustedConfig_lastModifiedBy = untrustedConfig.lastModifiedBy;
|
|
3215
3215
|
config.lastModifiedBy = untrustedConfig_lastModifiedBy;
|
|
3216
3216
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
@@ -3269,30 +3269,30 @@ function typeCheckConfig$T(untrustedConfig) {
|
|
|
3269
3269
|
}
|
|
3270
3270
|
return config;
|
|
3271
3271
|
}
|
|
3272
|
-
function validateAdapterConfig$
|
|
3272
|
+
function validateAdapterConfig$U(untrustedConfig, configPropertyNames) {
|
|
3273
3273
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3274
3274
|
return null;
|
|
3275
3275
|
}
|
|
3276
3276
|
if (process.env.NODE_ENV !== 'production') {
|
|
3277
3277
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3278
3278
|
}
|
|
3279
|
-
const config = typeCheckConfig$
|
|
3279
|
+
const config = typeCheckConfig$U(untrustedConfig);
|
|
3280
3280
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3281
3281
|
return null;
|
|
3282
3282
|
}
|
|
3283
3283
|
return config;
|
|
3284
3284
|
}
|
|
3285
|
-
function buildNetworkSnapshot$
|
|
3286
|
-
const resourceParams = createResourceParams$
|
|
3287
|
-
const request = createResourceRequest$
|
|
3285
|
+
function buildNetworkSnapshot$U(luvio, config, options) {
|
|
3286
|
+
const resourceParams = createResourceParams$U(config);
|
|
3287
|
+
const request = createResourceRequest$U(resourceParams);
|
|
3288
3288
|
return luvio.dispatchResourceRequest(request, options)
|
|
3289
3289
|
.then((response) => {
|
|
3290
3290
|
return luvio.handleSuccessResponse(() => {
|
|
3291
|
-
const snapshot = ingestSuccess$
|
|
3291
|
+
const snapshot = ingestSuccess$M(luvio, resourceParams, response);
|
|
3292
3292
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3293
3293
|
}, () => {
|
|
3294
3294
|
const cache = new StoreKeyMap();
|
|
3295
|
-
getResponseCacheKeys$
|
|
3295
|
+
getResponseCacheKeys$U(cache, luvio, resourceParams, response.body);
|
|
3296
3296
|
return cache;
|
|
3297
3297
|
});
|
|
3298
3298
|
}, (response) => {
|
|
@@ -3302,33 +3302,33 @@ function buildNetworkSnapshot$T(luvio, config, options) {
|
|
|
3302
3302
|
}
|
|
3303
3303
|
const createDashboardAdapterFactory = (luvio) => {
|
|
3304
3304
|
return function createDashboard(untrustedConfig) {
|
|
3305
|
-
const config = validateAdapterConfig$
|
|
3305
|
+
const config = validateAdapterConfig$U(untrustedConfig, createDashboard_ConfigPropertyNames);
|
|
3306
3306
|
// Invalid or incomplete config
|
|
3307
3307
|
if (config === null) {
|
|
3308
3308
|
throw new Error('Invalid config for "createDashboard"');
|
|
3309
3309
|
}
|
|
3310
|
-
return buildNetworkSnapshot$
|
|
3310
|
+
return buildNetworkSnapshot$U(luvio, config);
|
|
3311
3311
|
};
|
|
3312
3312
|
};
|
|
3313
3313
|
|
|
3314
|
-
function keyBuilder$
|
|
3315
|
-
return keyBuilder$
|
|
3314
|
+
function keyBuilder$1e(luvio, params) {
|
|
3315
|
+
return keyBuilder$1h(luvio, {
|
|
3316
3316
|
name: params.urlParams.dashboardIdOrApiName
|
|
3317
3317
|
});
|
|
3318
3318
|
}
|
|
3319
|
-
function getResponseCacheKeys$
|
|
3320
|
-
const key = keyBuilder$
|
|
3319
|
+
function getResponseCacheKeys$T(cacheKeyMap, luvio, resourceParams) {
|
|
3320
|
+
const key = keyBuilder$1e(luvio, resourceParams);
|
|
3321
3321
|
cacheKeyMap.set(key, {
|
|
3322
3322
|
namespace: keyPrefix,
|
|
3323
|
-
representationName: RepresentationType$
|
|
3323
|
+
representationName: RepresentationType$E,
|
|
3324
3324
|
mergeable: false
|
|
3325
3325
|
});
|
|
3326
3326
|
}
|
|
3327
3327
|
function evictSuccess$7(luvio, resourceParams) {
|
|
3328
|
-
const key = keyBuilder$
|
|
3328
|
+
const key = keyBuilder$1e(luvio, resourceParams);
|
|
3329
3329
|
luvio.storeEvict(key);
|
|
3330
3330
|
}
|
|
3331
|
-
function createResourceRequest$
|
|
3331
|
+
function createResourceRequest$T(config) {
|
|
3332
3332
|
const headers = {};
|
|
3333
3333
|
return {
|
|
3334
3334
|
baseUri: '/services/data/v66.0',
|
|
@@ -3342,33 +3342,33 @@ function createResourceRequest$S(config) {
|
|
|
3342
3342
|
};
|
|
3343
3343
|
}
|
|
3344
3344
|
|
|
3345
|
-
const adapterName$
|
|
3345
|
+
const adapterName$T = 'deleteDashboard';
|
|
3346
3346
|
const deleteDashboard_ConfigPropertyMetadata = [
|
|
3347
3347
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3348
3348
|
];
|
|
3349
|
-
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3350
|
-
const createResourceParams$
|
|
3351
|
-
function typeCheckConfig$
|
|
3349
|
+
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$T, deleteDashboard_ConfigPropertyMetadata);
|
|
3350
|
+
const createResourceParams$T = /*#__PURE__*/ createResourceParams$$(deleteDashboard_ConfigPropertyMetadata);
|
|
3351
|
+
function typeCheckConfig$T(untrustedConfig) {
|
|
3352
3352
|
const config = {};
|
|
3353
|
-
typeCheckConfig
|
|
3353
|
+
typeCheckConfig$$(untrustedConfig, config, deleteDashboard_ConfigPropertyMetadata);
|
|
3354
3354
|
return config;
|
|
3355
3355
|
}
|
|
3356
|
-
function validateAdapterConfig$
|
|
3356
|
+
function validateAdapterConfig$T(untrustedConfig, configPropertyNames) {
|
|
3357
3357
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3358
3358
|
return null;
|
|
3359
3359
|
}
|
|
3360
3360
|
if (process.env.NODE_ENV !== 'production') {
|
|
3361
3361
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3362
3362
|
}
|
|
3363
|
-
const config = typeCheckConfig$
|
|
3363
|
+
const config = typeCheckConfig$T(untrustedConfig);
|
|
3364
3364
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3365
3365
|
return null;
|
|
3366
3366
|
}
|
|
3367
3367
|
return config;
|
|
3368
3368
|
}
|
|
3369
|
-
function buildNetworkSnapshot$
|
|
3370
|
-
const resourceParams = createResourceParams$
|
|
3371
|
-
const request = createResourceRequest$
|
|
3369
|
+
function buildNetworkSnapshot$T(luvio, config, options) {
|
|
3370
|
+
const resourceParams = createResourceParams$T(config);
|
|
3371
|
+
const request = createResourceRequest$T(resourceParams);
|
|
3372
3372
|
return luvio.dispatchResourceRequest(request, options)
|
|
3373
3373
|
.then(() => {
|
|
3374
3374
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3376,7 +3376,7 @@ function buildNetworkSnapshot$S(luvio, config, options) {
|
|
|
3376
3376
|
return luvio.storeBroadcast();
|
|
3377
3377
|
}, () => {
|
|
3378
3378
|
const cache = new StoreKeyMap();
|
|
3379
|
-
getResponseCacheKeys$
|
|
3379
|
+
getResponseCacheKeys$T(cache, luvio, resourceParams);
|
|
3380
3380
|
return cache;
|
|
3381
3381
|
});
|
|
3382
3382
|
}, (response) => {
|
|
@@ -3386,33 +3386,33 @@ function buildNetworkSnapshot$S(luvio, config, options) {
|
|
|
3386
3386
|
}
|
|
3387
3387
|
const deleteDashboardAdapterFactory = (luvio) => {
|
|
3388
3388
|
return function UnifiedAnalyticsdeleteDashboard(untrustedConfig) {
|
|
3389
|
-
const config = validateAdapterConfig$
|
|
3389
|
+
const config = validateAdapterConfig$T(untrustedConfig, deleteDashboard_ConfigPropertyNames);
|
|
3390
3390
|
// Invalid or incomplete config
|
|
3391
3391
|
if (config === null) {
|
|
3392
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3392
|
+
throw new Error(`Invalid config for "${adapterName$T}"`);
|
|
3393
3393
|
}
|
|
3394
|
-
return buildNetworkSnapshot$
|
|
3394
|
+
return buildNetworkSnapshot$T(luvio, config);
|
|
3395
3395
|
};
|
|
3396
3396
|
};
|
|
3397
3397
|
|
|
3398
|
-
function select$
|
|
3399
|
-
return select$
|
|
3398
|
+
function select$1k(luvio, params) {
|
|
3399
|
+
return select$1o();
|
|
3400
3400
|
}
|
|
3401
|
-
function keyBuilder$
|
|
3402
|
-
return keyBuilder$
|
|
3401
|
+
function keyBuilder$1d(luvio, params) {
|
|
3402
|
+
return keyBuilder$1h(luvio, {
|
|
3403
3403
|
name: params.urlParams.dashboardIdOrApiName
|
|
3404
3404
|
});
|
|
3405
3405
|
}
|
|
3406
|
-
function getResponseCacheKeys$
|
|
3407
|
-
getTypeCacheKeys$
|
|
3406
|
+
function getResponseCacheKeys$S(storeKeyMap, luvio, resourceParams, response) {
|
|
3407
|
+
getTypeCacheKeys$C(storeKeyMap, luvio, response);
|
|
3408
3408
|
}
|
|
3409
|
-
function ingestSuccess$
|
|
3409
|
+
function ingestSuccess$L(luvio, resourceParams, response, snapshotRefresh) {
|
|
3410
3410
|
const { body } = response;
|
|
3411
|
-
const key = keyBuilder$
|
|
3412
|
-
luvio.storeIngest(key, ingest$
|
|
3411
|
+
const key = keyBuilder$1d(luvio, resourceParams);
|
|
3412
|
+
luvio.storeIngest(key, ingest$C, body);
|
|
3413
3413
|
const snapshot = luvio.storeLookup({
|
|
3414
3414
|
recordId: key,
|
|
3415
|
-
node: select$
|
|
3415
|
+
node: select$1k(),
|
|
3416
3416
|
variables: {},
|
|
3417
3417
|
}, snapshotRefresh);
|
|
3418
3418
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3423,13 +3423,13 @@ function ingestSuccess$K(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3423
3423
|
deepFreeze(snapshot.data);
|
|
3424
3424
|
return snapshot;
|
|
3425
3425
|
}
|
|
3426
|
-
function ingestError$
|
|
3427
|
-
const key = keyBuilder$
|
|
3426
|
+
function ingestError$n(luvio, params, error, snapshotRefresh) {
|
|
3427
|
+
const key = keyBuilder$1d(luvio, params);
|
|
3428
3428
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3429
3429
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3430
3430
|
return errorSnapshot;
|
|
3431
3431
|
}
|
|
3432
|
-
function createResourceRequest$
|
|
3432
|
+
function createResourceRequest$S(config) {
|
|
3433
3433
|
const headers = {};
|
|
3434
3434
|
return {
|
|
3435
3435
|
baseUri: '/services/data/v66.0',
|
|
@@ -3443,106 +3443,106 @@ function createResourceRequest$R(config) {
|
|
|
3443
3443
|
};
|
|
3444
3444
|
}
|
|
3445
3445
|
|
|
3446
|
-
const adapterName$
|
|
3446
|
+
const adapterName$S = 'getDashboardByName';
|
|
3447
3447
|
const getDashboardByName_ConfigPropertyMetadata = [
|
|
3448
3448
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3449
3449
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3450
3450
|
];
|
|
3451
|
-
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3452
|
-
const createResourceParams$
|
|
3453
|
-
function keyBuilder$
|
|
3454
|
-
const resourceParams = createResourceParams$
|
|
3455
|
-
return keyBuilder$
|
|
3451
|
+
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$S, getDashboardByName_ConfigPropertyMetadata);
|
|
3452
|
+
const createResourceParams$S = /*#__PURE__*/ createResourceParams$$(getDashboardByName_ConfigPropertyMetadata);
|
|
3453
|
+
function keyBuilder$1c(luvio, config) {
|
|
3454
|
+
const resourceParams = createResourceParams$S(config);
|
|
3455
|
+
return keyBuilder$1d(luvio, resourceParams);
|
|
3456
3456
|
}
|
|
3457
|
-
function typeCheckConfig$
|
|
3457
|
+
function typeCheckConfig$S(untrustedConfig) {
|
|
3458
3458
|
const config = {};
|
|
3459
|
-
typeCheckConfig
|
|
3459
|
+
typeCheckConfig$$(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
|
|
3460
3460
|
return config;
|
|
3461
3461
|
}
|
|
3462
|
-
function validateAdapterConfig$
|
|
3462
|
+
function validateAdapterConfig$S(untrustedConfig, configPropertyNames) {
|
|
3463
3463
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3464
3464
|
return null;
|
|
3465
3465
|
}
|
|
3466
3466
|
if (process.env.NODE_ENV !== 'production') {
|
|
3467
3467
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3468
3468
|
}
|
|
3469
|
-
const config = typeCheckConfig$
|
|
3469
|
+
const config = typeCheckConfig$S(untrustedConfig);
|
|
3470
3470
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3471
3471
|
return null;
|
|
3472
3472
|
}
|
|
3473
3473
|
return config;
|
|
3474
3474
|
}
|
|
3475
|
-
function adapterFragment$
|
|
3476
|
-
createResourceParams$
|
|
3477
|
-
return select$
|
|
3475
|
+
function adapterFragment$n(luvio, config) {
|
|
3476
|
+
createResourceParams$S(config);
|
|
3477
|
+
return select$1k();
|
|
3478
3478
|
}
|
|
3479
|
-
function onFetchResponseSuccess$
|
|
3480
|
-
const snapshot = ingestSuccess$
|
|
3479
|
+
function onFetchResponseSuccess$n(luvio, config, resourceParams, response) {
|
|
3480
|
+
const snapshot = ingestSuccess$L(luvio, resourceParams, response, {
|
|
3481
3481
|
config,
|
|
3482
|
-
resolve: () => buildNetworkSnapshot$
|
|
3482
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions)
|
|
3483
3483
|
});
|
|
3484
3484
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3485
3485
|
}
|
|
3486
|
-
function onFetchResponseError$
|
|
3487
|
-
const snapshot = ingestError$
|
|
3486
|
+
function onFetchResponseError$n(luvio, config, resourceParams, response) {
|
|
3487
|
+
const snapshot = ingestError$n(luvio, resourceParams, response, {
|
|
3488
3488
|
config,
|
|
3489
|
-
resolve: () => buildNetworkSnapshot$
|
|
3489
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions)
|
|
3490
3490
|
});
|
|
3491
3491
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3492
3492
|
}
|
|
3493
|
-
function buildNetworkSnapshot$
|
|
3494
|
-
const resourceParams = createResourceParams$
|
|
3495
|
-
const request = createResourceRequest$
|
|
3493
|
+
function buildNetworkSnapshot$S(luvio, config, options) {
|
|
3494
|
+
const resourceParams = createResourceParams$S(config);
|
|
3495
|
+
const request = createResourceRequest$S(resourceParams);
|
|
3496
3496
|
return luvio.dispatchResourceRequest(request, options)
|
|
3497
3497
|
.then((response) => {
|
|
3498
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3498
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$n(luvio, config, resourceParams, response), () => {
|
|
3499
3499
|
const cache = new StoreKeyMap();
|
|
3500
|
-
getResponseCacheKeys$
|
|
3500
|
+
getResponseCacheKeys$S(cache, luvio, resourceParams, response.body);
|
|
3501
3501
|
return cache;
|
|
3502
3502
|
});
|
|
3503
3503
|
}, (response) => {
|
|
3504
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3504
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$n(luvio, config, resourceParams, response));
|
|
3505
3505
|
});
|
|
3506
3506
|
}
|
|
3507
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3508
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3507
|
+
function buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext) {
|
|
3508
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$S, undefined, false);
|
|
3509
3509
|
}
|
|
3510
|
-
function buildCachedSnapshotCachePolicy$
|
|
3510
|
+
function buildCachedSnapshotCachePolicy$n(context, storeLookup) {
|
|
3511
3511
|
const { luvio, config } = context;
|
|
3512
3512
|
const selector = {
|
|
3513
|
-
recordId: keyBuilder$
|
|
3514
|
-
node: adapterFragment$
|
|
3513
|
+
recordId: keyBuilder$1c(luvio, config),
|
|
3514
|
+
node: adapterFragment$n(luvio, config),
|
|
3515
3515
|
variables: {},
|
|
3516
3516
|
};
|
|
3517
3517
|
const cacheSnapshot = storeLookup(selector, {
|
|
3518
3518
|
config,
|
|
3519
|
-
resolve: () => buildNetworkSnapshot$
|
|
3519
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions)
|
|
3520
3520
|
});
|
|
3521
3521
|
return cacheSnapshot;
|
|
3522
3522
|
}
|
|
3523
3523
|
const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboardByName(untrustedConfig, requestContext) {
|
|
3524
|
-
const config = validateAdapterConfig$
|
|
3524
|
+
const config = validateAdapterConfig$S(untrustedConfig, getDashboardByName_ConfigPropertyNames);
|
|
3525
3525
|
// Invalid or incomplete config
|
|
3526
3526
|
if (config === null) {
|
|
3527
3527
|
return null;
|
|
3528
3528
|
}
|
|
3529
3529
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3530
|
-
buildCachedSnapshotCachePolicy$
|
|
3530
|
+
buildCachedSnapshotCachePolicy$n, buildNetworkSnapshotCachePolicy$n);
|
|
3531
3531
|
};
|
|
3532
3532
|
|
|
3533
|
-
function select$
|
|
3534
|
-
return select$
|
|
3533
|
+
function select$1j(luvio, params) {
|
|
3534
|
+
return select$1o();
|
|
3535
3535
|
}
|
|
3536
|
-
function getResponseCacheKeys$
|
|
3537
|
-
getTypeCacheKeys$
|
|
3536
|
+
function getResponseCacheKeys$R(storeKeyMap, luvio, resourceParams, response) {
|
|
3537
|
+
getTypeCacheKeys$C(storeKeyMap, luvio, response);
|
|
3538
3538
|
}
|
|
3539
|
-
function ingestSuccess$
|
|
3539
|
+
function ingestSuccess$K(luvio, resourceParams, response) {
|
|
3540
3540
|
const { body } = response;
|
|
3541
3541
|
const key = keyBuilderFromType$l(luvio, body);
|
|
3542
|
-
luvio.storeIngest(key, ingest$
|
|
3542
|
+
luvio.storeIngest(key, ingest$C, body);
|
|
3543
3543
|
const snapshot = luvio.storeLookup({
|
|
3544
3544
|
recordId: key,
|
|
3545
|
-
node: select$
|
|
3545
|
+
node: select$1j(),
|
|
3546
3546
|
variables: {},
|
|
3547
3547
|
});
|
|
3548
3548
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3553,7 +3553,7 @@ function ingestSuccess$J(luvio, resourceParams, response) {
|
|
|
3553
3553
|
deepFreeze(snapshot.data);
|
|
3554
3554
|
return snapshot;
|
|
3555
3555
|
}
|
|
3556
|
-
function createResourceRequest$
|
|
3556
|
+
function createResourceRequest$R(config) {
|
|
3557
3557
|
const headers = {};
|
|
3558
3558
|
return {
|
|
3559
3559
|
baseUri: '/services/data/v66.0',
|
|
@@ -3567,7 +3567,7 @@ function createResourceRequest$Q(config) {
|
|
|
3567
3567
|
};
|
|
3568
3568
|
}
|
|
3569
3569
|
|
|
3570
|
-
const adapterName$
|
|
3570
|
+
const adapterName$R = 'updateDashboard';
|
|
3571
3571
|
const updateDashboard_ConfigPropertyMetadata = [
|
|
3572
3572
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3573
3573
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
@@ -3583,11 +3583,11 @@ const updateDashboard_ConfigPropertyMetadata = [
|
|
|
3583
3583
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3584
3584
|
generateParamConfigMetadata('backgroundSource', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3585
3585
|
];
|
|
3586
|
-
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3587
|
-
const createResourceParams$
|
|
3588
|
-
function typeCheckConfig$
|
|
3586
|
+
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$R, updateDashboard_ConfigPropertyMetadata);
|
|
3587
|
+
const createResourceParams$R = /*#__PURE__*/ createResourceParams$$(updateDashboard_ConfigPropertyMetadata);
|
|
3588
|
+
function typeCheckConfig$R(untrustedConfig) {
|
|
3589
3589
|
const config = {};
|
|
3590
|
-
typeCheckConfig
|
|
3590
|
+
typeCheckConfig$$(untrustedConfig, config, updateDashboard_ConfigPropertyMetadata);
|
|
3591
3591
|
const untrustedConfig_lastModifiedBy = untrustedConfig.lastModifiedBy;
|
|
3592
3592
|
config.lastModifiedBy = untrustedConfig_lastModifiedBy;
|
|
3593
3593
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
@@ -3646,30 +3646,30 @@ function typeCheckConfig$Q(untrustedConfig) {
|
|
|
3646
3646
|
}
|
|
3647
3647
|
return config;
|
|
3648
3648
|
}
|
|
3649
|
-
function validateAdapterConfig$
|
|
3649
|
+
function validateAdapterConfig$R(untrustedConfig, configPropertyNames) {
|
|
3650
3650
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3651
3651
|
return null;
|
|
3652
3652
|
}
|
|
3653
3653
|
if (process.env.NODE_ENV !== 'production') {
|
|
3654
3654
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3655
3655
|
}
|
|
3656
|
-
const config = typeCheckConfig$
|
|
3656
|
+
const config = typeCheckConfig$R(untrustedConfig);
|
|
3657
3657
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3658
3658
|
return null;
|
|
3659
3659
|
}
|
|
3660
3660
|
return config;
|
|
3661
3661
|
}
|
|
3662
|
-
function buildNetworkSnapshot$
|
|
3663
|
-
const resourceParams = createResourceParams$
|
|
3664
|
-
const request = createResourceRequest$
|
|
3662
|
+
function buildNetworkSnapshot$R(luvio, config, options) {
|
|
3663
|
+
const resourceParams = createResourceParams$R(config);
|
|
3664
|
+
const request = createResourceRequest$R(resourceParams);
|
|
3665
3665
|
return luvio.dispatchResourceRequest(request, options)
|
|
3666
3666
|
.then((response) => {
|
|
3667
3667
|
return luvio.handleSuccessResponse(() => {
|
|
3668
|
-
const snapshot = ingestSuccess$
|
|
3668
|
+
const snapshot = ingestSuccess$K(luvio, resourceParams, response);
|
|
3669
3669
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3670
3670
|
}, () => {
|
|
3671
3671
|
const cache = new StoreKeyMap();
|
|
3672
|
-
getResponseCacheKeys$
|
|
3672
|
+
getResponseCacheKeys$R(cache, luvio, resourceParams, response.body);
|
|
3673
3673
|
return cache;
|
|
3674
3674
|
});
|
|
3675
3675
|
}, (response) => {
|
|
@@ -3679,16 +3679,16 @@ function buildNetworkSnapshot$Q(luvio, config, options) {
|
|
|
3679
3679
|
}
|
|
3680
3680
|
const updateDashboardAdapterFactory = (luvio) => {
|
|
3681
3681
|
return function updateDashboard(untrustedConfig) {
|
|
3682
|
-
const config = validateAdapterConfig$
|
|
3682
|
+
const config = validateAdapterConfig$R(untrustedConfig, updateDashboard_ConfigPropertyNames);
|
|
3683
3683
|
// Invalid or incomplete config
|
|
3684
3684
|
if (config === null) {
|
|
3685
3685
|
throw new Error('Invalid config for "updateDashboard"');
|
|
3686
3686
|
}
|
|
3687
|
-
return buildNetworkSnapshot$
|
|
3687
|
+
return buildNetworkSnapshot$R(luvio, config);
|
|
3688
3688
|
};
|
|
3689
3689
|
};
|
|
3690
3690
|
|
|
3691
|
-
function validate$
|
|
3691
|
+
function validate$19(obj, path = 'DataAlertContentRepresentation') {
|
|
3692
3692
|
const v_error = (() => {
|
|
3693
3693
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3694
3694
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3702,7 +3702,7 @@ function validate$15(obj, path = 'DataAlertContentRepresentation') {
|
|
|
3702
3702
|
return v_error === undefined ? null : v_error;
|
|
3703
3703
|
}
|
|
3704
3704
|
|
|
3705
|
-
function validate$
|
|
3705
|
+
function validate$18(obj, path = 'DataAlertReceiversRepresentation') {
|
|
3706
3706
|
const v_error = (() => {
|
|
3707
3707
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3708
3708
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3716,7 +3716,7 @@ function validate$14(obj, path = 'DataAlertReceiversRepresentation') {
|
|
|
3716
3716
|
return v_error === undefined ? null : v_error;
|
|
3717
3717
|
}
|
|
3718
3718
|
|
|
3719
|
-
function validate$
|
|
3719
|
+
function validate$17(obj, path = 'DataAlertDeliveryConfigurationRepresentation') {
|
|
3720
3720
|
const v_error = (() => {
|
|
3721
3721
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3722
3722
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3729,7 +3729,7 @@ function validate$13(obj, path = 'DataAlertDeliveryConfigurationRepresentation')
|
|
|
3729
3729
|
for (let i = 0; i < obj_receivers.length; i++) {
|
|
3730
3730
|
const obj_receivers_item = obj_receivers[i];
|
|
3731
3731
|
const path_receivers_item = path_receivers + '[' + i + ']';
|
|
3732
|
-
const referencepath_receivers_itemValidationError = validate$
|
|
3732
|
+
const referencepath_receivers_itemValidationError = validate$18(obj_receivers_item, path_receivers_item);
|
|
3733
3733
|
if (referencepath_receivers_itemValidationError !== null) {
|
|
3734
3734
|
let message = 'Object doesn\'t match DataAlertReceiversRepresentation (at "' + path_receivers_item + '")\n';
|
|
3735
3735
|
message += referencepath_receivers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3740,7 +3740,21 @@ function validate$13(obj, path = 'DataAlertDeliveryConfigurationRepresentation')
|
|
|
3740
3740
|
return v_error === undefined ? null : v_error;
|
|
3741
3741
|
}
|
|
3742
3742
|
|
|
3743
|
-
function validate$
|
|
3743
|
+
function validate$16(obj, path = 'DataAlertPropertyFilterOutputRepresentation') {
|
|
3744
|
+
const v_error = (() => {
|
|
3745
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3746
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3747
|
+
}
|
|
3748
|
+
const obj_conditionCategory = obj.conditionCategory;
|
|
3749
|
+
const path_conditionCategory = path + '.conditionCategory';
|
|
3750
|
+
if (typeof obj_conditionCategory !== 'string') {
|
|
3751
|
+
return new TypeError('Expected "string" but received "' + typeof obj_conditionCategory + '" (at "' + path_conditionCategory + '")');
|
|
3752
|
+
}
|
|
3753
|
+
})();
|
|
3754
|
+
return v_error === undefined ? null : v_error;
|
|
3755
|
+
}
|
|
3756
|
+
|
|
3757
|
+
function validate$15(obj, path = 'DataAlertScheduleRepresentation') {
|
|
3744
3758
|
const v_error = (() => {
|
|
3745
3759
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3746
3760
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3768,7 +3782,7 @@ function validate$12(obj, path = 'DataAlertScheduleRepresentation') {
|
|
|
3768
3782
|
return v_error === undefined ? null : v_error;
|
|
3769
3783
|
}
|
|
3770
3784
|
|
|
3771
|
-
function validate$
|
|
3785
|
+
function validate$14(obj, path = 'DataAlertValueRepresentation') {
|
|
3772
3786
|
const v_error = (() => {
|
|
3773
3787
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3774
3788
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3782,14 +3796,14 @@ function validate$11(obj, path = 'DataAlertValueRepresentation') {
|
|
|
3782
3796
|
return v_error === undefined ? null : v_error;
|
|
3783
3797
|
}
|
|
3784
3798
|
|
|
3785
|
-
function validate$
|
|
3799
|
+
function validate$13(obj, path = 'DataAlertConditionRepresentation') {
|
|
3786
3800
|
const v_error = (() => {
|
|
3787
3801
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3788
3802
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3789
3803
|
}
|
|
3790
3804
|
const obj_leftOperand = obj.leftOperand;
|
|
3791
3805
|
const path_leftOperand = path + '.leftOperand';
|
|
3792
|
-
const referencepath_leftOperandValidationError = validate$
|
|
3806
|
+
const referencepath_leftOperandValidationError = validate$14(obj_leftOperand, path_leftOperand);
|
|
3793
3807
|
if (referencepath_leftOperandValidationError !== null) {
|
|
3794
3808
|
let message = 'Object doesn\'t match DataAlertValueRepresentation (at "' + path_leftOperand + '")\n';
|
|
3795
3809
|
message += referencepath_leftOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3802,7 +3816,7 @@ function validate$10(obj, path = 'DataAlertConditionRepresentation') {
|
|
|
3802
3816
|
}
|
|
3803
3817
|
const obj_rightOperand = obj.rightOperand;
|
|
3804
3818
|
const path_rightOperand = path + '.rightOperand';
|
|
3805
|
-
const referencepath_rightOperandValidationError = validate$
|
|
3819
|
+
const referencepath_rightOperandValidationError = validate$14(obj_rightOperand, path_rightOperand);
|
|
3806
3820
|
if (referencepath_rightOperandValidationError !== null) {
|
|
3807
3821
|
let message = 'Object doesn\'t match DataAlertValueRepresentation (at "' + path_rightOperand + '")\n';
|
|
3808
3822
|
message += referencepath_rightOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3812,7 +3826,7 @@ function validate$10(obj, path = 'DataAlertConditionRepresentation') {
|
|
|
3812
3826
|
return v_error === undefined ? null : v_error;
|
|
3813
3827
|
}
|
|
3814
3828
|
|
|
3815
|
-
function validate
|
|
3829
|
+
function validate$12(obj, path = 'DataAlertThresholdsRepresentation') {
|
|
3816
3830
|
const v_error = (() => {
|
|
3817
3831
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3818
3832
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3825,7 +3839,7 @@ function validate$$(obj, path = 'DataAlertThresholdsRepresentation') {
|
|
|
3825
3839
|
for (let i = 0; i < obj_conditions.length; i++) {
|
|
3826
3840
|
const obj_conditions_item = obj_conditions[i];
|
|
3827
3841
|
const path_conditions_item = path_conditions + '[' + i + ']';
|
|
3828
|
-
const referencepath_conditions_itemValidationError = validate$
|
|
3842
|
+
const referencepath_conditions_itemValidationError = validate$13(obj_conditions_item, path_conditions_item);
|
|
3829
3843
|
if (referencepath_conditions_itemValidationError !== null) {
|
|
3830
3844
|
let message = 'Object doesn\'t match DataAlertConditionRepresentation (at "' + path_conditions_item + '")\n';
|
|
3831
3845
|
message += referencepath_conditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3841,9 +3855,9 @@ function validate$$(obj, path = 'DataAlertThresholdsRepresentation') {
|
|
|
3841
3855
|
return v_error === undefined ? null : v_error;
|
|
3842
3856
|
}
|
|
3843
3857
|
|
|
3844
|
-
const TTL$
|
|
3845
|
-
const VERSION$
|
|
3846
|
-
function validate$
|
|
3858
|
+
const TTL$p = 500;
|
|
3859
|
+
const VERSION$A = "c2b3a7269126a29557fb07e4baa3abf9";
|
|
3860
|
+
function validate$11(obj, path = 'DataAlertRepresentation') {
|
|
3847
3861
|
const v_error = (() => {
|
|
3848
3862
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3849
3863
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3883,7 +3897,7 @@ function validate$_(obj, path = 'DataAlertRepresentation') {
|
|
|
3883
3897
|
}
|
|
3884
3898
|
const obj_content = obj.content;
|
|
3885
3899
|
const path_content = path + '.content';
|
|
3886
|
-
const referencepath_contentValidationError = validate$
|
|
3900
|
+
const referencepath_contentValidationError = validate$19(obj_content, path_content);
|
|
3887
3901
|
if (referencepath_contentValidationError !== null) {
|
|
3888
3902
|
let message = 'Object doesn\'t match DataAlertContentRepresentation (at "' + path_content + '")\n';
|
|
3889
3903
|
message += referencepath_contentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3901,7 +3915,7 @@ function validate$_(obj, path = 'DataAlertRepresentation') {
|
|
|
3901
3915
|
}
|
|
3902
3916
|
const obj_deliveryConfigurations = obj.deliveryConfigurations;
|
|
3903
3917
|
const path_deliveryConfigurations = path + '.deliveryConfigurations';
|
|
3904
|
-
const referencepath_deliveryConfigurationsValidationError = validate$
|
|
3918
|
+
const referencepath_deliveryConfigurationsValidationError = validate$17(obj_deliveryConfigurations, path_deliveryConfigurations);
|
|
3905
3919
|
if (referencepath_deliveryConfigurationsValidationError !== null) {
|
|
3906
3920
|
let message = 'Object doesn\'t match DataAlertDeliveryConfigurationRepresentation (at "' + path_deliveryConfigurations + '")\n';
|
|
3907
3921
|
message += referencepath_deliveryConfigurationsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3917,9 +3931,19 @@ function validate$_(obj, path = 'DataAlertRepresentation') {
|
|
|
3917
3931
|
if (typeof obj_lastModifiedDate !== 'string') {
|
|
3918
3932
|
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
3919
3933
|
}
|
|
3934
|
+
if (obj.properties !== undefined) {
|
|
3935
|
+
const obj_properties = obj.properties;
|
|
3936
|
+
const path_properties = path + '.properties';
|
|
3937
|
+
const referencepath_propertiesValidationError = validate$16(obj_properties, path_properties);
|
|
3938
|
+
if (referencepath_propertiesValidationError !== null) {
|
|
3939
|
+
let message = 'Object doesn\'t match DataAlertPropertyFilterOutputRepresentation (at "' + path_properties + '")\n';
|
|
3940
|
+
message += referencepath_propertiesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3941
|
+
return new TypeError(message);
|
|
3942
|
+
}
|
|
3943
|
+
}
|
|
3920
3944
|
const obj_schedule = obj.schedule;
|
|
3921
3945
|
const path_schedule = path + '.schedule';
|
|
3922
|
-
const referencepath_scheduleValidationError = validate$
|
|
3946
|
+
const referencepath_scheduleValidationError = validate$15(obj_schedule, path_schedule);
|
|
3923
3947
|
if (referencepath_scheduleValidationError !== null) {
|
|
3924
3948
|
let message = 'Object doesn\'t match DataAlertScheduleRepresentation (at "' + path_schedule + '")\n';
|
|
3925
3949
|
message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3927,7 +3951,7 @@ function validate$_(obj, path = 'DataAlertRepresentation') {
|
|
|
3927
3951
|
}
|
|
3928
3952
|
const obj_thresholds = obj.thresholds;
|
|
3929
3953
|
const path_thresholds = path + '.thresholds';
|
|
3930
|
-
const referencepath_thresholdsValidationError = validate
|
|
3954
|
+
const referencepath_thresholdsValidationError = validate$12(obj_thresholds, path_thresholds);
|
|
3931
3955
|
if (referencepath_thresholdsValidationError !== null) {
|
|
3932
3956
|
let message = 'Object doesn\'t match DataAlertThresholdsRepresentation (at "' + path_thresholds + '")\n';
|
|
3933
3957
|
message += referencepath_thresholdsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3936,58 +3960,58 @@ function validate$_(obj, path = 'DataAlertRepresentation') {
|
|
|
3936
3960
|
})();
|
|
3937
3961
|
return v_error === undefined ? null : v_error;
|
|
3938
3962
|
}
|
|
3939
|
-
const RepresentationType$
|
|
3940
|
-
function keyBuilder$
|
|
3941
|
-
return keyPrefix + '::' + RepresentationType$
|
|
3963
|
+
const RepresentationType$C = 'DataAlertRepresentation';
|
|
3964
|
+
function keyBuilder$1b(luvio, config) {
|
|
3965
|
+
return keyPrefix + '::' + RepresentationType$C + ':' + config.dataAlertId;
|
|
3942
3966
|
}
|
|
3943
3967
|
function keyBuilderFromType$k(luvio, object) {
|
|
3944
3968
|
const keyParams = {
|
|
3945
3969
|
dataAlertId: object.id
|
|
3946
3970
|
};
|
|
3947
|
-
return keyBuilder$
|
|
3971
|
+
return keyBuilder$1b(luvio, keyParams);
|
|
3948
3972
|
}
|
|
3949
|
-
function normalize$
|
|
3973
|
+
function normalize$A(input, existing, path, luvio, store, timestamp) {
|
|
3950
3974
|
return input;
|
|
3951
3975
|
}
|
|
3952
|
-
const select$
|
|
3976
|
+
const select$1i = function DataAlertRepresentationSelect() {
|
|
3953
3977
|
return {
|
|
3954
3978
|
kind: 'Fragment',
|
|
3955
|
-
version: VERSION$
|
|
3979
|
+
version: VERSION$A,
|
|
3956
3980
|
private: [],
|
|
3957
3981
|
opaque: true
|
|
3958
3982
|
};
|
|
3959
3983
|
};
|
|
3960
|
-
function equals$
|
|
3984
|
+
function equals$A(existing, incoming) {
|
|
3961
3985
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
3962
3986
|
return false;
|
|
3963
3987
|
}
|
|
3964
3988
|
return true;
|
|
3965
3989
|
}
|
|
3966
|
-
const ingest$
|
|
3990
|
+
const ingest$A = function DataAlertRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3967
3991
|
if (process.env.NODE_ENV !== 'production') {
|
|
3968
|
-
const validateError = validate$
|
|
3992
|
+
const validateError = validate$11(input);
|
|
3969
3993
|
if (validateError !== null) {
|
|
3970
3994
|
throw validateError;
|
|
3971
3995
|
}
|
|
3972
3996
|
}
|
|
3973
3997
|
const key = keyBuilderFromType$k(luvio, input);
|
|
3974
|
-
const ttlToUse = TTL$
|
|
3975
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3998
|
+
const ttlToUse = TTL$p;
|
|
3999
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$A, "UnifiedAnalytics", VERSION$A, RepresentationType$C, equals$A);
|
|
3976
4000
|
return createLink(key);
|
|
3977
4001
|
};
|
|
3978
|
-
function getTypeCacheKeys$
|
|
4002
|
+
function getTypeCacheKeys$A(rootKeySet, luvio, input, fullPathFactory) {
|
|
3979
4003
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3980
4004
|
const rootKey = keyBuilderFromType$k(luvio, input);
|
|
3981
4005
|
rootKeySet.set(rootKey, {
|
|
3982
4006
|
namespace: keyPrefix,
|
|
3983
|
-
representationName: RepresentationType$
|
|
4007
|
+
representationName: RepresentationType$C,
|
|
3984
4008
|
mergeable: false
|
|
3985
4009
|
});
|
|
3986
4010
|
}
|
|
3987
4011
|
|
|
3988
|
-
const TTL$
|
|
3989
|
-
const VERSION$
|
|
3990
|
-
function validate$
|
|
4012
|
+
const TTL$o = 500;
|
|
4013
|
+
const VERSION$z = "d3e9e0efe02f7fa88865b7e72fe25f25";
|
|
4014
|
+
function validate$10(obj, path = 'DataAlertCollectionRepresentation') {
|
|
3991
4015
|
const v_error = (() => {
|
|
3992
4016
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3993
4017
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4000,7 +4024,7 @@ function validate$Z(obj, path = 'DataAlertCollectionRepresentation') {
|
|
|
4000
4024
|
for (let i = 0; i < obj_dataAlerts.length; i++) {
|
|
4001
4025
|
const obj_dataAlerts_item = obj_dataAlerts[i];
|
|
4002
4026
|
const path_dataAlerts_item = path_dataAlerts + '[' + i + ']';
|
|
4003
|
-
const referencepath_dataAlerts_itemValidationError = validate$
|
|
4027
|
+
const referencepath_dataAlerts_itemValidationError = validate$11(obj_dataAlerts_item, path_dataAlerts_item);
|
|
4004
4028
|
if (referencepath_dataAlerts_itemValidationError !== null) {
|
|
4005
4029
|
let message = 'Object doesn\'t match DataAlertRepresentation (at "' + path_dataAlerts_item + '")\n';
|
|
4006
4030
|
message += referencepath_dataAlerts_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4041,62 +4065,62 @@ function validate$Z(obj, path = 'DataAlertCollectionRepresentation') {
|
|
|
4041
4065
|
})();
|
|
4042
4066
|
return v_error === undefined ? null : v_error;
|
|
4043
4067
|
}
|
|
4044
|
-
const RepresentationType$
|
|
4045
|
-
function normalize$
|
|
4068
|
+
const RepresentationType$B = 'DataAlertCollectionRepresentation';
|
|
4069
|
+
function normalize$z(input, existing, path, luvio, store, timestamp) {
|
|
4046
4070
|
return input;
|
|
4047
4071
|
}
|
|
4048
|
-
const select$
|
|
4072
|
+
const select$1h = function DataAlertCollectionRepresentationSelect() {
|
|
4049
4073
|
return {
|
|
4050
4074
|
kind: 'Fragment',
|
|
4051
|
-
version: VERSION$
|
|
4075
|
+
version: VERSION$z,
|
|
4052
4076
|
private: [],
|
|
4053
4077
|
opaque: true
|
|
4054
4078
|
};
|
|
4055
4079
|
};
|
|
4056
|
-
function equals$
|
|
4080
|
+
function equals$z(existing, incoming) {
|
|
4057
4081
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4058
4082
|
return false;
|
|
4059
4083
|
}
|
|
4060
4084
|
return true;
|
|
4061
4085
|
}
|
|
4062
|
-
const ingest$
|
|
4086
|
+
const ingest$z = function DataAlertCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4063
4087
|
if (process.env.NODE_ENV !== 'production') {
|
|
4064
|
-
const validateError = validate$
|
|
4088
|
+
const validateError = validate$10(input);
|
|
4065
4089
|
if (validateError !== null) {
|
|
4066
4090
|
throw validateError;
|
|
4067
4091
|
}
|
|
4068
4092
|
}
|
|
4069
4093
|
const key = path.fullPath;
|
|
4070
|
-
const ttlToUse = TTL$
|
|
4071
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4094
|
+
const ttlToUse = TTL$o;
|
|
4095
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$z, "UnifiedAnalytics", VERSION$z, RepresentationType$B, equals$z);
|
|
4072
4096
|
return createLink(key);
|
|
4073
4097
|
};
|
|
4074
|
-
function getTypeCacheKeys$
|
|
4098
|
+
function getTypeCacheKeys$z(rootKeySet, luvio, input, fullPathFactory) {
|
|
4075
4099
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4076
4100
|
const rootKey = fullPathFactory();
|
|
4077
4101
|
rootKeySet.set(rootKey, {
|
|
4078
4102
|
namespace: keyPrefix,
|
|
4079
|
-
representationName: RepresentationType$
|
|
4103
|
+
representationName: RepresentationType$B,
|
|
4080
4104
|
mergeable: false
|
|
4081
4105
|
});
|
|
4082
4106
|
}
|
|
4083
4107
|
|
|
4084
|
-
function select$
|
|
4085
|
-
return select$
|
|
4108
|
+
function select$1g(luvio, params) {
|
|
4109
|
+
return select$1h();
|
|
4086
4110
|
}
|
|
4087
|
-
function keyBuilder$
|
|
4111
|
+
function keyBuilder$1a(luvio, params) {
|
|
4088
4112
|
return keyPrefix + '::DataAlertCollectionRepresentation:(' + 'ownerId:' + params.queryParams.ownerId + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
4089
4113
|
}
|
|
4090
|
-
function getResponseCacheKeys$
|
|
4091
|
-
getTypeCacheKeys$
|
|
4114
|
+
function getResponseCacheKeys$Q(storeKeyMap, luvio, resourceParams, response) {
|
|
4115
|
+
getTypeCacheKeys$z(storeKeyMap, luvio, response, () => keyBuilder$1a(luvio, resourceParams));
|
|
4092
4116
|
}
|
|
4093
|
-
function ingestSuccess$
|
|
4117
|
+
function ingestSuccess$J(luvio, resourceParams, response, snapshotRefresh) {
|
|
4094
4118
|
const { body } = response;
|
|
4095
|
-
const key = keyBuilder$
|
|
4096
|
-
luvio.storeIngest(key, ingest$
|
|
4119
|
+
const key = keyBuilder$1a(luvio, resourceParams);
|
|
4120
|
+
luvio.storeIngest(key, ingest$z, body);
|
|
4097
4121
|
const snapshot = luvio.storeLookup({
|
|
4098
4122
|
recordId: key,
|
|
4099
|
-
node: select$
|
|
4123
|
+
node: select$1g(),
|
|
4100
4124
|
variables: {},
|
|
4101
4125
|
}, snapshotRefresh);
|
|
4102
4126
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4107,19 +4131,19 @@ function ingestSuccess$I(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4107
4131
|
deepFreeze(snapshot.data);
|
|
4108
4132
|
return snapshot;
|
|
4109
4133
|
}
|
|
4110
|
-
function ingestError$
|
|
4111
|
-
const key = keyBuilder$
|
|
4134
|
+
function ingestError$m(luvio, params, error, snapshotRefresh) {
|
|
4135
|
+
const key = keyBuilder$1a(luvio, params);
|
|
4112
4136
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4113
4137
|
const storeMetadataParams = {
|
|
4114
|
-
ttl: TTL$
|
|
4138
|
+
ttl: TTL$o,
|
|
4115
4139
|
namespace: keyPrefix,
|
|
4116
|
-
version: VERSION$
|
|
4117
|
-
representationName: RepresentationType$
|
|
4140
|
+
version: VERSION$z,
|
|
4141
|
+
representationName: RepresentationType$B
|
|
4118
4142
|
};
|
|
4119
4143
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4120
4144
|
return errorSnapshot;
|
|
4121
4145
|
}
|
|
4122
|
-
function createResourceRequest$
|
|
4146
|
+
function createResourceRequest$Q(config) {
|
|
4123
4147
|
const headers = {};
|
|
4124
4148
|
return {
|
|
4125
4149
|
baseUri: '/services/data/v66.0',
|
|
@@ -4133,99 +4157,99 @@ function createResourceRequest$P(config) {
|
|
|
4133
4157
|
};
|
|
4134
4158
|
}
|
|
4135
4159
|
|
|
4136
|
-
const adapterName$
|
|
4160
|
+
const adapterName$Q = 'getDataAlertCollection';
|
|
4137
4161
|
const getDataAlertCollection_ConfigPropertyMetadata = [
|
|
4138
4162
|
generateParamConfigMetadata('ownerId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
4139
4163
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4140
4164
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4141
4165
|
];
|
|
4142
|
-
const getDataAlertCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4143
|
-
const createResourceParams$
|
|
4144
|
-
function keyBuilder$
|
|
4145
|
-
const resourceParams = createResourceParams$
|
|
4146
|
-
return keyBuilder$
|
|
4166
|
+
const getDataAlertCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Q, getDataAlertCollection_ConfigPropertyMetadata);
|
|
4167
|
+
const createResourceParams$Q = /*#__PURE__*/ createResourceParams$$(getDataAlertCollection_ConfigPropertyMetadata);
|
|
4168
|
+
function keyBuilder$19(luvio, config) {
|
|
4169
|
+
const resourceParams = createResourceParams$Q(config);
|
|
4170
|
+
return keyBuilder$1a(luvio, resourceParams);
|
|
4147
4171
|
}
|
|
4148
|
-
function typeCheckConfig$
|
|
4172
|
+
function typeCheckConfig$Q(untrustedConfig) {
|
|
4149
4173
|
const config = {};
|
|
4150
|
-
typeCheckConfig
|
|
4174
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAlertCollection_ConfigPropertyMetadata);
|
|
4151
4175
|
return config;
|
|
4152
4176
|
}
|
|
4153
|
-
function validateAdapterConfig$
|
|
4177
|
+
function validateAdapterConfig$Q(untrustedConfig, configPropertyNames) {
|
|
4154
4178
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4155
4179
|
return null;
|
|
4156
4180
|
}
|
|
4157
4181
|
if (process.env.NODE_ENV !== 'production') {
|
|
4158
4182
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4159
4183
|
}
|
|
4160
|
-
const config = typeCheckConfig$
|
|
4184
|
+
const config = typeCheckConfig$Q(untrustedConfig);
|
|
4161
4185
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4162
4186
|
return null;
|
|
4163
4187
|
}
|
|
4164
4188
|
return config;
|
|
4165
4189
|
}
|
|
4166
|
-
function adapterFragment$
|
|
4167
|
-
createResourceParams$
|
|
4168
|
-
return select$
|
|
4190
|
+
function adapterFragment$m(luvio, config) {
|
|
4191
|
+
createResourceParams$Q(config);
|
|
4192
|
+
return select$1g();
|
|
4169
4193
|
}
|
|
4170
|
-
function onFetchResponseSuccess$
|
|
4171
|
-
const snapshot = ingestSuccess$
|
|
4194
|
+
function onFetchResponseSuccess$m(luvio, config, resourceParams, response) {
|
|
4195
|
+
const snapshot = ingestSuccess$J(luvio, resourceParams, response, {
|
|
4172
4196
|
config,
|
|
4173
|
-
resolve: () => buildNetworkSnapshot$
|
|
4197
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions)
|
|
4174
4198
|
});
|
|
4175
4199
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4176
4200
|
}
|
|
4177
|
-
function onFetchResponseError$
|
|
4178
|
-
const snapshot = ingestError$
|
|
4201
|
+
function onFetchResponseError$m(luvio, config, resourceParams, response) {
|
|
4202
|
+
const snapshot = ingestError$m(luvio, resourceParams, response, {
|
|
4179
4203
|
config,
|
|
4180
|
-
resolve: () => buildNetworkSnapshot$
|
|
4204
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions)
|
|
4181
4205
|
});
|
|
4182
4206
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4183
4207
|
}
|
|
4184
|
-
function buildNetworkSnapshot$
|
|
4185
|
-
const resourceParams = createResourceParams$
|
|
4186
|
-
const request = createResourceRequest$
|
|
4208
|
+
function buildNetworkSnapshot$Q(luvio, config, options) {
|
|
4209
|
+
const resourceParams = createResourceParams$Q(config);
|
|
4210
|
+
const request = createResourceRequest$Q(resourceParams);
|
|
4187
4211
|
return luvio.dispatchResourceRequest(request, options)
|
|
4188
4212
|
.then((response) => {
|
|
4189
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4213
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$m(luvio, config, resourceParams, response), () => {
|
|
4190
4214
|
const cache = new StoreKeyMap();
|
|
4191
|
-
getResponseCacheKeys$
|
|
4215
|
+
getResponseCacheKeys$Q(cache, luvio, resourceParams, response.body);
|
|
4192
4216
|
return cache;
|
|
4193
4217
|
});
|
|
4194
4218
|
}, (response) => {
|
|
4195
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4219
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$m(luvio, config, resourceParams, response));
|
|
4196
4220
|
});
|
|
4197
4221
|
}
|
|
4198
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4199
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4222
|
+
function buildNetworkSnapshotCachePolicy$m(context, coercedAdapterRequestContext) {
|
|
4223
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$Q, undefined, false);
|
|
4200
4224
|
}
|
|
4201
|
-
function buildCachedSnapshotCachePolicy$
|
|
4225
|
+
function buildCachedSnapshotCachePolicy$m(context, storeLookup) {
|
|
4202
4226
|
const { luvio, config } = context;
|
|
4203
4227
|
const selector = {
|
|
4204
|
-
recordId: keyBuilder$
|
|
4205
|
-
node: adapterFragment$
|
|
4228
|
+
recordId: keyBuilder$19(luvio, config),
|
|
4229
|
+
node: adapterFragment$m(luvio, config),
|
|
4206
4230
|
variables: {},
|
|
4207
4231
|
};
|
|
4208
4232
|
const cacheSnapshot = storeLookup(selector, {
|
|
4209
4233
|
config,
|
|
4210
|
-
resolve: () => buildNetworkSnapshot$
|
|
4234
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions)
|
|
4211
4235
|
});
|
|
4212
4236
|
return cacheSnapshot;
|
|
4213
4237
|
}
|
|
4214
4238
|
const getDataAlertCollectionAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAlertCollection(untrustedConfig, requestContext) {
|
|
4215
|
-
const config = validateAdapterConfig$
|
|
4239
|
+
const config = validateAdapterConfig$Q(untrustedConfig, getDataAlertCollection_ConfigPropertyNames);
|
|
4216
4240
|
// Invalid or incomplete config
|
|
4217
4241
|
if (config === null) {
|
|
4218
4242
|
return null;
|
|
4219
4243
|
}
|
|
4220
4244
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4221
|
-
buildCachedSnapshotCachePolicy$
|
|
4245
|
+
buildCachedSnapshotCachePolicy$m, buildNetworkSnapshotCachePolicy$m);
|
|
4222
4246
|
};
|
|
4223
4247
|
|
|
4224
4248
|
var DiscriminatorValues$3;
|
|
4225
4249
|
(function (DiscriminatorValues) {
|
|
4226
4250
|
DiscriminatorValues["Notification"] = "Notification";
|
|
4227
4251
|
})(DiscriminatorValues$3 || (DiscriminatorValues$3 = {}));
|
|
4228
|
-
function validate
|
|
4252
|
+
function validate$$(obj, path = 'DataAlertReceiversInputRepresentation') {
|
|
4229
4253
|
const v_error = (() => {
|
|
4230
4254
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4231
4255
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4239,7 +4263,7 @@ function validate$Y(obj, path = 'DataAlertReceiversInputRepresentation') {
|
|
|
4239
4263
|
return v_error === undefined ? null : v_error;
|
|
4240
4264
|
}
|
|
4241
4265
|
|
|
4242
|
-
function validate$
|
|
4266
|
+
function validate$_(obj, path = 'DataAlertDeliveryConfigurationInputRepresentation') {
|
|
4243
4267
|
const v_error = (() => {
|
|
4244
4268
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4245
4269
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4252,7 +4276,7 @@ function validate$X(obj, path = 'DataAlertDeliveryConfigurationInputRepresentati
|
|
|
4252
4276
|
for (let i = 0; i < obj_receivers.length; i++) {
|
|
4253
4277
|
const obj_receivers_item = obj_receivers[i];
|
|
4254
4278
|
const path_receivers_item = path_receivers + '[' + i + ']';
|
|
4255
|
-
const referencepath_receivers_itemValidationError = validate
|
|
4279
|
+
const referencepath_receivers_itemValidationError = validate$$(obj_receivers_item, path_receivers_item);
|
|
4256
4280
|
if (referencepath_receivers_itemValidationError !== null) {
|
|
4257
4281
|
let message = 'Object doesn\'t match DataAlertReceiversInputRepresentation (at "' + path_receivers_item + '")\n';
|
|
4258
4282
|
message += referencepath_receivers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4263,12 +4287,49 @@ function validate$X(obj, path = 'DataAlertDeliveryConfigurationInputRepresentati
|
|
|
4263
4287
|
return v_error === undefined ? null : v_error;
|
|
4264
4288
|
}
|
|
4265
4289
|
|
|
4290
|
+
function validate$Z(obj, path = 'UnifiedFilterInputRepresentation') {
|
|
4291
|
+
const v_error = (() => {
|
|
4292
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4293
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4294
|
+
}
|
|
4295
|
+
if (obj.fieldName !== undefined) {
|
|
4296
|
+
const obj_fieldName = obj.fieldName;
|
|
4297
|
+
const path_fieldName = path + '.fieldName';
|
|
4298
|
+
if (typeof obj_fieldName !== 'string') {
|
|
4299
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldName + '" (at "' + path_fieldName + '")');
|
|
4300
|
+
}
|
|
4301
|
+
}
|
|
4302
|
+
if (obj.operator !== undefined) {
|
|
4303
|
+
const obj_operator = obj.operator;
|
|
4304
|
+
const path_operator = path + '.operator';
|
|
4305
|
+
if (typeof obj_operator !== 'string') {
|
|
4306
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
4307
|
+
}
|
|
4308
|
+
}
|
|
4309
|
+
if (obj.values !== undefined) {
|
|
4310
|
+
const obj_values = obj.values;
|
|
4311
|
+
const path_values = path + '.values';
|
|
4312
|
+
if (!ArrayIsArray(obj_values)) {
|
|
4313
|
+
return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
|
|
4314
|
+
}
|
|
4315
|
+
for (let i = 0; i < obj_values.length; i++) {
|
|
4316
|
+
const obj_values_item = obj_values[i];
|
|
4317
|
+
const path_values_item = path_values + '[' + i + ']';
|
|
4318
|
+
if (obj_values_item === undefined) {
|
|
4319
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
|
|
4320
|
+
}
|
|
4321
|
+
}
|
|
4322
|
+
}
|
|
4323
|
+
})();
|
|
4324
|
+
return v_error === undefined ? null : v_error;
|
|
4325
|
+
}
|
|
4326
|
+
|
|
4266
4327
|
var DiscriminatorValues$2;
|
|
4267
4328
|
(function (DiscriminatorValues) {
|
|
4268
4329
|
DiscriminatorValues["RawValue"] = "RawValue";
|
|
4269
4330
|
DiscriminatorValues["Insights"] = "Insights";
|
|
4270
4331
|
})(DiscriminatorValues$2 || (DiscriminatorValues$2 = {}));
|
|
4271
|
-
function validate$
|
|
4332
|
+
function validate$Y(obj, path = 'DataAlertValueInputRepresentation') {
|
|
4272
4333
|
const v_error = (() => {
|
|
4273
4334
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4274
4335
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4282,7 +4343,7 @@ function validate$W(obj, path = 'DataAlertValueInputRepresentation') {
|
|
|
4282
4343
|
return v_error === undefined ? null : v_error;
|
|
4283
4344
|
}
|
|
4284
4345
|
|
|
4285
|
-
function validate$
|
|
4346
|
+
function validate$X(obj, path = 'DataAlertValueRightOperandInputRepresentation') {
|
|
4286
4347
|
const v_error = (() => {
|
|
4287
4348
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4288
4349
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4296,14 +4357,14 @@ function validate$V(obj, path = 'DataAlertValueRightOperandInputRepresentation')
|
|
|
4296
4357
|
return v_error === undefined ? null : v_error;
|
|
4297
4358
|
}
|
|
4298
4359
|
|
|
4299
|
-
function validate$
|
|
4360
|
+
function validate$W(obj, path = 'DataAlertConditionInputRepresentation') {
|
|
4300
4361
|
const v_error = (() => {
|
|
4301
4362
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4302
4363
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4303
4364
|
}
|
|
4304
4365
|
const obj_leftOperand = obj.leftOperand;
|
|
4305
4366
|
const path_leftOperand = path + '.leftOperand';
|
|
4306
|
-
const referencepath_leftOperandValidationError = validate$
|
|
4367
|
+
const referencepath_leftOperandValidationError = validate$Y(obj_leftOperand, path_leftOperand);
|
|
4307
4368
|
if (referencepath_leftOperandValidationError !== null) {
|
|
4308
4369
|
let message = 'Object doesn\'t match DataAlertValueInputRepresentation (at "' + path_leftOperand + '")\n';
|
|
4309
4370
|
message += referencepath_leftOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4316,7 +4377,7 @@ function validate$U(obj, path = 'DataAlertConditionInputRepresentation') {
|
|
|
4316
4377
|
}
|
|
4317
4378
|
const obj_rightOperand = obj.rightOperand;
|
|
4318
4379
|
const path_rightOperand = path + '.rightOperand';
|
|
4319
|
-
const referencepath_rightOperandValidationError = validate$
|
|
4380
|
+
const referencepath_rightOperandValidationError = validate$X(obj_rightOperand, path_rightOperand);
|
|
4320
4381
|
if (referencepath_rightOperandValidationError !== null) {
|
|
4321
4382
|
let message = 'Object doesn\'t match DataAlertValueRightOperandInputRepresentation (at "' + path_rightOperand + '")\n';
|
|
4322
4383
|
message += referencepath_rightOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4326,7 +4387,7 @@ function validate$U(obj, path = 'DataAlertConditionInputRepresentation') {
|
|
|
4326
4387
|
return v_error === undefined ? null : v_error;
|
|
4327
4388
|
}
|
|
4328
4389
|
|
|
4329
|
-
function validate$
|
|
4390
|
+
function validate$V(obj, path = 'DataAlertThresholdsInputRepresentation') {
|
|
4330
4391
|
const v_error = (() => {
|
|
4331
4392
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4332
4393
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4339,7 +4400,7 @@ function validate$T(obj, path = 'DataAlertThresholdsInputRepresentation') {
|
|
|
4339
4400
|
for (let i = 0; i < obj_conditions.length; i++) {
|
|
4340
4401
|
const obj_conditions_item = obj_conditions[i];
|
|
4341
4402
|
const path_conditions_item = path_conditions + '[' + i + ']';
|
|
4342
|
-
const referencepath_conditions_itemValidationError = validate$
|
|
4403
|
+
const referencepath_conditions_itemValidationError = validate$W(obj_conditions_item, path_conditions_item);
|
|
4343
4404
|
if (referencepath_conditions_itemValidationError !== null) {
|
|
4344
4405
|
let message = 'Object doesn\'t match DataAlertConditionInputRepresentation (at "' + path_conditions_item + '")\n';
|
|
4345
4406
|
message += referencepath_conditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4355,19 +4416,19 @@ function validate$T(obj, path = 'DataAlertThresholdsInputRepresentation') {
|
|
|
4355
4416
|
return v_error === undefined ? null : v_error;
|
|
4356
4417
|
}
|
|
4357
4418
|
|
|
4358
|
-
function select$
|
|
4359
|
-
return select$
|
|
4419
|
+
function select$1f(luvio, params) {
|
|
4420
|
+
return select$1i();
|
|
4360
4421
|
}
|
|
4361
|
-
function getResponseCacheKeys$
|
|
4362
|
-
getTypeCacheKeys$
|
|
4422
|
+
function getResponseCacheKeys$P(storeKeyMap, luvio, resourceParams, response) {
|
|
4423
|
+
getTypeCacheKeys$A(storeKeyMap, luvio, response);
|
|
4363
4424
|
}
|
|
4364
|
-
function ingestSuccess$
|
|
4425
|
+
function ingestSuccess$I(luvio, resourceParams, response) {
|
|
4365
4426
|
const { body } = response;
|
|
4366
4427
|
const key = keyBuilderFromType$k(luvio, body);
|
|
4367
|
-
luvio.storeIngest(key, ingest$
|
|
4428
|
+
luvio.storeIngest(key, ingest$A, body);
|
|
4368
4429
|
const snapshot = luvio.storeLookup({
|
|
4369
4430
|
recordId: key,
|
|
4370
|
-
node: select$
|
|
4431
|
+
node: select$1f(),
|
|
4371
4432
|
variables: {},
|
|
4372
4433
|
});
|
|
4373
4434
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4378,7 +4439,7 @@ function ingestSuccess$H(luvio, resourceParams, response) {
|
|
|
4378
4439
|
deepFreeze(snapshot.data);
|
|
4379
4440
|
return snapshot;
|
|
4380
4441
|
}
|
|
4381
|
-
function createResourceRequest$
|
|
4442
|
+
function createResourceRequest$P(config) {
|
|
4382
4443
|
const headers = {};
|
|
4383
4444
|
return {
|
|
4384
4445
|
baseUri: '/services/data/v66.0',
|
|
@@ -4396,7 +4457,7 @@ var DiscriminatorValues$1;
|
|
|
4396
4457
|
(function (DiscriminatorValues) {
|
|
4397
4458
|
DiscriminatorValues["Metric"] = "Metric";
|
|
4398
4459
|
})(DiscriminatorValues$1 || (DiscriminatorValues$1 = {}));
|
|
4399
|
-
function validate$
|
|
4460
|
+
function validate$U(obj, path = 'DataAlertContentInputRepresentation') {
|
|
4400
4461
|
const v_error = (() => {
|
|
4401
4462
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4402
4463
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4416,7 +4477,7 @@ var DiscriminatorValues;
|
|
|
4416
4477
|
DiscriminatorValues["Weekly"] = "Weekly";
|
|
4417
4478
|
DiscriminatorValues["EveryNMinutes"] = "EveryNMinutes";
|
|
4418
4479
|
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
4419
|
-
function validate$
|
|
4480
|
+
function validate$T(obj, path = 'DataAlertScheduleInputRepresentation') {
|
|
4420
4481
|
const v_error = (() => {
|
|
4421
4482
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4422
4483
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4444,7 +4505,7 @@ function validate$R(obj, path = 'DataAlertScheduleInputRepresentation') {
|
|
|
4444
4505
|
return v_error === undefined ? null : v_error;
|
|
4445
4506
|
}
|
|
4446
4507
|
|
|
4447
|
-
const adapterName$
|
|
4508
|
+
const adapterName$P = 'createDataAlert';
|
|
4448
4509
|
const createDataAlert_ConfigPropertyMetadata = [
|
|
4449
4510
|
generateParamConfigMetadata('runNow', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
4450
4511
|
generateParamConfigMetadata('content', true, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -4455,28 +4516,28 @@ const createDataAlert_ConfigPropertyMetadata = [
|
|
|
4455
4516
|
generateParamConfigMetadata('utterance', true, 2 /* Body */, 0 /* String */),
|
|
4456
4517
|
generateParamConfigMetadata('agent', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4457
4518
|
];
|
|
4458
|
-
const createDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4459
|
-
const createResourceParams$
|
|
4460
|
-
function typeCheckConfig$
|
|
4519
|
+
const createDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$P, createDataAlert_ConfigPropertyMetadata);
|
|
4520
|
+
const createResourceParams$P = /*#__PURE__*/ createResourceParams$$(createDataAlert_ConfigPropertyMetadata);
|
|
4521
|
+
function typeCheckConfig$P(untrustedConfig) {
|
|
4461
4522
|
const config = {};
|
|
4462
|
-
typeCheckConfig
|
|
4523
|
+
typeCheckConfig$$(untrustedConfig, config, createDataAlert_ConfigPropertyMetadata);
|
|
4463
4524
|
const untrustedConfig_content = untrustedConfig.content;
|
|
4464
|
-
const referenceDataAlertContentInputRepresentationValidationError = validate$
|
|
4525
|
+
const referenceDataAlertContentInputRepresentationValidationError = validate$U(untrustedConfig_content);
|
|
4465
4526
|
if (referenceDataAlertContentInputRepresentationValidationError === null) {
|
|
4466
4527
|
config.content = untrustedConfig_content;
|
|
4467
4528
|
}
|
|
4468
4529
|
const untrustedConfig_deliveryConfigurations = untrustedConfig.deliveryConfigurations;
|
|
4469
|
-
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$
|
|
4530
|
+
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$_(untrustedConfig_deliveryConfigurations);
|
|
4470
4531
|
if (referenceDataAlertDeliveryConfigurationInputRepresentationValidationError === null) {
|
|
4471
4532
|
config.deliveryConfigurations = untrustedConfig_deliveryConfigurations;
|
|
4472
4533
|
}
|
|
4473
4534
|
const untrustedConfig_schedule = untrustedConfig.schedule;
|
|
4474
|
-
const referenceDataAlertScheduleInputRepresentationValidationError = validate$
|
|
4535
|
+
const referenceDataAlertScheduleInputRepresentationValidationError = validate$T(untrustedConfig_schedule);
|
|
4475
4536
|
if (referenceDataAlertScheduleInputRepresentationValidationError === null) {
|
|
4476
4537
|
config.schedule = untrustedConfig_schedule;
|
|
4477
4538
|
}
|
|
4478
4539
|
const untrustedConfig_thresholds = untrustedConfig.thresholds;
|
|
4479
|
-
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$
|
|
4540
|
+
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$V(untrustedConfig_thresholds);
|
|
4480
4541
|
if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
|
|
4481
4542
|
config.thresholds = untrustedConfig_thresholds;
|
|
4482
4543
|
}
|
|
@@ -4489,30 +4550,30 @@ function typeCheckConfig$O(untrustedConfig) {
|
|
|
4489
4550
|
}
|
|
4490
4551
|
return config;
|
|
4491
4552
|
}
|
|
4492
|
-
function validateAdapterConfig$
|
|
4553
|
+
function validateAdapterConfig$P(untrustedConfig, configPropertyNames) {
|
|
4493
4554
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4494
4555
|
return null;
|
|
4495
4556
|
}
|
|
4496
4557
|
if (process.env.NODE_ENV !== 'production') {
|
|
4497
4558
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4498
4559
|
}
|
|
4499
|
-
const config = typeCheckConfig$
|
|
4560
|
+
const config = typeCheckConfig$P(untrustedConfig);
|
|
4500
4561
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4501
4562
|
return null;
|
|
4502
4563
|
}
|
|
4503
4564
|
return config;
|
|
4504
4565
|
}
|
|
4505
|
-
function buildNetworkSnapshot$
|
|
4506
|
-
const resourceParams = createResourceParams$
|
|
4507
|
-
const request = createResourceRequest$
|
|
4566
|
+
function buildNetworkSnapshot$P(luvio, config, options) {
|
|
4567
|
+
const resourceParams = createResourceParams$P(config);
|
|
4568
|
+
const request = createResourceRequest$P(resourceParams);
|
|
4508
4569
|
return luvio.dispatchResourceRequest(request, options)
|
|
4509
4570
|
.then((response) => {
|
|
4510
4571
|
return luvio.handleSuccessResponse(() => {
|
|
4511
|
-
const snapshot = ingestSuccess$
|
|
4572
|
+
const snapshot = ingestSuccess$I(luvio, resourceParams, response);
|
|
4512
4573
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4513
4574
|
}, () => {
|
|
4514
4575
|
const cache = new StoreKeyMap();
|
|
4515
|
-
getResponseCacheKeys$
|
|
4576
|
+
getResponseCacheKeys$P(cache, luvio, resourceParams, response.body);
|
|
4516
4577
|
return cache;
|
|
4517
4578
|
});
|
|
4518
4579
|
}, (response) => {
|
|
@@ -4522,30 +4583,281 @@ function buildNetworkSnapshot$O(luvio, config, options) {
|
|
|
4522
4583
|
}
|
|
4523
4584
|
const createDataAlertAdapterFactory = (luvio) => {
|
|
4524
4585
|
return function createDataAlert(untrustedConfig) {
|
|
4525
|
-
const config = validateAdapterConfig$
|
|
4586
|
+
const config = validateAdapterConfig$P(untrustedConfig, createDataAlert_ConfigPropertyNames);
|
|
4526
4587
|
// Invalid or incomplete config
|
|
4527
4588
|
if (config === null) {
|
|
4528
4589
|
throw new Error('Invalid config for "createDataAlert"');
|
|
4529
4590
|
}
|
|
4530
|
-
return buildNetworkSnapshot$
|
|
4591
|
+
return buildNetworkSnapshot$P(luvio, config);
|
|
4592
|
+
};
|
|
4593
|
+
};
|
|
4594
|
+
|
|
4595
|
+
function validate$S(obj, path = 'DataAlertPropertyFilterInputRepresentation') {
|
|
4596
|
+
const v_error = (() => {
|
|
4597
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4598
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4599
|
+
}
|
|
4600
|
+
const obj_property = obj.property;
|
|
4601
|
+
const path_property = path + '.property';
|
|
4602
|
+
if (typeof obj_property !== 'string') {
|
|
4603
|
+
return new TypeError('Expected "string" but received "' + typeof obj_property + '" (at "' + path_property + '")');
|
|
4604
|
+
}
|
|
4605
|
+
const obj_values = obj.values;
|
|
4606
|
+
const path_values = path + '.values';
|
|
4607
|
+
if (!ArrayIsArray(obj_values)) {
|
|
4608
|
+
return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
|
|
4609
|
+
}
|
|
4610
|
+
for (let i = 0; i < obj_values.length; i++) {
|
|
4611
|
+
const obj_values_item = obj_values[i];
|
|
4612
|
+
const path_values_item = path_values + '[' + i + ']';
|
|
4613
|
+
if (typeof obj_values_item !== 'string') {
|
|
4614
|
+
return new TypeError('Expected "string" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
|
|
4615
|
+
}
|
|
4616
|
+
}
|
|
4617
|
+
})();
|
|
4618
|
+
return v_error === undefined ? null : v_error;
|
|
4619
|
+
}
|
|
4620
|
+
|
|
4621
|
+
const TTL$n = 500;
|
|
4622
|
+
const VERSION$y = "8ee49a59b88eeef0e19aa1298280a0a7";
|
|
4623
|
+
function validate$R(obj, path = 'DataAlertQueryCollectionRepresentation') {
|
|
4624
|
+
const v_error = (() => {
|
|
4625
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4626
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4627
|
+
}
|
|
4628
|
+
const obj_dataAlerts = obj.dataAlerts;
|
|
4629
|
+
const path_dataAlerts = path + '.dataAlerts';
|
|
4630
|
+
if (!ArrayIsArray(obj_dataAlerts)) {
|
|
4631
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dataAlerts + '" (at "' + path_dataAlerts + '")');
|
|
4632
|
+
}
|
|
4633
|
+
for (let i = 0; i < obj_dataAlerts.length; i++) {
|
|
4634
|
+
const obj_dataAlerts_item = obj_dataAlerts[i];
|
|
4635
|
+
const path_dataAlerts_item = path_dataAlerts + '[' + i + ']';
|
|
4636
|
+
const referencepath_dataAlerts_itemValidationError = validate$11(obj_dataAlerts_item, path_dataAlerts_item);
|
|
4637
|
+
if (referencepath_dataAlerts_itemValidationError !== null) {
|
|
4638
|
+
let message = 'Object doesn\'t match DataAlertRepresentation (at "' + path_dataAlerts_item + '")\n';
|
|
4639
|
+
message += referencepath_dataAlerts_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4640
|
+
return new TypeError(message);
|
|
4641
|
+
}
|
|
4642
|
+
}
|
|
4643
|
+
})();
|
|
4644
|
+
return v_error === undefined ? null : v_error;
|
|
4645
|
+
}
|
|
4646
|
+
const RepresentationType$A = 'DataAlertQueryCollectionRepresentation';
|
|
4647
|
+
function normalize$y(input, existing, path, luvio, store, timestamp) {
|
|
4648
|
+
return input;
|
|
4649
|
+
}
|
|
4650
|
+
const select$1e = function DataAlertQueryCollectionRepresentationSelect() {
|
|
4651
|
+
return {
|
|
4652
|
+
kind: 'Fragment',
|
|
4653
|
+
version: VERSION$y,
|
|
4654
|
+
private: [],
|
|
4655
|
+
opaque: true
|
|
4656
|
+
};
|
|
4657
|
+
};
|
|
4658
|
+
function equals$y(existing, incoming) {
|
|
4659
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4660
|
+
return false;
|
|
4661
|
+
}
|
|
4662
|
+
return true;
|
|
4663
|
+
}
|
|
4664
|
+
const ingest$y = function DataAlertQueryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4665
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4666
|
+
const validateError = validate$R(input);
|
|
4667
|
+
if (validateError !== null) {
|
|
4668
|
+
throw validateError;
|
|
4669
|
+
}
|
|
4670
|
+
}
|
|
4671
|
+
const key = path.fullPath;
|
|
4672
|
+
const ttlToUse = TTL$n;
|
|
4673
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$y, "UnifiedAnalytics", VERSION$y, RepresentationType$A, equals$y);
|
|
4674
|
+
return createLink(key);
|
|
4675
|
+
};
|
|
4676
|
+
function getTypeCacheKeys$y(rootKeySet, luvio, input, fullPathFactory) {
|
|
4677
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4678
|
+
const rootKey = fullPathFactory();
|
|
4679
|
+
rootKeySet.set(rootKey, {
|
|
4680
|
+
namespace: keyPrefix,
|
|
4681
|
+
representationName: RepresentationType$A,
|
|
4682
|
+
mergeable: false
|
|
4683
|
+
});
|
|
4684
|
+
}
|
|
4685
|
+
|
|
4686
|
+
function select$1d(luvio, params) {
|
|
4687
|
+
return select$1e();
|
|
4688
|
+
}
|
|
4689
|
+
function keyBuilder$18(luvio, params) {
|
|
4690
|
+
var _a, _b, _c, _d, _e, _f;
|
|
4691
|
+
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(',') + ']')) + ')';
|
|
4692
|
+
}
|
|
4693
|
+
function getResponseCacheKeys$O(storeKeyMap, luvio, resourceParams, response) {
|
|
4694
|
+
getTypeCacheKeys$y(storeKeyMap, luvio, response, () => keyBuilder$18(luvio, resourceParams));
|
|
4695
|
+
}
|
|
4696
|
+
function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
|
|
4697
|
+
const { body } = response;
|
|
4698
|
+
const key = keyBuilder$18(luvio, resourceParams);
|
|
4699
|
+
luvio.storeIngest(key, ingest$y, body);
|
|
4700
|
+
const snapshot = luvio.storeLookup({
|
|
4701
|
+
recordId: key,
|
|
4702
|
+
node: select$1d(),
|
|
4703
|
+
variables: {},
|
|
4704
|
+
}, snapshotRefresh);
|
|
4705
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4706
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4707
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4708
|
+
}
|
|
4709
|
+
}
|
|
4710
|
+
deepFreeze(snapshot.data);
|
|
4711
|
+
return snapshot;
|
|
4712
|
+
}
|
|
4713
|
+
function ingestError$l(luvio, params, error, snapshotRefresh) {
|
|
4714
|
+
const key = keyBuilder$18(luvio, params);
|
|
4715
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4716
|
+
const storeMetadataParams = {
|
|
4717
|
+
ttl: TTL$n,
|
|
4718
|
+
namespace: keyPrefix,
|
|
4719
|
+
version: VERSION$y,
|
|
4720
|
+
representationName: RepresentationType$A
|
|
4721
|
+
};
|
|
4722
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4723
|
+
return errorSnapshot;
|
|
4724
|
+
}
|
|
4725
|
+
function createResourceRequest$O(config) {
|
|
4726
|
+
const headers = {};
|
|
4727
|
+
return {
|
|
4728
|
+
baseUri: '/services/data/v66.0',
|
|
4729
|
+
basePath: '/tableau/dataAlerts/query',
|
|
4730
|
+
method: 'post',
|
|
4731
|
+
body: config.body,
|
|
4732
|
+
urlParams: {},
|
|
4733
|
+
queryParams: {},
|
|
4734
|
+
headers,
|
|
4735
|
+
priority: 'normal',
|
|
4531
4736
|
};
|
|
4737
|
+
}
|
|
4738
|
+
|
|
4739
|
+
const adapterName$O = 'postDataAlertQuery';
|
|
4740
|
+
const postDataAlertQuery_ConfigPropertyMetadata = [
|
|
4741
|
+
generateParamConfigMetadata('ownerId', true, 2 /* Body */, 0 /* String */),
|
|
4742
|
+
generateParamConfigMetadata('assetId', false, 2 /* Body */, 0 /* String */),
|
|
4743
|
+
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4744
|
+
generateParamConfigMetadata('includeProperties', false, 2 /* Body */, 0 /* String */, true),
|
|
4745
|
+
generateParamConfigMetadata('propertyFilters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4746
|
+
];
|
|
4747
|
+
const postDataAlertQuery_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$O, postDataAlertQuery_ConfigPropertyMetadata);
|
|
4748
|
+
const createResourceParams$O = /*#__PURE__*/ createResourceParams$$(postDataAlertQuery_ConfigPropertyMetadata);
|
|
4749
|
+
function keyBuilder$17(luvio, config) {
|
|
4750
|
+
const resourceParams = createResourceParams$O(config);
|
|
4751
|
+
return keyBuilder$18(luvio, resourceParams);
|
|
4752
|
+
}
|
|
4753
|
+
function typeCheckConfig$O(untrustedConfig) {
|
|
4754
|
+
const config = {};
|
|
4755
|
+
typeCheckConfig$$(untrustedConfig, config, postDataAlertQuery_ConfigPropertyMetadata);
|
|
4756
|
+
const untrustedConfig_timeRange = untrustedConfig.timeRange;
|
|
4757
|
+
const referenceUnifiedFilterInputRepresentationValidationError = validate$Z(untrustedConfig_timeRange);
|
|
4758
|
+
if (referenceUnifiedFilterInputRepresentationValidationError === null) {
|
|
4759
|
+
config.timeRange = untrustedConfig_timeRange;
|
|
4760
|
+
}
|
|
4761
|
+
const untrustedConfig_propertyFilters = untrustedConfig.propertyFilters;
|
|
4762
|
+
if (ArrayIsArray$1(untrustedConfig_propertyFilters)) {
|
|
4763
|
+
const untrustedConfig_propertyFilters_array = [];
|
|
4764
|
+
for (let i = 0, arrayLength = untrustedConfig_propertyFilters.length; i < arrayLength; i++) {
|
|
4765
|
+
const untrustedConfig_propertyFilters_item = untrustedConfig_propertyFilters[i];
|
|
4766
|
+
const referenceDataAlertPropertyFilterInputRepresentationValidationError = validate$S(untrustedConfig_propertyFilters_item);
|
|
4767
|
+
if (referenceDataAlertPropertyFilterInputRepresentationValidationError === null) {
|
|
4768
|
+
untrustedConfig_propertyFilters_array.push(untrustedConfig_propertyFilters_item);
|
|
4769
|
+
}
|
|
4770
|
+
}
|
|
4771
|
+
config.propertyFilters = untrustedConfig_propertyFilters_array;
|
|
4772
|
+
}
|
|
4773
|
+
return config;
|
|
4774
|
+
}
|
|
4775
|
+
function validateAdapterConfig$O(untrustedConfig, configPropertyNames) {
|
|
4776
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4777
|
+
return null;
|
|
4778
|
+
}
|
|
4779
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4780
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4781
|
+
}
|
|
4782
|
+
const config = typeCheckConfig$O(untrustedConfig);
|
|
4783
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4784
|
+
return null;
|
|
4785
|
+
}
|
|
4786
|
+
return config;
|
|
4787
|
+
}
|
|
4788
|
+
function adapterFragment$l(luvio, config) {
|
|
4789
|
+
createResourceParams$O(config);
|
|
4790
|
+
return select$1d();
|
|
4791
|
+
}
|
|
4792
|
+
function onFetchResponseSuccess$l(luvio, config, resourceParams, response) {
|
|
4793
|
+
const snapshot = ingestSuccess$H(luvio, resourceParams, response, {
|
|
4794
|
+
config,
|
|
4795
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions)
|
|
4796
|
+
});
|
|
4797
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4798
|
+
}
|
|
4799
|
+
function onFetchResponseError$l(luvio, config, resourceParams, response) {
|
|
4800
|
+
const snapshot = ingestError$l(luvio, resourceParams, response, {
|
|
4801
|
+
config,
|
|
4802
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions)
|
|
4803
|
+
});
|
|
4804
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4805
|
+
}
|
|
4806
|
+
function buildNetworkSnapshot$O(luvio, config, options) {
|
|
4807
|
+
const resourceParams = createResourceParams$O(config);
|
|
4808
|
+
const request = createResourceRequest$O(resourceParams);
|
|
4809
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4810
|
+
.then((response) => {
|
|
4811
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$l(luvio, config, resourceParams, response), () => {
|
|
4812
|
+
const cache = new StoreKeyMap();
|
|
4813
|
+
getResponseCacheKeys$O(cache, luvio, resourceParams, response.body);
|
|
4814
|
+
return cache;
|
|
4815
|
+
});
|
|
4816
|
+
}, (response) => {
|
|
4817
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$l(luvio, config, resourceParams, response));
|
|
4818
|
+
});
|
|
4819
|
+
}
|
|
4820
|
+
function buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext) {
|
|
4821
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$O, 'get', false);
|
|
4822
|
+
}
|
|
4823
|
+
function buildCachedSnapshotCachePolicy$l(context, storeLookup) {
|
|
4824
|
+
const { luvio, config } = context;
|
|
4825
|
+
const selector = {
|
|
4826
|
+
recordId: keyBuilder$17(luvio, config),
|
|
4827
|
+
node: adapterFragment$l(luvio, config),
|
|
4828
|
+
variables: {},
|
|
4829
|
+
};
|
|
4830
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4831
|
+
config,
|
|
4832
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions)
|
|
4833
|
+
});
|
|
4834
|
+
return cacheSnapshot;
|
|
4835
|
+
}
|
|
4836
|
+
const postDataAlertQueryAdapterFactory = (luvio) => function UnifiedAnalytics__postDataAlertQuery(untrustedConfig, requestContext) {
|
|
4837
|
+
const config = validateAdapterConfig$O(untrustedConfig, postDataAlertQuery_ConfigPropertyNames);
|
|
4838
|
+
// Invalid or incomplete config
|
|
4839
|
+
if (config === null) {
|
|
4840
|
+
return null;
|
|
4841
|
+
}
|
|
4842
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4843
|
+
buildCachedSnapshotCachePolicy$l, buildNetworkSnapshotCachePolicy$l);
|
|
4532
4844
|
};
|
|
4533
4845
|
|
|
4534
4846
|
function select$1c(luvio, params) {
|
|
4535
|
-
return select$
|
|
4847
|
+
return select$1i();
|
|
4536
4848
|
}
|
|
4537
4849
|
function keyBuilder$16(luvio, params) {
|
|
4538
|
-
return keyBuilder$
|
|
4850
|
+
return keyBuilder$1b(luvio, {
|
|
4539
4851
|
dataAlertId: params.urlParams.dataAlertId
|
|
4540
4852
|
});
|
|
4541
4853
|
}
|
|
4542
4854
|
function getResponseCacheKeys$N(storeKeyMap, luvio, resourceParams, response) {
|
|
4543
|
-
getTypeCacheKeys$
|
|
4855
|
+
getTypeCacheKeys$A(storeKeyMap, luvio, response);
|
|
4544
4856
|
}
|
|
4545
4857
|
function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
|
|
4546
4858
|
const { body } = response;
|
|
4547
4859
|
const key = keyBuilder$16(luvio, resourceParams);
|
|
4548
|
-
luvio.storeIngest(key, ingest$
|
|
4860
|
+
luvio.storeIngest(key, ingest$A, body);
|
|
4549
4861
|
const snapshot = luvio.storeLookup({
|
|
4550
4862
|
recordId: key,
|
|
4551
4863
|
node: select$1c(),
|
|
@@ -4563,10 +4875,10 @@ function ingestError$k(luvio, params, error, snapshotRefresh) {
|
|
|
4563
4875
|
const key = keyBuilder$16(luvio, params);
|
|
4564
4876
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4565
4877
|
const storeMetadataParams = {
|
|
4566
|
-
ttl: TTL$
|
|
4878
|
+
ttl: TTL$p,
|
|
4567
4879
|
namespace: keyPrefix,
|
|
4568
|
-
version: VERSION$
|
|
4569
|
-
representationName: RepresentationType$
|
|
4880
|
+
version: VERSION$A,
|
|
4881
|
+
representationName: RepresentationType$C
|
|
4570
4882
|
};
|
|
4571
4883
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4572
4884
|
return errorSnapshot;
|
|
@@ -4590,14 +4902,14 @@ const getDataAlert_ConfigPropertyMetadata = [
|
|
|
4590
4902
|
generateParamConfigMetadata('dataAlertId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4591
4903
|
];
|
|
4592
4904
|
const getDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$N, getDataAlert_ConfigPropertyMetadata);
|
|
4593
|
-
const createResourceParams$N = /*#__PURE__*/ createResourceParams
|
|
4905
|
+
const createResourceParams$N = /*#__PURE__*/ createResourceParams$$(getDataAlert_ConfigPropertyMetadata);
|
|
4594
4906
|
function keyBuilder$15(luvio, config) {
|
|
4595
4907
|
const resourceParams = createResourceParams$N(config);
|
|
4596
4908
|
return keyBuilder$16(luvio, resourceParams);
|
|
4597
4909
|
}
|
|
4598
4910
|
function typeCheckConfig$N(untrustedConfig) {
|
|
4599
4911
|
const config = {};
|
|
4600
|
-
typeCheckConfig
|
|
4912
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAlert_ConfigPropertyMetadata);
|
|
4601
4913
|
return config;
|
|
4602
4914
|
}
|
|
4603
4915
|
function validateAdapterConfig$N(untrustedConfig, configPropertyNames) {
|
|
@@ -4646,7 +4958,7 @@ function buildNetworkSnapshot$N(luvio, config, options) {
|
|
|
4646
4958
|
});
|
|
4647
4959
|
}
|
|
4648
4960
|
function buildNetworkSnapshotCachePolicy$k(context, coercedAdapterRequestContext) {
|
|
4649
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4961
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$N, undefined, false);
|
|
4650
4962
|
}
|
|
4651
4963
|
function buildCachedSnapshotCachePolicy$k(context, storeLookup) {
|
|
4652
4964
|
const { luvio, config } = context;
|
|
@@ -4672,7 +4984,7 @@ const getDataAlertAdapterFactory = (luvio) => function UnifiedAnalytics__getData
|
|
|
4672
4984
|
};
|
|
4673
4985
|
|
|
4674
4986
|
function keyBuilder$14(luvio, params) {
|
|
4675
|
-
return keyBuilder$
|
|
4987
|
+
return keyBuilder$1b(luvio, {
|
|
4676
4988
|
dataAlertId: params.urlParams.dataAlertId
|
|
4677
4989
|
});
|
|
4678
4990
|
}
|
|
@@ -4680,7 +4992,7 @@ function getResponseCacheKeys$M(cacheKeyMap, luvio, resourceParams) {
|
|
|
4680
4992
|
const key = keyBuilder$14(luvio, resourceParams);
|
|
4681
4993
|
cacheKeyMap.set(key, {
|
|
4682
4994
|
namespace: keyPrefix,
|
|
4683
|
-
representationName: RepresentationType$
|
|
4995
|
+
representationName: RepresentationType$C,
|
|
4684
4996
|
mergeable: false
|
|
4685
4997
|
});
|
|
4686
4998
|
}
|
|
@@ -4707,10 +5019,10 @@ const deleteDataAlert_ConfigPropertyMetadata = [
|
|
|
4707
5019
|
generateParamConfigMetadata('dataAlertId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4708
5020
|
];
|
|
4709
5021
|
const deleteDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$M, deleteDataAlert_ConfigPropertyMetadata);
|
|
4710
|
-
const createResourceParams$M = /*#__PURE__*/ createResourceParams
|
|
5022
|
+
const createResourceParams$M = /*#__PURE__*/ createResourceParams$$(deleteDataAlert_ConfigPropertyMetadata);
|
|
4711
5023
|
function typeCheckConfig$M(untrustedConfig) {
|
|
4712
5024
|
const config = {};
|
|
4713
|
-
typeCheckConfig
|
|
5025
|
+
typeCheckConfig$$(untrustedConfig, config, deleteDataAlert_ConfigPropertyMetadata);
|
|
4714
5026
|
return config;
|
|
4715
5027
|
}
|
|
4716
5028
|
function validateAdapterConfig$M(untrustedConfig, configPropertyNames) {
|
|
@@ -4756,15 +5068,15 @@ const deleteDataAlertAdapterFactory = (luvio) => {
|
|
|
4756
5068
|
};
|
|
4757
5069
|
|
|
4758
5070
|
function select$1b(luvio, params) {
|
|
4759
|
-
return select$
|
|
5071
|
+
return select$1i();
|
|
4760
5072
|
}
|
|
4761
5073
|
function getResponseCacheKeys$L(storeKeyMap, luvio, resourceParams, response) {
|
|
4762
|
-
getTypeCacheKeys$
|
|
5074
|
+
getTypeCacheKeys$A(storeKeyMap, luvio, response);
|
|
4763
5075
|
}
|
|
4764
5076
|
function ingestSuccess$F(luvio, resourceParams, response) {
|
|
4765
5077
|
const { body } = response;
|
|
4766
5078
|
const key = keyBuilderFromType$k(luvio, body);
|
|
4767
|
-
luvio.storeIngest(key, ingest$
|
|
5079
|
+
luvio.storeIngest(key, ingest$A, body);
|
|
4768
5080
|
const snapshot = luvio.storeLookup({
|
|
4769
5081
|
recordId: key,
|
|
4770
5082
|
node: select$1b(),
|
|
@@ -4805,27 +5117,27 @@ const updateDataAlert_ConfigPropertyMetadata = [
|
|
|
4805
5117
|
generateParamConfigMetadata('agent', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4806
5118
|
];
|
|
4807
5119
|
const updateDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$L, updateDataAlert_ConfigPropertyMetadata);
|
|
4808
|
-
const createResourceParams$L = /*#__PURE__*/ createResourceParams
|
|
5120
|
+
const createResourceParams$L = /*#__PURE__*/ createResourceParams$$(updateDataAlert_ConfigPropertyMetadata);
|
|
4809
5121
|
function typeCheckConfig$L(untrustedConfig) {
|
|
4810
5122
|
const config = {};
|
|
4811
|
-
typeCheckConfig
|
|
5123
|
+
typeCheckConfig$$(untrustedConfig, config, updateDataAlert_ConfigPropertyMetadata);
|
|
4812
5124
|
const untrustedConfig_content = untrustedConfig.content;
|
|
4813
|
-
const referenceDataAlertContentInputRepresentationValidationError = validate$
|
|
5125
|
+
const referenceDataAlertContentInputRepresentationValidationError = validate$U(untrustedConfig_content);
|
|
4814
5126
|
if (referenceDataAlertContentInputRepresentationValidationError === null) {
|
|
4815
5127
|
config.content = untrustedConfig_content;
|
|
4816
5128
|
}
|
|
4817
5129
|
const untrustedConfig_deliveryConfigurations = untrustedConfig.deliveryConfigurations;
|
|
4818
|
-
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$
|
|
5130
|
+
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$_(untrustedConfig_deliveryConfigurations);
|
|
4819
5131
|
if (referenceDataAlertDeliveryConfigurationInputRepresentationValidationError === null) {
|
|
4820
5132
|
config.deliveryConfigurations = untrustedConfig_deliveryConfigurations;
|
|
4821
5133
|
}
|
|
4822
5134
|
const untrustedConfig_schedule = untrustedConfig.schedule;
|
|
4823
|
-
const referenceDataAlertScheduleInputRepresentationValidationError = validate$
|
|
5135
|
+
const referenceDataAlertScheduleInputRepresentationValidationError = validate$T(untrustedConfig_schedule);
|
|
4824
5136
|
if (referenceDataAlertScheduleInputRepresentationValidationError === null) {
|
|
4825
5137
|
config.schedule = untrustedConfig_schedule;
|
|
4826
5138
|
}
|
|
4827
5139
|
const untrustedConfig_thresholds = untrustedConfig.thresholds;
|
|
4828
|
-
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$
|
|
5140
|
+
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$V(untrustedConfig_thresholds);
|
|
4829
5141
|
if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
|
|
4830
5142
|
config.thresholds = untrustedConfig_thresholds;
|
|
4831
5143
|
}
|
|
@@ -5021,10 +5333,10 @@ const postDataAlertRun_ConfigPropertyMetadata = [
|
|
|
5021
5333
|
generateParamConfigMetadata('dataAlertId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5022
5334
|
];
|
|
5023
5335
|
const postDataAlertRun_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$K, postDataAlertRun_ConfigPropertyMetadata);
|
|
5024
|
-
const createResourceParams$K = /*#__PURE__*/ createResourceParams
|
|
5336
|
+
const createResourceParams$K = /*#__PURE__*/ createResourceParams$$(postDataAlertRun_ConfigPropertyMetadata);
|
|
5025
5337
|
function typeCheckConfig$K(untrustedConfig) {
|
|
5026
5338
|
const config = {};
|
|
5027
|
-
typeCheckConfig
|
|
5339
|
+
typeCheckConfig$$(untrustedConfig, config, postDataAlertRun_ConfigPropertyMetadata);
|
|
5028
5340
|
return config;
|
|
5029
5341
|
}
|
|
5030
5342
|
function validateAdapterConfig$K(untrustedConfig, configPropertyNames) {
|
|
@@ -5070,7 +5382,7 @@ const postDataAlertRunAdapterFactory = (luvio) => {
|
|
|
5070
5382
|
};
|
|
5071
5383
|
|
|
5072
5384
|
function validate$P(obj, path = 'AnalyticsUserRepresentation') {
|
|
5073
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
5385
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$1f(obj, path);
|
|
5074
5386
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
5075
5387
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
5076
5388
|
}
|
|
@@ -6278,14 +6590,14 @@ const getDataAssetRequests_ConfigPropertyMetadata = [
|
|
|
6278
6590
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6279
6591
|
];
|
|
6280
6592
|
const getDataAssetRequests_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$J, getDataAssetRequests_ConfigPropertyMetadata);
|
|
6281
|
-
const createResourceParams$J = /*#__PURE__*/ createResourceParams
|
|
6593
|
+
const createResourceParams$J = /*#__PURE__*/ createResourceParams$$(getDataAssetRequests_ConfigPropertyMetadata);
|
|
6282
6594
|
function keyBuilder$10(luvio, config) {
|
|
6283
6595
|
const resourceParams = createResourceParams$J(config);
|
|
6284
6596
|
return keyBuilder$11(luvio, resourceParams);
|
|
6285
6597
|
}
|
|
6286
6598
|
function typeCheckConfig$J(untrustedConfig) {
|
|
6287
6599
|
const config = {};
|
|
6288
|
-
typeCheckConfig
|
|
6600
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAssetRequests_ConfigPropertyMetadata);
|
|
6289
6601
|
return config;
|
|
6290
6602
|
}
|
|
6291
6603
|
function validateAdapterConfig$J(untrustedConfig, configPropertyNames) {
|
|
@@ -6334,7 +6646,7 @@ function buildNetworkSnapshot$J(luvio, config, options) {
|
|
|
6334
6646
|
});
|
|
6335
6647
|
}
|
|
6336
6648
|
function buildNetworkSnapshotCachePolicy$j(context, coercedAdapterRequestContext) {
|
|
6337
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6649
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$J, undefined, false);
|
|
6338
6650
|
}
|
|
6339
6651
|
function buildCachedSnapshotCachePolicy$j(context, storeLookup) {
|
|
6340
6652
|
const { luvio, config } = context;
|
|
@@ -6411,10 +6723,10 @@ const createDataAssetRequest_ConfigPropertyMetadata = [
|
|
|
6411
6723
|
generateParamConfigMetadata('packageExportStatus', false, 2 /* Body */, 0 /* String */),
|
|
6412
6724
|
];
|
|
6413
6725
|
const createDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$I, createDataAssetRequest_ConfigPropertyMetadata);
|
|
6414
|
-
const createResourceParams$I = /*#__PURE__*/ createResourceParams
|
|
6726
|
+
const createResourceParams$I = /*#__PURE__*/ createResourceParams$$(createDataAssetRequest_ConfigPropertyMetadata);
|
|
6415
6727
|
function typeCheckConfig$I(untrustedConfig) {
|
|
6416
6728
|
const config = {};
|
|
6417
|
-
typeCheckConfig
|
|
6729
|
+
typeCheckConfig$$(untrustedConfig, config, createDataAssetRequest_ConfigPropertyMetadata);
|
|
6418
6730
|
return config;
|
|
6419
6731
|
}
|
|
6420
6732
|
function validateAdapterConfig$I(untrustedConfig, configPropertyNames) {
|
|
@@ -6578,14 +6890,14 @@ const getDataAssetRequestsCount_ConfigPropertyMetadata = [
|
|
|
6578
6890
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6579
6891
|
];
|
|
6580
6892
|
const getDataAssetRequestsCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$H, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
6581
|
-
const createResourceParams$H = /*#__PURE__*/ createResourceParams
|
|
6893
|
+
const createResourceParams$H = /*#__PURE__*/ createResourceParams$$(getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
6582
6894
|
function keyBuilder$_(luvio, config) {
|
|
6583
6895
|
const resourceParams = createResourceParams$H(config);
|
|
6584
6896
|
return keyBuilder$$(luvio, resourceParams);
|
|
6585
6897
|
}
|
|
6586
6898
|
function typeCheckConfig$H(untrustedConfig) {
|
|
6587
6899
|
const config = {};
|
|
6588
|
-
typeCheckConfig
|
|
6900
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
6589
6901
|
return config;
|
|
6590
6902
|
}
|
|
6591
6903
|
function validateAdapterConfig$H(untrustedConfig, configPropertyNames) {
|
|
@@ -6634,7 +6946,7 @@ function buildNetworkSnapshot$H(luvio, config, options) {
|
|
|
6634
6946
|
});
|
|
6635
6947
|
}
|
|
6636
6948
|
function buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext) {
|
|
6637
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6949
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$H, undefined, false);
|
|
6638
6950
|
}
|
|
6639
6951
|
function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
|
|
6640
6952
|
const { luvio, config } = context;
|
|
@@ -6718,14 +7030,14 @@ const getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata = [
|
|
|
6718
7030
|
generateParamConfigMetadata('requestIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6719
7031
|
];
|
|
6720
7032
|
const getDataAssetRequestByIdOrApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$G, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
6721
|
-
const createResourceParams$G = /*#__PURE__*/ createResourceParams
|
|
7033
|
+
const createResourceParams$G = /*#__PURE__*/ createResourceParams$$(getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
6722
7034
|
function keyBuilder$Y(luvio, config) {
|
|
6723
7035
|
const resourceParams = createResourceParams$G(config);
|
|
6724
7036
|
return keyBuilder$Z(luvio, resourceParams);
|
|
6725
7037
|
}
|
|
6726
7038
|
function typeCheckConfig$G(untrustedConfig) {
|
|
6727
7039
|
const config = {};
|
|
6728
|
-
typeCheckConfig
|
|
7040
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
6729
7041
|
return config;
|
|
6730
7042
|
}
|
|
6731
7043
|
function validateAdapterConfig$G(untrustedConfig, configPropertyNames) {
|
|
@@ -6774,7 +7086,7 @@ function buildNetworkSnapshot$G(luvio, config, options) {
|
|
|
6774
7086
|
});
|
|
6775
7087
|
}
|
|
6776
7088
|
function buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext) {
|
|
6777
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7089
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$G, undefined, false);
|
|
6778
7090
|
}
|
|
6779
7091
|
function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
6780
7092
|
const { luvio, config } = context;
|
|
@@ -6852,10 +7164,10 @@ const updateDataAssetRequest_ConfigPropertyMetadata = [
|
|
|
6852
7164
|
generateParamConfigMetadata('packageExportStatus', false, 2 /* Body */, 0 /* String */),
|
|
6853
7165
|
];
|
|
6854
7166
|
const updateDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$F, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
6855
|
-
const createResourceParams$F = /*#__PURE__*/ createResourceParams
|
|
7167
|
+
const createResourceParams$F = /*#__PURE__*/ createResourceParams$$(updateDataAssetRequest_ConfigPropertyMetadata);
|
|
6856
7168
|
function typeCheckConfig$F(untrustedConfig) {
|
|
6857
7169
|
const config = {};
|
|
6858
|
-
typeCheckConfig
|
|
7170
|
+
typeCheckConfig$$(untrustedConfig, config, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
6859
7171
|
return config;
|
|
6860
7172
|
}
|
|
6861
7173
|
function validateAdapterConfig$F(untrustedConfig, configPropertyNames) {
|
|
@@ -7197,14 +7509,14 @@ const getDataAssetDependencies_ConfigPropertyMetadata = [
|
|
|
7197
7509
|
generateParamConfigMetadata('failOnSchemaMismatch', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
7198
7510
|
];
|
|
7199
7511
|
const getDataAssetDependencies_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$E, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
7200
|
-
const createResourceParams$E = /*#__PURE__*/ createResourceParams
|
|
7512
|
+
const createResourceParams$E = /*#__PURE__*/ createResourceParams$$(getDataAssetDependencies_ConfigPropertyMetadata);
|
|
7201
7513
|
function keyBuilder$W(luvio, config) {
|
|
7202
7514
|
const resourceParams = createResourceParams$E(config);
|
|
7203
7515
|
return keyBuilder$X(luvio, resourceParams);
|
|
7204
7516
|
}
|
|
7205
7517
|
function typeCheckConfig$E(untrustedConfig) {
|
|
7206
7518
|
const config = {};
|
|
7207
|
-
typeCheckConfig
|
|
7519
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
7208
7520
|
return config;
|
|
7209
7521
|
}
|
|
7210
7522
|
function validateAdapterConfig$E(untrustedConfig, configPropertyNames) {
|
|
@@ -7253,7 +7565,7 @@ function buildNetworkSnapshot$E(luvio, config, options) {
|
|
|
7253
7565
|
});
|
|
7254
7566
|
}
|
|
7255
7567
|
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
7256
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7568
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$E, undefined, false);
|
|
7257
7569
|
}
|
|
7258
7570
|
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
7259
7571
|
const { luvio, config } = context;
|
|
@@ -7499,10 +7811,10 @@ const follow_ConfigPropertyMetadata = [
|
|
|
7499
7811
|
generateParamConfigMetadata('followedTimeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
7500
7812
|
];
|
|
7501
7813
|
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$D, follow_ConfigPropertyMetadata);
|
|
7502
|
-
const createResourceParams$D = /*#__PURE__*/ createResourceParams
|
|
7814
|
+
const createResourceParams$D = /*#__PURE__*/ createResourceParams$$(follow_ConfigPropertyMetadata);
|
|
7503
7815
|
function typeCheckConfig$D(untrustedConfig) {
|
|
7504
7816
|
const config = {};
|
|
7505
|
-
typeCheckConfig
|
|
7817
|
+
typeCheckConfig$$(untrustedConfig, config, follow_ConfigPropertyMetadata);
|
|
7506
7818
|
const untrustedConfig_followedTimeRange = untrustedConfig.followedTimeRange;
|
|
7507
7819
|
const referenceFollowedTimeRangeRepresentationValidationError = validate$D(untrustedConfig_followedTimeRange);
|
|
7508
7820
|
if (referenceFollowedTimeRangeRepresentationValidationError === null) {
|
|
@@ -7676,10 +7988,10 @@ const updateFollowedAsset_ConfigPropertyMetadata = [
|
|
|
7676
7988
|
generateParamConfigMetadata('updateAllAssets', false, 2 /* Body */, 1 /* Boolean */),
|
|
7677
7989
|
];
|
|
7678
7990
|
const updateFollowedAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$C, updateFollowedAsset_ConfigPropertyMetadata);
|
|
7679
|
-
const createResourceParams$C = /*#__PURE__*/ createResourceParams
|
|
7991
|
+
const createResourceParams$C = /*#__PURE__*/ createResourceParams$$(updateFollowedAsset_ConfigPropertyMetadata);
|
|
7680
7992
|
function typeCheckConfig$C(untrustedConfig) {
|
|
7681
7993
|
const config = {};
|
|
7682
|
-
typeCheckConfig
|
|
7994
|
+
typeCheckConfig$$(untrustedConfig, config, updateFollowedAsset_ConfigPropertyMetadata);
|
|
7683
7995
|
const untrustedConfig_followedTimeRange = untrustedConfig.followedTimeRange;
|
|
7684
7996
|
const referenceFollowedTimeRangeRepresentationValidationError = validate$D(untrustedConfig_followedTimeRange);
|
|
7685
7997
|
if (referenceFollowedTimeRangeRepresentationValidationError === null) {
|
|
@@ -7864,10 +8176,10 @@ const unfollow_ConfigPropertyMetadata = [
|
|
|
7864
8176
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7865
8177
|
];
|
|
7866
8178
|
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, unfollow_ConfigPropertyMetadata);
|
|
7867
|
-
const createResourceParams$B = /*#__PURE__*/ createResourceParams
|
|
8179
|
+
const createResourceParams$B = /*#__PURE__*/ createResourceParams$$(unfollow_ConfigPropertyMetadata);
|
|
7868
8180
|
function typeCheckConfig$B(untrustedConfig) {
|
|
7869
8181
|
const config = {};
|
|
7870
|
-
typeCheckConfig
|
|
8182
|
+
typeCheckConfig$$(untrustedConfig, config, unfollow_ConfigPropertyMetadata);
|
|
7871
8183
|
return config;
|
|
7872
8184
|
}
|
|
7873
8185
|
function validateAdapterConfig$B(untrustedConfig, configPropertyNames) {
|
|
@@ -8038,14 +8350,14 @@ const getFollowers_ConfigPropertyMetadata = [
|
|
|
8038
8350
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
8039
8351
|
];
|
|
8040
8352
|
const getFollowers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, getFollowers_ConfigPropertyMetadata);
|
|
8041
|
-
const createResourceParams$A = /*#__PURE__*/ createResourceParams
|
|
8353
|
+
const createResourceParams$A = /*#__PURE__*/ createResourceParams$$(getFollowers_ConfigPropertyMetadata);
|
|
8042
8354
|
function keyBuilder$Q(luvio, config) {
|
|
8043
8355
|
const resourceParams = createResourceParams$A(config);
|
|
8044
8356
|
return keyBuilder$R(luvio, resourceParams);
|
|
8045
8357
|
}
|
|
8046
8358
|
function typeCheckConfig$A(untrustedConfig) {
|
|
8047
8359
|
const config = {};
|
|
8048
|
-
typeCheckConfig
|
|
8360
|
+
typeCheckConfig$$(untrustedConfig, config, getFollowers_ConfigPropertyMetadata);
|
|
8049
8361
|
return config;
|
|
8050
8362
|
}
|
|
8051
8363
|
function validateAdapterConfig$A(untrustedConfig, configPropertyNames) {
|
|
@@ -8094,7 +8406,7 @@ function buildNetworkSnapshot$A(luvio, config, options) {
|
|
|
8094
8406
|
});
|
|
8095
8407
|
}
|
|
8096
8408
|
function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
|
|
8097
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8409
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$A, undefined, false);
|
|
8098
8410
|
}
|
|
8099
8411
|
function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
8100
8412
|
const { luvio, config } = context;
|
|
@@ -8244,14 +8556,14 @@ const getFollowedAssets_ConfigPropertyMetadata = [
|
|
|
8244
8556
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
8245
8557
|
];
|
|
8246
8558
|
const getFollowedAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, getFollowedAssets_ConfigPropertyMetadata);
|
|
8247
|
-
const createResourceParams$z = /*#__PURE__*/ createResourceParams
|
|
8559
|
+
const createResourceParams$z = /*#__PURE__*/ createResourceParams$$(getFollowedAssets_ConfigPropertyMetadata);
|
|
8248
8560
|
function keyBuilder$O(luvio, config) {
|
|
8249
8561
|
const resourceParams = createResourceParams$z(config);
|
|
8250
8562
|
return keyBuilder$P(luvio, resourceParams);
|
|
8251
8563
|
}
|
|
8252
8564
|
function typeCheckConfig$z(untrustedConfig) {
|
|
8253
8565
|
const config = {};
|
|
8254
|
-
typeCheckConfig
|
|
8566
|
+
typeCheckConfig$$(untrustedConfig, config, getFollowedAssets_ConfigPropertyMetadata);
|
|
8255
8567
|
return config;
|
|
8256
8568
|
}
|
|
8257
8569
|
function validateAdapterConfig$z(untrustedConfig, configPropertyNames) {
|
|
@@ -8300,7 +8612,7 @@ function buildNetworkSnapshot$z(luvio, config, options) {
|
|
|
8300
8612
|
});
|
|
8301
8613
|
}
|
|
8302
8614
|
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
8303
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8615
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$z, undefined, false);
|
|
8304
8616
|
}
|
|
8305
8617
|
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
8306
8618
|
const { luvio, config } = context;
|
|
@@ -8438,14 +8750,14 @@ const getUniqueFollowerCount_ConfigPropertyMetadata = [
|
|
|
8438
8750
|
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
8439
8751
|
];
|
|
8440
8752
|
const getUniqueFollowerCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
8441
|
-
const createResourceParams$y = /*#__PURE__*/ createResourceParams
|
|
8753
|
+
const createResourceParams$y = /*#__PURE__*/ createResourceParams$$(getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
8442
8754
|
function keyBuilder$M(luvio, config) {
|
|
8443
8755
|
const resourceParams = createResourceParams$y(config);
|
|
8444
8756
|
return keyBuilder$N(luvio, resourceParams);
|
|
8445
8757
|
}
|
|
8446
8758
|
function typeCheckConfig$y(untrustedConfig) {
|
|
8447
8759
|
const config = {};
|
|
8448
|
-
typeCheckConfig
|
|
8760
|
+
typeCheckConfig$$(untrustedConfig, config, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
8449
8761
|
return config;
|
|
8450
8762
|
}
|
|
8451
8763
|
function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
|
|
@@ -8494,7 +8806,7 @@ function buildNetworkSnapshot$y(luvio, config, options) {
|
|
|
8494
8806
|
});
|
|
8495
8807
|
}
|
|
8496
8808
|
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
8497
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8809
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$y, undefined, false);
|
|
8498
8810
|
}
|
|
8499
8811
|
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
8500
8812
|
const { luvio, config } = context;
|
|
@@ -8635,7 +8947,7 @@ const createLoglines_ConfigPropertyMetadata = [
|
|
|
8635
8947
|
generateParamConfigMetadata('loglines', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
8636
8948
|
];
|
|
8637
8949
|
const createLoglines_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, createLoglines_ConfigPropertyMetadata);
|
|
8638
|
-
const createResourceParams$x = /*#__PURE__*/ createResourceParams
|
|
8950
|
+
const createResourceParams$x = /*#__PURE__*/ createResourceParams$$(createLoglines_ConfigPropertyMetadata);
|
|
8639
8951
|
function typeCheckConfig$x(untrustedConfig) {
|
|
8640
8952
|
const config = {};
|
|
8641
8953
|
const untrustedConfig_loglines = untrustedConfig.loglines;
|
|
@@ -8848,7 +9160,7 @@ function createResourceRequest$w(config) {
|
|
|
8848
9160
|
const adapterName$w = 'getOrg';
|
|
8849
9161
|
const getOrg_ConfigPropertyMetadata = [];
|
|
8850
9162
|
const getOrg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, getOrg_ConfigPropertyMetadata);
|
|
8851
|
-
const createResourceParams$w = /*#__PURE__*/ createResourceParams
|
|
9163
|
+
const createResourceParams$w = /*#__PURE__*/ createResourceParams$$(getOrg_ConfigPropertyMetadata);
|
|
8852
9164
|
function keyBuilder$J(luvio, config) {
|
|
8853
9165
|
createResourceParams$w(config);
|
|
8854
9166
|
return keyBuilder$K();
|
|
@@ -8903,7 +9215,7 @@ function buildNetworkSnapshot$w(luvio, config, options) {
|
|
|
8903
9215
|
});
|
|
8904
9216
|
}
|
|
8905
9217
|
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
8906
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9218
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$w, undefined, false);
|
|
8907
9219
|
}
|
|
8908
9220
|
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
8909
9221
|
const { luvio, config } = context;
|
|
@@ -9220,10 +9532,10 @@ const deleteAllShares_ConfigPropertyMetadata = [
|
|
|
9220
9532
|
generateParamConfigMetadata('filterByRecipientType', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
9221
9533
|
];
|
|
9222
9534
|
const deleteAllShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, deleteAllShares_ConfigPropertyMetadata);
|
|
9223
|
-
const createResourceParams$v = /*#__PURE__*/ createResourceParams
|
|
9535
|
+
const createResourceParams$v = /*#__PURE__*/ createResourceParams$$(deleteAllShares_ConfigPropertyMetadata);
|
|
9224
9536
|
function typeCheckConfig$v(untrustedConfig) {
|
|
9225
9537
|
const config = {};
|
|
9226
|
-
typeCheckConfig
|
|
9538
|
+
typeCheckConfig$$(untrustedConfig, config, deleteAllShares_ConfigPropertyMetadata);
|
|
9227
9539
|
const untrustedConfig_userOrGroupId = untrustedConfig.userOrGroupId;
|
|
9228
9540
|
if (typeof untrustedConfig_userOrGroupId === 'string') {
|
|
9229
9541
|
config.userOrGroupId = untrustedConfig_userOrGroupId;
|
|
@@ -9346,14 +9658,14 @@ const getShares_ConfigPropertyMetadata = [
|
|
|
9346
9658
|
generateParamConfigMetadata('recipientSearchTerm', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9347
9659
|
];
|
|
9348
9660
|
const getShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, getShares_ConfigPropertyMetadata);
|
|
9349
|
-
const createResourceParams$u = /*#__PURE__*/ createResourceParams
|
|
9661
|
+
const createResourceParams$u = /*#__PURE__*/ createResourceParams$$(getShares_ConfigPropertyMetadata);
|
|
9350
9662
|
function keyBuilder$E(luvio, config) {
|
|
9351
9663
|
const resourceParams = createResourceParams$u(config);
|
|
9352
9664
|
return keyBuilder$F(luvio, resourceParams);
|
|
9353
9665
|
}
|
|
9354
9666
|
function typeCheckConfig$u(untrustedConfig) {
|
|
9355
9667
|
const config = {};
|
|
9356
|
-
typeCheckConfig
|
|
9668
|
+
typeCheckConfig$$(untrustedConfig, config, getShares_ConfigPropertyMetadata);
|
|
9357
9669
|
return config;
|
|
9358
9670
|
}
|
|
9359
9671
|
function validateAdapterConfig$u(untrustedConfig, configPropertyNames) {
|
|
@@ -9402,7 +9714,7 @@ function buildNetworkSnapshot$u(luvio, config, options) {
|
|
|
9402
9714
|
});
|
|
9403
9715
|
}
|
|
9404
9716
|
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
9405
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9717
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$u, undefined, false);
|
|
9406
9718
|
}
|
|
9407
9719
|
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
9408
9720
|
const { luvio, config } = context;
|
|
@@ -9643,10 +9955,10 @@ const updateRecordShares_ConfigPropertyMetadata = [
|
|
|
9643
9955
|
generateParamConfigMetadata('updateSetupRecordAccessItems', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9644
9956
|
];
|
|
9645
9957
|
const updateRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, updateRecordShares_ConfigPropertyMetadata);
|
|
9646
|
-
const createResourceParams$t = /*#__PURE__*/ createResourceParams
|
|
9958
|
+
const createResourceParams$t = /*#__PURE__*/ createResourceParams$$(updateRecordShares_ConfigPropertyMetadata);
|
|
9647
9959
|
function typeCheckConfig$t(untrustedConfig) {
|
|
9648
9960
|
const config = {};
|
|
9649
|
-
typeCheckConfig
|
|
9961
|
+
typeCheckConfig$$(untrustedConfig, config, updateRecordShares_ConfigPropertyMetadata);
|
|
9650
9962
|
const untrustedConfig_updateSetupRecordAccessItems = untrustedConfig.updateSetupRecordAccessItems;
|
|
9651
9963
|
if (ArrayIsArray$1(untrustedConfig_updateSetupRecordAccessItems)) {
|
|
9652
9964
|
const untrustedConfig_updateSetupRecordAccessItems_array = [];
|
|
@@ -9744,10 +10056,10 @@ const createRecordShares_ConfigPropertyMetadata = [
|
|
|
9744
10056
|
generateParamConfigMetadata('sendNotificationToRecipients', false, 2 /* Body */, 1 /* Boolean */),
|
|
9745
10057
|
];
|
|
9746
10058
|
const createRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, createRecordShares_ConfigPropertyMetadata);
|
|
9747
|
-
const createResourceParams$s = /*#__PURE__*/ createResourceParams
|
|
10059
|
+
const createResourceParams$s = /*#__PURE__*/ createResourceParams$$(createRecordShares_ConfigPropertyMetadata);
|
|
9748
10060
|
function typeCheckConfig$s(untrustedConfig) {
|
|
9749
10061
|
const config = {};
|
|
9750
|
-
typeCheckConfig
|
|
10062
|
+
typeCheckConfig$$(untrustedConfig, config, createRecordShares_ConfigPropertyMetadata);
|
|
9751
10063
|
const untrustedConfig_accessRequestItems = untrustedConfig.accessRequestItems;
|
|
9752
10064
|
if (ArrayIsArray$1(untrustedConfig_accessRequestItems)) {
|
|
9753
10065
|
const untrustedConfig_accessRequestItems_array = [];
|
|
@@ -9839,10 +10151,10 @@ const deleteRecordShare_ConfigPropertyMetadata = [
|
|
|
9839
10151
|
generateParamConfigMetadata('userOrGroupId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9840
10152
|
];
|
|
9841
10153
|
const deleteRecordShare_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, deleteRecordShare_ConfigPropertyMetadata);
|
|
9842
|
-
const createResourceParams$r = /*#__PURE__*/ createResourceParams
|
|
10154
|
+
const createResourceParams$r = /*#__PURE__*/ createResourceParams$$(deleteRecordShare_ConfigPropertyMetadata);
|
|
9843
10155
|
function typeCheckConfig$r(untrustedConfig) {
|
|
9844
10156
|
const config = {};
|
|
9845
|
-
typeCheckConfig
|
|
10157
|
+
typeCheckConfig$$(untrustedConfig, config, deleteRecordShare_ConfigPropertyMetadata);
|
|
9846
10158
|
return config;
|
|
9847
10159
|
}
|
|
9848
10160
|
function validateAdapterConfig$r(untrustedConfig, configPropertyNames) {
|
|
@@ -10167,14 +10479,14 @@ const getAssetSlackChannels_ConfigPropertyMetadata = [
|
|
|
10167
10479
|
generateParamConfigMetadata('assetId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
10168
10480
|
];
|
|
10169
10481
|
const getAssetSlackChannels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
10170
|
-
const createResourceParams$q = /*#__PURE__*/ createResourceParams
|
|
10482
|
+
const createResourceParams$q = /*#__PURE__*/ createResourceParams$$(getAssetSlackChannels_ConfigPropertyMetadata);
|
|
10171
10483
|
function keyBuilder$z(luvio, config) {
|
|
10172
10484
|
const resourceParams = createResourceParams$q(config);
|
|
10173
10485
|
return keyBuilder$A(luvio, resourceParams);
|
|
10174
10486
|
}
|
|
10175
10487
|
function typeCheckConfig$q(untrustedConfig) {
|
|
10176
10488
|
const config = {};
|
|
10177
|
-
typeCheckConfig
|
|
10489
|
+
typeCheckConfig$$(untrustedConfig, config, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
10178
10490
|
return config;
|
|
10179
10491
|
}
|
|
10180
10492
|
function validateAdapterConfig$q(untrustedConfig, configPropertyNames) {
|
|
@@ -10223,7 +10535,7 @@ function buildNetworkSnapshot$q(luvio, config, options) {
|
|
|
10223
10535
|
});
|
|
10224
10536
|
}
|
|
10225
10537
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
10226
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10538
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$q, undefined, false);
|
|
10227
10539
|
}
|
|
10228
10540
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
10229
10541
|
const { luvio, config } = context;
|
|
@@ -10292,10 +10604,10 @@ const createAssetSlackChannel_ConfigPropertyMetadata = [
|
|
|
10292
10604
|
generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
|
|
10293
10605
|
];
|
|
10294
10606
|
const createAssetSlackChannel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
10295
|
-
const createResourceParams$p = /*#__PURE__*/ createResourceParams
|
|
10607
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$$(createAssetSlackChannel_ConfigPropertyMetadata);
|
|
10296
10608
|
function typeCheckConfig$p(untrustedConfig) {
|
|
10297
10609
|
const config = {};
|
|
10298
|
-
typeCheckConfig
|
|
10610
|
+
typeCheckConfig$$(untrustedConfig, config, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
10299
10611
|
return config;
|
|
10300
10612
|
}
|
|
10301
10613
|
function validateAdapterConfig$p(untrustedConfig, configPropertyNames) {
|
|
@@ -10475,10 +10787,10 @@ const queryUsers_ConfigPropertyMetadata = [
|
|
|
10475
10787
|
generateParamConfigMetadata('offset', false, 2 /* Body */, 3 /* Integer */),
|
|
10476
10788
|
];
|
|
10477
10789
|
const queryUsers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, queryUsers_ConfigPropertyMetadata);
|
|
10478
|
-
const createResourceParams$o = /*#__PURE__*/ createResourceParams
|
|
10790
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$$(queryUsers_ConfigPropertyMetadata);
|
|
10479
10791
|
function typeCheckConfig$o(untrustedConfig) {
|
|
10480
10792
|
const config = {};
|
|
10481
|
-
typeCheckConfig
|
|
10793
|
+
typeCheckConfig$$(untrustedConfig, config, queryUsers_ConfigPropertyMetadata);
|
|
10482
10794
|
return config;
|
|
10483
10795
|
}
|
|
10484
10796
|
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
@@ -10836,14 +11148,14 @@ const getVisualizations_ConfigPropertyMetadata = [
|
|
|
10836
11148
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
10837
11149
|
];
|
|
10838
11150
|
const getVisualizations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, getVisualizations_ConfigPropertyMetadata);
|
|
10839
|
-
const createResourceParams$n = /*#__PURE__*/ createResourceParams
|
|
11151
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$$(getVisualizations_ConfigPropertyMetadata);
|
|
10840
11152
|
function keyBuilder$v(luvio, config) {
|
|
10841
11153
|
const resourceParams = createResourceParams$n(config);
|
|
10842
11154
|
return keyBuilder$w(luvio, resourceParams);
|
|
10843
11155
|
}
|
|
10844
11156
|
function typeCheckConfig$n(untrustedConfig) {
|
|
10845
11157
|
const config = {};
|
|
10846
|
-
typeCheckConfig
|
|
11158
|
+
typeCheckConfig$$(untrustedConfig, config, getVisualizations_ConfigPropertyMetadata);
|
|
10847
11159
|
return config;
|
|
10848
11160
|
}
|
|
10849
11161
|
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
@@ -10892,7 +11204,7 @@ function buildNetworkSnapshot$n(luvio, config, options) {
|
|
|
10892
11204
|
});
|
|
10893
11205
|
}
|
|
10894
11206
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
10895
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11207
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$n, undefined, false);
|
|
10896
11208
|
}
|
|
10897
11209
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
10898
11210
|
const { luvio, config } = context;
|
|
@@ -11175,10 +11487,10 @@ const createVisualization_ConfigPropertyMetadata = [
|
|
|
11175
11487
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11176
11488
|
];
|
|
11177
11489
|
const createVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, createVisualization_ConfigPropertyMetadata);
|
|
11178
|
-
const createResourceParams$m = /*#__PURE__*/ createResourceParams
|
|
11490
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$$(createVisualization_ConfigPropertyMetadata);
|
|
11179
11491
|
function typeCheckConfig$m(untrustedConfig) {
|
|
11180
11492
|
const config = {};
|
|
11181
|
-
typeCheckConfig
|
|
11493
|
+
typeCheckConfig$$(untrustedConfig, config, createVisualization_ConfigPropertyMetadata);
|
|
11182
11494
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
11183
11495
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
11184
11496
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -11343,10 +11655,10 @@ const deleteVisualization_ConfigPropertyMetadata = [
|
|
|
11343
11655
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11344
11656
|
];
|
|
11345
11657
|
const deleteVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, deleteVisualization_ConfigPropertyMetadata);
|
|
11346
|
-
const createResourceParams$l = /*#__PURE__*/ createResourceParams
|
|
11658
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$$(deleteVisualization_ConfigPropertyMetadata);
|
|
11347
11659
|
function typeCheckConfig$l(untrustedConfig) {
|
|
11348
11660
|
const config = {};
|
|
11349
|
-
typeCheckConfig
|
|
11661
|
+
typeCheckConfig$$(untrustedConfig, config, deleteVisualization_ConfigPropertyMetadata);
|
|
11350
11662
|
return config;
|
|
11351
11663
|
}
|
|
11352
11664
|
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
@@ -11445,14 +11757,14 @@ const getVisualization_ConfigPropertyMetadata = [
|
|
|
11445
11757
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
11446
11758
|
];
|
|
11447
11759
|
const getVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getVisualization_ConfigPropertyMetadata);
|
|
11448
|
-
const createResourceParams$k = /*#__PURE__*/ createResourceParams
|
|
11760
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$$(getVisualization_ConfigPropertyMetadata);
|
|
11449
11761
|
function keyBuilder$r(luvio, config) {
|
|
11450
11762
|
const resourceParams = createResourceParams$k(config);
|
|
11451
11763
|
return keyBuilder$s(luvio, resourceParams);
|
|
11452
11764
|
}
|
|
11453
11765
|
function typeCheckConfig$k(untrustedConfig) {
|
|
11454
11766
|
const config = {};
|
|
11455
|
-
typeCheckConfig
|
|
11767
|
+
typeCheckConfig$$(untrustedConfig, config, getVisualization_ConfigPropertyMetadata);
|
|
11456
11768
|
return config;
|
|
11457
11769
|
}
|
|
11458
11770
|
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
@@ -11501,7 +11813,7 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
11501
11813
|
});
|
|
11502
11814
|
}
|
|
11503
11815
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
11504
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11816
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
11505
11817
|
}
|
|
11506
11818
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
11507
11819
|
const { luvio, config } = context;
|
|
@@ -11579,10 +11891,10 @@ const updateVisualization_ConfigPropertyMetadata = [
|
|
|
11579
11891
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11580
11892
|
];
|
|
11581
11893
|
const updateVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, updateVisualization_ConfigPropertyMetadata);
|
|
11582
|
-
const createResourceParams$j = /*#__PURE__*/ createResourceParams
|
|
11894
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$$(updateVisualization_ConfigPropertyMetadata);
|
|
11583
11895
|
function typeCheckConfig$j(untrustedConfig) {
|
|
11584
11896
|
const config = {};
|
|
11585
|
-
typeCheckConfig
|
|
11897
|
+
typeCheckConfig$$(untrustedConfig, config, updateVisualization_ConfigPropertyMetadata);
|
|
11586
11898
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
11587
11899
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
11588
11900
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -11847,14 +12159,14 @@ const getVisualizationBundle_ConfigPropertyMetadata = [
|
|
|
11847
12159
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
11848
12160
|
];
|
|
11849
12161
|
const getVisualizationBundle_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getVisualizationBundle_ConfigPropertyMetadata);
|
|
11850
|
-
const createResourceParams$i = /*#__PURE__*/ createResourceParams
|
|
12162
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$$(getVisualizationBundle_ConfigPropertyMetadata);
|
|
11851
12163
|
function keyBuilder$o(luvio, config) {
|
|
11852
12164
|
const resourceParams = createResourceParams$i(config);
|
|
11853
12165
|
return keyBuilder$p(luvio, resourceParams);
|
|
11854
12166
|
}
|
|
11855
12167
|
function typeCheckConfig$i(untrustedConfig) {
|
|
11856
12168
|
const config = {};
|
|
11857
|
-
typeCheckConfig
|
|
12169
|
+
typeCheckConfig$$(untrustedConfig, config, getVisualizationBundle_ConfigPropertyMetadata);
|
|
11858
12170
|
return config;
|
|
11859
12171
|
}
|
|
11860
12172
|
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
@@ -11903,7 +12215,7 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
11903
12215
|
});
|
|
11904
12216
|
}
|
|
11905
12217
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
11906
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12218
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
11907
12219
|
}
|
|
11908
12220
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
11909
12221
|
const { luvio, config } = context;
|
|
@@ -12192,14 +12504,14 @@ const getWorkspaces_ConfigPropertyMetadata = [
|
|
|
12192
12504
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
12193
12505
|
];
|
|
12194
12506
|
const getWorkspaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getWorkspaces_ConfigPropertyMetadata);
|
|
12195
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams
|
|
12507
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$$(getWorkspaces_ConfigPropertyMetadata);
|
|
12196
12508
|
function keyBuilder$l(luvio, config) {
|
|
12197
12509
|
const resourceParams = createResourceParams$h(config);
|
|
12198
12510
|
return keyBuilder$m(luvio, resourceParams);
|
|
12199
12511
|
}
|
|
12200
12512
|
function typeCheckConfig$h(untrustedConfig) {
|
|
12201
12513
|
const config = {};
|
|
12202
|
-
typeCheckConfig
|
|
12514
|
+
typeCheckConfig$$(untrustedConfig, config, getWorkspaces_ConfigPropertyMetadata);
|
|
12203
12515
|
return config;
|
|
12204
12516
|
}
|
|
12205
12517
|
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
@@ -12248,7 +12560,7 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
12248
12560
|
});
|
|
12249
12561
|
}
|
|
12250
12562
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
12251
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12563
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
12252
12564
|
}
|
|
12253
12565
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
12254
12566
|
const { luvio, config } = context;
|
|
@@ -12318,10 +12630,10 @@ const createWorkspace_ConfigPropertyMetadata = [
|
|
|
12318
12630
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
12319
12631
|
];
|
|
12320
12632
|
const createWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, createWorkspace_ConfigPropertyMetadata);
|
|
12321
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams
|
|
12633
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$$(createWorkspace_ConfigPropertyMetadata);
|
|
12322
12634
|
function typeCheckConfig$g(untrustedConfig) {
|
|
12323
12635
|
const config = {};
|
|
12324
|
-
typeCheckConfig
|
|
12636
|
+
typeCheckConfig$$(untrustedConfig, config, createWorkspace_ConfigPropertyMetadata);
|
|
12325
12637
|
return config;
|
|
12326
12638
|
}
|
|
12327
12639
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -12402,10 +12714,10 @@ const deleteWorkspace_ConfigPropertyMetadata = [
|
|
|
12402
12714
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12403
12715
|
];
|
|
12404
12716
|
const deleteWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, deleteWorkspace_ConfigPropertyMetadata);
|
|
12405
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams
|
|
12717
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$$(deleteWorkspace_ConfigPropertyMetadata);
|
|
12406
12718
|
function typeCheckConfig$f(untrustedConfig) {
|
|
12407
12719
|
const config = {};
|
|
12408
|
-
typeCheckConfig
|
|
12720
|
+
typeCheckConfig$$(untrustedConfig, config, deleteWorkspace_ConfigPropertyMetadata);
|
|
12409
12721
|
return config;
|
|
12410
12722
|
}
|
|
12411
12723
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -12503,14 +12815,14 @@ const getWorkspaceByIdOrName_ConfigPropertyMetadata = [
|
|
|
12503
12815
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12504
12816
|
];
|
|
12505
12817
|
const getWorkspaceByIdOrName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
12506
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams
|
|
12818
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$$(getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
12507
12819
|
function keyBuilder$i(luvio, config) {
|
|
12508
12820
|
const resourceParams = createResourceParams$e(config);
|
|
12509
12821
|
return keyBuilder$j(luvio, resourceParams);
|
|
12510
12822
|
}
|
|
12511
12823
|
function typeCheckConfig$e(untrustedConfig) {
|
|
12512
12824
|
const config = {};
|
|
12513
|
-
typeCheckConfig
|
|
12825
|
+
typeCheckConfig$$(untrustedConfig, config, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
12514
12826
|
return config;
|
|
12515
12827
|
}
|
|
12516
12828
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -12559,7 +12871,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
12559
12871
|
});
|
|
12560
12872
|
}
|
|
12561
12873
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
12562
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12874
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
12563
12875
|
}
|
|
12564
12876
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
12565
12877
|
const { luvio, config } = context;
|
|
@@ -12630,10 +12942,10 @@ const updateWorkspace_ConfigPropertyMetadata = [
|
|
|
12630
12942
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
12631
12943
|
];
|
|
12632
12944
|
const updateWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, updateWorkspace_ConfigPropertyMetadata);
|
|
12633
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams
|
|
12945
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$$(updateWorkspace_ConfigPropertyMetadata);
|
|
12634
12946
|
function typeCheckConfig$d(untrustedConfig) {
|
|
12635
12947
|
const config = {};
|
|
12636
|
-
typeCheckConfig
|
|
12948
|
+
typeCheckConfig$$(untrustedConfig, config, updateWorkspace_ConfigPropertyMetadata);
|
|
12637
12949
|
return config;
|
|
12638
12950
|
}
|
|
12639
12951
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -12814,10 +13126,10 @@ const createWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
12814
13126
|
generateParamConfigMetadata('assetUsageType', true, 2 /* Body */, 0 /* String */),
|
|
12815
13127
|
];
|
|
12816
13128
|
const createWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
12817
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams
|
|
13129
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$$(createWorkspaceAsset_ConfigPropertyMetadata);
|
|
12818
13130
|
function typeCheckConfig$c(untrustedConfig) {
|
|
12819
13131
|
const config = {};
|
|
12820
|
-
typeCheckConfig
|
|
13132
|
+
typeCheckConfig$$(untrustedConfig, config, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
12821
13133
|
return config;
|
|
12822
13134
|
}
|
|
12823
13135
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -12899,10 +13211,10 @@ const deleteWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
12899
13211
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12900
13212
|
];
|
|
12901
13213
|
const deleteWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
12902
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams
|
|
13214
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$$(deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
12903
13215
|
function typeCheckConfig$b(untrustedConfig) {
|
|
12904
13216
|
const config = {};
|
|
12905
|
-
typeCheckConfig
|
|
13217
|
+
typeCheckConfig$$(untrustedConfig, config, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
12906
13218
|
return config;
|
|
12907
13219
|
}
|
|
12908
13220
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -13287,14 +13599,14 @@ const getFlows_ConfigPropertyMetadata = [
|
|
|
13287
13599
|
generateParamConfigMetadata('searchTerm', false, 1 /* QueryParameter */, 0 /* String */),
|
|
13288
13600
|
];
|
|
13289
13601
|
const getFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getFlows_ConfigPropertyMetadata);
|
|
13290
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams
|
|
13602
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$$(getFlows_ConfigPropertyMetadata);
|
|
13291
13603
|
function keyBuilder$e(luvio, config) {
|
|
13292
13604
|
const resourceParams = createResourceParams$a(config);
|
|
13293
13605
|
return keyBuilder$f(luvio, resourceParams);
|
|
13294
13606
|
}
|
|
13295
13607
|
function typeCheckConfig$a(untrustedConfig) {
|
|
13296
13608
|
const config = {};
|
|
13297
|
-
typeCheckConfig
|
|
13609
|
+
typeCheckConfig$$(untrustedConfig, config, getFlows_ConfigPropertyMetadata);
|
|
13298
13610
|
return config;
|
|
13299
13611
|
}
|
|
13300
13612
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -13343,7 +13655,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
13343
13655
|
});
|
|
13344
13656
|
}
|
|
13345
13657
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
13346
|
-
return buildNetworkSnapshotCachePolicy$
|
|
13658
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
13347
13659
|
}
|
|
13348
13660
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
13349
13661
|
const { luvio, config } = context;
|
|
@@ -13419,14 +13731,14 @@ const getFlowByName_ConfigPropertyMetadata = [
|
|
|
13419
13731
|
generateParamConfigMetadata('flowApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13420
13732
|
];
|
|
13421
13733
|
const getFlowByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getFlowByName_ConfigPropertyMetadata);
|
|
13422
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams
|
|
13734
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$$(getFlowByName_ConfigPropertyMetadata);
|
|
13423
13735
|
function keyBuilder$c(luvio, config) {
|
|
13424
13736
|
const resourceParams = createResourceParams$9(config);
|
|
13425
13737
|
return keyBuilder$d(luvio, resourceParams);
|
|
13426
13738
|
}
|
|
13427
13739
|
function typeCheckConfig$9(untrustedConfig) {
|
|
13428
13740
|
const config = {};
|
|
13429
|
-
typeCheckConfig
|
|
13741
|
+
typeCheckConfig$$(untrustedConfig, config, getFlowByName_ConfigPropertyMetadata);
|
|
13430
13742
|
return config;
|
|
13431
13743
|
}
|
|
13432
13744
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -13475,7 +13787,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
13475
13787
|
});
|
|
13476
13788
|
}
|
|
13477
13789
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
13478
|
-
return buildNetworkSnapshotCachePolicy$
|
|
13790
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
13479
13791
|
}
|
|
13480
13792
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
13481
13793
|
const { luvio, config } = context;
|
|
@@ -13633,14 +13945,14 @@ const getSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
13633
13945
|
generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13634
13946
|
];
|
|
13635
13947
|
const getSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13636
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams
|
|
13948
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$$(getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13637
13949
|
function keyBuilder$9(luvio, config) {
|
|
13638
13950
|
const resourceParams = createResourceParams$8(config);
|
|
13639
13951
|
return keyBuilder$a(luvio, resourceParams);
|
|
13640
13952
|
}
|
|
13641
13953
|
function typeCheckConfig$8(untrustedConfig) {
|
|
13642
13954
|
const config = {};
|
|
13643
|
-
typeCheckConfig
|
|
13955
|
+
typeCheckConfig$$(untrustedConfig, config, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13644
13956
|
return config;
|
|
13645
13957
|
}
|
|
13646
13958
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -13689,7 +14001,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
13689
14001
|
});
|
|
13690
14002
|
}
|
|
13691
14003
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
13692
|
-
return buildNetworkSnapshotCachePolicy$
|
|
14004
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
13693
14005
|
}
|
|
13694
14006
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
13695
14007
|
const { luvio, config } = context;
|
|
@@ -13758,10 +14070,10 @@ const updateSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
13758
14070
|
generateParamConfigMetadata('scheduleType', true, 2 /* Body */, 0 /* String */),
|
|
13759
14071
|
];
|
|
13760
14072
|
const updateSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13761
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams
|
|
14073
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$$(updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13762
14074
|
function typeCheckConfig$7(untrustedConfig) {
|
|
13763
14075
|
const config = {};
|
|
13764
|
-
typeCheckConfig
|
|
14076
|
+
typeCheckConfig$$(untrustedConfig, config, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13765
14077
|
return config;
|
|
13766
14078
|
}
|
|
13767
14079
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -13993,10 +14305,10 @@ const getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata = [
|
|
|
13993
14305
|
generateParamConfigMetadata('sortDirection', false, 2 /* Body */, 0 /* String */),
|
|
13994
14306
|
];
|
|
13995
14307
|
const getUnifiedAnalyticsLibraryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
13996
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams
|
|
14308
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$$(getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
13997
14309
|
function typeCheckConfig$6(untrustedConfig) {
|
|
13998
14310
|
const config = {};
|
|
13999
|
-
typeCheckConfig
|
|
14311
|
+
typeCheckConfig$$(untrustedConfig, config, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
14000
14312
|
const untrustedConfig_assetTypes = untrustedConfig.assetTypes;
|
|
14001
14313
|
if (ArrayIsArray$1(untrustedConfig_assetTypes)) {
|
|
14002
14314
|
const untrustedConfig_assetTypes_array = [];
|
|
@@ -14228,10 +14540,10 @@ const generateSFDriveCredentials_ConfigPropertyMetadata = [
|
|
|
14228
14540
|
generateParamConfigMetadata('path', true, 2 /* Body */, 0 /* String */),
|
|
14229
14541
|
];
|
|
14230
14542
|
const generateSFDriveCredentials_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
14231
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams
|
|
14543
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$$(generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
14232
14544
|
function typeCheckConfig$5(untrustedConfig) {
|
|
14233
14545
|
const config = {};
|
|
14234
|
-
typeCheckConfig
|
|
14546
|
+
typeCheckConfig$$(untrustedConfig, config, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
14235
14547
|
return config;
|
|
14236
14548
|
}
|
|
14237
14549
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -14402,10 +14714,10 @@ const generateSFDrivePresignedCredentials_ConfigPropertyMetadata = [
|
|
|
14402
14714
|
generateParamConfigMetadata('fileName', true, 2 /* Body */, 0 /* String */),
|
|
14403
14715
|
];
|
|
14404
14716
|
const generateSFDrivePresignedCredentials_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, generateSFDrivePresignedCredentials_ConfigPropertyMetadata);
|
|
14405
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams
|
|
14717
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$$(generateSFDrivePresignedCredentials_ConfigPropertyMetadata);
|
|
14406
14718
|
function typeCheckConfig$4(untrustedConfig) {
|
|
14407
14719
|
const config = {};
|
|
14408
|
-
typeCheckConfig
|
|
14720
|
+
typeCheckConfig$$(untrustedConfig, config, generateSFDrivePresignedCredentials_ConfigPropertyMetadata);
|
|
14409
14721
|
return config;
|
|
14410
14722
|
}
|
|
14411
14723
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -14576,14 +14888,14 @@ const initiateMarketplaceListingInstallation_ConfigPropertyMetadata = [
|
|
|
14576
14888
|
generateParamConfigMetadata('listingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
14577
14889
|
];
|
|
14578
14890
|
const initiateMarketplaceListingInstallation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
14579
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams
|
|
14891
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$$(initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
14580
14892
|
function keyBuilder$4(luvio, config) {
|
|
14581
14893
|
const resourceParams = createResourceParams$3(config);
|
|
14582
14894
|
return keyBuilder$5(luvio, resourceParams);
|
|
14583
14895
|
}
|
|
14584
14896
|
function typeCheckConfig$3(untrustedConfig) {
|
|
14585
14897
|
const config = {};
|
|
14586
|
-
typeCheckConfig
|
|
14898
|
+
typeCheckConfig$$(untrustedConfig, config, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
14587
14899
|
return config;
|
|
14588
14900
|
}
|
|
14589
14901
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -14632,7 +14944,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
14632
14944
|
});
|
|
14633
14945
|
}
|
|
14634
14946
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
14635
|
-
return buildNetworkSnapshotCachePolicy$
|
|
14947
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
14636
14948
|
}
|
|
14637
14949
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
14638
14950
|
const { luvio, config } = context;
|
|
@@ -14810,14 +15122,14 @@ const getMarketplaceListingInstallationProgress_ConfigPropertyMetadata = [
|
|
|
14810
15122
|
generateParamConfigMetadata('installationId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
14811
15123
|
];
|
|
14812
15124
|
const getMarketplaceListingInstallationProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
14813
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams
|
|
15125
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$$(getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
14814
15126
|
function keyBuilder$2(luvio, config) {
|
|
14815
15127
|
const resourceParams = createResourceParams$2(config);
|
|
14816
15128
|
return keyBuilder$3(luvio, resourceParams);
|
|
14817
15129
|
}
|
|
14818
15130
|
function typeCheckConfig$2(untrustedConfig) {
|
|
14819
15131
|
const config = {};
|
|
14820
|
-
typeCheckConfig
|
|
15132
|
+
typeCheckConfig$$(untrustedConfig, config, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
14821
15133
|
return config;
|
|
14822
15134
|
}
|
|
14823
15135
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -14866,7 +15178,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
14866
15178
|
});
|
|
14867
15179
|
}
|
|
14868
15180
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
14869
|
-
return buildNetworkSnapshotCachePolicy$
|
|
15181
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
14870
15182
|
}
|
|
14871
15183
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
14872
15184
|
const { luvio, config } = context;
|
|
@@ -15002,10 +15314,10 @@ const createTemplate_ConfigPropertyMetadata = [
|
|
|
15002
15314
|
generateParamConfigMetadata('tags', true, 2 /* Body */, 4 /* Unsupported */),
|
|
15003
15315
|
];
|
|
15004
15316
|
const createTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createTemplate_ConfigPropertyMetadata);
|
|
15005
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams
|
|
15317
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$$(createTemplate_ConfigPropertyMetadata);
|
|
15006
15318
|
function typeCheckConfig$1(untrustedConfig) {
|
|
15007
15319
|
const config = {};
|
|
15008
|
-
typeCheckConfig
|
|
15320
|
+
typeCheckConfig$$(untrustedConfig, config, createTemplate_ConfigPropertyMetadata);
|
|
15009
15321
|
const untrustedConfig_tags = untrustedConfig.tags;
|
|
15010
15322
|
if (untrustedIsObject(untrustedConfig_tags)) {
|
|
15011
15323
|
const untrustedConfig_tags_object = {};
|
|
@@ -15182,10 +15494,10 @@ const publishToMarketplace_ConfigPropertyMetadata = [
|
|
|
15182
15494
|
generateParamConfigMetadata('assetVersion', false, 2 /* Body */, 2 /* Number */),
|
|
15183
15495
|
];
|
|
15184
15496
|
const publishToMarketplace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, publishToMarketplace_ConfigPropertyMetadata);
|
|
15185
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams
|
|
15497
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$$(publishToMarketplace_ConfigPropertyMetadata);
|
|
15186
15498
|
function typeCheckConfig(untrustedConfig) {
|
|
15187
15499
|
const config = {};
|
|
15188
|
-
typeCheckConfig
|
|
15500
|
+
typeCheckConfig$$(untrustedConfig, config, publishToMarketplace_ConfigPropertyMetadata);
|
|
15189
15501
|
return config;
|
|
15190
15502
|
}
|
|
15191
15503
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -15230,4 +15542,4 @@ const publishToMarketplaceAdapterFactory = (luvio) => {
|
|
|
15230
15542
|
};
|
|
15231
15543
|
};
|
|
15232
15544
|
|
|
15233
|
-
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 };
|
|
15545
|
+
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 };
|