@salesforce/lds-adapters-analytics-unifiedanalytics 1.428.0-dev2 → 1.428.0-dev4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/analytics-unifiedanalytics.js +1043 -731
- package/dist/es/es2018/types/src/generated/adapters/postDataAlertQuery.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/postTableauDataAlertsQuery.d.ts +21 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertPropertyFilterInputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertPropertyFilterOutputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertQueryCollectionRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertQueryInputRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/DataAlertRepresentation.d.ts +5 -1
- package/package.json +3 -3
- package/sfdc/index.js +2797 -2474
- package/src/raml/api.raml +92 -0
- package/src/raml/luvio.raml +9 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$$, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$r, typeCheckConfig as typeCheckConfig$$ } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -93,9 +93,9 @@ function createLink(ref) {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
const TTL$
|
|
97
|
-
const VERSION$
|
|
98
|
-
function validate$
|
|
96
|
+
const TTL$u = 1000;
|
|
97
|
+
const VERSION$H = "3c943f1d2e5251ceef13b3e2fdb5f916";
|
|
98
|
+
function validate$1u(obj, path = 'TableauExternalMonitoringEventItemRepresentation') {
|
|
99
99
|
const v_error = (() => {
|
|
100
100
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
101
101
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -118,68 +118,68 @@ function validate$1q(obj, path = 'TableauExternalMonitoringEventItemRepresentati
|
|
|
118
118
|
})();
|
|
119
119
|
return v_error === undefined ? null : v_error;
|
|
120
120
|
}
|
|
121
|
-
const RepresentationType$
|
|
122
|
-
function keyBuilder$
|
|
123
|
-
return keyPrefix + '::' + RepresentationType$
|
|
121
|
+
const RepresentationType$J = 'TableauExternalMonitoringEventItemRepresentation';
|
|
122
|
+
function keyBuilder$1o(luvio, config) {
|
|
123
|
+
return keyPrefix + '::' + RepresentationType$J + ':' + config.id;
|
|
124
124
|
}
|
|
125
125
|
function keyBuilderFromType$o(luvio, object) {
|
|
126
126
|
const keyParams = {
|
|
127
127
|
id: object.id
|
|
128
128
|
};
|
|
129
|
-
return keyBuilder$
|
|
129
|
+
return keyBuilder$1o(luvio, keyParams);
|
|
130
130
|
}
|
|
131
|
-
function normalize$
|
|
131
|
+
function normalize$H(input, existing, path, luvio, store, timestamp) {
|
|
132
132
|
return input;
|
|
133
133
|
}
|
|
134
|
-
const select$
|
|
134
|
+
const select$1y = function TableauExternalMonitoringEventItemRepresentationSelect() {
|
|
135
135
|
return {
|
|
136
136
|
kind: 'Fragment',
|
|
137
|
-
version: VERSION$
|
|
137
|
+
version: VERSION$H,
|
|
138
138
|
private: [],
|
|
139
139
|
opaque: true
|
|
140
140
|
};
|
|
141
141
|
};
|
|
142
|
-
function equals$
|
|
142
|
+
function equals$H(existing, incoming) {
|
|
143
143
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
144
144
|
return false;
|
|
145
145
|
}
|
|
146
146
|
return true;
|
|
147
147
|
}
|
|
148
|
-
const ingest$
|
|
148
|
+
const ingest$H = function TableauExternalMonitoringEventItemRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
149
149
|
if (process.env.NODE_ENV !== 'production') {
|
|
150
|
-
const validateError = validate$
|
|
150
|
+
const validateError = validate$1u(input);
|
|
151
151
|
if (validateError !== null) {
|
|
152
152
|
throw validateError;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
const key = keyBuilderFromType$o(luvio, input);
|
|
156
|
-
const ttlToUse = TTL$
|
|
157
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
156
|
+
const ttlToUse = TTL$u;
|
|
157
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$H, "UnifiedAnalytics", VERSION$H, RepresentationType$J, equals$H);
|
|
158
158
|
return createLink(key);
|
|
159
159
|
};
|
|
160
|
-
function getTypeCacheKeys$
|
|
160
|
+
function getTypeCacheKeys$H(rootKeySet, luvio, input, fullPathFactory) {
|
|
161
161
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
162
162
|
const rootKey = keyBuilderFromType$o(luvio, input);
|
|
163
163
|
rootKeySet.set(rootKey, {
|
|
164
164
|
namespace: keyPrefix,
|
|
165
|
-
representationName: RepresentationType$
|
|
165
|
+
representationName: RepresentationType$J,
|
|
166
166
|
mergeable: false
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
function select$
|
|
171
|
-
return select$
|
|
170
|
+
function select$1x(luvio, params) {
|
|
171
|
+
return select$1y();
|
|
172
172
|
}
|
|
173
|
-
function getResponseCacheKeys$
|
|
174
|
-
getTypeCacheKeys$
|
|
173
|
+
function getResponseCacheKeys$_(storeKeyMap, luvio, resourceParams, response) {
|
|
174
|
+
getTypeCacheKeys$H(storeKeyMap, luvio, response);
|
|
175
175
|
}
|
|
176
|
-
function ingestSuccess$
|
|
176
|
+
function ingestSuccess$S(luvio, resourceParams, response) {
|
|
177
177
|
const { body } = response;
|
|
178
178
|
const key = keyBuilderFromType$o(luvio, body);
|
|
179
|
-
luvio.storeIngest(key, ingest$
|
|
179
|
+
luvio.storeIngest(key, ingest$H, body);
|
|
180
180
|
const snapshot = luvio.storeLookup({
|
|
181
181
|
recordId: key,
|
|
182
|
-
node: select$
|
|
182
|
+
node: select$1x(),
|
|
183
183
|
variables: {},
|
|
184
184
|
});
|
|
185
185
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -190,7 +190,7 @@ function ingestSuccess$R(luvio, resourceParams, response) {
|
|
|
190
190
|
deepFreeze(snapshot.data);
|
|
191
191
|
return snapshot;
|
|
192
192
|
}
|
|
193
|
-
function createResourceRequest$
|
|
193
|
+
function createResourceRequest$_(config) {
|
|
194
194
|
const headers = {};
|
|
195
195
|
return {
|
|
196
196
|
baseUri: '/services/data/v67.0',
|
|
@@ -204,13 +204,13 @@ function createResourceRequest$Z(config) {
|
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
const adapterName$
|
|
207
|
+
const adapterName$_ = 'publish';
|
|
208
208
|
const publish_ConfigPropertyMetadata = [
|
|
209
209
|
generateParamConfigMetadata('events', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
210
210
|
];
|
|
211
|
-
const publish_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
212
|
-
const createResourceParams$
|
|
213
|
-
function typeCheckConfig$
|
|
211
|
+
const publish_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$_, publish_ConfigPropertyMetadata);
|
|
212
|
+
const createResourceParams$_ = /*#__PURE__*/ createResourceParams$$(publish_ConfigPropertyMetadata);
|
|
213
|
+
function typeCheckConfig$_(untrustedConfig) {
|
|
214
214
|
const config = {};
|
|
215
215
|
const untrustedConfig_events = untrustedConfig.events;
|
|
216
216
|
if (ArrayIsArray$1(untrustedConfig_events)) {
|
|
@@ -223,30 +223,30 @@ function typeCheckConfig$Z(untrustedConfig) {
|
|
|
223
223
|
}
|
|
224
224
|
return config;
|
|
225
225
|
}
|
|
226
|
-
function validateAdapterConfig$
|
|
226
|
+
function validateAdapterConfig$_(untrustedConfig, configPropertyNames) {
|
|
227
227
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
228
228
|
return null;
|
|
229
229
|
}
|
|
230
230
|
if (process.env.NODE_ENV !== 'production') {
|
|
231
231
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
232
232
|
}
|
|
233
|
-
const config = typeCheckConfig$
|
|
233
|
+
const config = typeCheckConfig$_(untrustedConfig);
|
|
234
234
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
235
235
|
return null;
|
|
236
236
|
}
|
|
237
237
|
return config;
|
|
238
238
|
}
|
|
239
|
-
function buildNetworkSnapshot$
|
|
240
|
-
const resourceParams = createResourceParams$
|
|
241
|
-
const request = createResourceRequest$
|
|
239
|
+
function buildNetworkSnapshot$_(luvio, config, options) {
|
|
240
|
+
const resourceParams = createResourceParams$_(config);
|
|
241
|
+
const request = createResourceRequest$_(resourceParams);
|
|
242
242
|
return luvio.dispatchResourceRequest(request, options)
|
|
243
243
|
.then((response) => {
|
|
244
244
|
return luvio.handleSuccessResponse(() => {
|
|
245
|
-
const snapshot = ingestSuccess$
|
|
245
|
+
const snapshot = ingestSuccess$S(luvio, resourceParams, response);
|
|
246
246
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
247
247
|
}, () => {
|
|
248
248
|
const cache = new StoreKeyMap();
|
|
249
|
-
getResponseCacheKeys$
|
|
249
|
+
getResponseCacheKeys$_(cache, luvio, resourceParams, response.body);
|
|
250
250
|
return cache;
|
|
251
251
|
});
|
|
252
252
|
}, (response) => {
|
|
@@ -256,16 +256,16 @@ function buildNetworkSnapshot$Z(luvio, config, options) {
|
|
|
256
256
|
}
|
|
257
257
|
const publishAdapterFactory = (luvio) => {
|
|
258
258
|
return function publish(untrustedConfig) {
|
|
259
|
-
const config = validateAdapterConfig$
|
|
259
|
+
const config = validateAdapterConfig$_(untrustedConfig, publish_ConfigPropertyNames);
|
|
260
260
|
// Invalid or incomplete config
|
|
261
261
|
if (config === null) {
|
|
262
262
|
throw new Error('Invalid config for "publish"');
|
|
263
263
|
}
|
|
264
|
-
return buildNetworkSnapshot$
|
|
264
|
+
return buildNetworkSnapshot$_(luvio, config);
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
267
|
|
|
268
|
-
function validate$
|
|
268
|
+
function validate$1t(obj, path = 'DashboardAnnotationAnchorRepresentation') {
|
|
269
269
|
const v_error = (() => {
|
|
270
270
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
271
271
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -279,7 +279,7 @@ function validate$1p(obj, path = 'DashboardAnnotationAnchorRepresentation') {
|
|
|
279
279
|
return v_error === undefined ? null : v_error;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
function validate$
|
|
282
|
+
function validate$1s(obj, path = 'AnnotationAssetRepresentation') {
|
|
283
283
|
const v_error = (() => {
|
|
284
284
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
285
285
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -298,7 +298,7 @@ function validate$1o(obj, path = 'AnnotationAssetRepresentation') {
|
|
|
298
298
|
return v_error === undefined ? null : v_error;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
function validate$
|
|
301
|
+
function validate$1r(obj, path = 'FileTypeOutputRepresentation') {
|
|
302
302
|
const v_error = (() => {
|
|
303
303
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
304
304
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -317,7 +317,7 @@ function validate$1n(obj, path = 'FileTypeOutputRepresentation') {
|
|
|
317
317
|
return v_error === undefined ? null : v_error;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
function validate$
|
|
320
|
+
function validate$1q(obj, path = 'ContentVersionOutputRepresentation') {
|
|
321
321
|
const v_error = (() => {
|
|
322
322
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
323
323
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -331,7 +331,7 @@ function validate$1m(obj, path = 'ContentVersionOutputRepresentation') {
|
|
|
331
331
|
const path_filetype = path + '.filetype';
|
|
332
332
|
let obj_filetype_union0 = null;
|
|
333
333
|
const obj_filetype_union0_error = (() => {
|
|
334
|
-
const referencepath_filetypeValidationError = validate$
|
|
334
|
+
const referencepath_filetypeValidationError = validate$1r(obj_filetype, path_filetype);
|
|
335
335
|
if (referencepath_filetypeValidationError !== null) {
|
|
336
336
|
let message = 'Object doesn\'t match FileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
337
337
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -401,14 +401,14 @@ function validate$1m(obj, path = 'ContentVersionOutputRepresentation') {
|
|
|
401
401
|
return v_error === undefined ? null : v_error;
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
function validate$
|
|
404
|
+
function validate$1p(obj, path = 'ContentDocumentOutputRepresentation') {
|
|
405
405
|
const v_error = (() => {
|
|
406
406
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
407
407
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
408
408
|
}
|
|
409
409
|
const obj_filetype = obj.filetype;
|
|
410
410
|
const path_filetype = path + '.filetype';
|
|
411
|
-
const referencepath_filetypeValidationError = validate$
|
|
411
|
+
const referencepath_filetypeValidationError = validate$1r(obj_filetype, path_filetype);
|
|
412
412
|
if (referencepath_filetypeValidationError !== null) {
|
|
413
413
|
let message = 'Object doesn\'t match FileTypeOutputRepresentation (at "' + path_filetype + '")\n';
|
|
414
414
|
message += referencepath_filetypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -421,7 +421,7 @@ function validate$1l(obj, path = 'ContentDocumentOutputRepresentation') {
|
|
|
421
421
|
}
|
|
422
422
|
const obj_latestPublishedVersion = obj.latestPublishedVersion;
|
|
423
423
|
const path_latestPublishedVersion = path + '.latestPublishedVersion';
|
|
424
|
-
const referencepath_latestPublishedVersionValidationError = validate$
|
|
424
|
+
const referencepath_latestPublishedVersionValidationError = validate$1q(obj_latestPublishedVersion, path_latestPublishedVersion);
|
|
425
425
|
if (referencepath_latestPublishedVersionValidationError !== null) {
|
|
426
426
|
let message = 'Object doesn\'t match ContentVersionOutputRepresentation (at "' + path_latestPublishedVersion + '")\n';
|
|
427
427
|
message += referencepath_latestPublishedVersionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -441,7 +441,7 @@ function validate$1l(obj, path = 'ContentDocumentOutputRepresentation') {
|
|
|
441
441
|
return v_error === undefined ? null : v_error;
|
|
442
442
|
}
|
|
443
443
|
|
|
444
|
-
function validate$
|
|
444
|
+
function validate$1o(obj, path = 'SlackFileOutputRepresentation') {
|
|
445
445
|
const v_error = (() => {
|
|
446
446
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
447
447
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -450,7 +450,7 @@ function validate$1k(obj, path = 'SlackFileOutputRepresentation') {
|
|
|
450
450
|
const path_contentDocument = path + '.contentDocument';
|
|
451
451
|
let obj_contentDocument_union0 = null;
|
|
452
452
|
const obj_contentDocument_union0_error = (() => {
|
|
453
|
-
const referencepath_contentDocumentValidationError = validate$
|
|
453
|
+
const referencepath_contentDocumentValidationError = validate$1p(obj_contentDocument, path_contentDocument);
|
|
454
454
|
if (referencepath_contentDocumentValidationError !== null) {
|
|
455
455
|
let message = 'Object doesn\'t match ContentDocumentOutputRepresentation (at "' + path_contentDocument + '")\n';
|
|
456
456
|
message += referencepath_contentDocumentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -550,7 +550,7 @@ function validate$1k(obj, path = 'SlackFileOutputRepresentation') {
|
|
|
550
550
|
return v_error === undefined ? null : v_error;
|
|
551
551
|
}
|
|
552
552
|
|
|
553
|
-
function validate$
|
|
553
|
+
function validate$1n(obj, path = 'SlackEmojiOutputRepresentation') {
|
|
554
554
|
const v_error = (() => {
|
|
555
555
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
556
556
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -674,7 +674,7 @@ function validate$1j(obj, path = 'SlackEmojiOutputRepresentation') {
|
|
|
674
674
|
return v_error === undefined ? null : v_error;
|
|
675
675
|
}
|
|
676
676
|
|
|
677
|
-
function validate$
|
|
677
|
+
function validate$1m(obj, path = 'SlackUserInfoOutputRepresentation') {
|
|
678
678
|
const v_error = (() => {
|
|
679
679
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
680
680
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1001,7 +1001,7 @@ function validate$1i(obj, path = 'SlackUserInfoOutputRepresentation') {
|
|
|
1001
1001
|
const path_statusEmoji = path + '.statusEmoji';
|
|
1002
1002
|
let obj_statusEmoji_union0 = null;
|
|
1003
1003
|
const obj_statusEmoji_union0_error = (() => {
|
|
1004
|
-
const referencepath_statusEmojiValidationError = validate$
|
|
1004
|
+
const referencepath_statusEmojiValidationError = validate$1n(obj_statusEmoji, path_statusEmoji);
|
|
1005
1005
|
if (referencepath_statusEmojiValidationError !== null) {
|
|
1006
1006
|
let message = 'Object doesn\'t match SlackEmojiOutputRepresentation (at "' + path_statusEmoji + '")\n';
|
|
1007
1007
|
message += referencepath_statusEmojiValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1064,7 +1064,7 @@ function validate$1i(obj, path = 'SlackUserInfoOutputRepresentation') {
|
|
|
1064
1064
|
return v_error === undefined ? null : v_error;
|
|
1065
1065
|
}
|
|
1066
1066
|
|
|
1067
|
-
function validate$
|
|
1067
|
+
function validate$1l(obj, path = 'SlackReactionOutputRepresentation') {
|
|
1068
1068
|
const v_error = (() => {
|
|
1069
1069
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1070
1070
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1144,7 +1144,7 @@ function validate$1h(obj, path = 'SlackReactionOutputRepresentation') {
|
|
|
1144
1144
|
for (let i = 0; i < obj_reactedUsers.length; i++) {
|
|
1145
1145
|
const obj_reactedUsers_item = obj_reactedUsers[i];
|
|
1146
1146
|
const path_reactedUsers_item = path_reactedUsers + '[' + i + ']';
|
|
1147
|
-
const referencepath_reactedUsers_itemValidationError = validate$
|
|
1147
|
+
const referencepath_reactedUsers_itemValidationError = validate$1m(obj_reactedUsers_item, path_reactedUsers_item);
|
|
1148
1148
|
if (referencepath_reactedUsers_itemValidationError !== null) {
|
|
1149
1149
|
let message = 'Object doesn\'t match SlackUserInfoOutputRepresentation (at "' + path_reactedUsers_item + '")\n';
|
|
1150
1150
|
message += referencepath_reactedUsers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1233,7 +1233,7 @@ function validate$1h(obj, path = 'SlackReactionOutputRepresentation') {
|
|
|
1233
1233
|
return v_error === undefined ? null : v_error;
|
|
1234
1234
|
}
|
|
1235
1235
|
|
|
1236
|
-
function validate$
|
|
1236
|
+
function validate$1k(obj, path = 'SlackMessageOutputRepresentation') {
|
|
1237
1237
|
const v_error = (() => {
|
|
1238
1238
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1239
1239
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1282,7 +1282,7 @@ function validate$1g(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1282
1282
|
for (let i = 0; i < obj_files.length; i++) {
|
|
1283
1283
|
const obj_files_item = obj_files[i];
|
|
1284
1284
|
const path_files_item = path_files + '[' + i + ']';
|
|
1285
|
-
const referencepath_files_itemValidationError = validate$
|
|
1285
|
+
const referencepath_files_itemValidationError = validate$1o(obj_files_item, path_files_item);
|
|
1286
1286
|
if (referencepath_files_itemValidationError !== null) {
|
|
1287
1287
|
let message = 'Object doesn\'t match SlackFileOutputRepresentation (at "' + path_files_item + '")\n';
|
|
1288
1288
|
message += referencepath_files_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1443,7 +1443,7 @@ function validate$1g(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1443
1443
|
for (let i = 0; i < obj_reactions.length; i++) {
|
|
1444
1444
|
const obj_reactions_item = obj_reactions[i];
|
|
1445
1445
|
const path_reactions_item = path_reactions + '[' + i + ']';
|
|
1446
|
-
const referencepath_reactions_itemValidationError = validate$
|
|
1446
|
+
const referencepath_reactions_itemValidationError = validate$1l(obj_reactions_item, path_reactions_item);
|
|
1447
1447
|
if (referencepath_reactions_itemValidationError !== null) {
|
|
1448
1448
|
let message = 'Object doesn\'t match SlackReactionOutputRepresentation (at "' + path_reactions_item + '")\n';
|
|
1449
1449
|
message += referencepath_reactions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1484,7 +1484,7 @@ function validate$1g(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1484
1484
|
for (let i = 0; i < obj_replyUsers.length; i++) {
|
|
1485
1485
|
const obj_replyUsers_item = obj_replyUsers[i];
|
|
1486
1486
|
const path_replyUsers_item = path_replyUsers + '[' + i + ']';
|
|
1487
|
-
const referencepath_replyUsers_itemValidationError = validate$
|
|
1487
|
+
const referencepath_replyUsers_itemValidationError = validate$1m(obj_replyUsers_item, path_replyUsers_item);
|
|
1488
1488
|
if (referencepath_replyUsers_itemValidationError !== null) {
|
|
1489
1489
|
let message = 'Object doesn\'t match SlackUserInfoOutputRepresentation (at "' + path_replyUsers_item + '")\n';
|
|
1490
1490
|
message += referencepath_replyUsers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1617,7 +1617,7 @@ function validate$1g(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1617
1617
|
}
|
|
1618
1618
|
const obj_userInfo = obj.userInfo;
|
|
1619
1619
|
const path_userInfo = path + '.userInfo';
|
|
1620
|
-
const referencepath_userInfoValidationError = validate$
|
|
1620
|
+
const referencepath_userInfoValidationError = validate$1m(obj_userInfo, path_userInfo);
|
|
1621
1621
|
if (referencepath_userInfoValidationError !== null) {
|
|
1622
1622
|
let message = 'Object doesn\'t match SlackUserInfoOutputRepresentation (at "' + path_userInfo + '")\n';
|
|
1623
1623
|
message += referencepath_userInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1627,7 +1627,7 @@ function validate$1g(obj, path = 'SlackMessageOutputRepresentation') {
|
|
|
1627
1627
|
return v_error === undefined ? null : v_error;
|
|
1628
1628
|
}
|
|
1629
1629
|
|
|
1630
|
-
function validate$
|
|
1630
|
+
function validate$1j(obj, path = 'AnnotationConversationRepresentation') {
|
|
1631
1631
|
const v_error = (() => {
|
|
1632
1632
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1633
1633
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1652,7 +1652,7 @@ function validate$1f(obj, path = 'AnnotationConversationRepresentation') {
|
|
|
1652
1652
|
const path_message = path + '.message';
|
|
1653
1653
|
let obj_message_union0 = null;
|
|
1654
1654
|
const obj_message_union0_error = (() => {
|
|
1655
|
-
const referencepath_messageValidationError = validate$
|
|
1655
|
+
const referencepath_messageValidationError = validate$1k(obj_message, path_message);
|
|
1656
1656
|
if (referencepath_messageValidationError !== null) {
|
|
1657
1657
|
let message = 'Object doesn\'t match SlackMessageOutputRepresentation (at "' + path_message + '")\n';
|
|
1658
1658
|
message += referencepath_messageValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1687,9 +1687,9 @@ function validate$1f(obj, path = 'AnnotationConversationRepresentation') {
|
|
|
1687
1687
|
return v_error === undefined ? null : v_error;
|
|
1688
1688
|
}
|
|
1689
1689
|
|
|
1690
|
-
const TTL$
|
|
1691
|
-
const VERSION$
|
|
1692
|
-
function validate$
|
|
1690
|
+
const TTL$t = 1000;
|
|
1691
|
+
const VERSION$G = "bacc25da56cffff8126d9bdafc471a37";
|
|
1692
|
+
function validate$1i(obj, path = 'AnnotationRepresentation') {
|
|
1693
1693
|
const v_error = (() => {
|
|
1694
1694
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1695
1695
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1697,7 +1697,7 @@ function validate$1e(obj, path = 'AnnotationRepresentation') {
|
|
|
1697
1697
|
if (obj.anchor !== undefined) {
|
|
1698
1698
|
const obj_anchor = obj.anchor;
|
|
1699
1699
|
const path_anchor = path + '.anchor';
|
|
1700
|
-
const referencepath_anchorValidationError = validate$
|
|
1700
|
+
const referencepath_anchorValidationError = validate$1t(obj_anchor, path_anchor);
|
|
1701
1701
|
if (referencepath_anchorValidationError !== null) {
|
|
1702
1702
|
let message = 'Object doesn\'t match DashboardAnnotationAnchorRepresentation (at "' + path_anchor + '")\n';
|
|
1703
1703
|
message += referencepath_anchorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1711,7 +1711,7 @@ function validate$1e(obj, path = 'AnnotationRepresentation') {
|
|
|
1711
1711
|
}
|
|
1712
1712
|
const obj_asset = obj.asset;
|
|
1713
1713
|
const path_asset = path + '.asset';
|
|
1714
|
-
const referencepath_assetValidationError = validate$
|
|
1714
|
+
const referencepath_assetValidationError = validate$1s(obj_asset, path_asset);
|
|
1715
1715
|
if (referencepath_assetValidationError !== null) {
|
|
1716
1716
|
let message = 'Object doesn\'t match AnnotationAssetRepresentation (at "' + path_asset + '")\n';
|
|
1717
1717
|
message += referencepath_assetValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1719,7 +1719,7 @@ function validate$1e(obj, path = 'AnnotationRepresentation') {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
const obj_collaborationObject = obj.collaborationObject;
|
|
1721
1721
|
const path_collaborationObject = path + '.collaborationObject';
|
|
1722
|
-
const referencepath_collaborationObjectValidationError = validate$
|
|
1722
|
+
const referencepath_collaborationObjectValidationError = validate$1j(obj_collaborationObject, path_collaborationObject);
|
|
1723
1723
|
if (referencepath_collaborationObjectValidationError !== null) {
|
|
1724
1724
|
let message = 'Object doesn\'t match AnnotationConversationRepresentation (at "' + path_collaborationObject + '")\n';
|
|
1725
1725
|
message += referencepath_collaborationObjectValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1738,58 +1738,58 @@ function validate$1e(obj, path = 'AnnotationRepresentation') {
|
|
|
1738
1738
|
})();
|
|
1739
1739
|
return v_error === undefined ? null : v_error;
|
|
1740
1740
|
}
|
|
1741
|
-
const RepresentationType$
|
|
1742
|
-
function keyBuilder$
|
|
1743
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1741
|
+
const RepresentationType$I = 'AnnotationRepresentation';
|
|
1742
|
+
function keyBuilder$1n(luvio, config) {
|
|
1743
|
+
return keyPrefix + '::' + RepresentationType$I + ':' + config.id;
|
|
1744
1744
|
}
|
|
1745
1745
|
function keyBuilderFromType$n(luvio, object) {
|
|
1746
1746
|
const keyParams = {
|
|
1747
1747
|
id: object.id
|
|
1748
1748
|
};
|
|
1749
|
-
return keyBuilder$
|
|
1749
|
+
return keyBuilder$1n(luvio, keyParams);
|
|
1750
1750
|
}
|
|
1751
|
-
function normalize$
|
|
1751
|
+
function normalize$G(input, existing, path, luvio, store, timestamp) {
|
|
1752
1752
|
return input;
|
|
1753
1753
|
}
|
|
1754
|
-
const select$
|
|
1754
|
+
const select$1w = function AnnotationRepresentationSelect() {
|
|
1755
1755
|
return {
|
|
1756
1756
|
kind: 'Fragment',
|
|
1757
|
-
version: VERSION$
|
|
1757
|
+
version: VERSION$G,
|
|
1758
1758
|
private: [],
|
|
1759
1759
|
opaque: true
|
|
1760
1760
|
};
|
|
1761
1761
|
};
|
|
1762
|
-
function equals$
|
|
1762
|
+
function equals$G(existing, incoming) {
|
|
1763
1763
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1764
1764
|
return false;
|
|
1765
1765
|
}
|
|
1766
1766
|
return true;
|
|
1767
1767
|
}
|
|
1768
|
-
const ingest$
|
|
1768
|
+
const ingest$G = function AnnotationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1769
1769
|
if (process.env.NODE_ENV !== 'production') {
|
|
1770
|
-
const validateError = validate$
|
|
1770
|
+
const validateError = validate$1i(input);
|
|
1771
1771
|
if (validateError !== null) {
|
|
1772
1772
|
throw validateError;
|
|
1773
1773
|
}
|
|
1774
1774
|
}
|
|
1775
1775
|
const key = keyBuilderFromType$n(luvio, input);
|
|
1776
|
-
const ttlToUse = TTL$
|
|
1777
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1776
|
+
const ttlToUse = TTL$t;
|
|
1777
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$G, "UnifiedAnalytics", VERSION$G, RepresentationType$I, equals$G);
|
|
1778
1778
|
return createLink(key);
|
|
1779
1779
|
};
|
|
1780
|
-
function getTypeCacheKeys$
|
|
1780
|
+
function getTypeCacheKeys$G(rootKeySet, luvio, input, fullPathFactory) {
|
|
1781
1781
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1782
1782
|
const rootKey = keyBuilderFromType$n(luvio, input);
|
|
1783
1783
|
rootKeySet.set(rootKey, {
|
|
1784
1784
|
namespace: keyPrefix,
|
|
1785
|
-
representationName: RepresentationType$
|
|
1785
|
+
representationName: RepresentationType$I,
|
|
1786
1786
|
mergeable: false
|
|
1787
1787
|
});
|
|
1788
1788
|
}
|
|
1789
1789
|
|
|
1790
|
-
const TTL$
|
|
1791
|
-
const VERSION$
|
|
1792
|
-
function validate$
|
|
1790
|
+
const TTL$s = 1000;
|
|
1791
|
+
const VERSION$F = "a80c8e970184cc7789e13f69392d6203";
|
|
1792
|
+
function validate$1h(obj, path = 'AnnotationCollectionRepresentation') {
|
|
1793
1793
|
const v_error = (() => {
|
|
1794
1794
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1795
1795
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1814,14 +1814,14 @@ function validate$1d(obj, path = 'AnnotationCollectionRepresentation') {
|
|
|
1814
1814
|
})();
|
|
1815
1815
|
return v_error === undefined ? null : v_error;
|
|
1816
1816
|
}
|
|
1817
|
-
const RepresentationType$
|
|
1818
|
-
function normalize$
|
|
1817
|
+
const RepresentationType$H = 'AnnotationCollectionRepresentation';
|
|
1818
|
+
function normalize$F(input, existing, path, luvio, store, timestamp) {
|
|
1819
1819
|
const input_annotations = input.annotations;
|
|
1820
1820
|
const input_annotations_id = path.fullPath + '__annotations';
|
|
1821
1821
|
for (let i = 0; i < input_annotations.length; i++) {
|
|
1822
1822
|
const input_annotations_item = input_annotations[i];
|
|
1823
1823
|
let input_annotations_item_id = input_annotations_id + '__' + i;
|
|
1824
|
-
input_annotations[i] = ingest$
|
|
1824
|
+
input_annotations[i] = ingest$G(input_annotations_item, {
|
|
1825
1825
|
fullPath: input_annotations_item_id,
|
|
1826
1826
|
propertyName: i,
|
|
1827
1827
|
parent: {
|
|
@@ -1834,17 +1834,17 @@ function normalize$E(input, existing, path, luvio, store, timestamp) {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
return input;
|
|
1836
1836
|
}
|
|
1837
|
-
const select$
|
|
1837
|
+
const select$1v = function AnnotationCollectionRepresentationSelect() {
|
|
1838
1838
|
return {
|
|
1839
1839
|
kind: 'Fragment',
|
|
1840
|
-
version: VERSION$
|
|
1840
|
+
version: VERSION$F,
|
|
1841
1841
|
private: [],
|
|
1842
1842
|
selections: [
|
|
1843
1843
|
{
|
|
1844
1844
|
name: 'annotations',
|
|
1845
1845
|
kind: 'Link',
|
|
1846
1846
|
plural: true,
|
|
1847
|
-
fragment: select$
|
|
1847
|
+
fragment: select$1w()
|
|
1848
1848
|
},
|
|
1849
1849
|
{
|
|
1850
1850
|
name: 'total',
|
|
@@ -1853,7 +1853,7 @@ const select$1t = function AnnotationCollectionRepresentationSelect() {
|
|
|
1853
1853
|
]
|
|
1854
1854
|
};
|
|
1855
1855
|
};
|
|
1856
|
-
function equals$
|
|
1856
|
+
function equals$F(existing, incoming) {
|
|
1857
1857
|
const existing_total = existing.total;
|
|
1858
1858
|
const incoming_total = incoming.total;
|
|
1859
1859
|
if (!(existing_total === incoming_total)) {
|
|
@@ -1871,48 +1871,48 @@ function equals$E(existing, incoming) {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
return true;
|
|
1873
1873
|
}
|
|
1874
|
-
const ingest$
|
|
1874
|
+
const ingest$F = function AnnotationCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1875
1875
|
if (process.env.NODE_ENV !== 'production') {
|
|
1876
|
-
const validateError = validate$
|
|
1876
|
+
const validateError = validate$1h(input);
|
|
1877
1877
|
if (validateError !== null) {
|
|
1878
1878
|
throw validateError;
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
1881
|
const key = path.fullPath;
|
|
1882
|
-
const ttlToUse = TTL$
|
|
1883
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1882
|
+
const ttlToUse = TTL$s;
|
|
1883
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$F, "UnifiedAnalytics", VERSION$F, RepresentationType$H, equals$F);
|
|
1884
1884
|
return createLink(key);
|
|
1885
1885
|
};
|
|
1886
|
-
function getTypeCacheKeys$
|
|
1886
|
+
function getTypeCacheKeys$F(rootKeySet, luvio, input, fullPathFactory) {
|
|
1887
1887
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1888
1888
|
const rootKey = fullPathFactory();
|
|
1889
1889
|
rootKeySet.set(rootKey, {
|
|
1890
1890
|
namespace: keyPrefix,
|
|
1891
|
-
representationName: RepresentationType$
|
|
1891
|
+
representationName: RepresentationType$H,
|
|
1892
1892
|
mergeable: false
|
|
1893
1893
|
});
|
|
1894
1894
|
const input_annotations_length = input.annotations.length;
|
|
1895
1895
|
for (let i = 0; i < input_annotations_length; i++) {
|
|
1896
|
-
getTypeCacheKeys$
|
|
1896
|
+
getTypeCacheKeys$G(rootKeySet, luvio, input.annotations[i]);
|
|
1897
1897
|
}
|
|
1898
1898
|
}
|
|
1899
1899
|
|
|
1900
|
-
function select$
|
|
1901
|
-
return select$
|
|
1900
|
+
function select$1u(luvio, params) {
|
|
1901
|
+
return select$1v();
|
|
1902
1902
|
}
|
|
1903
|
-
function keyBuilder$
|
|
1903
|
+
function keyBuilder$1m(luvio, params) {
|
|
1904
1904
|
return keyPrefix + '::AnnotationCollectionRepresentation:(' + 'assetIds:' + params.queryParams.assetIds + ',' + 'includeTopMessage:' + params.queryParams.includeTopMessage + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'slackAppId:' + params.queryParams.slackAppId + ')';
|
|
1905
1905
|
}
|
|
1906
|
-
function getResponseCacheKeys$
|
|
1907
|
-
getTypeCacheKeys$
|
|
1906
|
+
function getResponseCacheKeys$Z(storeKeyMap, luvio, resourceParams, response) {
|
|
1907
|
+
getTypeCacheKeys$F(storeKeyMap, luvio, response, () => keyBuilder$1m(luvio, resourceParams));
|
|
1908
1908
|
}
|
|
1909
|
-
function ingestSuccess$
|
|
1909
|
+
function ingestSuccess$R(luvio, resourceParams, response, snapshotRefresh) {
|
|
1910
1910
|
const { body } = response;
|
|
1911
|
-
const key = keyBuilder$
|
|
1912
|
-
luvio.storeIngest(key, ingest$
|
|
1911
|
+
const key = keyBuilder$1m(luvio, resourceParams);
|
|
1912
|
+
luvio.storeIngest(key, ingest$F, body);
|
|
1913
1913
|
const snapshot = luvio.storeLookup({
|
|
1914
1914
|
recordId: key,
|
|
1915
|
-
node: select$
|
|
1915
|
+
node: select$1u(),
|
|
1916
1916
|
variables: {},
|
|
1917
1917
|
}, snapshotRefresh);
|
|
1918
1918
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1923,19 +1923,19 @@ function ingestSuccess$Q(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1923
1923
|
deepFreeze(snapshot.data);
|
|
1924
1924
|
return snapshot;
|
|
1925
1925
|
}
|
|
1926
|
-
function ingestError$
|
|
1927
|
-
const key = keyBuilder$
|
|
1926
|
+
function ingestError$q(luvio, params, error, snapshotRefresh) {
|
|
1927
|
+
const key = keyBuilder$1m(luvio, params);
|
|
1928
1928
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1929
1929
|
const storeMetadataParams = {
|
|
1930
|
-
ttl: TTL$
|
|
1930
|
+
ttl: TTL$s,
|
|
1931
1931
|
namespace: keyPrefix,
|
|
1932
|
-
version: VERSION$
|
|
1933
|
-
representationName: RepresentationType$
|
|
1932
|
+
version: VERSION$F,
|
|
1933
|
+
representationName: RepresentationType$H
|
|
1934
1934
|
};
|
|
1935
1935
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1936
1936
|
return errorSnapshot;
|
|
1937
1937
|
}
|
|
1938
|
-
function createResourceRequest$
|
|
1938
|
+
function createResourceRequest$Z(config) {
|
|
1939
1939
|
const headers = {};
|
|
1940
1940
|
return {
|
|
1941
1941
|
baseUri: '/services/data/v67.0',
|
|
@@ -1949,7 +1949,7 @@ function createResourceRequest$Y(config) {
|
|
|
1949
1949
|
};
|
|
1950
1950
|
}
|
|
1951
1951
|
|
|
1952
|
-
const adapterName$
|
|
1952
|
+
const adapterName$Z = 'getAnnotations';
|
|
1953
1953
|
const getAnnotations_ConfigPropertyMetadata = [
|
|
1954
1954
|
generateParamConfigMetadata('assetIds', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
1955
1955
|
generateParamConfigMetadata('includeTopMessage', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
@@ -1957,101 +1957,101 @@ const getAnnotations_ConfigPropertyMetadata = [
|
|
|
1957
1957
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1958
1958
|
generateParamConfigMetadata('slackAppId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1959
1959
|
];
|
|
1960
|
-
const getAnnotations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1961
|
-
const createResourceParams$
|
|
1962
|
-
function keyBuilder$
|
|
1963
|
-
const resourceParams = createResourceParams$
|
|
1964
|
-
return keyBuilder$
|
|
1960
|
+
const getAnnotations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Z, getAnnotations_ConfigPropertyMetadata);
|
|
1961
|
+
const createResourceParams$Z = /*#__PURE__*/ createResourceParams$$(getAnnotations_ConfigPropertyMetadata);
|
|
1962
|
+
function keyBuilder$1l(luvio, config) {
|
|
1963
|
+
const resourceParams = createResourceParams$Z(config);
|
|
1964
|
+
return keyBuilder$1m(luvio, resourceParams);
|
|
1965
1965
|
}
|
|
1966
|
-
function typeCheckConfig$
|
|
1966
|
+
function typeCheckConfig$Z(untrustedConfig) {
|
|
1967
1967
|
const config = {};
|
|
1968
|
-
typeCheckConfig
|
|
1968
|
+
typeCheckConfig$$(untrustedConfig, config, getAnnotations_ConfigPropertyMetadata);
|
|
1969
1969
|
return config;
|
|
1970
1970
|
}
|
|
1971
|
-
function validateAdapterConfig$
|
|
1971
|
+
function validateAdapterConfig$Z(untrustedConfig, configPropertyNames) {
|
|
1972
1972
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1973
1973
|
return null;
|
|
1974
1974
|
}
|
|
1975
1975
|
if (process.env.NODE_ENV !== 'production') {
|
|
1976
1976
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1977
1977
|
}
|
|
1978
|
-
const config = typeCheckConfig$
|
|
1978
|
+
const config = typeCheckConfig$Z(untrustedConfig);
|
|
1979
1979
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1980
1980
|
return null;
|
|
1981
1981
|
}
|
|
1982
1982
|
return config;
|
|
1983
1983
|
}
|
|
1984
|
-
function adapterFragment$
|
|
1985
|
-
createResourceParams$
|
|
1986
|
-
return select$
|
|
1984
|
+
function adapterFragment$q(luvio, config) {
|
|
1985
|
+
createResourceParams$Z(config);
|
|
1986
|
+
return select$1u();
|
|
1987
1987
|
}
|
|
1988
|
-
function onFetchResponseSuccess$
|
|
1989
|
-
const snapshot = ingestSuccess$
|
|
1988
|
+
function onFetchResponseSuccess$q(luvio, config, resourceParams, response) {
|
|
1989
|
+
const snapshot = ingestSuccess$R(luvio, resourceParams, response, {
|
|
1990
1990
|
config,
|
|
1991
|
-
resolve: () => buildNetworkSnapshot$
|
|
1991
|
+
resolve: () => buildNetworkSnapshot$Z(luvio, config, snapshotRefreshOptions)
|
|
1992
1992
|
});
|
|
1993
1993
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1994
1994
|
}
|
|
1995
|
-
function onFetchResponseError$
|
|
1996
|
-
const snapshot = ingestError$
|
|
1995
|
+
function onFetchResponseError$q(luvio, config, resourceParams, response) {
|
|
1996
|
+
const snapshot = ingestError$q(luvio, resourceParams, response, {
|
|
1997
1997
|
config,
|
|
1998
|
-
resolve: () => buildNetworkSnapshot$
|
|
1998
|
+
resolve: () => buildNetworkSnapshot$Z(luvio, config, snapshotRefreshOptions)
|
|
1999
1999
|
});
|
|
2000
2000
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2001
2001
|
}
|
|
2002
|
-
function buildNetworkSnapshot$
|
|
2003
|
-
const resourceParams = createResourceParams$
|
|
2004
|
-
const request = createResourceRequest$
|
|
2002
|
+
function buildNetworkSnapshot$Z(luvio, config, options) {
|
|
2003
|
+
const resourceParams = createResourceParams$Z(config);
|
|
2004
|
+
const request = createResourceRequest$Z(resourceParams);
|
|
2005
2005
|
return luvio.dispatchResourceRequest(request, options)
|
|
2006
2006
|
.then((response) => {
|
|
2007
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2007
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$q(luvio, config, resourceParams, response), () => {
|
|
2008
2008
|
const cache = new StoreKeyMap();
|
|
2009
|
-
getResponseCacheKeys$
|
|
2009
|
+
getResponseCacheKeys$Z(cache, luvio, resourceParams, response.body);
|
|
2010
2010
|
return cache;
|
|
2011
2011
|
});
|
|
2012
2012
|
}, (response) => {
|
|
2013
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2013
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$q(luvio, config, resourceParams, response));
|
|
2014
2014
|
});
|
|
2015
2015
|
}
|
|
2016
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2017
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2016
|
+
function buildNetworkSnapshotCachePolicy$q(context, coercedAdapterRequestContext) {
|
|
2017
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$Z, undefined, false);
|
|
2018
2018
|
}
|
|
2019
|
-
function buildCachedSnapshotCachePolicy$
|
|
2019
|
+
function buildCachedSnapshotCachePolicy$q(context, storeLookup) {
|
|
2020
2020
|
const { luvio, config } = context;
|
|
2021
2021
|
const selector = {
|
|
2022
|
-
recordId: keyBuilder$
|
|
2023
|
-
node: adapterFragment$
|
|
2022
|
+
recordId: keyBuilder$1l(luvio, config),
|
|
2023
|
+
node: adapterFragment$q(luvio, config),
|
|
2024
2024
|
variables: {},
|
|
2025
2025
|
};
|
|
2026
2026
|
const cacheSnapshot = storeLookup(selector, {
|
|
2027
2027
|
config,
|
|
2028
|
-
resolve: () => buildNetworkSnapshot$
|
|
2028
|
+
resolve: () => buildNetworkSnapshot$Z(luvio, config, snapshotRefreshOptions)
|
|
2029
2029
|
});
|
|
2030
2030
|
return cacheSnapshot;
|
|
2031
2031
|
}
|
|
2032
2032
|
const getAnnotationsAdapterFactory = (luvio) => function UnifiedAnalytics__getAnnotations(untrustedConfig, requestContext) {
|
|
2033
|
-
const config = validateAdapterConfig$
|
|
2033
|
+
const config = validateAdapterConfig$Z(untrustedConfig, getAnnotations_ConfigPropertyNames);
|
|
2034
2034
|
// Invalid or incomplete config
|
|
2035
2035
|
if (config === null) {
|
|
2036
2036
|
return null;
|
|
2037
2037
|
}
|
|
2038
2038
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2039
|
-
buildCachedSnapshotCachePolicy$
|
|
2039
|
+
buildCachedSnapshotCachePolicy$q, buildNetworkSnapshotCachePolicy$q);
|
|
2040
2040
|
};
|
|
2041
2041
|
|
|
2042
|
-
function select$
|
|
2043
|
-
return select$
|
|
2042
|
+
function select$1t(luvio, params) {
|
|
2043
|
+
return select$1w();
|
|
2044
2044
|
}
|
|
2045
|
-
function getResponseCacheKeys$
|
|
2046
|
-
getTypeCacheKeys$
|
|
2045
|
+
function getResponseCacheKeys$Y(storeKeyMap, luvio, resourceParams, response) {
|
|
2046
|
+
getTypeCacheKeys$G(storeKeyMap, luvio, response);
|
|
2047
2047
|
}
|
|
2048
|
-
function ingestSuccess$
|
|
2048
|
+
function ingestSuccess$Q(luvio, resourceParams, response) {
|
|
2049
2049
|
const { body } = response;
|
|
2050
2050
|
const key = keyBuilderFromType$n(luvio, body);
|
|
2051
|
-
luvio.storeIngest(key, ingest$
|
|
2051
|
+
luvio.storeIngest(key, ingest$G, body);
|
|
2052
2052
|
const snapshot = luvio.storeLookup({
|
|
2053
2053
|
recordId: key,
|
|
2054
|
-
node: select$
|
|
2054
|
+
node: select$1t(),
|
|
2055
2055
|
variables: {},
|
|
2056
2056
|
});
|
|
2057
2057
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2062,7 +2062,7 @@ function ingestSuccess$P(luvio, resourceParams, response) {
|
|
|
2062
2062
|
deepFreeze(snapshot.data);
|
|
2063
2063
|
return snapshot;
|
|
2064
2064
|
}
|
|
2065
|
-
function createResourceRequest$
|
|
2065
|
+
function createResourceRequest$Y(config) {
|
|
2066
2066
|
const headers = {};
|
|
2067
2067
|
return {
|
|
2068
2068
|
baseUri: '/services/data/v67.0',
|
|
@@ -2076,7 +2076,7 @@ function createResourceRequest$X(config) {
|
|
|
2076
2076
|
};
|
|
2077
2077
|
}
|
|
2078
2078
|
|
|
2079
|
-
const adapterName$
|
|
2079
|
+
const adapterName$Y = 'createAnnotation';
|
|
2080
2080
|
const createAnnotation_ConfigPropertyMetadata = [
|
|
2081
2081
|
generateParamConfigMetadata('anchor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2082
2082
|
generateParamConfigMetadata('annotationTool', true, 2 /* Body */, 0 /* String */),
|
|
@@ -2085,41 +2085,41 @@ const createAnnotation_ConfigPropertyMetadata = [
|
|
|
2085
2085
|
generateParamConfigMetadata('collaborationObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2086
2086
|
generateParamConfigMetadata('status', true, 2 /* Body */, 0 /* String */),
|
|
2087
2087
|
];
|
|
2088
|
-
const createAnnotation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2089
|
-
const createResourceParams$
|
|
2090
|
-
function typeCheckConfig$
|
|
2088
|
+
const createAnnotation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Y, createAnnotation_ConfigPropertyMetadata);
|
|
2089
|
+
const createResourceParams$Y = /*#__PURE__*/ createResourceParams$$(createAnnotation_ConfigPropertyMetadata);
|
|
2090
|
+
function typeCheckConfig$Y(untrustedConfig) {
|
|
2091
2091
|
const config = {};
|
|
2092
|
-
typeCheckConfig
|
|
2092
|
+
typeCheckConfig$$(untrustedConfig, config, createAnnotation_ConfigPropertyMetadata);
|
|
2093
2093
|
const untrustedConfig_anchor = untrustedConfig.anchor;
|
|
2094
2094
|
config.anchor = untrustedConfig_anchor;
|
|
2095
2095
|
const untrustedConfig_collaborationObject = untrustedConfig.collaborationObject;
|
|
2096
2096
|
config.collaborationObject = untrustedConfig_collaborationObject;
|
|
2097
2097
|
return config;
|
|
2098
2098
|
}
|
|
2099
|
-
function validateAdapterConfig$
|
|
2099
|
+
function validateAdapterConfig$Y(untrustedConfig, configPropertyNames) {
|
|
2100
2100
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2101
2101
|
return null;
|
|
2102
2102
|
}
|
|
2103
2103
|
if (process.env.NODE_ENV !== 'production') {
|
|
2104
2104
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2105
2105
|
}
|
|
2106
|
-
const config = typeCheckConfig$
|
|
2106
|
+
const config = typeCheckConfig$Y(untrustedConfig);
|
|
2107
2107
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2108
2108
|
return null;
|
|
2109
2109
|
}
|
|
2110
2110
|
return config;
|
|
2111
2111
|
}
|
|
2112
|
-
function buildNetworkSnapshot$
|
|
2113
|
-
const resourceParams = createResourceParams$
|
|
2114
|
-
const request = createResourceRequest$
|
|
2112
|
+
function buildNetworkSnapshot$Y(luvio, config, options) {
|
|
2113
|
+
const resourceParams = createResourceParams$Y(config);
|
|
2114
|
+
const request = createResourceRequest$Y(resourceParams);
|
|
2115
2115
|
return luvio.dispatchResourceRequest(request, options)
|
|
2116
2116
|
.then((response) => {
|
|
2117
2117
|
return luvio.handleSuccessResponse(() => {
|
|
2118
|
-
const snapshot = ingestSuccess$
|
|
2118
|
+
const snapshot = ingestSuccess$Q(luvio, resourceParams, response);
|
|
2119
2119
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2120
2120
|
}, () => {
|
|
2121
2121
|
const cache = new StoreKeyMap();
|
|
2122
|
-
getResponseCacheKeys$
|
|
2122
|
+
getResponseCacheKeys$Y(cache, luvio, resourceParams, response.body);
|
|
2123
2123
|
return cache;
|
|
2124
2124
|
});
|
|
2125
2125
|
}, (response) => {
|
|
@@ -2129,18 +2129,18 @@ function buildNetworkSnapshot$X(luvio, config, options) {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
const createAnnotationAdapterFactory = (luvio) => {
|
|
2131
2131
|
return function createAnnotation(untrustedConfig) {
|
|
2132
|
-
const config = validateAdapterConfig$
|
|
2132
|
+
const config = validateAdapterConfig$Y(untrustedConfig, createAnnotation_ConfigPropertyNames);
|
|
2133
2133
|
// Invalid or incomplete config
|
|
2134
2134
|
if (config === null) {
|
|
2135
2135
|
throw new Error('Invalid config for "createAnnotation"');
|
|
2136
2136
|
}
|
|
2137
|
-
return buildNetworkSnapshot$
|
|
2137
|
+
return buildNetworkSnapshot$Y(luvio, config);
|
|
2138
2138
|
};
|
|
2139
2139
|
};
|
|
2140
2140
|
|
|
2141
|
-
const TTL$
|
|
2142
|
-
const VERSION$
|
|
2143
|
-
function validate$
|
|
2141
|
+
const TTL$r = 5000;
|
|
2142
|
+
const VERSION$E = "505a83d97fefa7ce68ec6512264b0543";
|
|
2143
|
+
function validate$1g(obj, path = 'SlackAppInfoRepresentation') {
|
|
2144
2144
|
const v_error = (() => {
|
|
2145
2145
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2146
2146
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2180,14 +2180,14 @@ function validate$1c(obj, path = 'SlackAppInfoRepresentation') {
|
|
|
2180
2180
|
})();
|
|
2181
2181
|
return v_error === undefined ? null : v_error;
|
|
2182
2182
|
}
|
|
2183
|
-
const RepresentationType$
|
|
2184
|
-
function normalize$
|
|
2183
|
+
const RepresentationType$G = 'SlackAppInfoRepresentation';
|
|
2184
|
+
function normalize$E(input, existing, path, luvio, store, timestamp) {
|
|
2185
2185
|
return input;
|
|
2186
2186
|
}
|
|
2187
|
-
const select$
|
|
2187
|
+
const select$1s = function SlackAppInfoRepresentationSelect() {
|
|
2188
2188
|
return {
|
|
2189
2189
|
kind: 'Fragment',
|
|
2190
|
-
version: VERSION$
|
|
2190
|
+
version: VERSION$E,
|
|
2191
2191
|
private: [],
|
|
2192
2192
|
selections: [
|
|
2193
2193
|
{
|
|
@@ -2214,7 +2214,7 @@ const select$1q = function SlackAppInfoRepresentationSelect() {
|
|
|
2214
2214
|
]
|
|
2215
2215
|
};
|
|
2216
2216
|
};
|
|
2217
|
-
function equals$
|
|
2217
|
+
function equals$E(existing, incoming) {
|
|
2218
2218
|
const existing_isSlackAppAuthorized = existing.isSlackAppAuthorized;
|
|
2219
2219
|
const incoming_isSlackAppAuthorized = incoming.isSlackAppAuthorized;
|
|
2220
2220
|
if (!(existing_isSlackAppAuthorized === incoming_isSlackAppAuthorized)) {
|
|
@@ -2247,44 +2247,44 @@ function equals$D(existing, incoming) {
|
|
|
2247
2247
|
}
|
|
2248
2248
|
return true;
|
|
2249
2249
|
}
|
|
2250
|
-
const ingest$
|
|
2250
|
+
const ingest$E = function SlackAppInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2251
2251
|
if (process.env.NODE_ENV !== 'production') {
|
|
2252
|
-
const validateError = validate$
|
|
2252
|
+
const validateError = validate$1g(input);
|
|
2253
2253
|
if (validateError !== null) {
|
|
2254
2254
|
throw validateError;
|
|
2255
2255
|
}
|
|
2256
2256
|
}
|
|
2257
2257
|
const key = path.fullPath;
|
|
2258
|
-
const ttlToUse = TTL$
|
|
2259
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2258
|
+
const ttlToUse = TTL$r;
|
|
2259
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$E, "UnifiedAnalytics", VERSION$E, RepresentationType$G, equals$E);
|
|
2260
2260
|
return createLink(key);
|
|
2261
2261
|
};
|
|
2262
|
-
function getTypeCacheKeys$
|
|
2262
|
+
function getTypeCacheKeys$E(rootKeySet, luvio, input, fullPathFactory) {
|
|
2263
2263
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2264
2264
|
const rootKey = fullPathFactory();
|
|
2265
2265
|
rootKeySet.set(rootKey, {
|
|
2266
2266
|
namespace: keyPrefix,
|
|
2267
|
-
representationName: RepresentationType$
|
|
2267
|
+
representationName: RepresentationType$G,
|
|
2268
2268
|
mergeable: false
|
|
2269
2269
|
});
|
|
2270
2270
|
}
|
|
2271
2271
|
|
|
2272
|
-
function select$
|
|
2273
|
-
return select$
|
|
2272
|
+
function select$1r(luvio, params) {
|
|
2273
|
+
return select$1s();
|
|
2274
2274
|
}
|
|
2275
|
-
function keyBuilder$
|
|
2275
|
+
function keyBuilder$1k(luvio, params) {
|
|
2276
2276
|
return keyPrefix + '::SlackAppInfoRepresentation:(' + ')';
|
|
2277
2277
|
}
|
|
2278
|
-
function getResponseCacheKeys$
|
|
2279
|
-
getTypeCacheKeys$
|
|
2278
|
+
function getResponseCacheKeys$X(storeKeyMap, luvio, resourceParams, response) {
|
|
2279
|
+
getTypeCacheKeys$E(storeKeyMap, luvio, response, () => keyBuilder$1k());
|
|
2280
2280
|
}
|
|
2281
|
-
function ingestSuccess$
|
|
2281
|
+
function ingestSuccess$P(luvio, resourceParams, response, snapshotRefresh) {
|
|
2282
2282
|
const { body } = response;
|
|
2283
|
-
const key = keyBuilder$
|
|
2284
|
-
luvio.storeIngest(key, ingest$
|
|
2283
|
+
const key = keyBuilder$1k();
|
|
2284
|
+
luvio.storeIngest(key, ingest$E, body);
|
|
2285
2285
|
const snapshot = luvio.storeLookup({
|
|
2286
2286
|
recordId: key,
|
|
2287
|
-
node: select$
|
|
2287
|
+
node: select$1r(),
|
|
2288
2288
|
variables: {},
|
|
2289
2289
|
}, snapshotRefresh);
|
|
2290
2290
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2295,19 +2295,19 @@ function ingestSuccess$O(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2295
2295
|
deepFreeze(snapshot.data);
|
|
2296
2296
|
return snapshot;
|
|
2297
2297
|
}
|
|
2298
|
-
function ingestError$
|
|
2299
|
-
const key = keyBuilder$
|
|
2298
|
+
function ingestError$p(luvio, params, error, snapshotRefresh) {
|
|
2299
|
+
const key = keyBuilder$1k();
|
|
2300
2300
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2301
2301
|
const storeMetadataParams = {
|
|
2302
|
-
ttl: TTL$
|
|
2302
|
+
ttl: TTL$r,
|
|
2303
2303
|
namespace: keyPrefix,
|
|
2304
|
-
version: VERSION$
|
|
2305
|
-
representationName: RepresentationType$
|
|
2304
|
+
version: VERSION$E,
|
|
2305
|
+
representationName: RepresentationType$G
|
|
2306
2306
|
};
|
|
2307
2307
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2308
2308
|
return errorSnapshot;
|
|
2309
2309
|
}
|
|
2310
|
-
function createResourceRequest$
|
|
2310
|
+
function createResourceRequest$X(config) {
|
|
2311
2311
|
const headers = {};
|
|
2312
2312
|
return {
|
|
2313
2313
|
baseUri: '/services/data/v67.0',
|
|
@@ -2321,90 +2321,90 @@ function createResourceRequest$W(config) {
|
|
|
2321
2321
|
};
|
|
2322
2322
|
}
|
|
2323
2323
|
|
|
2324
|
-
const adapterName$
|
|
2324
|
+
const adapterName$X = 'getSlackAppInfo';
|
|
2325
2325
|
const getSlackAppInfo_ConfigPropertyMetadata = [];
|
|
2326
|
-
const getSlackAppInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2327
|
-
const createResourceParams$
|
|
2328
|
-
function keyBuilder$
|
|
2329
|
-
createResourceParams$
|
|
2330
|
-
return keyBuilder$
|
|
2326
|
+
const getSlackAppInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$X, getSlackAppInfo_ConfigPropertyMetadata);
|
|
2327
|
+
const createResourceParams$X = /*#__PURE__*/ createResourceParams$$(getSlackAppInfo_ConfigPropertyMetadata);
|
|
2328
|
+
function keyBuilder$1j(luvio, config) {
|
|
2329
|
+
createResourceParams$X(config);
|
|
2330
|
+
return keyBuilder$1k();
|
|
2331
2331
|
}
|
|
2332
|
-
function typeCheckConfig$
|
|
2332
|
+
function typeCheckConfig$X(untrustedConfig) {
|
|
2333
2333
|
const config = {};
|
|
2334
2334
|
return config;
|
|
2335
2335
|
}
|
|
2336
|
-
function validateAdapterConfig$
|
|
2336
|
+
function validateAdapterConfig$X(untrustedConfig, configPropertyNames) {
|
|
2337
2337
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2338
2338
|
return null;
|
|
2339
2339
|
}
|
|
2340
2340
|
if (process.env.NODE_ENV !== 'production') {
|
|
2341
2341
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2342
2342
|
}
|
|
2343
|
-
const config = typeCheckConfig$
|
|
2343
|
+
const config = typeCheckConfig$X();
|
|
2344
2344
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2345
2345
|
return null;
|
|
2346
2346
|
}
|
|
2347
2347
|
return config;
|
|
2348
2348
|
}
|
|
2349
|
-
function adapterFragment$
|
|
2350
|
-
createResourceParams$
|
|
2351
|
-
return select$
|
|
2349
|
+
function adapterFragment$p(luvio, config) {
|
|
2350
|
+
createResourceParams$X(config);
|
|
2351
|
+
return select$1r();
|
|
2352
2352
|
}
|
|
2353
|
-
function onFetchResponseSuccess$
|
|
2354
|
-
const snapshot = ingestSuccess$
|
|
2353
|
+
function onFetchResponseSuccess$p(luvio, config, resourceParams, response) {
|
|
2354
|
+
const snapshot = ingestSuccess$P(luvio, resourceParams, response, {
|
|
2355
2355
|
config,
|
|
2356
|
-
resolve: () => buildNetworkSnapshot$
|
|
2356
|
+
resolve: () => buildNetworkSnapshot$X(luvio, config, snapshotRefreshOptions)
|
|
2357
2357
|
});
|
|
2358
2358
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2359
2359
|
}
|
|
2360
|
-
function onFetchResponseError$
|
|
2361
|
-
const snapshot = ingestError$
|
|
2360
|
+
function onFetchResponseError$p(luvio, config, resourceParams, response) {
|
|
2361
|
+
const snapshot = ingestError$p(luvio, resourceParams, response, {
|
|
2362
2362
|
config,
|
|
2363
|
-
resolve: () => buildNetworkSnapshot$
|
|
2363
|
+
resolve: () => buildNetworkSnapshot$X(luvio, config, snapshotRefreshOptions)
|
|
2364
2364
|
});
|
|
2365
2365
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2366
2366
|
}
|
|
2367
|
-
function buildNetworkSnapshot$
|
|
2368
|
-
const resourceParams = createResourceParams$
|
|
2369
|
-
const request = createResourceRequest$
|
|
2367
|
+
function buildNetworkSnapshot$X(luvio, config, options) {
|
|
2368
|
+
const resourceParams = createResourceParams$X(config);
|
|
2369
|
+
const request = createResourceRequest$X();
|
|
2370
2370
|
return luvio.dispatchResourceRequest(request, options)
|
|
2371
2371
|
.then((response) => {
|
|
2372
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
2372
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$p(luvio, config, resourceParams, response), () => {
|
|
2373
2373
|
const cache = new StoreKeyMap();
|
|
2374
|
-
getResponseCacheKeys$
|
|
2374
|
+
getResponseCacheKeys$X(cache, luvio, resourceParams, response.body);
|
|
2375
2375
|
return cache;
|
|
2376
2376
|
});
|
|
2377
2377
|
}, (response) => {
|
|
2378
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
2378
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$p(luvio, config, resourceParams, response));
|
|
2379
2379
|
});
|
|
2380
2380
|
}
|
|
2381
|
-
function buildNetworkSnapshotCachePolicy$
|
|
2382
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2381
|
+
function buildNetworkSnapshotCachePolicy$p(context, coercedAdapterRequestContext) {
|
|
2382
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$X, undefined, false);
|
|
2383
2383
|
}
|
|
2384
|
-
function buildCachedSnapshotCachePolicy$
|
|
2384
|
+
function buildCachedSnapshotCachePolicy$p(context, storeLookup) {
|
|
2385
2385
|
const { luvio, config } = context;
|
|
2386
2386
|
const selector = {
|
|
2387
|
-
recordId: keyBuilder$
|
|
2388
|
-
node: adapterFragment$
|
|
2387
|
+
recordId: keyBuilder$1j(luvio, config),
|
|
2388
|
+
node: adapterFragment$p(luvio, config),
|
|
2389
2389
|
variables: {},
|
|
2390
2390
|
};
|
|
2391
2391
|
const cacheSnapshot = storeLookup(selector, {
|
|
2392
2392
|
config,
|
|
2393
|
-
resolve: () => buildNetworkSnapshot$
|
|
2393
|
+
resolve: () => buildNetworkSnapshot$X(luvio, config, snapshotRefreshOptions)
|
|
2394
2394
|
});
|
|
2395
2395
|
return cacheSnapshot;
|
|
2396
2396
|
}
|
|
2397
2397
|
const getSlackAppInfoAdapterFactory = (luvio) => function UnifiedAnalytics__getSlackAppInfo(untrustedConfig, requestContext) {
|
|
2398
|
-
const config = validateAdapterConfig$
|
|
2398
|
+
const config = validateAdapterConfig$X(untrustedConfig, getSlackAppInfo_ConfigPropertyNames);
|
|
2399
2399
|
// Invalid or incomplete config
|
|
2400
2400
|
if (config === null) {
|
|
2401
2401
|
return null;
|
|
2402
2402
|
}
|
|
2403
2403
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2404
|
-
buildCachedSnapshotCachePolicy$
|
|
2404
|
+
buildCachedSnapshotCachePolicy$p, buildNetworkSnapshotCachePolicy$p);
|
|
2405
2405
|
};
|
|
2406
2406
|
|
|
2407
|
-
function validate$
|
|
2407
|
+
function validate$1f(obj, path = 'BaseAnalyticsRepresentation') {
|
|
2408
2408
|
const v_error = (() => {
|
|
2409
2409
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2410
2410
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2439,8 +2439,8 @@ function validate$1b(obj, path = 'BaseAnalyticsRepresentation') {
|
|
|
2439
2439
|
return v_error === undefined ? null : v_error;
|
|
2440
2440
|
}
|
|
2441
2441
|
|
|
2442
|
-
function validate$
|
|
2443
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
2442
|
+
function validate$1e(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresentation') {
|
|
2443
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$1f(obj, path);
|
|
2444
2444
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2445
2445
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2446
2446
|
}
|
|
@@ -2452,8 +2452,8 @@ function validate$1a(obj, path = 'AnalyticsAssetsQueryResultsWorkspaceRepresenta
|
|
|
2452
2452
|
return v_error === undefined ? null : v_error;
|
|
2453
2453
|
}
|
|
2454
2454
|
|
|
2455
|
-
function validate$
|
|
2456
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
2455
|
+
function validate$1d(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation') {
|
|
2456
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$1f(obj, path);
|
|
2457
2457
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
2458
2458
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
2459
2459
|
}
|
|
@@ -2522,7 +2522,7 @@ function validate$19(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation'
|
|
|
2522
2522
|
const path_workspace = path + '.workspace';
|
|
2523
2523
|
let obj_workspace_union0 = null;
|
|
2524
2524
|
const obj_workspace_union0_error = (() => {
|
|
2525
|
-
const referencepath_workspaceValidationError = validate$
|
|
2525
|
+
const referencepath_workspaceValidationError = validate$1e(obj_workspace, path_workspace);
|
|
2526
2526
|
if (referencepath_workspaceValidationError !== null) {
|
|
2527
2527
|
let message = 'Object doesn\'t match AnalyticsAssetsQueryResultsWorkspaceRepresentation (at "' + path_workspace + '")\n';
|
|
2528
2528
|
message += referencepath_workspaceValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2552,9 +2552,9 @@ function validate$19(obj, path = 'AnalyticsAssetsQueryResultsItemRepresentation'
|
|
|
2552
2552
|
return v_error === undefined ? null : v_error;
|
|
2553
2553
|
}
|
|
2554
2554
|
|
|
2555
|
-
const TTL$
|
|
2556
|
-
const VERSION$
|
|
2557
|
-
function validate$
|
|
2555
|
+
const TTL$q = 500;
|
|
2556
|
+
const VERSION$D = "ed60d9cca169a3e5ed897c67d11a23db";
|
|
2557
|
+
function validate$1c(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
2558
2558
|
const v_error = (() => {
|
|
2559
2559
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2560
2560
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2567,7 +2567,7 @@ function validate$18(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
|
2567
2567
|
for (let i = 0; i < obj_items.length; i++) {
|
|
2568
2568
|
const obj_items_item = obj_items[i];
|
|
2569
2569
|
const path_items_item = path_items + '[' + i + ']';
|
|
2570
|
-
const referencepath_items_itemValidationError = validate$
|
|
2570
|
+
const referencepath_items_itemValidationError = validate$1d(obj_items_item, path_items_item);
|
|
2571
2571
|
if (referencepath_items_itemValidationError !== null) {
|
|
2572
2572
|
let message = 'Object doesn\'t match AnalyticsAssetsQueryResultsItemRepresentation (at "' + path_items_item + '")\n';
|
|
2573
2573
|
message += referencepath_items_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -2592,68 +2592,68 @@ function validate$18(obj, path = 'AnalyticsAssetsQueryResultsRepresentation') {
|
|
|
2592
2592
|
})();
|
|
2593
2593
|
return v_error === undefined ? null : v_error;
|
|
2594
2594
|
}
|
|
2595
|
-
const RepresentationType$
|
|
2596
|
-
function keyBuilder$
|
|
2597
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2595
|
+
const RepresentationType$F = 'AnalyticsAssetsQueryResultsRepresentation';
|
|
2596
|
+
function keyBuilder$1i(luvio, config) {
|
|
2597
|
+
return keyPrefix + '::' + RepresentationType$F + ':' + config.searchId;
|
|
2598
2598
|
}
|
|
2599
2599
|
function keyBuilderFromType$m(luvio, object) {
|
|
2600
2600
|
const keyParams = {
|
|
2601
2601
|
searchId: object.queryKey
|
|
2602
2602
|
};
|
|
2603
|
-
return keyBuilder$
|
|
2603
|
+
return keyBuilder$1i(luvio, keyParams);
|
|
2604
2604
|
}
|
|
2605
|
-
function normalize$
|
|
2605
|
+
function normalize$D(input, existing, path, luvio, store, timestamp) {
|
|
2606
2606
|
return input;
|
|
2607
2607
|
}
|
|
2608
|
-
const select$
|
|
2608
|
+
const select$1q = function AnalyticsAssetsQueryResultsRepresentationSelect() {
|
|
2609
2609
|
return {
|
|
2610
2610
|
kind: 'Fragment',
|
|
2611
|
-
version: VERSION$
|
|
2611
|
+
version: VERSION$D,
|
|
2612
2612
|
private: [],
|
|
2613
2613
|
opaque: true
|
|
2614
2614
|
};
|
|
2615
2615
|
};
|
|
2616
|
-
function equals$
|
|
2616
|
+
function equals$D(existing, incoming) {
|
|
2617
2617
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2618
2618
|
return false;
|
|
2619
2619
|
}
|
|
2620
2620
|
return true;
|
|
2621
2621
|
}
|
|
2622
|
-
const ingest$
|
|
2622
|
+
const ingest$D = function AnalyticsAssetsQueryResultsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2623
2623
|
if (process.env.NODE_ENV !== 'production') {
|
|
2624
|
-
const validateError = validate$
|
|
2624
|
+
const validateError = validate$1c(input);
|
|
2625
2625
|
if (validateError !== null) {
|
|
2626
2626
|
throw validateError;
|
|
2627
2627
|
}
|
|
2628
2628
|
}
|
|
2629
2629
|
const key = keyBuilderFromType$m(luvio, input);
|
|
2630
|
-
const ttlToUse = TTL$
|
|
2631
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2630
|
+
const ttlToUse = TTL$q;
|
|
2631
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$D, "UnifiedAnalytics", VERSION$D, RepresentationType$F, equals$D);
|
|
2632
2632
|
return createLink(key);
|
|
2633
2633
|
};
|
|
2634
|
-
function getTypeCacheKeys$
|
|
2634
|
+
function getTypeCacheKeys$D(rootKeySet, luvio, input, fullPathFactory) {
|
|
2635
2635
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2636
2636
|
const rootKey = keyBuilderFromType$m(luvio, input);
|
|
2637
2637
|
rootKeySet.set(rootKey, {
|
|
2638
2638
|
namespace: keyPrefix,
|
|
2639
|
-
representationName: RepresentationType$
|
|
2639
|
+
representationName: RepresentationType$F,
|
|
2640
2640
|
mergeable: false
|
|
2641
2641
|
});
|
|
2642
2642
|
}
|
|
2643
2643
|
|
|
2644
|
-
function select$
|
|
2645
|
-
return select$
|
|
2644
|
+
function select$1p(luvio, params) {
|
|
2645
|
+
return select$1q();
|
|
2646
2646
|
}
|
|
2647
|
-
function getResponseCacheKeys$
|
|
2648
|
-
getTypeCacheKeys$
|
|
2647
|
+
function getResponseCacheKeys$W(storeKeyMap, luvio, resourceParams, response) {
|
|
2648
|
+
getTypeCacheKeys$D(storeKeyMap, luvio, response);
|
|
2649
2649
|
}
|
|
2650
|
-
function ingestSuccess$
|
|
2650
|
+
function ingestSuccess$O(luvio, resourceParams, response) {
|
|
2651
2651
|
const { body } = response;
|
|
2652
2652
|
const key = keyBuilderFromType$m(luvio, body);
|
|
2653
|
-
luvio.storeIngest(key, ingest$
|
|
2653
|
+
luvio.storeIngest(key, ingest$D, body);
|
|
2654
2654
|
const snapshot = luvio.storeLookup({
|
|
2655
2655
|
recordId: key,
|
|
2656
|
-
node: select$
|
|
2656
|
+
node: select$1p(),
|
|
2657
2657
|
variables: {},
|
|
2658
2658
|
});
|
|
2659
2659
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -2664,7 +2664,7 @@ function ingestSuccess$N(luvio, resourceParams, response) {
|
|
|
2664
2664
|
deepFreeze(snapshot.data);
|
|
2665
2665
|
return snapshot;
|
|
2666
2666
|
}
|
|
2667
|
-
function createResourceRequest$
|
|
2667
|
+
function createResourceRequest$W(config) {
|
|
2668
2668
|
const headers = {};
|
|
2669
2669
|
return {
|
|
2670
2670
|
baseUri: '/services/data/v67.0',
|
|
@@ -2678,7 +2678,7 @@ function createResourceRequest$V(config) {
|
|
|
2678
2678
|
};
|
|
2679
2679
|
}
|
|
2680
2680
|
|
|
2681
|
-
const adapterName$
|
|
2681
|
+
const adapterName$W = 'queryAssets';
|
|
2682
2682
|
const queryAssets_ConfigPropertyMetadata = [
|
|
2683
2683
|
generateParamConfigMetadata('filters', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2684
2684
|
generateParamConfigMetadata('limit', false, 2 /* Body */, 3 /* Integer */),
|
|
@@ -2687,11 +2687,11 @@ const queryAssets_ConfigPropertyMetadata = [
|
|
|
2687
2687
|
generateParamConfigMetadata('searchTerm', true, 2 /* Body */, 0 /* String */),
|
|
2688
2688
|
generateParamConfigMetadata('sortDirection', false, 2 /* Body */, 0 /* String */),
|
|
2689
2689
|
];
|
|
2690
|
-
const queryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
2691
|
-
const createResourceParams$
|
|
2692
|
-
function typeCheckConfig$
|
|
2690
|
+
const queryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$W, queryAssets_ConfigPropertyMetadata);
|
|
2691
|
+
const createResourceParams$W = /*#__PURE__*/ createResourceParams$$(queryAssets_ConfigPropertyMetadata);
|
|
2692
|
+
function typeCheckConfig$W(untrustedConfig) {
|
|
2693
2693
|
const config = {};
|
|
2694
|
-
typeCheckConfig
|
|
2694
|
+
typeCheckConfig$$(untrustedConfig, config, queryAssets_ConfigPropertyMetadata);
|
|
2695
2695
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
2696
2696
|
if (untrustedIsObject(untrustedConfig_filters)) {
|
|
2697
2697
|
const untrustedConfig_filters_object = {};
|
|
@@ -2709,30 +2709,30 @@ function typeCheckConfig$V(untrustedConfig) {
|
|
|
2709
2709
|
}
|
|
2710
2710
|
return config;
|
|
2711
2711
|
}
|
|
2712
|
-
function validateAdapterConfig$
|
|
2712
|
+
function validateAdapterConfig$W(untrustedConfig, configPropertyNames) {
|
|
2713
2713
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
2714
2714
|
return null;
|
|
2715
2715
|
}
|
|
2716
2716
|
if (process.env.NODE_ENV !== 'production') {
|
|
2717
2717
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
2718
2718
|
}
|
|
2719
|
-
const config = typeCheckConfig$
|
|
2719
|
+
const config = typeCheckConfig$W(untrustedConfig);
|
|
2720
2720
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2721
2721
|
return null;
|
|
2722
2722
|
}
|
|
2723
2723
|
return config;
|
|
2724
2724
|
}
|
|
2725
|
-
function buildNetworkSnapshot$
|
|
2726
|
-
const resourceParams = createResourceParams$
|
|
2727
|
-
const request = createResourceRequest$
|
|
2725
|
+
function buildNetworkSnapshot$W(luvio, config, options) {
|
|
2726
|
+
const resourceParams = createResourceParams$W(config);
|
|
2727
|
+
const request = createResourceRequest$W(resourceParams);
|
|
2728
2728
|
return luvio.dispatchResourceRequest(request, options)
|
|
2729
2729
|
.then((response) => {
|
|
2730
2730
|
return luvio.handleSuccessResponse(() => {
|
|
2731
|
-
const snapshot = ingestSuccess$
|
|
2731
|
+
const snapshot = ingestSuccess$O(luvio, resourceParams, response);
|
|
2732
2732
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
2733
2733
|
}, () => {
|
|
2734
2734
|
const cache = new StoreKeyMap();
|
|
2735
|
-
getResponseCacheKeys$
|
|
2735
|
+
getResponseCacheKeys$W(cache, luvio, resourceParams, response.body);
|
|
2736
2736
|
return cache;
|
|
2737
2737
|
});
|
|
2738
2738
|
}, (response) => {
|
|
@@ -2742,17 +2742,17 @@ function buildNetworkSnapshot$V(luvio, config, options) {
|
|
|
2742
2742
|
}
|
|
2743
2743
|
const queryAssetsAdapterFactory = (luvio) => {
|
|
2744
2744
|
return function queryAssets(untrustedConfig) {
|
|
2745
|
-
const config = validateAdapterConfig$
|
|
2745
|
+
const config = validateAdapterConfig$W(untrustedConfig, queryAssets_ConfigPropertyNames);
|
|
2746
2746
|
// Invalid or incomplete config
|
|
2747
2747
|
if (config === null) {
|
|
2748
2748
|
throw new Error('Invalid config for "queryAssets"');
|
|
2749
2749
|
}
|
|
2750
|
-
return buildNetworkSnapshot$
|
|
2750
|
+
return buildNetworkSnapshot$W(luvio, config);
|
|
2751
2751
|
};
|
|
2752
2752
|
};
|
|
2753
2753
|
|
|
2754
|
-
const VERSION$
|
|
2755
|
-
function validate$
|
|
2754
|
+
const VERSION$C = "581903d233184a85957cb2aa527b0d33";
|
|
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 + '")');
|
|
@@ -2892,57 +2892,57 @@ function validate$17(obj, path = 'DashboardRepresentation') {
|
|
|
2892
2892
|
})();
|
|
2893
2893
|
return v_error === undefined ? null : v_error;
|
|
2894
2894
|
}
|
|
2895
|
-
const RepresentationType$
|
|
2896
|
-
function keyBuilder$
|
|
2897
|
-
return keyPrefix + '::' + RepresentationType$
|
|
2895
|
+
const RepresentationType$E = 'DashboardRepresentation';
|
|
2896
|
+
function keyBuilder$1h(luvio, config) {
|
|
2897
|
+
return keyPrefix + '::' + RepresentationType$E + ':' + config.name;
|
|
2898
2898
|
}
|
|
2899
2899
|
function keyBuilderFromType$l(luvio, object) {
|
|
2900
2900
|
const keyParams = {
|
|
2901
2901
|
name: object.name
|
|
2902
2902
|
};
|
|
2903
|
-
return keyBuilder$
|
|
2903
|
+
return keyBuilder$1h(luvio, keyParams);
|
|
2904
2904
|
}
|
|
2905
|
-
function normalize$
|
|
2905
|
+
function normalize$C(input, existing, path, luvio, store, timestamp) {
|
|
2906
2906
|
return input;
|
|
2907
2907
|
}
|
|
2908
|
-
const select$
|
|
2908
|
+
const select$1o = function DashboardRepresentationSelect() {
|
|
2909
2909
|
return {
|
|
2910
2910
|
kind: 'Fragment',
|
|
2911
|
-
version: VERSION$
|
|
2911
|
+
version: VERSION$C,
|
|
2912
2912
|
private: [],
|
|
2913
2913
|
opaque: true
|
|
2914
2914
|
};
|
|
2915
2915
|
};
|
|
2916
|
-
function equals$
|
|
2916
|
+
function equals$C(existing, incoming) {
|
|
2917
2917
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2918
2918
|
return false;
|
|
2919
2919
|
}
|
|
2920
2920
|
return true;
|
|
2921
2921
|
}
|
|
2922
|
-
const ingest$
|
|
2922
|
+
const ingest$C = function DashboardRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2923
2923
|
if (process.env.NODE_ENV !== 'production') {
|
|
2924
|
-
const validateError = validate$
|
|
2924
|
+
const validateError = validate$1b(input);
|
|
2925
2925
|
if (validateError !== null) {
|
|
2926
2926
|
throw validateError;
|
|
2927
2927
|
}
|
|
2928
2928
|
}
|
|
2929
2929
|
const key = keyBuilderFromType$l(luvio, input);
|
|
2930
2930
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
2931
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
2931
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$C, "UnifiedAnalytics", VERSION$C, RepresentationType$E, equals$C);
|
|
2932
2932
|
return createLink(key);
|
|
2933
2933
|
};
|
|
2934
|
-
function getTypeCacheKeys$
|
|
2934
|
+
function getTypeCacheKeys$C(rootKeySet, luvio, input, fullPathFactory) {
|
|
2935
2935
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2936
2936
|
const rootKey = keyBuilderFromType$l(luvio, input);
|
|
2937
2937
|
rootKeySet.set(rootKey, {
|
|
2938
2938
|
namespace: keyPrefix,
|
|
2939
|
-
representationName: RepresentationType$
|
|
2939
|
+
representationName: RepresentationType$E,
|
|
2940
2940
|
mergeable: false
|
|
2941
2941
|
});
|
|
2942
2942
|
}
|
|
2943
2943
|
|
|
2944
|
-
const VERSION$
|
|
2945
|
-
function validate$
|
|
2944
|
+
const VERSION$B = "962823130e6a9315240ef0e0f0c5f757";
|
|
2945
|
+
function validate$1a(obj, path = 'DashboardCollectionRepresentation') {
|
|
2946
2946
|
const v_error = (() => {
|
|
2947
2947
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2948
2948
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2962,14 +2962,14 @@ function validate$16(obj, path = 'DashboardCollectionRepresentation') {
|
|
|
2962
2962
|
})();
|
|
2963
2963
|
return v_error === undefined ? null : v_error;
|
|
2964
2964
|
}
|
|
2965
|
-
const RepresentationType$
|
|
2966
|
-
function normalize$
|
|
2965
|
+
const RepresentationType$D = 'DashboardCollectionRepresentation';
|
|
2966
|
+
function normalize$B(input, existing, path, luvio, store, timestamp) {
|
|
2967
2967
|
const input_dashboards = input.dashboards;
|
|
2968
2968
|
const input_dashboards_id = path.fullPath + '__dashboards';
|
|
2969
2969
|
for (let i = 0; i < input_dashboards.length; i++) {
|
|
2970
2970
|
const input_dashboards_item = input_dashboards[i];
|
|
2971
2971
|
let input_dashboards_item_id = input_dashboards_id + '__' + i;
|
|
2972
|
-
input_dashboards[i] = ingest$
|
|
2972
|
+
input_dashboards[i] = ingest$C(input_dashboards_item, {
|
|
2973
2973
|
fullPath: input_dashboards_item_id,
|
|
2974
2974
|
propertyName: i,
|
|
2975
2975
|
parent: {
|
|
@@ -2982,22 +2982,22 @@ function normalize$A(input, existing, path, luvio, store, timestamp) {
|
|
|
2982
2982
|
}
|
|
2983
2983
|
return input;
|
|
2984
2984
|
}
|
|
2985
|
-
const select$
|
|
2985
|
+
const select$1n = function DashboardCollectionRepresentationSelect() {
|
|
2986
2986
|
return {
|
|
2987
2987
|
kind: 'Fragment',
|
|
2988
|
-
version: VERSION$
|
|
2988
|
+
version: VERSION$B,
|
|
2989
2989
|
private: [],
|
|
2990
2990
|
selections: [
|
|
2991
2991
|
{
|
|
2992
2992
|
name: 'dashboards',
|
|
2993
2993
|
kind: 'Link',
|
|
2994
2994
|
plural: true,
|
|
2995
|
-
fragment: select$
|
|
2995
|
+
fragment: select$1o()
|
|
2996
2996
|
}
|
|
2997
2997
|
]
|
|
2998
2998
|
};
|
|
2999
2999
|
};
|
|
3000
|
-
function equals$
|
|
3000
|
+
function equals$B(existing, incoming) {
|
|
3001
3001
|
const existing_dashboards = existing.dashboards;
|
|
3002
3002
|
const incoming_dashboards = incoming.dashboards;
|
|
3003
3003
|
const equals_dashboards_items = equalsArray(existing_dashboards, incoming_dashboards, (existing_dashboards_item, incoming_dashboards_item) => {
|
|
@@ -3010,48 +3010,48 @@ function equals$A(existing, incoming) {
|
|
|
3010
3010
|
}
|
|
3011
3011
|
return true;
|
|
3012
3012
|
}
|
|
3013
|
-
const ingest$
|
|
3013
|
+
const ingest$B = function DashboardCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
3014
3014
|
if (process.env.NODE_ENV !== 'production') {
|
|
3015
|
-
const validateError = validate$
|
|
3015
|
+
const validateError = validate$1a(input);
|
|
3016
3016
|
if (validateError !== null) {
|
|
3017
3017
|
throw validateError;
|
|
3018
3018
|
}
|
|
3019
3019
|
}
|
|
3020
3020
|
const key = path.fullPath;
|
|
3021
3021
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 60000;
|
|
3022
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
3022
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$B, "UnifiedAnalytics", VERSION$B, RepresentationType$D, equals$B);
|
|
3023
3023
|
return createLink(key);
|
|
3024
3024
|
};
|
|
3025
|
-
function getTypeCacheKeys$
|
|
3025
|
+
function getTypeCacheKeys$B(rootKeySet, luvio, input, fullPathFactory) {
|
|
3026
3026
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3027
3027
|
const rootKey = fullPathFactory();
|
|
3028
3028
|
rootKeySet.set(rootKey, {
|
|
3029
3029
|
namespace: keyPrefix,
|
|
3030
|
-
representationName: RepresentationType$
|
|
3030
|
+
representationName: RepresentationType$D,
|
|
3031
3031
|
mergeable: false
|
|
3032
3032
|
});
|
|
3033
3033
|
const input_dashboards_length = input.dashboards.length;
|
|
3034
3034
|
for (let i = 0; i < input_dashboards_length; i++) {
|
|
3035
|
-
getTypeCacheKeys$
|
|
3035
|
+
getTypeCacheKeys$C(rootKeySet, luvio, input.dashboards[i]);
|
|
3036
3036
|
}
|
|
3037
3037
|
}
|
|
3038
3038
|
|
|
3039
|
-
function select$
|
|
3040
|
-
return select$
|
|
3039
|
+
function select$1m(luvio, params) {
|
|
3040
|
+
return select$1n();
|
|
3041
3041
|
}
|
|
3042
|
-
function keyBuilder$
|
|
3042
|
+
function keyBuilder$1g(luvio, params) {
|
|
3043
3043
|
return keyPrefix + '::DashboardCollectionRepresentation:(' + 'limit:' + params.queryParams.limit + ',' + 'minorVersion:' + params.queryParams.minorVersion + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
3044
3044
|
}
|
|
3045
|
-
function getResponseCacheKeys$
|
|
3046
|
-
getTypeCacheKeys$
|
|
3045
|
+
function getResponseCacheKeys$V(storeKeyMap, luvio, resourceParams, response) {
|
|
3046
|
+
getTypeCacheKeys$B(storeKeyMap, luvio, response, () => keyBuilder$1g(luvio, resourceParams));
|
|
3047
3047
|
}
|
|
3048
|
-
function ingestSuccess$
|
|
3048
|
+
function ingestSuccess$N(luvio, resourceParams, response, snapshotRefresh) {
|
|
3049
3049
|
const { body } = response;
|
|
3050
|
-
const key = keyBuilder$
|
|
3051
|
-
luvio.storeIngest(key, ingest$
|
|
3050
|
+
const key = keyBuilder$1g(luvio, resourceParams);
|
|
3051
|
+
luvio.storeIngest(key, ingest$B, body);
|
|
3052
3052
|
const snapshot = luvio.storeLookup({
|
|
3053
3053
|
recordId: key,
|
|
3054
|
-
node: select$
|
|
3054
|
+
node: select$1m(),
|
|
3055
3055
|
variables: {},
|
|
3056
3056
|
}, snapshotRefresh);
|
|
3057
3057
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3062,13 +3062,13 @@ function ingestSuccess$M(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3062
3062
|
deepFreeze(snapshot.data);
|
|
3063
3063
|
return snapshot;
|
|
3064
3064
|
}
|
|
3065
|
-
function ingestError$
|
|
3066
|
-
const key = keyBuilder$
|
|
3065
|
+
function ingestError$o(luvio, params, error, snapshotRefresh) {
|
|
3066
|
+
const key = keyBuilder$1g(luvio, params);
|
|
3067
3067
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3068
3068
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3069
3069
|
return errorSnapshot;
|
|
3070
3070
|
}
|
|
3071
|
-
function createResourceRequest$
|
|
3071
|
+
function createResourceRequest$V(config) {
|
|
3072
3072
|
const headers = {};
|
|
3073
3073
|
return {
|
|
3074
3074
|
baseUri: '/services/data/v67.0',
|
|
@@ -3082,107 +3082,107 @@ function createResourceRequest$U(config) {
|
|
|
3082
3082
|
};
|
|
3083
3083
|
}
|
|
3084
3084
|
|
|
3085
|
-
const adapterName$
|
|
3085
|
+
const adapterName$V = 'getDashboards';
|
|
3086
3086
|
const getDashboards_ConfigPropertyMetadata = [
|
|
3087
3087
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3088
3088
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3089
3089
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3090
3090
|
];
|
|
3091
|
-
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3092
|
-
const createResourceParams$
|
|
3093
|
-
function keyBuilder$
|
|
3094
|
-
const resourceParams = createResourceParams$
|
|
3095
|
-
return keyBuilder$
|
|
3091
|
+
const getDashboards_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$V, getDashboards_ConfigPropertyMetadata);
|
|
3092
|
+
const createResourceParams$V = /*#__PURE__*/ createResourceParams$$(getDashboards_ConfigPropertyMetadata);
|
|
3093
|
+
function keyBuilder$1f(luvio, config) {
|
|
3094
|
+
const resourceParams = createResourceParams$V(config);
|
|
3095
|
+
return keyBuilder$1g(luvio, resourceParams);
|
|
3096
3096
|
}
|
|
3097
|
-
function typeCheckConfig$
|
|
3097
|
+
function typeCheckConfig$V(untrustedConfig) {
|
|
3098
3098
|
const config = {};
|
|
3099
|
-
typeCheckConfig
|
|
3099
|
+
typeCheckConfig$$(untrustedConfig, config, getDashboards_ConfigPropertyMetadata);
|
|
3100
3100
|
return config;
|
|
3101
3101
|
}
|
|
3102
|
-
function validateAdapterConfig$
|
|
3102
|
+
function validateAdapterConfig$V(untrustedConfig, configPropertyNames) {
|
|
3103
3103
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3104
3104
|
return null;
|
|
3105
3105
|
}
|
|
3106
3106
|
if (process.env.NODE_ENV !== 'production') {
|
|
3107
3107
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3108
3108
|
}
|
|
3109
|
-
const config = typeCheckConfig$
|
|
3109
|
+
const config = typeCheckConfig$V(untrustedConfig);
|
|
3110
3110
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3111
3111
|
return null;
|
|
3112
3112
|
}
|
|
3113
3113
|
return config;
|
|
3114
3114
|
}
|
|
3115
|
-
function adapterFragment$
|
|
3116
|
-
createResourceParams$
|
|
3117
|
-
return select$
|
|
3115
|
+
function adapterFragment$o(luvio, config) {
|
|
3116
|
+
createResourceParams$V(config);
|
|
3117
|
+
return select$1m();
|
|
3118
3118
|
}
|
|
3119
|
-
function onFetchResponseSuccess$
|
|
3120
|
-
const snapshot = ingestSuccess$
|
|
3119
|
+
function onFetchResponseSuccess$o(luvio, config, resourceParams, response) {
|
|
3120
|
+
const snapshot = ingestSuccess$N(luvio, resourceParams, response, {
|
|
3121
3121
|
config,
|
|
3122
|
-
resolve: () => buildNetworkSnapshot$
|
|
3122
|
+
resolve: () => buildNetworkSnapshot$V(luvio, config, snapshotRefreshOptions)
|
|
3123
3123
|
});
|
|
3124
3124
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3125
3125
|
}
|
|
3126
|
-
function onFetchResponseError$
|
|
3127
|
-
const snapshot = ingestError$
|
|
3126
|
+
function onFetchResponseError$o(luvio, config, resourceParams, response) {
|
|
3127
|
+
const snapshot = ingestError$o(luvio, resourceParams, response, {
|
|
3128
3128
|
config,
|
|
3129
|
-
resolve: () => buildNetworkSnapshot$
|
|
3129
|
+
resolve: () => buildNetworkSnapshot$V(luvio, config, snapshotRefreshOptions)
|
|
3130
3130
|
});
|
|
3131
3131
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3132
3132
|
}
|
|
3133
|
-
function buildNetworkSnapshot$
|
|
3134
|
-
const resourceParams = createResourceParams$
|
|
3135
|
-
const request = createResourceRequest$
|
|
3133
|
+
function buildNetworkSnapshot$V(luvio, config, options) {
|
|
3134
|
+
const resourceParams = createResourceParams$V(config);
|
|
3135
|
+
const request = createResourceRequest$V(resourceParams);
|
|
3136
3136
|
return luvio.dispatchResourceRequest(request, options)
|
|
3137
3137
|
.then((response) => {
|
|
3138
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3138
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$o(luvio, config, resourceParams, response), () => {
|
|
3139
3139
|
const cache = new StoreKeyMap();
|
|
3140
|
-
getResponseCacheKeys$
|
|
3140
|
+
getResponseCacheKeys$V(cache, luvio, resourceParams, response.body);
|
|
3141
3141
|
return cache;
|
|
3142
3142
|
});
|
|
3143
3143
|
}, (response) => {
|
|
3144
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3144
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$o(luvio, config, resourceParams, response));
|
|
3145
3145
|
});
|
|
3146
3146
|
}
|
|
3147
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3148
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3147
|
+
function buildNetworkSnapshotCachePolicy$o(context, coercedAdapterRequestContext) {
|
|
3148
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$V, undefined, false);
|
|
3149
3149
|
}
|
|
3150
|
-
function buildCachedSnapshotCachePolicy$
|
|
3150
|
+
function buildCachedSnapshotCachePolicy$o(context, storeLookup) {
|
|
3151
3151
|
const { luvio, config } = context;
|
|
3152
3152
|
const selector = {
|
|
3153
|
-
recordId: keyBuilder$
|
|
3154
|
-
node: adapterFragment$
|
|
3153
|
+
recordId: keyBuilder$1f(luvio, config),
|
|
3154
|
+
node: adapterFragment$o(luvio, config),
|
|
3155
3155
|
variables: {},
|
|
3156
3156
|
};
|
|
3157
3157
|
const cacheSnapshot = storeLookup(selector, {
|
|
3158
3158
|
config,
|
|
3159
|
-
resolve: () => buildNetworkSnapshot$
|
|
3159
|
+
resolve: () => buildNetworkSnapshot$V(luvio, config, snapshotRefreshOptions)
|
|
3160
3160
|
});
|
|
3161
3161
|
return cacheSnapshot;
|
|
3162
3162
|
}
|
|
3163
3163
|
const getDashboardsAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboards(untrustedConfig, requestContext) {
|
|
3164
|
-
const config = validateAdapterConfig$
|
|
3164
|
+
const config = validateAdapterConfig$V(untrustedConfig, getDashboards_ConfigPropertyNames);
|
|
3165
3165
|
// Invalid or incomplete config
|
|
3166
3166
|
if (config === null) {
|
|
3167
3167
|
return null;
|
|
3168
3168
|
}
|
|
3169
3169
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3170
|
-
buildCachedSnapshotCachePolicy$
|
|
3170
|
+
buildCachedSnapshotCachePolicy$o, buildNetworkSnapshotCachePolicy$o);
|
|
3171
3171
|
};
|
|
3172
3172
|
|
|
3173
|
-
function select$
|
|
3174
|
-
return select$
|
|
3173
|
+
function select$1l(luvio, params) {
|
|
3174
|
+
return select$1o();
|
|
3175
3175
|
}
|
|
3176
|
-
function getResponseCacheKeys$
|
|
3177
|
-
getTypeCacheKeys$
|
|
3176
|
+
function getResponseCacheKeys$U(storeKeyMap, luvio, resourceParams, response) {
|
|
3177
|
+
getTypeCacheKeys$C(storeKeyMap, luvio, response);
|
|
3178
3178
|
}
|
|
3179
|
-
function ingestSuccess$
|
|
3179
|
+
function ingestSuccess$M(luvio, resourceParams, response) {
|
|
3180
3180
|
const { body } = response;
|
|
3181
3181
|
const key = keyBuilderFromType$l(luvio, body);
|
|
3182
|
-
luvio.storeIngest(key, ingest$
|
|
3182
|
+
luvio.storeIngest(key, ingest$C, body);
|
|
3183
3183
|
const snapshot = luvio.storeLookup({
|
|
3184
3184
|
recordId: key,
|
|
3185
|
-
node: select$
|
|
3185
|
+
node: select$1l(),
|
|
3186
3186
|
variables: {},
|
|
3187
3187
|
});
|
|
3188
3188
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3193,7 +3193,7 @@ function ingestSuccess$L(luvio, resourceParams, response) {
|
|
|
3193
3193
|
deepFreeze(snapshot.data);
|
|
3194
3194
|
return snapshot;
|
|
3195
3195
|
}
|
|
3196
|
-
function createResourceRequest$
|
|
3196
|
+
function createResourceRequest$U(config) {
|
|
3197
3197
|
const headers = {};
|
|
3198
3198
|
return {
|
|
3199
3199
|
baseUri: '/services/data/v67.0',
|
|
@@ -3207,7 +3207,7 @@ function createResourceRequest$T(config) {
|
|
|
3207
3207
|
};
|
|
3208
3208
|
}
|
|
3209
3209
|
|
|
3210
|
-
const adapterName$
|
|
3210
|
+
const adapterName$U = 'createDashboard';
|
|
3211
3211
|
const createDashboard_ConfigPropertyMetadata = [
|
|
3212
3212
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3213
3213
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
@@ -3221,11 +3221,11 @@ const createDashboard_ConfigPropertyMetadata = [
|
|
|
3221
3221
|
generateParamConfigMetadata('backgroundSource', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3222
3222
|
generateParamConfigMetadata('customConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3223
3223
|
];
|
|
3224
|
-
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3225
|
-
const createResourceParams$
|
|
3226
|
-
function typeCheckConfig$
|
|
3224
|
+
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$U, createDashboard_ConfigPropertyMetadata);
|
|
3225
|
+
const createResourceParams$U = /*#__PURE__*/ createResourceParams$$(createDashboard_ConfigPropertyMetadata);
|
|
3226
|
+
function typeCheckConfig$U(untrustedConfig) {
|
|
3227
3227
|
const config = {};
|
|
3228
|
-
typeCheckConfig
|
|
3228
|
+
typeCheckConfig$$(untrustedConfig, config, createDashboard_ConfigPropertyMetadata);
|
|
3229
3229
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3230
3230
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3231
3231
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3297,30 +3297,30 @@ function typeCheckConfig$T(untrustedConfig) {
|
|
|
3297
3297
|
}
|
|
3298
3298
|
return config;
|
|
3299
3299
|
}
|
|
3300
|
-
function validateAdapterConfig$
|
|
3300
|
+
function validateAdapterConfig$U(untrustedConfig, configPropertyNames) {
|
|
3301
3301
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3302
3302
|
return null;
|
|
3303
3303
|
}
|
|
3304
3304
|
if (process.env.NODE_ENV !== 'production') {
|
|
3305
3305
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3306
3306
|
}
|
|
3307
|
-
const config = typeCheckConfig$
|
|
3307
|
+
const config = typeCheckConfig$U(untrustedConfig);
|
|
3308
3308
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3309
3309
|
return null;
|
|
3310
3310
|
}
|
|
3311
3311
|
return config;
|
|
3312
3312
|
}
|
|
3313
|
-
function buildNetworkSnapshot$
|
|
3314
|
-
const resourceParams = createResourceParams$
|
|
3315
|
-
const request = createResourceRequest$
|
|
3313
|
+
function buildNetworkSnapshot$U(luvio, config, options) {
|
|
3314
|
+
const resourceParams = createResourceParams$U(config);
|
|
3315
|
+
const request = createResourceRequest$U(resourceParams);
|
|
3316
3316
|
return luvio.dispatchResourceRequest(request, options)
|
|
3317
3317
|
.then((response) => {
|
|
3318
3318
|
return luvio.handleSuccessResponse(() => {
|
|
3319
|
-
const snapshot = ingestSuccess$
|
|
3319
|
+
const snapshot = ingestSuccess$M(luvio, resourceParams, response);
|
|
3320
3320
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3321
3321
|
}, () => {
|
|
3322
3322
|
const cache = new StoreKeyMap();
|
|
3323
|
-
getResponseCacheKeys$
|
|
3323
|
+
getResponseCacheKeys$U(cache, luvio, resourceParams, response.body);
|
|
3324
3324
|
return cache;
|
|
3325
3325
|
});
|
|
3326
3326
|
}, (response) => {
|
|
@@ -3330,33 +3330,33 @@ function buildNetworkSnapshot$T(luvio, config, options) {
|
|
|
3330
3330
|
}
|
|
3331
3331
|
const createDashboardAdapterFactory = (luvio) => {
|
|
3332
3332
|
return function createDashboard(untrustedConfig) {
|
|
3333
|
-
const config = validateAdapterConfig$
|
|
3333
|
+
const config = validateAdapterConfig$U(untrustedConfig, createDashboard_ConfigPropertyNames);
|
|
3334
3334
|
// Invalid or incomplete config
|
|
3335
3335
|
if (config === null) {
|
|
3336
3336
|
throw new Error('Invalid config for "createDashboard"');
|
|
3337
3337
|
}
|
|
3338
|
-
return buildNetworkSnapshot$
|
|
3338
|
+
return buildNetworkSnapshot$U(luvio, config);
|
|
3339
3339
|
};
|
|
3340
3340
|
};
|
|
3341
3341
|
|
|
3342
|
-
function keyBuilder$
|
|
3343
|
-
return keyBuilder$
|
|
3342
|
+
function keyBuilder$1e(luvio, params) {
|
|
3343
|
+
return keyBuilder$1h(luvio, {
|
|
3344
3344
|
name: params.urlParams.dashboardIdOrApiName
|
|
3345
3345
|
});
|
|
3346
3346
|
}
|
|
3347
|
-
function getResponseCacheKeys$
|
|
3348
|
-
const key = keyBuilder$
|
|
3347
|
+
function getResponseCacheKeys$T(cacheKeyMap, luvio, resourceParams) {
|
|
3348
|
+
const key = keyBuilder$1e(luvio, resourceParams);
|
|
3349
3349
|
cacheKeyMap.set(key, {
|
|
3350
3350
|
namespace: keyPrefix,
|
|
3351
|
-
representationName: RepresentationType$
|
|
3351
|
+
representationName: RepresentationType$E,
|
|
3352
3352
|
mergeable: false
|
|
3353
3353
|
});
|
|
3354
3354
|
}
|
|
3355
3355
|
function evictSuccess$7(luvio, resourceParams) {
|
|
3356
|
-
const key = keyBuilder$
|
|
3356
|
+
const key = keyBuilder$1e(luvio, resourceParams);
|
|
3357
3357
|
luvio.storeEvict(key);
|
|
3358
3358
|
}
|
|
3359
|
-
function createResourceRequest$
|
|
3359
|
+
function createResourceRequest$T(config) {
|
|
3360
3360
|
const headers = {};
|
|
3361
3361
|
return {
|
|
3362
3362
|
baseUri: '/services/data/v67.0',
|
|
@@ -3370,33 +3370,33 @@ function createResourceRequest$S(config) {
|
|
|
3370
3370
|
};
|
|
3371
3371
|
}
|
|
3372
3372
|
|
|
3373
|
-
const adapterName$
|
|
3373
|
+
const adapterName$T = 'deleteDashboard';
|
|
3374
3374
|
const deleteDashboard_ConfigPropertyMetadata = [
|
|
3375
3375
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3376
3376
|
];
|
|
3377
|
-
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3378
|
-
const createResourceParams$
|
|
3379
|
-
function typeCheckConfig$
|
|
3377
|
+
const deleteDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$T, deleteDashboard_ConfigPropertyMetadata);
|
|
3378
|
+
const createResourceParams$T = /*#__PURE__*/ createResourceParams$$(deleteDashboard_ConfigPropertyMetadata);
|
|
3379
|
+
function typeCheckConfig$T(untrustedConfig) {
|
|
3380
3380
|
const config = {};
|
|
3381
|
-
typeCheckConfig
|
|
3381
|
+
typeCheckConfig$$(untrustedConfig, config, deleteDashboard_ConfigPropertyMetadata);
|
|
3382
3382
|
return config;
|
|
3383
3383
|
}
|
|
3384
|
-
function validateAdapterConfig$
|
|
3384
|
+
function validateAdapterConfig$T(untrustedConfig, configPropertyNames) {
|
|
3385
3385
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3386
3386
|
return null;
|
|
3387
3387
|
}
|
|
3388
3388
|
if (process.env.NODE_ENV !== 'production') {
|
|
3389
3389
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3390
3390
|
}
|
|
3391
|
-
const config = typeCheckConfig$
|
|
3391
|
+
const config = typeCheckConfig$T(untrustedConfig);
|
|
3392
3392
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3393
3393
|
return null;
|
|
3394
3394
|
}
|
|
3395
3395
|
return config;
|
|
3396
3396
|
}
|
|
3397
|
-
function buildNetworkSnapshot$
|
|
3398
|
-
const resourceParams = createResourceParams$
|
|
3399
|
-
const request = createResourceRequest$
|
|
3397
|
+
function buildNetworkSnapshot$T(luvio, config, options) {
|
|
3398
|
+
const resourceParams = createResourceParams$T(config);
|
|
3399
|
+
const request = createResourceRequest$T(resourceParams);
|
|
3400
3400
|
return luvio.dispatchResourceRequest(request, options)
|
|
3401
3401
|
.then(() => {
|
|
3402
3402
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -3404,7 +3404,7 @@ function buildNetworkSnapshot$S(luvio, config, options) {
|
|
|
3404
3404
|
return luvio.storeBroadcast();
|
|
3405
3405
|
}, () => {
|
|
3406
3406
|
const cache = new StoreKeyMap();
|
|
3407
|
-
getResponseCacheKeys$
|
|
3407
|
+
getResponseCacheKeys$T(cache, luvio, resourceParams);
|
|
3408
3408
|
return cache;
|
|
3409
3409
|
});
|
|
3410
3410
|
}, (response) => {
|
|
@@ -3414,33 +3414,33 @@ function buildNetworkSnapshot$S(luvio, config, options) {
|
|
|
3414
3414
|
}
|
|
3415
3415
|
const deleteDashboardAdapterFactory = (luvio) => {
|
|
3416
3416
|
return function UnifiedAnalyticsdeleteDashboard(untrustedConfig) {
|
|
3417
|
-
const config = validateAdapterConfig$
|
|
3417
|
+
const config = validateAdapterConfig$T(untrustedConfig, deleteDashboard_ConfigPropertyNames);
|
|
3418
3418
|
// Invalid or incomplete config
|
|
3419
3419
|
if (config === null) {
|
|
3420
|
-
throw new Error(`Invalid config for "${adapterName$
|
|
3420
|
+
throw new Error(`Invalid config for "${adapterName$T}"`);
|
|
3421
3421
|
}
|
|
3422
|
-
return buildNetworkSnapshot$
|
|
3422
|
+
return buildNetworkSnapshot$T(luvio, config);
|
|
3423
3423
|
};
|
|
3424
3424
|
};
|
|
3425
3425
|
|
|
3426
|
-
function select$
|
|
3427
|
-
return select$
|
|
3426
|
+
function select$1k(luvio, params) {
|
|
3427
|
+
return select$1o();
|
|
3428
3428
|
}
|
|
3429
|
-
function keyBuilder$
|
|
3430
|
-
return keyBuilder$
|
|
3429
|
+
function keyBuilder$1d(luvio, params) {
|
|
3430
|
+
return keyBuilder$1h(luvio, {
|
|
3431
3431
|
name: params.urlParams.dashboardIdOrApiName
|
|
3432
3432
|
});
|
|
3433
3433
|
}
|
|
3434
|
-
function getResponseCacheKeys$
|
|
3435
|
-
getTypeCacheKeys$
|
|
3434
|
+
function getResponseCacheKeys$S(storeKeyMap, luvio, resourceParams, response) {
|
|
3435
|
+
getTypeCacheKeys$C(storeKeyMap, luvio, response);
|
|
3436
3436
|
}
|
|
3437
|
-
function ingestSuccess$
|
|
3437
|
+
function ingestSuccess$L(luvio, resourceParams, response, snapshotRefresh) {
|
|
3438
3438
|
const { body } = response;
|
|
3439
|
-
const key = keyBuilder$
|
|
3440
|
-
luvio.storeIngest(key, ingest$
|
|
3439
|
+
const key = keyBuilder$1d(luvio, resourceParams);
|
|
3440
|
+
luvio.storeIngest(key, ingest$C, body);
|
|
3441
3441
|
const snapshot = luvio.storeLookup({
|
|
3442
3442
|
recordId: key,
|
|
3443
|
-
node: select$
|
|
3443
|
+
node: select$1k(),
|
|
3444
3444
|
variables: {},
|
|
3445
3445
|
}, snapshotRefresh);
|
|
3446
3446
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3451,13 +3451,13 @@ function ingestSuccess$K(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3451
3451
|
deepFreeze(snapshot.data);
|
|
3452
3452
|
return snapshot;
|
|
3453
3453
|
}
|
|
3454
|
-
function ingestError$
|
|
3455
|
-
const key = keyBuilder$
|
|
3454
|
+
function ingestError$n(luvio, params, error, snapshotRefresh) {
|
|
3455
|
+
const key = keyBuilder$1d(luvio, params);
|
|
3456
3456
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3457
3457
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3458
3458
|
return errorSnapshot;
|
|
3459
3459
|
}
|
|
3460
|
-
function createResourceRequest$
|
|
3460
|
+
function createResourceRequest$S(config) {
|
|
3461
3461
|
const headers = {};
|
|
3462
3462
|
return {
|
|
3463
3463
|
baseUri: '/services/data/v67.0',
|
|
@@ -3471,106 +3471,106 @@ function createResourceRequest$R(config) {
|
|
|
3471
3471
|
};
|
|
3472
3472
|
}
|
|
3473
3473
|
|
|
3474
|
-
const adapterName$
|
|
3474
|
+
const adapterName$S = 'getDashboardByName';
|
|
3475
3475
|
const getDashboardByName_ConfigPropertyMetadata = [
|
|
3476
3476
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3477
3477
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
3478
3478
|
];
|
|
3479
|
-
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3480
|
-
const createResourceParams$
|
|
3481
|
-
function keyBuilder$
|
|
3482
|
-
const resourceParams = createResourceParams$
|
|
3483
|
-
return keyBuilder$
|
|
3479
|
+
const getDashboardByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$S, getDashboardByName_ConfigPropertyMetadata);
|
|
3480
|
+
const createResourceParams$S = /*#__PURE__*/ createResourceParams$$(getDashboardByName_ConfigPropertyMetadata);
|
|
3481
|
+
function keyBuilder$1c(luvio, config) {
|
|
3482
|
+
const resourceParams = createResourceParams$S(config);
|
|
3483
|
+
return keyBuilder$1d(luvio, resourceParams);
|
|
3484
3484
|
}
|
|
3485
|
-
function typeCheckConfig$
|
|
3485
|
+
function typeCheckConfig$S(untrustedConfig) {
|
|
3486
3486
|
const config = {};
|
|
3487
|
-
typeCheckConfig
|
|
3487
|
+
typeCheckConfig$$(untrustedConfig, config, getDashboardByName_ConfigPropertyMetadata);
|
|
3488
3488
|
return config;
|
|
3489
3489
|
}
|
|
3490
|
-
function validateAdapterConfig$
|
|
3490
|
+
function validateAdapterConfig$S(untrustedConfig, configPropertyNames) {
|
|
3491
3491
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3492
3492
|
return null;
|
|
3493
3493
|
}
|
|
3494
3494
|
if (process.env.NODE_ENV !== 'production') {
|
|
3495
3495
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3496
3496
|
}
|
|
3497
|
-
const config = typeCheckConfig$
|
|
3497
|
+
const config = typeCheckConfig$S(untrustedConfig);
|
|
3498
3498
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3499
3499
|
return null;
|
|
3500
3500
|
}
|
|
3501
3501
|
return config;
|
|
3502
3502
|
}
|
|
3503
|
-
function adapterFragment$
|
|
3504
|
-
createResourceParams$
|
|
3505
|
-
return select$
|
|
3503
|
+
function adapterFragment$n(luvio, config) {
|
|
3504
|
+
createResourceParams$S(config);
|
|
3505
|
+
return select$1k();
|
|
3506
3506
|
}
|
|
3507
|
-
function onFetchResponseSuccess$
|
|
3508
|
-
const snapshot = ingestSuccess$
|
|
3507
|
+
function onFetchResponseSuccess$n(luvio, config, resourceParams, response) {
|
|
3508
|
+
const snapshot = ingestSuccess$L(luvio, resourceParams, response, {
|
|
3509
3509
|
config,
|
|
3510
|
-
resolve: () => buildNetworkSnapshot$
|
|
3510
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions)
|
|
3511
3511
|
});
|
|
3512
3512
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3513
3513
|
}
|
|
3514
|
-
function onFetchResponseError$
|
|
3515
|
-
const snapshot = ingestError$
|
|
3514
|
+
function onFetchResponseError$n(luvio, config, resourceParams, response) {
|
|
3515
|
+
const snapshot = ingestError$n(luvio, resourceParams, response, {
|
|
3516
3516
|
config,
|
|
3517
|
-
resolve: () => buildNetworkSnapshot$
|
|
3517
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions)
|
|
3518
3518
|
});
|
|
3519
3519
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3520
3520
|
}
|
|
3521
|
-
function buildNetworkSnapshot$
|
|
3522
|
-
const resourceParams = createResourceParams$
|
|
3523
|
-
const request = createResourceRequest$
|
|
3521
|
+
function buildNetworkSnapshot$S(luvio, config, options) {
|
|
3522
|
+
const resourceParams = createResourceParams$S(config);
|
|
3523
|
+
const request = createResourceRequest$S(resourceParams);
|
|
3524
3524
|
return luvio.dispatchResourceRequest(request, options)
|
|
3525
3525
|
.then((response) => {
|
|
3526
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
3526
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$n(luvio, config, resourceParams, response), () => {
|
|
3527
3527
|
const cache = new StoreKeyMap();
|
|
3528
|
-
getResponseCacheKeys$
|
|
3528
|
+
getResponseCacheKeys$S(cache, luvio, resourceParams, response.body);
|
|
3529
3529
|
return cache;
|
|
3530
3530
|
});
|
|
3531
3531
|
}, (response) => {
|
|
3532
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
3532
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$n(luvio, config, resourceParams, response));
|
|
3533
3533
|
});
|
|
3534
3534
|
}
|
|
3535
|
-
function buildNetworkSnapshotCachePolicy$
|
|
3536
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3535
|
+
function buildNetworkSnapshotCachePolicy$n(context, coercedAdapterRequestContext) {
|
|
3536
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$S, undefined, false);
|
|
3537
3537
|
}
|
|
3538
|
-
function buildCachedSnapshotCachePolicy$
|
|
3538
|
+
function buildCachedSnapshotCachePolicy$n(context, storeLookup) {
|
|
3539
3539
|
const { luvio, config } = context;
|
|
3540
3540
|
const selector = {
|
|
3541
|
-
recordId: keyBuilder$
|
|
3542
|
-
node: adapterFragment$
|
|
3541
|
+
recordId: keyBuilder$1c(luvio, config),
|
|
3542
|
+
node: adapterFragment$n(luvio, config),
|
|
3543
3543
|
variables: {},
|
|
3544
3544
|
};
|
|
3545
3545
|
const cacheSnapshot = storeLookup(selector, {
|
|
3546
3546
|
config,
|
|
3547
|
-
resolve: () => buildNetworkSnapshot$
|
|
3547
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions)
|
|
3548
3548
|
});
|
|
3549
3549
|
return cacheSnapshot;
|
|
3550
3550
|
}
|
|
3551
3551
|
const getDashboardByNameAdapterFactory = (luvio) => function UnifiedAnalytics__getDashboardByName(untrustedConfig, requestContext) {
|
|
3552
|
-
const config = validateAdapterConfig$
|
|
3552
|
+
const config = validateAdapterConfig$S(untrustedConfig, getDashboardByName_ConfigPropertyNames);
|
|
3553
3553
|
// Invalid or incomplete config
|
|
3554
3554
|
if (config === null) {
|
|
3555
3555
|
return null;
|
|
3556
3556
|
}
|
|
3557
3557
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
3558
|
-
buildCachedSnapshotCachePolicy$
|
|
3558
|
+
buildCachedSnapshotCachePolicy$n, buildNetworkSnapshotCachePolicy$n);
|
|
3559
3559
|
};
|
|
3560
3560
|
|
|
3561
|
-
function select$
|
|
3562
|
-
return select$
|
|
3561
|
+
function select$1j(luvio, params) {
|
|
3562
|
+
return select$1o();
|
|
3563
3563
|
}
|
|
3564
|
-
function getResponseCacheKeys$
|
|
3565
|
-
getTypeCacheKeys$
|
|
3564
|
+
function getResponseCacheKeys$R(storeKeyMap, luvio, resourceParams, response) {
|
|
3565
|
+
getTypeCacheKeys$C(storeKeyMap, luvio, response);
|
|
3566
3566
|
}
|
|
3567
|
-
function ingestSuccess$
|
|
3567
|
+
function ingestSuccess$K(luvio, resourceParams, response) {
|
|
3568
3568
|
const { body } = response;
|
|
3569
3569
|
const key = keyBuilderFromType$l(luvio, body);
|
|
3570
|
-
luvio.storeIngest(key, ingest$
|
|
3570
|
+
luvio.storeIngest(key, ingest$C, body);
|
|
3571
3571
|
const snapshot = luvio.storeLookup({
|
|
3572
3572
|
recordId: key,
|
|
3573
|
-
node: select$
|
|
3573
|
+
node: select$1j(),
|
|
3574
3574
|
variables: {},
|
|
3575
3575
|
});
|
|
3576
3576
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -3581,7 +3581,7 @@ function ingestSuccess$J(luvio, resourceParams, response) {
|
|
|
3581
3581
|
deepFreeze(snapshot.data);
|
|
3582
3582
|
return snapshot;
|
|
3583
3583
|
}
|
|
3584
|
-
function createResourceRequest$
|
|
3584
|
+
function createResourceRequest$R(config) {
|
|
3585
3585
|
const headers = {};
|
|
3586
3586
|
return {
|
|
3587
3587
|
baseUri: '/services/data/v67.0',
|
|
@@ -3595,7 +3595,7 @@ function createResourceRequest$Q(config) {
|
|
|
3595
3595
|
};
|
|
3596
3596
|
}
|
|
3597
3597
|
|
|
3598
|
-
const adapterName$
|
|
3598
|
+
const adapterName$R = 'updateDashboard';
|
|
3599
3599
|
const updateDashboard_ConfigPropertyMetadata = [
|
|
3600
3600
|
generateParamConfigMetadata('dashboardIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
3601
3601
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
@@ -3610,11 +3610,11 @@ const updateDashboard_ConfigPropertyMetadata = [
|
|
|
3610
3610
|
generateParamConfigMetadata('backgroundSource', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3611
3611
|
generateParamConfigMetadata('customConfig', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3612
3612
|
];
|
|
3613
|
-
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
3614
|
-
const createResourceParams$
|
|
3615
|
-
function typeCheckConfig$
|
|
3613
|
+
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$R, updateDashboard_ConfigPropertyMetadata);
|
|
3614
|
+
const createResourceParams$R = /*#__PURE__*/ createResourceParams$$(updateDashboard_ConfigPropertyMetadata);
|
|
3615
|
+
function typeCheckConfig$R(untrustedConfig) {
|
|
3616
3616
|
const config = {};
|
|
3617
|
-
typeCheckConfig
|
|
3617
|
+
typeCheckConfig$$(untrustedConfig, config, updateDashboard_ConfigPropertyMetadata);
|
|
3618
3618
|
const untrustedConfig_layouts = untrustedConfig.layouts;
|
|
3619
3619
|
if (ArrayIsArray$1(untrustedConfig_layouts)) {
|
|
3620
3620
|
const untrustedConfig_layouts_array = [];
|
|
@@ -3686,30 +3686,30 @@ function typeCheckConfig$Q(untrustedConfig) {
|
|
|
3686
3686
|
}
|
|
3687
3687
|
return config;
|
|
3688
3688
|
}
|
|
3689
|
-
function validateAdapterConfig$
|
|
3689
|
+
function validateAdapterConfig$R(untrustedConfig, configPropertyNames) {
|
|
3690
3690
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
3691
3691
|
return null;
|
|
3692
3692
|
}
|
|
3693
3693
|
if (process.env.NODE_ENV !== 'production') {
|
|
3694
3694
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3695
3695
|
}
|
|
3696
|
-
const config = typeCheckConfig$
|
|
3696
|
+
const config = typeCheckConfig$R(untrustedConfig);
|
|
3697
3697
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3698
3698
|
return null;
|
|
3699
3699
|
}
|
|
3700
3700
|
return config;
|
|
3701
3701
|
}
|
|
3702
|
-
function buildNetworkSnapshot$
|
|
3703
|
-
const resourceParams = createResourceParams$
|
|
3704
|
-
const request = createResourceRequest$
|
|
3702
|
+
function buildNetworkSnapshot$R(luvio, config, options) {
|
|
3703
|
+
const resourceParams = createResourceParams$R(config);
|
|
3704
|
+
const request = createResourceRequest$R(resourceParams);
|
|
3705
3705
|
return luvio.dispatchResourceRequest(request, options)
|
|
3706
3706
|
.then((response) => {
|
|
3707
3707
|
return luvio.handleSuccessResponse(() => {
|
|
3708
|
-
const snapshot = ingestSuccess$
|
|
3708
|
+
const snapshot = ingestSuccess$K(luvio, resourceParams, response);
|
|
3709
3709
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
3710
3710
|
}, () => {
|
|
3711
3711
|
const cache = new StoreKeyMap();
|
|
3712
|
-
getResponseCacheKeys$
|
|
3712
|
+
getResponseCacheKeys$R(cache, luvio, resourceParams, response.body);
|
|
3713
3713
|
return cache;
|
|
3714
3714
|
});
|
|
3715
3715
|
}, (response) => {
|
|
@@ -3719,16 +3719,16 @@ function buildNetworkSnapshot$Q(luvio, config, options) {
|
|
|
3719
3719
|
}
|
|
3720
3720
|
const updateDashboardAdapterFactory = (luvio) => {
|
|
3721
3721
|
return function updateDashboard(untrustedConfig) {
|
|
3722
|
-
const config = validateAdapterConfig$
|
|
3722
|
+
const config = validateAdapterConfig$R(untrustedConfig, updateDashboard_ConfigPropertyNames);
|
|
3723
3723
|
// Invalid or incomplete config
|
|
3724
3724
|
if (config === null) {
|
|
3725
3725
|
throw new Error('Invalid config for "updateDashboard"');
|
|
3726
3726
|
}
|
|
3727
|
-
return buildNetworkSnapshot$
|
|
3727
|
+
return buildNetworkSnapshot$R(luvio, config);
|
|
3728
3728
|
};
|
|
3729
3729
|
};
|
|
3730
3730
|
|
|
3731
|
-
function validate$
|
|
3731
|
+
function validate$19(obj, path = 'DataAlertContentRepresentation') {
|
|
3732
3732
|
const v_error = (() => {
|
|
3733
3733
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3734
3734
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3742,7 +3742,7 @@ function validate$15(obj, path = 'DataAlertContentRepresentation') {
|
|
|
3742
3742
|
return v_error === undefined ? null : v_error;
|
|
3743
3743
|
}
|
|
3744
3744
|
|
|
3745
|
-
function validate$
|
|
3745
|
+
function validate$18(obj, path = 'DataAlertReceiversRepresentation') {
|
|
3746
3746
|
const v_error = (() => {
|
|
3747
3747
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3748
3748
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3756,7 +3756,7 @@ function validate$14(obj, path = 'DataAlertReceiversRepresentation') {
|
|
|
3756
3756
|
return v_error === undefined ? null : v_error;
|
|
3757
3757
|
}
|
|
3758
3758
|
|
|
3759
|
-
function validate$
|
|
3759
|
+
function validate$17(obj, path = 'DataAlertDeliveryConfigurationRepresentation') {
|
|
3760
3760
|
const v_error = (() => {
|
|
3761
3761
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3762
3762
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3769,7 +3769,7 @@ function validate$13(obj, path = 'DataAlertDeliveryConfigurationRepresentation')
|
|
|
3769
3769
|
for (let i = 0; i < obj_receivers.length; i++) {
|
|
3770
3770
|
const obj_receivers_item = obj_receivers[i];
|
|
3771
3771
|
const path_receivers_item = path_receivers + '[' + i + ']';
|
|
3772
|
-
const referencepath_receivers_itemValidationError = validate$
|
|
3772
|
+
const referencepath_receivers_itemValidationError = validate$18(obj_receivers_item, path_receivers_item);
|
|
3773
3773
|
if (referencepath_receivers_itemValidationError !== null) {
|
|
3774
3774
|
let message = 'Object doesn\'t match DataAlertReceiversRepresentation (at "' + path_receivers_item + '")\n';
|
|
3775
3775
|
message += referencepath_receivers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3780,7 +3780,21 @@ function validate$13(obj, path = 'DataAlertDeliveryConfigurationRepresentation')
|
|
|
3780
3780
|
return v_error === undefined ? null : v_error;
|
|
3781
3781
|
}
|
|
3782
3782
|
|
|
3783
|
-
function validate$
|
|
3783
|
+
function validate$16(obj, path = 'DataAlertPropertyFilterOutputRepresentation') {
|
|
3784
|
+
const v_error = (() => {
|
|
3785
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3786
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3787
|
+
}
|
|
3788
|
+
const obj_conditionCategory = obj.conditionCategory;
|
|
3789
|
+
const path_conditionCategory = path + '.conditionCategory';
|
|
3790
|
+
if (typeof obj_conditionCategory !== 'string') {
|
|
3791
|
+
return new TypeError('Expected "string" but received "' + typeof obj_conditionCategory + '" (at "' + path_conditionCategory + '")');
|
|
3792
|
+
}
|
|
3793
|
+
})();
|
|
3794
|
+
return v_error === undefined ? null : v_error;
|
|
3795
|
+
}
|
|
3796
|
+
|
|
3797
|
+
function validate$15(obj, path = 'DataAlertScheduleRepresentation') {
|
|
3784
3798
|
const v_error = (() => {
|
|
3785
3799
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3786
3800
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3808,7 +3822,7 @@ function validate$12(obj, path = 'DataAlertScheduleRepresentation') {
|
|
|
3808
3822
|
return v_error === undefined ? null : v_error;
|
|
3809
3823
|
}
|
|
3810
3824
|
|
|
3811
|
-
function validate$
|
|
3825
|
+
function validate$14(obj, path = 'DataAlertValueRepresentation') {
|
|
3812
3826
|
const v_error = (() => {
|
|
3813
3827
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3814
3828
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3822,14 +3836,14 @@ function validate$11(obj, path = 'DataAlertValueRepresentation') {
|
|
|
3822
3836
|
return v_error === undefined ? null : v_error;
|
|
3823
3837
|
}
|
|
3824
3838
|
|
|
3825
|
-
function validate$
|
|
3839
|
+
function validate$13(obj, path = 'DataAlertConditionRepresentation') {
|
|
3826
3840
|
const v_error = (() => {
|
|
3827
3841
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3828
3842
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3829
3843
|
}
|
|
3830
3844
|
const obj_leftOperand = obj.leftOperand;
|
|
3831
3845
|
const path_leftOperand = path + '.leftOperand';
|
|
3832
|
-
const referencepath_leftOperandValidationError = validate$
|
|
3846
|
+
const referencepath_leftOperandValidationError = validate$14(obj_leftOperand, path_leftOperand);
|
|
3833
3847
|
if (referencepath_leftOperandValidationError !== null) {
|
|
3834
3848
|
let message = 'Object doesn\'t match DataAlertValueRepresentation (at "' + path_leftOperand + '")\n';
|
|
3835
3849
|
message += referencepath_leftOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3842,7 +3856,7 @@ function validate$10(obj, path = 'DataAlertConditionRepresentation') {
|
|
|
3842
3856
|
}
|
|
3843
3857
|
const obj_rightOperand = obj.rightOperand;
|
|
3844
3858
|
const path_rightOperand = path + '.rightOperand';
|
|
3845
|
-
const referencepath_rightOperandValidationError = validate$
|
|
3859
|
+
const referencepath_rightOperandValidationError = validate$14(obj_rightOperand, path_rightOperand);
|
|
3846
3860
|
if (referencepath_rightOperandValidationError !== null) {
|
|
3847
3861
|
let message = 'Object doesn\'t match DataAlertValueRepresentation (at "' + path_rightOperand + '")\n';
|
|
3848
3862
|
message += referencepath_rightOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3852,7 +3866,7 @@ function validate$10(obj, path = 'DataAlertConditionRepresentation') {
|
|
|
3852
3866
|
return v_error === undefined ? null : v_error;
|
|
3853
3867
|
}
|
|
3854
3868
|
|
|
3855
|
-
function validate
|
|
3869
|
+
function validate$12(obj, path = 'DataAlertThresholdsRepresentation') {
|
|
3856
3870
|
const v_error = (() => {
|
|
3857
3871
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3858
3872
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3865,7 +3879,7 @@ function validate$$(obj, path = 'DataAlertThresholdsRepresentation') {
|
|
|
3865
3879
|
for (let i = 0; i < obj_conditions.length; i++) {
|
|
3866
3880
|
const obj_conditions_item = obj_conditions[i];
|
|
3867
3881
|
const path_conditions_item = path_conditions + '[' + i + ']';
|
|
3868
|
-
const referencepath_conditions_itemValidationError = validate$
|
|
3882
|
+
const referencepath_conditions_itemValidationError = validate$13(obj_conditions_item, path_conditions_item);
|
|
3869
3883
|
if (referencepath_conditions_itemValidationError !== null) {
|
|
3870
3884
|
let message = 'Object doesn\'t match DataAlertConditionRepresentation (at "' + path_conditions_item + '")\n';
|
|
3871
3885
|
message += referencepath_conditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3881,9 +3895,9 @@ function validate$$(obj, path = 'DataAlertThresholdsRepresentation') {
|
|
|
3881
3895
|
return v_error === undefined ? null : v_error;
|
|
3882
3896
|
}
|
|
3883
3897
|
|
|
3884
|
-
const TTL$
|
|
3885
|
-
const VERSION$
|
|
3886
|
-
function validate$
|
|
3898
|
+
const TTL$p = 500;
|
|
3899
|
+
const VERSION$A = "c2b3a7269126a29557fb07e4baa3abf9";
|
|
3900
|
+
function validate$11(obj, path = 'DataAlertRepresentation') {
|
|
3887
3901
|
const v_error = (() => {
|
|
3888
3902
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3889
3903
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3923,7 +3937,7 @@ function validate$_(obj, path = 'DataAlertRepresentation') {
|
|
|
3923
3937
|
}
|
|
3924
3938
|
const obj_content = obj.content;
|
|
3925
3939
|
const path_content = path + '.content';
|
|
3926
|
-
const referencepath_contentValidationError = validate$
|
|
3940
|
+
const referencepath_contentValidationError = validate$19(obj_content, path_content);
|
|
3927
3941
|
if (referencepath_contentValidationError !== null) {
|
|
3928
3942
|
let message = 'Object doesn\'t match DataAlertContentRepresentation (at "' + path_content + '")\n';
|
|
3929
3943
|
message += referencepath_contentValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3941,7 +3955,7 @@ function validate$_(obj, path = 'DataAlertRepresentation') {
|
|
|
3941
3955
|
}
|
|
3942
3956
|
const obj_deliveryConfigurations = obj.deliveryConfigurations;
|
|
3943
3957
|
const path_deliveryConfigurations = path + '.deliveryConfigurations';
|
|
3944
|
-
const referencepath_deliveryConfigurationsValidationError = validate$
|
|
3958
|
+
const referencepath_deliveryConfigurationsValidationError = validate$17(obj_deliveryConfigurations, path_deliveryConfigurations);
|
|
3945
3959
|
if (referencepath_deliveryConfigurationsValidationError !== null) {
|
|
3946
3960
|
let message = 'Object doesn\'t match DataAlertDeliveryConfigurationRepresentation (at "' + path_deliveryConfigurations + '")\n';
|
|
3947
3961
|
message += referencepath_deliveryConfigurationsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3957,9 +3971,19 @@ function validate$_(obj, path = 'DataAlertRepresentation') {
|
|
|
3957
3971
|
if (typeof obj_lastModifiedDate !== 'string') {
|
|
3958
3972
|
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
3959
3973
|
}
|
|
3974
|
+
if (obj.properties !== undefined) {
|
|
3975
|
+
const obj_properties = obj.properties;
|
|
3976
|
+
const path_properties = path + '.properties';
|
|
3977
|
+
const referencepath_propertiesValidationError = validate$16(obj_properties, path_properties);
|
|
3978
|
+
if (referencepath_propertiesValidationError !== null) {
|
|
3979
|
+
let message = 'Object doesn\'t match DataAlertPropertyFilterOutputRepresentation (at "' + path_properties + '")\n';
|
|
3980
|
+
message += referencepath_propertiesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
3981
|
+
return new TypeError(message);
|
|
3982
|
+
}
|
|
3983
|
+
}
|
|
3960
3984
|
const obj_schedule = obj.schedule;
|
|
3961
3985
|
const path_schedule = path + '.schedule';
|
|
3962
|
-
const referencepath_scheduleValidationError = validate$
|
|
3986
|
+
const referencepath_scheduleValidationError = validate$15(obj_schedule, path_schedule);
|
|
3963
3987
|
if (referencepath_scheduleValidationError !== null) {
|
|
3964
3988
|
let message = 'Object doesn\'t match DataAlertScheduleRepresentation (at "' + path_schedule + '")\n';
|
|
3965
3989
|
message += referencepath_scheduleValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3967,7 +3991,7 @@ function validate$_(obj, path = 'DataAlertRepresentation') {
|
|
|
3967
3991
|
}
|
|
3968
3992
|
const obj_thresholds = obj.thresholds;
|
|
3969
3993
|
const path_thresholds = path + '.thresholds';
|
|
3970
|
-
const referencepath_thresholdsValidationError = validate
|
|
3994
|
+
const referencepath_thresholdsValidationError = validate$12(obj_thresholds, path_thresholds);
|
|
3971
3995
|
if (referencepath_thresholdsValidationError !== null) {
|
|
3972
3996
|
let message = 'Object doesn\'t match DataAlertThresholdsRepresentation (at "' + path_thresholds + '")\n';
|
|
3973
3997
|
message += referencepath_thresholdsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3976,58 +4000,58 @@ function validate$_(obj, path = 'DataAlertRepresentation') {
|
|
|
3976
4000
|
})();
|
|
3977
4001
|
return v_error === undefined ? null : v_error;
|
|
3978
4002
|
}
|
|
3979
|
-
const RepresentationType$
|
|
3980
|
-
function keyBuilder$
|
|
3981
|
-
return keyPrefix + '::' + RepresentationType$
|
|
4003
|
+
const RepresentationType$C = 'DataAlertRepresentation';
|
|
4004
|
+
function keyBuilder$1b(luvio, config) {
|
|
4005
|
+
return keyPrefix + '::' + RepresentationType$C + ':' + config.dataAlertId;
|
|
3982
4006
|
}
|
|
3983
4007
|
function keyBuilderFromType$k(luvio, object) {
|
|
3984
4008
|
const keyParams = {
|
|
3985
4009
|
dataAlertId: object.id
|
|
3986
4010
|
};
|
|
3987
|
-
return keyBuilder$
|
|
4011
|
+
return keyBuilder$1b(luvio, keyParams);
|
|
3988
4012
|
}
|
|
3989
|
-
function normalize$
|
|
4013
|
+
function normalize$A(input, existing, path, luvio, store, timestamp) {
|
|
3990
4014
|
return input;
|
|
3991
4015
|
}
|
|
3992
|
-
const select$
|
|
4016
|
+
const select$1i = function DataAlertRepresentationSelect() {
|
|
3993
4017
|
return {
|
|
3994
4018
|
kind: 'Fragment',
|
|
3995
|
-
version: VERSION$
|
|
4019
|
+
version: VERSION$A,
|
|
3996
4020
|
private: [],
|
|
3997
4021
|
opaque: true
|
|
3998
4022
|
};
|
|
3999
4023
|
};
|
|
4000
|
-
function equals$
|
|
4024
|
+
function equals$A(existing, incoming) {
|
|
4001
4025
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4002
4026
|
return false;
|
|
4003
4027
|
}
|
|
4004
4028
|
return true;
|
|
4005
4029
|
}
|
|
4006
|
-
const ingest$
|
|
4030
|
+
const ingest$A = function DataAlertRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4007
4031
|
if (process.env.NODE_ENV !== 'production') {
|
|
4008
|
-
const validateError = validate$
|
|
4032
|
+
const validateError = validate$11(input);
|
|
4009
4033
|
if (validateError !== null) {
|
|
4010
4034
|
throw validateError;
|
|
4011
4035
|
}
|
|
4012
4036
|
}
|
|
4013
4037
|
const key = keyBuilderFromType$k(luvio, input);
|
|
4014
|
-
const ttlToUse = TTL$
|
|
4015
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4038
|
+
const ttlToUse = TTL$p;
|
|
4039
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$A, "UnifiedAnalytics", VERSION$A, RepresentationType$C, equals$A);
|
|
4016
4040
|
return createLink(key);
|
|
4017
4041
|
};
|
|
4018
|
-
function getTypeCacheKeys$
|
|
4042
|
+
function getTypeCacheKeys$A(rootKeySet, luvio, input, fullPathFactory) {
|
|
4019
4043
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4020
4044
|
const rootKey = keyBuilderFromType$k(luvio, input);
|
|
4021
4045
|
rootKeySet.set(rootKey, {
|
|
4022
4046
|
namespace: keyPrefix,
|
|
4023
|
-
representationName: RepresentationType$
|
|
4047
|
+
representationName: RepresentationType$C,
|
|
4024
4048
|
mergeable: false
|
|
4025
4049
|
});
|
|
4026
4050
|
}
|
|
4027
4051
|
|
|
4028
|
-
const TTL$
|
|
4029
|
-
const VERSION$
|
|
4030
|
-
function validate$
|
|
4052
|
+
const TTL$o = 500;
|
|
4053
|
+
const VERSION$z = "d3e9e0efe02f7fa88865b7e72fe25f25";
|
|
4054
|
+
function validate$10(obj, path = 'DataAlertCollectionRepresentation') {
|
|
4031
4055
|
const v_error = (() => {
|
|
4032
4056
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4033
4057
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4040,7 +4064,7 @@ function validate$Z(obj, path = 'DataAlertCollectionRepresentation') {
|
|
|
4040
4064
|
for (let i = 0; i < obj_dataAlerts.length; i++) {
|
|
4041
4065
|
const obj_dataAlerts_item = obj_dataAlerts[i];
|
|
4042
4066
|
const path_dataAlerts_item = path_dataAlerts + '[' + i + ']';
|
|
4043
|
-
const referencepath_dataAlerts_itemValidationError = validate$
|
|
4067
|
+
const referencepath_dataAlerts_itemValidationError = validate$11(obj_dataAlerts_item, path_dataAlerts_item);
|
|
4044
4068
|
if (referencepath_dataAlerts_itemValidationError !== null) {
|
|
4045
4069
|
let message = 'Object doesn\'t match DataAlertRepresentation (at "' + path_dataAlerts_item + '")\n';
|
|
4046
4070
|
message += referencepath_dataAlerts_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4081,62 +4105,62 @@ function validate$Z(obj, path = 'DataAlertCollectionRepresentation') {
|
|
|
4081
4105
|
})();
|
|
4082
4106
|
return v_error === undefined ? null : v_error;
|
|
4083
4107
|
}
|
|
4084
|
-
const RepresentationType$
|
|
4085
|
-
function normalize$
|
|
4108
|
+
const RepresentationType$B = 'DataAlertCollectionRepresentation';
|
|
4109
|
+
function normalize$z(input, existing, path, luvio, store, timestamp) {
|
|
4086
4110
|
return input;
|
|
4087
4111
|
}
|
|
4088
|
-
const select$
|
|
4112
|
+
const select$1h = function DataAlertCollectionRepresentationSelect() {
|
|
4089
4113
|
return {
|
|
4090
4114
|
kind: 'Fragment',
|
|
4091
|
-
version: VERSION$
|
|
4115
|
+
version: VERSION$z,
|
|
4092
4116
|
private: [],
|
|
4093
4117
|
opaque: true
|
|
4094
4118
|
};
|
|
4095
4119
|
};
|
|
4096
|
-
function equals$
|
|
4120
|
+
function equals$z(existing, incoming) {
|
|
4097
4121
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4098
4122
|
return false;
|
|
4099
4123
|
}
|
|
4100
4124
|
return true;
|
|
4101
4125
|
}
|
|
4102
|
-
const ingest$
|
|
4126
|
+
const ingest$z = function DataAlertCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4103
4127
|
if (process.env.NODE_ENV !== 'production') {
|
|
4104
|
-
const validateError = validate$
|
|
4128
|
+
const validateError = validate$10(input);
|
|
4105
4129
|
if (validateError !== null) {
|
|
4106
4130
|
throw validateError;
|
|
4107
4131
|
}
|
|
4108
4132
|
}
|
|
4109
4133
|
const key = path.fullPath;
|
|
4110
|
-
const ttlToUse = TTL$
|
|
4111
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
4134
|
+
const ttlToUse = TTL$o;
|
|
4135
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$z, "UnifiedAnalytics", VERSION$z, RepresentationType$B, equals$z);
|
|
4112
4136
|
return createLink(key);
|
|
4113
4137
|
};
|
|
4114
|
-
function getTypeCacheKeys$
|
|
4138
|
+
function getTypeCacheKeys$z(rootKeySet, luvio, input, fullPathFactory) {
|
|
4115
4139
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4116
4140
|
const rootKey = fullPathFactory();
|
|
4117
4141
|
rootKeySet.set(rootKey, {
|
|
4118
4142
|
namespace: keyPrefix,
|
|
4119
|
-
representationName: RepresentationType$
|
|
4143
|
+
representationName: RepresentationType$B,
|
|
4120
4144
|
mergeable: false
|
|
4121
4145
|
});
|
|
4122
4146
|
}
|
|
4123
4147
|
|
|
4124
|
-
function select$
|
|
4125
|
-
return select$
|
|
4148
|
+
function select$1g(luvio, params) {
|
|
4149
|
+
return select$1h();
|
|
4126
4150
|
}
|
|
4127
|
-
function keyBuilder$
|
|
4151
|
+
function keyBuilder$1a(luvio, params) {
|
|
4128
4152
|
return keyPrefix + '::DataAlertCollectionRepresentation:(' + 'ownerId:' + params.queryParams.ownerId + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
4129
4153
|
}
|
|
4130
|
-
function getResponseCacheKeys$
|
|
4131
|
-
getTypeCacheKeys$
|
|
4154
|
+
function getResponseCacheKeys$Q(storeKeyMap, luvio, resourceParams, response) {
|
|
4155
|
+
getTypeCacheKeys$z(storeKeyMap, luvio, response, () => keyBuilder$1a(luvio, resourceParams));
|
|
4132
4156
|
}
|
|
4133
|
-
function ingestSuccess$
|
|
4157
|
+
function ingestSuccess$J(luvio, resourceParams, response, snapshotRefresh) {
|
|
4134
4158
|
const { body } = response;
|
|
4135
|
-
const key = keyBuilder$
|
|
4136
|
-
luvio.storeIngest(key, ingest$
|
|
4159
|
+
const key = keyBuilder$1a(luvio, resourceParams);
|
|
4160
|
+
luvio.storeIngest(key, ingest$z, body);
|
|
4137
4161
|
const snapshot = luvio.storeLookup({
|
|
4138
4162
|
recordId: key,
|
|
4139
|
-
node: select$
|
|
4163
|
+
node: select$1g(),
|
|
4140
4164
|
variables: {},
|
|
4141
4165
|
}, snapshotRefresh);
|
|
4142
4166
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4147,19 +4171,19 @@ function ingestSuccess$I(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4147
4171
|
deepFreeze(snapshot.data);
|
|
4148
4172
|
return snapshot;
|
|
4149
4173
|
}
|
|
4150
|
-
function ingestError$
|
|
4151
|
-
const key = keyBuilder$
|
|
4174
|
+
function ingestError$m(luvio, params, error, snapshotRefresh) {
|
|
4175
|
+
const key = keyBuilder$1a(luvio, params);
|
|
4152
4176
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4153
4177
|
const storeMetadataParams = {
|
|
4154
|
-
ttl: TTL$
|
|
4178
|
+
ttl: TTL$o,
|
|
4155
4179
|
namespace: keyPrefix,
|
|
4156
|
-
version: VERSION$
|
|
4157
|
-
representationName: RepresentationType$
|
|
4180
|
+
version: VERSION$z,
|
|
4181
|
+
representationName: RepresentationType$B
|
|
4158
4182
|
};
|
|
4159
4183
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4160
4184
|
return errorSnapshot;
|
|
4161
4185
|
}
|
|
4162
|
-
function createResourceRequest$
|
|
4186
|
+
function createResourceRequest$Q(config) {
|
|
4163
4187
|
const headers = {};
|
|
4164
4188
|
return {
|
|
4165
4189
|
baseUri: '/services/data/v67.0',
|
|
@@ -4173,99 +4197,99 @@ function createResourceRequest$P(config) {
|
|
|
4173
4197
|
};
|
|
4174
4198
|
}
|
|
4175
4199
|
|
|
4176
|
-
const adapterName$
|
|
4200
|
+
const adapterName$Q = 'getDataAlertCollection';
|
|
4177
4201
|
const getDataAlertCollection_ConfigPropertyMetadata = [
|
|
4178
4202
|
generateParamConfigMetadata('ownerId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
4179
4203
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4180
4204
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
4181
4205
|
];
|
|
4182
|
-
const getDataAlertCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4183
|
-
const createResourceParams$
|
|
4184
|
-
function keyBuilder$
|
|
4185
|
-
const resourceParams = createResourceParams$
|
|
4186
|
-
return keyBuilder$
|
|
4206
|
+
const getDataAlertCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Q, getDataAlertCollection_ConfigPropertyMetadata);
|
|
4207
|
+
const createResourceParams$Q = /*#__PURE__*/ createResourceParams$$(getDataAlertCollection_ConfigPropertyMetadata);
|
|
4208
|
+
function keyBuilder$19(luvio, config) {
|
|
4209
|
+
const resourceParams = createResourceParams$Q(config);
|
|
4210
|
+
return keyBuilder$1a(luvio, resourceParams);
|
|
4187
4211
|
}
|
|
4188
|
-
function typeCheckConfig$
|
|
4212
|
+
function typeCheckConfig$Q(untrustedConfig) {
|
|
4189
4213
|
const config = {};
|
|
4190
|
-
typeCheckConfig
|
|
4214
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAlertCollection_ConfigPropertyMetadata);
|
|
4191
4215
|
return config;
|
|
4192
4216
|
}
|
|
4193
|
-
function validateAdapterConfig$
|
|
4217
|
+
function validateAdapterConfig$Q(untrustedConfig, configPropertyNames) {
|
|
4194
4218
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4195
4219
|
return null;
|
|
4196
4220
|
}
|
|
4197
4221
|
if (process.env.NODE_ENV !== 'production') {
|
|
4198
4222
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4199
4223
|
}
|
|
4200
|
-
const config = typeCheckConfig$
|
|
4224
|
+
const config = typeCheckConfig$Q(untrustedConfig);
|
|
4201
4225
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4202
4226
|
return null;
|
|
4203
4227
|
}
|
|
4204
4228
|
return config;
|
|
4205
4229
|
}
|
|
4206
|
-
function adapterFragment$
|
|
4207
|
-
createResourceParams$
|
|
4208
|
-
return select$
|
|
4230
|
+
function adapterFragment$m(luvio, config) {
|
|
4231
|
+
createResourceParams$Q(config);
|
|
4232
|
+
return select$1g();
|
|
4209
4233
|
}
|
|
4210
|
-
function onFetchResponseSuccess$
|
|
4211
|
-
const snapshot = ingestSuccess$
|
|
4234
|
+
function onFetchResponseSuccess$m(luvio, config, resourceParams, response) {
|
|
4235
|
+
const snapshot = ingestSuccess$J(luvio, resourceParams, response, {
|
|
4212
4236
|
config,
|
|
4213
|
-
resolve: () => buildNetworkSnapshot$
|
|
4237
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions)
|
|
4214
4238
|
});
|
|
4215
4239
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4216
4240
|
}
|
|
4217
|
-
function onFetchResponseError$
|
|
4218
|
-
const snapshot = ingestError$
|
|
4241
|
+
function onFetchResponseError$m(luvio, config, resourceParams, response) {
|
|
4242
|
+
const snapshot = ingestError$m(luvio, resourceParams, response, {
|
|
4219
4243
|
config,
|
|
4220
|
-
resolve: () => buildNetworkSnapshot$
|
|
4244
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions)
|
|
4221
4245
|
});
|
|
4222
4246
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4223
4247
|
}
|
|
4224
|
-
function buildNetworkSnapshot$
|
|
4225
|
-
const resourceParams = createResourceParams$
|
|
4226
|
-
const request = createResourceRequest$
|
|
4248
|
+
function buildNetworkSnapshot$Q(luvio, config, options) {
|
|
4249
|
+
const resourceParams = createResourceParams$Q(config);
|
|
4250
|
+
const request = createResourceRequest$Q(resourceParams);
|
|
4227
4251
|
return luvio.dispatchResourceRequest(request, options)
|
|
4228
4252
|
.then((response) => {
|
|
4229
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
4253
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$m(luvio, config, resourceParams, response), () => {
|
|
4230
4254
|
const cache = new StoreKeyMap();
|
|
4231
|
-
getResponseCacheKeys$
|
|
4255
|
+
getResponseCacheKeys$Q(cache, luvio, resourceParams, response.body);
|
|
4232
4256
|
return cache;
|
|
4233
4257
|
});
|
|
4234
4258
|
}, (response) => {
|
|
4235
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
4259
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$m(luvio, config, resourceParams, response));
|
|
4236
4260
|
});
|
|
4237
4261
|
}
|
|
4238
|
-
function buildNetworkSnapshotCachePolicy$
|
|
4239
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4262
|
+
function buildNetworkSnapshotCachePolicy$m(context, coercedAdapterRequestContext) {
|
|
4263
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$Q, undefined, false);
|
|
4240
4264
|
}
|
|
4241
|
-
function buildCachedSnapshotCachePolicy$
|
|
4265
|
+
function buildCachedSnapshotCachePolicy$m(context, storeLookup) {
|
|
4242
4266
|
const { luvio, config } = context;
|
|
4243
4267
|
const selector = {
|
|
4244
|
-
recordId: keyBuilder$
|
|
4245
|
-
node: adapterFragment$
|
|
4268
|
+
recordId: keyBuilder$19(luvio, config),
|
|
4269
|
+
node: adapterFragment$m(luvio, config),
|
|
4246
4270
|
variables: {},
|
|
4247
4271
|
};
|
|
4248
4272
|
const cacheSnapshot = storeLookup(selector, {
|
|
4249
4273
|
config,
|
|
4250
|
-
resolve: () => buildNetworkSnapshot$
|
|
4274
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions)
|
|
4251
4275
|
});
|
|
4252
4276
|
return cacheSnapshot;
|
|
4253
4277
|
}
|
|
4254
4278
|
const getDataAlertCollectionAdapterFactory = (luvio) => function UnifiedAnalytics__getDataAlertCollection(untrustedConfig, requestContext) {
|
|
4255
|
-
const config = validateAdapterConfig$
|
|
4279
|
+
const config = validateAdapterConfig$Q(untrustedConfig, getDataAlertCollection_ConfigPropertyNames);
|
|
4256
4280
|
// Invalid or incomplete config
|
|
4257
4281
|
if (config === null) {
|
|
4258
4282
|
return null;
|
|
4259
4283
|
}
|
|
4260
4284
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4261
|
-
buildCachedSnapshotCachePolicy$
|
|
4285
|
+
buildCachedSnapshotCachePolicy$m, buildNetworkSnapshotCachePolicy$m);
|
|
4262
4286
|
};
|
|
4263
4287
|
|
|
4264
4288
|
var DiscriminatorValues$3;
|
|
4265
4289
|
(function (DiscriminatorValues) {
|
|
4266
4290
|
DiscriminatorValues["Notification"] = "Notification";
|
|
4267
4291
|
})(DiscriminatorValues$3 || (DiscriminatorValues$3 = {}));
|
|
4268
|
-
function validate
|
|
4292
|
+
function validate$$(obj, path = 'DataAlertReceiversInputRepresentation') {
|
|
4269
4293
|
const v_error = (() => {
|
|
4270
4294
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4271
4295
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4279,7 +4303,7 @@ function validate$Y(obj, path = 'DataAlertReceiversInputRepresentation') {
|
|
|
4279
4303
|
return v_error === undefined ? null : v_error;
|
|
4280
4304
|
}
|
|
4281
4305
|
|
|
4282
|
-
function validate$
|
|
4306
|
+
function validate$_(obj, path = 'DataAlertDeliveryConfigurationInputRepresentation') {
|
|
4283
4307
|
const v_error = (() => {
|
|
4284
4308
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4285
4309
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4292,7 +4316,7 @@ function validate$X(obj, path = 'DataAlertDeliveryConfigurationInputRepresentati
|
|
|
4292
4316
|
for (let i = 0; i < obj_receivers.length; i++) {
|
|
4293
4317
|
const obj_receivers_item = obj_receivers[i];
|
|
4294
4318
|
const path_receivers_item = path_receivers + '[' + i + ']';
|
|
4295
|
-
const referencepath_receivers_itemValidationError = validate
|
|
4319
|
+
const referencepath_receivers_itemValidationError = validate$$(obj_receivers_item, path_receivers_item);
|
|
4296
4320
|
if (referencepath_receivers_itemValidationError !== null) {
|
|
4297
4321
|
let message = 'Object doesn\'t match DataAlertReceiversInputRepresentation (at "' + path_receivers_item + '")\n';
|
|
4298
4322
|
message += referencepath_receivers_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4303,12 +4327,49 @@ function validate$X(obj, path = 'DataAlertDeliveryConfigurationInputRepresentati
|
|
|
4303
4327
|
return v_error === undefined ? null : v_error;
|
|
4304
4328
|
}
|
|
4305
4329
|
|
|
4330
|
+
function validate$Z(obj, path = 'UnifiedFilterInputRepresentation') {
|
|
4331
|
+
const v_error = (() => {
|
|
4332
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4333
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4334
|
+
}
|
|
4335
|
+
if (obj.fieldName !== undefined) {
|
|
4336
|
+
const obj_fieldName = obj.fieldName;
|
|
4337
|
+
const path_fieldName = path + '.fieldName';
|
|
4338
|
+
if (typeof obj_fieldName !== 'string') {
|
|
4339
|
+
return new TypeError('Expected "string" but received "' + typeof obj_fieldName + '" (at "' + path_fieldName + '")');
|
|
4340
|
+
}
|
|
4341
|
+
}
|
|
4342
|
+
if (obj.operator !== undefined) {
|
|
4343
|
+
const obj_operator = obj.operator;
|
|
4344
|
+
const path_operator = path + '.operator';
|
|
4345
|
+
if (typeof obj_operator !== 'string') {
|
|
4346
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
4347
|
+
}
|
|
4348
|
+
}
|
|
4349
|
+
if (obj.values !== undefined) {
|
|
4350
|
+
const obj_values = obj.values;
|
|
4351
|
+
const path_values = path + '.values';
|
|
4352
|
+
if (!ArrayIsArray(obj_values)) {
|
|
4353
|
+
return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
|
|
4354
|
+
}
|
|
4355
|
+
for (let i = 0; i < obj_values.length; i++) {
|
|
4356
|
+
const obj_values_item = obj_values[i];
|
|
4357
|
+
const path_values_item = path_values + '[' + i + ']';
|
|
4358
|
+
if (obj_values_item === undefined) {
|
|
4359
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
|
|
4360
|
+
}
|
|
4361
|
+
}
|
|
4362
|
+
}
|
|
4363
|
+
})();
|
|
4364
|
+
return v_error === undefined ? null : v_error;
|
|
4365
|
+
}
|
|
4366
|
+
|
|
4306
4367
|
var DiscriminatorValues$2;
|
|
4307
4368
|
(function (DiscriminatorValues) {
|
|
4308
4369
|
DiscriminatorValues["RawValue"] = "RawValue";
|
|
4309
4370
|
DiscriminatorValues["Insights"] = "Insights";
|
|
4310
4371
|
})(DiscriminatorValues$2 || (DiscriminatorValues$2 = {}));
|
|
4311
|
-
function validate$
|
|
4372
|
+
function validate$Y(obj, path = 'DataAlertValueInputRepresentation') {
|
|
4312
4373
|
const v_error = (() => {
|
|
4313
4374
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4314
4375
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4322,7 +4383,7 @@ function validate$W(obj, path = 'DataAlertValueInputRepresentation') {
|
|
|
4322
4383
|
return v_error === undefined ? null : v_error;
|
|
4323
4384
|
}
|
|
4324
4385
|
|
|
4325
|
-
function validate$
|
|
4386
|
+
function validate$X(obj, path = 'DataAlertValueRightOperandInputRepresentation') {
|
|
4326
4387
|
const v_error = (() => {
|
|
4327
4388
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4328
4389
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4336,14 +4397,14 @@ function validate$V(obj, path = 'DataAlertValueRightOperandInputRepresentation')
|
|
|
4336
4397
|
return v_error === undefined ? null : v_error;
|
|
4337
4398
|
}
|
|
4338
4399
|
|
|
4339
|
-
function validate$
|
|
4400
|
+
function validate$W(obj, path = 'DataAlertConditionInputRepresentation') {
|
|
4340
4401
|
const v_error = (() => {
|
|
4341
4402
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4342
4403
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4343
4404
|
}
|
|
4344
4405
|
const obj_leftOperand = obj.leftOperand;
|
|
4345
4406
|
const path_leftOperand = path + '.leftOperand';
|
|
4346
|
-
const referencepath_leftOperandValidationError = validate$
|
|
4407
|
+
const referencepath_leftOperandValidationError = validate$Y(obj_leftOperand, path_leftOperand);
|
|
4347
4408
|
if (referencepath_leftOperandValidationError !== null) {
|
|
4348
4409
|
let message = 'Object doesn\'t match DataAlertValueInputRepresentation (at "' + path_leftOperand + '")\n';
|
|
4349
4410
|
message += referencepath_leftOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4356,7 +4417,7 @@ function validate$U(obj, path = 'DataAlertConditionInputRepresentation') {
|
|
|
4356
4417
|
}
|
|
4357
4418
|
const obj_rightOperand = obj.rightOperand;
|
|
4358
4419
|
const path_rightOperand = path + '.rightOperand';
|
|
4359
|
-
const referencepath_rightOperandValidationError = validate$
|
|
4420
|
+
const referencepath_rightOperandValidationError = validate$X(obj_rightOperand, path_rightOperand);
|
|
4360
4421
|
if (referencepath_rightOperandValidationError !== null) {
|
|
4361
4422
|
let message = 'Object doesn\'t match DataAlertValueRightOperandInputRepresentation (at "' + path_rightOperand + '")\n';
|
|
4362
4423
|
message += referencepath_rightOperandValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4366,7 +4427,7 @@ function validate$U(obj, path = 'DataAlertConditionInputRepresentation') {
|
|
|
4366
4427
|
return v_error === undefined ? null : v_error;
|
|
4367
4428
|
}
|
|
4368
4429
|
|
|
4369
|
-
function validate$
|
|
4430
|
+
function validate$V(obj, path = 'DataAlertThresholdsInputRepresentation') {
|
|
4370
4431
|
const v_error = (() => {
|
|
4371
4432
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4372
4433
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4379,7 +4440,7 @@ function validate$T(obj, path = 'DataAlertThresholdsInputRepresentation') {
|
|
|
4379
4440
|
for (let i = 0; i < obj_conditions.length; i++) {
|
|
4380
4441
|
const obj_conditions_item = obj_conditions[i];
|
|
4381
4442
|
const path_conditions_item = path_conditions + '[' + i + ']';
|
|
4382
|
-
const referencepath_conditions_itemValidationError = validate$
|
|
4443
|
+
const referencepath_conditions_itemValidationError = validate$W(obj_conditions_item, path_conditions_item);
|
|
4383
4444
|
if (referencepath_conditions_itemValidationError !== null) {
|
|
4384
4445
|
let message = 'Object doesn\'t match DataAlertConditionInputRepresentation (at "' + path_conditions_item + '")\n';
|
|
4385
4446
|
message += referencepath_conditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4395,19 +4456,19 @@ function validate$T(obj, path = 'DataAlertThresholdsInputRepresentation') {
|
|
|
4395
4456
|
return v_error === undefined ? null : v_error;
|
|
4396
4457
|
}
|
|
4397
4458
|
|
|
4398
|
-
function select$
|
|
4399
|
-
return select$
|
|
4459
|
+
function select$1f(luvio, params) {
|
|
4460
|
+
return select$1i();
|
|
4400
4461
|
}
|
|
4401
|
-
function getResponseCacheKeys$
|
|
4402
|
-
getTypeCacheKeys$
|
|
4462
|
+
function getResponseCacheKeys$P(storeKeyMap, luvio, resourceParams, response) {
|
|
4463
|
+
getTypeCacheKeys$A(storeKeyMap, luvio, response);
|
|
4403
4464
|
}
|
|
4404
|
-
function ingestSuccess$
|
|
4465
|
+
function ingestSuccess$I(luvio, resourceParams, response) {
|
|
4405
4466
|
const { body } = response;
|
|
4406
4467
|
const key = keyBuilderFromType$k(luvio, body);
|
|
4407
|
-
luvio.storeIngest(key, ingest$
|
|
4468
|
+
luvio.storeIngest(key, ingest$A, body);
|
|
4408
4469
|
const snapshot = luvio.storeLookup({
|
|
4409
4470
|
recordId: key,
|
|
4410
|
-
node: select$
|
|
4471
|
+
node: select$1f(),
|
|
4411
4472
|
variables: {},
|
|
4412
4473
|
});
|
|
4413
4474
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -4418,7 +4479,7 @@ function ingestSuccess$H(luvio, resourceParams, response) {
|
|
|
4418
4479
|
deepFreeze(snapshot.data);
|
|
4419
4480
|
return snapshot;
|
|
4420
4481
|
}
|
|
4421
|
-
function createResourceRequest$
|
|
4482
|
+
function createResourceRequest$P(config) {
|
|
4422
4483
|
const headers = {};
|
|
4423
4484
|
return {
|
|
4424
4485
|
baseUri: '/services/data/v67.0',
|
|
@@ -4436,7 +4497,7 @@ var DiscriminatorValues$1;
|
|
|
4436
4497
|
(function (DiscriminatorValues) {
|
|
4437
4498
|
DiscriminatorValues["Metric"] = "Metric";
|
|
4438
4499
|
})(DiscriminatorValues$1 || (DiscriminatorValues$1 = {}));
|
|
4439
|
-
function validate$
|
|
4500
|
+
function validate$U(obj, path = 'DataAlertContentInputRepresentation') {
|
|
4440
4501
|
const v_error = (() => {
|
|
4441
4502
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4442
4503
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4456,7 +4517,7 @@ var DiscriminatorValues;
|
|
|
4456
4517
|
DiscriminatorValues["Weekly"] = "Weekly";
|
|
4457
4518
|
DiscriminatorValues["EveryNMinutes"] = "EveryNMinutes";
|
|
4458
4519
|
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
4459
|
-
function validate$
|
|
4520
|
+
function validate$T(obj, path = 'DataAlertScheduleInputRepresentation') {
|
|
4460
4521
|
const v_error = (() => {
|
|
4461
4522
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4462
4523
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4484,7 +4545,7 @@ function validate$R(obj, path = 'DataAlertScheduleInputRepresentation') {
|
|
|
4484
4545
|
return v_error === undefined ? null : v_error;
|
|
4485
4546
|
}
|
|
4486
4547
|
|
|
4487
|
-
const adapterName$
|
|
4548
|
+
const adapterName$P = 'createDataAlert';
|
|
4488
4549
|
const createDataAlert_ConfigPropertyMetadata = [
|
|
4489
4550
|
generateParamConfigMetadata('runNow', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
4490
4551
|
generateParamConfigMetadata('content', true, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -4495,28 +4556,28 @@ const createDataAlert_ConfigPropertyMetadata = [
|
|
|
4495
4556
|
generateParamConfigMetadata('utterance', true, 2 /* Body */, 0 /* String */),
|
|
4496
4557
|
generateParamConfigMetadata('agent', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4497
4558
|
];
|
|
4498
|
-
const createDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
4499
|
-
const createResourceParams$
|
|
4500
|
-
function typeCheckConfig$
|
|
4559
|
+
const createDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$P, createDataAlert_ConfigPropertyMetadata);
|
|
4560
|
+
const createResourceParams$P = /*#__PURE__*/ createResourceParams$$(createDataAlert_ConfigPropertyMetadata);
|
|
4561
|
+
function typeCheckConfig$P(untrustedConfig) {
|
|
4501
4562
|
const config = {};
|
|
4502
|
-
typeCheckConfig
|
|
4563
|
+
typeCheckConfig$$(untrustedConfig, config, createDataAlert_ConfigPropertyMetadata);
|
|
4503
4564
|
const untrustedConfig_content = untrustedConfig.content;
|
|
4504
|
-
const referenceDataAlertContentInputRepresentationValidationError = validate$
|
|
4565
|
+
const referenceDataAlertContentInputRepresentationValidationError = validate$U(untrustedConfig_content);
|
|
4505
4566
|
if (referenceDataAlertContentInputRepresentationValidationError === null) {
|
|
4506
4567
|
config.content = untrustedConfig_content;
|
|
4507
4568
|
}
|
|
4508
4569
|
const untrustedConfig_deliveryConfigurations = untrustedConfig.deliveryConfigurations;
|
|
4509
|
-
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$
|
|
4570
|
+
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$_(untrustedConfig_deliveryConfigurations);
|
|
4510
4571
|
if (referenceDataAlertDeliveryConfigurationInputRepresentationValidationError === null) {
|
|
4511
4572
|
config.deliveryConfigurations = untrustedConfig_deliveryConfigurations;
|
|
4512
4573
|
}
|
|
4513
4574
|
const untrustedConfig_schedule = untrustedConfig.schedule;
|
|
4514
|
-
const referenceDataAlertScheduleInputRepresentationValidationError = validate$
|
|
4575
|
+
const referenceDataAlertScheduleInputRepresentationValidationError = validate$T(untrustedConfig_schedule);
|
|
4515
4576
|
if (referenceDataAlertScheduleInputRepresentationValidationError === null) {
|
|
4516
4577
|
config.schedule = untrustedConfig_schedule;
|
|
4517
4578
|
}
|
|
4518
4579
|
const untrustedConfig_thresholds = untrustedConfig.thresholds;
|
|
4519
|
-
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$
|
|
4580
|
+
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$V(untrustedConfig_thresholds);
|
|
4520
4581
|
if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
|
|
4521
4582
|
config.thresholds = untrustedConfig_thresholds;
|
|
4522
4583
|
}
|
|
@@ -4529,30 +4590,30 @@ function typeCheckConfig$O(untrustedConfig) {
|
|
|
4529
4590
|
}
|
|
4530
4591
|
return config;
|
|
4531
4592
|
}
|
|
4532
|
-
function validateAdapterConfig$
|
|
4593
|
+
function validateAdapterConfig$P(untrustedConfig, configPropertyNames) {
|
|
4533
4594
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
4534
4595
|
return null;
|
|
4535
4596
|
}
|
|
4536
4597
|
if (process.env.NODE_ENV !== 'production') {
|
|
4537
4598
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4538
4599
|
}
|
|
4539
|
-
const config = typeCheckConfig$
|
|
4600
|
+
const config = typeCheckConfig$P(untrustedConfig);
|
|
4540
4601
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4541
4602
|
return null;
|
|
4542
4603
|
}
|
|
4543
4604
|
return config;
|
|
4544
4605
|
}
|
|
4545
|
-
function buildNetworkSnapshot$
|
|
4546
|
-
const resourceParams = createResourceParams$
|
|
4547
|
-
const request = createResourceRequest$
|
|
4606
|
+
function buildNetworkSnapshot$P(luvio, config, options) {
|
|
4607
|
+
const resourceParams = createResourceParams$P(config);
|
|
4608
|
+
const request = createResourceRequest$P(resourceParams);
|
|
4548
4609
|
return luvio.dispatchResourceRequest(request, options)
|
|
4549
4610
|
.then((response) => {
|
|
4550
4611
|
return luvio.handleSuccessResponse(() => {
|
|
4551
|
-
const snapshot = ingestSuccess$
|
|
4612
|
+
const snapshot = ingestSuccess$I(luvio, resourceParams, response);
|
|
4552
4613
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4553
4614
|
}, () => {
|
|
4554
4615
|
const cache = new StoreKeyMap();
|
|
4555
|
-
getResponseCacheKeys$
|
|
4616
|
+
getResponseCacheKeys$P(cache, luvio, resourceParams, response.body);
|
|
4556
4617
|
return cache;
|
|
4557
4618
|
});
|
|
4558
4619
|
}, (response) => {
|
|
@@ -4562,30 +4623,281 @@ function buildNetworkSnapshot$O(luvio, config, options) {
|
|
|
4562
4623
|
}
|
|
4563
4624
|
const createDataAlertAdapterFactory = (luvio) => {
|
|
4564
4625
|
return function createDataAlert(untrustedConfig) {
|
|
4565
|
-
const config = validateAdapterConfig$
|
|
4626
|
+
const config = validateAdapterConfig$P(untrustedConfig, createDataAlert_ConfigPropertyNames);
|
|
4566
4627
|
// Invalid or incomplete config
|
|
4567
4628
|
if (config === null) {
|
|
4568
4629
|
throw new Error('Invalid config for "createDataAlert"');
|
|
4569
4630
|
}
|
|
4570
|
-
return buildNetworkSnapshot$
|
|
4631
|
+
return buildNetworkSnapshot$P(luvio, config);
|
|
4632
|
+
};
|
|
4633
|
+
};
|
|
4634
|
+
|
|
4635
|
+
function validate$S(obj, path = 'DataAlertPropertyFilterInputRepresentation') {
|
|
4636
|
+
const v_error = (() => {
|
|
4637
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4638
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4639
|
+
}
|
|
4640
|
+
const obj_property = obj.property;
|
|
4641
|
+
const path_property = path + '.property';
|
|
4642
|
+
if (typeof obj_property !== 'string') {
|
|
4643
|
+
return new TypeError('Expected "string" but received "' + typeof obj_property + '" (at "' + path_property + '")');
|
|
4644
|
+
}
|
|
4645
|
+
const obj_values = obj.values;
|
|
4646
|
+
const path_values = path + '.values';
|
|
4647
|
+
if (!ArrayIsArray(obj_values)) {
|
|
4648
|
+
return new TypeError('Expected "array" but received "' + typeof obj_values + '" (at "' + path_values + '")');
|
|
4649
|
+
}
|
|
4650
|
+
for (let i = 0; i < obj_values.length; i++) {
|
|
4651
|
+
const obj_values_item = obj_values[i];
|
|
4652
|
+
const path_values_item = path_values + '[' + i + ']';
|
|
4653
|
+
if (typeof obj_values_item !== 'string') {
|
|
4654
|
+
return new TypeError('Expected "string" but received "' + typeof obj_values_item + '" (at "' + path_values_item + '")');
|
|
4655
|
+
}
|
|
4656
|
+
}
|
|
4657
|
+
})();
|
|
4658
|
+
return v_error === undefined ? null : v_error;
|
|
4659
|
+
}
|
|
4660
|
+
|
|
4661
|
+
const TTL$n = 500;
|
|
4662
|
+
const VERSION$y = "8ee49a59b88eeef0e19aa1298280a0a7";
|
|
4663
|
+
function validate$R(obj, path = 'DataAlertQueryCollectionRepresentation') {
|
|
4664
|
+
const v_error = (() => {
|
|
4665
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4666
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
4667
|
+
}
|
|
4668
|
+
const obj_dataAlerts = obj.dataAlerts;
|
|
4669
|
+
const path_dataAlerts = path + '.dataAlerts';
|
|
4670
|
+
if (!ArrayIsArray(obj_dataAlerts)) {
|
|
4671
|
+
return new TypeError('Expected "array" but received "' + typeof obj_dataAlerts + '" (at "' + path_dataAlerts + '")');
|
|
4672
|
+
}
|
|
4673
|
+
for (let i = 0; i < obj_dataAlerts.length; i++) {
|
|
4674
|
+
const obj_dataAlerts_item = obj_dataAlerts[i];
|
|
4675
|
+
const path_dataAlerts_item = path_dataAlerts + '[' + i + ']';
|
|
4676
|
+
const referencepath_dataAlerts_itemValidationError = validate$11(obj_dataAlerts_item, path_dataAlerts_item);
|
|
4677
|
+
if (referencepath_dataAlerts_itemValidationError !== null) {
|
|
4678
|
+
let message = 'Object doesn\'t match DataAlertRepresentation (at "' + path_dataAlerts_item + '")\n';
|
|
4679
|
+
message += referencepath_dataAlerts_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4680
|
+
return new TypeError(message);
|
|
4681
|
+
}
|
|
4682
|
+
}
|
|
4683
|
+
})();
|
|
4684
|
+
return v_error === undefined ? null : v_error;
|
|
4685
|
+
}
|
|
4686
|
+
const RepresentationType$A = 'DataAlertQueryCollectionRepresentation';
|
|
4687
|
+
function normalize$y(input, existing, path, luvio, store, timestamp) {
|
|
4688
|
+
return input;
|
|
4689
|
+
}
|
|
4690
|
+
const select$1e = function DataAlertQueryCollectionRepresentationSelect() {
|
|
4691
|
+
return {
|
|
4692
|
+
kind: 'Fragment',
|
|
4693
|
+
version: VERSION$y,
|
|
4694
|
+
private: [],
|
|
4695
|
+
opaque: true
|
|
4696
|
+
};
|
|
4697
|
+
};
|
|
4698
|
+
function equals$y(existing, incoming) {
|
|
4699
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
4700
|
+
return false;
|
|
4701
|
+
}
|
|
4702
|
+
return true;
|
|
4703
|
+
}
|
|
4704
|
+
const ingest$y = function DataAlertQueryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
4705
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4706
|
+
const validateError = validate$R(input);
|
|
4707
|
+
if (validateError !== null) {
|
|
4708
|
+
throw validateError;
|
|
4709
|
+
}
|
|
4710
|
+
}
|
|
4711
|
+
const key = path.fullPath;
|
|
4712
|
+
const ttlToUse = TTL$n;
|
|
4713
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$y, "UnifiedAnalytics", VERSION$y, RepresentationType$A, equals$y);
|
|
4714
|
+
return createLink(key);
|
|
4715
|
+
};
|
|
4716
|
+
function getTypeCacheKeys$y(rootKeySet, luvio, input, fullPathFactory) {
|
|
4717
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4718
|
+
const rootKey = fullPathFactory();
|
|
4719
|
+
rootKeySet.set(rootKey, {
|
|
4720
|
+
namespace: keyPrefix,
|
|
4721
|
+
representationName: RepresentationType$A,
|
|
4722
|
+
mergeable: false
|
|
4723
|
+
});
|
|
4724
|
+
}
|
|
4725
|
+
|
|
4726
|
+
function select$1d(luvio, params) {
|
|
4727
|
+
return select$1e();
|
|
4728
|
+
}
|
|
4729
|
+
function keyBuilder$18(luvio, params) {
|
|
4730
|
+
var _a, _b, _c, _d, _e, _f;
|
|
4731
|
+
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(',') + ']')) + ')';
|
|
4732
|
+
}
|
|
4733
|
+
function getResponseCacheKeys$O(storeKeyMap, luvio, resourceParams, response) {
|
|
4734
|
+
getTypeCacheKeys$y(storeKeyMap, luvio, response, () => keyBuilder$18(luvio, resourceParams));
|
|
4735
|
+
}
|
|
4736
|
+
function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
|
|
4737
|
+
const { body } = response;
|
|
4738
|
+
const key = keyBuilder$18(luvio, resourceParams);
|
|
4739
|
+
luvio.storeIngest(key, ingest$y, body);
|
|
4740
|
+
const snapshot = luvio.storeLookup({
|
|
4741
|
+
recordId: key,
|
|
4742
|
+
node: select$1d(),
|
|
4743
|
+
variables: {},
|
|
4744
|
+
}, snapshotRefresh);
|
|
4745
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4746
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
4747
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4748
|
+
}
|
|
4749
|
+
}
|
|
4750
|
+
deepFreeze(snapshot.data);
|
|
4751
|
+
return snapshot;
|
|
4752
|
+
}
|
|
4753
|
+
function ingestError$l(luvio, params, error, snapshotRefresh) {
|
|
4754
|
+
const key = keyBuilder$18(luvio, params);
|
|
4755
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4756
|
+
const storeMetadataParams = {
|
|
4757
|
+
ttl: TTL$n,
|
|
4758
|
+
namespace: keyPrefix,
|
|
4759
|
+
version: VERSION$y,
|
|
4760
|
+
representationName: RepresentationType$A
|
|
4761
|
+
};
|
|
4762
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4763
|
+
return errorSnapshot;
|
|
4764
|
+
}
|
|
4765
|
+
function createResourceRequest$O(config) {
|
|
4766
|
+
const headers = {};
|
|
4767
|
+
return {
|
|
4768
|
+
baseUri: '/services/data/v67.0',
|
|
4769
|
+
basePath: '/tableau/dataAlerts/query',
|
|
4770
|
+
method: 'post',
|
|
4771
|
+
body: config.body,
|
|
4772
|
+
urlParams: {},
|
|
4773
|
+
queryParams: {},
|
|
4774
|
+
headers,
|
|
4775
|
+
priority: 'normal',
|
|
4571
4776
|
};
|
|
4777
|
+
}
|
|
4778
|
+
|
|
4779
|
+
const adapterName$O = 'postDataAlertQuery';
|
|
4780
|
+
const postDataAlertQuery_ConfigPropertyMetadata = [
|
|
4781
|
+
generateParamConfigMetadata('ownerId', true, 2 /* Body */, 0 /* String */),
|
|
4782
|
+
generateParamConfigMetadata('assetId', false, 2 /* Body */, 0 /* String */),
|
|
4783
|
+
generateParamConfigMetadata('timeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4784
|
+
generateParamConfigMetadata('includeProperties', false, 2 /* Body */, 0 /* String */, true),
|
|
4785
|
+
generateParamConfigMetadata('propertyFilters', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4786
|
+
];
|
|
4787
|
+
const postDataAlertQuery_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$O, postDataAlertQuery_ConfigPropertyMetadata);
|
|
4788
|
+
const createResourceParams$O = /*#__PURE__*/ createResourceParams$$(postDataAlertQuery_ConfigPropertyMetadata);
|
|
4789
|
+
function keyBuilder$17(luvio, config) {
|
|
4790
|
+
const resourceParams = createResourceParams$O(config);
|
|
4791
|
+
return keyBuilder$18(luvio, resourceParams);
|
|
4792
|
+
}
|
|
4793
|
+
function typeCheckConfig$O(untrustedConfig) {
|
|
4794
|
+
const config = {};
|
|
4795
|
+
typeCheckConfig$$(untrustedConfig, config, postDataAlertQuery_ConfigPropertyMetadata);
|
|
4796
|
+
const untrustedConfig_timeRange = untrustedConfig.timeRange;
|
|
4797
|
+
const referenceUnifiedFilterInputRepresentationValidationError = validate$Z(untrustedConfig_timeRange);
|
|
4798
|
+
if (referenceUnifiedFilterInputRepresentationValidationError === null) {
|
|
4799
|
+
config.timeRange = untrustedConfig_timeRange;
|
|
4800
|
+
}
|
|
4801
|
+
const untrustedConfig_propertyFilters = untrustedConfig.propertyFilters;
|
|
4802
|
+
if (ArrayIsArray$1(untrustedConfig_propertyFilters)) {
|
|
4803
|
+
const untrustedConfig_propertyFilters_array = [];
|
|
4804
|
+
for (let i = 0, arrayLength = untrustedConfig_propertyFilters.length; i < arrayLength; i++) {
|
|
4805
|
+
const untrustedConfig_propertyFilters_item = untrustedConfig_propertyFilters[i];
|
|
4806
|
+
const referenceDataAlertPropertyFilterInputRepresentationValidationError = validate$S(untrustedConfig_propertyFilters_item);
|
|
4807
|
+
if (referenceDataAlertPropertyFilterInputRepresentationValidationError === null) {
|
|
4808
|
+
untrustedConfig_propertyFilters_array.push(untrustedConfig_propertyFilters_item);
|
|
4809
|
+
}
|
|
4810
|
+
}
|
|
4811
|
+
config.propertyFilters = untrustedConfig_propertyFilters_array;
|
|
4812
|
+
}
|
|
4813
|
+
return config;
|
|
4814
|
+
}
|
|
4815
|
+
function validateAdapterConfig$O(untrustedConfig, configPropertyNames) {
|
|
4816
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
4817
|
+
return null;
|
|
4818
|
+
}
|
|
4819
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4820
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
4821
|
+
}
|
|
4822
|
+
const config = typeCheckConfig$O(untrustedConfig);
|
|
4823
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4824
|
+
return null;
|
|
4825
|
+
}
|
|
4826
|
+
return config;
|
|
4827
|
+
}
|
|
4828
|
+
function adapterFragment$l(luvio, config) {
|
|
4829
|
+
createResourceParams$O(config);
|
|
4830
|
+
return select$1d();
|
|
4831
|
+
}
|
|
4832
|
+
function onFetchResponseSuccess$l(luvio, config, resourceParams, response) {
|
|
4833
|
+
const snapshot = ingestSuccess$H(luvio, resourceParams, response, {
|
|
4834
|
+
config,
|
|
4835
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions)
|
|
4836
|
+
});
|
|
4837
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4838
|
+
}
|
|
4839
|
+
function onFetchResponseError$l(luvio, config, resourceParams, response) {
|
|
4840
|
+
const snapshot = ingestError$l(luvio, resourceParams, response, {
|
|
4841
|
+
config,
|
|
4842
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions)
|
|
4843
|
+
});
|
|
4844
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
4845
|
+
}
|
|
4846
|
+
function buildNetworkSnapshot$O(luvio, config, options) {
|
|
4847
|
+
const resourceParams = createResourceParams$O(config);
|
|
4848
|
+
const request = createResourceRequest$O(resourceParams);
|
|
4849
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
4850
|
+
.then((response) => {
|
|
4851
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$l(luvio, config, resourceParams, response), () => {
|
|
4852
|
+
const cache = new StoreKeyMap();
|
|
4853
|
+
getResponseCacheKeys$O(cache, luvio, resourceParams, response.body);
|
|
4854
|
+
return cache;
|
|
4855
|
+
});
|
|
4856
|
+
}, (response) => {
|
|
4857
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$l(luvio, config, resourceParams, response));
|
|
4858
|
+
});
|
|
4859
|
+
}
|
|
4860
|
+
function buildNetworkSnapshotCachePolicy$l(context, coercedAdapterRequestContext) {
|
|
4861
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$O, 'get', false);
|
|
4862
|
+
}
|
|
4863
|
+
function buildCachedSnapshotCachePolicy$l(context, storeLookup) {
|
|
4864
|
+
const { luvio, config } = context;
|
|
4865
|
+
const selector = {
|
|
4866
|
+
recordId: keyBuilder$17(luvio, config),
|
|
4867
|
+
node: adapterFragment$l(luvio, config),
|
|
4868
|
+
variables: {},
|
|
4869
|
+
};
|
|
4870
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
4871
|
+
config,
|
|
4872
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions)
|
|
4873
|
+
});
|
|
4874
|
+
return cacheSnapshot;
|
|
4875
|
+
}
|
|
4876
|
+
const postDataAlertQueryAdapterFactory = (luvio) => function UnifiedAnalytics__postDataAlertQuery(untrustedConfig, requestContext) {
|
|
4877
|
+
const config = validateAdapterConfig$O(untrustedConfig, postDataAlertQuery_ConfigPropertyNames);
|
|
4878
|
+
// Invalid or incomplete config
|
|
4879
|
+
if (config === null) {
|
|
4880
|
+
return null;
|
|
4881
|
+
}
|
|
4882
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
4883
|
+
buildCachedSnapshotCachePolicy$l, buildNetworkSnapshotCachePolicy$l);
|
|
4572
4884
|
};
|
|
4573
4885
|
|
|
4574
4886
|
function select$1c(luvio, params) {
|
|
4575
|
-
return select$
|
|
4887
|
+
return select$1i();
|
|
4576
4888
|
}
|
|
4577
4889
|
function keyBuilder$16(luvio, params) {
|
|
4578
|
-
return keyBuilder$
|
|
4890
|
+
return keyBuilder$1b(luvio, {
|
|
4579
4891
|
dataAlertId: params.urlParams.dataAlertId
|
|
4580
4892
|
});
|
|
4581
4893
|
}
|
|
4582
4894
|
function getResponseCacheKeys$N(storeKeyMap, luvio, resourceParams, response) {
|
|
4583
|
-
getTypeCacheKeys$
|
|
4895
|
+
getTypeCacheKeys$A(storeKeyMap, luvio, response);
|
|
4584
4896
|
}
|
|
4585
4897
|
function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
|
|
4586
4898
|
const { body } = response;
|
|
4587
4899
|
const key = keyBuilder$16(luvio, resourceParams);
|
|
4588
|
-
luvio.storeIngest(key, ingest$
|
|
4900
|
+
luvio.storeIngest(key, ingest$A, body);
|
|
4589
4901
|
const snapshot = luvio.storeLookup({
|
|
4590
4902
|
recordId: key,
|
|
4591
4903
|
node: select$1c(),
|
|
@@ -4603,10 +4915,10 @@ function ingestError$k(luvio, params, error, snapshotRefresh) {
|
|
|
4603
4915
|
const key = keyBuilder$16(luvio, params);
|
|
4604
4916
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4605
4917
|
const storeMetadataParams = {
|
|
4606
|
-
ttl: TTL$
|
|
4918
|
+
ttl: TTL$p,
|
|
4607
4919
|
namespace: keyPrefix,
|
|
4608
|
-
version: VERSION$
|
|
4609
|
-
representationName: RepresentationType$
|
|
4920
|
+
version: VERSION$A,
|
|
4921
|
+
representationName: RepresentationType$C
|
|
4610
4922
|
};
|
|
4611
4923
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
4612
4924
|
return errorSnapshot;
|
|
@@ -4630,14 +4942,14 @@ const getDataAlert_ConfigPropertyMetadata = [
|
|
|
4630
4942
|
generateParamConfigMetadata('dataAlertId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4631
4943
|
];
|
|
4632
4944
|
const getDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$N, getDataAlert_ConfigPropertyMetadata);
|
|
4633
|
-
const createResourceParams$N = /*#__PURE__*/ createResourceParams
|
|
4945
|
+
const createResourceParams$N = /*#__PURE__*/ createResourceParams$$(getDataAlert_ConfigPropertyMetadata);
|
|
4634
4946
|
function keyBuilder$15(luvio, config) {
|
|
4635
4947
|
const resourceParams = createResourceParams$N(config);
|
|
4636
4948
|
return keyBuilder$16(luvio, resourceParams);
|
|
4637
4949
|
}
|
|
4638
4950
|
function typeCheckConfig$N(untrustedConfig) {
|
|
4639
4951
|
const config = {};
|
|
4640
|
-
typeCheckConfig
|
|
4952
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAlert_ConfigPropertyMetadata);
|
|
4641
4953
|
return config;
|
|
4642
4954
|
}
|
|
4643
4955
|
function validateAdapterConfig$N(untrustedConfig, configPropertyNames) {
|
|
@@ -4686,7 +4998,7 @@ function buildNetworkSnapshot$N(luvio, config, options) {
|
|
|
4686
4998
|
});
|
|
4687
4999
|
}
|
|
4688
5000
|
function buildNetworkSnapshotCachePolicy$k(context, coercedAdapterRequestContext) {
|
|
4689
|
-
return buildNetworkSnapshotCachePolicy$
|
|
5001
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$N, undefined, false);
|
|
4690
5002
|
}
|
|
4691
5003
|
function buildCachedSnapshotCachePolicy$k(context, storeLookup) {
|
|
4692
5004
|
const { luvio, config } = context;
|
|
@@ -4712,7 +5024,7 @@ const getDataAlertAdapterFactory = (luvio) => function UnifiedAnalytics__getData
|
|
|
4712
5024
|
};
|
|
4713
5025
|
|
|
4714
5026
|
function keyBuilder$14(luvio, params) {
|
|
4715
|
-
return keyBuilder$
|
|
5027
|
+
return keyBuilder$1b(luvio, {
|
|
4716
5028
|
dataAlertId: params.urlParams.dataAlertId
|
|
4717
5029
|
});
|
|
4718
5030
|
}
|
|
@@ -4720,7 +5032,7 @@ function getResponseCacheKeys$M(cacheKeyMap, luvio, resourceParams) {
|
|
|
4720
5032
|
const key = keyBuilder$14(luvio, resourceParams);
|
|
4721
5033
|
cacheKeyMap.set(key, {
|
|
4722
5034
|
namespace: keyPrefix,
|
|
4723
|
-
representationName: RepresentationType$
|
|
5035
|
+
representationName: RepresentationType$C,
|
|
4724
5036
|
mergeable: false
|
|
4725
5037
|
});
|
|
4726
5038
|
}
|
|
@@ -4747,10 +5059,10 @@ const deleteDataAlert_ConfigPropertyMetadata = [
|
|
|
4747
5059
|
generateParamConfigMetadata('dataAlertId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
4748
5060
|
];
|
|
4749
5061
|
const deleteDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$M, deleteDataAlert_ConfigPropertyMetadata);
|
|
4750
|
-
const createResourceParams$M = /*#__PURE__*/ createResourceParams
|
|
5062
|
+
const createResourceParams$M = /*#__PURE__*/ createResourceParams$$(deleteDataAlert_ConfigPropertyMetadata);
|
|
4751
5063
|
function typeCheckConfig$M(untrustedConfig) {
|
|
4752
5064
|
const config = {};
|
|
4753
|
-
typeCheckConfig
|
|
5065
|
+
typeCheckConfig$$(untrustedConfig, config, deleteDataAlert_ConfigPropertyMetadata);
|
|
4754
5066
|
return config;
|
|
4755
5067
|
}
|
|
4756
5068
|
function validateAdapterConfig$M(untrustedConfig, configPropertyNames) {
|
|
@@ -4796,15 +5108,15 @@ const deleteDataAlertAdapterFactory = (luvio) => {
|
|
|
4796
5108
|
};
|
|
4797
5109
|
|
|
4798
5110
|
function select$1b(luvio, params) {
|
|
4799
|
-
return select$
|
|
5111
|
+
return select$1i();
|
|
4800
5112
|
}
|
|
4801
5113
|
function getResponseCacheKeys$L(storeKeyMap, luvio, resourceParams, response) {
|
|
4802
|
-
getTypeCacheKeys$
|
|
5114
|
+
getTypeCacheKeys$A(storeKeyMap, luvio, response);
|
|
4803
5115
|
}
|
|
4804
5116
|
function ingestSuccess$F(luvio, resourceParams, response) {
|
|
4805
5117
|
const { body } = response;
|
|
4806
5118
|
const key = keyBuilderFromType$k(luvio, body);
|
|
4807
|
-
luvio.storeIngest(key, ingest$
|
|
5119
|
+
luvio.storeIngest(key, ingest$A, body);
|
|
4808
5120
|
const snapshot = luvio.storeLookup({
|
|
4809
5121
|
recordId: key,
|
|
4810
5122
|
node: select$1b(),
|
|
@@ -4845,27 +5157,27 @@ const updateDataAlert_ConfigPropertyMetadata = [
|
|
|
4845
5157
|
generateParamConfigMetadata('agent', false, 2 /* Body */, 4 /* Unsupported */),
|
|
4846
5158
|
];
|
|
4847
5159
|
const updateDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$L, updateDataAlert_ConfigPropertyMetadata);
|
|
4848
|
-
const createResourceParams$L = /*#__PURE__*/ createResourceParams
|
|
5160
|
+
const createResourceParams$L = /*#__PURE__*/ createResourceParams$$(updateDataAlert_ConfigPropertyMetadata);
|
|
4849
5161
|
function typeCheckConfig$L(untrustedConfig) {
|
|
4850
5162
|
const config = {};
|
|
4851
|
-
typeCheckConfig
|
|
5163
|
+
typeCheckConfig$$(untrustedConfig, config, updateDataAlert_ConfigPropertyMetadata);
|
|
4852
5164
|
const untrustedConfig_content = untrustedConfig.content;
|
|
4853
|
-
const referenceDataAlertContentInputRepresentationValidationError = validate$
|
|
5165
|
+
const referenceDataAlertContentInputRepresentationValidationError = validate$U(untrustedConfig_content);
|
|
4854
5166
|
if (referenceDataAlertContentInputRepresentationValidationError === null) {
|
|
4855
5167
|
config.content = untrustedConfig_content;
|
|
4856
5168
|
}
|
|
4857
5169
|
const untrustedConfig_deliveryConfigurations = untrustedConfig.deliveryConfigurations;
|
|
4858
|
-
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$
|
|
5170
|
+
const referenceDataAlertDeliveryConfigurationInputRepresentationValidationError = validate$_(untrustedConfig_deliveryConfigurations);
|
|
4859
5171
|
if (referenceDataAlertDeliveryConfigurationInputRepresentationValidationError === null) {
|
|
4860
5172
|
config.deliveryConfigurations = untrustedConfig_deliveryConfigurations;
|
|
4861
5173
|
}
|
|
4862
5174
|
const untrustedConfig_schedule = untrustedConfig.schedule;
|
|
4863
|
-
const referenceDataAlertScheduleInputRepresentationValidationError = validate$
|
|
5175
|
+
const referenceDataAlertScheduleInputRepresentationValidationError = validate$T(untrustedConfig_schedule);
|
|
4864
5176
|
if (referenceDataAlertScheduleInputRepresentationValidationError === null) {
|
|
4865
5177
|
config.schedule = untrustedConfig_schedule;
|
|
4866
5178
|
}
|
|
4867
5179
|
const untrustedConfig_thresholds = untrustedConfig.thresholds;
|
|
4868
|
-
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$
|
|
5180
|
+
const referenceDataAlertThresholdsInputRepresentationValidationError = validate$V(untrustedConfig_thresholds);
|
|
4869
5181
|
if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
|
|
4870
5182
|
config.thresholds = untrustedConfig_thresholds;
|
|
4871
5183
|
}
|
|
@@ -5061,10 +5373,10 @@ const postDataAlertRun_ConfigPropertyMetadata = [
|
|
|
5061
5373
|
generateParamConfigMetadata('dataAlertId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5062
5374
|
];
|
|
5063
5375
|
const postDataAlertRun_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$K, postDataAlertRun_ConfigPropertyMetadata);
|
|
5064
|
-
const createResourceParams$K = /*#__PURE__*/ createResourceParams
|
|
5376
|
+
const createResourceParams$K = /*#__PURE__*/ createResourceParams$$(postDataAlertRun_ConfigPropertyMetadata);
|
|
5065
5377
|
function typeCheckConfig$K(untrustedConfig) {
|
|
5066
5378
|
const config = {};
|
|
5067
|
-
typeCheckConfig
|
|
5379
|
+
typeCheckConfig$$(untrustedConfig, config, postDataAlertRun_ConfigPropertyMetadata);
|
|
5068
5380
|
return config;
|
|
5069
5381
|
}
|
|
5070
5382
|
function validateAdapterConfig$K(untrustedConfig, configPropertyNames) {
|
|
@@ -5110,7 +5422,7 @@ const postDataAlertRunAdapterFactory = (luvio) => {
|
|
|
5110
5422
|
};
|
|
5111
5423
|
|
|
5112
5424
|
function validate$P(obj, path = 'AnalyticsUserRepresentation') {
|
|
5113
|
-
const validateBaseAnalyticsRepresentation_validateError = validate$
|
|
5425
|
+
const validateBaseAnalyticsRepresentation_validateError = validate$1f(obj, path);
|
|
5114
5426
|
if (validateBaseAnalyticsRepresentation_validateError !== null) {
|
|
5115
5427
|
return validateBaseAnalyticsRepresentation_validateError;
|
|
5116
5428
|
}
|
|
@@ -6316,14 +6628,14 @@ const getDataAssetRequests_ConfigPropertyMetadata = [
|
|
|
6316
6628
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6317
6629
|
];
|
|
6318
6630
|
const getDataAssetRequests_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$J, getDataAssetRequests_ConfigPropertyMetadata);
|
|
6319
|
-
const createResourceParams$J = /*#__PURE__*/ createResourceParams
|
|
6631
|
+
const createResourceParams$J = /*#__PURE__*/ createResourceParams$$(getDataAssetRequests_ConfigPropertyMetadata);
|
|
6320
6632
|
function keyBuilder$10(luvio, config) {
|
|
6321
6633
|
const resourceParams = createResourceParams$J(config);
|
|
6322
6634
|
return keyBuilder$11(luvio, resourceParams);
|
|
6323
6635
|
}
|
|
6324
6636
|
function typeCheckConfig$J(untrustedConfig) {
|
|
6325
6637
|
const config = {};
|
|
6326
|
-
typeCheckConfig
|
|
6638
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAssetRequests_ConfigPropertyMetadata);
|
|
6327
6639
|
return config;
|
|
6328
6640
|
}
|
|
6329
6641
|
function validateAdapterConfig$J(untrustedConfig, configPropertyNames) {
|
|
@@ -6372,7 +6684,7 @@ function buildNetworkSnapshot$J(luvio, config, options) {
|
|
|
6372
6684
|
});
|
|
6373
6685
|
}
|
|
6374
6686
|
function buildNetworkSnapshotCachePolicy$j(context, coercedAdapterRequestContext) {
|
|
6375
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6687
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$J, undefined, false);
|
|
6376
6688
|
}
|
|
6377
6689
|
function buildCachedSnapshotCachePolicy$j(context, storeLookup) {
|
|
6378
6690
|
const { luvio, config } = context;
|
|
@@ -6449,10 +6761,10 @@ const createDataAssetRequest_ConfigPropertyMetadata = [
|
|
|
6449
6761
|
generateParamConfigMetadata('packageExportStatus', false, 2 /* Body */, 0 /* String */),
|
|
6450
6762
|
];
|
|
6451
6763
|
const createDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$I, createDataAssetRequest_ConfigPropertyMetadata);
|
|
6452
|
-
const createResourceParams$I = /*#__PURE__*/ createResourceParams
|
|
6764
|
+
const createResourceParams$I = /*#__PURE__*/ createResourceParams$$(createDataAssetRequest_ConfigPropertyMetadata);
|
|
6453
6765
|
function typeCheckConfig$I(untrustedConfig) {
|
|
6454
6766
|
const config = {};
|
|
6455
|
-
typeCheckConfig
|
|
6767
|
+
typeCheckConfig$$(untrustedConfig, config, createDataAssetRequest_ConfigPropertyMetadata);
|
|
6456
6768
|
return config;
|
|
6457
6769
|
}
|
|
6458
6770
|
function validateAdapterConfig$I(untrustedConfig, configPropertyNames) {
|
|
@@ -6616,14 +6928,14 @@ const getDataAssetRequestsCount_ConfigPropertyMetadata = [
|
|
|
6616
6928
|
generateParamConfigMetadata('workspaceIdOrApiName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6617
6929
|
];
|
|
6618
6930
|
const getDataAssetRequestsCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$H, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
6619
|
-
const createResourceParams$H = /*#__PURE__*/ createResourceParams
|
|
6931
|
+
const createResourceParams$H = /*#__PURE__*/ createResourceParams$$(getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
6620
6932
|
function keyBuilder$_(luvio, config) {
|
|
6621
6933
|
const resourceParams = createResourceParams$H(config);
|
|
6622
6934
|
return keyBuilder$$(luvio, resourceParams);
|
|
6623
6935
|
}
|
|
6624
6936
|
function typeCheckConfig$H(untrustedConfig) {
|
|
6625
6937
|
const config = {};
|
|
6626
|
-
typeCheckConfig
|
|
6938
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAssetRequestsCount_ConfigPropertyMetadata);
|
|
6627
6939
|
return config;
|
|
6628
6940
|
}
|
|
6629
6941
|
function validateAdapterConfig$H(untrustedConfig, configPropertyNames) {
|
|
@@ -6672,7 +6984,7 @@ function buildNetworkSnapshot$H(luvio, config, options) {
|
|
|
6672
6984
|
});
|
|
6673
6985
|
}
|
|
6674
6986
|
function buildNetworkSnapshotCachePolicy$i(context, coercedAdapterRequestContext) {
|
|
6675
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6987
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$H, undefined, false);
|
|
6676
6988
|
}
|
|
6677
6989
|
function buildCachedSnapshotCachePolicy$i(context, storeLookup) {
|
|
6678
6990
|
const { luvio, config } = context;
|
|
@@ -6756,14 +7068,14 @@ const getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata = [
|
|
|
6756
7068
|
generateParamConfigMetadata('requestIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6757
7069
|
];
|
|
6758
7070
|
const getDataAssetRequestByIdOrApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$G, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
6759
|
-
const createResourceParams$G = /*#__PURE__*/ createResourceParams
|
|
7071
|
+
const createResourceParams$G = /*#__PURE__*/ createResourceParams$$(getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
6760
7072
|
function keyBuilder$Y(luvio, config) {
|
|
6761
7073
|
const resourceParams = createResourceParams$G(config);
|
|
6762
7074
|
return keyBuilder$Z(luvio, resourceParams);
|
|
6763
7075
|
}
|
|
6764
7076
|
function typeCheckConfig$G(untrustedConfig) {
|
|
6765
7077
|
const config = {};
|
|
6766
|
-
typeCheckConfig
|
|
7078
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAssetRequestByIdOrApiName_ConfigPropertyMetadata);
|
|
6767
7079
|
return config;
|
|
6768
7080
|
}
|
|
6769
7081
|
function validateAdapterConfig$G(untrustedConfig, configPropertyNames) {
|
|
@@ -6812,7 +7124,7 @@ function buildNetworkSnapshot$G(luvio, config, options) {
|
|
|
6812
7124
|
});
|
|
6813
7125
|
}
|
|
6814
7126
|
function buildNetworkSnapshotCachePolicy$h(context, coercedAdapterRequestContext) {
|
|
6815
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7127
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$G, undefined, false);
|
|
6816
7128
|
}
|
|
6817
7129
|
function buildCachedSnapshotCachePolicy$h(context, storeLookup) {
|
|
6818
7130
|
const { luvio, config } = context;
|
|
@@ -6890,10 +7202,10 @@ const updateDataAssetRequest_ConfigPropertyMetadata = [
|
|
|
6890
7202
|
generateParamConfigMetadata('packageExportStatus', false, 2 /* Body */, 0 /* String */),
|
|
6891
7203
|
];
|
|
6892
7204
|
const updateDataAssetRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$F, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
6893
|
-
const createResourceParams$F = /*#__PURE__*/ createResourceParams
|
|
7205
|
+
const createResourceParams$F = /*#__PURE__*/ createResourceParams$$(updateDataAssetRequest_ConfigPropertyMetadata);
|
|
6894
7206
|
function typeCheckConfig$F(untrustedConfig) {
|
|
6895
7207
|
const config = {};
|
|
6896
|
-
typeCheckConfig
|
|
7208
|
+
typeCheckConfig$$(untrustedConfig, config, updateDataAssetRequest_ConfigPropertyMetadata);
|
|
6897
7209
|
return config;
|
|
6898
7210
|
}
|
|
6899
7211
|
function validateAdapterConfig$F(untrustedConfig, configPropertyNames) {
|
|
@@ -7235,14 +7547,14 @@ const getDataAssetDependencies_ConfigPropertyMetadata = [
|
|
|
7235
7547
|
generateParamConfigMetadata('failOnSchemaMismatch', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
7236
7548
|
];
|
|
7237
7549
|
const getDataAssetDependencies_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$E, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
7238
|
-
const createResourceParams$E = /*#__PURE__*/ createResourceParams
|
|
7550
|
+
const createResourceParams$E = /*#__PURE__*/ createResourceParams$$(getDataAssetDependencies_ConfigPropertyMetadata);
|
|
7239
7551
|
function keyBuilder$W(luvio, config) {
|
|
7240
7552
|
const resourceParams = createResourceParams$E(config);
|
|
7241
7553
|
return keyBuilder$X(luvio, resourceParams);
|
|
7242
7554
|
}
|
|
7243
7555
|
function typeCheckConfig$E(untrustedConfig) {
|
|
7244
7556
|
const config = {};
|
|
7245
|
-
typeCheckConfig
|
|
7557
|
+
typeCheckConfig$$(untrustedConfig, config, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
7246
7558
|
return config;
|
|
7247
7559
|
}
|
|
7248
7560
|
function validateAdapterConfig$E(untrustedConfig, configPropertyNames) {
|
|
@@ -7291,7 +7603,7 @@ function buildNetworkSnapshot$E(luvio, config, options) {
|
|
|
7291
7603
|
});
|
|
7292
7604
|
}
|
|
7293
7605
|
function buildNetworkSnapshotCachePolicy$g(context, coercedAdapterRequestContext) {
|
|
7294
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7606
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$E, undefined, false);
|
|
7295
7607
|
}
|
|
7296
7608
|
function buildCachedSnapshotCachePolicy$g(context, storeLookup) {
|
|
7297
7609
|
const { luvio, config } = context;
|
|
@@ -7537,10 +7849,10 @@ const follow_ConfigPropertyMetadata = [
|
|
|
7537
7849
|
generateParamConfigMetadata('followedTimeRange', false, 2 /* Body */, 4 /* Unsupported */),
|
|
7538
7850
|
];
|
|
7539
7851
|
const follow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$D, follow_ConfigPropertyMetadata);
|
|
7540
|
-
const createResourceParams$D = /*#__PURE__*/ createResourceParams
|
|
7852
|
+
const createResourceParams$D = /*#__PURE__*/ createResourceParams$$(follow_ConfigPropertyMetadata);
|
|
7541
7853
|
function typeCheckConfig$D(untrustedConfig) {
|
|
7542
7854
|
const config = {};
|
|
7543
|
-
typeCheckConfig
|
|
7855
|
+
typeCheckConfig$$(untrustedConfig, config, follow_ConfigPropertyMetadata);
|
|
7544
7856
|
const untrustedConfig_followedTimeRange = untrustedConfig.followedTimeRange;
|
|
7545
7857
|
const referenceFollowedTimeRangeRepresentationValidationError = validate$D(untrustedConfig_followedTimeRange);
|
|
7546
7858
|
if (referenceFollowedTimeRangeRepresentationValidationError === null) {
|
|
@@ -7714,10 +8026,10 @@ const updateFollowedAsset_ConfigPropertyMetadata = [
|
|
|
7714
8026
|
generateParamConfigMetadata('updateAllAssets', false, 2 /* Body */, 1 /* Boolean */),
|
|
7715
8027
|
];
|
|
7716
8028
|
const updateFollowedAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$C, updateFollowedAsset_ConfigPropertyMetadata);
|
|
7717
|
-
const createResourceParams$C = /*#__PURE__*/ createResourceParams
|
|
8029
|
+
const createResourceParams$C = /*#__PURE__*/ createResourceParams$$(updateFollowedAsset_ConfigPropertyMetadata);
|
|
7718
8030
|
function typeCheckConfig$C(untrustedConfig) {
|
|
7719
8031
|
const config = {};
|
|
7720
|
-
typeCheckConfig
|
|
8032
|
+
typeCheckConfig$$(untrustedConfig, config, updateFollowedAsset_ConfigPropertyMetadata);
|
|
7721
8033
|
const untrustedConfig_followedTimeRange = untrustedConfig.followedTimeRange;
|
|
7722
8034
|
const referenceFollowedTimeRangeRepresentationValidationError = validate$D(untrustedConfig_followedTimeRange);
|
|
7723
8035
|
if (referenceFollowedTimeRangeRepresentationValidationError === null) {
|
|
@@ -7902,10 +8214,10 @@ const unfollow_ConfigPropertyMetadata = [
|
|
|
7902
8214
|
generateParamConfigMetadata('followerId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7903
8215
|
];
|
|
7904
8216
|
const unfollow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, unfollow_ConfigPropertyMetadata);
|
|
7905
|
-
const createResourceParams$B = /*#__PURE__*/ createResourceParams
|
|
8217
|
+
const createResourceParams$B = /*#__PURE__*/ createResourceParams$$(unfollow_ConfigPropertyMetadata);
|
|
7906
8218
|
function typeCheckConfig$B(untrustedConfig) {
|
|
7907
8219
|
const config = {};
|
|
7908
|
-
typeCheckConfig
|
|
8220
|
+
typeCheckConfig$$(untrustedConfig, config, unfollow_ConfigPropertyMetadata);
|
|
7909
8221
|
return config;
|
|
7910
8222
|
}
|
|
7911
8223
|
function validateAdapterConfig$B(untrustedConfig, configPropertyNames) {
|
|
@@ -8076,14 +8388,14 @@ const getFollowers_ConfigPropertyMetadata = [
|
|
|
8076
8388
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
8077
8389
|
];
|
|
8078
8390
|
const getFollowers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, getFollowers_ConfigPropertyMetadata);
|
|
8079
|
-
const createResourceParams$A = /*#__PURE__*/ createResourceParams
|
|
8391
|
+
const createResourceParams$A = /*#__PURE__*/ createResourceParams$$(getFollowers_ConfigPropertyMetadata);
|
|
8080
8392
|
function keyBuilder$Q(luvio, config) {
|
|
8081
8393
|
const resourceParams = createResourceParams$A(config);
|
|
8082
8394
|
return keyBuilder$R(luvio, resourceParams);
|
|
8083
8395
|
}
|
|
8084
8396
|
function typeCheckConfig$A(untrustedConfig) {
|
|
8085
8397
|
const config = {};
|
|
8086
|
-
typeCheckConfig
|
|
8398
|
+
typeCheckConfig$$(untrustedConfig, config, getFollowers_ConfigPropertyMetadata);
|
|
8087
8399
|
return config;
|
|
8088
8400
|
}
|
|
8089
8401
|
function validateAdapterConfig$A(untrustedConfig, configPropertyNames) {
|
|
@@ -8132,7 +8444,7 @@ function buildNetworkSnapshot$A(luvio, config, options) {
|
|
|
8132
8444
|
});
|
|
8133
8445
|
}
|
|
8134
8446
|
function buildNetworkSnapshotCachePolicy$f(context, coercedAdapterRequestContext) {
|
|
8135
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8447
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$A, undefined, false);
|
|
8136
8448
|
}
|
|
8137
8449
|
function buildCachedSnapshotCachePolicy$f(context, storeLookup) {
|
|
8138
8450
|
const { luvio, config } = context;
|
|
@@ -8282,14 +8594,14 @@ const getFollowedAssets_ConfigPropertyMetadata = [
|
|
|
8282
8594
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
8283
8595
|
];
|
|
8284
8596
|
const getFollowedAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$z, getFollowedAssets_ConfigPropertyMetadata);
|
|
8285
|
-
const createResourceParams$z = /*#__PURE__*/ createResourceParams
|
|
8597
|
+
const createResourceParams$z = /*#__PURE__*/ createResourceParams$$(getFollowedAssets_ConfigPropertyMetadata);
|
|
8286
8598
|
function keyBuilder$O(luvio, config) {
|
|
8287
8599
|
const resourceParams = createResourceParams$z(config);
|
|
8288
8600
|
return keyBuilder$P(luvio, resourceParams);
|
|
8289
8601
|
}
|
|
8290
8602
|
function typeCheckConfig$z(untrustedConfig) {
|
|
8291
8603
|
const config = {};
|
|
8292
|
-
typeCheckConfig
|
|
8604
|
+
typeCheckConfig$$(untrustedConfig, config, getFollowedAssets_ConfigPropertyMetadata);
|
|
8293
8605
|
return config;
|
|
8294
8606
|
}
|
|
8295
8607
|
function validateAdapterConfig$z(untrustedConfig, configPropertyNames) {
|
|
@@ -8338,7 +8650,7 @@ function buildNetworkSnapshot$z(luvio, config, options) {
|
|
|
8338
8650
|
});
|
|
8339
8651
|
}
|
|
8340
8652
|
function buildNetworkSnapshotCachePolicy$e(context, coercedAdapterRequestContext) {
|
|
8341
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8653
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$z, undefined, false);
|
|
8342
8654
|
}
|
|
8343
8655
|
function buildCachedSnapshotCachePolicy$e(context, storeLookup) {
|
|
8344
8656
|
const { luvio, config } = context;
|
|
@@ -8476,14 +8788,14 @@ const getUniqueFollowerCount_ConfigPropertyMetadata = [
|
|
|
8476
8788
|
generateParamConfigMetadata('followedAssetType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
8477
8789
|
];
|
|
8478
8790
|
const getUniqueFollowerCount_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
8479
|
-
const createResourceParams$y = /*#__PURE__*/ createResourceParams
|
|
8791
|
+
const createResourceParams$y = /*#__PURE__*/ createResourceParams$$(getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
8480
8792
|
function keyBuilder$M(luvio, config) {
|
|
8481
8793
|
const resourceParams = createResourceParams$y(config);
|
|
8482
8794
|
return keyBuilder$N(luvio, resourceParams);
|
|
8483
8795
|
}
|
|
8484
8796
|
function typeCheckConfig$y(untrustedConfig) {
|
|
8485
8797
|
const config = {};
|
|
8486
|
-
typeCheckConfig
|
|
8798
|
+
typeCheckConfig$$(untrustedConfig, config, getUniqueFollowerCount_ConfigPropertyMetadata);
|
|
8487
8799
|
return config;
|
|
8488
8800
|
}
|
|
8489
8801
|
function validateAdapterConfig$y(untrustedConfig, configPropertyNames) {
|
|
@@ -8532,7 +8844,7 @@ function buildNetworkSnapshot$y(luvio, config, options) {
|
|
|
8532
8844
|
});
|
|
8533
8845
|
}
|
|
8534
8846
|
function buildNetworkSnapshotCachePolicy$d(context, coercedAdapterRequestContext) {
|
|
8535
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8847
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$y, undefined, false);
|
|
8536
8848
|
}
|
|
8537
8849
|
function buildCachedSnapshotCachePolicy$d(context, storeLookup) {
|
|
8538
8850
|
const { luvio, config } = context;
|
|
@@ -8673,7 +8985,7 @@ const createLoglines_ConfigPropertyMetadata = [
|
|
|
8673
8985
|
generateParamConfigMetadata('loglines', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
8674
8986
|
];
|
|
8675
8987
|
const createLoglines_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$x, createLoglines_ConfigPropertyMetadata);
|
|
8676
|
-
const createResourceParams$x = /*#__PURE__*/ createResourceParams
|
|
8988
|
+
const createResourceParams$x = /*#__PURE__*/ createResourceParams$$(createLoglines_ConfigPropertyMetadata);
|
|
8677
8989
|
function typeCheckConfig$x(untrustedConfig) {
|
|
8678
8990
|
const config = {};
|
|
8679
8991
|
const untrustedConfig_loglines = untrustedConfig.loglines;
|
|
@@ -8886,7 +9198,7 @@ function createResourceRequest$w(config) {
|
|
|
8886
9198
|
const adapterName$w = 'getOrg';
|
|
8887
9199
|
const getOrg_ConfigPropertyMetadata = [];
|
|
8888
9200
|
const getOrg_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$w, getOrg_ConfigPropertyMetadata);
|
|
8889
|
-
const createResourceParams$w = /*#__PURE__*/ createResourceParams
|
|
9201
|
+
const createResourceParams$w = /*#__PURE__*/ createResourceParams$$(getOrg_ConfigPropertyMetadata);
|
|
8890
9202
|
function keyBuilder$J(luvio, config) {
|
|
8891
9203
|
createResourceParams$w(config);
|
|
8892
9204
|
return keyBuilder$K();
|
|
@@ -8941,7 +9253,7 @@ function buildNetworkSnapshot$w(luvio, config, options) {
|
|
|
8941
9253
|
});
|
|
8942
9254
|
}
|
|
8943
9255
|
function buildNetworkSnapshotCachePolicy$c(context, coercedAdapterRequestContext) {
|
|
8944
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9256
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$w, undefined, false);
|
|
8945
9257
|
}
|
|
8946
9258
|
function buildCachedSnapshotCachePolicy$c(context, storeLookup) {
|
|
8947
9259
|
const { luvio, config } = context;
|
|
@@ -9258,10 +9570,10 @@ const deleteAllShares_ConfigPropertyMetadata = [
|
|
|
9258
9570
|
generateParamConfigMetadata('filterByRecipientType', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
9259
9571
|
];
|
|
9260
9572
|
const deleteAllShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$v, deleteAllShares_ConfigPropertyMetadata);
|
|
9261
|
-
const createResourceParams$v = /*#__PURE__*/ createResourceParams
|
|
9573
|
+
const createResourceParams$v = /*#__PURE__*/ createResourceParams$$(deleteAllShares_ConfigPropertyMetadata);
|
|
9262
9574
|
function typeCheckConfig$v(untrustedConfig) {
|
|
9263
9575
|
const config = {};
|
|
9264
|
-
typeCheckConfig
|
|
9576
|
+
typeCheckConfig$$(untrustedConfig, config, deleteAllShares_ConfigPropertyMetadata);
|
|
9265
9577
|
const untrustedConfig_userOrGroupId = untrustedConfig.userOrGroupId;
|
|
9266
9578
|
if (typeof untrustedConfig_userOrGroupId === 'string') {
|
|
9267
9579
|
config.userOrGroupId = untrustedConfig_userOrGroupId;
|
|
@@ -9384,14 +9696,14 @@ const getShares_ConfigPropertyMetadata = [
|
|
|
9384
9696
|
generateParamConfigMetadata('recipientSearchTerm', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9385
9697
|
];
|
|
9386
9698
|
const getShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, getShares_ConfigPropertyMetadata);
|
|
9387
|
-
const createResourceParams$u = /*#__PURE__*/ createResourceParams
|
|
9699
|
+
const createResourceParams$u = /*#__PURE__*/ createResourceParams$$(getShares_ConfigPropertyMetadata);
|
|
9388
9700
|
function keyBuilder$E(luvio, config) {
|
|
9389
9701
|
const resourceParams = createResourceParams$u(config);
|
|
9390
9702
|
return keyBuilder$F(luvio, resourceParams);
|
|
9391
9703
|
}
|
|
9392
9704
|
function typeCheckConfig$u(untrustedConfig) {
|
|
9393
9705
|
const config = {};
|
|
9394
|
-
typeCheckConfig
|
|
9706
|
+
typeCheckConfig$$(untrustedConfig, config, getShares_ConfigPropertyMetadata);
|
|
9395
9707
|
return config;
|
|
9396
9708
|
}
|
|
9397
9709
|
function validateAdapterConfig$u(untrustedConfig, configPropertyNames) {
|
|
@@ -9440,7 +9752,7 @@ function buildNetworkSnapshot$u(luvio, config, options) {
|
|
|
9440
9752
|
});
|
|
9441
9753
|
}
|
|
9442
9754
|
function buildNetworkSnapshotCachePolicy$b(context, coercedAdapterRequestContext) {
|
|
9443
|
-
return buildNetworkSnapshotCachePolicy$
|
|
9755
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$u, undefined, false);
|
|
9444
9756
|
}
|
|
9445
9757
|
function buildCachedSnapshotCachePolicy$b(context, storeLookup) {
|
|
9446
9758
|
const { luvio, config } = context;
|
|
@@ -9681,10 +9993,10 @@ const updateRecordShares_ConfigPropertyMetadata = [
|
|
|
9681
9993
|
generateParamConfigMetadata('updateSetupRecordAccessItems', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
9682
9994
|
];
|
|
9683
9995
|
const updateRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$t, updateRecordShares_ConfigPropertyMetadata);
|
|
9684
|
-
const createResourceParams$t = /*#__PURE__*/ createResourceParams
|
|
9996
|
+
const createResourceParams$t = /*#__PURE__*/ createResourceParams$$(updateRecordShares_ConfigPropertyMetadata);
|
|
9685
9997
|
function typeCheckConfig$t(untrustedConfig) {
|
|
9686
9998
|
const config = {};
|
|
9687
|
-
typeCheckConfig
|
|
9999
|
+
typeCheckConfig$$(untrustedConfig, config, updateRecordShares_ConfigPropertyMetadata);
|
|
9688
10000
|
const untrustedConfig_updateSetupRecordAccessItems = untrustedConfig.updateSetupRecordAccessItems;
|
|
9689
10001
|
if (ArrayIsArray$1(untrustedConfig_updateSetupRecordAccessItems)) {
|
|
9690
10002
|
const untrustedConfig_updateSetupRecordAccessItems_array = [];
|
|
@@ -9782,10 +10094,10 @@ const createRecordShares_ConfigPropertyMetadata = [
|
|
|
9782
10094
|
generateParamConfigMetadata('sendNotificationToRecipients', false, 2 /* Body */, 1 /* Boolean */),
|
|
9783
10095
|
];
|
|
9784
10096
|
const createRecordShares_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$s, createRecordShares_ConfigPropertyMetadata);
|
|
9785
|
-
const createResourceParams$s = /*#__PURE__*/ createResourceParams
|
|
10097
|
+
const createResourceParams$s = /*#__PURE__*/ createResourceParams$$(createRecordShares_ConfigPropertyMetadata);
|
|
9786
10098
|
function typeCheckConfig$s(untrustedConfig) {
|
|
9787
10099
|
const config = {};
|
|
9788
|
-
typeCheckConfig
|
|
10100
|
+
typeCheckConfig$$(untrustedConfig, config, createRecordShares_ConfigPropertyMetadata);
|
|
9789
10101
|
const untrustedConfig_accessRequestItems = untrustedConfig.accessRequestItems;
|
|
9790
10102
|
if (ArrayIsArray$1(untrustedConfig_accessRequestItems)) {
|
|
9791
10103
|
const untrustedConfig_accessRequestItems_array = [];
|
|
@@ -9877,10 +10189,10 @@ const deleteRecordShare_ConfigPropertyMetadata = [
|
|
|
9877
10189
|
generateParamConfigMetadata('userOrGroupId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9878
10190
|
];
|
|
9879
10191
|
const deleteRecordShare_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$r, deleteRecordShare_ConfigPropertyMetadata);
|
|
9880
|
-
const createResourceParams$r = /*#__PURE__*/ createResourceParams
|
|
10192
|
+
const createResourceParams$r = /*#__PURE__*/ createResourceParams$$(deleteRecordShare_ConfigPropertyMetadata);
|
|
9881
10193
|
function typeCheckConfig$r(untrustedConfig) {
|
|
9882
10194
|
const config = {};
|
|
9883
|
-
typeCheckConfig
|
|
10195
|
+
typeCheckConfig$$(untrustedConfig, config, deleteRecordShare_ConfigPropertyMetadata);
|
|
9884
10196
|
return config;
|
|
9885
10197
|
}
|
|
9886
10198
|
function validateAdapterConfig$r(untrustedConfig, configPropertyNames) {
|
|
@@ -10205,14 +10517,14 @@ const getAssetSlackChannels_ConfigPropertyMetadata = [
|
|
|
10205
10517
|
generateParamConfigMetadata('assetId', true, 1 /* QueryParameter */, 0 /* String */),
|
|
10206
10518
|
];
|
|
10207
10519
|
const getAssetSlackChannels_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$q, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
10208
|
-
const createResourceParams$q = /*#__PURE__*/ createResourceParams
|
|
10520
|
+
const createResourceParams$q = /*#__PURE__*/ createResourceParams$$(getAssetSlackChannels_ConfigPropertyMetadata);
|
|
10209
10521
|
function keyBuilder$z(luvio, config) {
|
|
10210
10522
|
const resourceParams = createResourceParams$q(config);
|
|
10211
10523
|
return keyBuilder$A(luvio, resourceParams);
|
|
10212
10524
|
}
|
|
10213
10525
|
function typeCheckConfig$q(untrustedConfig) {
|
|
10214
10526
|
const config = {};
|
|
10215
|
-
typeCheckConfig
|
|
10527
|
+
typeCheckConfig$$(untrustedConfig, config, getAssetSlackChannels_ConfigPropertyMetadata);
|
|
10216
10528
|
return config;
|
|
10217
10529
|
}
|
|
10218
10530
|
function validateAdapterConfig$q(untrustedConfig, configPropertyNames) {
|
|
@@ -10261,7 +10573,7 @@ function buildNetworkSnapshot$q(luvio, config, options) {
|
|
|
10261
10573
|
});
|
|
10262
10574
|
}
|
|
10263
10575
|
function buildNetworkSnapshotCachePolicy$a(context, coercedAdapterRequestContext) {
|
|
10264
|
-
return buildNetworkSnapshotCachePolicy$
|
|
10576
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$q, undefined, false);
|
|
10265
10577
|
}
|
|
10266
10578
|
function buildCachedSnapshotCachePolicy$a(context, storeLookup) {
|
|
10267
10579
|
const { luvio, config } = context;
|
|
@@ -10330,10 +10642,10 @@ const createAssetSlackChannel_ConfigPropertyMetadata = [
|
|
|
10330
10642
|
generateParamConfigMetadata('teamId', true, 2 /* Body */, 0 /* String */),
|
|
10331
10643
|
];
|
|
10332
10644
|
const createAssetSlackChannel_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$p, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
10333
|
-
const createResourceParams$p = /*#__PURE__*/ createResourceParams
|
|
10645
|
+
const createResourceParams$p = /*#__PURE__*/ createResourceParams$$(createAssetSlackChannel_ConfigPropertyMetadata);
|
|
10334
10646
|
function typeCheckConfig$p(untrustedConfig) {
|
|
10335
10647
|
const config = {};
|
|
10336
|
-
typeCheckConfig
|
|
10648
|
+
typeCheckConfig$$(untrustedConfig, config, createAssetSlackChannel_ConfigPropertyMetadata);
|
|
10337
10649
|
return config;
|
|
10338
10650
|
}
|
|
10339
10651
|
function validateAdapterConfig$p(untrustedConfig, configPropertyNames) {
|
|
@@ -10513,10 +10825,10 @@ const queryUsers_ConfigPropertyMetadata = [
|
|
|
10513
10825
|
generateParamConfigMetadata('offset', false, 2 /* Body */, 3 /* Integer */),
|
|
10514
10826
|
];
|
|
10515
10827
|
const queryUsers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, queryUsers_ConfigPropertyMetadata);
|
|
10516
|
-
const createResourceParams$o = /*#__PURE__*/ createResourceParams
|
|
10828
|
+
const createResourceParams$o = /*#__PURE__*/ createResourceParams$$(queryUsers_ConfigPropertyMetadata);
|
|
10517
10829
|
function typeCheckConfig$o(untrustedConfig) {
|
|
10518
10830
|
const config = {};
|
|
10519
|
-
typeCheckConfig
|
|
10831
|
+
typeCheckConfig$$(untrustedConfig, config, queryUsers_ConfigPropertyMetadata);
|
|
10520
10832
|
return config;
|
|
10521
10833
|
}
|
|
10522
10834
|
function validateAdapterConfig$o(untrustedConfig, configPropertyNames) {
|
|
@@ -10874,14 +11186,14 @@ const getVisualizations_ConfigPropertyMetadata = [
|
|
|
10874
11186
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
10875
11187
|
];
|
|
10876
11188
|
const getVisualizations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$n, getVisualizations_ConfigPropertyMetadata);
|
|
10877
|
-
const createResourceParams$n = /*#__PURE__*/ createResourceParams
|
|
11189
|
+
const createResourceParams$n = /*#__PURE__*/ createResourceParams$$(getVisualizations_ConfigPropertyMetadata);
|
|
10878
11190
|
function keyBuilder$v(luvio, config) {
|
|
10879
11191
|
const resourceParams = createResourceParams$n(config);
|
|
10880
11192
|
return keyBuilder$w(luvio, resourceParams);
|
|
10881
11193
|
}
|
|
10882
11194
|
function typeCheckConfig$n(untrustedConfig) {
|
|
10883
11195
|
const config = {};
|
|
10884
|
-
typeCheckConfig
|
|
11196
|
+
typeCheckConfig$$(untrustedConfig, config, getVisualizations_ConfigPropertyMetadata);
|
|
10885
11197
|
return config;
|
|
10886
11198
|
}
|
|
10887
11199
|
function validateAdapterConfig$n(untrustedConfig, configPropertyNames) {
|
|
@@ -10930,7 +11242,7 @@ function buildNetworkSnapshot$n(luvio, config, options) {
|
|
|
10930
11242
|
});
|
|
10931
11243
|
}
|
|
10932
11244
|
function buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext) {
|
|
10933
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11245
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$n, undefined, false);
|
|
10934
11246
|
}
|
|
10935
11247
|
function buildCachedSnapshotCachePolicy$9(context, storeLookup) {
|
|
10936
11248
|
const { luvio, config } = context;
|
|
@@ -11213,10 +11525,10 @@ const createVisualization_ConfigPropertyMetadata = [
|
|
|
11213
11525
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11214
11526
|
];
|
|
11215
11527
|
const createVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$m, createVisualization_ConfigPropertyMetadata);
|
|
11216
|
-
const createResourceParams$m = /*#__PURE__*/ createResourceParams
|
|
11528
|
+
const createResourceParams$m = /*#__PURE__*/ createResourceParams$$(createVisualization_ConfigPropertyMetadata);
|
|
11217
11529
|
function typeCheckConfig$m(untrustedConfig) {
|
|
11218
11530
|
const config = {};
|
|
11219
|
-
typeCheckConfig
|
|
11531
|
+
typeCheckConfig$$(untrustedConfig, config, createVisualization_ConfigPropertyMetadata);
|
|
11220
11532
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
11221
11533
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
11222
11534
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -11381,10 +11693,10 @@ const deleteVisualization_ConfigPropertyMetadata = [
|
|
|
11381
11693
|
generateParamConfigMetadata('visualizationIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
11382
11694
|
];
|
|
11383
11695
|
const deleteVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$l, deleteVisualization_ConfigPropertyMetadata);
|
|
11384
|
-
const createResourceParams$l = /*#__PURE__*/ createResourceParams
|
|
11696
|
+
const createResourceParams$l = /*#__PURE__*/ createResourceParams$$(deleteVisualization_ConfigPropertyMetadata);
|
|
11385
11697
|
function typeCheckConfig$l(untrustedConfig) {
|
|
11386
11698
|
const config = {};
|
|
11387
|
-
typeCheckConfig
|
|
11699
|
+
typeCheckConfig$$(untrustedConfig, config, deleteVisualization_ConfigPropertyMetadata);
|
|
11388
11700
|
return config;
|
|
11389
11701
|
}
|
|
11390
11702
|
function validateAdapterConfig$l(untrustedConfig, configPropertyNames) {
|
|
@@ -11483,14 +11795,14 @@ const getVisualization_ConfigPropertyMetadata = [
|
|
|
11483
11795
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
11484
11796
|
];
|
|
11485
11797
|
const getVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$k, getVisualization_ConfigPropertyMetadata);
|
|
11486
|
-
const createResourceParams$k = /*#__PURE__*/ createResourceParams
|
|
11798
|
+
const createResourceParams$k = /*#__PURE__*/ createResourceParams$$(getVisualization_ConfigPropertyMetadata);
|
|
11487
11799
|
function keyBuilder$r(luvio, config) {
|
|
11488
11800
|
const resourceParams = createResourceParams$k(config);
|
|
11489
11801
|
return keyBuilder$s(luvio, resourceParams);
|
|
11490
11802
|
}
|
|
11491
11803
|
function typeCheckConfig$k(untrustedConfig) {
|
|
11492
11804
|
const config = {};
|
|
11493
|
-
typeCheckConfig
|
|
11805
|
+
typeCheckConfig$$(untrustedConfig, config, getVisualization_ConfigPropertyMetadata);
|
|
11494
11806
|
return config;
|
|
11495
11807
|
}
|
|
11496
11808
|
function validateAdapterConfig$k(untrustedConfig, configPropertyNames) {
|
|
@@ -11539,7 +11851,7 @@ function buildNetworkSnapshot$k(luvio, config, options) {
|
|
|
11539
11851
|
});
|
|
11540
11852
|
}
|
|
11541
11853
|
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
11542
|
-
return buildNetworkSnapshotCachePolicy$
|
|
11854
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$k, undefined, false);
|
|
11543
11855
|
}
|
|
11544
11856
|
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
11545
11857
|
const { luvio, config } = context;
|
|
@@ -11617,10 +11929,10 @@ const updateVisualization_ConfigPropertyMetadata = [
|
|
|
11617
11929
|
generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11618
11930
|
];
|
|
11619
11931
|
const updateVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, updateVisualization_ConfigPropertyMetadata);
|
|
11620
|
-
const createResourceParams$j = /*#__PURE__*/ createResourceParams
|
|
11932
|
+
const createResourceParams$j = /*#__PURE__*/ createResourceParams$$(updateVisualization_ConfigPropertyMetadata);
|
|
11621
11933
|
function typeCheckConfig$j(untrustedConfig) {
|
|
11622
11934
|
const config = {};
|
|
11623
|
-
typeCheckConfig
|
|
11935
|
+
typeCheckConfig$$(untrustedConfig, config, updateVisualization_ConfigPropertyMetadata);
|
|
11624
11936
|
const untrustedConfig_dataSource = untrustedConfig.dataSource;
|
|
11625
11937
|
if (untrustedIsObject(untrustedConfig_dataSource)) {
|
|
11626
11938
|
const untrustedConfig_dataSource_object = {};
|
|
@@ -11885,14 +12197,14 @@ const getVisualizationBundle_ConfigPropertyMetadata = [
|
|
|
11885
12197
|
generateParamConfigMetadata('minorVersion', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
11886
12198
|
];
|
|
11887
12199
|
const getVisualizationBundle_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$i, getVisualizationBundle_ConfigPropertyMetadata);
|
|
11888
|
-
const createResourceParams$i = /*#__PURE__*/ createResourceParams
|
|
12200
|
+
const createResourceParams$i = /*#__PURE__*/ createResourceParams$$(getVisualizationBundle_ConfigPropertyMetadata);
|
|
11889
12201
|
function keyBuilder$o(luvio, config) {
|
|
11890
12202
|
const resourceParams = createResourceParams$i(config);
|
|
11891
12203
|
return keyBuilder$p(luvio, resourceParams);
|
|
11892
12204
|
}
|
|
11893
12205
|
function typeCheckConfig$i(untrustedConfig) {
|
|
11894
12206
|
const config = {};
|
|
11895
|
-
typeCheckConfig
|
|
12207
|
+
typeCheckConfig$$(untrustedConfig, config, getVisualizationBundle_ConfigPropertyMetadata);
|
|
11896
12208
|
return config;
|
|
11897
12209
|
}
|
|
11898
12210
|
function validateAdapterConfig$i(untrustedConfig, configPropertyNames) {
|
|
@@ -11941,7 +12253,7 @@ function buildNetworkSnapshot$i(luvio, config, options) {
|
|
|
11941
12253
|
});
|
|
11942
12254
|
}
|
|
11943
12255
|
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
11944
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12256
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$i, undefined, false);
|
|
11945
12257
|
}
|
|
11946
12258
|
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
11947
12259
|
const { luvio, config } = context;
|
|
@@ -12230,14 +12542,14 @@ const getWorkspaces_ConfigPropertyMetadata = [
|
|
|
12230
12542
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
12231
12543
|
];
|
|
12232
12544
|
const getWorkspaces_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getWorkspaces_ConfigPropertyMetadata);
|
|
12233
|
-
const createResourceParams$h = /*#__PURE__*/ createResourceParams
|
|
12545
|
+
const createResourceParams$h = /*#__PURE__*/ createResourceParams$$(getWorkspaces_ConfigPropertyMetadata);
|
|
12234
12546
|
function keyBuilder$l(luvio, config) {
|
|
12235
12547
|
const resourceParams = createResourceParams$h(config);
|
|
12236
12548
|
return keyBuilder$m(luvio, resourceParams);
|
|
12237
12549
|
}
|
|
12238
12550
|
function typeCheckConfig$h(untrustedConfig) {
|
|
12239
12551
|
const config = {};
|
|
12240
|
-
typeCheckConfig
|
|
12552
|
+
typeCheckConfig$$(untrustedConfig, config, getWorkspaces_ConfigPropertyMetadata);
|
|
12241
12553
|
return config;
|
|
12242
12554
|
}
|
|
12243
12555
|
function validateAdapterConfig$h(untrustedConfig, configPropertyNames) {
|
|
@@ -12286,7 +12598,7 @@ function buildNetworkSnapshot$h(luvio, config, options) {
|
|
|
12286
12598
|
});
|
|
12287
12599
|
}
|
|
12288
12600
|
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
12289
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12601
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$h, undefined, false);
|
|
12290
12602
|
}
|
|
12291
12603
|
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
12292
12604
|
const { luvio, config } = context;
|
|
@@ -12356,10 +12668,10 @@ const createWorkspace_ConfigPropertyMetadata = [
|
|
|
12356
12668
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
12357
12669
|
];
|
|
12358
12670
|
const createWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, createWorkspace_ConfigPropertyMetadata);
|
|
12359
|
-
const createResourceParams$g = /*#__PURE__*/ createResourceParams
|
|
12671
|
+
const createResourceParams$g = /*#__PURE__*/ createResourceParams$$(createWorkspace_ConfigPropertyMetadata);
|
|
12360
12672
|
function typeCheckConfig$g(untrustedConfig) {
|
|
12361
12673
|
const config = {};
|
|
12362
|
-
typeCheckConfig
|
|
12674
|
+
typeCheckConfig$$(untrustedConfig, config, createWorkspace_ConfigPropertyMetadata);
|
|
12363
12675
|
return config;
|
|
12364
12676
|
}
|
|
12365
12677
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -12440,10 +12752,10 @@ const deleteWorkspace_ConfigPropertyMetadata = [
|
|
|
12440
12752
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12441
12753
|
];
|
|
12442
12754
|
const deleteWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$f, deleteWorkspace_ConfigPropertyMetadata);
|
|
12443
|
-
const createResourceParams$f = /*#__PURE__*/ createResourceParams
|
|
12755
|
+
const createResourceParams$f = /*#__PURE__*/ createResourceParams$$(deleteWorkspace_ConfigPropertyMetadata);
|
|
12444
12756
|
function typeCheckConfig$f(untrustedConfig) {
|
|
12445
12757
|
const config = {};
|
|
12446
|
-
typeCheckConfig
|
|
12758
|
+
typeCheckConfig$$(untrustedConfig, config, deleteWorkspace_ConfigPropertyMetadata);
|
|
12447
12759
|
return config;
|
|
12448
12760
|
}
|
|
12449
12761
|
function validateAdapterConfig$f(untrustedConfig, configPropertyNames) {
|
|
@@ -12541,14 +12853,14 @@ const getWorkspaceByIdOrName_ConfigPropertyMetadata = [
|
|
|
12541
12853
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12542
12854
|
];
|
|
12543
12855
|
const getWorkspaceByIdOrName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
12544
|
-
const createResourceParams$e = /*#__PURE__*/ createResourceParams
|
|
12856
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$$(getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
12545
12857
|
function keyBuilder$i(luvio, config) {
|
|
12546
12858
|
const resourceParams = createResourceParams$e(config);
|
|
12547
12859
|
return keyBuilder$j(luvio, resourceParams);
|
|
12548
12860
|
}
|
|
12549
12861
|
function typeCheckConfig$e(untrustedConfig) {
|
|
12550
12862
|
const config = {};
|
|
12551
|
-
typeCheckConfig
|
|
12863
|
+
typeCheckConfig$$(untrustedConfig, config, getWorkspaceByIdOrName_ConfigPropertyMetadata);
|
|
12552
12864
|
return config;
|
|
12553
12865
|
}
|
|
12554
12866
|
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
@@ -12597,7 +12909,7 @@ function buildNetworkSnapshot$e(luvio, config, options) {
|
|
|
12597
12909
|
});
|
|
12598
12910
|
}
|
|
12599
12911
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
12600
|
-
return buildNetworkSnapshotCachePolicy$
|
|
12912
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$e, undefined, false);
|
|
12601
12913
|
}
|
|
12602
12914
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
12603
12915
|
const { luvio, config } = context;
|
|
@@ -12668,10 +12980,10 @@ const updateWorkspace_ConfigPropertyMetadata = [
|
|
|
12668
12980
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
12669
12981
|
];
|
|
12670
12982
|
const updateWorkspace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, updateWorkspace_ConfigPropertyMetadata);
|
|
12671
|
-
const createResourceParams$d = /*#__PURE__*/ createResourceParams
|
|
12983
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$$(updateWorkspace_ConfigPropertyMetadata);
|
|
12672
12984
|
function typeCheckConfig$d(untrustedConfig) {
|
|
12673
12985
|
const config = {};
|
|
12674
|
-
typeCheckConfig
|
|
12986
|
+
typeCheckConfig$$(untrustedConfig, config, updateWorkspace_ConfigPropertyMetadata);
|
|
12675
12987
|
return config;
|
|
12676
12988
|
}
|
|
12677
12989
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -12852,10 +13164,10 @@ const createWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
12852
13164
|
generateParamConfigMetadata('assetUsageType', true, 2 /* Body */, 0 /* String */),
|
|
12853
13165
|
];
|
|
12854
13166
|
const createWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
12855
|
-
const createResourceParams$c = /*#__PURE__*/ createResourceParams
|
|
13167
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$$(createWorkspaceAsset_ConfigPropertyMetadata);
|
|
12856
13168
|
function typeCheckConfig$c(untrustedConfig) {
|
|
12857
13169
|
const config = {};
|
|
12858
|
-
typeCheckConfig
|
|
13170
|
+
typeCheckConfig$$(untrustedConfig, config, createWorkspaceAsset_ConfigPropertyMetadata);
|
|
12859
13171
|
return config;
|
|
12860
13172
|
}
|
|
12861
13173
|
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
@@ -12937,10 +13249,10 @@ const deleteWorkspaceAsset_ConfigPropertyMetadata = [
|
|
|
12937
13249
|
generateParamConfigMetadata('workspaceIdOrApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
12938
13250
|
];
|
|
12939
13251
|
const deleteWorkspaceAsset_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
12940
|
-
const createResourceParams$b = /*#__PURE__*/ createResourceParams
|
|
13252
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$$(deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
12941
13253
|
function typeCheckConfig$b(untrustedConfig) {
|
|
12942
13254
|
const config = {};
|
|
12943
|
-
typeCheckConfig
|
|
13255
|
+
typeCheckConfig$$(untrustedConfig, config, deleteWorkspaceAsset_ConfigPropertyMetadata);
|
|
12944
13256
|
return config;
|
|
12945
13257
|
}
|
|
12946
13258
|
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
@@ -13325,14 +13637,14 @@ const getFlows_ConfigPropertyMetadata = [
|
|
|
13325
13637
|
generateParamConfigMetadata('searchTerm', false, 1 /* QueryParameter */, 0 /* String */),
|
|
13326
13638
|
];
|
|
13327
13639
|
const getFlows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getFlows_ConfigPropertyMetadata);
|
|
13328
|
-
const createResourceParams$a = /*#__PURE__*/ createResourceParams
|
|
13640
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$$(getFlows_ConfigPropertyMetadata);
|
|
13329
13641
|
function keyBuilder$e(luvio, config) {
|
|
13330
13642
|
const resourceParams = createResourceParams$a(config);
|
|
13331
13643
|
return keyBuilder$f(luvio, resourceParams);
|
|
13332
13644
|
}
|
|
13333
13645
|
function typeCheckConfig$a(untrustedConfig) {
|
|
13334
13646
|
const config = {};
|
|
13335
|
-
typeCheckConfig
|
|
13647
|
+
typeCheckConfig$$(untrustedConfig, config, getFlows_ConfigPropertyMetadata);
|
|
13336
13648
|
return config;
|
|
13337
13649
|
}
|
|
13338
13650
|
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
@@ -13381,7 +13693,7 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
13381
13693
|
});
|
|
13382
13694
|
}
|
|
13383
13695
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
13384
|
-
return buildNetworkSnapshotCachePolicy$
|
|
13696
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
13385
13697
|
}
|
|
13386
13698
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
13387
13699
|
const { luvio, config } = context;
|
|
@@ -13457,14 +13769,14 @@ const getFlowByName_ConfigPropertyMetadata = [
|
|
|
13457
13769
|
generateParamConfigMetadata('flowApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13458
13770
|
];
|
|
13459
13771
|
const getFlowByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getFlowByName_ConfigPropertyMetadata);
|
|
13460
|
-
const createResourceParams$9 = /*#__PURE__*/ createResourceParams
|
|
13772
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$$(getFlowByName_ConfigPropertyMetadata);
|
|
13461
13773
|
function keyBuilder$c(luvio, config) {
|
|
13462
13774
|
const resourceParams = createResourceParams$9(config);
|
|
13463
13775
|
return keyBuilder$d(luvio, resourceParams);
|
|
13464
13776
|
}
|
|
13465
13777
|
function typeCheckConfig$9(untrustedConfig) {
|
|
13466
13778
|
const config = {};
|
|
13467
|
-
typeCheckConfig
|
|
13779
|
+
typeCheckConfig$$(untrustedConfig, config, getFlowByName_ConfigPropertyMetadata);
|
|
13468
13780
|
return config;
|
|
13469
13781
|
}
|
|
13470
13782
|
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
@@ -13513,7 +13825,7 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
13513
13825
|
});
|
|
13514
13826
|
}
|
|
13515
13827
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
13516
|
-
return buildNetworkSnapshotCachePolicy$
|
|
13828
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
|
|
13517
13829
|
}
|
|
13518
13830
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
13519
13831
|
const { luvio, config } = context;
|
|
@@ -13671,14 +13983,14 @@ const getSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
13671
13983
|
generateParamConfigMetadata('digestConfigOwner', true, 0 /* UrlParameter */, 0 /* String */),
|
|
13672
13984
|
];
|
|
13673
13985
|
const getSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13674
|
-
const createResourceParams$8 = /*#__PURE__*/ createResourceParams
|
|
13986
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$$(getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13675
13987
|
function keyBuilder$9(luvio, config) {
|
|
13676
13988
|
const resourceParams = createResourceParams$8(config);
|
|
13677
13989
|
return keyBuilder$a(luvio, resourceParams);
|
|
13678
13990
|
}
|
|
13679
13991
|
function typeCheckConfig$8(untrustedConfig) {
|
|
13680
13992
|
const config = {};
|
|
13681
|
-
typeCheckConfig
|
|
13993
|
+
typeCheckConfig$$(untrustedConfig, config, getSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13682
13994
|
return config;
|
|
13683
13995
|
}
|
|
13684
13996
|
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
@@ -13727,7 +14039,7 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
13727
14039
|
});
|
|
13728
14040
|
}
|
|
13729
14041
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
13730
|
-
return buildNetworkSnapshotCachePolicy$
|
|
14042
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
13731
14043
|
}
|
|
13732
14044
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
13733
14045
|
const { luvio, config } = context;
|
|
@@ -13796,10 +14108,10 @@ const updateSubscriptionDigestConfig_ConfigPropertyMetadata = [
|
|
|
13796
14108
|
generateParamConfigMetadata('scheduleType', true, 2 /* Body */, 0 /* String */),
|
|
13797
14109
|
];
|
|
13798
14110
|
const updateSubscriptionDigestConfig_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13799
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams
|
|
14111
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$$(updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13800
14112
|
function typeCheckConfig$7(untrustedConfig) {
|
|
13801
14113
|
const config = {};
|
|
13802
|
-
typeCheckConfig
|
|
14114
|
+
typeCheckConfig$$(untrustedConfig, config, updateSubscriptionDigestConfig_ConfigPropertyMetadata);
|
|
13803
14115
|
return config;
|
|
13804
14116
|
}
|
|
13805
14117
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -14031,10 +14343,10 @@ const getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata = [
|
|
|
14031
14343
|
generateParamConfigMetadata('sortDirection', false, 2 /* Body */, 0 /* String */),
|
|
14032
14344
|
];
|
|
14033
14345
|
const getUnifiedAnalyticsLibraryAssets_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
14034
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams
|
|
14346
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$$(getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
14035
14347
|
function typeCheckConfig$6(untrustedConfig) {
|
|
14036
14348
|
const config = {};
|
|
14037
|
-
typeCheckConfig
|
|
14349
|
+
typeCheckConfig$$(untrustedConfig, config, getUnifiedAnalyticsLibraryAssets_ConfigPropertyMetadata);
|
|
14038
14350
|
const untrustedConfig_assetTypes = untrustedConfig.assetTypes;
|
|
14039
14351
|
if (ArrayIsArray$1(untrustedConfig_assetTypes)) {
|
|
14040
14352
|
const untrustedConfig_assetTypes_array = [];
|
|
@@ -14266,10 +14578,10 @@ const generateSFDriveCredentials_ConfigPropertyMetadata = [
|
|
|
14266
14578
|
generateParamConfigMetadata('path', true, 2 /* Body */, 0 /* String */),
|
|
14267
14579
|
];
|
|
14268
14580
|
const generateSFDriveCredentials_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
14269
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams
|
|
14581
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$$(generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
14270
14582
|
function typeCheckConfig$5(untrustedConfig) {
|
|
14271
14583
|
const config = {};
|
|
14272
|
-
typeCheckConfig
|
|
14584
|
+
typeCheckConfig$$(untrustedConfig, config, generateSFDriveCredentials_ConfigPropertyMetadata);
|
|
14273
14585
|
return config;
|
|
14274
14586
|
}
|
|
14275
14587
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -14440,10 +14752,10 @@ const generateSFDrivePresignedCredentials_ConfigPropertyMetadata = [
|
|
|
14440
14752
|
generateParamConfigMetadata('fileName', true, 2 /* Body */, 0 /* String */),
|
|
14441
14753
|
];
|
|
14442
14754
|
const generateSFDrivePresignedCredentials_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, generateSFDrivePresignedCredentials_ConfigPropertyMetadata);
|
|
14443
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams
|
|
14755
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$$(generateSFDrivePresignedCredentials_ConfigPropertyMetadata);
|
|
14444
14756
|
function typeCheckConfig$4(untrustedConfig) {
|
|
14445
14757
|
const config = {};
|
|
14446
|
-
typeCheckConfig
|
|
14758
|
+
typeCheckConfig$$(untrustedConfig, config, generateSFDrivePresignedCredentials_ConfigPropertyMetadata);
|
|
14447
14759
|
return config;
|
|
14448
14760
|
}
|
|
14449
14761
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -14614,14 +14926,14 @@ const initiateMarketplaceListingInstallation_ConfigPropertyMetadata = [
|
|
|
14614
14926
|
generateParamConfigMetadata('listingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
14615
14927
|
];
|
|
14616
14928
|
const initiateMarketplaceListingInstallation_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
14617
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams
|
|
14929
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$$(initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
14618
14930
|
function keyBuilder$4(luvio, config) {
|
|
14619
14931
|
const resourceParams = createResourceParams$3(config);
|
|
14620
14932
|
return keyBuilder$5(luvio, resourceParams);
|
|
14621
14933
|
}
|
|
14622
14934
|
function typeCheckConfig$3(untrustedConfig) {
|
|
14623
14935
|
const config = {};
|
|
14624
|
-
typeCheckConfig
|
|
14936
|
+
typeCheckConfig$$(untrustedConfig, config, initiateMarketplaceListingInstallation_ConfigPropertyMetadata);
|
|
14625
14937
|
return config;
|
|
14626
14938
|
}
|
|
14627
14939
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -14670,7 +14982,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
14670
14982
|
});
|
|
14671
14983
|
}
|
|
14672
14984
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
14673
|
-
return buildNetworkSnapshotCachePolicy$
|
|
14985
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
14674
14986
|
}
|
|
14675
14987
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
14676
14988
|
const { luvio, config } = context;
|
|
@@ -14848,14 +15160,14 @@ const getMarketplaceListingInstallationProgress_ConfigPropertyMetadata = [
|
|
|
14848
15160
|
generateParamConfigMetadata('installationId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
14849
15161
|
];
|
|
14850
15162
|
const getMarketplaceListingInstallationProgress_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
14851
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams
|
|
15163
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$$(getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
14852
15164
|
function keyBuilder$2(luvio, config) {
|
|
14853
15165
|
const resourceParams = createResourceParams$2(config);
|
|
14854
15166
|
return keyBuilder$3(luvio, resourceParams);
|
|
14855
15167
|
}
|
|
14856
15168
|
function typeCheckConfig$2(untrustedConfig) {
|
|
14857
15169
|
const config = {};
|
|
14858
|
-
typeCheckConfig
|
|
15170
|
+
typeCheckConfig$$(untrustedConfig, config, getMarketplaceListingInstallationProgress_ConfigPropertyMetadata);
|
|
14859
15171
|
return config;
|
|
14860
15172
|
}
|
|
14861
15173
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -14904,7 +15216,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
14904
15216
|
});
|
|
14905
15217
|
}
|
|
14906
15218
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
14907
|
-
return buildNetworkSnapshotCachePolicy$
|
|
15219
|
+
return buildNetworkSnapshotCachePolicy$r(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
14908
15220
|
}
|
|
14909
15221
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
14910
15222
|
const { luvio, config } = context;
|
|
@@ -15040,10 +15352,10 @@ const createTemplate_ConfigPropertyMetadata = [
|
|
|
15040
15352
|
generateParamConfigMetadata('tags', true, 2 /* Body */, 4 /* Unsupported */),
|
|
15041
15353
|
];
|
|
15042
15354
|
const createTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, createTemplate_ConfigPropertyMetadata);
|
|
15043
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams
|
|
15355
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$$(createTemplate_ConfigPropertyMetadata);
|
|
15044
15356
|
function typeCheckConfig$1(untrustedConfig) {
|
|
15045
15357
|
const config = {};
|
|
15046
|
-
typeCheckConfig
|
|
15358
|
+
typeCheckConfig$$(untrustedConfig, config, createTemplate_ConfigPropertyMetadata);
|
|
15047
15359
|
const untrustedConfig_tags = untrustedConfig.tags;
|
|
15048
15360
|
if (untrustedIsObject(untrustedConfig_tags)) {
|
|
15049
15361
|
const untrustedConfig_tags_object = {};
|
|
@@ -15220,10 +15532,10 @@ const publishToMarketplace_ConfigPropertyMetadata = [
|
|
|
15220
15532
|
generateParamConfigMetadata('assetVersion', false, 2 /* Body */, 2 /* Number */),
|
|
15221
15533
|
];
|
|
15222
15534
|
const publishToMarketplace_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, publishToMarketplace_ConfigPropertyMetadata);
|
|
15223
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams
|
|
15535
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$$(publishToMarketplace_ConfigPropertyMetadata);
|
|
15224
15536
|
function typeCheckConfig(untrustedConfig) {
|
|
15225
15537
|
const config = {};
|
|
15226
|
-
typeCheckConfig
|
|
15538
|
+
typeCheckConfig$$(untrustedConfig, config, publishToMarketplace_ConfigPropertyMetadata);
|
|
15227
15539
|
return config;
|
|
15228
15540
|
}
|
|
15229
15541
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -15268,4 +15580,4 @@ const publishToMarketplaceAdapterFactory = (luvio) => {
|
|
|
15268
15580
|
};
|
|
15269
15581
|
};
|
|
15270
15582
|
|
|
15271
|
-
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 };
|
|
15583
|
+
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 };
|